shaders_model_shader.js 1.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212
  1. var Module;
  2. if (typeof Module === 'undefined') Module = {};
  3. if (!Module.expectedDataFileDownloads) {
  4. Module.expectedDataFileDownloads = 0;
  5. Module.finishedDataFileDownloads = 0;
  6. }
  7. Module.expectedDataFileDownloads++;
  8. (function() {
  9. var loadPackage = function(metadata) {
  10. var PACKAGE_PATH;
  11. if (typeof window === 'object') {
  12. PACKAGE_PATH = window['encodeURIComponent'](window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf('/')) + '/');
  13. } else if (typeof location !== 'undefined') {
  14. // worker
  15. PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/');
  16. } else {
  17. throw 'using preloaded data can only be done on a web page or in a web worker';
  18. }
  19. var PACKAGE_NAME = 'shaders/shaders_model_shader.data';
  20. var REMOTE_PACKAGE_BASE = 'shaders_model_shader.data';
  21. if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) {
  22. Module['locateFile'] = Module['locateFilePackage'];
  23. Module.printErr('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');
  24. }
  25. var REMOTE_PACKAGE_NAME = typeof Module['locateFile'] === 'function' ?
  26. Module['locateFile'](REMOTE_PACKAGE_BASE) :
  27. ((Module['filePackagePrefixURL'] || '') + REMOTE_PACKAGE_BASE);
  28. var REMOTE_PACKAGE_SIZE = metadata.remote_package_size;
  29. var PACKAGE_UUID = metadata.package_uuid;
  30. function fetchRemotePackage(packageName, packageSize, callback, errback) {
  31. var xhr = new XMLHttpRequest();
  32. xhr.open('GET', packageName, true);
  33. xhr.responseType = 'arraybuffer';
  34. xhr.onprogress = function(event) {
  35. var url = packageName;
  36. var size = packageSize;
  37. if (event.total) size = event.total;
  38. if (event.loaded) {
  39. if (!xhr.addedTotal) {
  40. xhr.addedTotal = true;
  41. if (!Module.dataFileDownloads) Module.dataFileDownloads = {};
  42. Module.dataFileDownloads[url] = {
  43. loaded: event.loaded,
  44. total: size
  45. };
  46. } else {
  47. Module.dataFileDownloads[url].loaded = event.loaded;
  48. }
  49. var total = 0;
  50. var loaded = 0;
  51. var num = 0;
  52. for (var download in Module.dataFileDownloads) {
  53. var data = Module.dataFileDownloads[download];
  54. total += data.total;
  55. loaded += data.loaded;
  56. num++;
  57. }
  58. total = Math.ceil(total * Module.expectedDataFileDownloads/num);
  59. if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')');
  60. } else if (!Module.dataFileDownloads) {
  61. if (Module['setStatus']) Module['setStatus']('Downloading data...');
  62. }
  63. };
  64. xhr.onerror = function(event) {
  65. throw new Error("NetworkError for: " + packageName);
  66. }
  67. xhr.onload = function(event) {
  68. if (xhr.status == 200 || xhr.status == 304 || xhr.status == 206 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  69. var packageData = xhr.response;
  70. callback(packageData);
  71. } else {
  72. throw new Error(xhr.statusText + " : " + xhr.responseURL);
  73. }
  74. };
  75. xhr.send(null);
  76. };
  77. function handleError(error) {
  78. console.error('package error:', error);
  79. };
  80. var fetchedCallback = null;
  81. var fetched = Module['getPreloadedPackage'] ? Module['getPreloadedPackage'](REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE) : null;
  82. if (!fetched) fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, function(data) {
  83. if (fetchedCallback) {
  84. fetchedCallback(data);
  85. fetchedCallback = null;
  86. } else {
  87. fetched = data;
  88. }
  89. }, handleError);
  90. function runWithFS() {
  91. function assert(check, msg) {
  92. if (!check) throw msg + new Error().stack;
  93. }
  94. Module['FS_createPath']('/', 'resources', true, true);
  95. Module['FS_createPath']('/resources', 'model', true, true);
  96. Module['FS_createPath']('/resources', 'shaders', true, true);
  97. Module['FS_createPath']('/resources/shaders', 'glsl100', true, true);
  98. function DataRequest(start, end, crunched, audio) {
  99. this.start = start;
  100. this.end = end;
  101. this.crunched = crunched;
  102. this.audio = audio;
  103. }
  104. DataRequest.prototype = {
  105. requests: {},
  106. open: function(mode, name) {
  107. this.name = name;
  108. this.requests[name] = this;
  109. Module['addRunDependency']('fp ' + this.name);
  110. },
  111. send: function() {},
  112. onload: function() {
  113. var byteArray = this.byteArray.subarray(this.start, this.end);
  114. this.finish(byteArray);
  115. },
  116. finish: function(byteArray) {
  117. var that = this;
  118. Module['FS_createDataFile'](this.name, null, byteArray, true, true, true); // canOwn this data in the filesystem, it is a slide into the heap that will never change
  119. Module['removeRunDependency']('fp ' + that.name);
  120. this.requests[this.name] = null;
  121. }
  122. };
  123. var files = metadata.files;
  124. for (i = 0; i < files.length; ++i) {
  125. new DataRequest(files[i].start, files[i].end, files[i].crunched, files[i].audio).open('GET', files[i].filename);
  126. }
  127. function processPackageData(arrayBuffer) {
  128. Module.finishedDataFileDownloads++;
  129. assert(arrayBuffer, 'Loading data file failed.');
  130. assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData');
  131. var byteArray = new Uint8Array(arrayBuffer);
  132. var curr;
  133. // copy the entire loaded file into a spot in the heap. Files will refer to slices in that. They cannot be freed though
  134. // (we may be allocating before malloc is ready, during startup).
  135. if (Module['SPLIT_MEMORY']) Module.printErr('warning: you should run the file packager with --no-heap-copy when SPLIT_MEMORY is used, otherwise copying into the heap may fail due to the splitting');
  136. var ptr = Module['getMemory'](byteArray.length);
  137. Module['HEAPU8'].set(byteArray, ptr);
  138. DataRequest.prototype.byteArray = Module['HEAPU8'].subarray(ptr, ptr+byteArray.length);
  139. var files = metadata.files;
  140. for (i = 0; i < files.length; ++i) {
  141. DataRequest.prototype.requests[files[i].filename].onload();
  142. }
  143. Module['removeRunDependency']('datafile_shaders/shaders_model_shader.data');
  144. };
  145. Module['addRunDependency']('datafile_shaders/shaders_model_shader.data');
  146. if (!Module.preloadResults) Module.preloadResults = {};
  147. Module.preloadResults[PACKAGE_NAME] = {fromCache: false};
  148. if (fetched) {
  149. processPackageData(fetched);
  150. fetched = null;
  151. } else {
  152. fetchedCallback = processPackageData;
  153. }
  154. }
  155. if (Module['calledRun']) {
  156. runWithFS();
  157. } else {
  158. if (!Module['preRun']) Module['preRun'] = [];
  159. Module["preRun"].push(runWithFS); // FS is not initialized yet, wait for it
  160. }
  161. }
  162. loadPackage({"files": [{"audio": 0, "start": 0, "crunched": 0, "end": 2748249, "filename": "/resources/model/dwarf.obj"}, {"audio": 0, "start": 2748249, "crunched": 0, "end": 4022872, "filename": "/resources/model/dwarf_diffuse.png"}, {"audio": 0, "start": 4022872, "crunched": 0, "end": 4023477, "filename": "/resources/shaders/glsl100/base.vs"}, {"audio": 0, "start": 4023477, "crunched": 0, "end": 4024142, "filename": "/resources/shaders/glsl100/grayscale.fs"}], "remote_package_size": 4024142, "package_uuid": "27692f49-fde6-4c3d-9ac8-e2e96405fe19"});
  163. })();
  164. // The Module object: Our interface to the outside world. We import
  165. // and export values on it, and do the work to get that through
  166. // closure compiler if necessary. There are various ways Module can be used:
  167. // 1. Not defined. We create it here
  168. // 2. A function parameter, function(Module) { ..generated code.. }
  169. // 3. pre-run appended it, var Module = {}; ..generated code..
  170. // 4. External script tag defines var Module.
  171. // We need to do an eval in order to handle the closure compiler
  172. // case, where this code here is minified but Module was defined
  173. // elsewhere (e.g. case 4 above). We also need to check if Module
  174. // already exists (e.g. case 3 above).
  175. // Note that if you want to run closure, and also to use Module
  176. // after the generated code, you will need to define var Module = {};
  177. // before the code. Then that object will be used in the code, and you
  178. // can continue to use Module afterwards as well.
  179. var Module;
  180. if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
  181. // Sometimes an existing Module object exists with properties
  182. // meant to overwrite the default module functionality. Here
  183. // we collect those properties and reapply _after_ we configure
  184. // the current environment's defaults to avoid having to be so
  185. // defensive during initialization.
  186. var moduleOverrides = {};
  187. for (var key in Module) {
  188. if (Module.hasOwnProperty(key)) {
  189. moduleOverrides[key] = Module[key];
  190. }
  191. }
  192. // The environment setup code below is customized to use Module.
  193. // *** Environment setup code ***
  194. var ENVIRONMENT_IS_WEB = false;
  195. var ENVIRONMENT_IS_WORKER = false;
  196. var ENVIRONMENT_IS_NODE = false;
  197. var ENVIRONMENT_IS_SHELL = false;
  198. // Three configurations we can be running in:
  199. // 1) We could be the application main() thread running in the main JS UI thread. (ENVIRONMENT_IS_WORKER == false and ENVIRONMENT_IS_PTHREAD == false)
  200. // 2) We could be the application main() thread proxied to worker. (with Emscripten -s PROXY_TO_WORKER=1) (ENVIRONMENT_IS_WORKER == true, ENVIRONMENT_IS_PTHREAD == false)
  201. // 3) We could be an application pthread running in a worker. (ENVIRONMENT_IS_WORKER == true and ENVIRONMENT_IS_PTHREAD == true)
  202. if (Module['ENVIRONMENT']) {
  203. if (Module['ENVIRONMENT'] === 'WEB') {
  204. ENVIRONMENT_IS_WEB = true;
  205. } else if (Module['ENVIRONMENT'] === 'WORKER') {
  206. ENVIRONMENT_IS_WORKER = true;
  207. } else if (Module['ENVIRONMENT'] === 'NODE') {
  208. ENVIRONMENT_IS_NODE = true;
  209. } else if (Module['ENVIRONMENT'] === 'SHELL') {
  210. ENVIRONMENT_IS_SHELL = true;
  211. } else {
  212. throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');
  213. }
  214. } else {
  215. ENVIRONMENT_IS_WEB = typeof window === 'object';
  216. ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
  217. ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function' && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER;
  218. ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
  219. }
  220. if (ENVIRONMENT_IS_NODE) {
  221. // Expose functionality in the same simple way that the shells work
  222. // Note that we pollute the global namespace here, otherwise we break in node
  223. if (!Module['print']) Module['print'] = console.log;
  224. if (!Module['printErr']) Module['printErr'] = console.warn;
  225. var nodeFS;
  226. var nodePath;
  227. Module['read'] = function read(filename, binary) {
  228. if (!nodeFS) nodeFS = require('fs');
  229. if (!nodePath) nodePath = require('path');
  230. filename = nodePath['normalize'](filename);
  231. var ret = nodeFS['readFileSync'](filename);
  232. return binary ? ret : ret.toString();
  233. };
  234. Module['readBinary'] = function readBinary(filename) {
  235. var ret = Module['read'](filename, true);
  236. if (!ret.buffer) {
  237. ret = new Uint8Array(ret);
  238. }
  239. assert(ret.buffer);
  240. return ret;
  241. };
  242. Module['load'] = function load(f) {
  243. globalEval(read(f));
  244. };
  245. if (!Module['thisProgram']) {
  246. if (process['argv'].length > 1) {
  247. Module['thisProgram'] = process['argv'][1].replace(/\\/g, '/');
  248. } else {
  249. Module['thisProgram'] = 'unknown-program';
  250. }
  251. }
  252. Module['arguments'] = process['argv'].slice(2);
  253. if (typeof module !== 'undefined') {
  254. module['exports'] = Module;
  255. }
  256. process['on']('uncaughtException', function(ex) {
  257. // suppress ExitStatus exceptions from showing an error
  258. if (!(ex instanceof ExitStatus)) {
  259. throw ex;
  260. }
  261. });
  262. Module['inspect'] = function () { return '[Emscripten Module object]'; };
  263. }
  264. else if (ENVIRONMENT_IS_SHELL) {
  265. if (!Module['print']) Module['print'] = print;
  266. if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
  267. if (typeof read != 'undefined') {
  268. Module['read'] = read;
  269. } else {
  270. Module['read'] = function read() { throw 'no read() available' };
  271. }
  272. Module['readBinary'] = function readBinary(f) {
  273. if (typeof readbuffer === 'function') {
  274. return new Uint8Array(readbuffer(f));
  275. }
  276. var data = read(f, 'binary');
  277. assert(typeof data === 'object');
  278. return data;
  279. };
  280. if (typeof scriptArgs != 'undefined') {
  281. Module['arguments'] = scriptArgs;
  282. } else if (typeof arguments != 'undefined') {
  283. Module['arguments'] = arguments;
  284. }
  285. if (typeof quit === 'function') {
  286. Module['quit'] = function(status, toThrow) {
  287. quit(status);
  288. }
  289. }
  290. }
  291. else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
  292. Module['read'] = function read(url) {
  293. var xhr = new XMLHttpRequest();
  294. xhr.open('GET', url, false);
  295. xhr.send(null);
  296. return xhr.responseText;
  297. };
  298. if (ENVIRONMENT_IS_WORKER) {
  299. Module['readBinary'] = function read(url) {
  300. var xhr = new XMLHttpRequest();
  301. xhr.open('GET', url, false);
  302. xhr.responseType = 'arraybuffer';
  303. xhr.send(null);
  304. return xhr.response;
  305. };
  306. }
  307. Module['readAsync'] = function readAsync(url, onload, onerror) {
  308. var xhr = new XMLHttpRequest();
  309. xhr.open('GET', url, true);
  310. xhr.responseType = 'arraybuffer';
  311. xhr.onload = function xhr_onload() {
  312. if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  313. onload(xhr.response);
  314. } else {
  315. onerror();
  316. }
  317. };
  318. xhr.onerror = onerror;
  319. xhr.send(null);
  320. };
  321. if (typeof arguments != 'undefined') {
  322. Module['arguments'] = arguments;
  323. }
  324. if (typeof console !== 'undefined') {
  325. if (!Module['print']) Module['print'] = function print(x) {
  326. console.log(x);
  327. };
  328. if (!Module['printErr']) Module['printErr'] = function printErr(x) {
  329. console.warn(x);
  330. };
  331. } else {
  332. // Probably a worker, and without console.log. We can do very little here...
  333. var TRY_USE_DUMP = false;
  334. if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
  335. dump(x);
  336. }) : (function(x) {
  337. // self.postMessage(x); // enable this if you want stdout to be sent as messages
  338. }));
  339. }
  340. if (ENVIRONMENT_IS_WORKER) {
  341. Module['load'] = importScripts;
  342. }
  343. if (typeof Module['setWindowTitle'] === 'undefined') {
  344. Module['setWindowTitle'] = function(title) { document.title = title };
  345. }
  346. }
  347. else {
  348. // Unreachable because SHELL is dependant on the others
  349. throw 'Unknown runtime environment. Where are we?';
  350. }
  351. function globalEval(x) {
  352. eval.call(null, x);
  353. }
  354. if (!Module['load'] && Module['read']) {
  355. Module['load'] = function load(f) {
  356. globalEval(Module['read'](f));
  357. };
  358. }
  359. if (!Module['print']) {
  360. Module['print'] = function(){};
  361. }
  362. if (!Module['printErr']) {
  363. Module['printErr'] = Module['print'];
  364. }
  365. if (!Module['arguments']) {
  366. Module['arguments'] = [];
  367. }
  368. if (!Module['thisProgram']) {
  369. Module['thisProgram'] = './this.program';
  370. }
  371. if (!Module['quit']) {
  372. Module['quit'] = function(status, toThrow) {
  373. throw toThrow;
  374. }
  375. }
  376. // *** Environment setup code ***
  377. // Closure helpers
  378. Module.print = Module['print'];
  379. Module.printErr = Module['printErr'];
  380. // Callbacks
  381. Module['preRun'] = [];
  382. Module['postRun'] = [];
  383. // Merge back in the overrides
  384. for (var key in moduleOverrides) {
  385. if (moduleOverrides.hasOwnProperty(key)) {
  386. Module[key] = moduleOverrides[key];
  387. }
  388. }
  389. // Free the object hierarchy contained in the overrides, this lets the GC
  390. // reclaim data used e.g. in memoryInitializerRequest, which is a large typed array.
  391. moduleOverrides = undefined;
  392. // {{PREAMBLE_ADDITIONS}}
  393. // === Preamble library stuff ===
  394. // Documentation for the public APIs defined in this file must be updated in:
  395. // site/source/docs/api_reference/preamble.js.rst
  396. // A prebuilt local version of the documentation is available at:
  397. // site/build/text/docs/api_reference/preamble.js.txt
  398. // You can also build docs locally as HTML or other formats in site/
  399. // An online HTML version (which may be of a different version of Emscripten)
  400. // is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
  401. //========================================
  402. // Runtime code shared with compiler
  403. //========================================
  404. var Runtime = {
  405. setTempRet0: function (value) {
  406. tempRet0 = value;
  407. return value;
  408. },
  409. getTempRet0: function () {
  410. return tempRet0;
  411. },
  412. stackSave: function () {
  413. return STACKTOP;
  414. },
  415. stackRestore: function (stackTop) {
  416. STACKTOP = stackTop;
  417. },
  418. getNativeTypeSize: function (type) {
  419. switch (type) {
  420. case 'i1': case 'i8': return 1;
  421. case 'i16': return 2;
  422. case 'i32': return 4;
  423. case 'i64': return 8;
  424. case 'float': return 4;
  425. case 'double': return 8;
  426. default: {
  427. if (type[type.length-1] === '*') {
  428. return Runtime.QUANTUM_SIZE; // A pointer
  429. } else if (type[0] === 'i') {
  430. var bits = parseInt(type.substr(1));
  431. assert(bits % 8 === 0);
  432. return bits/8;
  433. } else {
  434. return 0;
  435. }
  436. }
  437. }
  438. },
  439. getNativeFieldSize: function (type) {
  440. return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
  441. },
  442. STACK_ALIGN: 16,
  443. prepVararg: function (ptr, type) {
  444. if (type === 'double' || type === 'i64') {
  445. // move so the load is aligned
  446. if (ptr & 7) {
  447. assert((ptr & 7) === 4);
  448. ptr += 4;
  449. }
  450. } else {
  451. assert((ptr & 3) === 0);
  452. }
  453. return ptr;
  454. },
  455. getAlignSize: function (type, size, vararg) {
  456. // we align i64s and doubles on 64-bit boundaries, unlike x86
  457. if (!vararg && (type == 'i64' || type == 'double')) return 8;
  458. if (!type) return Math.min(size, 8); // align structures internally to 64 bits
  459. return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
  460. },
  461. dynCall: function (sig, ptr, args) {
  462. if (args && args.length) {
  463. assert(args.length == sig.length-1);
  464. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  465. return Module['dynCall_' + sig].apply(null, [ptr].concat(args));
  466. } else {
  467. assert(sig.length == 1);
  468. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  469. return Module['dynCall_' + sig].call(null, ptr);
  470. }
  471. },
  472. functionPointers: [],
  473. addFunction: function (func) {
  474. for (var i = 0; i < Runtime.functionPointers.length; i++) {
  475. if (!Runtime.functionPointers[i]) {
  476. Runtime.functionPointers[i] = func;
  477. return 2*(1 + i);
  478. }
  479. }
  480. throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
  481. },
  482. removeFunction: function (index) {
  483. Runtime.functionPointers[(index-2)/2] = null;
  484. },
  485. warnOnce: function (text) {
  486. if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
  487. if (!Runtime.warnOnce.shown[text]) {
  488. Runtime.warnOnce.shown[text] = 1;
  489. Module.printErr(text);
  490. }
  491. },
  492. funcWrappers: {},
  493. getFuncWrapper: function (func, sig) {
  494. assert(sig);
  495. if (!Runtime.funcWrappers[sig]) {
  496. Runtime.funcWrappers[sig] = {};
  497. }
  498. var sigCache = Runtime.funcWrappers[sig];
  499. if (!sigCache[func]) {
  500. // optimize away arguments usage in common cases
  501. if (sig.length === 1) {
  502. sigCache[func] = function dynCall_wrapper() {
  503. return Runtime.dynCall(sig, func);
  504. };
  505. } else if (sig.length === 2) {
  506. sigCache[func] = function dynCall_wrapper(arg) {
  507. return Runtime.dynCall(sig, func, [arg]);
  508. };
  509. } else {
  510. // general case
  511. sigCache[func] = function dynCall_wrapper() {
  512. return Runtime.dynCall(sig, func, Array.prototype.slice.call(arguments));
  513. };
  514. }
  515. }
  516. return sigCache[func];
  517. },
  518. getCompilerSetting: function (name) {
  519. throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
  520. },
  521. stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+15)&-16);(assert((((STACKTOP|0) < (STACK_MAX|0))|0))|0); return ret; },
  522. staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + (assert(!staticSealed),size))|0;STATICTOP = (((STATICTOP)+15)&-16); return ret; },
  523. dynamicAlloc: function (size) { assert(DYNAMICTOP_PTR);var ret = HEAP32[DYNAMICTOP_PTR>>2];var end = (((ret + size + 15)|0) & -16);HEAP32[DYNAMICTOP_PTR>>2] = end;if (end >= TOTAL_MEMORY) {var success = enlargeMemory();if (!success) {HEAP32[DYNAMICTOP_PTR>>2] = ret;return 0;}}return ret;},
  524. alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 16))*(quantum ? quantum : 16); return ret; },
  525. makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0))); return ret; },
  526. GLOBAL_BASE: 8,
  527. QUANTUM_SIZE: 4,
  528. __dummy__: 0
  529. }
  530. Module["Runtime"] = Runtime;
  531. //========================================
  532. // Runtime essentials
  533. //========================================
  534. var ABORT = 0; // whether we are quitting the application. no code should run after this. set in exit() and abort()
  535. var EXITSTATUS = 0;
  536. function assert(condition, text) {
  537. if (!condition) {
  538. abort('Assertion failed: ' + text);
  539. }
  540. }
  541. var globalScope = this;
  542. // Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
  543. function getCFunc(ident) {
  544. var func = Module['_' + ident]; // closure exported function
  545. if (!func) {
  546. try { func = eval('_' + ident); } catch(e) {}
  547. }
  548. assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
  549. return func;
  550. }
  551. var cwrap, ccall;
  552. (function(){
  553. var JSfuncs = {
  554. // Helpers for cwrap -- it can't refer to Runtime directly because it might
  555. // be renamed by closure, instead it calls JSfuncs['stackSave'].body to find
  556. // out what the minified function name is.
  557. 'stackSave': function() {
  558. Runtime.stackSave()
  559. },
  560. 'stackRestore': function() {
  561. Runtime.stackRestore()
  562. },
  563. // type conversion from js to c
  564. 'arrayToC' : function(arr) {
  565. var ret = Runtime.stackAlloc(arr.length);
  566. writeArrayToMemory(arr, ret);
  567. return ret;
  568. },
  569. 'stringToC' : function(str) {
  570. var ret = 0;
  571. if (str !== null && str !== undefined && str !== 0) { // null string
  572. // at most 4 bytes per UTF-8 code point, +1 for the trailing '\0'
  573. var len = (str.length << 2) + 1;
  574. ret = Runtime.stackAlloc(len);
  575. stringToUTF8(str, ret, len);
  576. }
  577. return ret;
  578. }
  579. };
  580. // For fast lookup of conversion functions
  581. var toC = {'string' : JSfuncs['stringToC'], 'array' : JSfuncs['arrayToC']};
  582. // C calling interface.
  583. ccall = function ccallFunc(ident, returnType, argTypes, args, opts) {
  584. var func = getCFunc(ident);
  585. var cArgs = [];
  586. var stack = 0;
  587. assert(returnType !== 'array', 'Return type should not be "array".');
  588. if (args) {
  589. for (var i = 0; i < args.length; i++) {
  590. var converter = toC[argTypes[i]];
  591. if (converter) {
  592. if (stack === 0) stack = Runtime.stackSave();
  593. cArgs[i] = converter(args[i]);
  594. } else {
  595. cArgs[i] = args[i];
  596. }
  597. }
  598. }
  599. var ret = func.apply(null, cArgs);
  600. if ((!opts || !opts.async) && typeof EmterpreterAsync === 'object') {
  601. assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling ccall');
  602. }
  603. if (opts && opts.async) assert(!returnType, 'async ccalls cannot return values');
  604. if (returnType === 'string') ret = Pointer_stringify(ret);
  605. if (stack !== 0) {
  606. if (opts && opts.async) {
  607. EmterpreterAsync.asyncFinalizers.push(function() {
  608. Runtime.stackRestore(stack);
  609. });
  610. return;
  611. }
  612. Runtime.stackRestore(stack);
  613. }
  614. return ret;
  615. }
  616. var sourceRegex = /^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
  617. function parseJSFunc(jsfunc) {
  618. // Match the body and the return value of a javascript function source
  619. var parsed = jsfunc.toString().match(sourceRegex).slice(1);
  620. return {arguments : parsed[0], body : parsed[1], returnValue: parsed[2]}
  621. }
  622. // sources of useful functions. we create this lazily as it can trigger a source decompression on this entire file
  623. var JSsource = null;
  624. function ensureJSsource() {
  625. if (!JSsource) {
  626. JSsource = {};
  627. for (var fun in JSfuncs) {
  628. if (JSfuncs.hasOwnProperty(fun)) {
  629. // Elements of toCsource are arrays of three items:
  630. // the code, and the return value
  631. JSsource[fun] = parseJSFunc(JSfuncs[fun]);
  632. }
  633. }
  634. }
  635. }
  636. cwrap = function cwrap(ident, returnType, argTypes) {
  637. argTypes = argTypes || [];
  638. var cfunc = getCFunc(ident);
  639. // When the function takes numbers and returns a number, we can just return
  640. // the original function
  641. var numericArgs = argTypes.every(function(type){ return type === 'number'});
  642. var numericRet = (returnType !== 'string');
  643. if ( numericRet && numericArgs) {
  644. return cfunc;
  645. }
  646. // Creation of the arguments list (["$1","$2",...,"$nargs"])
  647. var argNames = argTypes.map(function(x,i){return '$'+i});
  648. var funcstr = "(function(" + argNames.join(',') + ") {";
  649. var nargs = argTypes.length;
  650. if (!numericArgs) {
  651. // Generate the code needed to convert the arguments from javascript
  652. // values to pointers
  653. ensureJSsource();
  654. funcstr += 'var stack = ' + JSsource['stackSave'].body + ';';
  655. for (var i = 0; i < nargs; i++) {
  656. var arg = argNames[i], type = argTypes[i];
  657. if (type === 'number') continue;
  658. var convertCode = JSsource[type + 'ToC']; // [code, return]
  659. funcstr += 'var ' + convertCode.arguments + ' = ' + arg + ';';
  660. funcstr += convertCode.body + ';';
  661. funcstr += arg + '=(' + convertCode.returnValue + ');';
  662. }
  663. }
  664. // When the code is compressed, the name of cfunc is not literally 'cfunc' anymore
  665. var cfuncname = parseJSFunc(function(){return cfunc}).returnValue;
  666. // Call the function
  667. funcstr += 'var ret = ' + cfuncname + '(' + argNames.join(',') + ');';
  668. if (!numericRet) { // Return type can only by 'string' or 'number'
  669. // Convert the result to a string
  670. var strgfy = parseJSFunc(function(){return Pointer_stringify}).returnValue;
  671. funcstr += 'ret = ' + strgfy + '(ret);';
  672. }
  673. funcstr += "if (typeof EmterpreterAsync === 'object') { assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling cwrap') }";
  674. if (!numericArgs) {
  675. // If we had a stack, restore it
  676. ensureJSsource();
  677. funcstr += JSsource['stackRestore'].body.replace('()', '(stack)') + ';';
  678. }
  679. funcstr += 'return ret})';
  680. return eval(funcstr);
  681. };
  682. })();
  683. Module["ccall"] = ccall;
  684. Module["cwrap"] = cwrap;
  685. function setValue(ptr, value, type, noSafe) {
  686. type = type || 'i8';
  687. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  688. switch(type) {
  689. case 'i1': HEAP8[((ptr)>>0)]=value; break;
  690. case 'i8': HEAP8[((ptr)>>0)]=value; break;
  691. case 'i16': HEAP16[((ptr)>>1)]=value; break;
  692. case 'i32': HEAP32[((ptr)>>2)]=value; break;
  693. case 'i64': (tempI64 = [value>>>0,(tempDouble=value,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[((ptr)>>2)]=tempI64[0],HEAP32[(((ptr)+(4))>>2)]=tempI64[1]); break;
  694. case 'float': HEAPF32[((ptr)>>2)]=value; break;
  695. case 'double': HEAPF64[((ptr)>>3)]=value; break;
  696. default: abort('invalid type for setValue: ' + type);
  697. }
  698. }
  699. Module["setValue"] = setValue;
  700. function getValue(ptr, type, noSafe) {
  701. type = type || 'i8';
  702. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  703. switch(type) {
  704. case 'i1': return HEAP8[((ptr)>>0)];
  705. case 'i8': return HEAP8[((ptr)>>0)];
  706. case 'i16': return HEAP16[((ptr)>>1)];
  707. case 'i32': return HEAP32[((ptr)>>2)];
  708. case 'i64': return HEAP32[((ptr)>>2)];
  709. case 'float': return HEAPF32[((ptr)>>2)];
  710. case 'double': return HEAPF64[((ptr)>>3)];
  711. default: abort('invalid type for setValue: ' + type);
  712. }
  713. return null;
  714. }
  715. Module["getValue"] = getValue;
  716. var ALLOC_NORMAL = 0; // Tries to use _malloc()
  717. var ALLOC_STACK = 1; // Lives for the duration of the current function call
  718. var ALLOC_STATIC = 2; // Cannot be freed
  719. var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
  720. var ALLOC_NONE = 4; // Do not allocate
  721. Module["ALLOC_NORMAL"] = ALLOC_NORMAL;
  722. Module["ALLOC_STACK"] = ALLOC_STACK;
  723. Module["ALLOC_STATIC"] = ALLOC_STATIC;
  724. Module["ALLOC_DYNAMIC"] = ALLOC_DYNAMIC;
  725. Module["ALLOC_NONE"] = ALLOC_NONE;
  726. // allocate(): This is for internal use. You can use it yourself as well, but the interface
  727. // is a little tricky (see docs right below). The reason is that it is optimized
  728. // for multiple syntaxes to save space in generated code. So you should
  729. // normally not use allocate(), and instead allocate memory using _malloc(),
  730. // initialize it with setValue(), and so forth.
  731. // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
  732. // in *bytes* (note that this is sometimes confusing: the next parameter does not
  733. // affect this!)
  734. // @types: Either an array of types, one for each byte (or 0 if no type at that position),
  735. // or a single type which is used for the entire block. This only matters if there
  736. // is initial data - if @slab is a number, then this does not matter at all and is
  737. // ignored.
  738. // @allocator: How to allocate memory, see ALLOC_*
  739. function allocate(slab, types, allocator, ptr) {
  740. var zeroinit, size;
  741. if (typeof slab === 'number') {
  742. zeroinit = true;
  743. size = slab;
  744. } else {
  745. zeroinit = false;
  746. size = slab.length;
  747. }
  748. var singleType = typeof types === 'string' ? types : null;
  749. var ret;
  750. if (allocator == ALLOC_NONE) {
  751. ret = ptr;
  752. } else {
  753. ret = [typeof _malloc === 'function' ? _malloc : Runtime.staticAlloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][allocator === undefined ? ALLOC_STATIC : allocator](Math.max(size, singleType ? 1 : types.length));
  754. }
  755. if (zeroinit) {
  756. var ptr = ret, stop;
  757. assert((ret & 3) == 0);
  758. stop = ret + (size & ~3);
  759. for (; ptr < stop; ptr += 4) {
  760. HEAP32[((ptr)>>2)]=0;
  761. }
  762. stop = ret + size;
  763. while (ptr < stop) {
  764. HEAP8[((ptr++)>>0)]=0;
  765. }
  766. return ret;
  767. }
  768. if (singleType === 'i8') {
  769. if (slab.subarray || slab.slice) {
  770. HEAPU8.set(slab, ret);
  771. } else {
  772. HEAPU8.set(new Uint8Array(slab), ret);
  773. }
  774. return ret;
  775. }
  776. var i = 0, type, typeSize, previousType;
  777. while (i < size) {
  778. var curr = slab[i];
  779. if (typeof curr === 'function') {
  780. curr = Runtime.getFunctionIndex(curr);
  781. }
  782. type = singleType || types[i];
  783. if (type === 0) {
  784. i++;
  785. continue;
  786. }
  787. assert(type, 'Must know what type to store in allocate!');
  788. if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
  789. setValue(ret+i, curr, type);
  790. // no need to look up size unless type changes, so cache it
  791. if (previousType !== type) {
  792. typeSize = Runtime.getNativeTypeSize(type);
  793. previousType = type;
  794. }
  795. i += typeSize;
  796. }
  797. return ret;
  798. }
  799. Module["allocate"] = allocate;
  800. // Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
  801. function getMemory(size) {
  802. if (!staticSealed) return Runtime.staticAlloc(size);
  803. if (!runtimeInitialized) return Runtime.dynamicAlloc(size);
  804. return _malloc(size);
  805. }
  806. Module["getMemory"] = getMemory;
  807. function Pointer_stringify(ptr, /* optional */ length) {
  808. if (length === 0 || !ptr) return '';
  809. // TODO: use TextDecoder
  810. // Find the length, and check for UTF while doing so
  811. var hasUtf = 0;
  812. var t;
  813. var i = 0;
  814. while (1) {
  815. assert(ptr + i < TOTAL_MEMORY);
  816. t = HEAPU8[(((ptr)+(i))>>0)];
  817. hasUtf |= t;
  818. if (t == 0 && !length) break;
  819. i++;
  820. if (length && i == length) break;
  821. }
  822. if (!length) length = i;
  823. var ret = '';
  824. if (hasUtf < 128) {
  825. var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
  826. var curr;
  827. while (length > 0) {
  828. curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
  829. ret = ret ? ret + curr : curr;
  830. ptr += MAX_CHUNK;
  831. length -= MAX_CHUNK;
  832. }
  833. return ret;
  834. }
  835. return Module['UTF8ToString'](ptr);
  836. }
  837. Module["Pointer_stringify"] = Pointer_stringify;
  838. // Given a pointer 'ptr' to a null-terminated ASCII-encoded string in the emscripten HEAP, returns
  839. // a copy of that string as a Javascript String object.
  840. function AsciiToString(ptr) {
  841. var str = '';
  842. while (1) {
  843. var ch = HEAP8[((ptr++)>>0)];
  844. if (!ch) return str;
  845. str += String.fromCharCode(ch);
  846. }
  847. }
  848. Module["AsciiToString"] = AsciiToString;
  849. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  850. // null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
  851. function stringToAscii(str, outPtr) {
  852. return writeAsciiToMemory(str, outPtr, false);
  853. }
  854. Module["stringToAscii"] = stringToAscii;
  855. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns
  856. // a copy of that string as a Javascript String object.
  857. var UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
  858. function UTF8ArrayToString(u8Array, idx) {
  859. var endPtr = idx;
  860. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  861. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  862. while (u8Array[endPtr]) ++endPtr;
  863. if (endPtr - idx > 16 && u8Array.subarray && UTF8Decoder) {
  864. return UTF8Decoder.decode(u8Array.subarray(idx, endPtr));
  865. } else {
  866. var u0, u1, u2, u3, u4, u5;
  867. var str = '';
  868. while (1) {
  869. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  870. u0 = u8Array[idx++];
  871. if (!u0) return str;
  872. if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; }
  873. u1 = u8Array[idx++] & 63;
  874. if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; }
  875. u2 = u8Array[idx++] & 63;
  876. if ((u0 & 0xF0) == 0xE0) {
  877. u0 = ((u0 & 15) << 12) | (u1 << 6) | u2;
  878. } else {
  879. u3 = u8Array[idx++] & 63;
  880. if ((u0 & 0xF8) == 0xF0) {
  881. u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | u3;
  882. } else {
  883. u4 = u8Array[idx++] & 63;
  884. if ((u0 & 0xFC) == 0xF8) {
  885. u0 = ((u0 & 3) << 24) | (u1 << 18) | (u2 << 12) | (u3 << 6) | u4;
  886. } else {
  887. u5 = u8Array[idx++] & 63;
  888. u0 = ((u0 & 1) << 30) | (u1 << 24) | (u2 << 18) | (u3 << 12) | (u4 << 6) | u5;
  889. }
  890. }
  891. }
  892. if (u0 < 0x10000) {
  893. str += String.fromCharCode(u0);
  894. } else {
  895. var ch = u0 - 0x10000;
  896. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  897. }
  898. }
  899. }
  900. }
  901. Module["UTF8ArrayToString"] = UTF8ArrayToString;
  902. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the emscripten HEAP, returns
  903. // a copy of that string as a Javascript String object.
  904. function UTF8ToString(ptr) {
  905. return UTF8ArrayToString(HEAPU8,ptr);
  906. }
  907. Module["UTF8ToString"] = UTF8ToString;
  908. // Copies the given Javascript String object 'str' to the given byte array at address 'outIdx',
  909. // encoded in UTF8 form and null-terminated. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  910. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  911. // Parameters:
  912. // str: the Javascript string to copy.
  913. // outU8Array: the array to copy to. Each index in this array is assumed to be one 8-byte element.
  914. // outIdx: The starting offset in the array to begin the copying.
  915. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  916. // terminator, i.e. if maxBytesToWrite=1, only the null terminator will be written and nothing else.
  917. // maxBytesToWrite=0 does not write any bytes to the output, not even the null terminator.
  918. // Returns the number of bytes written, EXCLUDING the null terminator.
  919. function stringToUTF8Array(str, outU8Array, outIdx, maxBytesToWrite) {
  920. if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes.
  921. return 0;
  922. var startIdx = outIdx;
  923. var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator.
  924. for (var i = 0; i < str.length; ++i) {
  925. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  926. // See http://unicode.org/faq/utf_bom.html#utf16-3
  927. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  928. var u = str.charCodeAt(i); // possibly a lead surrogate
  929. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  930. if (u <= 0x7F) {
  931. if (outIdx >= endIdx) break;
  932. outU8Array[outIdx++] = u;
  933. } else if (u <= 0x7FF) {
  934. if (outIdx + 1 >= endIdx) break;
  935. outU8Array[outIdx++] = 0xC0 | (u >> 6);
  936. outU8Array[outIdx++] = 0x80 | (u & 63);
  937. } else if (u <= 0xFFFF) {
  938. if (outIdx + 2 >= endIdx) break;
  939. outU8Array[outIdx++] = 0xE0 | (u >> 12);
  940. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  941. outU8Array[outIdx++] = 0x80 | (u & 63);
  942. } else if (u <= 0x1FFFFF) {
  943. if (outIdx + 3 >= endIdx) break;
  944. outU8Array[outIdx++] = 0xF0 | (u >> 18);
  945. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  946. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  947. outU8Array[outIdx++] = 0x80 | (u & 63);
  948. } else if (u <= 0x3FFFFFF) {
  949. if (outIdx + 4 >= endIdx) break;
  950. outU8Array[outIdx++] = 0xF8 | (u >> 24);
  951. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  952. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  953. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  954. outU8Array[outIdx++] = 0x80 | (u & 63);
  955. } else {
  956. if (outIdx + 5 >= endIdx) break;
  957. outU8Array[outIdx++] = 0xFC | (u >> 30);
  958. outU8Array[outIdx++] = 0x80 | ((u >> 24) & 63);
  959. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  960. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  961. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  962. outU8Array[outIdx++] = 0x80 | (u & 63);
  963. }
  964. }
  965. // Null-terminate the pointer to the buffer.
  966. outU8Array[outIdx] = 0;
  967. return outIdx - startIdx;
  968. }
  969. Module["stringToUTF8Array"] = stringToUTF8Array;
  970. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  971. // null-terminated and encoded in UTF8 form. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  972. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  973. // Returns the number of bytes written, EXCLUDING the null terminator.
  974. function stringToUTF8(str, outPtr, maxBytesToWrite) {
  975. assert(typeof maxBytesToWrite == 'number', 'stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  976. return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
  977. }
  978. Module["stringToUTF8"] = stringToUTF8;
  979. // Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.
  980. function lengthBytesUTF8(str) {
  981. var len = 0;
  982. for (var i = 0; i < str.length; ++i) {
  983. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  984. // See http://unicode.org/faq/utf_bom.html#utf16-3
  985. var u = str.charCodeAt(i); // possibly a lead surrogate
  986. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  987. if (u <= 0x7F) {
  988. ++len;
  989. } else if (u <= 0x7FF) {
  990. len += 2;
  991. } else if (u <= 0xFFFF) {
  992. len += 3;
  993. } else if (u <= 0x1FFFFF) {
  994. len += 4;
  995. } else if (u <= 0x3FFFFFF) {
  996. len += 5;
  997. } else {
  998. len += 6;
  999. }
  1000. }
  1001. return len;
  1002. }
  1003. Module["lengthBytesUTF8"] = lengthBytesUTF8;
  1004. // Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
  1005. // a copy of that string as a Javascript String object.
  1006. var UTF16Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-16le') : undefined;
  1007. function UTF16ToString(ptr) {
  1008. assert(ptr % 2 == 0, 'Pointer passed to UTF16ToString must be aligned to two bytes!');
  1009. var endPtr = ptr;
  1010. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  1011. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  1012. var idx = endPtr >> 1;
  1013. while (HEAP16[idx]) ++idx;
  1014. endPtr = idx << 1;
  1015. if (endPtr - ptr > 32 && UTF16Decoder) {
  1016. return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
  1017. } else {
  1018. var i = 0;
  1019. var str = '';
  1020. while (1) {
  1021. var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
  1022. if (codeUnit == 0) return str;
  1023. ++i;
  1024. // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
  1025. str += String.fromCharCode(codeUnit);
  1026. }
  1027. }
  1028. }
  1029. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1030. // null-terminated and encoded in UTF16 form. The copy will require at most str.length*4+2 bytes of space in the HEAP.
  1031. // Use the function lengthBytesUTF16() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1032. // Parameters:
  1033. // str: the Javascript string to copy.
  1034. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1035. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1036. // terminator, i.e. if maxBytesToWrite=2, only the null terminator will be written and nothing else.
  1037. // maxBytesToWrite<2 does not write any bytes to the output, not even the null terminator.
  1038. // Returns the number of bytes written, EXCLUDING the null terminator.
  1039. function stringToUTF16(str, outPtr, maxBytesToWrite) {
  1040. assert(outPtr % 2 == 0, 'Pointer passed to stringToUTF16 must be aligned to two bytes!');
  1041. assert(typeof maxBytesToWrite == 'number', 'stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1042. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1043. if (maxBytesToWrite === undefined) {
  1044. maxBytesToWrite = 0x7FFFFFFF;
  1045. }
  1046. if (maxBytesToWrite < 2) return 0;
  1047. maxBytesToWrite -= 2; // Null terminator.
  1048. var startPtr = outPtr;
  1049. var numCharsToWrite = (maxBytesToWrite < str.length*2) ? (maxBytesToWrite / 2) : str.length;
  1050. for (var i = 0; i < numCharsToWrite; ++i) {
  1051. // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
  1052. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1053. HEAP16[((outPtr)>>1)]=codeUnit;
  1054. outPtr += 2;
  1055. }
  1056. // Null-terminate the pointer to the HEAP.
  1057. HEAP16[((outPtr)>>1)]=0;
  1058. return outPtr - startPtr;
  1059. }
  1060. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1061. function lengthBytesUTF16(str) {
  1062. return str.length*2;
  1063. }
  1064. function UTF32ToString(ptr) {
  1065. assert(ptr % 4 == 0, 'Pointer passed to UTF32ToString must be aligned to four bytes!');
  1066. var i = 0;
  1067. var str = '';
  1068. while (1) {
  1069. var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
  1070. if (utf32 == 0)
  1071. return str;
  1072. ++i;
  1073. // Gotcha: fromCharCode constructs a character from a UTF-16 encoded code (pair), not from a Unicode code point! So encode the code point to UTF-16 for constructing.
  1074. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1075. if (utf32 >= 0x10000) {
  1076. var ch = utf32 - 0x10000;
  1077. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  1078. } else {
  1079. str += String.fromCharCode(utf32);
  1080. }
  1081. }
  1082. }
  1083. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1084. // null-terminated and encoded in UTF32 form. The copy will require at most str.length*4+4 bytes of space in the HEAP.
  1085. // Use the function lengthBytesUTF32() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1086. // Parameters:
  1087. // str: the Javascript string to copy.
  1088. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1089. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1090. // terminator, i.e. if maxBytesToWrite=4, only the null terminator will be written and nothing else.
  1091. // maxBytesToWrite<4 does not write any bytes to the output, not even the null terminator.
  1092. // Returns the number of bytes written, EXCLUDING the null terminator.
  1093. function stringToUTF32(str, outPtr, maxBytesToWrite) {
  1094. assert(outPtr % 4 == 0, 'Pointer passed to stringToUTF32 must be aligned to four bytes!');
  1095. assert(typeof maxBytesToWrite == 'number', 'stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1096. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1097. if (maxBytesToWrite === undefined) {
  1098. maxBytesToWrite = 0x7FFFFFFF;
  1099. }
  1100. if (maxBytesToWrite < 4) return 0;
  1101. var startPtr = outPtr;
  1102. var endPtr = startPtr + maxBytesToWrite - 4;
  1103. for (var i = 0; i < str.length; ++i) {
  1104. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1105. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1106. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1107. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
  1108. var trailSurrogate = str.charCodeAt(++i);
  1109. codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
  1110. }
  1111. HEAP32[((outPtr)>>2)]=codeUnit;
  1112. outPtr += 4;
  1113. if (outPtr + 4 > endPtr) break;
  1114. }
  1115. // Null-terminate the pointer to the HEAP.
  1116. HEAP32[((outPtr)>>2)]=0;
  1117. return outPtr - startPtr;
  1118. }
  1119. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1120. function lengthBytesUTF32(str) {
  1121. var len = 0;
  1122. for (var i = 0; i < str.length; ++i) {
  1123. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1124. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1125. var codeUnit = str.charCodeAt(i);
  1126. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) ++i; // possibly a lead surrogate, so skip over the tail surrogate.
  1127. len += 4;
  1128. }
  1129. return len;
  1130. }
  1131. function demangle(func) {
  1132. var __cxa_demangle_func = Module['___cxa_demangle'] || Module['__cxa_demangle'];
  1133. if (__cxa_demangle_func) {
  1134. try {
  1135. var s =
  1136. func.substr(1);
  1137. var len = lengthBytesUTF8(s)+1;
  1138. var buf = _malloc(len);
  1139. stringToUTF8(s, buf, len);
  1140. var status = _malloc(4);
  1141. var ret = __cxa_demangle_func(buf, 0, 0, status);
  1142. if (getValue(status, 'i32') === 0 && ret) {
  1143. return Pointer_stringify(ret);
  1144. }
  1145. // otherwise, libcxxabi failed
  1146. } catch(e) {
  1147. // ignore problems here
  1148. } finally {
  1149. if (buf) _free(buf);
  1150. if (status) _free(status);
  1151. if (ret) _free(ret);
  1152. }
  1153. // failure when using libcxxabi, don't demangle
  1154. return func;
  1155. }
  1156. Runtime.warnOnce('warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling');
  1157. return func;
  1158. }
  1159. function demangleAll(text) {
  1160. var regex =
  1161. /__Z[\w\d_]+/g;
  1162. return text.replace(regex,
  1163. function(x) {
  1164. var y = demangle(x);
  1165. return x === y ? x : (x + ' [' + y + ']');
  1166. });
  1167. }
  1168. function jsStackTrace() {
  1169. var err = new Error();
  1170. if (!err.stack) {
  1171. // IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
  1172. // so try that as a special-case.
  1173. try {
  1174. throw new Error(0);
  1175. } catch(e) {
  1176. err = e;
  1177. }
  1178. if (!err.stack) {
  1179. return '(no stack trace available)';
  1180. }
  1181. }
  1182. return err.stack.toString();
  1183. }
  1184. function stackTrace() {
  1185. var js = jsStackTrace();
  1186. if (Module['extraStackTrace']) js += '\n' + Module['extraStackTrace']();
  1187. return demangleAll(js);
  1188. }
  1189. Module["stackTrace"] = stackTrace;
  1190. // Memory management
  1191. var PAGE_SIZE = 16384;
  1192. var WASM_PAGE_SIZE = 65536;
  1193. var ASMJS_PAGE_SIZE = 16777216;
  1194. var MIN_TOTAL_MEMORY = 16777216;
  1195. function alignUp(x, multiple) {
  1196. if (x % multiple > 0) {
  1197. x += multiple - (x % multiple);
  1198. }
  1199. return x;
  1200. }
  1201. var HEAP;
  1202. var buffer;
  1203. var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
  1204. function updateGlobalBuffer(buf) {
  1205. Module['buffer'] = buffer = buf;
  1206. }
  1207. function updateGlobalBufferViews() {
  1208. Module['HEAP8'] = HEAP8 = new Int8Array(buffer);
  1209. Module['HEAP16'] = HEAP16 = new Int16Array(buffer);
  1210. Module['HEAP32'] = HEAP32 = new Int32Array(buffer);
  1211. Module['HEAPU8'] = HEAPU8 = new Uint8Array(buffer);
  1212. Module['HEAPU16'] = HEAPU16 = new Uint16Array(buffer);
  1213. Module['HEAPU32'] = HEAPU32 = new Uint32Array(buffer);
  1214. Module['HEAPF32'] = HEAPF32 = new Float32Array(buffer);
  1215. Module['HEAPF64'] = HEAPF64 = new Float64Array(buffer);
  1216. }
  1217. var STATIC_BASE, STATICTOP, staticSealed; // static area
  1218. var STACK_BASE, STACKTOP, STACK_MAX; // stack area
  1219. var DYNAMIC_BASE, DYNAMICTOP_PTR; // dynamic area handled by sbrk
  1220. STATIC_BASE = STATICTOP = STACK_BASE = STACKTOP = STACK_MAX = DYNAMIC_BASE = DYNAMICTOP_PTR = 0;
  1221. staticSealed = false;
  1222. // Initializes the stack cookie. Called at the startup of main and at the startup of each thread in pthreads mode.
  1223. function writeStackCookie() {
  1224. assert((STACK_MAX & 3) == 0);
  1225. HEAPU32[(STACK_MAX >> 2)-1] = 0x02135467;
  1226. HEAPU32[(STACK_MAX >> 2)-2] = 0x89BACDFE;
  1227. }
  1228. function checkStackCookie() {
  1229. if (HEAPU32[(STACK_MAX >> 2)-1] != 0x02135467 || HEAPU32[(STACK_MAX >> 2)-2] != 0x89BACDFE) {
  1230. abort('Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x' + HEAPU32[(STACK_MAX >> 2)-2].toString(16) + ' ' + HEAPU32[(STACK_MAX >> 2)-1].toString(16));
  1231. }
  1232. // Also test the global address 0 for integrity. This check is not compatible with SAFE_SPLIT_MEMORY though, since that mode already tests all address 0 accesses on its own.
  1233. if (HEAP32[0] !== 0x63736d65 /* 'emsc' */) throw 'Runtime error: The application has corrupted its heap memory area (address zero)!';
  1234. }
  1235. function abortStackOverflow(allocSize) {
  1236. abort('Stack overflow! Attempted to allocate ' + allocSize + ' bytes on the stack, but stack has only ' + (STACK_MAX - asm.stackSave() + allocSize) + ' bytes available!');
  1237. }
  1238. function abortOnCannotGrowMemory() {
  1239. abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ');
  1240. }
  1241. function enlargeMemory() {
  1242. abortOnCannotGrowMemory();
  1243. }
  1244. var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
  1245. var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 67108864;
  1246. if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
  1247. // Initialize the runtime's memory
  1248. // check for full engine support (use string 'subarray' to avoid closure compiler confusion)
  1249. assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
  1250. 'JS engine does not provide full typed array support');
  1251. // Use a provided buffer, if there is one, or else allocate a new one
  1252. if (Module['buffer']) {
  1253. buffer = Module['buffer'];
  1254. assert(buffer.byteLength === TOTAL_MEMORY, 'provided buffer should be ' + TOTAL_MEMORY + ' bytes, but it is ' + buffer.byteLength);
  1255. } else {
  1256. // Use a WebAssembly memory where available
  1257. {
  1258. buffer = new ArrayBuffer(TOTAL_MEMORY);
  1259. }
  1260. assert(buffer.byteLength === TOTAL_MEMORY);
  1261. }
  1262. updateGlobalBufferViews();
  1263. function getTotalMemory() {
  1264. return TOTAL_MEMORY;
  1265. }
  1266. // Endianness check (note: assumes compiler arch was little-endian)
  1267. HEAP32[0] = 0x63736d65; /* 'emsc' */
  1268. HEAP16[1] = 0x6373;
  1269. if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
  1270. Module['HEAP'] = HEAP;
  1271. Module['buffer'] = buffer;
  1272. Module['HEAP8'] = HEAP8;
  1273. Module['HEAP16'] = HEAP16;
  1274. Module['HEAP32'] = HEAP32;
  1275. Module['HEAPU8'] = HEAPU8;
  1276. Module['HEAPU16'] = HEAPU16;
  1277. Module['HEAPU32'] = HEAPU32;
  1278. Module['HEAPF32'] = HEAPF32;
  1279. Module['HEAPF64'] = HEAPF64;
  1280. function callRuntimeCallbacks(callbacks) {
  1281. while(callbacks.length > 0) {
  1282. var callback = callbacks.shift();
  1283. if (typeof callback == 'function') {
  1284. callback();
  1285. continue;
  1286. }
  1287. var func = callback.func;
  1288. if (typeof func === 'number') {
  1289. if (callback.arg === undefined) {
  1290. Module['dynCall_v'](func);
  1291. } else {
  1292. Module['dynCall_vi'](func, callback.arg);
  1293. }
  1294. } else {
  1295. func(callback.arg === undefined ? null : callback.arg);
  1296. }
  1297. }
  1298. }
  1299. var __ATPRERUN__ = []; // functions called before the runtime is initialized
  1300. var __ATINIT__ = []; // functions called during startup
  1301. var __ATMAIN__ = []; // functions called when main() is to be run
  1302. var __ATEXIT__ = []; // functions called during shutdown
  1303. var __ATPOSTRUN__ = []; // functions called after the runtime has exited
  1304. var runtimeInitialized = false;
  1305. var runtimeExited = false;
  1306. function preRun() {
  1307. // compatibility - merge in anything from Module['preRun'] at this time
  1308. if (Module['preRun']) {
  1309. if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
  1310. while (Module['preRun'].length) {
  1311. addOnPreRun(Module['preRun'].shift());
  1312. }
  1313. }
  1314. callRuntimeCallbacks(__ATPRERUN__);
  1315. }
  1316. function ensureInitRuntime() {
  1317. checkStackCookie();
  1318. if (runtimeInitialized) return;
  1319. runtimeInitialized = true;
  1320. callRuntimeCallbacks(__ATINIT__);
  1321. }
  1322. function preMain() {
  1323. checkStackCookie();
  1324. callRuntimeCallbacks(__ATMAIN__);
  1325. }
  1326. function exitRuntime() {
  1327. checkStackCookie();
  1328. callRuntimeCallbacks(__ATEXIT__);
  1329. runtimeExited = true;
  1330. }
  1331. function postRun() {
  1332. checkStackCookie();
  1333. // compatibility - merge in anything from Module['postRun'] at this time
  1334. if (Module['postRun']) {
  1335. if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
  1336. while (Module['postRun'].length) {
  1337. addOnPostRun(Module['postRun'].shift());
  1338. }
  1339. }
  1340. callRuntimeCallbacks(__ATPOSTRUN__);
  1341. }
  1342. function addOnPreRun(cb) {
  1343. __ATPRERUN__.unshift(cb);
  1344. }
  1345. Module["addOnPreRun"] = addOnPreRun;
  1346. function addOnInit(cb) {
  1347. __ATINIT__.unshift(cb);
  1348. }
  1349. Module["addOnInit"] = addOnInit;
  1350. function addOnPreMain(cb) {
  1351. __ATMAIN__.unshift(cb);
  1352. }
  1353. Module["addOnPreMain"] = addOnPreMain;
  1354. function addOnExit(cb) {
  1355. __ATEXIT__.unshift(cb);
  1356. }
  1357. Module["addOnExit"] = addOnExit;
  1358. function addOnPostRun(cb) {
  1359. __ATPOSTRUN__.unshift(cb);
  1360. }
  1361. Module["addOnPostRun"] = addOnPostRun;
  1362. // Tools
  1363. function intArrayFromString(stringy, dontAddNull, length /* optional */) {
  1364. var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
  1365. var u8array = new Array(len);
  1366. var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
  1367. if (dontAddNull) u8array.length = numBytesWritten;
  1368. return u8array;
  1369. }
  1370. Module["intArrayFromString"] = intArrayFromString;
  1371. function intArrayToString(array) {
  1372. var ret = [];
  1373. for (var i = 0; i < array.length; i++) {
  1374. var chr = array[i];
  1375. if (chr > 0xFF) {
  1376. assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
  1377. chr &= 0xFF;
  1378. }
  1379. ret.push(String.fromCharCode(chr));
  1380. }
  1381. return ret.join('');
  1382. }
  1383. Module["intArrayToString"] = intArrayToString;
  1384. // Deprecated: This function should not be called because it is unsafe and does not provide
  1385. // a maximum length limit of how many bytes it is allowed to write. Prefer calling the
  1386. // function stringToUTF8Array() instead, which takes in a maximum length that can be used
  1387. // to be secure from out of bounds writes.
  1388. function writeStringToMemory(string, buffer, dontAddNull) {
  1389. Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
  1390. var lastChar, end;
  1391. if (dontAddNull) {
  1392. // stringToUTF8Array always appends null. If we don't want to do that, remember the
  1393. // character that existed at the location where the null will be placed, and restore
  1394. // that after the write (below).
  1395. end = buffer + lengthBytesUTF8(string);
  1396. lastChar = HEAP8[end];
  1397. }
  1398. stringToUTF8(string, buffer, Infinity);
  1399. if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
  1400. }
  1401. Module["writeStringToMemory"] = writeStringToMemory;
  1402. function writeArrayToMemory(array, buffer) {
  1403. assert(array.length >= 0, 'writeArrayToMemory array must have a length (should be an array or typed array)')
  1404. HEAP8.set(array, buffer);
  1405. }
  1406. Module["writeArrayToMemory"] = writeArrayToMemory;
  1407. function writeAsciiToMemory(str, buffer, dontAddNull) {
  1408. for (var i = 0; i < str.length; ++i) {
  1409. assert(str.charCodeAt(i) === str.charCodeAt(i)&0xff);
  1410. HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
  1411. }
  1412. // Null-terminate the pointer to the HEAP.
  1413. if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
  1414. }
  1415. Module["writeAsciiToMemory"] = writeAsciiToMemory;
  1416. function unSign(value, bits, ignore) {
  1417. if (value >= 0) {
  1418. return value;
  1419. }
  1420. return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts
  1421. : Math.pow(2, bits) + value;
  1422. }
  1423. function reSign(value, bits, ignore) {
  1424. if (value <= 0) {
  1425. return value;
  1426. }
  1427. var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
  1428. : Math.pow(2, bits-1);
  1429. if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
  1430. // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
  1431. // TODO: In i64 mode 1, resign the two parts separately and safely
  1432. value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
  1433. }
  1434. return value;
  1435. }
  1436. // check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
  1437. if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
  1438. var ah = a >>> 16;
  1439. var al = a & 0xffff;
  1440. var bh = b >>> 16;
  1441. var bl = b & 0xffff;
  1442. return (al*bl + ((ah*bl + al*bh) << 16))|0;
  1443. };
  1444. Math.imul = Math['imul'];
  1445. if (!Math['clz32']) Math['clz32'] = function(x) {
  1446. x = x >>> 0;
  1447. for (var i = 0; i < 32; i++) {
  1448. if (x & (1 << (31 - i))) return i;
  1449. }
  1450. return 32;
  1451. };
  1452. Math.clz32 = Math['clz32']
  1453. if (!Math['trunc']) Math['trunc'] = function(x) {
  1454. return x < 0 ? Math.ceil(x) : Math.floor(x);
  1455. };
  1456. Math.trunc = Math['trunc'];
  1457. var Math_abs = Math.abs;
  1458. var Math_cos = Math.cos;
  1459. var Math_sin = Math.sin;
  1460. var Math_tan = Math.tan;
  1461. var Math_acos = Math.acos;
  1462. var Math_asin = Math.asin;
  1463. var Math_atan = Math.atan;
  1464. var Math_atan2 = Math.atan2;
  1465. var Math_exp = Math.exp;
  1466. var Math_log = Math.log;
  1467. var Math_sqrt = Math.sqrt;
  1468. var Math_ceil = Math.ceil;
  1469. var Math_floor = Math.floor;
  1470. var Math_pow = Math.pow;
  1471. var Math_imul = Math.imul;
  1472. var Math_fround = Math.fround;
  1473. var Math_round = Math.round;
  1474. var Math_min = Math.min;
  1475. var Math_clz32 = Math.clz32;
  1476. var Math_trunc = Math.trunc;
  1477. // A counter of dependencies for calling run(). If we need to
  1478. // do asynchronous work before running, increment this and
  1479. // decrement it. Incrementing must happen in a place like
  1480. // PRE_RUN_ADDITIONS (used by emcc to add file preloading).
  1481. // Note that you can add dependencies in preRun, even though
  1482. // it happens right before run - run will be postponed until
  1483. // the dependencies are met.
  1484. var runDependencies = 0;
  1485. var runDependencyWatcher = null;
  1486. var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
  1487. var runDependencyTracking = {};
  1488. function getUniqueRunDependency(id) {
  1489. var orig = id;
  1490. while (1) {
  1491. if (!runDependencyTracking[id]) return id;
  1492. id = orig + Math.random();
  1493. }
  1494. return id;
  1495. }
  1496. function addRunDependency(id) {
  1497. runDependencies++;
  1498. if (Module['monitorRunDependencies']) {
  1499. Module['monitorRunDependencies'](runDependencies);
  1500. }
  1501. if (id) {
  1502. assert(!runDependencyTracking[id]);
  1503. runDependencyTracking[id] = 1;
  1504. if (runDependencyWatcher === null && typeof setInterval !== 'undefined') {
  1505. // Check for missing dependencies every few seconds
  1506. runDependencyWatcher = setInterval(function() {
  1507. if (ABORT) {
  1508. clearInterval(runDependencyWatcher);
  1509. runDependencyWatcher = null;
  1510. return;
  1511. }
  1512. var shown = false;
  1513. for (var dep in runDependencyTracking) {
  1514. if (!shown) {
  1515. shown = true;
  1516. Module.printErr('still waiting on run dependencies:');
  1517. }
  1518. Module.printErr('dependency: ' + dep);
  1519. }
  1520. if (shown) {
  1521. Module.printErr('(end of list)');
  1522. }
  1523. }, 10000);
  1524. }
  1525. } else {
  1526. Module.printErr('warning: run dependency added without ID');
  1527. }
  1528. }
  1529. Module["addRunDependency"] = addRunDependency;
  1530. function removeRunDependency(id) {
  1531. runDependencies--;
  1532. if (Module['monitorRunDependencies']) {
  1533. Module['monitorRunDependencies'](runDependencies);
  1534. }
  1535. if (id) {
  1536. assert(runDependencyTracking[id]);
  1537. delete runDependencyTracking[id];
  1538. } else {
  1539. Module.printErr('warning: run dependency removed without ID');
  1540. }
  1541. if (runDependencies == 0) {
  1542. if (runDependencyWatcher !== null) {
  1543. clearInterval(runDependencyWatcher);
  1544. runDependencyWatcher = null;
  1545. }
  1546. if (dependenciesFulfilled) {
  1547. var callback = dependenciesFulfilled;
  1548. dependenciesFulfilled = null;
  1549. callback(); // can add another dependenciesFulfilled
  1550. }
  1551. }
  1552. }
  1553. Module["removeRunDependency"] = removeRunDependency;
  1554. Module["preloadedImages"] = {}; // maps url to image data
  1555. Module["preloadedAudios"] = {}; // maps url to audio data
  1556. var memoryInitializer = null;
  1557. // === Body ===
  1558. var ASM_CONSTS = [function($0, $1) { { Module.printErr('bad name in getProcAddress: ' + [Pointer_stringify($0), Pointer_stringify($1)]); } }];
  1559. function _emscripten_asm_const_iii(code, a0, a1) {
  1560. return ASM_CONSTS[code](a0, a1);
  1561. }
  1562. STATIC_BASE = 8;
  1563. STATICTOP = STATIC_BASE + 24064;
  1564. /* global initializers */ __ATINIT__.push();
  1565. /* memory initializer */ allocate([32,3,0,0,194,1,0,0,0,0,64,64,0,0,64,64,0,0,64,64,0,0,0,0,0,0,192,63,0,0,0,0,0,0,0,0,0,0,128,63,0,0,0,0,0,0,52,66,255,255,255,255,205,204,236,63,2,0,0,0,86,1,0,0,85,1,0,0,87,0,0,0,83,0,0,0,68,0,0,0,65,0,0,0,69,0,0,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,32,0,0,176,1,0,0,0,0,0,0,0,0,0,32,37,249,142,0,10,2,0,0,128,190,125,95,244,125,31,160,242,43,74,30,9,82,8,0,64,34,65,80,20,4,16,32,32,41,46,18,8,34,8,0,32,34,65,80,20,4,16,32,32,249,16,76,8,250,62,60,16,34,125,222,247,125,16,32,32,161,232,50,8,34,8,0,8,34,5,16,4,69,16,0,240,163,164,50,8,82,8,0,4,34,5,16,4,69,16,32,32,249,226,94,8,2,0,129,2,62,125,31,244,125,16,0,0,32,0,0,176,1,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,15,0,192,15,224,247,251,125,126,191,95,232,190,80,0,162,8,8,68,232,47,20,10,133,2,129,80,72,160,80,0,162,40,228,73,40,40,20,10,132,2,129,64,72,160,72,0,190,15,2,16,175,235,247,9,132,62,159,216,79,160,71,0,34,136,228,9,161,42,20,10,132,2,129,80,72,160,72,0,34,40,8,4,160,47,20,10,133,2,129,80,72,162,80,0,190,143,0,0,33,32,244,251,125,126,129,95,232,156,208,7,0,128,0,0,224,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,1,12,0,130,66,191,223,239,247,251,11,5,5,133,66,191,4,72,0,198,66,161,80,40,20,64,8,5,37,133,66,160,8,168,0,170,70,161,80,40,20,64,8,5,37,133,66,144,16,8,0,146,74,161,95,232,247,67,8,5,37,121,126,136,32,8,0,130,82,161,64,40,1,66,8,137,36,133,64,132,64,8,0,130,98,161,64,42,2,66,8,81,36,133,64,130,128,8,0,130,66,191,192,47,244,67,248,33,252,133,126,191,0,9,62,0,0,0,0,4,0,0,0,0,0,0,0,128,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,0,4,0,32,72,65,0,0,0,0,0,8,0,0,4,4,0,4,60,32,0,65,0,0,0,0,0,8,0,0,240,125,223,247,133,239,75,81,190,239,251,190,239,59,81,4,0,69,65,20,133,40,74,73,170,40,138,162,32,8,81,4,240,69,65,244,157,40,74,71,170,40,138,162,224,11,81,4,16,69,65,20,132,40,74,73,170,40,138,162,0,10,145,2,240,125,223,247,133,47,74,209,170,232,251,190,224,123,31,1,0,0,0,0,4,8,64,0,0,0,8,32,0,0,0,0,0,0,0,0,132,15,96,0,0,0,8,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,1,15,0,0,0,0,0,0,0,0,0,0,0,0,0,36,1,9,0,0,0,0,0,0,0,0,0,6,0,0,0,36,1,9,0,0,0,0,0,0,0,128,16,9,162,40,250,36,1,9,0,0,0,0,0,0,0,0,62,1,42,37,66,34,82,9,0,0,0,0,0,0,0,128,138,3,42,34,34,36,41,9,0,0,0,0,0,0,0,128,10,1,42,37,18,36,1,9,0,0,0,0,0,0,0,128,10,1,190,232,251,36,1,9,0,0,0,0,0,0,0,128,190,14,0,0,2,172,1,15,0,0,0,0,0,0,0,128,4,0,0,224,3,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,0,0,14,184,67,132,3,58,32,0,128,160,190,2,32,0,0,240,138,32,82,196,2,43,32,4,34,145,2,248,59,0,240,7,142,56,75,228,2,58,32,2,28,138,30,8,42,233,17,4,224,11,66,244,2,130,36,1,20,4,20,232,186,4,209,5,128,184,195,231,10,58,137,0,28,14,60,40,2,9,80,4,128,0,64,196,2,128,68,0,34,132,32,232,2,0,80,4,0,0,64,128,2,0,32,5,0,142,62,8,2,0,16,4,224,3,64,128,66,0,0,7,0,132,0,248,3,0,240,7,0,0,64,128,34,0,0,4,0,0,0,0,0,0,0,0,0,0,64,128,2,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,7,128,0,194,160,72,24,0,0,1,132,33,9,146,2,66,38,4,1,33,81,0,0,127,63,2,66,2,16,41,0,34,20,192,239,247,251,253,126,9,161,223,239,247,187,187,3,18,15,68,40,20,10,133,66,9,129,64,32,16,16,17,1,8,4,68,40,20,10,133,66,127,129,64,32,16,16,17,1,4,130,199,239,247,251,253,126,9,129,207,231,243,17,17,1,50,169,80,40,20,10,133,66,9,161,64,32,16,16,17,1,64,184,80,40,20,10,133,66,121,191,223,239,247,187,187,3,32,160,31,0,0,0,0,0,0,16,0,0,0,0,0,0,112,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,2,8,131,34,1,0,2,8,67,2,1,0,1,1,124,20,4,132,68,1,0,32,4,132,4,128,8,63,130,0,132,66,191,223,239,247,3,126,161,80,40,20,10,33,0,0,132,70,161,80,40,20,138,82,161,80,40,20,122,161,239,3,158,74,161,80,40,20,82,82,161,80,40,20,74,31,8,2,132,82,161,80,40,20,34,74,161,80,40,244,75,161,239,3,132,98,161,80,40,20,82,74,161,80,40,4,122,161,40,2,124,66,191,223,239,247,139,126,191,223,239,247,11,189,239,3,0,0,0,0,0,0,0,4,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,5,32,0,0,4,132,0,34,129,69,17,16,66,1,0,148,66,81,0,0,8,66,81,148,42,162,32,8,165,80,0,0,0,32,0,0,0,0,0,0,0,5,0,0,0,0,8,190,239,251,254,251,190,239,251,20,145,235,251,190,239,251,0,32,8,130,32,10,162,40,138,20,145,40,138,162,40,138,62,190,239,251,254,11,190,239,251,20,145,40,138,162,40,138,0,162,40,138,34,8,130,32,8,20,145,40,138,162,40,138,8,190,239,251,254,251,190,239,251,20,145,47,250,190,239,251,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,33,0,4,0,0,0,0,0,0,0,0,0,0,0,0,130,80,20,2,20,0,0,0,0,0,0,0,0,0,0,16,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,190,40,138,162,40,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,168,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,190,239,251,190,47,62,0,0,0,0,0,0,0,0,0,0,4,0,0,0,40,32,0,0,0,0,0,0,0,0,0,0,0,0,0,128,15,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,2,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,7,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,7,0,0,0,3,0,0,0,5,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,4,0,0,0,3,0,0,0,5,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,9,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,5,0,0,0,255,255,255,255,0,1,0,0,255,255,255,255,0,0,128,191,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,13,0,0,0,15,0,0,0,17,0,0,0,19,0,0,0,23,0,0,0,27,0,0,0,31,0,0,0,35,0,0,0,43,0,0,0,51,0,0,0,59,0,0,0,67,0,0,0,83,0,0,0,99,0,0,0,115,0,0,0,131,0,0,0,163,0,0,0,195,0,0,0,227,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,12,0,0,0,12,0,0,0,13,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,7,0,0,0,9,0,0,0,13,0,0,0,17,0,0,0,25,0,0,0,33,0,0,0,49,0,0,0,65,0,0,0,97,0,0,0,129,0,0,0,193,0,0,0,1,1,0,0,129,1,0,0,1,2,0,0,1,3,0,0,1,4,0,0,1,6,0,0,1,8,0,0,1,12,0,0,1,16,0,0,1,24,0,0,1,32,0,0,1,48,0,0,1,64,0,0,1,96,0,0,0,0,0,0,0,0,0,0,20,0,0,0,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,148,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,16,0,0,5,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,3,0,0,0,255,89,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,100,0,0,0,232,3,0,0,16,39,0,0,160,134,1,0,64,66,15,0,128,150,152,0,0,225,245,5,95,112,137,0,255,9,47,15,114,97,121,108,105,98,32,91,115,104,97,100,101,114,115,93,32,101,120,97,109,112,108,101,32,45,32,109,111,100,101,108,32,115,104,97,100,101,114,0,114,101,115,111,117,114,99,101,115,47,109,111,100,101,108,47,100,119,97,114,102,46,111,98,106,0,114,101,115,111,117,114,99,101,115,47,109,111,100,101,108,47,100,119,97,114,102,95,100,105,102,102,117,115,101,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,49,48,48,47,98,97,115,101,46,118,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,49,48,48,47,103,114,97,121,115,99,97,108,101,46,102,115,0,40,99,41,32,68,119,97,114,102,32,51,68,32,109,111,100,101,108,32,98,121,32,68,97,118,105,100,32,77,111,114,101,110,111,0,73,110,105,116,105,97,108,105,122,105,110,103,32,114,97,121,108,105,98,32,40,118,49,46,55,46,48,41,0,35,99,97,110,118,97,115,0,84,97,114,103,101,116,32,116,105,109,101,32,112,101,114,32,102,114,97,109,101,58,32,37,48,50,46,48,51,102,32,109,105,108,108,105,115,101,99,111,110,100,115,0,69,115,99,97,112,101,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,102,117,108,108,115,99,114,101,101,110,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,119,105,110,100,111,119,101,100,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,91,84,69,88,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,102,111,110,116,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,50,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,84,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,84,101,120,116,117,114,101,32,99,114,101,97,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,73,109,97,103,101,32,100,97,116,97,32,102,111,114,109,97,116,32,105,115,32,99,111,109,112,114,101,115,115,101,100,44,32,99,97,110,32,110,111,116,32,98,101,32,99,111,110,118,101,114,116,101,100,0,70,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,102,111,114,32,112,105,120,101,108,32,100,97,116,97,32,114,101,116,114,105,101,118,97,108,0,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,71,76,70,87,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,77,83,65,65,32,120,52,0,67,108,111,115,101,115,116,32,102,117,108,108,115,99,114,101,101,110,32,118,105,100,101,111,109,111,100,101,58,32,37,105,32,120,32,37,105,0,71,76,70,87,32,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,87,105,110,100,111,119,0,68,105,115,112,108,97,121,32,100,101,118,105,99,101,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,82,101,110,100,101,114,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,83,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,86,105,101,119,112,111,114,116,32,111,102,102,115,101,116,115,58,32,37,105,44,32,37,105,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,86,83,89,78,67,0,71,80,85,58,32,86,101,110,100,111,114,58,32,32,32,37,115,0,71,80,85,58,32,82,101,110,100,101,114,101,114,58,32,37,115,0,71,80,85,58,32,86,101,114,115,105,111,110,58,32,32,37,115,0,71,80,85,58,32,71,76,83,76,58,32,32,32,32,32,37,115,0,32,0,78,117,109,98,101,114,32,111,102,32,115,117,112,112,111,114,116,101,100,32,101,120,116,101,110,115,105,111,110,115,58,32,37,105,0,71,76,95,79,69,83,95,118,101,114,116,101,120,95,97,114,114,97,121,95,111,98,106,101,99,116,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,79,69,83,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,71,76,95,79,69,83,95,116,101,120,116,117,114,101,95,110,112,111,116,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,115,51,116,99,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,87,69,66,75,73,84,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,79,69,83,95,99,111,109,112,114,101,115,115,101,100,95,69,84,67,49,95,82,71,66,56,95,116,101,120,116,117,114,101,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,101,116,99,49,0,71,76,95,65,82,66,95,69,83,51,95,99,111,109,112,97,116,105,98,105,108,105,116,121,0,71,76,95,73,77,71,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,112,118,114,116,99,0,71,76,95,75,72,82,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,97,115,116,99,95,104,100,114,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,102,105,108,116,101,114,95,97,110,105,115,111,116,114,111,112,105,99,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,109,105,114,114,111,114,95,99,108,97,109,112,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,86,65,79,32,102,117,110,99,116,105,111,110,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,86,65,79,32,117,115,97,103,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,102,117,108,108,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,108,105,109,105,116,101,100,32,78,80,79,84,32,115,117,112,112,111,114,116,32,40,110,111,45,109,105,112,109,97,112,115,44,32,110,111,45,114,101,112,101,97,116,41,0,91,69,88,84,69,78,83,73,79,78,93,32,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,50,47,69,65,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,110,105,115,111,116,114,111,112,105,99,32,116,101,120,116,117,114,101,115,32,102,105,108,116,101,114,105,110,103,32,115,117,112,112,111,114,116,101,100,32,40,109,97,120,58,32,37,46,48,102,88,41,0,91,69,88,84,69,78,83,73,79,78,93,32,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,116,101,120,116,117,114,101,32,109,111,100,101,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,79,112,101,110,71,76,32,100,101,102,97,117,108,116,32,115,116,97,116,101,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,67,80,85,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,44,32,116,114,105,97,110,103,108,101,115,44,32,113,117,97,100,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,51,32,118,101,114,116,101,120,80,111,115,105,116,105,111,110,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,50,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,52,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,109,97,116,52,32,109,118,112,77,97,116,114,105,120,59,32,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,102,114,97,103,84,101,120,67,111,111,114,100,32,61,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,10,32,32,32,32,102,114,97,103,67,111,108,111,114,32,61,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,10,32,32,32,32,103,108,95,80,111,115,105,116,105,111,110,32,61,32,109,118,112,77,97,116,114,105,120,42,118,101,99,52,40,118,101,114,116,101,120,80,111,115,105,116,105,111,110,44,32,49,46,48,41,59,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,112,114,101,99,105,115,105,111,110,32,109,101,100,105,117,109,112,32,102,108,111,97,116,59,32,32,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,115,97,109,112,108,101,114,50,68,32,116,101,120,116,117,114,101,48,59,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,118,101,99,52,32,99,111,108,68,105,102,102,117,115,101,59,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,118,101,99,52,32,116,101,120,101,108,67,111,108,111,114,32,61,32,116,101,120,116,117,114,101,50,68,40,116,101,120,116,117,114,101,48,44,32,102,114,97,103,84,101,120,67,111,111,114,100,41,59,32,10,32,32,32,32,103,108,95,70,114,97,103,67,111,108,111,114,32,61,32,116,101,120,101,108,67,111,108,111,114,42,99,111,108,68,105,102,102,117,115,101,42,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,118,101,114,116,101,120,80,111,115,105,116,105,111,110,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,50,0,118,101,114,116,101,120,78,111,114,109,97,108,0,118,101,114,116,101,120,84,97,110,103,101,110,116,0,118,101,114,116,101,120,67,111,108,111,114,0,109,118,112,77,97,116,114,105,120,0,99,111,108,68,105,102,102,117,115,101,0,99,111,108,65,109,98,105,101,110,116,0,99,111,108,83,112,101,99,117,108,97,114,0,116,101,120,116,117,114,101,48,0,116,101,120,116,117,114,101,49,0,116,101,120,116,117,114,101,50,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,118,101,114,116,101,120,32,115,104,97,100,101,114,46,46,46,0,37,115,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,86,101,114,116,101,120,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,102,114,97,103,109,101,110,116,32,115,104,97,100,101,114,46,46,46,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,114,97,103,109,101,110,116,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,108,105,110,107,32,115,104,97,100,101,114,32,112,114,111,103,114,97,109,46,46,46,0,91,83,72,68,82,32,73,68,32,37,105,93,32,83,104,97,100,101,114,32,112,114,111,103,114,97,109,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,79,87,78,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,32,40,37,105,120,37,105,41,32,105,115,32,98,105,103,103,101,114,32,116,104,97,110,32,100,105,115,112,108,97,121,32,115,105,122,101,32,40,37,105,120,37,105,41,0,68,111,119,110,115,99,97,108,101,32,109,97,116,114,105,120,32,103,101,110,101,114,97,116,101,100,44,32,99,111,110,116,101,110,116,32,119,105,108,108,32,98,101,32,114,101,110,100,101,114,101,100,32,97,116,58,32,37,105,32,120,32,37,105,0,85,80,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,32,45,62,32,68,105,115,112,108,97,121,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,91,71,76,70,87,51,32,69,114,114,111,114,93,32,67,111,100,101,58,32,37,105,32,68,101,99,114,105,112,116,105,111,110,58,32,37,115,0,73,78,70,79,58,32,0,87,65,82,78,73,78,71,58,32,0,87,105,110,100,111,119,32,99,108,111,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,40,98,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,41,32,102,114,111,109,32,86,82,65,77,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,83,116,97,99,107,32,66,117,102,102,101,114,32,79,118,101,114,102,108,111,119,32,40,77,65,88,32,37,105,32,77,97,116,114,105,120,41,0,77,65,88,95,76,73,78,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,84,82,73,65,78,71,76,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,81,85,65,68,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,91,86,65,79,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,91,86,66,79,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,118,101,114,116,101,120,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,91,86,65,79,32,73,68,32,37,105,93,32,77,101,115,104,32,117,112,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,77,101,115,104,32,99,111,117,108,100,32,110,111,116,32,98,101,32,117,112,108,111,97,100,101,100,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,91,86,66,79,115,93,32,77,101,115,104,32,117,112,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,109,111,100,101,108,77,97,116,114,105,120,0,118,105,101,119,68,105,114,0,103,108,111,115,115,105,110,101,115,115,0,117,115,101,78,111,114,109,97,108,0,117,115,101,83,112,101,99,117,108,97,114,0,91,37,115,93,32,84,101,120,116,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,67,117,115,116,111,109,32,115,104,97,100,101,114,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,91,83,72,68,82,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,115,104,97,100,101,114,32,112,114,111,103,114,97,109,32,100,97,116,97,0,114,105,46,98,105,116,115,95,112,101,114,95,99,104,97,110,110,101,108,32,61,61,32,49,54,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,105,109,97,103,101,46,104,0,115,116,98,105,95,95,108,111,97,100,95,97,110,100,95,112,111,115,116,112,114,111,99,101,115,115,95,56,98,105,116,0,111,117,116,111,102,109,101,109,0,117,110,107,110,111,119,110,32,105,109,97,103,101,32,116,121,112,101,0,98,97,100,32,114,101,113,95,99,111,109,112,0,114,101,113,95,99,111,109,112,32,62,61,32,49,32,38,38,32,114,101,113,95,99,111,109,112,32,60,61,32,52,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,49,54,0,48,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,0,109,117,108,116,105,112,108,101,32,73,72,68,82,0,98,97,100,32,73,72,68,82,32,108,101,110,0,116,111,111,32,108,97,114,103,101,0,49,47,50,47,52,47,56,47,49,54,45,98,105,116,32,111,110,108,121,0,98,97,100,32,99,116,121,112,101,0,98,97,100,32,99,111,109,112,32,109,101,116,104,111,100,0,98,97,100,32,102,105,108,116,101,114,32,109,101,116,104,111,100,0,98,97,100,32,105,110,116,101,114,108,97,99,101,32,109,101,116,104,111,100,0,48,45,112,105,120,101,108,32,105,109,97,103,101,0,102,105,114,115,116,32,110,111,116,32,73,72,68,82,0,105,110,118,97,108,105,100,32,80,76,84,69,0,116,82,78,83,32,97,102,116,101,114,32,73,68,65,84], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1566. /* memory initializer */ allocate([0,116,82,78,83,32,98,101,102,111,114,101,32,80,76,84,69,0,98,97,100,32,116,82,78,83,32,108,101,110,0,116,82,78,83,32,119,105,116,104,32,97,108,112,104,97,0,0,255,85,0,17,0,0,0,1,110,111,32,80,76,84,69,0,111,117,116,111,102,100,97,116,97,0,110,111,32,73,68,65,84,0,88,88,88,88,32,80,78,71,32,99,104,117,110,107,32,110,111,116,32,107,110,111,119,110,0,115,45,62,105,109,103,95,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,100,101,95,105,112,104,111,110,101,0,111,117,116,95,110,32,61,61,32,50,32,124,124,32,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,49,54,0,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,32,124,124,32,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,43,49,0,115,116,98,105,95,95,99,114,101,97,116,101,95,112,110,103,95,105,109,97,103,101,95,114,97,119,0,110,111,116,32,101,110,111,117,103,104,32,112,105,120,101,108,115,0,105,109,103,95,119,105,100,116,104,95,98,121,116,101,115,32,60,61,32,120,0,0,1,0,5,6,105,109,103,95,110,43,49,32,61,61,32,111,117,116,95,110,0,105,110,118,97,108,105,100,32,102,105,108,116,101,114,0,105,109,103,95,110,32,61,61,32,51,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,98,97,100,32,104,117,102,102,109,97,110,32,99,111,100,101,0,98,97,100,32,100,105,115,116,0,111,117,116,112,117,116,32,98,117,102,102,101,114,32,108,105,109,105,116,0,122,45,62,115,105,122,101,91,98,93,32,61,61,32,115,0,115,116,98,105,95,95,122,104,117,102,102,109,97,110,95,100,101,99,111,100,101,95,115,108,111,119,112,97,116,104,0,98,105,116,115,32,60,61,32,49,54,0,115,116,98,105,95,95,98,105,116,95,114,101,118,101,114,115,101,0,122,45,62,99,111,100,101,95,98,117,102,102,101,114,32,60,32,40,49,85,32,60,60,32,122,45,62,110,117,109,95,98,105,116,115,41,0,115,116,98,105,95,95,102,105,108,108,95,98,105,116,115,0,98,97,100,32,99,111,100,101,108,101,110,103,116,104,115,0,99,32,61,61,32,49,56,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,104,117,102,102,109,97,110,95,99,111,100,101,115,0,98,97,100,32,115,105,122,101,115,0,97,45,62,110,117,109,95,98,105,116,115,32,61,61,32,48,0,115,116,98,105,95,95,112,97,114,115,101,95,117,110,99,111,109,112,114,101,115,115,101,100,95,98,108,111,99,107,0,122,108,105,98,32,99,111,114,114,117,112,116,0,114,101,97,100,32,112,97,115,116,32,98,117,102,102,101,114,0,98,97,100,32,122,108,105,98,32,104,101,97,100,101,114,0,110,111,32,112,114,101,115,101,116,32,100,105,99,116,0,98,97,100,32,99,111,109,112,114,101,115,115,105,111,110,0,98,97,100,32,112,110,103,32,115,105,103,0,46,114,114,101,115,0,91,37,115,93,32,82,101,115,111,117,114,99,101,32,102,105,108,101,32,100,111,101,115,32,110,111,116,32,99,111,110,116,97,105,110,32,105,109,97,103,101,32,100,97,116,97,0,46,112,110,103,0,91,37,115,93,32,73,109,97,103,101,32,102,105,108,101,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,37,115,93,32,73,109,97,103,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,91,37,115,93,32,73,109,97,103,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,73,109,97,103,101,32,102,111,114,109,97,116,32,110,111,116,32,114,101,99,111,103,110,105,122,101,100,0,114,98,0,91,37,115,93,32,114,82,69,83,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,91,37,115,93,32,84,104,105,115,32,105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,115,111,117,114,99,101,32,100,97,116,97,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,113,117,101,115,116,101,100,32,114,101,115,111,117,114,99,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,102,111,117,110,100,0,79,117,116,32,111,102,32,109,101,109,111,114,121,32,119,104,105,108,101,32,100,101,99,111,109,112,114,101,115,115,105,110,103,32,100,97,116,97,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,105,111,110,32,102,97,105,108,101,100,0,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,32,100,111,32,110,111,116,32,109,97,116,99,104,44,32,100,97,116,97,32,109,97,121,32,98,101,32,99,111,114,114,117,112,116,101,100,0,32,45,45,32,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,32,45,45,32,82,101,116,117,114,110,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,102,114,111,109,32,37,117,32,98,121,116,101,115,32,116,111,32,37,117,32,98,121,116,101,115,0,5,5,4,0,16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,2,3,7,0,3,3,11,0,84,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,99,114,101,97,116,101,100,0,37,50,105,32,70,80,83,0,46,111,98,106,0,77,101,115,104,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,114,116,0,91,37,115,93,32,79,66,74,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,37,99,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,118,101,114,116,105,99,101,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,116,101,120,99,111,111,114,100,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,110,111,114,109,97,108,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,116,114,105,97,110,103,108,101,115,58,32,37,105,0,37,102,32,37,102,37,42,91,94,10,93,115,10,0,37,102,32,37,102,32,37,102,0,91,37,115,93,32,78,111,32,110,111,114,109,97,108,115,32,100,97,116,97,32,111,110,32,79,66,74,44,32,110,111,114,109,97,108,115,32,119,105,108,108,32,98,101,32,103,101,110,101,114,97,116,101,100,32,102,114,111,109,32,102,97,99,101,115,32,100,97,116,97,0,37,105,32,37,105,32,37,105,0,37,105,47,37,105,32,37,105,47,37,105,32,37,105,47,37,105,0,37,105,47,47,37,105,32,37,105,47,47,37,105,32,37,105,47,47,37,105,0,37,105,47,37,105,47,37,105,32,37,105,47,37,105,47,37,105,32,37,105,47,37,105,47,37,105,0,91,37,115,93,32,77,111,100,101,108,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,105,110,32,82,65,77,32,40,67,80,85,41,0,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,100,97,116,97,32,40,109,101,115,104,32,97,110,100,32,109,97,116,101,114,105,97,108,41,32,102,114,111,109,32,82,65,77,32,97,110,100,32,86,82,65,77,0,69,88,84,0,65,82,66,0,79,69,83,0,65,78,71,76,69,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,0,103,108,85,115,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,85,115,101,80,114,111,103,114,97,109,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,0,103,108,65,116,116,97,99,104,79,98,106,101,99,116,0,103,108,65,116,116,97,99,104,83,104,97,100,101,114,0,103,108,68,101,116,97,99,104,79,98,106,101,99,116,0,103,108,68,101,116,97,99,104,83,104,97,100,101,114,0,103,108,80,105,120,101,108,83,116,111,114,101,105,0,103,108,71,101,116,83,116,114,105,110,103,0,103,108,71,101,116,73,110,116,101,103,101,114,118,0,103,108,71,101,116,70,108,111,97,116,118,0,103,108,71,101,116,66,111,111,108,101,97,110,118,0,103,108,71,101,110,84,101,120,116,117,114,101,115,0,103,108,68,101,108,101,116,101,84,101,120,116,117,114,101,115,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,84,101,120,73,109,97,103,101,50,68,0,103,108,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,82,101,97,100,80,105,120,101,108,115,0,103,108,66,105,110,100,84,101,120,116,117,114,101,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,84,101,120,116,117,114,101,0,103,108,71,101,110,66,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,66,117,102,102,101,114,115,0,103,108,71,101,116,66,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,66,117,102,102,101,114,68,97,116,97,0,103,108,66,117,102,102,101,114,83,117,98,68,97,116,97,0,103,108,73,115,66,117,102,102,101,114,0,103,108,71,101,110,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,66,105,110,100,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,82,101,110,100,101,114,98,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,85,110,105,102,111,114,109,102,118,0,103,108,71,101,116,85,110,105,102,111,114,109,105,118,0,103,108,71,101,116,85,110,105,102,111,114,109,76,111,99,97,116,105,111,110,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,102,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,105,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,118,0,103,108,71,101,116,65,99,116,105,118,101,85,110,105,102,111,114,109,0,103,108,85,110,105,102,111,114,109,49,102,0,103,108,85,110,105,102,111,114,109,50,102,0,103,108,85,110,105,102,111,114,109,51,102,0,103,108,85,110,105,102,111,114,109,52,102,0,103,108,85,110,105,102,111,114,109,49,105,0,103,108,85,110,105,102,111,114,109,50,105,0,103,108,85,110,105,102,111,114,109,51,105,0,103,108,85,110,105,102,111,114,109,52,105,0,103,108,85,110,105,102,111,114,109,49,105,118,0,103,108,85,110,105,102,111,114,109,50,105,118,0,103,108,85,110,105,102,111,114,109,51,105,118,0,103,108,85,110,105,102,111,114,109,52,105,118,0,103,108,85,110,105,102,111,114,109,49,102,118,0,103,108,85,110,105,102,111,114,109,50,102,118,0,103,108,85,110,105,102,111,114,109,51,102,118,0,103,108,85,110,105,102,111,114,109,52,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,50,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,51,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,52,102,118,0,103,108,66,105,110,100,66,117,102,102,101,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,118,0,103,108,71,101,116,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,71,101,116,65,99,116,105,118,101,65,116,116,114,105,98,0,103,108,68,101,108,101,116,101,83,104,97,100,101,114,0,103,108,71,101,116,65,116,116,97,99,104,101,100,83,104,97,100,101,114,115,0,103,108,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,71,101,116,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,67,111,109,112,105,108,101,83,104,97,100,101,114,0,103,108,71,101,116,83,104,97,100,101,114,73,110,102,111,76,111,103,0,103,108,71,101,116,83,104,97,100,101,114,105,118,0,103,108,71,101,116,80,114,111,103,114,97,109,105,118,0,103,108,73,115,83,104,97,100,101,114,0,103,108,68,101,108,101,116,101,80,114,111,103,114,97,109,0,103,108,71,101,116,83,104,97,100,101,114,80,114,101,99,105,115,105,111,110,70,111,114,109,97,116,0,103,108,76,105,110,107,80,114,111,103,114,97,109,0,103,108,71,101,116,80,114,111,103,114,97,109,73,110,102,111,76,111,103,0,103,108,86,97,108,105,100,97,116,101,80,114,111,103,114,97,109,0,103,108,73,115,80,114,111,103,114,97,109,0,103,108,66,105,110,100,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,66,105,110,100,70,114,97,109,101,98,117,102,102,101,114,0,103,108,71,101,110,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,70,114,97,109,101,98,117,102,102,101,114,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,70,114,97,109,101,98,117,102,102,101,114,84,101,120,116,117,114,101,50,68,0,103,108,71,101,116,70,114,97,109,101,98,117,102,102,101,114,65,116,116,97,99,104,109,101,110,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,70,114,97,109,101,98,117,102,102,101,114,0,103,108,68,101,108,101,116,101,79,98,106,101,99,116,0,103,108,71,101,116,79,98,106,101,99,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,71,101,116,73,110,102,111,76,111,103,0,103,108,66,105,110,100,80,114,111,103,114,97,109,0,103,108,71,101,116,80,111,105,110,116,101,114,118,0,103,108,68,114,97,119,82,97,110,103,101,69,108,101,109,101,110,116,115,0,103,108,69,110,97,98,108,101,67,108,105,101,110,116,83,116,97,116,101,0,103,108,86,101,114,116,101,120,80,111,105,110,116,101,114,0,103,108,84,101,120,67,111,111,114,100,80,111,105,110,116,101,114,0,103,108,78,111,114,109,97,108,80,111,105,110,116,101,114,0,103,108,67,111,108,111,114,80,111,105,110,116,101,114,0,103,108,67,108,105,101,110,116,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,0,103,108,77,97,116,114,105,120,77,111,100,101,0,103,108,76,111,97,100,73,100,101,110,116,105,116,121,0,103,108,76,111,97,100,77,97,116,114,105,120,102,0,103,108,70,114,117,115,116,117,109,0,103,108,82,111,116,97,116,101,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,0,103,108,69,110,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,105,115,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,114,97,119,65,114,114,97,121,115,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,0,103,108,83,104,97,100,101,114,66,105,110,97,114,121,0,103,108,82,101,108,101,97,115,101,83,104,97,100,101,114,67,111,109,112,105,108,101,114,0,103,108,71,101,116,69,114,114,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,68,105,118,105,115,111,114,0,103,108,68,114,97,119,65,114,114,97,121,115,73,110,115,116,97,110,99,101,100,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,73,110,115,116,97,110,99,101,100,0,103,108,70,105,110,105,115,104,0,103,108,70,108,117,115,104,0,103,108,67,108,101,97,114,68,101,112,116,104,0,103,108,67,108,101,97,114,68,101,112,116,104,102,0,103,108,68,101,112,116,104,70,117,110,99,0,103,108,69,110,97,98,108,101,0,103,108,68,105,115,97,98,108,101,0,103,108,70,114,111,110,116,70,97,99,101,0,103,108,67,117,108,108,70,97,99,101,0,103,108,67,108,101,97,114,0,103,108,76,105,110,101,87,105,100,116,104,0,103,108,67,108,101,97,114,83,116,101,110,99,105,108,0,103,108,68,101,112,116,104,77,97,115,107,0,103,108,83,116,101,110,99,105,108,77,97,115,107,0,103,108,67,104,101,99,107,70,114,97,109,101,98,117,102,102,101,114,83,116,97,116,117,115,0,103,108,71,101,110,101,114,97,116,101,77,105,112,109,97,112,0,103,108,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,0,103,108,73,115,69,110,97,98,108,101,100,0,103,108,66,108,101,110,100,70,117,110,99,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,83,101,112,97,114,97,116,101,0,103,108,68,101,112,116,104,82,97,110,103,101,0,103,108,68,101,112,116,104,82,97,110,103,101,102,0,103,108,83,116,101,110,99,105,108,77,97,115,107,83,101,112,97,114,97,116,101,0,103,108,72,105,110,116,0,103,108,80,111,108,121,103,111,110,79,102,102,115,101,116,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,0,103,108,83,97,109,112,108,101,67,111,118,101,114,97,103,101,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,0,103,108,83,116,101,110,99,105,108,70,117,110,99,0,103,108,83,116,101,110,99,105,108,79,112,0,103,108,86,105,101,119,112,111,114,116,0,103,108,67,108,101,97,114,67,111,108,111,114,0,103,108,83,99,105,115,115,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,0,103,108,67,111,108,111,114,77,97,115,107,0,103,108,82,101,110,100,101,114,98,117,102,102,101,114,83,116,111,114,97,103,101,0,103,108,66,108,101,110,100,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,66,108,101,110,100,67,111,108,111,114,0,103,108,83,116,101,110,99,105,108,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,83,116,101,110,99,105,108,79,112,83,101,112,97,114,97,116,101,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,0,103,108,67,111,112,121,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,112,121,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,68,114,97,119,66,117,102,102,101,114,115,0,123,32,77,111,100,117,108,101,46,112,114,105,110,116,69,114,114,40,39,98,97,100,32,110,97,109,101,32,105,110,32,103,101,116,80,114,111,99,65,100,100,114,101,115,115,58,32,39,32,43,32,91,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,48,41,44,32,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,49,41,93,41,59,32,125,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,4,7,3,6,5,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,78,65,78,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,46,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,105,110,102,105,110,105,116,121,0,110,97,110,0,114,119,97,0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE+10240);
  1567. /* no memory initializer */
  1568. var tempDoublePtr = STATICTOP; STATICTOP += 16;
  1569. assert(tempDoublePtr % 8 == 0);
  1570. function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
  1571. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1572. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1573. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1574. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1575. }
  1576. function copyTempDouble(ptr) {
  1577. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1578. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1579. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1580. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1581. HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
  1582. HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
  1583. HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
  1584. HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
  1585. }
  1586. // {{PRE_LIBRARY}}
  1587. var GL={counter:1,lastError:0,buffers:[],mappedBuffers:{},programs:[],framebuffers:[],renderbuffers:[],textures:[],uniforms:[],shaders:[],vaos:[],contexts:[],currentContext:null,offscreenCanvases:{},timerQueriesEXT:[],byteSizeByTypeRoot:5120,byteSizeByType:[1,1,2,2,4,4,4,2,3,4,8],programInfos:{},stringCache:{},tempFixedLengthArray:[],packAlignment:4,unpackAlignment:4,init:function () {
  1588. GL.miniTempBuffer = new Float32Array(GL.MINI_TEMP_BUFFER_SIZE);
  1589. for (var i = 0; i < GL.MINI_TEMP_BUFFER_SIZE; i++) {
  1590. GL.miniTempBufferViews[i] = GL.miniTempBuffer.subarray(0, i+1);
  1591. }
  1592. // For functions such as glDrawBuffers, glInvalidateFramebuffer and glInvalidateSubFramebuffer that need to pass a short array to the WebGL API,
  1593. // create a set of short fixed-length arrays to avoid having to generate any garbage when calling those functions.
  1594. for (var i = 0; i < 32; i++) {
  1595. GL.tempFixedLengthArray.push(new Array(i));
  1596. }
  1597. },recordError:function recordError(errorCode) {
  1598. if (!GL.lastError) {
  1599. GL.lastError = errorCode;
  1600. }
  1601. },getNewId:function (table) {
  1602. var ret = GL.counter++;
  1603. for (var i = table.length; i < ret; i++) {
  1604. table[i] = null;
  1605. }
  1606. return ret;
  1607. },MINI_TEMP_BUFFER_SIZE:256,miniTempBuffer:null,miniTempBufferViews:[0],getSource:function (shader, count, string, length) {
  1608. var source = '';
  1609. for (var i = 0; i < count; ++i) {
  1610. var frag;
  1611. if (length) {
  1612. var len = HEAP32[(((length)+(i*4))>>2)];
  1613. if (len < 0) {
  1614. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1615. } else {
  1616. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)], len);
  1617. }
  1618. } else {
  1619. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1620. }
  1621. source += frag;
  1622. }
  1623. return source;
  1624. },createContext:function (canvas, webGLContextAttributes) {
  1625. if (typeof webGLContextAttributes['majorVersion'] === 'undefined' && typeof webGLContextAttributes['minorVersion'] === 'undefined') {
  1626. webGLContextAttributes['majorVersion'] = 1;
  1627. webGLContextAttributes['minorVersion'] = 0;
  1628. }
  1629. var ctx;
  1630. var errorInfo = '?';
  1631. function onContextCreationError(event) {
  1632. errorInfo = event.statusMessage || errorInfo;
  1633. }
  1634. try {
  1635. canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
  1636. try {
  1637. if (webGLContextAttributes['majorVersion'] == 1 && webGLContextAttributes['minorVersion'] == 0) {
  1638. ctx = canvas.getContext("webgl", webGLContextAttributes) || canvas.getContext("experimental-webgl", webGLContextAttributes);
  1639. } else if (webGLContextAttributes['majorVersion'] == 2 && webGLContextAttributes['minorVersion'] == 0) {
  1640. ctx = canvas.getContext("webgl2", webGLContextAttributes) || canvas.getContext("experimental-webgl2", webGLContextAttributes);
  1641. } else {
  1642. throw 'Unsupported WebGL context version ' + majorVersion + '.' + minorVersion + '!'
  1643. }
  1644. } finally {
  1645. canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
  1646. }
  1647. if (!ctx) throw ':(';
  1648. } catch (e) {
  1649. Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);
  1650. return 0;
  1651. }
  1652. // possible GL_DEBUG entry point: ctx = wrapDebugGL(ctx);
  1653. if (!ctx) return 0;
  1654. return GL.registerContext(ctx, webGLContextAttributes);
  1655. },registerContext:function (ctx, webGLContextAttributes) {
  1656. var handle = GL.getNewId(GL.contexts);
  1657. var context = {
  1658. handle: handle,
  1659. attributes: webGLContextAttributes,
  1660. version: webGLContextAttributes['majorVersion'],
  1661. GLctx: ctx
  1662. };
  1663. // Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
  1664. if (ctx.canvas) ctx.canvas.GLctxObject = context;
  1665. GL.contexts[handle] = context;
  1666. if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes['enableExtensionsByDefault']) {
  1667. GL.initExtensions(context);
  1668. }
  1669. return handle;
  1670. },makeContextCurrent:function (contextHandle) {
  1671. var context = GL.contexts[contextHandle];
  1672. if (!context) return false;
  1673. GLctx = Module.ctx = context.GLctx; // Active WebGL context object.
  1674. GL.currentContext = context; // Active Emscripten GL layer context object.
  1675. return true;
  1676. },getContext:function (contextHandle) {
  1677. return GL.contexts[contextHandle];
  1678. },deleteContext:function (contextHandle) {
  1679. if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null;
  1680. if (typeof JSEvents === 'object') JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas); // Release all JS event handlers on the DOM element that the GL context is associated with since the context is now deleted.
  1681. if (GL.contexts[contextHandle] && GL.contexts[contextHandle].GLctx.canvas) GL.contexts[contextHandle].GLctx.canvas.GLctxObject = undefined; // Make sure the canvas object no longer refers to the context object so there are no GC surprises.
  1682. GL.contexts[contextHandle] = null;
  1683. },initExtensions:function (context) {
  1684. // If this function is called without a specific context object, init the extensions of the currently active context.
  1685. if (!context) context = GL.currentContext;
  1686. if (context.initExtensionsDone) return;
  1687. context.initExtensionsDone = true;
  1688. var GLctx = context.GLctx;
  1689. context.maxVertexAttribs = GLctx.getParameter(GLctx.MAX_VERTEX_ATTRIBS);
  1690. // Detect the presence of a few extensions manually, this GL interop layer itself will need to know if they exist.
  1691. if (context.version < 2) {
  1692. // Extension available from Firefox 26 and Google Chrome 30
  1693. var instancedArraysExt = GLctx.getExtension('ANGLE_instanced_arrays');
  1694. if (instancedArraysExt) {
  1695. GLctx['vertexAttribDivisor'] = function(index, divisor) { instancedArraysExt['vertexAttribDivisorANGLE'](index, divisor); };
  1696. GLctx['drawArraysInstanced'] = function(mode, first, count, primcount) { instancedArraysExt['drawArraysInstancedANGLE'](mode, first, count, primcount); };
  1697. GLctx['drawElementsInstanced'] = function(mode, count, type, indices, primcount) { instancedArraysExt['drawElementsInstancedANGLE'](mode, count, type, indices, primcount); };
  1698. }
  1699. // Extension available from Firefox 25 and WebKit
  1700. var vaoExt = GLctx.getExtension('OES_vertex_array_object');
  1701. if (vaoExt) {
  1702. GLctx['createVertexArray'] = function() { return vaoExt['createVertexArrayOES'](); };
  1703. GLctx['deleteVertexArray'] = function(vao) { vaoExt['deleteVertexArrayOES'](vao); };
  1704. GLctx['bindVertexArray'] = function(vao) { vaoExt['bindVertexArrayOES'](vao); };
  1705. GLctx['isVertexArray'] = function(vao) { return vaoExt['isVertexArrayOES'](vao); };
  1706. }
  1707. var drawBuffersExt = GLctx.getExtension('WEBGL_draw_buffers');
  1708. if (drawBuffersExt) {
  1709. GLctx['drawBuffers'] = function(n, bufs) { drawBuffersExt['drawBuffersWEBGL'](n, bufs); };
  1710. }
  1711. }
  1712. GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query");
  1713. // These are the 'safe' feature-enabling extensions that don't add any performance impact related to e.g. debugging, and
  1714. // should be enabled by default so that client GLES2/GL code will not need to go through extra hoops to get its stuff working.
  1715. // As new extensions are ratified at http://www.khronos.org/registry/webgl/extensions/ , feel free to add your new extensions
  1716. // here, as long as they don't produce a performance impact for users that might not be using those extensions.
  1717. // E.g. debugging-related extensions should probably be off by default.
  1718. var automaticallyEnabledExtensions = [ "OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives",
  1719. "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture",
  1720. "OES_element_index_uint", "EXT_texture_filter_anisotropic", "ANGLE_instanced_arrays",
  1721. "OES_texture_float_linear", "OES_texture_half_float_linear", "WEBGL_compressed_texture_atc",
  1722. "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
  1723. "EXT_frag_depth", "EXT_sRGB", "WEBGL_draw_buffers", "WEBGL_shared_resources",
  1724. "EXT_shader_texture_lod", "EXT_color_buffer_float"];
  1725. function shouldEnableAutomatically(extension) {
  1726. var ret = false;
  1727. automaticallyEnabledExtensions.forEach(function(include) {
  1728. if (ext.indexOf(include) != -1) {
  1729. ret = true;
  1730. }
  1731. });
  1732. return ret;
  1733. }
  1734. var exts = GLctx.getSupportedExtensions();
  1735. if (exts && exts.length > 0) {
  1736. GLctx.getSupportedExtensions().forEach(function(ext) {
  1737. if (automaticallyEnabledExtensions.indexOf(ext) != -1) {
  1738. GLctx.getExtension(ext); // Calling .getExtension enables that extension permanently, no need to store the return value to be enabled.
  1739. }
  1740. });
  1741. }
  1742. },populateUniformTable:function (program) {
  1743. var p = GL.programs[program];
  1744. GL.programInfos[program] = {
  1745. uniforms: {},
  1746. maxUniformLength: 0, // This is eagerly computed below, since we already enumerate all uniforms anyway.
  1747. maxAttributeLength: -1, // This is lazily computed and cached, computed when/if first asked, "-1" meaning not computed yet.
  1748. maxUniformBlockNameLength: -1 // Lazily computed as well
  1749. };
  1750. var ptable = GL.programInfos[program];
  1751. var utable = ptable.uniforms;
  1752. // A program's uniform table maps the string name of an uniform to an integer location of that uniform.
  1753. // The global GL.uniforms map maps integer locations to WebGLUniformLocations.
  1754. var numUniforms = GLctx.getProgramParameter(p, GLctx.ACTIVE_UNIFORMS);
  1755. for (var i = 0; i < numUniforms; ++i) {
  1756. var u = GLctx.getActiveUniform(p, i);
  1757. var name = u.name;
  1758. ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length+1);
  1759. // Strip off any trailing array specifier we might have got, e.g. "[0]".
  1760. if (name.indexOf(']', name.length-1) !== -1) {
  1761. var ls = name.lastIndexOf('[');
  1762. name = name.slice(0, ls);
  1763. }
  1764. // Optimize memory usage slightly: If we have an array of uniforms, e.g. 'vec3 colors[3];', then
  1765. // only store the string 'colors' in utable, and 'colors[0]', 'colors[1]' and 'colors[2]' will be parsed as 'colors'+i.
  1766. // Note that for the GL.uniforms table, we still need to fetch the all WebGLUniformLocations for all the indices.
  1767. var loc = GLctx.getUniformLocation(p, name);
  1768. if (loc != null)
  1769. {
  1770. var id = GL.getNewId(GL.uniforms);
  1771. utable[name] = [u.size, id];
  1772. GL.uniforms[id] = loc;
  1773. for (var j = 1; j < u.size; ++j) {
  1774. var n = name + '['+j+']';
  1775. loc = GLctx.getUniformLocation(p, n);
  1776. id = GL.getNewId(GL.uniforms);
  1777. GL.uniforms[id] = loc;
  1778. }
  1779. }
  1780. }
  1781. }};function _emscripten_glIsRenderbuffer(renderbuffer) {
  1782. var rb = GL.renderbuffers[renderbuffer];
  1783. if (!rb) return 0;
  1784. return GLctx.isRenderbuffer(rb);
  1785. }
  1786. function _emscripten_glStencilMaskSeparate(x0, x1) { GLctx['stencilMaskSeparate'](x0, x1) }
  1787. function _emscripten_get_now() { abort() }
  1788. function _emscripten_set_main_loop_timing(mode, value) {
  1789. Browser.mainLoop.timingMode = mode;
  1790. Browser.mainLoop.timingValue = value;
  1791. if (!Browser.mainLoop.func) {
  1792. console.error('emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.');
  1793. return 1; // Return non-zero on failure, can't set timing mode when there is no main loop.
  1794. }
  1795. if (mode == 0 /*EM_TIMING_SETTIMEOUT*/) {
  1796. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() {
  1797. var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now())|0;
  1798. setTimeout(Browser.mainLoop.runner, timeUntilNextTick); // doing this each time means that on exception, we stop
  1799. };
  1800. Browser.mainLoop.method = 'timeout';
  1801. } else if (mode == 1 /*EM_TIMING_RAF*/) {
  1802. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() {
  1803. Browser.requestAnimationFrame(Browser.mainLoop.runner);
  1804. };
  1805. Browser.mainLoop.method = 'rAF';
  1806. } else if (mode == 2 /*EM_TIMING_SETIMMEDIATE*/) {
  1807. if (!window['setImmediate']) {
  1808. // Emulate setImmediate. (note: not a complete polyfill, we don't emulate clearImmediate() to keep code size to minimum, since not needed)
  1809. var setImmediates = [];
  1810. var emscriptenMainLoopMessageId = 'setimmediate';
  1811. function Browser_setImmediate_messageHandler(event) {
  1812. if (event.source === window && event.data === emscriptenMainLoopMessageId) {
  1813. event.stopPropagation();
  1814. setImmediates.shift()();
  1815. }
  1816. }
  1817. window.addEventListener("message", Browser_setImmediate_messageHandler, true);
  1818. window['setImmediate'] = function Browser_emulated_setImmediate(func) {
  1819. setImmediates.push(func);
  1820. if (ENVIRONMENT_IS_WORKER) {
  1821. if (Module['setImmediates'] === undefined) Module['setImmediates'] = [];
  1822. Module['setImmediates'].push(func);
  1823. window.postMessage({target: emscriptenMainLoopMessageId}); // In --proxy-to-worker, route the message via proxyClient.js
  1824. } else window.postMessage(emscriptenMainLoopMessageId, "*"); // On the main thread, can just send the message to itself.
  1825. }
  1826. }
  1827. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() {
  1828. window['setImmediate'](Browser.mainLoop.runner);
  1829. };
  1830. Browser.mainLoop.method = 'immediate';
  1831. }
  1832. return 0;
  1833. }function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) {
  1834. Module['noExitRuntime'] = true;
  1835. assert(!Browser.mainLoop.func, 'emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.');
  1836. Browser.mainLoop.func = func;
  1837. Browser.mainLoop.arg = arg;
  1838. var browserIterationFunc;
  1839. if (typeof arg !== 'undefined') {
  1840. browserIterationFunc = function() {
  1841. Module['dynCall_vi'](func, arg);
  1842. };
  1843. } else {
  1844. browserIterationFunc = function() {
  1845. Module['dynCall_v'](func);
  1846. };
  1847. }
  1848. var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop;
  1849. Browser.mainLoop.runner = function Browser_mainLoop_runner() {
  1850. if (ABORT) return;
  1851. if (Browser.mainLoop.queue.length > 0) {
  1852. var start = Date.now();
  1853. var blocker = Browser.mainLoop.queue.shift();
  1854. blocker.func(blocker.arg);
  1855. if (Browser.mainLoop.remainingBlockers) {
  1856. var remaining = Browser.mainLoop.remainingBlockers;
  1857. var next = remaining%1 == 0 ? remaining-1 : Math.floor(remaining);
  1858. if (blocker.counted) {
  1859. Browser.mainLoop.remainingBlockers = next;
  1860. } else {
  1861. // not counted, but move the progress along a tiny bit
  1862. next = next + 0.5; // do not steal all the next one's progress
  1863. Browser.mainLoop.remainingBlockers = (8*remaining + next)/9;
  1864. }
  1865. }
  1866. console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + ' ms'); //, left: ' + Browser.mainLoop.remainingBlockers);
  1867. Browser.mainLoop.updateStatus();
  1868. // catches pause/resume main loop from blocker execution
  1869. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1870. setTimeout(Browser.mainLoop.runner, 0);
  1871. return;
  1872. }
  1873. // catch pauses from non-main loop sources
  1874. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1875. // Implement very basic swap interval control
  1876. Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0;
  1877. if (Browser.mainLoop.timingMode == 1/*EM_TIMING_RAF*/ && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) {
  1878. // Not the scheduled time to render this frame - skip.
  1879. Browser.mainLoop.scheduler();
  1880. return;
  1881. } else if (Browser.mainLoop.timingMode == 0/*EM_TIMING_SETTIMEOUT*/) {
  1882. Browser.mainLoop.tickStartTime = _emscripten_get_now();
  1883. }
  1884. // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize
  1885. // VBO double-buffering and reduce GPU stalls.
  1886. if (Browser.mainLoop.method === 'timeout' && Module.ctx) {
  1887. Module.printErr('Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!');
  1888. Browser.mainLoop.method = ''; // just warn once per call to set main loop
  1889. }
  1890. Browser.mainLoop.runIter(browserIterationFunc);
  1891. checkStackCookie();
  1892. // catch pauses from the main loop itself
  1893. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1894. // Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
  1895. // to queue the newest produced audio samples.
  1896. // TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
  1897. // do not need to be hardcoded into this function, but can be more generic.
  1898. if (typeof SDL === 'object' && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData();
  1899. Browser.mainLoop.scheduler();
  1900. }
  1901. if (!noSetTiming) {
  1902. if (fps && fps > 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 1000.0 / fps);
  1903. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, 1); // Do rAF by rendering each frame (no decimating)
  1904. Browser.mainLoop.scheduler();
  1905. }
  1906. if (simulateInfiniteLoop) {
  1907. throw 'SimulateInfiniteLoop';
  1908. }
  1909. }var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function () {
  1910. Browser.mainLoop.scheduler = null;
  1911. Browser.mainLoop.currentlyRunningMainloop++; // Incrementing this signals the previous main loop that it's now become old, and it must return.
  1912. },resume:function () {
  1913. Browser.mainLoop.currentlyRunningMainloop++;
  1914. var timingMode = Browser.mainLoop.timingMode;
  1915. var timingValue = Browser.mainLoop.timingValue;
  1916. var func = Browser.mainLoop.func;
  1917. Browser.mainLoop.func = null;
  1918. _emscripten_set_main_loop(func, 0, false, Browser.mainLoop.arg, true /* do not set timing and call scheduler, we will do it on the next lines */);
  1919. _emscripten_set_main_loop_timing(timingMode, timingValue);
  1920. Browser.mainLoop.scheduler();
  1921. },updateStatus:function () {
  1922. if (Module['setStatus']) {
  1923. var message = Module['statusMessage'] || 'Please wait...';
  1924. var remaining = Browser.mainLoop.remainingBlockers;
  1925. var expected = Browser.mainLoop.expectedBlockers;
  1926. if (remaining) {
  1927. if (remaining < expected) {
  1928. Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
  1929. } else {
  1930. Module['setStatus'](message);
  1931. }
  1932. } else {
  1933. Module['setStatus']('');
  1934. }
  1935. }
  1936. },runIter:function (func) {
  1937. if (ABORT) return;
  1938. if (Module['preMainLoop']) {
  1939. var preRet = Module['preMainLoop']();
  1940. if (preRet === false) {
  1941. return; // |return false| skips a frame
  1942. }
  1943. }
  1944. try {
  1945. func();
  1946. } catch (e) {
  1947. if (e instanceof ExitStatus) {
  1948. return;
  1949. } else {
  1950. if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
  1951. throw e;
  1952. }
  1953. }
  1954. if (Module['postMainLoop']) Module['postMainLoop']();
  1955. }},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
  1956. if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
  1957. if (Browser.initted) return;
  1958. Browser.initted = true;
  1959. try {
  1960. new Blob();
  1961. Browser.hasBlobConstructor = true;
  1962. } catch(e) {
  1963. Browser.hasBlobConstructor = false;
  1964. console.log("warning: no blob constructor, cannot create blobs with mimetypes");
  1965. }
  1966. Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
  1967. Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
  1968. if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
  1969. console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
  1970. Module.noImageDecoding = true;
  1971. }
  1972. // Support for plugins that can process preloaded files. You can add more of these to
  1973. // your app by creating and appending to Module.preloadPlugins.
  1974. //
  1975. // Each plugin is asked if it can handle a file based on the file's name. If it can,
  1976. // it is given the file's raw data. When it is done, it calls a callback with the file's
  1977. // (possibly modified) data. For example, a plugin might decompress a file, or it
  1978. // might create some side data structure for use later (like an Image element, etc.).
  1979. var imagePlugin = {};
  1980. imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
  1981. return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
  1982. };
  1983. imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
  1984. var b = null;
  1985. if (Browser.hasBlobConstructor) {
  1986. try {
  1987. b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  1988. if (b.size !== byteArray.length) { // Safari bug #118630
  1989. // Safari's Blob can only take an ArrayBuffer
  1990. b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
  1991. }
  1992. } catch(e) {
  1993. Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
  1994. }
  1995. }
  1996. if (!b) {
  1997. var bb = new Browser.BlobBuilder();
  1998. bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
  1999. b = bb.getBlob();
  2000. }
  2001. var url = Browser.URLObject.createObjectURL(b);
  2002. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2003. var img = new Image();
  2004. img.onload = function img_onload() {
  2005. assert(img.complete, 'Image ' + name + ' could not be decoded');
  2006. var canvas = document.createElement('canvas');
  2007. canvas.width = img.width;
  2008. canvas.height = img.height;
  2009. var ctx = canvas.getContext('2d');
  2010. ctx.drawImage(img, 0, 0);
  2011. Module["preloadedImages"][name] = canvas;
  2012. Browser.URLObject.revokeObjectURL(url);
  2013. if (onload) onload(byteArray);
  2014. };
  2015. img.onerror = function img_onerror(event) {
  2016. console.log('Image ' + url + ' could not be decoded');
  2017. if (onerror) onerror();
  2018. };
  2019. img.src = url;
  2020. };
  2021. Module['preloadPlugins'].push(imagePlugin);
  2022. var audioPlugin = {};
  2023. audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
  2024. return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
  2025. };
  2026. audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
  2027. var done = false;
  2028. function finish(audio) {
  2029. if (done) return;
  2030. done = true;
  2031. Module["preloadedAudios"][name] = audio;
  2032. if (onload) onload(byteArray);
  2033. }
  2034. function fail() {
  2035. if (done) return;
  2036. done = true;
  2037. Module["preloadedAudios"][name] = new Audio(); // empty shim
  2038. if (onerror) onerror();
  2039. }
  2040. if (Browser.hasBlobConstructor) {
  2041. try {
  2042. var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2043. } catch(e) {
  2044. return fail();
  2045. }
  2046. var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
  2047. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2048. var audio = new Audio();
  2049. audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
  2050. audio.onerror = function audio_onerror(event) {
  2051. if (done) return;
  2052. console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
  2053. function encode64(data) {
  2054. var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  2055. var PAD = '=';
  2056. var ret = '';
  2057. var leftchar = 0;
  2058. var leftbits = 0;
  2059. for (var i = 0; i < data.length; i++) {
  2060. leftchar = (leftchar << 8) | data[i];
  2061. leftbits += 8;
  2062. while (leftbits >= 6) {
  2063. var curr = (leftchar >> (leftbits-6)) & 0x3f;
  2064. leftbits -= 6;
  2065. ret += BASE[curr];
  2066. }
  2067. }
  2068. if (leftbits == 2) {
  2069. ret += BASE[(leftchar&3) << 4];
  2070. ret += PAD + PAD;
  2071. } else if (leftbits == 4) {
  2072. ret += BASE[(leftchar&0xf) << 2];
  2073. ret += PAD;
  2074. }
  2075. return ret;
  2076. }
  2077. audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
  2078. finish(audio); // we don't wait for confirmation this worked - but it's worth trying
  2079. };
  2080. audio.src = url;
  2081. // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
  2082. Browser.safeSetTimeout(function() {
  2083. finish(audio); // try to use it even though it is not necessarily ready to play
  2084. }, 10000);
  2085. } else {
  2086. return fail();
  2087. }
  2088. };
  2089. Module['preloadPlugins'].push(audioPlugin);
  2090. // Canvas event setup
  2091. function pointerLockChange() {
  2092. Browser.pointerLock = document['pointerLockElement'] === Module['canvas'] ||
  2093. document['mozPointerLockElement'] === Module['canvas'] ||
  2094. document['webkitPointerLockElement'] === Module['canvas'] ||
  2095. document['msPointerLockElement'] === Module['canvas'];
  2096. }
  2097. var canvas = Module['canvas'];
  2098. if (canvas) {
  2099. // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
  2100. // Module['forcedAspectRatio'] = 4 / 3;
  2101. canvas.requestPointerLock = canvas['requestPointerLock'] ||
  2102. canvas['mozRequestPointerLock'] ||
  2103. canvas['webkitRequestPointerLock'] ||
  2104. canvas['msRequestPointerLock'] ||
  2105. function(){};
  2106. canvas.exitPointerLock = document['exitPointerLock'] ||
  2107. document['mozExitPointerLock'] ||
  2108. document['webkitExitPointerLock'] ||
  2109. document['msExitPointerLock'] ||
  2110. function(){}; // no-op if function does not exist
  2111. canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
  2112. document.addEventListener('pointerlockchange', pointerLockChange, false);
  2113. document.addEventListener('mozpointerlockchange', pointerLockChange, false);
  2114. document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
  2115. document.addEventListener('mspointerlockchange', pointerLockChange, false);
  2116. if (Module['elementPointerLock']) {
  2117. canvas.addEventListener("click", function(ev) {
  2118. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2119. Module['canvas'].requestPointerLock();
  2120. ev.preventDefault();
  2121. }
  2122. }, false);
  2123. }
  2124. }
  2125. },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
  2126. if (useWebGL && Module.ctx && canvas == Module.canvas) return Module.ctx; // no need to recreate GL context if it's already been created for this canvas.
  2127. var ctx;
  2128. var contextHandle;
  2129. if (useWebGL) {
  2130. // For GLES2/desktop GL compatibility, adjust a few defaults to be different to WebGL defaults, so that they align better with the desktop defaults.
  2131. var contextAttributes = {
  2132. antialias: false,
  2133. alpha: false
  2134. };
  2135. if (webGLContextAttributes) {
  2136. for (var attribute in webGLContextAttributes) {
  2137. contextAttributes[attribute] = webGLContextAttributes[attribute];
  2138. }
  2139. }
  2140. contextHandle = GL.createContext(canvas, contextAttributes);
  2141. if (contextHandle) {
  2142. ctx = GL.getContext(contextHandle).GLctx;
  2143. }
  2144. } else {
  2145. ctx = canvas.getContext('2d');
  2146. }
  2147. if (!ctx) return null;
  2148. if (setInModule) {
  2149. if (!useWebGL) assert(typeof GLctx === 'undefined', 'cannot set in module if GLctx is used, but we are a non-GL context that would replace it');
  2150. Module.ctx = ctx;
  2151. if (useWebGL) GL.makeContextCurrent(contextHandle);
  2152. Module.useWebGL = useWebGL;
  2153. Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
  2154. Browser.init();
  2155. }
  2156. return ctx;
  2157. },destroyContext:function (canvas, useWebGL, setInModule) {},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function (lockPointer, resizeCanvas, vrDevice) {
  2158. Browser.lockPointer = lockPointer;
  2159. Browser.resizeCanvas = resizeCanvas;
  2160. Browser.vrDevice = vrDevice;
  2161. if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
  2162. if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
  2163. if (typeof Browser.vrDevice === 'undefined') Browser.vrDevice = null;
  2164. var canvas = Module['canvas'];
  2165. function fullscreenChange() {
  2166. Browser.isFullscreen = false;
  2167. var canvasContainer = canvas.parentNode;
  2168. if ((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2169. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2170. document['webkitCurrentFullScreenElement']) === canvasContainer) {
  2171. canvas.exitFullscreen = document['exitFullscreen'] ||
  2172. document['cancelFullScreen'] ||
  2173. document['mozCancelFullScreen'] ||
  2174. document['msExitFullscreen'] ||
  2175. document['webkitCancelFullScreen'] ||
  2176. function() {};
  2177. canvas.exitFullscreen = canvas.exitFullscreen.bind(document);
  2178. if (Browser.lockPointer) canvas.requestPointerLock();
  2179. Browser.isFullscreen = true;
  2180. if (Browser.resizeCanvas) Browser.setFullscreenCanvasSize();
  2181. } else {
  2182. // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
  2183. canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
  2184. canvasContainer.parentNode.removeChild(canvasContainer);
  2185. if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
  2186. }
  2187. if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullscreen);
  2188. if (Module['onFullscreen']) Module['onFullscreen'](Browser.isFullscreen);
  2189. Browser.updateCanvasDimensions(canvas);
  2190. }
  2191. if (!Browser.fullscreenHandlersInstalled) {
  2192. Browser.fullscreenHandlersInstalled = true;
  2193. document.addEventListener('fullscreenchange', fullscreenChange, false);
  2194. document.addEventListener('mozfullscreenchange', fullscreenChange, false);
  2195. document.addEventListener('webkitfullscreenchange', fullscreenChange, false);
  2196. document.addEventListener('MSFullscreenChange', fullscreenChange, false);
  2197. }
  2198. // create a new parent to ensure the canvas has no siblings. this allows browsers to optimize full screen performance when its parent is the full screen root
  2199. var canvasContainer = document.createElement("div");
  2200. canvas.parentNode.insertBefore(canvasContainer, canvas);
  2201. canvasContainer.appendChild(canvas);
  2202. // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
  2203. canvasContainer.requestFullscreen = canvasContainer['requestFullscreen'] ||
  2204. canvasContainer['mozRequestFullScreen'] ||
  2205. canvasContainer['msRequestFullscreen'] ||
  2206. (canvasContainer['webkitRequestFullscreen'] ? function() { canvasContainer['webkitRequestFullscreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null) ||
  2207. (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
  2208. if (vrDevice) {
  2209. canvasContainer.requestFullscreen({ vrDisplay: vrDevice });
  2210. } else {
  2211. canvasContainer.requestFullscreen();
  2212. }
  2213. },requestFullScreen:function (lockPointer, resizeCanvas, vrDevice) {
  2214. Module.printErr('Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead.');
  2215. Browser.requestFullScreen = function(lockPointer, resizeCanvas, vrDevice) {
  2216. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2217. }
  2218. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2219. },nextRAF:0,fakeRequestAnimationFrame:function (func) {
  2220. // try to keep 60fps between calls to here
  2221. var now = Date.now();
  2222. if (Browser.nextRAF === 0) {
  2223. Browser.nextRAF = now + 1000/60;
  2224. } else {
  2225. while (now + 2 >= Browser.nextRAF) { // fudge a little, to avoid timer jitter causing us to do lots of delay:0
  2226. Browser.nextRAF += 1000/60;
  2227. }
  2228. }
  2229. var delay = Math.max(Browser.nextRAF - now, 0);
  2230. setTimeout(func, delay);
  2231. },requestAnimationFrame:function requestAnimationFrame(func) {
  2232. if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
  2233. Browser.fakeRequestAnimationFrame(func);
  2234. } else {
  2235. if (!window.requestAnimationFrame) {
  2236. window.requestAnimationFrame = window['requestAnimationFrame'] ||
  2237. window['mozRequestAnimationFrame'] ||
  2238. window['webkitRequestAnimationFrame'] ||
  2239. window['msRequestAnimationFrame'] ||
  2240. window['oRequestAnimationFrame'] ||
  2241. Browser.fakeRequestAnimationFrame;
  2242. }
  2243. window.requestAnimationFrame(func);
  2244. }
  2245. },safeCallback:function (func) {
  2246. return function() {
  2247. if (!ABORT) return func.apply(null, arguments);
  2248. };
  2249. },allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function () {
  2250. Browser.allowAsyncCallbacks = false;
  2251. },resumeAsyncCallbacks:function () { // marks future callbacks as ok to execute, and synchronously runs any remaining ones right now
  2252. Browser.allowAsyncCallbacks = true;
  2253. if (Browser.queuedAsyncCallbacks.length > 0) {
  2254. var callbacks = Browser.queuedAsyncCallbacks;
  2255. Browser.queuedAsyncCallbacks = [];
  2256. callbacks.forEach(function(func) {
  2257. func();
  2258. });
  2259. }
  2260. },safeRequestAnimationFrame:function (func) {
  2261. return Browser.requestAnimationFrame(function() {
  2262. if (ABORT) return;
  2263. if (Browser.allowAsyncCallbacks) {
  2264. func();
  2265. } else {
  2266. Browser.queuedAsyncCallbacks.push(func);
  2267. }
  2268. });
  2269. },safeSetTimeout:function (func, timeout) {
  2270. Module['noExitRuntime'] = true;
  2271. return setTimeout(function() {
  2272. if (ABORT) return;
  2273. if (Browser.allowAsyncCallbacks) {
  2274. func();
  2275. } else {
  2276. Browser.queuedAsyncCallbacks.push(func);
  2277. }
  2278. }, timeout);
  2279. },safeSetInterval:function (func, timeout) {
  2280. Module['noExitRuntime'] = true;
  2281. return setInterval(function() {
  2282. if (ABORT) return;
  2283. if (Browser.allowAsyncCallbacks) {
  2284. func();
  2285. } // drop it on the floor otherwise, next interval will kick in
  2286. }, timeout);
  2287. },getMimetype:function (name) {
  2288. return {
  2289. 'jpg': 'image/jpeg',
  2290. 'jpeg': 'image/jpeg',
  2291. 'png': 'image/png',
  2292. 'bmp': 'image/bmp',
  2293. 'ogg': 'audio/ogg',
  2294. 'wav': 'audio/wav',
  2295. 'mp3': 'audio/mpeg'
  2296. }[name.substr(name.lastIndexOf('.')+1)];
  2297. },getUserMedia:function (func) {
  2298. if(!window.getUserMedia) {
  2299. window.getUserMedia = navigator['getUserMedia'] ||
  2300. navigator['mozGetUserMedia'];
  2301. }
  2302. window.getUserMedia(func);
  2303. },getMovementX:function (event) {
  2304. return event['movementX'] ||
  2305. event['mozMovementX'] ||
  2306. event['webkitMovementX'] ||
  2307. 0;
  2308. },getMovementY:function (event) {
  2309. return event['movementY'] ||
  2310. event['mozMovementY'] ||
  2311. event['webkitMovementY'] ||
  2312. 0;
  2313. },getMouseWheelDelta:function (event) {
  2314. var delta = 0;
  2315. switch (event.type) {
  2316. case 'DOMMouseScroll':
  2317. delta = event.detail;
  2318. break;
  2319. case 'mousewheel':
  2320. delta = event.wheelDelta;
  2321. break;
  2322. case 'wheel':
  2323. delta = event['deltaY'];
  2324. break;
  2325. default:
  2326. throw 'unrecognized mouse wheel event: ' + event.type;
  2327. }
  2328. return delta;
  2329. },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
  2330. if (Browser.pointerLock) {
  2331. // When the pointer is locked, calculate the coordinates
  2332. // based on the movement of the mouse.
  2333. // Workaround for Firefox bug 764498
  2334. if (event.type != 'mousemove' &&
  2335. ('mozMovementX' in event)) {
  2336. Browser.mouseMovementX = Browser.mouseMovementY = 0;
  2337. } else {
  2338. Browser.mouseMovementX = Browser.getMovementX(event);
  2339. Browser.mouseMovementY = Browser.getMovementY(event);
  2340. }
  2341. // check if SDL is available
  2342. if (typeof SDL != "undefined") {
  2343. Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
  2344. Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
  2345. } else {
  2346. // just add the mouse delta to the current absolut mouse position
  2347. // FIXME: ideally this should be clamped against the canvas size and zero
  2348. Browser.mouseX += Browser.mouseMovementX;
  2349. Browser.mouseY += Browser.mouseMovementY;
  2350. }
  2351. } else {
  2352. // Otherwise, calculate the movement based on the changes
  2353. // in the coordinates.
  2354. var rect = Module["canvas"].getBoundingClientRect();
  2355. var cw = Module["canvas"].width;
  2356. var ch = Module["canvas"].height;
  2357. // Neither .scrollX or .pageXOffset are defined in a spec, but
  2358. // we prefer .scrollX because it is currently in a spec draft.
  2359. // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
  2360. var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
  2361. var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
  2362. // If this assert lands, it's likely because the browser doesn't support scrollX or pageXOffset
  2363. // and we have no viable fallback.
  2364. assert((typeof scrollX !== 'undefined') && (typeof scrollY !== 'undefined'), 'Unable to retrieve scroll position, mouse positions likely broken.');
  2365. if (event.type === 'touchstart' || event.type === 'touchend' || event.type === 'touchmove') {
  2366. var touch = event.touch;
  2367. if (touch === undefined) {
  2368. return; // the "touch" property is only defined in SDL
  2369. }
  2370. var adjustedX = touch.pageX - (scrollX + rect.left);
  2371. var adjustedY = touch.pageY - (scrollY + rect.top);
  2372. adjustedX = adjustedX * (cw / rect.width);
  2373. adjustedY = adjustedY * (ch / rect.height);
  2374. var coords = { x: adjustedX, y: adjustedY };
  2375. if (event.type === 'touchstart') {
  2376. Browser.lastTouches[touch.identifier] = coords;
  2377. Browser.touches[touch.identifier] = coords;
  2378. } else if (event.type === 'touchend' || event.type === 'touchmove') {
  2379. var last = Browser.touches[touch.identifier];
  2380. if (!last) last = coords;
  2381. Browser.lastTouches[touch.identifier] = last;
  2382. Browser.touches[touch.identifier] = coords;
  2383. }
  2384. return;
  2385. }
  2386. var x = event.pageX - (scrollX + rect.left);
  2387. var y = event.pageY - (scrollY + rect.top);
  2388. // the canvas might be CSS-scaled compared to its backbuffer;
  2389. // SDL-using content will want mouse coordinates in terms
  2390. // of backbuffer units.
  2391. x = x * (cw / rect.width);
  2392. y = y * (ch / rect.height);
  2393. Browser.mouseMovementX = x - Browser.mouseX;
  2394. Browser.mouseMovementY = y - Browser.mouseY;
  2395. Browser.mouseX = x;
  2396. Browser.mouseY = y;
  2397. }
  2398. },asyncLoad:function (url, onload, onerror, noRunDep) {
  2399. var dep = !noRunDep ? getUniqueRunDependency('al ' + url) : '';
  2400. Module['readAsync'](url, function(arrayBuffer) {
  2401. assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
  2402. onload(new Uint8Array(arrayBuffer));
  2403. if (dep) removeRunDependency(dep);
  2404. }, function(event) {
  2405. if (onerror) {
  2406. onerror();
  2407. } else {
  2408. throw 'Loading data file "' + url + '" failed.';
  2409. }
  2410. });
  2411. if (dep) addRunDependency(dep);
  2412. },resizeListeners:[],updateResizeListeners:function () {
  2413. var canvas = Module['canvas'];
  2414. Browser.resizeListeners.forEach(function(listener) {
  2415. listener(canvas.width, canvas.height);
  2416. });
  2417. },setCanvasSize:function (width, height, noUpdates) {
  2418. var canvas = Module['canvas'];
  2419. Browser.updateCanvasDimensions(canvas, width, height);
  2420. if (!noUpdates) Browser.updateResizeListeners();
  2421. },windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function () {
  2422. // check if SDL is available
  2423. if (typeof SDL != "undefined") {
  2424. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2425. flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
  2426. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2427. }
  2428. Browser.updateResizeListeners();
  2429. },setWindowedCanvasSize:function () {
  2430. // check if SDL is available
  2431. if (typeof SDL != "undefined") {
  2432. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2433. flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
  2434. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2435. }
  2436. Browser.updateResizeListeners();
  2437. },updateCanvasDimensions:function (canvas, wNative, hNative) {
  2438. if (wNative && hNative) {
  2439. canvas.widthNative = wNative;
  2440. canvas.heightNative = hNative;
  2441. } else {
  2442. wNative = canvas.widthNative;
  2443. hNative = canvas.heightNative;
  2444. }
  2445. var w = wNative;
  2446. var h = hNative;
  2447. if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
  2448. if (w/h < Module['forcedAspectRatio']) {
  2449. w = Math.round(h * Module['forcedAspectRatio']);
  2450. } else {
  2451. h = Math.round(w / Module['forcedAspectRatio']);
  2452. }
  2453. }
  2454. if (((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2455. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2456. document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
  2457. var factor = Math.min(screen.width / w, screen.height / h);
  2458. w = Math.round(w * factor);
  2459. h = Math.round(h * factor);
  2460. }
  2461. if (Browser.resizeCanvas) {
  2462. if (canvas.width != w) canvas.width = w;
  2463. if (canvas.height != h) canvas.height = h;
  2464. if (typeof canvas.style != 'undefined') {
  2465. canvas.style.removeProperty( "width");
  2466. canvas.style.removeProperty("height");
  2467. }
  2468. } else {
  2469. if (canvas.width != wNative) canvas.width = wNative;
  2470. if (canvas.height != hNative) canvas.height = hNative;
  2471. if (typeof canvas.style != 'undefined') {
  2472. if (w != wNative || h != hNative) {
  2473. canvas.style.setProperty( "width", w + "px", "important");
  2474. canvas.style.setProperty("height", h + "px", "important");
  2475. } else {
  2476. canvas.style.removeProperty( "width");
  2477. canvas.style.removeProperty("height");
  2478. }
  2479. }
  2480. }
  2481. },wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function () {
  2482. var handle = Browser.nextWgetRequestHandle;
  2483. Browser.nextWgetRequestHandle++;
  2484. return handle;
  2485. }};var GLFW={Window:function (id, width, height, title, monitor, share) {
  2486. this.id = id;
  2487. this.x = 0;
  2488. this.y = 0;
  2489. this.fullscreen = false; // Used to determine if app in fullscreen mode
  2490. this.storedX = 0; // Used to store X before fullscreen
  2491. this.storedY = 0; // Used to store Y before fullscreen
  2492. this.width = width;
  2493. this.height = height;
  2494. this.storedWidth = width; // Used to store width before fullscreen
  2495. this.storedHeight = height; // Used to store height before fullscreen
  2496. this.title = title;
  2497. this.monitor = monitor;
  2498. this.share = share;
  2499. this.attributes = GLFW.hints;
  2500. this.inputModes = {
  2501. 0x00033001:0x00034001, // GLFW_CURSOR (GLFW_CURSOR_NORMAL)
  2502. 0x00033002:0, // GLFW_STICKY_KEYS
  2503. 0x00033003:0, // GLFW_STICKY_MOUSE_BUTTONS
  2504. };
  2505. this.buttons = 0;
  2506. this.keys = new Array();
  2507. this.shouldClose = 0;
  2508. this.title = null;
  2509. this.windowPosFunc = null; // GLFWwindowposfun
  2510. this.windowSizeFunc = null; // GLFWwindowsizefun
  2511. this.windowCloseFunc = null; // GLFWwindowclosefun
  2512. this.windowRefreshFunc = null; // GLFWwindowrefreshfun
  2513. this.windowFocusFunc = null; // GLFWwindowfocusfun
  2514. this.windowIconifyFunc = null; // GLFWwindowiconifyfun
  2515. this.framebufferSizeFunc = null; // GLFWframebuffersizefun
  2516. this.mouseButtonFunc = null; // GLFWmousebuttonfun
  2517. this.cursorPosFunc = null; // GLFWcursorposfun
  2518. this.cursorEnterFunc = null; // GLFWcursorenterfun
  2519. this.scrollFunc = null; // GLFWscrollfun
  2520. this.keyFunc = null; // GLFWkeyfun
  2521. this.charFunc = null; // GLFWcharfun
  2522. this.userptr = null;
  2523. },WindowFromId:function (id) {
  2524. if (id <= 0 || !GLFW.windows) return null;
  2525. return GLFW.windows[id - 1];
  2526. },errorFunc:null,monitorFunc:null,active:null,windows:null,monitors:null,monitorString:null,versionString:null,initialTime:null,extensions:null,hints:null,defaultHints:{131073:0,131074:0,131075:1,131076:1,131077:1,135169:8,135170:8,135171:8,135172:8,135173:24,135174:8,135175:0,135176:0,135177:0,135178:0,135179:0,135180:0,135181:0,135182:0,135183:0,139265:196609,139266:1,139267:0,139268:0,139269:0,139270:0,139271:0,139272:0},DOMToGLFWKeyCode:function (keycode) {
  2527. switch (keycode) {
  2528. // these keycodes are only defined for GLFW3, assume they are the same for GLFW2
  2529. case 0x20:return 32; // DOM_VK_SPACE -> GLFW_KEY_SPACE
  2530. case 0xDE:return 39; // DOM_VK_QUOTE -> GLFW_KEY_APOSTROPHE
  2531. case 0xBC:return 44; // DOM_VK_COMMA -> GLFW_KEY_COMMA
  2532. case 0xAD:return 45; // DOM_VK_HYPHEN_MINUS -> GLFW_KEY_MINUS
  2533. case 0xBD:return 45; // DOM_VK_MINUS -> GLFW_KEY_MINUS
  2534. case 0xBE:return 46; // DOM_VK_PERIOD -> GLFW_KEY_PERIOD
  2535. case 0xBF:return 47; // DOM_VK_SLASH -> GLFW_KEY_SLASH
  2536. case 0x30:return 48; // DOM_VK_0 -> GLFW_KEY_0
  2537. case 0x31:return 49; // DOM_VK_1 -> GLFW_KEY_1
  2538. case 0x32:return 50; // DOM_VK_2 -> GLFW_KEY_2
  2539. case 0x33:return 51; // DOM_VK_3 -> GLFW_KEY_3
  2540. case 0x34:return 52; // DOM_VK_4 -> GLFW_KEY_4
  2541. case 0x35:return 53; // DOM_VK_5 -> GLFW_KEY_5
  2542. case 0x36:return 54; // DOM_VK_6 -> GLFW_KEY_6
  2543. case 0x37:return 55; // DOM_VK_7 -> GLFW_KEY_7
  2544. case 0x38:return 56; // DOM_VK_8 -> GLFW_KEY_8
  2545. case 0x39:return 57; // DOM_VK_9 -> GLFW_KEY_9
  2546. case 0x3B:return 59; // DOM_VK_SEMICOLON -> GLFW_KEY_SEMICOLON
  2547. case 0x3D:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2548. case 0xBB:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2549. case 0x41:return 65; // DOM_VK_A -> GLFW_KEY_A
  2550. case 0x42:return 66; // DOM_VK_B -> GLFW_KEY_B
  2551. case 0x43:return 67; // DOM_VK_C -> GLFW_KEY_C
  2552. case 0x44:return 68; // DOM_VK_D -> GLFW_KEY_D
  2553. case 0x45:return 69; // DOM_VK_E -> GLFW_KEY_E
  2554. case 0x46:return 70; // DOM_VK_F -> GLFW_KEY_F
  2555. case 0x47:return 71; // DOM_VK_G -> GLFW_KEY_G
  2556. case 0x48:return 72; // DOM_VK_H -> GLFW_KEY_H
  2557. case 0x49:return 73; // DOM_VK_I -> GLFW_KEY_I
  2558. case 0x4A:return 74; // DOM_VK_J -> GLFW_KEY_J
  2559. case 0x4B:return 75; // DOM_VK_K -> GLFW_KEY_K
  2560. case 0x4C:return 76; // DOM_VK_L -> GLFW_KEY_L
  2561. case 0x4D:return 77; // DOM_VK_M -> GLFW_KEY_M
  2562. case 0x4E:return 78; // DOM_VK_N -> GLFW_KEY_N
  2563. case 0x4F:return 79; // DOM_VK_O -> GLFW_KEY_O
  2564. case 0x50:return 80; // DOM_VK_P -> GLFW_KEY_P
  2565. case 0x51:return 81; // DOM_VK_Q -> GLFW_KEY_Q
  2566. case 0x52:return 82; // DOM_VK_R -> GLFW_KEY_R
  2567. case 0x53:return 83; // DOM_VK_S -> GLFW_KEY_S
  2568. case 0x54:return 84; // DOM_VK_T -> GLFW_KEY_T
  2569. case 0x55:return 85; // DOM_VK_U -> GLFW_KEY_U
  2570. case 0x56:return 86; // DOM_VK_V -> GLFW_KEY_V
  2571. case 0x57:return 87; // DOM_VK_W -> GLFW_KEY_W
  2572. case 0x58:return 88; // DOM_VK_X -> GLFW_KEY_X
  2573. case 0x59:return 89; // DOM_VK_Y -> GLFW_KEY_Y
  2574. case 0x5a:return 90; // DOM_VK_Z -> GLFW_KEY_Z
  2575. case 0xDB:return 91; // DOM_VK_OPEN_BRACKET -> GLFW_KEY_LEFT_BRACKET
  2576. case 0xDC:return 92; // DOM_VK_BACKSLASH -> GLFW_KEY_BACKSLASH
  2577. case 0xDD:return 93; // DOM_VK_CLOSE_BRACKET -> GLFW_KEY_RIGHT_BRACKET
  2578. case 0xC0:return 94; // DOM_VK_BACK_QUOTE -> GLFW_KEY_GRAVE_ACCENT
  2579. case 0x1B:return 256; // DOM_VK_ESCAPE -> GLFW_KEY_ESCAPE
  2580. case 0x0D:return 257; // DOM_VK_RETURN -> GLFW_KEY_ENTER
  2581. case 0x09:return 258; // DOM_VK_TAB -> GLFW_KEY_TAB
  2582. case 0x08:return 259; // DOM_VK_BACK -> GLFW_KEY_BACKSPACE
  2583. case 0x2D:return 260; // DOM_VK_INSERT -> GLFW_KEY_INSERT
  2584. case 0x2E:return 261; // DOM_VK_DELETE -> GLFW_KEY_DELETE
  2585. case 0x27:return 262; // DOM_VK_RIGHT -> GLFW_KEY_RIGHT
  2586. case 0x25:return 263; // DOM_VK_LEFT -> GLFW_KEY_LEFT
  2587. case 0x28:return 264; // DOM_VK_DOWN -> GLFW_KEY_DOWN
  2588. case 0x26:return 265; // DOM_VK_UP -> GLFW_KEY_UP
  2589. case 0x21:return 266; // DOM_VK_PAGE_UP -> GLFW_KEY_PAGE_UP
  2590. case 0x22:return 267; // DOM_VK_PAGE_DOWN -> GLFW_KEY_PAGE_DOWN
  2591. case 0x24:return 268; // DOM_VK_HOME -> GLFW_KEY_HOME
  2592. case 0x23:return 269; // DOM_VK_END -> GLFW_KEY_END
  2593. case 0x14:return 280; // DOM_VK_CAPS_LOCK -> GLFW_KEY_CAPS_LOCK
  2594. case 0x91:return 281; // DOM_VK_SCROLL_LOCK -> GLFW_KEY_SCROLL_LOCK
  2595. case 0x90:return 282; // DOM_VK_NUM_LOCK -> GLFW_KEY_NUM_LOCK
  2596. case 0x2C:return 283; // DOM_VK_SNAPSHOT -> GLFW_KEY_PRINT_SCREEN
  2597. case 0x13:return 284; // DOM_VK_PAUSE -> GLFW_KEY_PAUSE
  2598. case 0x70:return 290; // DOM_VK_F1 -> GLFW_KEY_F1
  2599. case 0x71:return 291; // DOM_VK_F2 -> GLFW_KEY_F2
  2600. case 0x72:return 292; // DOM_VK_F3 -> GLFW_KEY_F3
  2601. case 0x73:return 293; // DOM_VK_F4 -> GLFW_KEY_F4
  2602. case 0x74:return 294; // DOM_VK_F5 -> GLFW_KEY_F5
  2603. case 0x75:return 295; // DOM_VK_F6 -> GLFW_KEY_F6
  2604. case 0x76:return 296; // DOM_VK_F7 -> GLFW_KEY_F7
  2605. case 0x77:return 297; // DOM_VK_F8 -> GLFW_KEY_F8
  2606. case 0x78:return 298; // DOM_VK_F9 -> GLFW_KEY_F9
  2607. case 0x79:return 299; // DOM_VK_F10 -> GLFW_KEY_F10
  2608. case 0x7A:return 300; // DOM_VK_F11 -> GLFW_KEY_F11
  2609. case 0x7B:return 301; // DOM_VK_F12 -> GLFW_KEY_F12
  2610. case 0x7C:return 302; // DOM_VK_F13 -> GLFW_KEY_F13
  2611. case 0x7D:return 303; // DOM_VK_F14 -> GLFW_KEY_F14
  2612. case 0x7E:return 304; // DOM_VK_F15 -> GLFW_KEY_F15
  2613. case 0x7F:return 305; // DOM_VK_F16 -> GLFW_KEY_F16
  2614. case 0x80:return 306; // DOM_VK_F17 -> GLFW_KEY_F17
  2615. case 0x81:return 307; // DOM_VK_F18 -> GLFW_KEY_F18
  2616. case 0x82:return 308; // DOM_VK_F19 -> GLFW_KEY_F19
  2617. case 0x83:return 309; // DOM_VK_F20 -> GLFW_KEY_F20
  2618. case 0x84:return 310; // DOM_VK_F21 -> GLFW_KEY_F21
  2619. case 0x85:return 311; // DOM_VK_F22 -> GLFW_KEY_F22
  2620. case 0x86:return 312; // DOM_VK_F23 -> GLFW_KEY_F23
  2621. case 0x87:return 313; // DOM_VK_F24 -> GLFW_KEY_F24
  2622. case 0x88:return 314; // 0x88 (not used?) -> GLFW_KEY_F25
  2623. case 0x60:return 320; // DOM_VK_NUMPAD0 -> GLFW_KEY_KP_0
  2624. case 0x61:return 321; // DOM_VK_NUMPAD1 -> GLFW_KEY_KP_1
  2625. case 0x62:return 322; // DOM_VK_NUMPAD2 -> GLFW_KEY_KP_2
  2626. case 0x63:return 323; // DOM_VK_NUMPAD3 -> GLFW_KEY_KP_3
  2627. case 0x64:return 324; // DOM_VK_NUMPAD4 -> GLFW_KEY_KP_4
  2628. case 0x65:return 325; // DOM_VK_NUMPAD5 -> GLFW_KEY_KP_5
  2629. case 0x66:return 326; // DOM_VK_NUMPAD6 -> GLFW_KEY_KP_6
  2630. case 0x67:return 327; // DOM_VK_NUMPAD7 -> GLFW_KEY_KP_7
  2631. case 0x68:return 328; // DOM_VK_NUMPAD8 -> GLFW_KEY_KP_8
  2632. case 0x69:return 329; // DOM_VK_NUMPAD9 -> GLFW_KEY_KP_9
  2633. case 0x6E:return 330; // DOM_VK_DECIMAL -> GLFW_KEY_KP_DECIMAL
  2634. case 0x6F:return 331; // DOM_VK_DIVIDE -> GLFW_KEY_KP_DIVIDE
  2635. case 0x6A:return 332; // DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
  2636. case 0x6D:return 333; // DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT
  2637. case 0x6B:return 334; // DOM_VK_ADD -> GLFW_KEY_KP_ADD
  2638. // case 0x0D:return 335; // DOM_VK_RETURN -> GLFW_KEY_KP_ENTER (DOM_KEY_LOCATION_RIGHT)
  2639. // case 0x61:return 336; // DOM_VK_EQUALS -> GLFW_KEY_KP_EQUAL (DOM_KEY_LOCATION_RIGHT)
  2640. case 0x10:return 340; // DOM_VK_SHIFT -> GLFW_KEY_LEFT_SHIFT
  2641. case 0x11:return 341; // DOM_VK_CONTROL -> GLFW_KEY_LEFT_CONTROL
  2642. case 0x12:return 342; // DOM_VK_ALT -> GLFW_KEY_LEFT_ALT
  2643. case 0x5B:return 343; // DOM_VK_WIN -> GLFW_KEY_LEFT_SUPER
  2644. // case 0x10:return 344; // DOM_VK_SHIFT -> GLFW_KEY_RIGHT_SHIFT (DOM_KEY_LOCATION_RIGHT)
  2645. // case 0x11:return 345; // DOM_VK_CONTROL -> GLFW_KEY_RIGHT_CONTROL (DOM_KEY_LOCATION_RIGHT)
  2646. // case 0x12:return 346; // DOM_VK_ALT -> GLFW_KEY_RIGHT_ALT (DOM_KEY_LOCATION_RIGHT)
  2647. // case 0x5B:return 347; // DOM_VK_WIN -> GLFW_KEY_RIGHT_SUPER (DOM_KEY_LOCATION_RIGHT)
  2648. case 0x5D:return 348; // DOM_VK_CONTEXT_MENU -> GLFW_KEY_MENU
  2649. // XXX: GLFW_KEY_WORLD_1, GLFW_KEY_WORLD_2 what are these?
  2650. default:return -1; // GLFW_KEY_UNKNOWN
  2651. };
  2652. },getModBits:function (win) {
  2653. var mod = 0;
  2654. if (win.keys[340]) mod |= 0x0001; // GLFW_MOD_SHIFT
  2655. if (win.keys[341]) mod |= 0x0002; // GLFW_MOD_CONTROL
  2656. if (win.keys[342]) mod |= 0x0004; // GLFW_MOD_ALT
  2657. if (win.keys[343]) mod |= 0x0008; // GLFW_MOD_SUPER
  2658. return mod;
  2659. },onKeyPress:function (event) {
  2660. if (!GLFW.active || !GLFW.active.charFunc) return;
  2661. // correct unicode charCode is only available with onKeyPress event
  2662. var charCode = event.charCode;
  2663. if (charCode == 0 || (charCode >= 0x00 && charCode <= 0x1F)) return;
  2664. Module['dynCall_vii'](GLFW.active.charFunc, GLFW.active.id, charCode);
  2665. },onKeyChanged:function (event, status) {
  2666. if (!GLFW.active) return;
  2667. var key = GLFW.DOMToGLFWKeyCode(event.keyCode);
  2668. if (key == -1) return;
  2669. var repeat = status && GLFW.active.keys[key];
  2670. GLFW.active.keys[key] = status;
  2671. if (!GLFW.active.keyFunc) return;
  2672. if (repeat) status = 2; // GLFW_REPEAT
  2673. Module['dynCall_viiiii'](GLFW.active.keyFunc, GLFW.active.id, key, event.keyCode, status, GLFW.getModBits(GLFW.active));
  2674. },onKeydown:function (event) {
  2675. GLFW.onKeyChanged(event, 1); // GLFW_PRESS or GLFW_REPEAT
  2676. // This logic comes directly from the sdl implementation. We cannot
  2677. // call preventDefault on all keydown events otherwise onKeyPress will
  2678. // not get called
  2679. if (event.keyCode === 8 /* backspace */ || event.keyCode === 9 /* tab */) {
  2680. event.preventDefault();
  2681. }
  2682. },onKeyup:function (event) {
  2683. GLFW.onKeyChanged(event, 0); // GLFW_RELEASE
  2684. },onMousemove:function (event) {
  2685. if (!GLFW.active) return;
  2686. Browser.calculateMouseEvent(event);
  2687. if (event.target != Module["canvas"] || !GLFW.active.cursorPosFunc) return;
  2688. Module['dynCall_vidd'](GLFW.active.cursorPosFunc, GLFW.active.id, Browser.mouseX, Browser.mouseY);
  2689. },DOMToGLFWMouseButton:function (event) {
  2690. // DOM and glfw have different button codes.
  2691. // See http://www.w3schools.com/jsref/event_button.asp.
  2692. var eventButton = event['button'];
  2693. if (eventButton > 0) {
  2694. if (eventButton == 1) {
  2695. eventButton = 2;
  2696. } else {
  2697. eventButton = 1;
  2698. }
  2699. }
  2700. return eventButton;
  2701. },onMouseenter:function (event) {
  2702. if (!GLFW.active) return;
  2703. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2704. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 1);
  2705. },onMouseleave:function (event) {
  2706. if (!GLFW.active) return;
  2707. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2708. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 0);
  2709. },onMouseButtonChanged:function (event, status) {
  2710. if (!GLFW.active) return;
  2711. Browser.calculateMouseEvent(event);
  2712. if (event.target != Module["canvas"]) return;
  2713. eventButton = GLFW.DOMToGLFWMouseButton(event);
  2714. if (status == 1) { // GLFW_PRESS
  2715. GLFW.active.buttons |= (1 << eventButton);
  2716. try {
  2717. event.target.setCapture();
  2718. } catch (e) {}
  2719. } else { // GLFW_RELEASE
  2720. GLFW.active.buttons &= ~(1 << eventButton);
  2721. }
  2722. if (!GLFW.active.mouseButtonFunc) return;
  2723. Module['dynCall_viiii'](GLFW.active.mouseButtonFunc, GLFW.active.id, eventButton, status, GLFW.getModBits(GLFW.active));
  2724. },onMouseButtonDown:function (event) {
  2725. if (!GLFW.active) return;
  2726. GLFW.onMouseButtonChanged(event, 1); // GLFW_PRESS
  2727. },onMouseButtonUp:function (event) {
  2728. if (!GLFW.active) return;
  2729. GLFW.onMouseButtonChanged(event, 0); // GLFW_RELEASE
  2730. },onMouseWheel:function (event) {
  2731. // Note the minus sign that flips browser wheel direction (positive direction scrolls page down) to native wheel direction (positive direction is mouse wheel up)
  2732. var delta = -Browser.getMouseWheelDelta(event);
  2733. delta = (delta == 0) ? 0 : (delta > 0 ? Math.max(delta, 1) : Math.min(delta, -1)); // Quantize to integer so that minimum scroll is at least +/- 1.
  2734. GLFW.wheelPos += delta;
  2735. if (!GLFW.active || !GLFW.active.scrollFunc || event.target != Module['canvas']) return;
  2736. var sx = 0;
  2737. var sy = 0;
  2738. if (event.type == 'mousewheel') {
  2739. sx = event.wheelDeltaX;
  2740. sy = event.wheelDeltaY;
  2741. } else {
  2742. sx = event.deltaX;
  2743. sy = event.deltaY;
  2744. }
  2745. Module['dynCall_vidd'](GLFW.active.scrollFunc, GLFW.active.id, sx, sy);
  2746. event.preventDefault();
  2747. },onCanvasResize:function (width, height) {
  2748. if (!GLFW.active) return;
  2749. var resizeNeeded = true;
  2750. // If the client is requestiong fullscreen mode
  2751. if (document["fullscreen"] || document["fullScreen"] || document["mozFullScreen"] || document["webkitIsFullScreen"]) {
  2752. GLFW.active.storedX = GLFW.active.x;
  2753. GLFW.active.storedY = GLFW.active.y;
  2754. GLFW.active.storedWidth = GLFW.active.width;
  2755. GLFW.active.storedHeight = GLFW.active.height;
  2756. GLFW.active.x = GLFW.active.y = 0;
  2757. GLFW.active.width = screen.width;
  2758. GLFW.active.height = screen.height;
  2759. GLFW.active.fullscreen = true;
  2760. // If the client is reverting from fullscreen mode
  2761. } else if (GLFW.active.fullscreen == true) {
  2762. GLFW.active.x = GLFW.active.storedX;
  2763. GLFW.active.y = GLFW.active.storedY;
  2764. GLFW.active.width = GLFW.active.storedWidth;
  2765. GLFW.active.height = GLFW.active.storedHeight;
  2766. GLFW.active.fullscreen = false;
  2767. // If the width/height values do not match current active window sizes
  2768. } else if (GLFW.active.width != width || GLFW.active.height != height) {
  2769. GLFW.active.width = width;
  2770. GLFW.active.height = height;
  2771. } else {
  2772. resizeNeeded = false;
  2773. }
  2774. // If any of the above conditions were true, we need to resize the canvas
  2775. if (resizeNeeded) {
  2776. // resets the canvas size to counter the aspect preservation of Browser.updateCanvasDimensions
  2777. Browser.setCanvasSize(GLFW.active.width, GLFW.active.height, true);
  2778. // TODO: Client dimensions (clientWidth/clientHeight) vs pixel dimensions (width/height) of
  2779. // the canvas should drive window and framebuffer size respectfully.
  2780. GLFW.onWindowSizeChanged();
  2781. GLFW.onFramebufferSizeChanged();
  2782. }
  2783. },onWindowSizeChanged:function () {
  2784. if (!GLFW.active) return;
  2785. if (!GLFW.active.windowSizeFunc) return;
  2786. Module['dynCall_viii'](GLFW.active.windowSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2787. },onFramebufferSizeChanged:function () {
  2788. if (!GLFW.active) return;
  2789. if (!GLFW.active.framebufferSizeFunc) return;
  2790. Module['dynCall_viii'](GLFW.active.framebufferSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2791. },requestFullscreen:function () {
  2792. var RFS = Module["canvas"]['requestFullscreen'] ||
  2793. Module["canvas"]['mozRequestFullScreen'] ||
  2794. Module["canvas"]['webkitRequestFullScreen'] ||
  2795. (function() {});
  2796. RFS.apply(Module["canvas"], []);
  2797. },requestFullScreen:function () {
  2798. Module.printErr('GLFW.requestFullScreen() is deprecated. Please call GLFW.requestFullscreen instead.');
  2799. GLFW.requestFullScreen = function() {
  2800. return GLFW.requestFullscreen();
  2801. }
  2802. return GLFW.requestFullscreen();
  2803. },exitFullscreen:function () {
  2804. var CFS = document['exitFullscreen'] ||
  2805. document['cancelFullScreen'] ||
  2806. document['mozCancelFullScreen'] ||
  2807. document['webkitCancelFullScreen'] ||
  2808. (function() {});
  2809. CFS.apply(document, []);
  2810. },cancelFullScreen:function () {
  2811. Module.printErr('GLFW.cancelFullScreen() is deprecated. Please call GLFW.exitFullscreen instead.');
  2812. GLFW.cancelFullScreen = function() {
  2813. return GLFW.exitFullscreen();
  2814. }
  2815. return GLFW.exitFullscreen();
  2816. },getTime:function () {
  2817. return _emscripten_get_now() / 1000;
  2818. },setWindowTitle:function (winid, title) {
  2819. var win = GLFW.WindowFromId(winid);
  2820. if (!win) return;
  2821. win.title = Pointer_stringify(title);
  2822. if (GLFW.active.id == win.id) {
  2823. document.title = win.title;
  2824. }
  2825. },setKeyCallback:function (winid, cbfun) {
  2826. var win = GLFW.WindowFromId(winid);
  2827. if (!win) return;
  2828. win.keyFunc = cbfun;
  2829. },setCharCallback:function (winid, cbfun) {
  2830. var win = GLFW.WindowFromId(winid);
  2831. if (!win) return;
  2832. win.charFunc = cbfun;
  2833. },setMouseButtonCallback:function (winid, cbfun) {
  2834. var win = GLFW.WindowFromId(winid);
  2835. if (!win) return;
  2836. win.mouseButtonFunc = cbfun;
  2837. },setCursorPosCallback:function (winid, cbfun) {
  2838. var win = GLFW.WindowFromId(winid);
  2839. if (!win) return;
  2840. win.cursorPosFunc = cbfun;
  2841. },setScrollCallback:function (winid, cbfun) {
  2842. var win = GLFW.WindowFromId(winid);
  2843. if (!win) return;
  2844. win.scrollFunc = cbfun;
  2845. },setWindowSizeCallback:function (winid, cbfun) {
  2846. var win = GLFW.WindowFromId(winid);
  2847. if (!win) return;
  2848. win.windowSizeFunc = cbfun;
  2849. },setWindowCloseCallback:function (winid, cbfun) {
  2850. var win = GLFW.WindowFromId(winid);
  2851. if (!win) return;
  2852. win.windowCloseFunc = cbfun;
  2853. },setWindowRefreshCallback:function (winid, cbfun) {
  2854. var win = GLFW.WindowFromId(winid);
  2855. if (!win) return;
  2856. win.windowRefreshFunc = cbfun;
  2857. },onClickRequestPointerLock:function (e) {
  2858. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2859. Module['canvas'].requestPointerLock();
  2860. e.preventDefault();
  2861. }
  2862. },setInputMode:function (winid, mode, value) {
  2863. var win = GLFW.WindowFromId(winid);
  2864. if (!win) return;
  2865. switch(mode) {
  2866. case 0x00033001: { // GLFW_CURSOR
  2867. switch(value) {
  2868. case 0x00034001: { // GLFW_CURSOR_NORMAL
  2869. win.inputModes[mode] = value;
  2870. Module['canvas'].removeEventListener('click', GLFW.onClickRequestPointerLock, true);
  2871. Module['canvas'].exitPointerLock();
  2872. break;
  2873. }
  2874. case 0x00034002: { // GLFW_CURSOR_HIDDEN
  2875. console.log("glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.");
  2876. break;
  2877. }
  2878. case 0x00034003: { // GLFW_CURSOR_DISABLED
  2879. win.inputModes[mode] = value;
  2880. Module['canvas'].addEventListener('click', GLFW.onClickRequestPointerLock, true);
  2881. Module['canvas'].requestPointerLock();
  2882. break;
  2883. }
  2884. default: {
  2885. console.log("glfwSetInputMode called with unknown value parameter value: " + value + ".");
  2886. break;
  2887. }
  2888. }
  2889. break;
  2890. }
  2891. case 0x00033002: { // GLFW_STICKY_KEYS
  2892. console.log("glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.");
  2893. break;
  2894. }
  2895. case 0x00033003: { // GLFW_STICKY_MOUSE_BUTTONS
  2896. console.log("glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.");
  2897. break;
  2898. }
  2899. default: {
  2900. console.log("glfwSetInputMode called with unknown mode parameter value: " + mode + ".");
  2901. break;
  2902. }
  2903. }
  2904. },getKey:function (winid, key) {
  2905. var win = GLFW.WindowFromId(winid);
  2906. if (!win) return 0;
  2907. return win.keys[key];
  2908. },getMouseButton:function (winid, button) {
  2909. var win = GLFW.WindowFromId(winid);
  2910. if (!win) return 0;
  2911. return (win.buttons & (1 << button)) > 0;
  2912. },getCursorPos:function (winid, x, y) {
  2913. setValue(x, Browser.mouseX, 'double');
  2914. setValue(y, Browser.mouseY, 'double');
  2915. },getMousePos:function (winid, x, y) {
  2916. setValue(x, Browser.mouseX, 'i32');
  2917. setValue(y, Browser.mouseY, 'i32');
  2918. },setCursorPos:function (winid, x, y) {
  2919. },getWindowPos:function (winid, x, y) {
  2920. var wx = 0;
  2921. var wy = 0;
  2922. var win = GLFW.WindowFromId(winid);
  2923. if (win) {
  2924. wx = win.x;
  2925. wy = win.y;
  2926. }
  2927. setValue(x, wx, 'i32');
  2928. setValue(y, wy, 'i32');
  2929. },setWindowPos:function (winid, x, y) {
  2930. var win = GLFW.WindowFromId(winid);
  2931. if (!win) return;
  2932. win.x = x;
  2933. win.y = y;
  2934. },getWindowSize:function (winid, width, height) {
  2935. var ww = 0;
  2936. var wh = 0;
  2937. var win = GLFW.WindowFromId(winid);
  2938. if (win) {
  2939. ww = win.width;
  2940. wh = win.height;
  2941. }
  2942. setValue(width, ww, 'i32');
  2943. setValue(height, wh, 'i32');
  2944. },setWindowSize:function (winid, width, height) {
  2945. var win = GLFW.WindowFromId(winid);
  2946. if (!win) return;
  2947. if (GLFW.active.id == win.id) {
  2948. if (width == screen.width && height == screen.height) {
  2949. GLFW.requestFullscreen();
  2950. } else {
  2951. GLFW.exitFullscreen();
  2952. Browser.setCanvasSize(width, height);
  2953. win.width = width;
  2954. win.height = height;
  2955. }
  2956. }
  2957. if (!win.windowSizeFunc) return;
  2958. Module['dynCall_viii'](win.windowSizeFunc, win.id, width, height);
  2959. },createWindow:function (width, height, title, monitor, share) {
  2960. var i, id;
  2961. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] !== null; i++);
  2962. if (i > 0) throw "glfwCreateWindow only supports one window at time currently";
  2963. // id for window
  2964. id = i + 1;
  2965. // not valid
  2966. if (width <= 0 || height <= 0) return 0;
  2967. if (monitor) {
  2968. GLFW.requestFullscreen();
  2969. } else {
  2970. Browser.setCanvasSize(width, height);
  2971. }
  2972. // Create context when there are no existing alive windows
  2973. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] == null; i++);
  2974. if (i == GLFW.windows.length) {
  2975. var contextAttributes = {
  2976. antialias: (GLFW.hints[0x0002100D] > 1), // GLFW_SAMPLES
  2977. depth: (GLFW.hints[0x00021005] > 0), // GLFW_DEPTH_BITS
  2978. stencil: (GLFW.hints[0x00021006] > 0), // GLFW_STENCIL_BITS
  2979. alpha: (GLFW.hints[0x00021004] > 0) // GLFW_ALPHA_BITS
  2980. }
  2981. Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
  2982. }
  2983. // If context creation failed, do not return a valid window
  2984. if (!Module.ctx) return 0;
  2985. // Get non alive id
  2986. var win = new GLFW.Window(id, width, height, title, monitor, share);
  2987. // Set window to array
  2988. if (id - 1 == GLFW.windows.length) {
  2989. GLFW.windows.push(win);
  2990. } else {
  2991. GLFW.windows[id - 1] = win;
  2992. }
  2993. GLFW.active = win;
  2994. return win.id;
  2995. },destroyWindow:function (winid) {
  2996. var win = GLFW.WindowFromId(winid);
  2997. if (!win) return;
  2998. if (win.windowCloseFunc)
  2999. Module['dynCall_vi'](win.windowCloseFunc, win.id);
  3000. GLFW.windows[win.id - 1] = null;
  3001. if (GLFW.active.id == win.id)
  3002. GLFW.active = null;
  3003. // Destroy context when no alive windows
  3004. for (var i = 0; i < GLFW.windows.length; i++)
  3005. if (GLFW.windows[i] !== null) return;
  3006. Module.ctx = Browser.destroyContext(Module['canvas'], true, true);
  3007. },swapBuffers:function (winid) {
  3008. },GLFW2ParamToGLFW3Param:function (param) {
  3009. table = {
  3010. 0x00030001:0, // GLFW_MOUSE_CURSOR
  3011. 0x00030002:0, // GLFW_STICKY_KEYS
  3012. 0x00030003:0, // GLFW_STICKY_MOUSE_BUTTONS
  3013. 0x00030004:0, // GLFW_SYSTEM_KEYS
  3014. 0x00030005:0, // GLFW_KEY_REPEAT
  3015. 0x00030006:0, // GLFW_AUTO_POLL_EVENTS
  3016. 0x00020001:0, // GLFW_OPENED
  3017. 0x00020002:0, // GLFW_ACTIVE
  3018. 0x00020003:0, // GLFW_ICONIFIED
  3019. 0x00020004:0, // GLFW_ACCELERATED
  3020. 0x00020005:0x00021001, // GLFW_RED_BITS
  3021. 0x00020006:0x00021002, // GLFW_GREEN_BITS
  3022. 0x00020007:0x00021003, // GLFW_BLUE_BITS
  3023. 0x00020008:0x00021004, // GLFW_ALPHA_BITS
  3024. 0x00020009:0x00021005, // GLFW_DEPTH_BITS
  3025. 0x0002000A:0x00021006, // GLFW_STENCIL_BITS
  3026. 0x0002000B:0x0002100F, // GLFW_REFRESH_RATE
  3027. 0x0002000C:0x00021007, // GLFW_ACCUM_RED_BITS
  3028. 0x0002000D:0x00021008, // GLFW_ACCUM_GREEN_BITS
  3029. 0x0002000E:0x00021009, // GLFW_ACCUM_BLUE_BITS
  3030. 0x0002000F:0x0002100A, // GLFW_ACCUM_ALPHA_BITS
  3031. 0x00020010:0x0002100B, // GLFW_AUX_BUFFERS
  3032. 0x00020011:0x0002100C, // GLFW_STEREO
  3033. 0x00020012:0, // GLFW_WINDOW_NO_RESIZE
  3034. 0x00020013:0x0002100D, // GLFW_FSAA_SAMPLES
  3035. 0x00020014:0x00022002, // GLFW_OPENGL_VERSION_MAJOR
  3036. 0x00020015:0x00022003, // GLFW_OPENGL_VERSION_MINOR
  3037. 0x00020016:0x00022006, // GLFW_OPENGL_FORWARD_COMPAT
  3038. 0x00020017:0x00022007, // GLFW_OPENGL_DEBUG_CONTEXT
  3039. 0x00020018:0x00022008, // GLFW_OPENGL_PROFILE
  3040. };
  3041. return table[param];
  3042. }};function _glfwGetVideoModes(monitor, count) {
  3043. setValue(count, 0, 'i32');
  3044. return 0;
  3045. }
  3046. function _glLinkProgram(program) {
  3047. GLctx.linkProgram(GL.programs[program]);
  3048. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  3049. GL.populateUniformTable(program);
  3050. }
  3051. function _glBindTexture(target, texture) {
  3052. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  3053. }
  3054. function _emscripten_glStencilFunc(x0, x1, x2) { GLctx['stencilFunc'](x0, x1, x2) }
  3055. function _glGetString(name_) {
  3056. if (GL.stringCache[name_]) return GL.stringCache[name_];
  3057. var ret;
  3058. switch(name_) {
  3059. case 0x1F00 /* GL_VENDOR */:
  3060. case 0x1F01 /* GL_RENDERER */:
  3061. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  3062. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  3063. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  3064. break;
  3065. case 0x1F02 /* GL_VERSION */:
  3066. var glVersion = GLctx.getParameter(GLctx.VERSION);
  3067. // return GLES version string corresponding to the version of the WebGL context
  3068. {
  3069. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  3070. }
  3071. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  3072. break;
  3073. case 0x1F03 /* GL_EXTENSIONS */:
  3074. var exts = GLctx.getSupportedExtensions();
  3075. var gl_exts = [];
  3076. for (var i = 0; i < exts.length; ++i) {
  3077. gl_exts.push(exts[i]);
  3078. gl_exts.push("GL_" + exts[i]);
  3079. }
  3080. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  3081. break;
  3082. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  3083. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  3084. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  3085. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  3086. var ver_num = glslVersion.match(ver_re);
  3087. if (ver_num !== null) {
  3088. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  3089. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  3090. }
  3091. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  3092. break;
  3093. default:
  3094. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  3095. return 0;
  3096. }
  3097. GL.stringCache[name_] = ret;
  3098. return ret;
  3099. }
  3100. function _emscripten_glUniform3iv(location, count, value) {
  3101. GLctx.uniform3iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*12)>>2));
  3102. }
  3103. function _emscripten_glShaderSource(shader, count, string, length) {
  3104. var source = GL.getSource(shader, count, string, length);
  3105. GLctx.shaderSource(GL.shaders[shader], source);
  3106. }
  3107. function _emscripten_glReleaseShaderCompiler() {
  3108. // NOP (as allowed by GLES 2.0 spec)
  3109. }
  3110. function _glfwSetScrollCallback(winid, cbfun) {
  3111. GLFW.setScrollCallback(winid, cbfun);
  3112. }
  3113. function _emscripten_glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  3114. function _emscripten_glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  3115. function _glCompileShader(shader) {
  3116. GLctx.compileShader(GL.shaders[shader]);
  3117. }
  3118. 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};
  3119. 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"};
  3120. function ___setErrNo(value) {
  3121. if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
  3122. else Module.printErr('failed to set errno from JS');
  3123. return value;
  3124. }
  3125. var PATH={splitPath:function (filename) {
  3126. var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  3127. return splitPathRe.exec(filename).slice(1);
  3128. },normalizeArray:function (parts, allowAboveRoot) {
  3129. // if the path tries to go above the root, `up` ends up > 0
  3130. var up = 0;
  3131. for (var i = parts.length - 1; i >= 0; i--) {
  3132. var last = parts[i];
  3133. if (last === '.') {
  3134. parts.splice(i, 1);
  3135. } else if (last === '..') {
  3136. parts.splice(i, 1);
  3137. up++;
  3138. } else if (up) {
  3139. parts.splice(i, 1);
  3140. up--;
  3141. }
  3142. }
  3143. // if the path is allowed to go above the root, restore leading ..s
  3144. if (allowAboveRoot) {
  3145. for (; up--; up) {
  3146. parts.unshift('..');
  3147. }
  3148. }
  3149. return parts;
  3150. },normalize:function (path) {
  3151. var isAbsolute = path.charAt(0) === '/',
  3152. trailingSlash = path.substr(-1) === '/';
  3153. // Normalize the path
  3154. path = PATH.normalizeArray(path.split('/').filter(function(p) {
  3155. return !!p;
  3156. }), !isAbsolute).join('/');
  3157. if (!path && !isAbsolute) {
  3158. path = '.';
  3159. }
  3160. if (path && trailingSlash) {
  3161. path += '/';
  3162. }
  3163. return (isAbsolute ? '/' : '') + path;
  3164. },dirname:function (path) {
  3165. var result = PATH.splitPath(path),
  3166. root = result[0],
  3167. dir = result[1];
  3168. if (!root && !dir) {
  3169. // No dirname whatsoever
  3170. return '.';
  3171. }
  3172. if (dir) {
  3173. // It has a dirname, strip trailing slash
  3174. dir = dir.substr(0, dir.length - 1);
  3175. }
  3176. return root + dir;
  3177. },basename:function (path) {
  3178. // EMSCRIPTEN return '/'' for '/', not an empty string
  3179. if (path === '/') return '/';
  3180. var lastSlash = path.lastIndexOf('/');
  3181. if (lastSlash === -1) return path;
  3182. return path.substr(lastSlash+1);
  3183. },extname:function (path) {
  3184. return PATH.splitPath(path)[3];
  3185. },join:function () {
  3186. var paths = Array.prototype.slice.call(arguments, 0);
  3187. return PATH.normalize(paths.join('/'));
  3188. },join2:function (l, r) {
  3189. return PATH.normalize(l + '/' + r);
  3190. },resolve:function () {
  3191. var resolvedPath = '',
  3192. resolvedAbsolute = false;
  3193. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  3194. var path = (i >= 0) ? arguments[i] : FS.cwd();
  3195. // Skip empty and invalid entries
  3196. if (typeof path !== 'string') {
  3197. throw new TypeError('Arguments to path.resolve must be strings');
  3198. } else if (!path) {
  3199. return ''; // an invalid portion invalidates the whole thing
  3200. }
  3201. resolvedPath = path + '/' + resolvedPath;
  3202. resolvedAbsolute = path.charAt(0) === '/';
  3203. }
  3204. // At this point the path should be resolved to a full absolute path, but
  3205. // handle relative paths to be safe (might happen when process.cwd() fails)
  3206. resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
  3207. return !!p;
  3208. }), !resolvedAbsolute).join('/');
  3209. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  3210. },relative:function (from, to) {
  3211. from = PATH.resolve(from).substr(1);
  3212. to = PATH.resolve(to).substr(1);
  3213. function trim(arr) {
  3214. var start = 0;
  3215. for (; start < arr.length; start++) {
  3216. if (arr[start] !== '') break;
  3217. }
  3218. var end = arr.length - 1;
  3219. for (; end >= 0; end--) {
  3220. if (arr[end] !== '') break;
  3221. }
  3222. if (start > end) return [];
  3223. return arr.slice(start, end - start + 1);
  3224. }
  3225. var fromParts = trim(from.split('/'));
  3226. var toParts = trim(to.split('/'));
  3227. var length = Math.min(fromParts.length, toParts.length);
  3228. var samePartsLength = length;
  3229. for (var i = 0; i < length; i++) {
  3230. if (fromParts[i] !== toParts[i]) {
  3231. samePartsLength = i;
  3232. break;
  3233. }
  3234. }
  3235. var outputParts = [];
  3236. for (var i = samePartsLength; i < fromParts.length; i++) {
  3237. outputParts.push('..');
  3238. }
  3239. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  3240. return outputParts.join('/');
  3241. }};
  3242. var TTY={ttys:[],init:function () {
  3243. // https://github.com/kripken/emscripten/pull/1555
  3244. // if (ENVIRONMENT_IS_NODE) {
  3245. // // currently, FS.init does not distinguish if process.stdin is a file or TTY
  3246. // // device, it always assumes it's a TTY device. because of this, we're forcing
  3247. // // process.stdin to UTF8 encoding to at least make stdin reading compatible
  3248. // // with text files until FS.init can be refactored.
  3249. // process['stdin']['setEncoding']('utf8');
  3250. // }
  3251. },shutdown:function () {
  3252. // https://github.com/kripken/emscripten/pull/1555
  3253. // if (ENVIRONMENT_IS_NODE) {
  3254. // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
  3255. // // 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
  3256. // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
  3257. // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
  3258. // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
  3259. // process['stdin']['pause']();
  3260. // }
  3261. },register:function (dev, ops) {
  3262. TTY.ttys[dev] = { input: [], output: [], ops: ops };
  3263. FS.registerDevice(dev, TTY.stream_ops);
  3264. },stream_ops:{open:function (stream) {
  3265. var tty = TTY.ttys[stream.node.rdev];
  3266. if (!tty) {
  3267. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3268. }
  3269. stream.tty = tty;
  3270. stream.seekable = false;
  3271. },close:function (stream) {
  3272. // flush any pending line data
  3273. stream.tty.ops.flush(stream.tty);
  3274. },flush:function (stream) {
  3275. stream.tty.ops.flush(stream.tty);
  3276. },read:function (stream, buffer, offset, length, pos /* ignored */) {
  3277. if (!stream.tty || !stream.tty.ops.get_char) {
  3278. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3279. }
  3280. var bytesRead = 0;
  3281. for (var i = 0; i < length; i++) {
  3282. var result;
  3283. try {
  3284. result = stream.tty.ops.get_char(stream.tty);
  3285. } catch (e) {
  3286. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3287. }
  3288. if (result === undefined && bytesRead === 0) {
  3289. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  3290. }
  3291. if (result === null || result === undefined) break;
  3292. bytesRead++;
  3293. buffer[offset+i] = result;
  3294. }
  3295. if (bytesRead) {
  3296. stream.node.timestamp = Date.now();
  3297. }
  3298. return bytesRead;
  3299. },write:function (stream, buffer, offset, length, pos) {
  3300. if (!stream.tty || !stream.tty.ops.put_char) {
  3301. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3302. }
  3303. for (var i = 0; i < length; i++) {
  3304. try {
  3305. stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
  3306. } catch (e) {
  3307. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3308. }
  3309. }
  3310. if (length) {
  3311. stream.node.timestamp = Date.now();
  3312. }
  3313. return i;
  3314. }},default_tty_ops:{get_char:function (tty) {
  3315. if (!tty.input.length) {
  3316. var result = null;
  3317. if (ENVIRONMENT_IS_NODE) {
  3318. // we will read data by chunks of BUFSIZE
  3319. var BUFSIZE = 256;
  3320. var buf = new Buffer(BUFSIZE);
  3321. var bytesRead = 0;
  3322. var isPosixPlatform = (process.platform != 'win32'); // Node doesn't offer a direct check, so test by exclusion
  3323. var fd = process.stdin.fd;
  3324. if (isPosixPlatform) {
  3325. // Linux and Mac cannot use process.stdin.fd (which isn't set up as sync)
  3326. var usingDevice = false;
  3327. try {
  3328. fd = fs.openSync('/dev/stdin', 'r');
  3329. usingDevice = true;
  3330. } catch (e) {}
  3331. }
  3332. try {
  3333. bytesRead = fs.readSync(fd, buf, 0, BUFSIZE, null);
  3334. } catch(e) {
  3335. // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes,
  3336. // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0.
  3337. if (e.toString().indexOf('EOF') != -1) bytesRead = 0;
  3338. else throw e;
  3339. }
  3340. if (usingDevice) { fs.closeSync(fd); }
  3341. if (bytesRead > 0) {
  3342. result = buf.slice(0, bytesRead).toString('utf-8');
  3343. } else {
  3344. result = null;
  3345. }
  3346. } else if (typeof window != 'undefined' &&
  3347. typeof window.prompt == 'function') {
  3348. // Browser.
  3349. result = window.prompt('Input: '); // returns null on cancel
  3350. if (result !== null) {
  3351. result += '\n';
  3352. }
  3353. } else if (typeof readline == 'function') {
  3354. // Command line.
  3355. result = readline();
  3356. if (result !== null) {
  3357. result += '\n';
  3358. }
  3359. }
  3360. if (!result) {
  3361. return null;
  3362. }
  3363. tty.input = intArrayFromString(result, true);
  3364. }
  3365. return tty.input.shift();
  3366. },put_char:function (tty, val) {
  3367. if (val === null || val === 10) {
  3368. Module['print'](UTF8ArrayToString(tty.output, 0));
  3369. tty.output = [];
  3370. } else {
  3371. if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle.
  3372. }
  3373. },flush:function (tty) {
  3374. if (tty.output && tty.output.length > 0) {
  3375. Module['print'](UTF8ArrayToString(tty.output, 0));
  3376. tty.output = [];
  3377. }
  3378. }},default_tty1_ops:{put_char:function (tty, val) {
  3379. if (val === null || val === 10) {
  3380. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3381. tty.output = [];
  3382. } else {
  3383. if (val != 0) tty.output.push(val);
  3384. }
  3385. },flush:function (tty) {
  3386. if (tty.output && tty.output.length > 0) {
  3387. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3388. tty.output = [];
  3389. }
  3390. }}};
  3391. var MEMFS={ops_table:null,mount:function (mount) {
  3392. return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
  3393. },createNode:function (parent, name, mode, dev) {
  3394. if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
  3395. // no supported
  3396. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  3397. }
  3398. if (!MEMFS.ops_table) {
  3399. MEMFS.ops_table = {
  3400. dir: {
  3401. node: {
  3402. getattr: MEMFS.node_ops.getattr,
  3403. setattr: MEMFS.node_ops.setattr,
  3404. lookup: MEMFS.node_ops.lookup,
  3405. mknod: MEMFS.node_ops.mknod,
  3406. rename: MEMFS.node_ops.rename,
  3407. unlink: MEMFS.node_ops.unlink,
  3408. rmdir: MEMFS.node_ops.rmdir,
  3409. readdir: MEMFS.node_ops.readdir,
  3410. symlink: MEMFS.node_ops.symlink
  3411. },
  3412. stream: {
  3413. llseek: MEMFS.stream_ops.llseek
  3414. }
  3415. },
  3416. file: {
  3417. node: {
  3418. getattr: MEMFS.node_ops.getattr,
  3419. setattr: MEMFS.node_ops.setattr
  3420. },
  3421. stream: {
  3422. llseek: MEMFS.stream_ops.llseek,
  3423. read: MEMFS.stream_ops.read,
  3424. write: MEMFS.stream_ops.write,
  3425. allocate: MEMFS.stream_ops.allocate,
  3426. mmap: MEMFS.stream_ops.mmap,
  3427. msync: MEMFS.stream_ops.msync
  3428. }
  3429. },
  3430. link: {
  3431. node: {
  3432. getattr: MEMFS.node_ops.getattr,
  3433. setattr: MEMFS.node_ops.setattr,
  3434. readlink: MEMFS.node_ops.readlink
  3435. },
  3436. stream: {}
  3437. },
  3438. chrdev: {
  3439. node: {
  3440. getattr: MEMFS.node_ops.getattr,
  3441. setattr: MEMFS.node_ops.setattr
  3442. },
  3443. stream: FS.chrdev_stream_ops
  3444. }
  3445. };
  3446. }
  3447. var node = FS.createNode(parent, name, mode, dev);
  3448. if (FS.isDir(node.mode)) {
  3449. node.node_ops = MEMFS.ops_table.dir.node;
  3450. node.stream_ops = MEMFS.ops_table.dir.stream;
  3451. node.contents = {};
  3452. } else if (FS.isFile(node.mode)) {
  3453. node.node_ops = MEMFS.ops_table.file.node;
  3454. node.stream_ops = MEMFS.ops_table.file.stream;
  3455. node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
  3456. // 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
  3457. // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
  3458. // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
  3459. node.contents = null;
  3460. } else if (FS.isLink(node.mode)) {
  3461. node.node_ops = MEMFS.ops_table.link.node;
  3462. node.stream_ops = MEMFS.ops_table.link.stream;
  3463. } else if (FS.isChrdev(node.mode)) {
  3464. node.node_ops = MEMFS.ops_table.chrdev.node;
  3465. node.stream_ops = MEMFS.ops_table.chrdev.stream;
  3466. }
  3467. node.timestamp = Date.now();
  3468. // add the new node to the parent
  3469. if (parent) {
  3470. parent.contents[name] = node;
  3471. }
  3472. return node;
  3473. },getFileDataAsRegularArray:function (node) {
  3474. if (node.contents && node.contents.subarray) {
  3475. var arr = [];
  3476. for (var i = 0; i < node.usedBytes; ++i) arr.push(node.contents[i]);
  3477. return arr; // Returns a copy of the original data.
  3478. }
  3479. return node.contents; // No-op, the file contents are already in a JS array. Return as-is.
  3480. },getFileDataAsTypedArray:function (node) {
  3481. if (!node.contents) return new Uint8Array;
  3482. if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes.
  3483. return new Uint8Array(node.contents);
  3484. },expandFileStorage:function (node, newCapacity) {
  3485. // 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
  3486. // instead of a typed array. This makes resizing the array more flexible because we can just .push() elements at the back to
  3487. // increase the size.
  3488. if (node.contents && node.contents.subarray && newCapacity > node.contents.length) {
  3489. node.contents = MEMFS.getFileDataAsRegularArray(node);
  3490. node.usedBytes = node.contents.length; // We might be writing to a lazy-loaded file which had overridden this property, so force-reset it.
  3491. }
  3492. 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.
  3493. var prevCapacity = node.contents ? node.contents.length : 0;
  3494. if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough.
  3495. // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
  3496. // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
  3497. // avoid overshooting the allocation cap by a very large margin.
  3498. var CAPACITY_DOUBLING_MAX = 1024 * 1024;
  3499. newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) | 0);
  3500. if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding.
  3501. var oldContents = node.contents;
  3502. node.contents = new Uint8Array(newCapacity); // Allocate new storage.
  3503. if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage.
  3504. return;
  3505. }
  3506. // Not using a typed array to back the file storage. Use a standard JS array instead.
  3507. if (!node.contents && newCapacity > 0) node.contents = [];
  3508. while (node.contents.length < newCapacity) node.contents.push(0);
  3509. },resizeFileStorage:function (node, newSize) {
  3510. if (node.usedBytes == newSize) return;
  3511. if (newSize == 0) {
  3512. node.contents = null; // Fully decommit when requesting a resize to zero.
  3513. node.usedBytes = 0;
  3514. return;
  3515. }
  3516. if (!node.contents || node.contents.subarray) { // Resize a typed array if that is being used as the backing store.
  3517. var oldContents = node.contents;
  3518. node.contents = new Uint8Array(new ArrayBuffer(newSize)); // Allocate new storage.
  3519. if (oldContents) {
  3520. node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage.
  3521. }
  3522. node.usedBytes = newSize;
  3523. return;
  3524. }
  3525. // Backing with a JS array.
  3526. if (!node.contents) node.contents = [];
  3527. if (node.contents.length > newSize) node.contents.length = newSize;
  3528. else while (node.contents.length < newSize) node.contents.push(0);
  3529. node.usedBytes = newSize;
  3530. },node_ops:{getattr:function (node) {
  3531. var attr = {};
  3532. // device numbers reuse inode numbers.
  3533. attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
  3534. attr.ino = node.id;
  3535. attr.mode = node.mode;
  3536. attr.nlink = 1;
  3537. attr.uid = 0;
  3538. attr.gid = 0;
  3539. attr.rdev = node.rdev;
  3540. if (FS.isDir(node.mode)) {
  3541. attr.size = 4096;
  3542. } else if (FS.isFile(node.mode)) {
  3543. attr.size = node.usedBytes;
  3544. } else if (FS.isLink(node.mode)) {
  3545. attr.size = node.link.length;
  3546. } else {
  3547. attr.size = 0;
  3548. }
  3549. attr.atime = new Date(node.timestamp);
  3550. attr.mtime = new Date(node.timestamp);
  3551. attr.ctime = new Date(node.timestamp);
  3552. // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
  3553. // but this is not required by the standard.
  3554. attr.blksize = 4096;
  3555. attr.blocks = Math.ceil(attr.size / attr.blksize);
  3556. return attr;
  3557. },setattr:function (node, attr) {
  3558. if (attr.mode !== undefined) {
  3559. node.mode = attr.mode;
  3560. }
  3561. if (attr.timestamp !== undefined) {
  3562. node.timestamp = attr.timestamp;
  3563. }
  3564. if (attr.size !== undefined) {
  3565. MEMFS.resizeFileStorage(node, attr.size);
  3566. }
  3567. },lookup:function (parent, name) {
  3568. throw FS.genericErrors[ERRNO_CODES.ENOENT];
  3569. },mknod:function (parent, name, mode, dev) {
  3570. return MEMFS.createNode(parent, name, mode, dev);
  3571. },rename:function (old_node, new_dir, new_name) {
  3572. // if we're overwriting a directory at new_name, make sure it's empty.
  3573. if (FS.isDir(old_node.mode)) {
  3574. var new_node;
  3575. try {
  3576. new_node = FS.lookupNode(new_dir, new_name);
  3577. } catch (e) {
  3578. }
  3579. if (new_node) {
  3580. for (var i in new_node.contents) {
  3581. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3582. }
  3583. }
  3584. }
  3585. // do the internal rewiring
  3586. delete old_node.parent.contents[old_node.name];
  3587. old_node.name = new_name;
  3588. new_dir.contents[new_name] = old_node;
  3589. old_node.parent = new_dir;
  3590. },unlink:function (parent, name) {
  3591. delete parent.contents[name];
  3592. },rmdir:function (parent, name) {
  3593. var node = FS.lookupNode(parent, name);
  3594. for (var i in node.contents) {
  3595. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3596. }
  3597. delete parent.contents[name];
  3598. },readdir:function (node) {
  3599. var entries = ['.', '..']
  3600. for (var key in node.contents) {
  3601. if (!node.contents.hasOwnProperty(key)) {
  3602. continue;
  3603. }
  3604. entries.push(key);
  3605. }
  3606. return entries;
  3607. },symlink:function (parent, newname, oldpath) {
  3608. var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
  3609. node.link = oldpath;
  3610. return node;
  3611. },readlink:function (node) {
  3612. if (!FS.isLink(node.mode)) {
  3613. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3614. }
  3615. return node.link;
  3616. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  3617. var contents = stream.node.contents;
  3618. if (position >= stream.node.usedBytes) return 0;
  3619. var size = Math.min(stream.node.usedBytes - position, length);
  3620. assert(size >= 0);
  3621. if (size > 8 && contents.subarray) { // non-trivial, and typed array
  3622. buffer.set(contents.subarray(position, position + size), offset);
  3623. } else {
  3624. for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
  3625. }
  3626. return size;
  3627. },write:function (stream, buffer, offset, length, position, canOwn) {
  3628. if (!length) return 0;
  3629. var node = stream.node;
  3630. node.timestamp = Date.now();
  3631. if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array?
  3632. if (canOwn) {
  3633. assert(position === 0, 'canOwn must imply no weird position inside the file');
  3634. node.contents = buffer.subarray(offset, offset + length);
  3635. node.usedBytes = length;
  3636. return length;
  3637. } 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.
  3638. node.contents = new Uint8Array(buffer.subarray(offset, offset + length));
  3639. node.usedBytes = length;
  3640. return length;
  3641. } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file?
  3642. node.contents.set(buffer.subarray(offset, offset + length), position);
  3643. return length;
  3644. }
  3645. }
  3646. // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
  3647. MEMFS.expandFileStorage(node, position+length);
  3648. if (node.contents.subarray && buffer.subarray) node.contents.set(buffer.subarray(offset, offset + length), position); // Use typed array write if available.
  3649. else {
  3650. for (var i = 0; i < length; i++) {
  3651. node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not.
  3652. }
  3653. }
  3654. node.usedBytes = Math.max(node.usedBytes, position+length);
  3655. return length;
  3656. },llseek:function (stream, offset, whence) {
  3657. var position = offset;
  3658. if (whence === 1) { // SEEK_CUR.
  3659. position += stream.position;
  3660. } else if (whence === 2) { // SEEK_END.
  3661. if (FS.isFile(stream.node.mode)) {
  3662. position += stream.node.usedBytes;
  3663. }
  3664. }
  3665. if (position < 0) {
  3666. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3667. }
  3668. return position;
  3669. },allocate:function (stream, offset, length) {
  3670. MEMFS.expandFileStorage(stream.node, offset + length);
  3671. stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
  3672. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  3673. if (!FS.isFile(stream.node.mode)) {
  3674. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3675. }
  3676. var ptr;
  3677. var allocated;
  3678. var contents = stream.node.contents;
  3679. // Only make a new copy when MAP_PRIVATE is specified.
  3680. if ( !(flags & 2) &&
  3681. (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
  3682. // We can't emulate MAP_SHARED when the file is not backed by the buffer
  3683. // we're mapping to (e.g. the HEAP buffer).
  3684. allocated = false;
  3685. ptr = contents.byteOffset;
  3686. } else {
  3687. // Try to avoid unnecessary slices.
  3688. if (position > 0 || position + length < stream.node.usedBytes) {
  3689. if (contents.subarray) {
  3690. contents = contents.subarray(position, position + length);
  3691. } else {
  3692. contents = Array.prototype.slice.call(contents, position, position + length);
  3693. }
  3694. }
  3695. allocated = true;
  3696. ptr = _malloc(length);
  3697. if (!ptr) {
  3698. throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
  3699. }
  3700. buffer.set(contents, ptr);
  3701. }
  3702. return { ptr: ptr, allocated: allocated };
  3703. },msync:function (stream, buffer, offset, length, mmapFlags) {
  3704. if (!FS.isFile(stream.node.mode)) {
  3705. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3706. }
  3707. if (mmapFlags & 2) {
  3708. // MAP_PRIVATE calls need not to be synced back to underlying fs
  3709. return 0;
  3710. }
  3711. var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false);
  3712. // should we check if bytesWritten and length are the same?
  3713. return 0;
  3714. }}};
  3715. var IDBFS={dbs:{},indexedDB:function () {
  3716. if (typeof indexedDB !== 'undefined') return indexedDB;
  3717. var ret = null;
  3718. if (typeof window === 'object') ret = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  3719. assert(ret, 'IDBFS used, but indexedDB not supported');
  3720. return ret;
  3721. },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
  3722. // reuse all of the core MEMFS functionality
  3723. return MEMFS.mount.apply(null, arguments);
  3724. },syncfs:function (mount, populate, callback) {
  3725. IDBFS.getLocalSet(mount, function(err, local) {
  3726. if (err) return callback(err);
  3727. IDBFS.getRemoteSet(mount, function(err, remote) {
  3728. if (err) return callback(err);
  3729. var src = populate ? remote : local;
  3730. var dst = populate ? local : remote;
  3731. IDBFS.reconcile(src, dst, callback);
  3732. });
  3733. });
  3734. },getDB:function (name, callback) {
  3735. // check the cache first
  3736. var db = IDBFS.dbs[name];
  3737. if (db) {
  3738. return callback(null, db);
  3739. }
  3740. var req;
  3741. try {
  3742. req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
  3743. } catch (e) {
  3744. return callback(e);
  3745. }
  3746. if (!req) {
  3747. return callback("Unable to connect to IndexedDB");
  3748. }
  3749. req.onupgradeneeded = function(e) {
  3750. var db = e.target.result;
  3751. var transaction = e.target.transaction;
  3752. var fileStore;
  3753. if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
  3754. fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3755. } else {
  3756. fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
  3757. }
  3758. if (!fileStore.indexNames.contains('timestamp')) {
  3759. fileStore.createIndex('timestamp', 'timestamp', { unique: false });
  3760. }
  3761. };
  3762. req.onsuccess = function() {
  3763. db = req.result;
  3764. // add to the cache
  3765. IDBFS.dbs[name] = db;
  3766. callback(null, db);
  3767. };
  3768. req.onerror = function(e) {
  3769. callback(this.error);
  3770. e.preventDefault();
  3771. };
  3772. },getLocalSet:function (mount, callback) {
  3773. var entries = {};
  3774. function isRealDir(p) {
  3775. return p !== '.' && p !== '..';
  3776. };
  3777. function toAbsolute(root) {
  3778. return function(p) {
  3779. return PATH.join2(root, p);
  3780. }
  3781. };
  3782. var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
  3783. while (check.length) {
  3784. var path = check.pop();
  3785. var stat;
  3786. try {
  3787. stat = FS.stat(path);
  3788. } catch (e) {
  3789. return callback(e);
  3790. }
  3791. if (FS.isDir(stat.mode)) {
  3792. check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
  3793. }
  3794. entries[path] = { timestamp: stat.mtime };
  3795. }
  3796. return callback(null, { type: 'local', entries: entries });
  3797. },getRemoteSet:function (mount, callback) {
  3798. var entries = {};
  3799. IDBFS.getDB(mount.mountpoint, function(err, db) {
  3800. if (err) return callback(err);
  3801. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
  3802. transaction.onerror = function(e) {
  3803. callback(this.error);
  3804. e.preventDefault();
  3805. };
  3806. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3807. var index = store.index('timestamp');
  3808. index.openKeyCursor().onsuccess = function(event) {
  3809. var cursor = event.target.result;
  3810. if (!cursor) {
  3811. return callback(null, { type: 'remote', db: db, entries: entries });
  3812. }
  3813. entries[cursor.primaryKey] = { timestamp: cursor.key };
  3814. cursor.continue();
  3815. };
  3816. });
  3817. },loadLocalEntry:function (path, callback) {
  3818. var stat, node;
  3819. try {
  3820. var lookup = FS.lookupPath(path);
  3821. node = lookup.node;
  3822. stat = FS.stat(path);
  3823. } catch (e) {
  3824. return callback(e);
  3825. }
  3826. if (FS.isDir(stat.mode)) {
  3827. return callback(null, { timestamp: stat.mtime, mode: stat.mode });
  3828. } else if (FS.isFile(stat.mode)) {
  3829. // Performance consideration: storing a normal JavaScript array to a IndexedDB is much slower than storing a typed array.
  3830. // Therefore always convert the file contents to a typed array first before writing the data to IndexedDB.
  3831. node.contents = MEMFS.getFileDataAsTypedArray(node);
  3832. return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
  3833. } else {
  3834. return callback(new Error('node type not supported'));
  3835. }
  3836. },storeLocalEntry:function (path, entry, callback) {
  3837. try {
  3838. if (FS.isDir(entry.mode)) {
  3839. FS.mkdir(path, entry.mode);
  3840. } else if (FS.isFile(entry.mode)) {
  3841. FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
  3842. } else {
  3843. return callback(new Error('node type not supported'));
  3844. }
  3845. FS.chmod(path, entry.mode);
  3846. FS.utime(path, entry.timestamp, entry.timestamp);
  3847. } catch (e) {
  3848. return callback(e);
  3849. }
  3850. callback(null);
  3851. },removeLocalEntry:function (path, callback) {
  3852. try {
  3853. var lookup = FS.lookupPath(path);
  3854. var stat = FS.stat(path);
  3855. if (FS.isDir(stat.mode)) {
  3856. FS.rmdir(path);
  3857. } else if (FS.isFile(stat.mode)) {
  3858. FS.unlink(path);
  3859. }
  3860. } catch (e) {
  3861. return callback(e);
  3862. }
  3863. callback(null);
  3864. },loadRemoteEntry:function (store, path, callback) {
  3865. var req = store.get(path);
  3866. req.onsuccess = function(event) { callback(null, event.target.result); };
  3867. req.onerror = function(e) {
  3868. callback(this.error);
  3869. e.preventDefault();
  3870. };
  3871. },storeRemoteEntry:function (store, path, entry, callback) {
  3872. var req = store.put(entry, path);
  3873. req.onsuccess = function() { callback(null); };
  3874. req.onerror = function(e) {
  3875. callback(this.error);
  3876. e.preventDefault();
  3877. };
  3878. },removeRemoteEntry:function (store, path, callback) {
  3879. var req = store.delete(path);
  3880. req.onsuccess = function() { callback(null); };
  3881. req.onerror = function(e) {
  3882. callback(this.error);
  3883. e.preventDefault();
  3884. };
  3885. },reconcile:function (src, dst, callback) {
  3886. var total = 0;
  3887. var create = [];
  3888. Object.keys(src.entries).forEach(function (key) {
  3889. var e = src.entries[key];
  3890. var e2 = dst.entries[key];
  3891. if (!e2 || e.timestamp > e2.timestamp) {
  3892. create.push(key);
  3893. total++;
  3894. }
  3895. });
  3896. var remove = [];
  3897. Object.keys(dst.entries).forEach(function (key) {
  3898. var e = dst.entries[key];
  3899. var e2 = src.entries[key];
  3900. if (!e2) {
  3901. remove.push(key);
  3902. total++;
  3903. }
  3904. });
  3905. if (!total) {
  3906. return callback(null);
  3907. }
  3908. var errored = false;
  3909. var completed = 0;
  3910. var db = src.type === 'remote' ? src.db : dst.db;
  3911. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
  3912. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3913. function done(err) {
  3914. if (err) {
  3915. if (!done.errored) {
  3916. done.errored = true;
  3917. return callback(err);
  3918. }
  3919. return;
  3920. }
  3921. if (++completed >= total) {
  3922. return callback(null);
  3923. }
  3924. };
  3925. transaction.onerror = function(e) {
  3926. done(this.error);
  3927. e.preventDefault();
  3928. };
  3929. // sort paths in ascending order so directory entries are created
  3930. // before the files inside them
  3931. create.sort().forEach(function (path) {
  3932. if (dst.type === 'local') {
  3933. IDBFS.loadRemoteEntry(store, path, function (err, entry) {
  3934. if (err) return done(err);
  3935. IDBFS.storeLocalEntry(path, entry, done);
  3936. });
  3937. } else {
  3938. IDBFS.loadLocalEntry(path, function (err, entry) {
  3939. if (err) return done(err);
  3940. IDBFS.storeRemoteEntry(store, path, entry, done);
  3941. });
  3942. }
  3943. });
  3944. // sort paths in descending order so files are deleted before their
  3945. // parent directories
  3946. remove.sort().reverse().forEach(function(path) {
  3947. if (dst.type === 'local') {
  3948. IDBFS.removeLocalEntry(path, done);
  3949. } else {
  3950. IDBFS.removeRemoteEntry(store, path, done);
  3951. }
  3952. });
  3953. }};
  3954. var NODEFS={isWindows:false,staticInit:function () {
  3955. NODEFS.isWindows = !!process.platform.match(/^win/);
  3956. },mount:function (mount) {
  3957. assert(ENVIRONMENT_IS_NODE);
  3958. return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
  3959. },createNode:function (parent, name, mode, dev) {
  3960. if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
  3961. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3962. }
  3963. var node = FS.createNode(parent, name, mode);
  3964. node.node_ops = NODEFS.node_ops;
  3965. node.stream_ops = NODEFS.stream_ops;
  3966. return node;
  3967. },getMode:function (path) {
  3968. var stat;
  3969. try {
  3970. stat = fs.lstatSync(path);
  3971. if (NODEFS.isWindows) {
  3972. // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so
  3973. // propagate write bits to execute bits.
  3974. stat.mode = stat.mode | ((stat.mode & 146) >> 1);
  3975. }
  3976. } catch (e) {
  3977. if (!e.code) throw e;
  3978. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  3979. }
  3980. return stat.mode;
  3981. },realPath:function (node) {
  3982. var parts = [];
  3983. while (node.parent !== node) {
  3984. parts.push(node.name);
  3985. node = node.parent;
  3986. }
  3987. parts.push(node.mount.opts.root);
  3988. parts.reverse();
  3989. return PATH.join.apply(null, parts);
  3990. },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) {
  3991. flags &= ~0x200000 /*O_PATH*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3992. flags &= ~0x800 /*O_NONBLOCK*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3993. flags &= ~0x8000 /*O_LARGEFILE*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3994. flags &= ~0x80000 /*O_CLOEXEC*/; // Some applications may pass it; it makes no sense for a single process.
  3995. if (flags in NODEFS.flagsToPermissionStringMap) {
  3996. return NODEFS.flagsToPermissionStringMap[flags];
  3997. } else {
  3998. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3999. }
  4000. },node_ops:{getattr:function (node) {
  4001. var path = NODEFS.realPath(node);
  4002. var stat;
  4003. try {
  4004. stat = fs.lstatSync(path);
  4005. } catch (e) {
  4006. if (!e.code) throw e;
  4007. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4008. }
  4009. // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
  4010. // See http://support.microsoft.com/kb/140365
  4011. if (NODEFS.isWindows && !stat.blksize) {
  4012. stat.blksize = 4096;
  4013. }
  4014. if (NODEFS.isWindows && !stat.blocks) {
  4015. stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
  4016. }
  4017. return {
  4018. dev: stat.dev,
  4019. ino: stat.ino,
  4020. mode: stat.mode,
  4021. nlink: stat.nlink,
  4022. uid: stat.uid,
  4023. gid: stat.gid,
  4024. rdev: stat.rdev,
  4025. size: stat.size,
  4026. atime: stat.atime,
  4027. mtime: stat.mtime,
  4028. ctime: stat.ctime,
  4029. blksize: stat.blksize,
  4030. blocks: stat.blocks
  4031. };
  4032. },setattr:function (node, attr) {
  4033. var path = NODEFS.realPath(node);
  4034. try {
  4035. if (attr.mode !== undefined) {
  4036. fs.chmodSync(path, attr.mode);
  4037. // update the common node structure mode as well
  4038. node.mode = attr.mode;
  4039. }
  4040. if (attr.timestamp !== undefined) {
  4041. var date = new Date(attr.timestamp);
  4042. fs.utimesSync(path, date, date);
  4043. }
  4044. if (attr.size !== undefined) {
  4045. fs.truncateSync(path, attr.size);
  4046. }
  4047. } catch (e) {
  4048. if (!e.code) throw e;
  4049. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4050. }
  4051. },lookup:function (parent, name) {
  4052. var path = PATH.join2(NODEFS.realPath(parent), name);
  4053. var mode = NODEFS.getMode(path);
  4054. return NODEFS.createNode(parent, name, mode);
  4055. },mknod:function (parent, name, mode, dev) {
  4056. var node = NODEFS.createNode(parent, name, mode, dev);
  4057. // create the backing node for this in the fs root as well
  4058. var path = NODEFS.realPath(node);
  4059. try {
  4060. if (FS.isDir(node.mode)) {
  4061. fs.mkdirSync(path, node.mode);
  4062. } else {
  4063. fs.writeFileSync(path, '', { mode: node.mode });
  4064. }
  4065. } catch (e) {
  4066. if (!e.code) throw e;
  4067. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4068. }
  4069. return node;
  4070. },rename:function (oldNode, newDir, newName) {
  4071. var oldPath = NODEFS.realPath(oldNode);
  4072. var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
  4073. try {
  4074. fs.renameSync(oldPath, newPath);
  4075. } catch (e) {
  4076. if (!e.code) throw e;
  4077. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4078. }
  4079. },unlink:function (parent, name) {
  4080. var path = PATH.join2(NODEFS.realPath(parent), name);
  4081. try {
  4082. fs.unlinkSync(path);
  4083. } catch (e) {
  4084. if (!e.code) throw e;
  4085. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4086. }
  4087. },rmdir:function (parent, name) {
  4088. var path = PATH.join2(NODEFS.realPath(parent), name);
  4089. try {
  4090. fs.rmdirSync(path);
  4091. } catch (e) {
  4092. if (!e.code) throw e;
  4093. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4094. }
  4095. },readdir:function (node) {
  4096. var path = NODEFS.realPath(node);
  4097. try {
  4098. return fs.readdirSync(path);
  4099. } catch (e) {
  4100. if (!e.code) throw e;
  4101. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4102. }
  4103. },symlink:function (parent, newName, oldPath) {
  4104. var newPath = PATH.join2(NODEFS.realPath(parent), newName);
  4105. try {
  4106. fs.symlinkSync(oldPath, newPath);
  4107. } catch (e) {
  4108. if (!e.code) throw e;
  4109. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4110. }
  4111. },readlink:function (node) {
  4112. var path = NODEFS.realPath(node);
  4113. try {
  4114. path = fs.readlinkSync(path);
  4115. path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
  4116. return path;
  4117. } catch (e) {
  4118. if (!e.code) throw e;
  4119. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4120. }
  4121. }},stream_ops:{open:function (stream) {
  4122. var path = NODEFS.realPath(stream.node);
  4123. try {
  4124. if (FS.isFile(stream.node.mode)) {
  4125. stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
  4126. }
  4127. } catch (e) {
  4128. if (!e.code) throw e;
  4129. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4130. }
  4131. },close:function (stream) {
  4132. try {
  4133. if (FS.isFile(stream.node.mode) && stream.nfd) {
  4134. fs.closeSync(stream.nfd);
  4135. }
  4136. } catch (e) {
  4137. if (!e.code) throw e;
  4138. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4139. }
  4140. },read:function (stream, buffer, offset, length, position) {
  4141. if (length === 0) return 0; // node errors on 0 length reads
  4142. // FIXME this is terrible.
  4143. var nbuffer = new Buffer(length);
  4144. var res;
  4145. try {
  4146. res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
  4147. } catch (e) {
  4148. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4149. }
  4150. if (res > 0) {
  4151. for (var i = 0; i < res; i++) {
  4152. buffer[offset + i] = nbuffer[i];
  4153. }
  4154. }
  4155. return res;
  4156. },write:function (stream, buffer, offset, length, position) {
  4157. // FIXME this is terrible.
  4158. var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
  4159. var res;
  4160. try {
  4161. res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
  4162. } catch (e) {
  4163. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4164. }
  4165. return res;
  4166. },llseek:function (stream, offset, whence) {
  4167. var position = offset;
  4168. if (whence === 1) { // SEEK_CUR.
  4169. position += stream.position;
  4170. } else if (whence === 2) { // SEEK_END.
  4171. if (FS.isFile(stream.node.mode)) {
  4172. try {
  4173. var stat = fs.fstatSync(stream.nfd);
  4174. position += stat.size;
  4175. } catch (e) {
  4176. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4177. }
  4178. }
  4179. }
  4180. if (position < 0) {
  4181. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4182. }
  4183. return position;
  4184. }}};
  4185. var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function (mount) {
  4186. assert(ENVIRONMENT_IS_WORKER);
  4187. if (!WORKERFS.reader) WORKERFS.reader = new FileReaderSync();
  4188. var root = WORKERFS.createNode(null, '/', WORKERFS.DIR_MODE, 0);
  4189. var createdParents = {};
  4190. function ensureParent(path) {
  4191. // return the parent node, creating subdirs as necessary
  4192. var parts = path.split('/');
  4193. var parent = root;
  4194. for (var i = 0; i < parts.length-1; i++) {
  4195. var curr = parts.slice(0, i+1).join('/');
  4196. // Issue 4254: Using curr as a node name will prevent the node
  4197. // from being found in FS.nameTable when FS.open is called on
  4198. // a path which holds a child of this node,
  4199. // given that all FS functions assume node names
  4200. // are just their corresponding parts within their given path,
  4201. // rather than incremental aggregates which include their parent's
  4202. // directories.
  4203. if (!createdParents[curr]) {
  4204. createdParents[curr] = WORKERFS.createNode(parent, parts[i], WORKERFS.DIR_MODE, 0);
  4205. }
  4206. parent = createdParents[curr];
  4207. }
  4208. return parent;
  4209. }
  4210. function base(path) {
  4211. var parts = path.split('/');
  4212. return parts[parts.length-1];
  4213. }
  4214. // We also accept FileList here, by using Array.prototype
  4215. Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
  4216. WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);
  4217. });
  4218. (mount.opts["blobs"] || []).forEach(function(obj) {
  4219. WORKERFS.createNode(ensureParent(obj["name"]), base(obj["name"]), WORKERFS.FILE_MODE, 0, obj["data"]);
  4220. });
  4221. (mount.opts["packages"] || []).forEach(function(pack) {
  4222. pack['metadata'].files.forEach(function(file) {
  4223. var name = file.filename.substr(1); // remove initial slash
  4224. WORKERFS.createNode(ensureParent(name), base(name), WORKERFS.FILE_MODE, 0, pack['blob'].slice(file.start, file.end));
  4225. });
  4226. });
  4227. return root;
  4228. },createNode:function (parent, name, mode, dev, contents, mtime) {
  4229. var node = FS.createNode(parent, name, mode);
  4230. node.mode = mode;
  4231. node.node_ops = WORKERFS.node_ops;
  4232. node.stream_ops = WORKERFS.stream_ops;
  4233. node.timestamp = (mtime || new Date).getTime();
  4234. assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE);
  4235. if (mode === WORKERFS.FILE_MODE) {
  4236. node.size = contents.size;
  4237. node.contents = contents;
  4238. } else {
  4239. node.size = 4096;
  4240. node.contents = {};
  4241. }
  4242. if (parent) {
  4243. parent.contents[name] = node;
  4244. }
  4245. return node;
  4246. },node_ops:{getattr:function (node) {
  4247. return {
  4248. dev: 1,
  4249. ino: undefined,
  4250. mode: node.mode,
  4251. nlink: 1,
  4252. uid: 0,
  4253. gid: 0,
  4254. rdev: undefined,
  4255. size: node.size,
  4256. atime: new Date(node.timestamp),
  4257. mtime: new Date(node.timestamp),
  4258. ctime: new Date(node.timestamp),
  4259. blksize: 4096,
  4260. blocks: Math.ceil(node.size / 4096),
  4261. };
  4262. },setattr:function (node, attr) {
  4263. if (attr.mode !== undefined) {
  4264. node.mode = attr.mode;
  4265. }
  4266. if (attr.timestamp !== undefined) {
  4267. node.timestamp = attr.timestamp;
  4268. }
  4269. },lookup:function (parent, name) {
  4270. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4271. },mknod:function (parent, name, mode, dev) {
  4272. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4273. },rename:function (oldNode, newDir, newName) {
  4274. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4275. },unlink:function (parent, name) {
  4276. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4277. },rmdir:function (parent, name) {
  4278. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4279. },readdir:function (node) {
  4280. var entries = ['.', '..'];
  4281. for (var key in node.contents) {
  4282. if (!node.contents.hasOwnProperty(key)) {
  4283. continue;
  4284. }
  4285. entries.push(key);
  4286. }
  4287. return entries;
  4288. },symlink:function (parent, newName, oldPath) {
  4289. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4290. },readlink:function (node) {
  4291. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4292. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  4293. if (position >= stream.node.size) return 0;
  4294. var chunk = stream.node.contents.slice(position, position + length);
  4295. var ab = WORKERFS.reader.readAsArrayBuffer(chunk);
  4296. buffer.set(new Uint8Array(ab), offset);
  4297. return chunk.size;
  4298. },write:function (stream, buffer, offset, length, position) {
  4299. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  4300. },llseek:function (stream, offset, whence) {
  4301. var position = offset;
  4302. if (whence === 1) { // SEEK_CUR.
  4303. position += stream.position;
  4304. } else if (whence === 2) { // SEEK_END.
  4305. if (FS.isFile(stream.node.mode)) {
  4306. position += stream.node.size;
  4307. }
  4308. }
  4309. if (position < 0) {
  4310. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4311. }
  4312. return position;
  4313. }}};
  4314. var _stdin=STATICTOP; STATICTOP += 16;;
  4315. var _stdout=STATICTOP; STATICTOP += 16;;
  4316. 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) {
  4317. if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
  4318. return ___setErrNo(e.errno);
  4319. },lookupPath:function (path, opts) {
  4320. path = PATH.resolve(FS.cwd(), path);
  4321. opts = opts || {};
  4322. if (!path) return { path: '', node: null };
  4323. var defaults = {
  4324. follow_mount: true,
  4325. recurse_count: 0
  4326. };
  4327. for (var key in defaults) {
  4328. if (opts[key] === undefined) {
  4329. opts[key] = defaults[key];
  4330. }
  4331. }
  4332. if (opts.recurse_count > 8) { // max recursive lookup of 8
  4333. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4334. }
  4335. // split the path
  4336. var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
  4337. return !!p;
  4338. }), false);
  4339. // start at the root
  4340. var current = FS.root;
  4341. var current_path = '/';
  4342. for (var i = 0; i < parts.length; i++) {
  4343. var islast = (i === parts.length-1);
  4344. if (islast && opts.parent) {
  4345. // stop resolving
  4346. break;
  4347. }
  4348. current = FS.lookupNode(current, parts[i]);
  4349. current_path = PATH.join2(current_path, parts[i]);
  4350. // jump to the mount's root node if this is a mountpoint
  4351. if (FS.isMountpoint(current)) {
  4352. if (!islast || (islast && opts.follow_mount)) {
  4353. current = current.mounted.root;
  4354. }
  4355. }
  4356. // by default, lookupPath will not follow a symlink if it is the final path component.
  4357. // setting opts.follow = true will override this behavior.
  4358. if (!islast || opts.follow) {
  4359. var count = 0;
  4360. while (FS.isLink(current.mode)) {
  4361. var link = FS.readlink(current_path);
  4362. current_path = PATH.resolve(PATH.dirname(current_path), link);
  4363. var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
  4364. current = lookup.node;
  4365. if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
  4366. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4367. }
  4368. }
  4369. }
  4370. }
  4371. return { path: current_path, node: current };
  4372. },getPath:function (node) {
  4373. var path;
  4374. while (true) {
  4375. if (FS.isRoot(node)) {
  4376. var mount = node.mount.mountpoint;
  4377. if (!path) return mount;
  4378. return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
  4379. }
  4380. path = path ? node.name + '/' + path : node.name;
  4381. node = node.parent;
  4382. }
  4383. },hashName:function (parentid, name) {
  4384. var hash = 0;
  4385. for (var i = 0; i < name.length; i++) {
  4386. hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
  4387. }
  4388. return ((parentid + hash) >>> 0) % FS.nameTable.length;
  4389. },hashAddNode:function (node) {
  4390. var hash = FS.hashName(node.parent.id, node.name);
  4391. node.name_next = FS.nameTable[hash];
  4392. FS.nameTable[hash] = node;
  4393. },hashRemoveNode:function (node) {
  4394. var hash = FS.hashName(node.parent.id, node.name);
  4395. if (FS.nameTable[hash] === node) {
  4396. FS.nameTable[hash] = node.name_next;
  4397. } else {
  4398. var current = FS.nameTable[hash];
  4399. while (current) {
  4400. if (current.name_next === node) {
  4401. current.name_next = node.name_next;
  4402. break;
  4403. }
  4404. current = current.name_next;
  4405. }
  4406. }
  4407. },lookupNode:function (parent, name) {
  4408. var err = FS.mayLookup(parent);
  4409. if (err) {
  4410. throw new FS.ErrnoError(err, parent);
  4411. }
  4412. var hash = FS.hashName(parent.id, name);
  4413. for (var node = FS.nameTable[hash]; node; node = node.name_next) {
  4414. var nodeName = node.name;
  4415. if (node.parent.id === parent.id && nodeName === name) {
  4416. return node;
  4417. }
  4418. }
  4419. // if we failed to find it in the cache, call into the VFS
  4420. return FS.lookup(parent, name);
  4421. },createNode:function (parent, name, mode, rdev) {
  4422. if (!FS.FSNode) {
  4423. FS.FSNode = function(parent, name, mode, rdev) {
  4424. if (!parent) {
  4425. parent = this; // root node sets parent to itself
  4426. }
  4427. this.parent = parent;
  4428. this.mount = parent.mount;
  4429. this.mounted = null;
  4430. this.id = FS.nextInode++;
  4431. this.name = name;
  4432. this.mode = mode;
  4433. this.node_ops = {};
  4434. this.stream_ops = {};
  4435. this.rdev = rdev;
  4436. };
  4437. FS.FSNode.prototype = {};
  4438. // compatibility
  4439. var readMode = 292 | 73;
  4440. var writeMode = 146;
  4441. // NOTE we must use Object.defineProperties instead of individual calls to
  4442. // Object.defineProperty in order to make closure compiler happy
  4443. Object.defineProperties(FS.FSNode.prototype, {
  4444. read: {
  4445. get: function() { return (this.mode & readMode) === readMode; },
  4446. set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
  4447. },
  4448. write: {
  4449. get: function() { return (this.mode & writeMode) === writeMode; },
  4450. set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
  4451. },
  4452. isFolder: {
  4453. get: function() { return FS.isDir(this.mode); }
  4454. },
  4455. isDevice: {
  4456. get: function() { return FS.isChrdev(this.mode); }
  4457. }
  4458. });
  4459. }
  4460. var node = new FS.FSNode(parent, name, mode, rdev);
  4461. FS.hashAddNode(node);
  4462. return node;
  4463. },destroyNode:function (node) {
  4464. FS.hashRemoveNode(node);
  4465. },isRoot:function (node) {
  4466. return node === node.parent;
  4467. },isMountpoint:function (node) {
  4468. return !!node.mounted;
  4469. },isFile:function (mode) {
  4470. return (mode & 61440) === 32768;
  4471. },isDir:function (mode) {
  4472. return (mode & 61440) === 16384;
  4473. },isLink:function (mode) {
  4474. return (mode & 61440) === 40960;
  4475. },isChrdev:function (mode) {
  4476. return (mode & 61440) === 8192;
  4477. },isBlkdev:function (mode) {
  4478. return (mode & 61440) === 24576;
  4479. },isFIFO:function (mode) {
  4480. return (mode & 61440) === 4096;
  4481. },isSocket:function (mode) {
  4482. return (mode & 49152) === 49152;
  4483. },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) {
  4484. var flags = FS.flagModes[str];
  4485. if (typeof flags === 'undefined') {
  4486. throw new Error('Unknown file open mode: ' + str);
  4487. }
  4488. return flags;
  4489. },flagsToPermissionString:function (flag) {
  4490. var perms = ['r', 'w', 'rw'][flag & 3];
  4491. if ((flag & 512)) {
  4492. perms += 'w';
  4493. }
  4494. return perms;
  4495. },nodePermissions:function (node, perms) {
  4496. if (FS.ignorePermissions) {
  4497. return 0;
  4498. }
  4499. // return 0 if any user, group or owner bits are set.
  4500. if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
  4501. return ERRNO_CODES.EACCES;
  4502. } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
  4503. return ERRNO_CODES.EACCES;
  4504. } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
  4505. return ERRNO_CODES.EACCES;
  4506. }
  4507. return 0;
  4508. },mayLookup:function (dir) {
  4509. var err = FS.nodePermissions(dir, 'x');
  4510. if (err) return err;
  4511. if (!dir.node_ops.lookup) return ERRNO_CODES.EACCES;
  4512. return 0;
  4513. },mayCreate:function (dir, name) {
  4514. try {
  4515. var node = FS.lookupNode(dir, name);
  4516. return ERRNO_CODES.EEXIST;
  4517. } catch (e) {
  4518. }
  4519. return FS.nodePermissions(dir, 'wx');
  4520. },mayDelete:function (dir, name, isdir) {
  4521. var node;
  4522. try {
  4523. node = FS.lookupNode(dir, name);
  4524. } catch (e) {
  4525. return e.errno;
  4526. }
  4527. var err = FS.nodePermissions(dir, 'wx');
  4528. if (err) {
  4529. return err;
  4530. }
  4531. if (isdir) {
  4532. if (!FS.isDir(node.mode)) {
  4533. return ERRNO_CODES.ENOTDIR;
  4534. }
  4535. if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
  4536. return ERRNO_CODES.EBUSY;
  4537. }
  4538. } else {
  4539. if (FS.isDir(node.mode)) {
  4540. return ERRNO_CODES.EISDIR;
  4541. }
  4542. }
  4543. return 0;
  4544. },mayOpen:function (node, flags) {
  4545. if (!node) {
  4546. return ERRNO_CODES.ENOENT;
  4547. }
  4548. if (FS.isLink(node.mode)) {
  4549. return ERRNO_CODES.ELOOP;
  4550. } else if (FS.isDir(node.mode)) {
  4551. if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write
  4552. (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only)
  4553. return ERRNO_CODES.EISDIR;
  4554. }
  4555. }
  4556. return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
  4557. },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
  4558. fd_start = fd_start || 0;
  4559. fd_end = fd_end || FS.MAX_OPEN_FDS;
  4560. for (var fd = fd_start; fd <= fd_end; fd++) {
  4561. if (!FS.streams[fd]) {
  4562. return fd;
  4563. }
  4564. }
  4565. throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
  4566. },getStream:function (fd) {
  4567. return FS.streams[fd];
  4568. },createStream:function (stream, fd_start, fd_end) {
  4569. if (!FS.FSStream) {
  4570. FS.FSStream = function(){};
  4571. FS.FSStream.prototype = {};
  4572. // compatibility
  4573. Object.defineProperties(FS.FSStream.prototype, {
  4574. object: {
  4575. get: function() { return this.node; },
  4576. set: function(val) { this.node = val; }
  4577. },
  4578. isRead: {
  4579. get: function() { return (this.flags & 2097155) !== 1; }
  4580. },
  4581. isWrite: {
  4582. get: function() { return (this.flags & 2097155) !== 0; }
  4583. },
  4584. isAppend: {
  4585. get: function() { return (this.flags & 1024); }
  4586. }
  4587. });
  4588. }
  4589. // clone it, so we can return an instance of FSStream
  4590. var newStream = new FS.FSStream();
  4591. for (var p in stream) {
  4592. newStream[p] = stream[p];
  4593. }
  4594. stream = newStream;
  4595. var fd = FS.nextfd(fd_start, fd_end);
  4596. stream.fd = fd;
  4597. FS.streams[fd] = stream;
  4598. return stream;
  4599. },closeStream:function (fd) {
  4600. FS.streams[fd] = null;
  4601. },chrdev_stream_ops:{open:function (stream) {
  4602. var device = FS.getDevice(stream.node.rdev);
  4603. // override node's stream ops with the device's
  4604. stream.stream_ops = device.stream_ops;
  4605. // forward the open call
  4606. if (stream.stream_ops.open) {
  4607. stream.stream_ops.open(stream);
  4608. }
  4609. },llseek:function () {
  4610. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  4611. }},major:function (dev) {
  4612. return ((dev) >> 8);
  4613. },minor:function (dev) {
  4614. return ((dev) & 0xff);
  4615. },makedev:function (ma, mi) {
  4616. return ((ma) << 8 | (mi));
  4617. },registerDevice:function (dev, ops) {
  4618. FS.devices[dev] = { stream_ops: ops };
  4619. },getDevice:function (dev) {
  4620. return FS.devices[dev];
  4621. },getMounts:function (mount) {
  4622. var mounts = [];
  4623. var check = [mount];
  4624. while (check.length) {
  4625. var m = check.pop();
  4626. mounts.push(m);
  4627. check.push.apply(check, m.mounts);
  4628. }
  4629. return mounts;
  4630. },syncfs:function (populate, callback) {
  4631. if (typeof(populate) === 'function') {
  4632. callback = populate;
  4633. populate = false;
  4634. }
  4635. FS.syncFSRequests++;
  4636. if (FS.syncFSRequests > 1) {
  4637. console.log('warning: ' + FS.syncFSRequests + ' FS.syncfs operations in flight at once, probably just doing extra work');
  4638. }
  4639. var mounts = FS.getMounts(FS.root.mount);
  4640. var completed = 0;
  4641. function doCallback(err) {
  4642. assert(FS.syncFSRequests > 0);
  4643. FS.syncFSRequests--;
  4644. return callback(err);
  4645. }
  4646. function done(err) {
  4647. if (err) {
  4648. if (!done.errored) {
  4649. done.errored = true;
  4650. return doCallback(err);
  4651. }
  4652. return;
  4653. }
  4654. if (++completed >= mounts.length) {
  4655. doCallback(null);
  4656. }
  4657. };
  4658. // sync all mounts
  4659. mounts.forEach(function (mount) {
  4660. if (!mount.type.syncfs) {
  4661. return done(null);
  4662. }
  4663. mount.type.syncfs(mount, populate, done);
  4664. });
  4665. },mount:function (type, opts, mountpoint) {
  4666. var root = mountpoint === '/';
  4667. var pseudo = !mountpoint;
  4668. var node;
  4669. if (root && FS.root) {
  4670. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4671. } else if (!root && !pseudo) {
  4672. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4673. mountpoint = lookup.path; // use the absolute path
  4674. node = lookup.node;
  4675. if (FS.isMountpoint(node)) {
  4676. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4677. }
  4678. if (!FS.isDir(node.mode)) {
  4679. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4680. }
  4681. }
  4682. var mount = {
  4683. type: type,
  4684. opts: opts,
  4685. mountpoint: mountpoint,
  4686. mounts: []
  4687. };
  4688. // create a root node for the fs
  4689. var mountRoot = type.mount(mount);
  4690. mountRoot.mount = mount;
  4691. mount.root = mountRoot;
  4692. if (root) {
  4693. FS.root = mountRoot;
  4694. } else if (node) {
  4695. // set as a mountpoint
  4696. node.mounted = mount;
  4697. // add the new mount to the current mount's children
  4698. if (node.mount) {
  4699. node.mount.mounts.push(mount);
  4700. }
  4701. }
  4702. return mountRoot;
  4703. },unmount:function (mountpoint) {
  4704. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4705. if (!FS.isMountpoint(lookup.node)) {
  4706. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4707. }
  4708. // destroy the nodes for this mount, and all its child mounts
  4709. var node = lookup.node;
  4710. var mount = node.mounted;
  4711. var mounts = FS.getMounts(mount);
  4712. Object.keys(FS.nameTable).forEach(function (hash) {
  4713. var current = FS.nameTable[hash];
  4714. while (current) {
  4715. var next = current.name_next;
  4716. if (mounts.indexOf(current.mount) !== -1) {
  4717. FS.destroyNode(current);
  4718. }
  4719. current = next;
  4720. }
  4721. });
  4722. // no longer a mountpoint
  4723. node.mounted = null;
  4724. // remove this mount from the child mounts
  4725. var idx = node.mount.mounts.indexOf(mount);
  4726. assert(idx !== -1);
  4727. node.mount.mounts.splice(idx, 1);
  4728. },lookup:function (parent, name) {
  4729. return parent.node_ops.lookup(parent, name);
  4730. },mknod:function (path, mode, dev) {
  4731. var lookup = FS.lookupPath(path, { parent: true });
  4732. var parent = lookup.node;
  4733. var name = PATH.basename(path);
  4734. if (!name || name === '.' || name === '..') {
  4735. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4736. }
  4737. var err = FS.mayCreate(parent, name);
  4738. if (err) {
  4739. throw new FS.ErrnoError(err);
  4740. }
  4741. if (!parent.node_ops.mknod) {
  4742. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4743. }
  4744. return parent.node_ops.mknod(parent, name, mode, dev);
  4745. },create:function (path, mode) {
  4746. mode = mode !== undefined ? mode : 438 /* 0666 */;
  4747. mode &= 4095;
  4748. mode |= 32768;
  4749. return FS.mknod(path, mode, 0);
  4750. },mkdir:function (path, mode) {
  4751. mode = mode !== undefined ? mode : 511 /* 0777 */;
  4752. mode &= 511 | 512;
  4753. mode |= 16384;
  4754. return FS.mknod(path, mode, 0);
  4755. },mkdirTree:function (path, mode) {
  4756. var dirs = path.split('/');
  4757. var d = '';
  4758. for (var i = 0; i < dirs.length; ++i) {
  4759. if (!dirs[i]) continue;
  4760. d += '/' + dirs[i];
  4761. try {
  4762. FS.mkdir(d, mode);
  4763. } catch(e) {
  4764. if (e.errno != ERRNO_CODES.EEXIST) throw e;
  4765. }
  4766. }
  4767. },mkdev:function (path, mode, dev) {
  4768. if (typeof(dev) === 'undefined') {
  4769. dev = mode;
  4770. mode = 438 /* 0666 */;
  4771. }
  4772. mode |= 8192;
  4773. return FS.mknod(path, mode, dev);
  4774. },symlink:function (oldpath, newpath) {
  4775. if (!PATH.resolve(oldpath)) {
  4776. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4777. }
  4778. var lookup = FS.lookupPath(newpath, { parent: true });
  4779. var parent = lookup.node;
  4780. if (!parent) {
  4781. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4782. }
  4783. var newname = PATH.basename(newpath);
  4784. var err = FS.mayCreate(parent, newname);
  4785. if (err) {
  4786. throw new FS.ErrnoError(err);
  4787. }
  4788. if (!parent.node_ops.symlink) {
  4789. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4790. }
  4791. return parent.node_ops.symlink(parent, newname, oldpath);
  4792. },rename:function (old_path, new_path) {
  4793. var old_dirname = PATH.dirname(old_path);
  4794. var new_dirname = PATH.dirname(new_path);
  4795. var old_name = PATH.basename(old_path);
  4796. var new_name = PATH.basename(new_path);
  4797. // parents must exist
  4798. var lookup, old_dir, new_dir;
  4799. try {
  4800. lookup = FS.lookupPath(old_path, { parent: true });
  4801. old_dir = lookup.node;
  4802. lookup = FS.lookupPath(new_path, { parent: true });
  4803. new_dir = lookup.node;
  4804. } catch (e) {
  4805. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4806. }
  4807. if (!old_dir || !new_dir) throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4808. // need to be part of the same mount
  4809. if (old_dir.mount !== new_dir.mount) {
  4810. throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
  4811. }
  4812. // source must exist
  4813. var old_node = FS.lookupNode(old_dir, old_name);
  4814. // old path should not be an ancestor of the new path
  4815. var relative = PATH.relative(old_path, new_dirname);
  4816. if (relative.charAt(0) !== '.') {
  4817. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4818. }
  4819. // new path should not be an ancestor of the old path
  4820. relative = PATH.relative(new_path, old_dirname);
  4821. if (relative.charAt(0) !== '.') {
  4822. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  4823. }
  4824. // see if the new path already exists
  4825. var new_node;
  4826. try {
  4827. new_node = FS.lookupNode(new_dir, new_name);
  4828. } catch (e) {
  4829. // not fatal
  4830. }
  4831. // early out if nothing needs to change
  4832. if (old_node === new_node) {
  4833. return;
  4834. }
  4835. // we'll need to delete the old entry
  4836. var isdir = FS.isDir(old_node.mode);
  4837. var err = FS.mayDelete(old_dir, old_name, isdir);
  4838. if (err) {
  4839. throw new FS.ErrnoError(err);
  4840. }
  4841. // need delete permissions if we'll be overwriting.
  4842. // need create permissions if new doesn't already exist.
  4843. err = new_node ?
  4844. FS.mayDelete(new_dir, new_name, isdir) :
  4845. FS.mayCreate(new_dir, new_name);
  4846. if (err) {
  4847. throw new FS.ErrnoError(err);
  4848. }
  4849. if (!old_dir.node_ops.rename) {
  4850. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4851. }
  4852. if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
  4853. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4854. }
  4855. // if we are going to change the parent, check write permissions
  4856. if (new_dir !== old_dir) {
  4857. err = FS.nodePermissions(old_dir, 'w');
  4858. if (err) {
  4859. throw new FS.ErrnoError(err);
  4860. }
  4861. }
  4862. try {
  4863. if (FS.trackingDelegate['willMovePath']) {
  4864. FS.trackingDelegate['willMovePath'](old_path, new_path);
  4865. }
  4866. } catch(e) {
  4867. console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4868. }
  4869. // remove the node from the lookup hash
  4870. FS.hashRemoveNode(old_node);
  4871. // do the underlying fs rename
  4872. try {
  4873. old_dir.node_ops.rename(old_node, new_dir, new_name);
  4874. } catch (e) {
  4875. throw e;
  4876. } finally {
  4877. // add the node back to the hash (in case node_ops.rename
  4878. // changed its name)
  4879. FS.hashAddNode(old_node);
  4880. }
  4881. try {
  4882. if (FS.trackingDelegate['onMovePath']) FS.trackingDelegate['onMovePath'](old_path, new_path);
  4883. } catch(e) {
  4884. console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4885. }
  4886. },rmdir:function (path) {
  4887. var lookup = FS.lookupPath(path, { parent: true });
  4888. var parent = lookup.node;
  4889. var name = PATH.basename(path);
  4890. var node = FS.lookupNode(parent, name);
  4891. var err = FS.mayDelete(parent, name, true);
  4892. if (err) {
  4893. throw new FS.ErrnoError(err);
  4894. }
  4895. if (!parent.node_ops.rmdir) {
  4896. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4897. }
  4898. if (FS.isMountpoint(node)) {
  4899. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4900. }
  4901. try {
  4902. if (FS.trackingDelegate['willDeletePath']) {
  4903. FS.trackingDelegate['willDeletePath'](path);
  4904. }
  4905. } catch(e) {
  4906. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4907. }
  4908. parent.node_ops.rmdir(parent, name);
  4909. FS.destroyNode(node);
  4910. try {
  4911. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4912. } catch(e) {
  4913. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4914. }
  4915. },readdir:function (path) {
  4916. var lookup = FS.lookupPath(path, { follow: true });
  4917. var node = lookup.node;
  4918. if (!node.node_ops.readdir) {
  4919. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4920. }
  4921. return node.node_ops.readdir(node);
  4922. },unlink:function (path) {
  4923. var lookup = FS.lookupPath(path, { parent: true });
  4924. var parent = lookup.node;
  4925. var name = PATH.basename(path);
  4926. var node = FS.lookupNode(parent, name);
  4927. var err = FS.mayDelete(parent, name, false);
  4928. if (err) {
  4929. // According to POSIX, we should map EISDIR to EPERM, but
  4930. // we instead do what Linux does (and we must, as we use
  4931. // the musl linux libc).
  4932. throw new FS.ErrnoError(err);
  4933. }
  4934. if (!parent.node_ops.unlink) {
  4935. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4936. }
  4937. if (FS.isMountpoint(node)) {
  4938. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4939. }
  4940. try {
  4941. if (FS.trackingDelegate['willDeletePath']) {
  4942. FS.trackingDelegate['willDeletePath'](path);
  4943. }
  4944. } catch(e) {
  4945. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4946. }
  4947. parent.node_ops.unlink(parent, name);
  4948. FS.destroyNode(node);
  4949. try {
  4950. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4951. } catch(e) {
  4952. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4953. }
  4954. },readlink:function (path) {
  4955. var lookup = FS.lookupPath(path);
  4956. var link = lookup.node;
  4957. if (!link) {
  4958. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4959. }
  4960. if (!link.node_ops.readlink) {
  4961. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4962. }
  4963. return PATH.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
  4964. },stat:function (path, dontFollow) {
  4965. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4966. var node = lookup.node;
  4967. if (!node) {
  4968. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4969. }
  4970. if (!node.node_ops.getattr) {
  4971. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4972. }
  4973. return node.node_ops.getattr(node);
  4974. },lstat:function (path) {
  4975. return FS.stat(path, true);
  4976. },chmod:function (path, mode, dontFollow) {
  4977. var node;
  4978. if (typeof path === 'string') {
  4979. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4980. node = lookup.node;
  4981. } else {
  4982. node = path;
  4983. }
  4984. if (!node.node_ops.setattr) {
  4985. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4986. }
  4987. node.node_ops.setattr(node, {
  4988. mode: (mode & 4095) | (node.mode & ~4095),
  4989. timestamp: Date.now()
  4990. });
  4991. },lchmod:function (path, mode) {
  4992. FS.chmod(path, mode, true);
  4993. },fchmod:function (fd, mode) {
  4994. var stream = FS.getStream(fd);
  4995. if (!stream) {
  4996. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  4997. }
  4998. FS.chmod(stream.node, mode);
  4999. },chown:function (path, uid, gid, dontFollow) {
  5000. var node;
  5001. if (typeof path === 'string') {
  5002. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5003. node = lookup.node;
  5004. } else {
  5005. node = path;
  5006. }
  5007. if (!node.node_ops.setattr) {
  5008. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5009. }
  5010. node.node_ops.setattr(node, {
  5011. timestamp: Date.now()
  5012. // we ignore the uid / gid for now
  5013. });
  5014. },lchown:function (path, uid, gid) {
  5015. FS.chown(path, uid, gid, true);
  5016. },fchown:function (fd, uid, gid) {
  5017. var stream = FS.getStream(fd);
  5018. if (!stream) {
  5019. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5020. }
  5021. FS.chown(stream.node, uid, gid);
  5022. },truncate:function (path, len) {
  5023. if (len < 0) {
  5024. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5025. }
  5026. var node;
  5027. if (typeof path === 'string') {
  5028. var lookup = FS.lookupPath(path, { follow: true });
  5029. node = lookup.node;
  5030. } else {
  5031. node = path;
  5032. }
  5033. if (!node.node_ops.setattr) {
  5034. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5035. }
  5036. if (FS.isDir(node.mode)) {
  5037. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5038. }
  5039. if (!FS.isFile(node.mode)) {
  5040. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5041. }
  5042. var err = FS.nodePermissions(node, 'w');
  5043. if (err) {
  5044. throw new FS.ErrnoError(err);
  5045. }
  5046. node.node_ops.setattr(node, {
  5047. size: len,
  5048. timestamp: Date.now()
  5049. });
  5050. },ftruncate:function (fd, len) {
  5051. var stream = FS.getStream(fd);
  5052. if (!stream) {
  5053. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5054. }
  5055. if ((stream.flags & 2097155) === 0) {
  5056. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5057. }
  5058. FS.truncate(stream.node, len);
  5059. },utime:function (path, atime, mtime) {
  5060. var lookup = FS.lookupPath(path, { follow: true });
  5061. var node = lookup.node;
  5062. node.node_ops.setattr(node, {
  5063. timestamp: Math.max(atime, mtime)
  5064. });
  5065. },open:function (path, flags, mode, fd_start, fd_end) {
  5066. if (path === "") {
  5067. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5068. }
  5069. flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
  5070. mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
  5071. if ((flags & 64)) {
  5072. mode = (mode & 4095) | 32768;
  5073. } else {
  5074. mode = 0;
  5075. }
  5076. var node;
  5077. if (typeof path === 'object') {
  5078. node = path;
  5079. } else {
  5080. path = PATH.normalize(path);
  5081. try {
  5082. var lookup = FS.lookupPath(path, {
  5083. follow: !(flags & 131072)
  5084. });
  5085. node = lookup.node;
  5086. } catch (e) {
  5087. // ignore
  5088. }
  5089. }
  5090. // perhaps we need to create the node
  5091. var created = false;
  5092. if ((flags & 64)) {
  5093. if (node) {
  5094. // if O_CREAT and O_EXCL are set, error out if the node already exists
  5095. if ((flags & 128)) {
  5096. throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
  5097. }
  5098. } else {
  5099. // node doesn't exist, try to create it
  5100. node = FS.mknod(path, mode, 0);
  5101. created = true;
  5102. }
  5103. }
  5104. if (!node) {
  5105. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5106. }
  5107. // can't truncate a device
  5108. if (FS.isChrdev(node.mode)) {
  5109. flags &= ~512;
  5110. }
  5111. // if asked only for a directory, then this must be one
  5112. if ((flags & 65536) && !FS.isDir(node.mode)) {
  5113. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5114. }
  5115. // check permissions, if this is not a file we just created now (it is ok to
  5116. // create and write to a file with read-only permissions; it is read-only
  5117. // for later use)
  5118. if (!created) {
  5119. var err = FS.mayOpen(node, flags);
  5120. if (err) {
  5121. throw new FS.ErrnoError(err);
  5122. }
  5123. }
  5124. // do truncation if necessary
  5125. if ((flags & 512)) {
  5126. FS.truncate(node, 0);
  5127. }
  5128. // we've already handled these, don't pass down to the underlying vfs
  5129. flags &= ~(128 | 512);
  5130. // register the stream with the filesystem
  5131. var stream = FS.createStream({
  5132. node: node,
  5133. path: FS.getPath(node), // we want the absolute path to the node
  5134. flags: flags,
  5135. seekable: true,
  5136. position: 0,
  5137. stream_ops: node.stream_ops,
  5138. // used by the file family libc calls (fopen, fwrite, ferror, etc.)
  5139. ungotten: [],
  5140. error: false
  5141. }, fd_start, fd_end);
  5142. // call the new stream's open function
  5143. if (stream.stream_ops.open) {
  5144. stream.stream_ops.open(stream);
  5145. }
  5146. if (Module['logReadFiles'] && !(flags & 1)) {
  5147. if (!FS.readFiles) FS.readFiles = {};
  5148. if (!(path in FS.readFiles)) {
  5149. FS.readFiles[path] = 1;
  5150. Module['printErr']('read file: ' + path);
  5151. }
  5152. }
  5153. try {
  5154. if (FS.trackingDelegate['onOpenFile']) {
  5155. var trackingFlags = 0;
  5156. if ((flags & 2097155) !== 1) {
  5157. trackingFlags |= FS.tracking.openFlags.READ;
  5158. }
  5159. if ((flags & 2097155) !== 0) {
  5160. trackingFlags |= FS.tracking.openFlags.WRITE;
  5161. }
  5162. FS.trackingDelegate['onOpenFile'](path, trackingFlags);
  5163. }
  5164. } catch(e) {
  5165. console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: " + e.message);
  5166. }
  5167. return stream;
  5168. },close:function (stream) {
  5169. if (stream.getdents) stream.getdents = null; // free readdir state
  5170. try {
  5171. if (stream.stream_ops.close) {
  5172. stream.stream_ops.close(stream);
  5173. }
  5174. } catch (e) {
  5175. throw e;
  5176. } finally {
  5177. FS.closeStream(stream.fd);
  5178. }
  5179. },llseek:function (stream, offset, whence) {
  5180. if (!stream.seekable || !stream.stream_ops.llseek) {
  5181. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5182. }
  5183. stream.position = stream.stream_ops.llseek(stream, offset, whence);
  5184. stream.ungotten = [];
  5185. return stream.position;
  5186. },read:function (stream, buffer, offset, length, position) {
  5187. if (length < 0 || position < 0) {
  5188. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5189. }
  5190. if ((stream.flags & 2097155) === 1) {
  5191. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5192. }
  5193. if (FS.isDir(stream.node.mode)) {
  5194. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5195. }
  5196. if (!stream.stream_ops.read) {
  5197. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5198. }
  5199. var seeking = true;
  5200. if (typeof position === 'undefined') {
  5201. position = stream.position;
  5202. seeking = false;
  5203. } else if (!stream.seekable) {
  5204. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5205. }
  5206. var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
  5207. if (!seeking) stream.position += bytesRead;
  5208. return bytesRead;
  5209. },write:function (stream, buffer, offset, length, position, canOwn) {
  5210. if (length < 0 || position < 0) {
  5211. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5212. }
  5213. if ((stream.flags & 2097155) === 0) {
  5214. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5215. }
  5216. if (FS.isDir(stream.node.mode)) {
  5217. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5218. }
  5219. if (!stream.stream_ops.write) {
  5220. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5221. }
  5222. if (stream.flags & 1024) {
  5223. // seek to the end before writing in append mode
  5224. FS.llseek(stream, 0, 2);
  5225. }
  5226. var seeking = true;
  5227. if (typeof position === 'undefined') {
  5228. position = stream.position;
  5229. seeking = false;
  5230. } else if (!stream.seekable) {
  5231. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5232. }
  5233. var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
  5234. if (!seeking) stream.position += bytesWritten;
  5235. try {
  5236. if (stream.path && FS.trackingDelegate['onWriteToFile']) FS.trackingDelegate['onWriteToFile'](stream.path);
  5237. } catch(e) {
  5238. console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: " + e.message);
  5239. }
  5240. return bytesWritten;
  5241. },allocate:function (stream, offset, length) {
  5242. if (offset < 0 || length <= 0) {
  5243. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5244. }
  5245. if ((stream.flags & 2097155) === 0) {
  5246. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5247. }
  5248. if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
  5249. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5250. }
  5251. if (!stream.stream_ops.allocate) {
  5252. throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
  5253. }
  5254. stream.stream_ops.allocate(stream, offset, length);
  5255. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  5256. // TODO if PROT is PROT_WRITE, make sure we have write access
  5257. if ((stream.flags & 2097155) === 1) {
  5258. throw new FS.ErrnoError(ERRNO_CODES.EACCES);
  5259. }
  5260. if (!stream.stream_ops.mmap) {
  5261. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5262. }
  5263. return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
  5264. },msync:function (stream, buffer, offset, length, mmapFlags) {
  5265. if (!stream || !stream.stream_ops.msync) {
  5266. return 0;
  5267. }
  5268. return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags);
  5269. },munmap:function (stream) {
  5270. return 0;
  5271. },ioctl:function (stream, cmd, arg) {
  5272. if (!stream.stream_ops.ioctl) {
  5273. throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
  5274. }
  5275. return stream.stream_ops.ioctl(stream, cmd, arg);
  5276. },readFile:function (path, opts) {
  5277. opts = opts || {};
  5278. opts.flags = opts.flags || 'r';
  5279. opts.encoding = opts.encoding || 'binary';
  5280. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5281. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5282. }
  5283. var ret;
  5284. var stream = FS.open(path, opts.flags);
  5285. var stat = FS.stat(path);
  5286. var length = stat.size;
  5287. var buf = new Uint8Array(length);
  5288. FS.read(stream, buf, 0, length, 0);
  5289. if (opts.encoding === 'utf8') {
  5290. ret = UTF8ArrayToString(buf, 0);
  5291. } else if (opts.encoding === 'binary') {
  5292. ret = buf;
  5293. }
  5294. FS.close(stream);
  5295. return ret;
  5296. },writeFile:function (path, data, opts) {
  5297. opts = opts || {};
  5298. opts.flags = opts.flags || 'w';
  5299. opts.encoding = opts.encoding || 'utf8';
  5300. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5301. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5302. }
  5303. var stream = FS.open(path, opts.flags, opts.mode);
  5304. if (opts.encoding === 'utf8') {
  5305. var buf = new Uint8Array(lengthBytesUTF8(data)+1);
  5306. var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
  5307. FS.write(stream, buf, 0, actualNumBytes, 0, opts.canOwn);
  5308. } else if (opts.encoding === 'binary') {
  5309. FS.write(stream, data, 0, data.length, 0, opts.canOwn);
  5310. }
  5311. FS.close(stream);
  5312. },cwd:function () {
  5313. return FS.currentPath;
  5314. },chdir:function (path) {
  5315. var lookup = FS.lookupPath(path, { follow: true });
  5316. if (lookup.node === null) {
  5317. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5318. }
  5319. if (!FS.isDir(lookup.node.mode)) {
  5320. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5321. }
  5322. var err = FS.nodePermissions(lookup.node, 'x');
  5323. if (err) {
  5324. throw new FS.ErrnoError(err);
  5325. }
  5326. FS.currentPath = lookup.path;
  5327. },createDefaultDirectories:function () {
  5328. FS.mkdir('/tmp');
  5329. FS.mkdir('/home');
  5330. FS.mkdir('/home/web_user');
  5331. },createDefaultDevices:function () {
  5332. // create /dev
  5333. FS.mkdir('/dev');
  5334. // setup /dev/null
  5335. FS.registerDevice(FS.makedev(1, 3), {
  5336. read: function() { return 0; },
  5337. write: function(stream, buffer, offset, length, pos) { return length; }
  5338. });
  5339. FS.mkdev('/dev/null', FS.makedev(1, 3));
  5340. // setup /dev/tty and /dev/tty1
  5341. // stderr needs to print output using Module['printErr']
  5342. // so we register a second tty just for it.
  5343. TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
  5344. TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
  5345. FS.mkdev('/dev/tty', FS.makedev(5, 0));
  5346. FS.mkdev('/dev/tty1', FS.makedev(6, 0));
  5347. // setup /dev/[u]random
  5348. var random_device;
  5349. if (typeof crypto !== 'undefined') {
  5350. // for modern web browsers
  5351. var randomBuffer = new Uint8Array(1);
  5352. random_device = function() { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
  5353. } else if (ENVIRONMENT_IS_NODE) {
  5354. // for nodejs
  5355. random_device = function() { return require('crypto').randomBytes(1)[0]; };
  5356. } else {
  5357. // default for ES5 platforms
  5358. random_device = function() { return (Math.random()*256)|0; };
  5359. }
  5360. FS.createDevice('/dev', 'random', random_device);
  5361. FS.createDevice('/dev', 'urandom', random_device);
  5362. // we're not going to emulate the actual shm device,
  5363. // just create the tmp dirs that reside in it commonly
  5364. FS.mkdir('/dev/shm');
  5365. FS.mkdir('/dev/shm/tmp');
  5366. },createSpecialDirectories:function () {
  5367. // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the name of the stream for fd 6 (see test_unistd_ttyname)
  5368. FS.mkdir('/proc');
  5369. FS.mkdir('/proc/self');
  5370. FS.mkdir('/proc/self/fd');
  5371. FS.mount({
  5372. mount: function() {
  5373. var node = FS.createNode('/proc/self', 'fd', 16384 | 511 /* 0777 */, 73);
  5374. node.node_ops = {
  5375. lookup: function(parent, name) {
  5376. var fd = +name;
  5377. var stream = FS.getStream(fd);
  5378. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5379. var ret = {
  5380. parent: null,
  5381. mount: { mountpoint: 'fake' },
  5382. node_ops: { readlink: function() { return stream.path } }
  5383. };
  5384. ret.parent = ret; // make it look like a simple root node
  5385. return ret;
  5386. }
  5387. };
  5388. return node;
  5389. }
  5390. }, {}, '/proc/self/fd');
  5391. },createStandardStreams:function () {
  5392. // TODO deprecate the old functionality of a single
  5393. // input / output callback and that utilizes FS.createDevice
  5394. // and instead require a unique set of stream ops
  5395. // by default, we symlink the standard streams to the
  5396. // default tty devices. however, if the standard streams
  5397. // have been overwritten we create a unique device for
  5398. // them instead.
  5399. if (Module['stdin']) {
  5400. FS.createDevice('/dev', 'stdin', Module['stdin']);
  5401. } else {
  5402. FS.symlink('/dev/tty', '/dev/stdin');
  5403. }
  5404. if (Module['stdout']) {
  5405. FS.createDevice('/dev', 'stdout', null, Module['stdout']);
  5406. } else {
  5407. FS.symlink('/dev/tty', '/dev/stdout');
  5408. }
  5409. if (Module['stderr']) {
  5410. FS.createDevice('/dev', 'stderr', null, Module['stderr']);
  5411. } else {
  5412. FS.symlink('/dev/tty1', '/dev/stderr');
  5413. }
  5414. // open default streams for the stdin, stdout and stderr devices
  5415. var stdin = FS.open('/dev/stdin', 'r');
  5416. assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
  5417. var stdout = FS.open('/dev/stdout', 'w');
  5418. assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
  5419. var stderr = FS.open('/dev/stderr', 'w');
  5420. assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
  5421. },ensureErrnoError:function () {
  5422. if (FS.ErrnoError) return;
  5423. FS.ErrnoError = function ErrnoError(errno, node) {
  5424. //Module.printErr(stackTrace()); // useful for debugging
  5425. this.node = node;
  5426. this.setErrno = function(errno) {
  5427. this.errno = errno;
  5428. for (var key in ERRNO_CODES) {
  5429. if (ERRNO_CODES[key] === errno) {
  5430. this.code = key;
  5431. break;
  5432. }
  5433. }
  5434. };
  5435. this.setErrno(errno);
  5436. this.message = ERRNO_MESSAGES[errno];
  5437. if (this.stack) this.stack = demangleAll(this.stack);
  5438. };
  5439. FS.ErrnoError.prototype = new Error();
  5440. FS.ErrnoError.prototype.constructor = FS.ErrnoError;
  5441. // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
  5442. [ERRNO_CODES.ENOENT].forEach(function(code) {
  5443. FS.genericErrors[code] = new FS.ErrnoError(code);
  5444. FS.genericErrors[code].stack = '<generic error, no stack>';
  5445. });
  5446. },staticInit:function () {
  5447. FS.ensureErrnoError();
  5448. FS.nameTable = new Array(4096);
  5449. FS.mount(MEMFS, {}, '/');
  5450. FS.createDefaultDirectories();
  5451. FS.createDefaultDevices();
  5452. FS.createSpecialDirectories();
  5453. FS.filesystems = {
  5454. 'MEMFS': MEMFS,
  5455. 'IDBFS': IDBFS,
  5456. 'NODEFS': NODEFS,
  5457. 'WORKERFS': WORKERFS,
  5458. };
  5459. },init:function (input, output, error) {
  5460. 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)');
  5461. FS.init.initialized = true;
  5462. FS.ensureErrnoError();
  5463. // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
  5464. Module['stdin'] = input || Module['stdin'];
  5465. Module['stdout'] = output || Module['stdout'];
  5466. Module['stderr'] = error || Module['stderr'];
  5467. FS.createStandardStreams();
  5468. },quit:function () {
  5469. FS.init.initialized = false;
  5470. // force-flush all streams, so we get musl std streams printed out
  5471. var fflush = Module['_fflush'];
  5472. if (fflush) fflush(0);
  5473. // close all of our streams
  5474. for (var i = 0; i < FS.streams.length; i++) {
  5475. var stream = FS.streams[i];
  5476. if (!stream) {
  5477. continue;
  5478. }
  5479. FS.close(stream);
  5480. }
  5481. },getMode:function (canRead, canWrite) {
  5482. var mode = 0;
  5483. if (canRead) mode |= 292 | 73;
  5484. if (canWrite) mode |= 146;
  5485. return mode;
  5486. },joinPath:function (parts, forceRelative) {
  5487. var path = PATH.join.apply(null, parts);
  5488. if (forceRelative && path[0] == '/') path = path.substr(1);
  5489. return path;
  5490. },absolutePath:function (relative, base) {
  5491. return PATH.resolve(base, relative);
  5492. },standardizePath:function (path) {
  5493. return PATH.normalize(path);
  5494. },findObject:function (path, dontResolveLastLink) {
  5495. var ret = FS.analyzePath(path, dontResolveLastLink);
  5496. if (ret.exists) {
  5497. return ret.object;
  5498. } else {
  5499. ___setErrNo(ret.error);
  5500. return null;
  5501. }
  5502. },analyzePath:function (path, dontResolveLastLink) {
  5503. // operate from within the context of the symlink's target
  5504. try {
  5505. var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5506. path = lookup.path;
  5507. } catch (e) {
  5508. }
  5509. var ret = {
  5510. isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
  5511. parentExists: false, parentPath: null, parentObject: null
  5512. };
  5513. try {
  5514. var lookup = FS.lookupPath(path, { parent: true });
  5515. ret.parentExists = true;
  5516. ret.parentPath = lookup.path;
  5517. ret.parentObject = lookup.node;
  5518. ret.name = PATH.basename(path);
  5519. lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5520. ret.exists = true;
  5521. ret.path = lookup.path;
  5522. ret.object = lookup.node;
  5523. ret.name = lookup.node.name;
  5524. ret.isRoot = lookup.path === '/';
  5525. } catch (e) {
  5526. ret.error = e.errno;
  5527. };
  5528. return ret;
  5529. },createFolder:function (parent, name, canRead, canWrite) {
  5530. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5531. var mode = FS.getMode(canRead, canWrite);
  5532. return FS.mkdir(path, mode);
  5533. },createPath:function (parent, path, canRead, canWrite) {
  5534. parent = typeof parent === 'string' ? parent : FS.getPath(parent);
  5535. var parts = path.split('/').reverse();
  5536. while (parts.length) {
  5537. var part = parts.pop();
  5538. if (!part) continue;
  5539. var current = PATH.join2(parent, part);
  5540. try {
  5541. FS.mkdir(current);
  5542. } catch (e) {
  5543. // ignore EEXIST
  5544. }
  5545. parent = current;
  5546. }
  5547. return current;
  5548. },createFile:function (parent, name, properties, canRead, canWrite) {
  5549. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5550. var mode = FS.getMode(canRead, canWrite);
  5551. return FS.create(path, mode);
  5552. },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
  5553. var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
  5554. var mode = FS.getMode(canRead, canWrite);
  5555. var node = FS.create(path, mode);
  5556. if (data) {
  5557. if (typeof data === 'string') {
  5558. var arr = new Array(data.length);
  5559. for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
  5560. data = arr;
  5561. }
  5562. // make sure we can write to the file
  5563. FS.chmod(node, mode | 146);
  5564. var stream = FS.open(node, 'w');
  5565. FS.write(stream, data, 0, data.length, 0, canOwn);
  5566. FS.close(stream);
  5567. FS.chmod(node, mode);
  5568. }
  5569. return node;
  5570. },createDevice:function (parent, name, input, output) {
  5571. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5572. var mode = FS.getMode(!!input, !!output);
  5573. if (!FS.createDevice.major) FS.createDevice.major = 64;
  5574. var dev = FS.makedev(FS.createDevice.major++, 0);
  5575. // Create a fake device that a set of stream ops to emulate
  5576. // the old behavior.
  5577. FS.registerDevice(dev, {
  5578. open: function(stream) {
  5579. stream.seekable = false;
  5580. },
  5581. close: function(stream) {
  5582. // flush any pending line data
  5583. if (output && output.buffer && output.buffer.length) {
  5584. output(10);
  5585. }
  5586. },
  5587. read: function(stream, buffer, offset, length, pos /* ignored */) {
  5588. var bytesRead = 0;
  5589. for (var i = 0; i < length; i++) {
  5590. var result;
  5591. try {
  5592. result = input();
  5593. } catch (e) {
  5594. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5595. }
  5596. if (result === undefined && bytesRead === 0) {
  5597. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  5598. }
  5599. if (result === null || result === undefined) break;
  5600. bytesRead++;
  5601. buffer[offset+i] = result;
  5602. }
  5603. if (bytesRead) {
  5604. stream.node.timestamp = Date.now();
  5605. }
  5606. return bytesRead;
  5607. },
  5608. write: function(stream, buffer, offset, length, pos) {
  5609. for (var i = 0; i < length; i++) {
  5610. try {
  5611. output(buffer[offset+i]);
  5612. } catch (e) {
  5613. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5614. }
  5615. }
  5616. if (length) {
  5617. stream.node.timestamp = Date.now();
  5618. }
  5619. return i;
  5620. }
  5621. });
  5622. return FS.mkdev(path, mode, dev);
  5623. },createLink:function (parent, name, target, canRead, canWrite) {
  5624. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5625. return FS.symlink(target, path);
  5626. },forceLoadFile:function (obj) {
  5627. if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
  5628. var success = true;
  5629. if (typeof XMLHttpRequest !== 'undefined') {
  5630. 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.");
  5631. } else if (Module['read']) {
  5632. // Command-line.
  5633. try {
  5634. // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
  5635. // read() will try to parse UTF8.
  5636. obj.contents = intArrayFromString(Module['read'](obj.url), true);
  5637. obj.usedBytes = obj.contents.length;
  5638. } catch (e) {
  5639. success = false;
  5640. }
  5641. } else {
  5642. throw new Error('Cannot load without read() or XMLHttpRequest.');
  5643. }
  5644. if (!success) ___setErrNo(ERRNO_CODES.EIO);
  5645. return success;
  5646. },createLazyFile:function (parent, name, url, canRead, canWrite) {
  5647. // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
  5648. function LazyUint8Array() {
  5649. this.lengthKnown = false;
  5650. this.chunks = []; // Loaded chunks. Index is the chunk number
  5651. }
  5652. LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
  5653. if (idx > this.length-1 || idx < 0) {
  5654. return undefined;
  5655. }
  5656. var chunkOffset = idx % this.chunkSize;
  5657. var chunkNum = (idx / this.chunkSize)|0;
  5658. return this.getter(chunkNum)[chunkOffset];
  5659. }
  5660. LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
  5661. this.getter = getter;
  5662. }
  5663. LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
  5664. // Find length
  5665. var xhr = new XMLHttpRequest();
  5666. xhr.open('HEAD', url, false);
  5667. xhr.send(null);
  5668. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5669. var datalength = Number(xhr.getResponseHeader("Content-length"));
  5670. var header;
  5671. var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
  5672. var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip";
  5673. var chunkSize = 1024*1024; // Chunk size in bytes
  5674. if (!hasByteServing) chunkSize = datalength;
  5675. // Function to get a range from the remote URL.
  5676. var doXHR = (function(from, to) {
  5677. if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
  5678. if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
  5679. // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
  5680. var xhr = new XMLHttpRequest();
  5681. xhr.open('GET', url, false);
  5682. if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
  5683. // Some hints to the browser that we want binary data.
  5684. if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
  5685. if (xhr.overrideMimeType) {
  5686. xhr.overrideMimeType('text/plain; charset=x-user-defined');
  5687. }
  5688. xhr.send(null);
  5689. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5690. if (xhr.response !== undefined) {
  5691. return new Uint8Array(xhr.response || []);
  5692. } else {
  5693. return intArrayFromString(xhr.responseText || '', true);
  5694. }
  5695. });
  5696. var lazyArray = this;
  5697. lazyArray.setDataGetter(function(chunkNum) {
  5698. var start = chunkNum * chunkSize;
  5699. var end = (chunkNum+1) * chunkSize - 1; // including this byte
  5700. end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
  5701. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
  5702. lazyArray.chunks[chunkNum] = doXHR(start, end);
  5703. }
  5704. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
  5705. return lazyArray.chunks[chunkNum];
  5706. });
  5707. if (usesGzip || !datalength) {
  5708. // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length
  5709. chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file
  5710. datalength = this.getter(0).length;
  5711. chunkSize = datalength;
  5712. console.log("LazyFiles on gzip forces download of the whole file when length is accessed");
  5713. }
  5714. this._length = datalength;
  5715. this._chunkSize = chunkSize;
  5716. this.lengthKnown = true;
  5717. }
  5718. if (typeof XMLHttpRequest !== 'undefined') {
  5719. if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
  5720. var lazyArray = new LazyUint8Array();
  5721. Object.defineProperties(lazyArray, {
  5722. length: {
  5723. get: function() {
  5724. if(!this.lengthKnown) {
  5725. this.cacheLength();
  5726. }
  5727. return this._length;
  5728. }
  5729. },
  5730. chunkSize: {
  5731. get: function() {
  5732. if(!this.lengthKnown) {
  5733. this.cacheLength();
  5734. }
  5735. return this._chunkSize;
  5736. }
  5737. }
  5738. });
  5739. var properties = { isDevice: false, contents: lazyArray };
  5740. } else {
  5741. var properties = { isDevice: false, url: url };
  5742. }
  5743. var node = FS.createFile(parent, name, properties, canRead, canWrite);
  5744. // This is a total hack, but I want to get this lazy file code out of the
  5745. // core of MEMFS. If we want to keep this lazy file concept I feel it should
  5746. // be its own thin LAZYFS proxying calls to MEMFS.
  5747. if (properties.contents) {
  5748. node.contents = properties.contents;
  5749. } else if (properties.url) {
  5750. node.contents = null;
  5751. node.url = properties.url;
  5752. }
  5753. // Add a function that defers querying the file size until it is asked the first time.
  5754. Object.defineProperties(node, {
  5755. usedBytes: {
  5756. get: function() { return this.contents.length; }
  5757. }
  5758. });
  5759. // override each stream op with one that tries to force load the lazy file first
  5760. var stream_ops = {};
  5761. var keys = Object.keys(node.stream_ops);
  5762. keys.forEach(function(key) {
  5763. var fn = node.stream_ops[key];
  5764. stream_ops[key] = function forceLoadLazyFile() {
  5765. if (!FS.forceLoadFile(node)) {
  5766. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5767. }
  5768. return fn.apply(null, arguments);
  5769. };
  5770. });
  5771. // use a custom read function
  5772. stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
  5773. if (!FS.forceLoadFile(node)) {
  5774. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5775. }
  5776. var contents = stream.node.contents;
  5777. if (position >= contents.length)
  5778. return 0;
  5779. var size = Math.min(contents.length - position, length);
  5780. assert(size >= 0);
  5781. if (contents.slice) { // normal array
  5782. for (var i = 0; i < size; i++) {
  5783. buffer[offset + i] = contents[position + i];
  5784. }
  5785. } else {
  5786. for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
  5787. buffer[offset + i] = contents.get(position + i);
  5788. }
  5789. }
  5790. return size;
  5791. };
  5792. node.stream_ops = stream_ops;
  5793. return node;
  5794. },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
  5795. Browser.init(); // XXX perhaps this method should move onto Browser?
  5796. // TODO we should allow people to just pass in a complete filename instead
  5797. // of parent and name being that we just join them anyways
  5798. var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
  5799. var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
  5800. function processData(byteArray) {
  5801. function finish(byteArray) {
  5802. if (preFinish) preFinish();
  5803. if (!dontCreateFile) {
  5804. FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
  5805. }
  5806. if (onload) onload();
  5807. removeRunDependency(dep);
  5808. }
  5809. var handled = false;
  5810. Module['preloadPlugins'].forEach(function(plugin) {
  5811. if (handled) return;
  5812. if (plugin['canHandle'](fullname)) {
  5813. plugin['handle'](byteArray, fullname, finish, function() {
  5814. if (onerror) onerror();
  5815. removeRunDependency(dep);
  5816. });
  5817. handled = true;
  5818. }
  5819. });
  5820. if (!handled) finish(byteArray);
  5821. }
  5822. addRunDependency(dep);
  5823. if (typeof url == 'string') {
  5824. Browser.asyncLoad(url, function(byteArray) {
  5825. processData(byteArray);
  5826. }, onerror);
  5827. } else {
  5828. processData(url);
  5829. }
  5830. },indexedDB:function () {
  5831. return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  5832. },DB_NAME:function () {
  5833. return 'EM_FS_' + window.location.pathname;
  5834. },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) {
  5835. onload = onload || function(){};
  5836. onerror = onerror || function(){};
  5837. var indexedDB = FS.indexedDB();
  5838. try {
  5839. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5840. } catch (e) {
  5841. return onerror(e);
  5842. }
  5843. openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
  5844. console.log('creating db');
  5845. var db = openRequest.result;
  5846. db.createObjectStore(FS.DB_STORE_NAME);
  5847. };
  5848. openRequest.onsuccess = function openRequest_onsuccess() {
  5849. var db = openRequest.result;
  5850. var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
  5851. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5852. var ok = 0, fail = 0, total = paths.length;
  5853. function finish() {
  5854. if (fail == 0) onload(); else onerror();
  5855. }
  5856. paths.forEach(function(path) {
  5857. var putRequest = files.put(FS.analyzePath(path).object.contents, path);
  5858. putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
  5859. putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5860. });
  5861. transaction.onerror = onerror;
  5862. };
  5863. openRequest.onerror = onerror;
  5864. },loadFilesFromDB:function (paths, onload, onerror) {
  5865. onload = onload || function(){};
  5866. onerror = onerror || function(){};
  5867. var indexedDB = FS.indexedDB();
  5868. try {
  5869. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5870. } catch (e) {
  5871. return onerror(e);
  5872. }
  5873. openRequest.onupgradeneeded = onerror; // no database to load from
  5874. openRequest.onsuccess = function openRequest_onsuccess() {
  5875. var db = openRequest.result;
  5876. try {
  5877. var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
  5878. } catch(e) {
  5879. onerror(e);
  5880. return;
  5881. }
  5882. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5883. var ok = 0, fail = 0, total = paths.length;
  5884. function finish() {
  5885. if (fail == 0) onload(); else onerror();
  5886. }
  5887. paths.forEach(function(path) {
  5888. var getRequest = files.get(path);
  5889. getRequest.onsuccess = function getRequest_onsuccess() {
  5890. if (FS.analyzePath(path).exists) {
  5891. FS.unlink(path);
  5892. }
  5893. FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
  5894. ok++;
  5895. if (ok + fail == total) finish();
  5896. };
  5897. getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5898. });
  5899. transaction.onerror = onerror;
  5900. };
  5901. openRequest.onerror = onerror;
  5902. }};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function (dirfd, path) {
  5903. if (path[0] !== '/') {
  5904. // relative path
  5905. var dir;
  5906. if (dirfd === -100) {
  5907. dir = FS.cwd();
  5908. } else {
  5909. var dirstream = FS.getStream(dirfd);
  5910. if (!dirstream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5911. dir = dirstream.path;
  5912. }
  5913. path = PATH.join2(dir, path);
  5914. }
  5915. return path;
  5916. },doStat:function (func, path, buf) {
  5917. try {
  5918. var stat = func(path);
  5919. } catch (e) {
  5920. if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
  5921. // an error occurred while trying to look up the path; we should just report ENOTDIR
  5922. return -ERRNO_CODES.ENOTDIR;
  5923. }
  5924. throw e;
  5925. }
  5926. HEAP32[((buf)>>2)]=stat.dev;
  5927. HEAP32[(((buf)+(4))>>2)]=0;
  5928. HEAP32[(((buf)+(8))>>2)]=stat.ino;
  5929. HEAP32[(((buf)+(12))>>2)]=stat.mode;
  5930. HEAP32[(((buf)+(16))>>2)]=stat.nlink;
  5931. HEAP32[(((buf)+(20))>>2)]=stat.uid;
  5932. HEAP32[(((buf)+(24))>>2)]=stat.gid;
  5933. HEAP32[(((buf)+(28))>>2)]=stat.rdev;
  5934. HEAP32[(((buf)+(32))>>2)]=0;
  5935. HEAP32[(((buf)+(36))>>2)]=stat.size;
  5936. HEAP32[(((buf)+(40))>>2)]=4096;
  5937. HEAP32[(((buf)+(44))>>2)]=stat.blocks;
  5938. HEAP32[(((buf)+(48))>>2)]=(stat.atime.getTime() / 1000)|0;
  5939. HEAP32[(((buf)+(52))>>2)]=0;
  5940. HEAP32[(((buf)+(56))>>2)]=(stat.mtime.getTime() / 1000)|0;
  5941. HEAP32[(((buf)+(60))>>2)]=0;
  5942. HEAP32[(((buf)+(64))>>2)]=(stat.ctime.getTime() / 1000)|0;
  5943. HEAP32[(((buf)+(68))>>2)]=0;
  5944. HEAP32[(((buf)+(72))>>2)]=stat.ino;
  5945. return 0;
  5946. },doMsync:function (addr, stream, len, flags) {
  5947. var buffer = new Uint8Array(HEAPU8.subarray(addr, addr + len));
  5948. FS.msync(stream, buffer, 0, len, flags);
  5949. },doMkdir:function (path, mode) {
  5950. // remove a trailing slash, if one - /a/b/ has basename of '', but
  5951. // we want to create b in the context of this function
  5952. path = PATH.normalize(path);
  5953. if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
  5954. FS.mkdir(path, mode, 0);
  5955. return 0;
  5956. },doMknod:function (path, mode, dev) {
  5957. // we don't want this in the JS API as it uses mknod to create all nodes.
  5958. switch (mode & 61440) {
  5959. case 32768:
  5960. case 8192:
  5961. case 24576:
  5962. case 4096:
  5963. case 49152:
  5964. break;
  5965. default: return -ERRNO_CODES.EINVAL;
  5966. }
  5967. FS.mknod(path, mode, dev);
  5968. return 0;
  5969. },doReadlink:function (path, buf, bufsize) {
  5970. if (bufsize <= 0) return -ERRNO_CODES.EINVAL;
  5971. var ret = FS.readlink(path);
  5972. var len = Math.min(bufsize, lengthBytesUTF8(ret));
  5973. var endChar = HEAP8[buf+len];
  5974. stringToUTF8(ret, buf, bufsize+1);
  5975. // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
  5976. // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
  5977. HEAP8[buf+len] = endChar;
  5978. return len;
  5979. },doAccess:function (path, amode) {
  5980. if (amode & ~7) {
  5981. // need a valid mode
  5982. return -ERRNO_CODES.EINVAL;
  5983. }
  5984. var node;
  5985. var lookup = FS.lookupPath(path, { follow: true });
  5986. node = lookup.node;
  5987. var perms = '';
  5988. if (amode & 4) perms += 'r';
  5989. if (amode & 2) perms += 'w';
  5990. if (amode & 1) perms += 'x';
  5991. if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) {
  5992. return -ERRNO_CODES.EACCES;
  5993. }
  5994. return 0;
  5995. },doDup:function (path, flags, suggestFD) {
  5996. var suggest = FS.getStream(suggestFD);
  5997. if (suggest) FS.close(suggest);
  5998. return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
  5999. },doReadv:function (stream, iov, iovcnt, offset) {
  6000. var ret = 0;
  6001. for (var i = 0; i < iovcnt; i++) {
  6002. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6003. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6004. var curr = FS.read(stream, HEAP8,ptr, len, offset);
  6005. if (curr < 0) return -1;
  6006. ret += curr;
  6007. if (curr < len) break; // nothing more to read
  6008. }
  6009. return ret;
  6010. },doWritev:function (stream, iov, iovcnt, offset) {
  6011. var ret = 0;
  6012. for (var i = 0; i < iovcnt; i++) {
  6013. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6014. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6015. var curr = FS.write(stream, HEAP8,ptr, len, offset);
  6016. if (curr < 0) return -1;
  6017. ret += curr;
  6018. }
  6019. return ret;
  6020. },varargs:0,get:function (varargs) {
  6021. SYSCALLS.varargs += 4;
  6022. var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
  6023. return ret;
  6024. },getStr:function () {
  6025. var ret = Pointer_stringify(SYSCALLS.get());
  6026. return ret;
  6027. },getStreamFromFD:function () {
  6028. var stream = FS.getStream(SYSCALLS.get());
  6029. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6030. return stream;
  6031. },getSocketFromFD:function () {
  6032. var socket = SOCKFS.getSocket(SYSCALLS.get());
  6033. if (!socket) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6034. return socket;
  6035. },getSocketAddress:function (allowNull) {
  6036. var addrp = SYSCALLS.get(), addrlen = SYSCALLS.get();
  6037. if (allowNull && addrp === 0) return null;
  6038. var info = __read_sockaddr(addrp, addrlen);
  6039. if (info.errno) throw new FS.ErrnoError(info.errno);
  6040. info.addr = DNS.lookup_addr(info.addr) || info.addr;
  6041. return info;
  6042. },get64:function () {
  6043. var low = SYSCALLS.get(), high = SYSCALLS.get();
  6044. if (low >= 0) assert(high === 0);
  6045. else assert(high === -1);
  6046. return low;
  6047. },getZero:function () {
  6048. assert(SYSCALLS.get() === 0);
  6049. }};function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
  6050. try {
  6051. // ioctl
  6052. var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
  6053. switch (op) {
  6054. case 21505: {
  6055. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6056. return 0;
  6057. }
  6058. case 21506: {
  6059. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6060. return 0; // no-op, not actually adjusting terminal settings
  6061. }
  6062. case 21519: {
  6063. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6064. var argp = SYSCALLS.get();
  6065. HEAP32[((argp)>>2)]=0;
  6066. return 0;
  6067. }
  6068. case 21520: {
  6069. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6070. return -ERRNO_CODES.EINVAL; // not supported
  6071. }
  6072. case 21531: {
  6073. var argp = SYSCALLS.get();
  6074. return FS.ioctl(stream, op, argp);
  6075. }
  6076. case 21523: {
  6077. // TODO: in theory we should write to the winsize struct that gets
  6078. // passed in, but for now musl doesn't read anything on it
  6079. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6080. return 0;
  6081. }
  6082. default: abort('bad ioctl syscall ' + op);
  6083. }
  6084. } catch (e) {
  6085. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  6086. return -e.errno;
  6087. }
  6088. }
  6089. function _emscripten_glSampleCoverage(value, invert) {
  6090. GLctx.sampleCoverage(value, !!invert);
  6091. }
  6092. function _glDeleteTextures(n, textures) {
  6093. for (var i = 0; i < n; i++) {
  6094. var id = HEAP32[(((textures)+(i*4))>>2)];
  6095. var texture = GL.textures[id];
  6096. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  6097. GLctx.deleteTexture(texture);
  6098. texture.name = 0;
  6099. GL.textures[id] = null;
  6100. }
  6101. }
  6102. function _emscripten_glFrustum() {
  6103. Module['printErr']('missing function: emscripten_glFrustum'); abort(-1);
  6104. }
  6105. function _glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  6106. function _glfwSetWindowSizeCallback(winid, cbfun) {
  6107. GLFW.setWindowSizeCallback(winid, cbfun);
  6108. }
  6109. function _emscripten_glGetTexParameterfv(target, pname, params) {
  6110. if (!params) {
  6111. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  6112. // if p == null, issue a GL error to notify user about it.
  6113. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  6114. return;
  6115. }
  6116. HEAPF32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  6117. }
  6118. function _emscripten_glUniform4i(location, v0, v1, v2, v3) {
  6119. GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3);
  6120. }
  6121. function _emscripten_glBindRenderbuffer(target, renderbuffer) {
  6122. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  6123. }
  6124. function _emscripten_glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  6125. 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 () {
  6126. if (typeof window !== 'undefined') {
  6127. window.addEventListener("gamepadconnected", function() { ++JSEvents.numGamepadsConnected; });
  6128. window.addEventListener("gamepaddisconnected", function() { --JSEvents.numGamepadsConnected; });
  6129. }
  6130. },registerRemoveEventListeners:function () {
  6131. if (!JSEvents.removeEventListenersRegistered) {
  6132. __ATEXIT__.push(function() {
  6133. for(var i = JSEvents.eventHandlers.length-1; i >= 0; --i) {
  6134. JSEvents._removeHandler(i);
  6135. }
  6136. });
  6137. JSEvents.removeEventListenersRegistered = true;
  6138. }
  6139. },findEventTarget:function (target) {
  6140. if (target) {
  6141. if (typeof target == "number") {
  6142. target = Pointer_stringify(target);
  6143. }
  6144. if (target == '#window') return window;
  6145. else if (target == '#document') return document;
  6146. else if (target == '#screen') return window.screen;
  6147. else if (target == '#canvas') return Module['canvas'];
  6148. if (typeof target == 'string') return document.getElementById(target);
  6149. else return target;
  6150. } else {
  6151. // The sensible target varies between events, but use window as the default
  6152. // since DOM events mostly can default to that. Specific callback registrations
  6153. // override their own defaults.
  6154. return window;
  6155. }
  6156. },deferredCalls:[],deferCall:function (targetFunction, precedence, argsList) {
  6157. function arraysHaveEqualContent(arrA, arrB) {
  6158. if (arrA.length != arrB.length) return false;
  6159. for(var i in arrA) {
  6160. if (arrA[i] != arrB[i]) return false;
  6161. }
  6162. return true;
  6163. }
  6164. // Test if the given call was already queued, and if so, don't add it again.
  6165. for(var i in JSEvents.deferredCalls) {
  6166. var call = JSEvents.deferredCalls[i];
  6167. if (call.targetFunction == targetFunction && arraysHaveEqualContent(call.argsList, argsList)) {
  6168. return;
  6169. }
  6170. }
  6171. JSEvents.deferredCalls.push({
  6172. targetFunction: targetFunction,
  6173. precedence: precedence,
  6174. argsList: argsList
  6175. });
  6176. JSEvents.deferredCalls.sort(function(x,y) { return x.precedence < y.precedence; });
  6177. },removeDeferredCalls:function (targetFunction) {
  6178. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6179. if (JSEvents.deferredCalls[i].targetFunction == targetFunction) {
  6180. JSEvents.deferredCalls.splice(i, 1);
  6181. --i;
  6182. }
  6183. }
  6184. },canPerformEventHandlerRequests:function () {
  6185. return JSEvents.inEventHandler && JSEvents.currentEventHandler.allowsDeferredCalls;
  6186. },runDeferredCalls:function () {
  6187. if (!JSEvents.canPerformEventHandlerRequests()) {
  6188. return;
  6189. }
  6190. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6191. var call = JSEvents.deferredCalls[i];
  6192. JSEvents.deferredCalls.splice(i, 1);
  6193. --i;
  6194. call.targetFunction.apply(this, call.argsList);
  6195. }
  6196. },inEventHandler:0,currentEventHandler:null,eventHandlers:[],isInternetExplorer:function () { return navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; },removeAllHandlersOnTarget:function (target, eventTypeString) {
  6197. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6198. if (JSEvents.eventHandlers[i].target == target &&
  6199. (!eventTypeString || eventTypeString == JSEvents.eventHandlers[i].eventTypeString)) {
  6200. JSEvents._removeHandler(i--);
  6201. }
  6202. }
  6203. },_removeHandler:function (i) {
  6204. var h = JSEvents.eventHandlers[i];
  6205. h.target.removeEventListener(h.eventTypeString, h.eventListenerFunc, h.useCapture);
  6206. JSEvents.eventHandlers.splice(i, 1);
  6207. },registerOrRemoveHandler:function (eventHandler) {
  6208. var jsEventHandler = function jsEventHandler(event) {
  6209. // Increment nesting count for the event handler.
  6210. ++JSEvents.inEventHandler;
  6211. JSEvents.currentEventHandler = eventHandler;
  6212. // Process any old deferred calls the user has placed.
  6213. JSEvents.runDeferredCalls();
  6214. // Process the actual event, calls back to user C code handler.
  6215. eventHandler.handlerFunc(event);
  6216. // Process any new deferred calls that were placed right now from this event handler.
  6217. JSEvents.runDeferredCalls();
  6218. // Out of event handler - restore nesting count.
  6219. --JSEvents.inEventHandler;
  6220. }
  6221. if (eventHandler.callbackfunc) {
  6222. eventHandler.eventListenerFunc = jsEventHandler;
  6223. eventHandler.target.addEventListener(eventHandler.eventTypeString, jsEventHandler, eventHandler.useCapture);
  6224. JSEvents.eventHandlers.push(eventHandler);
  6225. JSEvents.registerRemoveEventListeners();
  6226. } else {
  6227. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6228. if (JSEvents.eventHandlers[i].target == eventHandler.target
  6229. && JSEvents.eventHandlers[i].eventTypeString == eventHandler.eventTypeString) {
  6230. JSEvents._removeHandler(i--);
  6231. }
  6232. }
  6233. }
  6234. },registerKeyEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6235. if (!JSEvents.keyEvent) {
  6236. JSEvents.keyEvent = _malloc( 164 );
  6237. }
  6238. var handlerFunc = function(event) {
  6239. var e = event || window.event;
  6240. stringToUTF8(e.key ? e.key : "", JSEvents.keyEvent + 0, 32);
  6241. stringToUTF8(e.code ? e.code : "", JSEvents.keyEvent + 32, 32);
  6242. HEAP32[(((JSEvents.keyEvent)+(64))>>2)]=e.location;
  6243. HEAP32[(((JSEvents.keyEvent)+(68))>>2)]=e.ctrlKey;
  6244. HEAP32[(((JSEvents.keyEvent)+(72))>>2)]=e.shiftKey;
  6245. HEAP32[(((JSEvents.keyEvent)+(76))>>2)]=e.altKey;
  6246. HEAP32[(((JSEvents.keyEvent)+(80))>>2)]=e.metaKey;
  6247. HEAP32[(((JSEvents.keyEvent)+(84))>>2)]=e.repeat;
  6248. stringToUTF8(e.locale ? e.locale : "", JSEvents.keyEvent + 88, 32);
  6249. stringToUTF8(e.char ? e.char : "", JSEvents.keyEvent + 120, 32);
  6250. HEAP32[(((JSEvents.keyEvent)+(152))>>2)]=e.charCode;
  6251. HEAP32[(((JSEvents.keyEvent)+(156))>>2)]=e.keyCode;
  6252. HEAP32[(((JSEvents.keyEvent)+(160))>>2)]=e.which;
  6253. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.keyEvent, userData);
  6254. if (shouldCancel) {
  6255. e.preventDefault();
  6256. }
  6257. };
  6258. var eventHandler = {
  6259. target: JSEvents.findEventTarget(target),
  6260. allowsDeferredCalls: JSEvents.isInternetExplorer() ? false : true, // MSIE doesn't allow fullscreen and pointerlock requests from key handlers, others do.
  6261. eventTypeString: eventTypeString,
  6262. callbackfunc: callbackfunc,
  6263. handlerFunc: handlerFunc,
  6264. useCapture: useCapture
  6265. };
  6266. JSEvents.registerOrRemoveHandler(eventHandler);
  6267. },getBoundingClientRectOrZeros:function (target) {
  6268. return target.getBoundingClientRect ? target.getBoundingClientRect() : { left: 0, top: 0 };
  6269. },fillMouseEventData:function (eventStruct, e, target) {
  6270. HEAPF64[((eventStruct)>>3)]=JSEvents.tick();
  6271. HEAP32[(((eventStruct)+(8))>>2)]=e.screenX;
  6272. HEAP32[(((eventStruct)+(12))>>2)]=e.screenY;
  6273. HEAP32[(((eventStruct)+(16))>>2)]=e.clientX;
  6274. HEAP32[(((eventStruct)+(20))>>2)]=e.clientY;
  6275. HEAP32[(((eventStruct)+(24))>>2)]=e.ctrlKey;
  6276. HEAP32[(((eventStruct)+(28))>>2)]=e.shiftKey;
  6277. HEAP32[(((eventStruct)+(32))>>2)]=e.altKey;
  6278. HEAP32[(((eventStruct)+(36))>>2)]=e.metaKey;
  6279. HEAP16[(((eventStruct)+(40))>>1)]=e.button;
  6280. HEAP16[(((eventStruct)+(42))>>1)]=e.buttons;
  6281. HEAP32[(((eventStruct)+(44))>>2)]=e["movementX"] || e["mozMovementX"] || e["webkitMovementX"] || (e.screenX-JSEvents.previousScreenX);
  6282. HEAP32[(((eventStruct)+(48))>>2)]=e["movementY"] || e["mozMovementY"] || e["webkitMovementY"] || (e.screenY-JSEvents.previousScreenY);
  6283. if (Module['canvas']) {
  6284. var rect = Module['canvas'].getBoundingClientRect();
  6285. HEAP32[(((eventStruct)+(60))>>2)]=e.clientX - rect.left;
  6286. HEAP32[(((eventStruct)+(64))>>2)]=e.clientY - rect.top;
  6287. } else { // Canvas is not initialized, return 0.
  6288. HEAP32[(((eventStruct)+(60))>>2)]=0;
  6289. HEAP32[(((eventStruct)+(64))>>2)]=0;
  6290. }
  6291. if (target) {
  6292. var rect = JSEvents.getBoundingClientRectOrZeros(target);
  6293. HEAP32[(((eventStruct)+(52))>>2)]=e.clientX - rect.left;
  6294. HEAP32[(((eventStruct)+(56))>>2)]=e.clientY - rect.top;
  6295. } else { // No specific target passed, return 0.
  6296. HEAP32[(((eventStruct)+(52))>>2)]=0;
  6297. HEAP32[(((eventStruct)+(56))>>2)]=0;
  6298. }
  6299. // wheel and mousewheel events contain wrong screenX/screenY on chrome/opera
  6300. // https://github.com/kripken/emscripten/pull/4997
  6301. // https://bugs.chromium.org/p/chromium/issues/detail?id=699956
  6302. if (e.type !== 'wheel' && e.type !== 'mousewheel') {
  6303. JSEvents.previousScreenX = e.screenX;
  6304. JSEvents.previousScreenY = e.screenY;
  6305. }
  6306. },registerMouseEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6307. if (!JSEvents.mouseEvent) {
  6308. JSEvents.mouseEvent = _malloc( 72 );
  6309. }
  6310. target = JSEvents.findEventTarget(target);
  6311. var handlerFunc = function(event) {
  6312. var e = event || window.event;
  6313. JSEvents.fillMouseEventData(JSEvents.mouseEvent, e, target);
  6314. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.mouseEvent, userData);
  6315. if (shouldCancel) {
  6316. e.preventDefault();
  6317. }
  6318. };
  6319. var eventHandler = {
  6320. target: target,
  6321. allowsDeferredCalls: eventTypeString != 'mousemove' && eventTypeString != 'mouseenter' && eventTypeString != 'mouseleave', // Mouse move events do not allow fullscreen/pointer lock requests to be handled in them!
  6322. eventTypeString: eventTypeString,
  6323. callbackfunc: callbackfunc,
  6324. handlerFunc: handlerFunc,
  6325. useCapture: useCapture
  6326. };
  6327. // In IE, mousedown events don't either allow deferred calls to be run!
  6328. if (JSEvents.isInternetExplorer() && eventTypeString == 'mousedown') eventHandler.allowsDeferredCalls = false;
  6329. JSEvents.registerOrRemoveHandler(eventHandler);
  6330. },registerWheelEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6331. if (!JSEvents.wheelEvent) {
  6332. JSEvents.wheelEvent = _malloc( 104 );
  6333. }
  6334. target = JSEvents.findEventTarget(target);
  6335. // The DOM Level 3 events spec event 'wheel'
  6336. var wheelHandlerFunc = function(event) {
  6337. var e = event || window.event;
  6338. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6339. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["deltaX"];
  6340. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=e["deltaY"];
  6341. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=e["deltaZ"];
  6342. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=e["deltaMode"];
  6343. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6344. if (shouldCancel) {
  6345. e.preventDefault();
  6346. }
  6347. };
  6348. // The 'mousewheel' event as implemented in Safari 6.0.5
  6349. var mouseWheelHandlerFunc = function(event) {
  6350. var e = event || window.event;
  6351. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6352. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["wheelDeltaX"] || 0;
  6353. 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. */;
  6354. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=0 /* Not available */;
  6355. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=0 /* DOM_DELTA_PIXEL */;
  6356. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6357. if (shouldCancel) {
  6358. e.preventDefault();
  6359. }
  6360. };
  6361. var eventHandler = {
  6362. target: target,
  6363. allowsDeferredCalls: true,
  6364. eventTypeString: eventTypeString,
  6365. callbackfunc: callbackfunc,
  6366. handlerFunc: (eventTypeString == 'wheel') ? wheelHandlerFunc : mouseWheelHandlerFunc,
  6367. useCapture: useCapture
  6368. };
  6369. JSEvents.registerOrRemoveHandler(eventHandler);
  6370. },pageScrollPos:function () {
  6371. if (window.pageXOffset > 0 || window.pageYOffset > 0) {
  6372. return [window.pageXOffset, window.pageYOffset];
  6373. }
  6374. if (typeof document.documentElement.scrollLeft !== 'undefined' || typeof document.documentElement.scrollTop !== 'undefined') {
  6375. return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
  6376. }
  6377. return [document.body.scrollLeft|0, document.body.scrollTop|0];
  6378. },registerUiEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6379. if (!JSEvents.uiEvent) {
  6380. JSEvents.uiEvent = _malloc( 36 );
  6381. }
  6382. if (eventTypeString == "scroll" && !target) {
  6383. target = document; // By default read scroll events on document rather than window.
  6384. } else {
  6385. target = JSEvents.findEventTarget(target);
  6386. }
  6387. var handlerFunc = function(event) {
  6388. var e = event || window.event;
  6389. if (e.target != target) {
  6390. // Never take ui events such as scroll via a 'bubbled' route, but always from the direct element that
  6391. // was targeted. Otherwise e.g. if app logs a message in response to a page scroll, the Emscripten log
  6392. // message box could cause to scroll, generating a new (bubbled) scroll message, causing a new log print,
  6393. // causing a new scroll, etc..
  6394. return;
  6395. }
  6396. var scrollPos = JSEvents.pageScrollPos();
  6397. HEAP32[((JSEvents.uiEvent)>>2)]=e.detail;
  6398. HEAP32[(((JSEvents.uiEvent)+(4))>>2)]=document.body.clientWidth;
  6399. HEAP32[(((JSEvents.uiEvent)+(8))>>2)]=document.body.clientHeight;
  6400. HEAP32[(((JSEvents.uiEvent)+(12))>>2)]=window.innerWidth;
  6401. HEAP32[(((JSEvents.uiEvent)+(16))>>2)]=window.innerHeight;
  6402. HEAP32[(((JSEvents.uiEvent)+(20))>>2)]=window.outerWidth;
  6403. HEAP32[(((JSEvents.uiEvent)+(24))>>2)]=window.outerHeight;
  6404. HEAP32[(((JSEvents.uiEvent)+(28))>>2)]=scrollPos[0];
  6405. HEAP32[(((JSEvents.uiEvent)+(32))>>2)]=scrollPos[1];
  6406. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.uiEvent, userData);
  6407. if (shouldCancel) {
  6408. e.preventDefault();
  6409. }
  6410. };
  6411. var eventHandler = {
  6412. target: target,
  6413. allowsDeferredCalls: false, // Neither scroll or resize events allow running requests inside them.
  6414. eventTypeString: eventTypeString,
  6415. callbackfunc: callbackfunc,
  6416. handlerFunc: handlerFunc,
  6417. useCapture: useCapture
  6418. };
  6419. JSEvents.registerOrRemoveHandler(eventHandler);
  6420. },getNodeNameForTarget:function (target) {
  6421. if (!target) return '';
  6422. if (target == window) return '#window';
  6423. if (target == window.screen) return '#screen';
  6424. return (target && target.nodeName) ? target.nodeName : '';
  6425. },registerFocusEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6426. if (!JSEvents.focusEvent) {
  6427. JSEvents.focusEvent = _malloc( 256 );
  6428. }
  6429. var handlerFunc = function(event) {
  6430. var e = event || window.event;
  6431. var nodeName = JSEvents.getNodeNameForTarget(e.target);
  6432. var id = e.target.id ? e.target.id : '';
  6433. stringToUTF8(nodeName, JSEvents.focusEvent + 0, 128);
  6434. stringToUTF8(id, JSEvents.focusEvent + 128, 128);
  6435. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.focusEvent, userData);
  6436. if (shouldCancel) {
  6437. e.preventDefault();
  6438. }
  6439. };
  6440. var eventHandler = {
  6441. target: JSEvents.findEventTarget(target),
  6442. allowsDeferredCalls: false,
  6443. eventTypeString: eventTypeString,
  6444. callbackfunc: callbackfunc,
  6445. handlerFunc: handlerFunc,
  6446. useCapture: useCapture
  6447. };
  6448. JSEvents.registerOrRemoveHandler(eventHandler);
  6449. },tick:function () {
  6450. if (window['performance'] && window['performance']['now']) return window['performance']['now']();
  6451. else return Date.now();
  6452. },registerDeviceOrientationEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6453. if (!JSEvents.deviceOrientationEvent) {
  6454. JSEvents.deviceOrientationEvent = _malloc( 40 );
  6455. }
  6456. var handlerFunc = function(event) {
  6457. var e = event || window.event;
  6458. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6459. HEAPF64[(((JSEvents.deviceOrientationEvent)+(8))>>3)]=e.alpha;
  6460. HEAPF64[(((JSEvents.deviceOrientationEvent)+(16))>>3)]=e.beta;
  6461. HEAPF64[(((JSEvents.deviceOrientationEvent)+(24))>>3)]=e.gamma;
  6462. HEAP32[(((JSEvents.deviceOrientationEvent)+(32))>>2)]=e.absolute;
  6463. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceOrientationEvent, userData);
  6464. if (shouldCancel) {
  6465. e.preventDefault();
  6466. }
  6467. };
  6468. var eventHandler = {
  6469. target: JSEvents.findEventTarget(target),
  6470. allowsDeferredCalls: false,
  6471. eventTypeString: eventTypeString,
  6472. callbackfunc: callbackfunc,
  6473. handlerFunc: handlerFunc,
  6474. useCapture: useCapture
  6475. };
  6476. JSEvents.registerOrRemoveHandler(eventHandler);
  6477. },registerDeviceMotionEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6478. if (!JSEvents.deviceMotionEvent) {
  6479. JSEvents.deviceMotionEvent = _malloc( 80 );
  6480. }
  6481. var handlerFunc = function(event) {
  6482. var e = event || window.event;
  6483. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6484. HEAPF64[(((JSEvents.deviceMotionEvent)+(8))>>3)]=e.acceleration.x;
  6485. HEAPF64[(((JSEvents.deviceMotionEvent)+(16))>>3)]=e.acceleration.y;
  6486. HEAPF64[(((JSEvents.deviceMotionEvent)+(24))>>3)]=e.acceleration.z;
  6487. HEAPF64[(((JSEvents.deviceMotionEvent)+(32))>>3)]=e.accelerationIncludingGravity.x;
  6488. HEAPF64[(((JSEvents.deviceMotionEvent)+(40))>>3)]=e.accelerationIncludingGravity.y;
  6489. HEAPF64[(((JSEvents.deviceMotionEvent)+(48))>>3)]=e.accelerationIncludingGravity.z;
  6490. HEAPF64[(((JSEvents.deviceMotionEvent)+(56))>>3)]=e.rotationRate.alpha;
  6491. HEAPF64[(((JSEvents.deviceMotionEvent)+(64))>>3)]=e.rotationRate.beta;
  6492. HEAPF64[(((JSEvents.deviceMotionEvent)+(72))>>3)]=e.rotationRate.gamma;
  6493. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceMotionEvent, userData);
  6494. if (shouldCancel) {
  6495. e.preventDefault();
  6496. }
  6497. };
  6498. var eventHandler = {
  6499. target: JSEvents.findEventTarget(target),
  6500. allowsDeferredCalls: false,
  6501. eventTypeString: eventTypeString,
  6502. callbackfunc: callbackfunc,
  6503. handlerFunc: handlerFunc,
  6504. useCapture: useCapture
  6505. };
  6506. JSEvents.registerOrRemoveHandler(eventHandler);
  6507. },screenOrientation:function () {
  6508. if (!window.screen) return undefined;
  6509. return window.screen.orientation || window.screen.mozOrientation || window.screen.webkitOrientation || window.screen.msOrientation;
  6510. },fillOrientationChangeEventData:function (eventStruct, e) {
  6511. var orientations = ["portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"];
  6512. var orientations2 = ["portrait", "portrait", "landscape", "landscape"];
  6513. var orientationString = JSEvents.screenOrientation();
  6514. var orientation = orientations.indexOf(orientationString);
  6515. if (orientation == -1) {
  6516. orientation = orientations2.indexOf(orientationString);
  6517. }
  6518. HEAP32[((eventStruct)>>2)]=1 << orientation;
  6519. HEAP32[(((eventStruct)+(4))>>2)]=window.orientation;
  6520. },registerOrientationChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6521. if (!JSEvents.orientationChangeEvent) {
  6522. JSEvents.orientationChangeEvent = _malloc( 8 );
  6523. }
  6524. if (!target) {
  6525. target = window.screen; // Orientation events need to be captured from 'window.screen' instead of 'window'
  6526. } else {
  6527. target = JSEvents.findEventTarget(target);
  6528. }
  6529. var handlerFunc = function(event) {
  6530. var e = event || window.event;
  6531. JSEvents.fillOrientationChangeEventData(JSEvents.orientationChangeEvent, e);
  6532. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.orientationChangeEvent, userData);
  6533. if (shouldCancel) {
  6534. e.preventDefault();
  6535. }
  6536. };
  6537. if (eventTypeString == "orientationchange" && window.screen.mozOrientation !== undefined) {
  6538. eventTypeString = "mozorientationchange";
  6539. }
  6540. var eventHandler = {
  6541. target: target,
  6542. allowsDeferredCalls: false,
  6543. eventTypeString: eventTypeString,
  6544. callbackfunc: callbackfunc,
  6545. handlerFunc: handlerFunc,
  6546. useCapture: useCapture
  6547. };
  6548. JSEvents.registerOrRemoveHandler(eventHandler);
  6549. },fullscreenEnabled:function () {
  6550. return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
  6551. },fillFullscreenChangeEventData:function (eventStruct, e) {
  6552. var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
  6553. var isFullscreen = !!fullscreenElement;
  6554. HEAP32[((eventStruct)>>2)]=isFullscreen;
  6555. HEAP32[(((eventStruct)+(4))>>2)]=JSEvents.fullscreenEnabled();
  6556. // If transitioning to fullscreen, report info about the element that is now fullscreen.
  6557. // If transitioning to windowed mode, report info about the element that just was fullscreen.
  6558. var reportedElement = isFullscreen ? fullscreenElement : JSEvents.previousFullscreenElement;
  6559. var nodeName = JSEvents.getNodeNameForTarget(reportedElement);
  6560. var id = (reportedElement && reportedElement.id) ? reportedElement.id : '';
  6561. stringToUTF8(nodeName, eventStruct + 8, 128);
  6562. stringToUTF8(id, eventStruct + 136, 128);
  6563. HEAP32[(((eventStruct)+(264))>>2)]=reportedElement ? reportedElement.clientWidth : 0;
  6564. HEAP32[(((eventStruct)+(268))>>2)]=reportedElement ? reportedElement.clientHeight : 0;
  6565. HEAP32[(((eventStruct)+(272))>>2)]=screen.width;
  6566. HEAP32[(((eventStruct)+(276))>>2)]=screen.height;
  6567. if (isFullscreen) {
  6568. JSEvents.previousFullscreenElement = fullscreenElement;
  6569. }
  6570. },registerFullscreenChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6571. if (!JSEvents.fullscreenChangeEvent) {
  6572. JSEvents.fullscreenChangeEvent = _malloc( 280 );
  6573. }
  6574. if (!target) {
  6575. target = document; // Fullscreen change events need to be captured from 'document' by default instead of 'window'
  6576. } else {
  6577. target = JSEvents.findEventTarget(target);
  6578. }
  6579. var handlerFunc = function(event) {
  6580. var e = event || window.event;
  6581. JSEvents.fillFullscreenChangeEventData(JSEvents.fullscreenChangeEvent, e);
  6582. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.fullscreenChangeEvent, userData);
  6583. if (shouldCancel) {
  6584. e.preventDefault();
  6585. }
  6586. };
  6587. var eventHandler = {
  6588. target: target,
  6589. allowsDeferredCalls: false,
  6590. eventTypeString: eventTypeString,
  6591. callbackfunc: callbackfunc,
  6592. handlerFunc: handlerFunc,
  6593. useCapture: useCapture
  6594. };
  6595. JSEvents.registerOrRemoveHandler(eventHandler);
  6596. },resizeCanvasForFullscreen:function (target, strategy) {
  6597. var restoreOldStyle = __registerRestoreOldStyle(target);
  6598. var cssWidth = strategy.softFullscreen ? window.innerWidth : screen.width;
  6599. var cssHeight = strategy.softFullscreen ? window.innerHeight : screen.height;
  6600. var rect = target.getBoundingClientRect();
  6601. var windowedCssWidth = rect.right - rect.left;
  6602. var windowedCssHeight = rect.bottom - rect.top;
  6603. var windowedRttWidth = target.width;
  6604. var windowedRttHeight = target.height;
  6605. if (strategy.scaleMode == 3) {
  6606. __setLetterbox(target, (cssHeight - windowedCssHeight) / 2, (cssWidth - windowedCssWidth) / 2);
  6607. cssWidth = windowedCssWidth;
  6608. cssHeight = windowedCssHeight;
  6609. } else if (strategy.scaleMode == 2) {
  6610. if (cssWidth*windowedRttHeight < windowedRttWidth*cssHeight) {
  6611. var desiredCssHeight = windowedRttHeight * cssWidth / windowedRttWidth;
  6612. __setLetterbox(target, (cssHeight - desiredCssHeight) / 2, 0);
  6613. cssHeight = desiredCssHeight;
  6614. } else {
  6615. var desiredCssWidth = windowedRttWidth * cssHeight / windowedRttHeight;
  6616. __setLetterbox(target, 0, (cssWidth - desiredCssWidth) / 2);
  6617. cssWidth = desiredCssWidth;
  6618. }
  6619. }
  6620. // If we are adding padding, must choose a background color or otherwise Chrome will give the
  6621. // padding a default white color. Do it only if user has not customized their own background color.
  6622. if (!target.style.backgroundColor) target.style.backgroundColor = 'black';
  6623. // IE11 does the same, but requires the color to be set in the document body.
  6624. if (!document.body.style.backgroundColor) document.body.style.backgroundColor = 'black'; // IE11
  6625. // Firefox always shows black letterboxes independent of style color.
  6626. target.style.width = cssWidth + 'px';
  6627. target.style.height = cssHeight + 'px';
  6628. if (strategy.filteringMode == 1) {
  6629. target.style.imageRendering = 'optimizeSpeed';
  6630. target.style.imageRendering = '-moz-crisp-edges';
  6631. target.style.imageRendering = '-o-crisp-edges';
  6632. target.style.imageRendering = '-webkit-optimize-contrast';
  6633. target.style.imageRendering = 'optimize-contrast';
  6634. target.style.imageRendering = 'crisp-edges';
  6635. target.style.imageRendering = 'pixelated';
  6636. }
  6637. var dpiScale = (strategy.canvasResolutionScaleMode == 2) ? window.devicePixelRatio : 1;
  6638. if (strategy.canvasResolutionScaleMode != 0) {
  6639. target.width = cssWidth * dpiScale;
  6640. target.height = cssHeight * dpiScale;
  6641. if (target.GLctxObject) target.GLctxObject.GLctx.viewport(0, 0, target.width, target.height);
  6642. }
  6643. return restoreOldStyle;
  6644. },requestFullscreen:function (target, strategy) {
  6645. // EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT + EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE is a mode where no extra logic is performed to the DOM elements.
  6646. if (strategy.scaleMode != 0 || strategy.canvasResolutionScaleMode != 0) {
  6647. JSEvents.resizeCanvasForFullscreen(target, strategy);
  6648. }
  6649. if (target.requestFullscreen) {
  6650. target.requestFullscreen();
  6651. } else if (target.msRequestFullscreen) {
  6652. target.msRequestFullscreen();
  6653. } else if (target.mozRequestFullScreen) {
  6654. target.mozRequestFullScreen();
  6655. } else if (target.mozRequestFullscreen) {
  6656. target.mozRequestFullscreen();
  6657. } else if (target.webkitRequestFullscreen) {
  6658. target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  6659. } else {
  6660. if (typeof JSEvents.fullscreenEnabled() === 'undefined') {
  6661. return -1;
  6662. } else {
  6663. return -3;
  6664. }
  6665. }
  6666. if (strategy.canvasResizedCallback) {
  6667. Module['dynCall_iiii'](strategy.canvasResizedCallback, 37, 0, strategy.canvasResizedCallbackUserData);
  6668. }
  6669. return 0;
  6670. },fillPointerlockChangeEventData:function (eventStruct, e) {
  6671. var pointerLockElement = document.pointerLockElement || document.mozPointerLockElement || document.webkitPointerLockElement || document.msPointerLockElement;
  6672. var isPointerlocked = !!pointerLockElement;
  6673. HEAP32[((eventStruct)>>2)]=isPointerlocked;
  6674. var nodeName = JSEvents.getNodeNameForTarget(pointerLockElement);
  6675. var id = (pointerLockElement && pointerLockElement.id) ? pointerLockElement.id : '';
  6676. stringToUTF8(nodeName, eventStruct + 4, 128);
  6677. stringToUTF8(id, eventStruct + 132, 128);
  6678. },registerPointerlockChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6679. if (!JSEvents.pointerlockChangeEvent) {
  6680. JSEvents.pointerlockChangeEvent = _malloc( 260 );
  6681. }
  6682. if (!target) {
  6683. target = document; // Pointer lock change events need to be captured from 'document' by default instead of 'window'
  6684. } else {
  6685. target = JSEvents.findEventTarget(target);
  6686. }
  6687. var handlerFunc = function(event) {
  6688. var e = event || window.event;
  6689. JSEvents.fillPointerlockChangeEventData(JSEvents.pointerlockChangeEvent, e);
  6690. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.pointerlockChangeEvent, userData);
  6691. if (shouldCancel) {
  6692. e.preventDefault();
  6693. }
  6694. };
  6695. var eventHandler = {
  6696. target: target,
  6697. allowsDeferredCalls: false,
  6698. eventTypeString: eventTypeString,
  6699. callbackfunc: callbackfunc,
  6700. handlerFunc: handlerFunc,
  6701. useCapture: useCapture
  6702. };
  6703. JSEvents.registerOrRemoveHandler(eventHandler);
  6704. },registerPointerlockErrorEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6705. if (!target) {
  6706. target = document; // Pointer lock events need to be captured from 'document' by default instead of 'window'
  6707. } else {
  6708. target = JSEvents.findEventTarget(target);
  6709. }
  6710. var handlerFunc = function(event) {
  6711. var e = event || window.event;
  6712. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6713. if (shouldCancel) {
  6714. e.preventDefault();
  6715. }
  6716. };
  6717. var eventHandler = {
  6718. target: target,
  6719. allowsDeferredCalls: false,
  6720. eventTypeString: eventTypeString,
  6721. callbackfunc: callbackfunc,
  6722. handlerFunc: handlerFunc,
  6723. useCapture: useCapture
  6724. };
  6725. JSEvents.registerOrRemoveHandler(eventHandler);
  6726. },requestPointerLock:function (target) {
  6727. if (target.requestPointerLock) {
  6728. target.requestPointerLock();
  6729. } else if (target.mozRequestPointerLock) {
  6730. target.mozRequestPointerLock();
  6731. } else if (target.webkitRequestPointerLock) {
  6732. target.webkitRequestPointerLock();
  6733. } else if (target.msRequestPointerLock) {
  6734. target.msRequestPointerLock();
  6735. } else {
  6736. // document.body is known to accept pointer lock, so use that to differentiate if the user passed a bad element,
  6737. // or if the whole browser just doesn't support the feature.
  6738. if (document.body.requestPointerLock || document.body.mozRequestPointerLock || document.body.webkitRequestPointerLock || document.body.msRequestPointerLock) {
  6739. return -3;
  6740. } else {
  6741. return -1;
  6742. }
  6743. }
  6744. return 0;
  6745. },fillVisibilityChangeEventData:function (eventStruct, e) {
  6746. var visibilityStates = [ "hidden", "visible", "prerender", "unloaded" ];
  6747. var visibilityState = visibilityStates.indexOf(document.visibilityState);
  6748. HEAP32[((eventStruct)>>2)]=document.hidden;
  6749. HEAP32[(((eventStruct)+(4))>>2)]=visibilityState;
  6750. },registerVisibilityChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6751. if (!JSEvents.visibilityChangeEvent) {
  6752. JSEvents.visibilityChangeEvent = _malloc( 8 );
  6753. }
  6754. if (!target) {
  6755. target = document; // Visibility change events need to be captured from 'document' by default instead of 'window'
  6756. } else {
  6757. target = JSEvents.findEventTarget(target);
  6758. }
  6759. var handlerFunc = function(event) {
  6760. var e = event || window.event;
  6761. JSEvents.fillVisibilityChangeEventData(JSEvents.visibilityChangeEvent, e);
  6762. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.visibilityChangeEvent, userData);
  6763. if (shouldCancel) {
  6764. e.preventDefault();
  6765. }
  6766. };
  6767. var eventHandler = {
  6768. target: target,
  6769. allowsDeferredCalls: false,
  6770. eventTypeString: eventTypeString,
  6771. callbackfunc: callbackfunc,
  6772. handlerFunc: handlerFunc,
  6773. useCapture: useCapture
  6774. };
  6775. JSEvents.registerOrRemoveHandler(eventHandler);
  6776. },registerTouchEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6777. if (!JSEvents.touchEvent) {
  6778. JSEvents.touchEvent = _malloc( 1684 );
  6779. }
  6780. target = JSEvents.findEventTarget(target);
  6781. var handlerFunc = function(event) {
  6782. var e = event || window.event;
  6783. var touches = {};
  6784. for(var i = 0; i < e.touches.length; ++i) {
  6785. var touch = e.touches[i];
  6786. touches[touch.identifier] = touch;
  6787. }
  6788. for(var i = 0; i < e.changedTouches.length; ++i) {
  6789. var touch = e.changedTouches[i];
  6790. touches[touch.identifier] = touch;
  6791. touch.changed = true;
  6792. }
  6793. for(var i = 0; i < e.targetTouches.length; ++i) {
  6794. var touch = e.targetTouches[i];
  6795. touches[touch.identifier].onTarget = true;
  6796. }
  6797. var ptr = JSEvents.touchEvent;
  6798. HEAP32[(((ptr)+(4))>>2)]=e.ctrlKey;
  6799. HEAP32[(((ptr)+(8))>>2)]=e.shiftKey;
  6800. HEAP32[(((ptr)+(12))>>2)]=e.altKey;
  6801. HEAP32[(((ptr)+(16))>>2)]=e.metaKey;
  6802. ptr += 20; // Advance to the start of the touch array.
  6803. var canvasRect = Module['canvas'] ? Module['canvas'].getBoundingClientRect() : undefined;
  6804. var targetRect = JSEvents.getBoundingClientRectOrZeros(target);
  6805. var numTouches = 0;
  6806. for(var i in touches) {
  6807. var t = touches[i];
  6808. HEAP32[((ptr)>>2)]=t.identifier;
  6809. HEAP32[(((ptr)+(4))>>2)]=t.screenX;
  6810. HEAP32[(((ptr)+(8))>>2)]=t.screenY;
  6811. HEAP32[(((ptr)+(12))>>2)]=t.clientX;
  6812. HEAP32[(((ptr)+(16))>>2)]=t.clientY;
  6813. HEAP32[(((ptr)+(20))>>2)]=t.pageX;
  6814. HEAP32[(((ptr)+(24))>>2)]=t.pageY;
  6815. HEAP32[(((ptr)+(28))>>2)]=t.changed;
  6816. HEAP32[(((ptr)+(32))>>2)]=t.onTarget;
  6817. if (canvasRect) {
  6818. HEAP32[(((ptr)+(44))>>2)]=t.clientX - canvasRect.left;
  6819. HEAP32[(((ptr)+(48))>>2)]=t.clientY - canvasRect.top;
  6820. } else {
  6821. HEAP32[(((ptr)+(44))>>2)]=0;
  6822. HEAP32[(((ptr)+(48))>>2)]=0;
  6823. }
  6824. HEAP32[(((ptr)+(36))>>2)]=t.clientX - targetRect.left;
  6825. HEAP32[(((ptr)+(40))>>2)]=t.clientY - targetRect.top;
  6826. ptr += 52;
  6827. if (++numTouches >= 32) {
  6828. break;
  6829. }
  6830. }
  6831. HEAP32[((JSEvents.touchEvent)>>2)]=numTouches;
  6832. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.touchEvent, userData);
  6833. if (shouldCancel) {
  6834. e.preventDefault();
  6835. }
  6836. };
  6837. var eventHandler = {
  6838. target: target,
  6839. allowsDeferredCalls: false, // XXX Currently disabled, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=966493
  6840. // Once the above bug is resolved, enable the following condition if possible:
  6841. // allowsDeferredCalls: eventTypeString == 'touchstart',
  6842. eventTypeString: eventTypeString,
  6843. callbackfunc: callbackfunc,
  6844. handlerFunc: handlerFunc,
  6845. useCapture: useCapture
  6846. };
  6847. JSEvents.registerOrRemoveHandler(eventHandler);
  6848. },fillGamepadEventData:function (eventStruct, e) {
  6849. HEAPF64[((eventStruct)>>3)]=e.timestamp;
  6850. for(var i = 0; i < e.axes.length; ++i) {
  6851. HEAPF64[(((eventStruct+i*8)+(16))>>3)]=e.axes[i];
  6852. }
  6853. for(var i = 0; i < e.buttons.length; ++i) {
  6854. if (typeof(e.buttons[i]) === 'object') {
  6855. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i].value;
  6856. } else {
  6857. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i];
  6858. }
  6859. }
  6860. for(var i = 0; i < e.buttons.length; ++i) {
  6861. if (typeof(e.buttons[i]) === 'object') {
  6862. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i].pressed;
  6863. } else {
  6864. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i] == 1.0;
  6865. }
  6866. }
  6867. HEAP32[(((eventStruct)+(1296))>>2)]=e.connected;
  6868. HEAP32[(((eventStruct)+(1300))>>2)]=e.index;
  6869. HEAP32[(((eventStruct)+(8))>>2)]=e.axes.length;
  6870. HEAP32[(((eventStruct)+(12))>>2)]=e.buttons.length;
  6871. stringToUTF8(e.id, eventStruct + 1304, 64);
  6872. stringToUTF8(e.mapping, eventStruct + 1368, 64);
  6873. },registerGamepadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6874. if (!JSEvents.gamepadEvent) {
  6875. JSEvents.gamepadEvent = _malloc( 1432 );
  6876. }
  6877. var handlerFunc = function(event) {
  6878. var e = event || window.event;
  6879. JSEvents.fillGamepadEventData(JSEvents.gamepadEvent, e.gamepad);
  6880. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.gamepadEvent, userData);
  6881. if (shouldCancel) {
  6882. e.preventDefault();
  6883. }
  6884. };
  6885. var eventHandler = {
  6886. target: JSEvents.findEventTarget(target),
  6887. allowsDeferredCalls: true,
  6888. eventTypeString: eventTypeString,
  6889. callbackfunc: callbackfunc,
  6890. handlerFunc: handlerFunc,
  6891. useCapture: useCapture
  6892. };
  6893. JSEvents.registerOrRemoveHandler(eventHandler);
  6894. },registerBeforeUnloadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6895. var handlerFunc = function(event) {
  6896. var e = event || window.event;
  6897. var confirmationMessage = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6898. if (confirmationMessage) {
  6899. confirmationMessage = Pointer_stringify(confirmationMessage);
  6900. }
  6901. if (confirmationMessage) {
  6902. e.preventDefault();
  6903. e.returnValue = confirmationMessage;
  6904. return confirmationMessage;
  6905. }
  6906. };
  6907. var eventHandler = {
  6908. target: JSEvents.findEventTarget(target),
  6909. allowsDeferredCalls: false,
  6910. eventTypeString: eventTypeString,
  6911. callbackfunc: callbackfunc,
  6912. handlerFunc: handlerFunc,
  6913. useCapture: useCapture
  6914. };
  6915. JSEvents.registerOrRemoveHandler(eventHandler);
  6916. },battery:function () { return navigator.battery || navigator.mozBattery || navigator.webkitBattery; },fillBatteryEventData:function (eventStruct, e) {
  6917. HEAPF64[((eventStruct)>>3)]=e.chargingTime;
  6918. HEAPF64[(((eventStruct)+(8))>>3)]=e.dischargingTime;
  6919. HEAPF64[(((eventStruct)+(16))>>3)]=e.level;
  6920. HEAP32[(((eventStruct)+(24))>>2)]=e.charging;
  6921. },registerBatteryEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6922. if (!JSEvents.batteryEvent) {
  6923. JSEvents.batteryEvent = _malloc( 32 );
  6924. }
  6925. var handlerFunc = function(event) {
  6926. var e = event || window.event;
  6927. JSEvents.fillBatteryEventData(JSEvents.batteryEvent, JSEvents.battery());
  6928. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.batteryEvent, userData);
  6929. if (shouldCancel) {
  6930. e.preventDefault();
  6931. }
  6932. };
  6933. var eventHandler = {
  6934. target: JSEvents.findEventTarget(target),
  6935. allowsDeferredCalls: false,
  6936. eventTypeString: eventTypeString,
  6937. callbackfunc: callbackfunc,
  6938. handlerFunc: handlerFunc,
  6939. useCapture: useCapture
  6940. };
  6941. JSEvents.registerOrRemoveHandler(eventHandler);
  6942. },registerWebGlEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6943. if (!target) {
  6944. target = Module['canvas'];
  6945. }
  6946. var handlerFunc = function(event) {
  6947. var e = event || window.event;
  6948. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6949. if (shouldCancel) {
  6950. e.preventDefault();
  6951. }
  6952. };
  6953. var eventHandler = {
  6954. target: JSEvents.findEventTarget(target),
  6955. allowsDeferredCalls: false,
  6956. eventTypeString: eventTypeString,
  6957. callbackfunc: callbackfunc,
  6958. handlerFunc: handlerFunc,
  6959. useCapture: useCapture
  6960. };
  6961. JSEvents.registerOrRemoveHandler(eventHandler);
  6962. }};function __emscripten_sample_gamepad_data() {
  6963. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  6964. if (!JSEvents.numGamepadsConnected) return;
  6965. // 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.
  6966. if (Browser.mainLoop.currentFrameNumber !== JSEvents.lastGamepadStateFrame || !Browser.mainLoop.currentFrameNumber) {
  6967. JSEvents.lastGamepadState = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ? navigator.webkitGetGamepads : null);
  6968. JSEvents.lastGamepadStateFrame = Browser.mainLoop.currentFrameNumber;
  6969. }
  6970. }function _emscripten_get_gamepad_status(index, gamepadState) {
  6971. __emscripten_sample_gamepad_data();
  6972. if (!JSEvents.lastGamepadState) return -1;
  6973. // INVALID_PARAM is returned on a Gamepad index that never was there.
  6974. if (index < 0 || index >= JSEvents.lastGamepadState.length) return -5;
  6975. // NO_DATA is returned on a Gamepad index that was removed.
  6976. // For previously disconnected gamepads there should be an empty slot (null/undefined/false) at the index.
  6977. // This is because gamepads must keep their original position in the array.
  6978. // For example, removing the first of two gamepads produces [null/undefined/false, gamepad].
  6979. if (!JSEvents.lastGamepadState[index]) return -7;
  6980. JSEvents.fillGamepadEventData(gamepadState, JSEvents.lastGamepadState[index]);
  6981. return 0;
  6982. }
  6983. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  6984. function _emscripten_glTexParameterfv(target, pname, params) {
  6985. var param = HEAPF32[((params)>>2)];
  6986. GLctx.texParameterf(target, pname, param);
  6987. }
  6988. function _emscripten_glLinkProgram(program) {
  6989. GLctx.linkProgram(GL.programs[program]);
  6990. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  6991. GL.populateUniformTable(program);
  6992. }
  6993. function _glUniform1f(location, v0) {
  6994. GLctx.uniform1f(GL.uniforms[location], v0);
  6995. }
  6996. function _emscripten_glUniform3f(location, v0, v1, v2) {
  6997. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  6998. }
  6999. function _emscripten_glGetObjectParameterivARB() {
  7000. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  7001. }
  7002. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7003. function _emscripten_glUniform3i(location, v0, v1, v2) {
  7004. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  7005. }
  7006. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7007. function _glCreateShader(shaderType) {
  7008. var id = GL.getNewId(GL.shaders);
  7009. GL.shaders[id] = GLctx.createShader(shaderType);
  7010. return id;
  7011. }
  7012. function _glUniform1i(location, v0) {
  7013. GLctx.uniform1i(GL.uniforms[location], v0);
  7014. }
  7015. function _emscripten_glBindAttribLocation(program, index, name) {
  7016. name = Pointer_stringify(name);
  7017. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7018. }
  7019. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7020. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7021. }
  7022. function _glDisable(x0) { GLctx['disable'](x0) }
  7023. function _glfwGetMouseButton(winid, button) {
  7024. return GLFW.getMouseButton(winid, button);
  7025. }
  7026. function _emscripten_glEnableVertexAttribArray(index) {
  7027. GLctx.enableVertexAttribArray(index);
  7028. }
  7029. Module["_memset"] = _memset;
  7030. function _glfwMakeContextCurrent(winid) {}
  7031. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7032. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7033. return 0;
  7034. }
  7035. function ___lock() {}
  7036. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7037. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7038. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7039. if (!pointer) {
  7040. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7041. // if pointer == null, issue a GL error to notify user about it.
  7042. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7043. return;
  7044. }
  7045. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7046. }
  7047. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7048. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7049. function _emscripten_glNormalPointer() {
  7050. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7051. }
  7052. var _emscripten_GetProcAddress=undefined;
  7053. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7054. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7055. EGL.errorCode = code;
  7056. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7057. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7058. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7059. return 0;
  7060. }
  7061. // TODO: read attribList.
  7062. if ((!config || !config_size) && !numConfigs) {
  7063. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7064. return 0;
  7065. }
  7066. if (numConfigs) {
  7067. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7068. }
  7069. if (config && config_size > 0) {
  7070. HEAP32[((config)>>2)]=62002;
  7071. }
  7072. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7073. return 1;
  7074. }};function _eglGetProcAddress(name_) {
  7075. return _emscripten_GetProcAddress(name_);
  7076. }
  7077. function _glDeleteProgram(id) {
  7078. if (!id) return;
  7079. var program = GL.programs[id];
  7080. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7081. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7082. return;
  7083. }
  7084. GLctx.deleteProgram(program);
  7085. program.name = 0;
  7086. GL.programs[id] = null;
  7087. GL.programInfos[id] = null;
  7088. }
  7089. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7090. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7091. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7092. return -1;
  7093. }
  7094. return 0;
  7095. }
  7096. function _glAttachShader(program, shader) {
  7097. GLctx.attachShader(GL.programs[program],
  7098. GL.shaders[shader]);
  7099. }
  7100. function _glfwGetPrimaryMonitor() {
  7101. return 1;
  7102. }
  7103. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7104. if (!params) {
  7105. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7106. // if params == null, issue a GL error to notify user about it.
  7107. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7108. return;
  7109. }
  7110. var data = GLctx.getVertexAttrib(index, pname);
  7111. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7112. HEAP32[((params)>>2)]=data["name"];
  7113. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7114. switch (type) {
  7115. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7116. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7117. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7118. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7119. }
  7120. } else {
  7121. for (var i = 0; i < data.length; i++) {
  7122. switch (type) {
  7123. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7124. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7125. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7126. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7127. }
  7128. }
  7129. }
  7130. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7131. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7132. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7133. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7134. }
  7135. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7136. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7137. return 0;
  7138. }
  7139. function _glUniform3f(location, v0, v1, v2) {
  7140. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7141. }
  7142. 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.'; }
  7143. function _emscripten_glDeleteBuffers(n, buffers) {
  7144. for (var i = 0; i < n; i++) {
  7145. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7146. var buffer = GL.buffers[id];
  7147. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7148. // correspond to existing buffer objects."
  7149. if (!buffer) continue;
  7150. GLctx.deleteBuffer(buffer);
  7151. buffer.name = 0;
  7152. GL.buffers[id] = null;
  7153. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7154. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7155. }
  7156. }
  7157. function _emscripten_glTexParameteriv(target, pname, params) {
  7158. var param = HEAP32[((params)>>2)];
  7159. GLctx.texParameteri(target, pname, param);
  7160. }
  7161. function _glDrawElements(mode, count, type, indices) {
  7162. GLctx.drawElements(mode, count, type, indices);
  7163. }
  7164. function _glfwTerminate() {
  7165. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7166. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7167. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7168. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7169. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7170. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7171. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7172. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7173. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7174. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7175. Module["canvas"].width = Module["canvas"].height = 1;
  7176. GLFW.windows = null;
  7177. GLFW.active = null;
  7178. }
  7179. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7180. var view;
  7181. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7182. // avoid allocation when uploading few enough uniforms
  7183. view = GL.miniTempBufferViews[4*count-1];
  7184. for (var i = 0; i < 4*count; i += 4) {
  7185. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7186. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7187. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7188. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7189. }
  7190. } else {
  7191. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7192. }
  7193. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7194. }
  7195. function _emscripten_glDeleteShader(id) {
  7196. if (!id) return;
  7197. var shader = GL.shaders[id];
  7198. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7199. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7200. return;
  7201. }
  7202. GLctx.deleteShader(shader);
  7203. GL.shaders[id] = null;
  7204. }
  7205. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7206. try {
  7207. // open
  7208. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7209. var stream = FS.open(pathname, flags, mode);
  7210. return stream.fd;
  7211. } catch (e) {
  7212. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7213. return -e.errno;
  7214. }
  7215. }
  7216. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7217. try {
  7218. // close
  7219. var stream = SYSCALLS.getStreamFromFD();
  7220. FS.close(stream);
  7221. return 0;
  7222. } catch (e) {
  7223. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7224. return -e.errno;
  7225. }
  7226. }
  7227. function _llvm_stacksave() {
  7228. var self = _llvm_stacksave;
  7229. if (!self.LLVM_SAVEDSTACKS) {
  7230. self.LLVM_SAVEDSTACKS = [];
  7231. }
  7232. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7233. return self.LLVM_SAVEDSTACKS.length-1;
  7234. }
  7235. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7236. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7237. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7238. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7239. }
  7240. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7241. var view;
  7242. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7243. // avoid allocation when uploading few enough uniforms
  7244. view = GL.miniTempBufferViews[16*count-1];
  7245. for (var i = 0; i < 16*count; i += 16) {
  7246. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7247. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7248. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7249. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7250. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7251. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7252. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7253. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7254. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7255. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7256. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7257. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7258. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7259. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7260. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7261. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7262. }
  7263. } else {
  7264. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7265. }
  7266. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7267. }
  7268. function _glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7269. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7270. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7271. }
  7272. function _emscripten_glEnableClientState() {
  7273. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7274. }
  7275. function _emscripten_glGetPointerv() {
  7276. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7277. }
  7278. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7279. try {
  7280. // llseek
  7281. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7282. var offset = offset_low;
  7283. assert(offset_high === 0);
  7284. FS.llseek(stream, offset, whence);
  7285. HEAP32[((result)>>2)]=stream.position;
  7286. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7287. return 0;
  7288. } catch (e) {
  7289. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7290. return -e.errno;
  7291. }
  7292. }
  7293. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7294. try {
  7295. // writev
  7296. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7297. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7298. } catch (e) {
  7299. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7300. return -e.errno;
  7301. }
  7302. }
  7303. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7304. try {
  7305. // readv
  7306. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7307. return SYSCALLS.doReadv(stream, iov, iovcnt);
  7308. } catch (e) {
  7309. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7310. return -e.errno;
  7311. }
  7312. }
  7313. function _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7314. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7315. Module["_i64Subtract"] = _i64Subtract;
  7316. Module["_i64Add"] = _i64Add;
  7317. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7318. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7319. return 0;
  7320. }
  7321. function _glUseProgram(program) {
  7322. GLctx.useProgram(program ? GL.programs[program] : null);
  7323. }
  7324. function _emscripten_glDisableVertexAttribArray(index) {
  7325. GLctx.disableVertexAttribArray(index);
  7326. }
  7327. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7328. function _emscripten_glFinish() { GLctx['finish']() }
  7329. function _glDrawArrays(mode, first, count) {
  7330. GLctx.drawArrays(mode, first, count);
  7331. }
  7332. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7333. function _emscripten_get_num_gamepads() {
  7334. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7335. if (!JSEvents.numGamepadsConnected) return 0;
  7336. __emscripten_sample_gamepad_data();
  7337. if (!JSEvents.lastGamepadState) return -1;
  7338. return JSEvents.lastGamepadState.length;
  7339. }
  7340. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  7341. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  7342. if (log === null) log = '(unknown error)';
  7343. if (maxLength > 0 && infoLog) {
  7344. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7345. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7346. } else {
  7347. if (length) HEAP32[((length)>>2)]=0;
  7348. }
  7349. }
  7350. function _emscripten_glUniform4iv(location, count, value) {
  7351. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7352. }
  7353. function _glClear(x0) { GLctx['clear'](x0) }
  7354. 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.'; }
  7355. function _emscripten_glUniform3fv(location, count, value) {
  7356. var view;
  7357. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7358. // avoid allocation when uploading few enough uniforms
  7359. view = GL.miniTempBufferViews[3*count-1];
  7360. for (var i = 0; i < 3*count; i += 3) {
  7361. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7362. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7363. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7364. }
  7365. } else {
  7366. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7367. }
  7368. GLctx.uniform3fv(GL.uniforms[location], view);
  7369. }
  7370. function _emscripten_glIsTexture(texture) {
  7371. var texture = GL.textures[texture];
  7372. if (!texture) return 0;
  7373. return GLctx.isTexture(texture);
  7374. }
  7375. function _glEnableVertexAttribArray(index) {
  7376. GLctx.enableVertexAttribArray(index);
  7377. }
  7378. function _emscripten_glAttachShader(program, shader) {
  7379. GLctx.attachShader(GL.programs[program],
  7380. GL.shaders[shader]);
  7381. }
  7382. function _glUniform4f(location, v0, v1, v2, v3) {
  7383. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7384. }
  7385. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7386. if (!target) target = '#canvas';
  7387. target = JSEvents.findEventTarget(target);
  7388. if (!target) return -4;
  7389. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7390. return -1;
  7391. }
  7392. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7393. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7394. if (!canPerformRequests) {
  7395. if (deferUntilInEventHandler) {
  7396. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7397. return 1;
  7398. } else {
  7399. return -2;
  7400. }
  7401. }
  7402. return JSEvents.requestPointerLock(target);
  7403. }
  7404. 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);
  7405. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  7406. Module["___udivmoddi4"] = ___udivmoddi4;
  7407. Module["___udivdi3"] = ___udivdi3;
  7408. function _glfwCreateWindow(width, height, title, monitor, share) {
  7409. return GLFW.createWindow(width, height, title, monitor, share);
  7410. }
  7411. function _glfwDefaultWindowHints() {
  7412. GLFW.hints = GLFW.defaultHints;
  7413. }
  7414. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7415. function _emscripten_glDetachShader(program, shader) {
  7416. GLctx.detachShader(GL.programs[program],
  7417. GL.shaders[shader]);
  7418. }
  7419. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7420. for (var i = 0; i < n; i++) {
  7421. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7422. GLctx['deleteVertexArray'](GL.vaos[id]);
  7423. GL.vaos[id] = null;
  7424. }
  7425. }
  7426. function _glfwInit() {
  7427. if (GLFW.windows) return 1; // GL_TRUE
  7428. GLFW.initialTime = GLFW.getTime();
  7429. GLFW.hints = GLFW.defaultHints;
  7430. GLFW.windows = new Array()
  7431. GLFW.active = null;
  7432. window.addEventListener("keydown", GLFW.onKeydown, true);
  7433. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7434. window.addEventListener("keyup", GLFW.onKeyup, true);
  7435. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7436. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7437. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7438. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7439. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7440. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7441. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7442. Browser.resizeListeners.push(function(width, height) {
  7443. GLFW.onCanvasResize(width, height);
  7444. });
  7445. return 1; // GL_TRUE
  7446. }
  7447. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7448. if (!params) {
  7449. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7450. // if p == null, issue a GL error to notify user about it.
  7451. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7452. return;
  7453. }
  7454. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7455. }
  7456. function _glfwSwapBuffers(winid) {
  7457. GLFW.swapBuffers(winid);
  7458. }
  7459. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7460. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7461. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7462. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7463. }
  7464. function _glDisableVertexAttribArray(index) {
  7465. GLctx.disableVertexAttribArray(index);
  7466. }
  7467. function _emscripten_glUseProgram(program) {
  7468. GLctx.useProgram(program ? GL.programs[program] : null);
  7469. }
  7470. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7471. function _emscripten_glUniform2fv(location, count, value) {
  7472. var view;
  7473. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7474. // avoid allocation when uploading few enough uniforms
  7475. view = GL.miniTempBufferViews[2*count-1];
  7476. for (var i = 0; i < 2*count; i += 2) {
  7477. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7478. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7479. }
  7480. } else {
  7481. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7482. }
  7483. GLctx.uniform2fv(GL.uniforms[location], view);
  7484. }
  7485. function _glfwSwapInterval(interval) {
  7486. 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.
  7487. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7488. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7489. }
  7490. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7491. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7492. if (log === null) log = '(unknown error)';
  7493. if (maxLength > 0 && infoLog) {
  7494. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7495. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7496. } else {
  7497. if (length) HEAP32[((length)>>2)]=0;
  7498. }
  7499. }
  7500. 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.'; }
  7501. function _abort() {
  7502. Module['abort']();
  7503. }
  7504. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7505. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7506. GL.renderbuffers[renderbuffer]);
  7507. }
  7508. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7509. for (var i = 0; i < n; ++i) {
  7510. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7511. var framebuffer = GL.framebuffers[id];
  7512. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7513. GLctx.deleteFramebuffer(framebuffer);
  7514. framebuffer.name = 0;
  7515. GL.framebuffers[id] = null;
  7516. }
  7517. }
  7518. function _emscripten_glIsBuffer(buffer) {
  7519. var b = GL.buffers[buffer];
  7520. if (!b) return 0;
  7521. return GLctx.isBuffer(b);
  7522. }
  7523. function _emscripten_glUniform2iv(location, count, value) {
  7524. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7525. }
  7526. function _emscripten_glVertexAttrib1fv(index, v) {
  7527. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7528. }
  7529. function _glEnable(x0) { GLctx['enable'](x0) }
  7530. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7531. function roundedToNextMultipleOf(x, y) {
  7532. return Math.floor((x + y - 1) / y) * y
  7533. }
  7534. var plainRowSize = width * sizePerPixel;
  7535. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7536. return (height <= 0) ? 0 :
  7537. ((height - 1) * alignedRowSize + plainRowSize);
  7538. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7539. var sizePerPixel;
  7540. var numChannels;
  7541. switch(format) {
  7542. case 0x1906 /* GL_ALPHA */:
  7543. case 0x1909 /* GL_LUMINANCE */:
  7544. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7545. numChannels = 1;
  7546. break;
  7547. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7548. numChannels = 2;
  7549. break;
  7550. case 0x1907 /* GL_RGB */:
  7551. case 0x8C40 /* GL_SRGB_EXT */:
  7552. numChannels = 3;
  7553. break;
  7554. case 0x1908 /* GL_RGBA */:
  7555. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7556. numChannels = 4;
  7557. break;
  7558. default:
  7559. GL.recordError(0x0500); // GL_INVALID_ENUM
  7560. return null;
  7561. }
  7562. switch (type) {
  7563. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7564. sizePerPixel = numChannels*1;
  7565. break;
  7566. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7567. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7568. sizePerPixel = numChannels*2;
  7569. break;
  7570. case 0x1405 /* GL_UNSIGNED_INT */:
  7571. case 0x1406 /* GL_FLOAT */:
  7572. sizePerPixel = numChannels*4;
  7573. break;
  7574. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7575. sizePerPixel = 4;
  7576. break;
  7577. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7578. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7579. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7580. sizePerPixel = 2;
  7581. break;
  7582. default:
  7583. GL.recordError(0x0500); // GL_INVALID_ENUM
  7584. return null;
  7585. }
  7586. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7587. switch(type) {
  7588. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7589. return HEAPU8.subarray((pixels),(pixels+bytes));
  7590. case 0x1406 /* GL_FLOAT */:
  7591. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7592. case 0x1405 /* GL_UNSIGNED_INT */:
  7593. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7594. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7595. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7596. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7597. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7598. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7599. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7600. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7601. default:
  7602. GL.recordError(0x0500); // GL_INVALID_ENUM
  7603. return null;
  7604. }
  7605. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7606. var pixelData = null;
  7607. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7608. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7609. }
  7610. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7611. var _emscripten_asm_const_int=true;
  7612. function _emscripten_glUniform2f(location, v0, v1) {
  7613. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7614. }
  7615. function _glGetAttribLocation(program, name) {
  7616. program = GL.programs[program];
  7617. name = Pointer_stringify(name);
  7618. return GLctx.getAttribLocation(program, name);
  7619. }
  7620. function _glfwWindowHint(target, hint) {
  7621. GLFW.hints[target] = hint;
  7622. }
  7623. function _emscripten_glUniform2i(location, v0, v1) {
  7624. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7625. }
  7626. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7627. function _glCreateProgram() {
  7628. var id = GL.getNewId(GL.programs);
  7629. var program = GLctx.createProgram();
  7630. program.name = id;
  7631. GL.programs[id] = program;
  7632. return id;
  7633. }
  7634. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7635. for (var i = 0; i < n; i++) {
  7636. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7637. var renderbuffer = GL.renderbuffers[id];
  7638. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7639. GLctx.deleteRenderbuffer(renderbuffer);
  7640. renderbuffer.name = 0;
  7641. GL.renderbuffers[id] = null;
  7642. }
  7643. }
  7644. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7645. if (!data) {
  7646. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7647. // if data == null, issue a GL error to notify user about it.
  7648. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7649. return;
  7650. }
  7651. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7652. }
  7653. function emscriptenWebGLGetUniform(program, location, params, type) {
  7654. if (!params) {
  7655. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7656. // if params == null, issue a GL error to notify user about it.
  7657. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7658. return;
  7659. }
  7660. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7661. if (typeof data == 'number' || typeof data == 'boolean') {
  7662. switch (type) {
  7663. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7664. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7665. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7666. }
  7667. } else {
  7668. for (var i = 0; i < data.length; i++) {
  7669. switch (type) {
  7670. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7671. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7672. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7673. }
  7674. }
  7675. }
  7676. }function _emscripten_glGetUniformiv(program, location, params) {
  7677. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7678. }
  7679. function _emscripten_glDepthMask(flag) {
  7680. GLctx.depthMask(!!flag);
  7681. }
  7682. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  7683. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7684. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7685. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7686. if (!target) target = document;
  7687. else {
  7688. target = JSEvents.findEventTarget(target);
  7689. if (!target) return -4;
  7690. }
  7691. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7692. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7693. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7694. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7695. return 0;
  7696. }
  7697. Module["___muldsi3"] = ___muldsi3;
  7698. Module["___muldi3"] = ___muldi3;
  7699. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7700. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7701. HEAP32[((range)>>2)]=result.rangeMin;
  7702. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7703. HEAP32[((precision)>>2)]=result.precision;
  7704. }
  7705. function _emscripten_glUniform1fv(location, count, value) {
  7706. var view;
  7707. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7708. // avoid allocation when uploading few enough uniforms
  7709. view = GL.miniTempBufferViews[count-1];
  7710. for (var i = 0; i < count; ++i) {
  7711. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7712. }
  7713. } else {
  7714. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7715. }
  7716. GLctx.uniform1fv(GL.uniforms[location], view);
  7717. }
  7718. function _glDeleteBuffers(n, buffers) {
  7719. for (var i = 0; i < n; i++) {
  7720. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7721. var buffer = GL.buffers[id];
  7722. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7723. // correspond to existing buffer objects."
  7724. if (!buffer) continue;
  7725. GLctx.deleteBuffer(buffer);
  7726. buffer.name = 0;
  7727. GL.buffers[id] = null;
  7728. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7729. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7730. }
  7731. }
  7732. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7733. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7734. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7735. return 0;
  7736. }
  7737. function _emscripten_glBindProgramARB() {
  7738. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7739. }
  7740. function _emscripten_glBindTexture(target, texture) {
  7741. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7742. }
  7743. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7744. function _emscripten_glDeleteProgram(id) {
  7745. if (!id) return;
  7746. var program = GL.programs[id];
  7747. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7748. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7749. return;
  7750. }
  7751. GLctx.deleteProgram(program);
  7752. program.name = 0;
  7753. GL.programs[id] = null;
  7754. GL.programInfos[id] = null;
  7755. }
  7756. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7757. function _emscripten_glVertexAttrib3fv(index, v) {
  7758. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7759. }
  7760. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7761. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7762. program = GL.programs[program];
  7763. var info = GLctx.getActiveAttrib(program, index);
  7764. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7765. if (bufSize > 0 && name) {
  7766. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7767. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7768. } else {
  7769. if (length) HEAP32[((length)>>2)]=0;
  7770. }
  7771. if (size) HEAP32[((size)>>2)]=info.size;
  7772. if (type) HEAP32[((type)>>2)]=info.type;
  7773. }
  7774. function _emscripten_glIsFramebuffer(framebuffer) {
  7775. var fb = GL.framebuffers[framebuffer];
  7776. if (!fb) return 0;
  7777. return GLctx.isFramebuffer(fb);
  7778. }
  7779. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7780. function _glfwGetCursorPos(winid, x, y) {
  7781. GLFW.getCursorPos(winid, x, y);
  7782. }
  7783. function _emscripten_glGetString(name_) {
  7784. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7785. var ret;
  7786. switch(name_) {
  7787. case 0x1F00 /* GL_VENDOR */:
  7788. case 0x1F01 /* GL_RENDERER */:
  7789. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7790. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7791. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7792. break;
  7793. case 0x1F02 /* GL_VERSION */:
  7794. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7795. // return GLES version string corresponding to the version of the WebGL context
  7796. {
  7797. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7798. }
  7799. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7800. break;
  7801. case 0x1F03 /* GL_EXTENSIONS */:
  7802. var exts = GLctx.getSupportedExtensions();
  7803. var gl_exts = [];
  7804. for (var i = 0; i < exts.length; ++i) {
  7805. gl_exts.push(exts[i]);
  7806. gl_exts.push("GL_" + exts[i]);
  7807. }
  7808. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7809. break;
  7810. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7811. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7812. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7813. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7814. var ver_num = glslVersion.match(ver_re);
  7815. if (ver_num !== null) {
  7816. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7817. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7818. }
  7819. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7820. break;
  7821. default:
  7822. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7823. return 0;
  7824. }
  7825. GL.stringCache[name_] = ret;
  7826. return ret;
  7827. }
  7828. function _emscripten_glGetAttribLocation(program, name) {
  7829. program = GL.programs[program];
  7830. name = Pointer_stringify(name);
  7831. return GLctx.getAttribLocation(program, name);
  7832. }
  7833. function _emscripten_glRotatef() {
  7834. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7835. }
  7836. function emscriptenWebGLGet(name_, p, type) {
  7837. // Guard against user passing a null pointer.
  7838. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7839. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7840. // better to report an error instead of doing anything random.
  7841. if (!p) {
  7842. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7843. return;
  7844. }
  7845. var ret = undefined;
  7846. switch(name_) { // Handle a few trivial GLES values
  7847. case 0x8DFA: // GL_SHADER_COMPILER
  7848. ret = 1;
  7849. break;
  7850. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7851. if (type !== 'Integer' && type !== 'Integer64') {
  7852. GL.recordError(0x0500); // GL_INVALID_ENUM
  7853. }
  7854. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7855. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7856. ret = 0;
  7857. break;
  7858. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7859. // 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),
  7860. // so implement it ourselves to allow C++ GLES2 code get the length.
  7861. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7862. ret = formats.length;
  7863. break;
  7864. }
  7865. if (ret === undefined) {
  7866. var result = GLctx.getParameter(name_);
  7867. switch (typeof(result)) {
  7868. case "number":
  7869. ret = result;
  7870. break;
  7871. case "boolean":
  7872. ret = result ? 1 : 0;
  7873. break;
  7874. case "string":
  7875. GL.recordError(0x0500); // GL_INVALID_ENUM
  7876. return;
  7877. case "object":
  7878. if (result === null) {
  7879. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7880. // can mean an invalid name_, which we need to report as an error
  7881. switch(name_) {
  7882. case 0x8894: // ARRAY_BUFFER_BINDING
  7883. case 0x8B8D: // CURRENT_PROGRAM
  7884. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7885. case 0x8CA6: // FRAMEBUFFER_BINDING
  7886. case 0x8CA7: // RENDERBUFFER_BINDING
  7887. case 0x8069: // TEXTURE_BINDING_2D
  7888. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7889. ret = 0;
  7890. break;
  7891. }
  7892. default: {
  7893. GL.recordError(0x0500); // GL_INVALID_ENUM
  7894. return;
  7895. }
  7896. }
  7897. } else if (result instanceof Float32Array ||
  7898. result instanceof Uint32Array ||
  7899. result instanceof Int32Array ||
  7900. result instanceof Array) {
  7901. for (var i = 0; i < result.length; ++i) {
  7902. switch (type) {
  7903. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7904. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7905. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7906. default: throw 'internal glGet error, bad type: ' + type;
  7907. }
  7908. }
  7909. return;
  7910. } else if (result instanceof WebGLBuffer ||
  7911. result instanceof WebGLProgram ||
  7912. result instanceof WebGLFramebuffer ||
  7913. result instanceof WebGLRenderbuffer ||
  7914. result instanceof WebGLTexture) {
  7915. ret = result.name | 0;
  7916. } else {
  7917. GL.recordError(0x0500); // GL_INVALID_ENUM
  7918. return;
  7919. }
  7920. break;
  7921. default:
  7922. GL.recordError(0x0500); // GL_INVALID_ENUM
  7923. return;
  7924. }
  7925. }
  7926. switch (type) {
  7927. 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;
  7928. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7929. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7930. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7931. default: throw 'internal glGet error, bad type: ' + type;
  7932. }
  7933. }function _emscripten_glGetIntegerv(name_, p) {
  7934. emscriptenWebGLGet(name_, p, 'Integer');
  7935. }
  7936. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7937. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7938. HEAP32[((params)>>2)]=result;
  7939. }
  7940. function _llvm_stackrestore(p) {
  7941. var self = _llvm_stacksave;
  7942. var ret = self.LLVM_SAVEDSTACKS[p];
  7943. self.LLVM_SAVEDSTACKS.splice(p, 1);
  7944. Runtime.stackRestore(ret);
  7945. }
  7946. function _glfwSetWindowShouldClose(winid, value) {
  7947. var win = GLFW.WindowFromId(winid);
  7948. if (!win) return;
  7949. win.shouldClose = value;
  7950. }
  7951. function _emscripten_glClientActiveTexture() {
  7952. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  7953. }
  7954. function _glGenBuffers(n, buffers) {
  7955. for (var i = 0; i < n; i++) {
  7956. var buffer = GLctx.createBuffer();
  7957. if (!buffer) {
  7958. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7959. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  7960. return;
  7961. }
  7962. var id = GL.getNewId(GL.buffers);
  7963. buffer.name = id;
  7964. GL.buffers[id] = buffer;
  7965. HEAP32[(((buffers)+(i*4))>>2)]=id;
  7966. }
  7967. }
  7968. function _emscripten_memcpy_big(dest, src, num) {
  7969. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  7970. return dest;
  7971. }
  7972. Module["_memcpy"] = _memcpy;
  7973. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7974. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7975. if (log === null) log = '(unknown error)';
  7976. if (maxLength > 0 && infoLog) {
  7977. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7978. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7979. } else {
  7980. if (length) HEAP32[((length)>>2)]=0;
  7981. }
  7982. }
  7983. function _glfwGetTime() {
  7984. return GLFW.getTime() - GLFW.initialTime;
  7985. }
  7986. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  7987. if (!params) {
  7988. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7989. // if params == null, issue a GL error to notify user about it.
  7990. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7991. return;
  7992. }
  7993. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  7994. }
  7995. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  7996. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  7997. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  7998. if (!pixelData) {
  7999. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8000. return;
  8001. }
  8002. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  8003. }
  8004. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8005. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8006. }
  8007. function _emscripten_glGetError() {
  8008. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8009. if (GL.lastError) {
  8010. var error = GL.lastError;
  8011. GL.lastError = 0/*GL_NO_ERROR*/;
  8012. return error;
  8013. } else { // If there were none, return the GL error from the browser GL context.
  8014. return GLctx.getError();
  8015. }
  8016. }
  8017. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8018. GLctx.framebufferTexture2D(target, attachment, textarget,
  8019. GL.textures[texture], level);
  8020. }
  8021. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8022. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8023. Module["_memmove"] = _memmove;
  8024. function _glGenTextures(n, textures) {
  8025. for (var i = 0; i < n; i++) {
  8026. var texture = GLctx.createTexture();
  8027. if (!texture) {
  8028. 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.
  8029. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8030. return;
  8031. }
  8032. var id = GL.getNewId(GL.textures);
  8033. texture.name = id;
  8034. GL.textures[id] = texture;
  8035. HEAP32[(((textures)+(i*4))>>2)]=id;
  8036. }
  8037. }
  8038. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8039. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8040. Module["___uremdi3"] = ___uremdi3;
  8041. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8042. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8043. function _emscripten_glBindBuffer(target, buffer) {
  8044. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8045. GLctx.bindBuffer(target, bufferObj);
  8046. }
  8047. function _emscripten_glGetUniformfv(program, location, params) {
  8048. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8049. }
  8050. function _glGetProgramiv(program, pname, p) {
  8051. if (!p) {
  8052. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8053. // if p == null, issue a GL error to notify user about it.
  8054. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8055. return;
  8056. }
  8057. if (program >= GL.counter) {
  8058. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8059. return;
  8060. }
  8061. var ptable = GL.programInfos[program];
  8062. if (!ptable) {
  8063. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8064. return;
  8065. }
  8066. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8067. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8068. if (log === null) log = '(unknown error)';
  8069. HEAP32[((p)>>2)]=log.length + 1;
  8070. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8071. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8072. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8073. if (ptable.maxAttributeLength == -1) {
  8074. var program = GL.programs[program];
  8075. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8076. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8077. for (var i = 0; i < numAttribs; ++i) {
  8078. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8079. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8080. }
  8081. }
  8082. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8083. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8084. if (ptable.maxUniformBlockNameLength == -1) {
  8085. var program = GL.programs[program];
  8086. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8087. ptable.maxUniformBlockNameLength = 0;
  8088. for (var i = 0; i < numBlocks; ++i) {
  8089. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8090. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8091. }
  8092. }
  8093. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8094. } else {
  8095. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8096. }
  8097. }
  8098. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8099. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8100. }
  8101. function _emscripten_exit_pointerlock() {
  8102. // Make sure no queued up calls will fire after this.
  8103. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8104. if (document.exitPointerLock) {
  8105. document.exitPointerLock();
  8106. } else if (document.msExitPointerLock) {
  8107. document.msExitPointerLock();
  8108. } else if (document.mozExitPointerLock) {
  8109. document.mozExitPointerLock();
  8110. } else if (document.webkitExitPointerLock) {
  8111. document.webkitExitPointerLock();
  8112. } else {
  8113. return -1;
  8114. }
  8115. return 0;
  8116. }
  8117. function _emscripten_glDrawRangeElements() {
  8118. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8119. }
  8120. function _glGetUniformLocation(program, name) {
  8121. name = Pointer_stringify(name);
  8122. var arrayOffset = 0;
  8123. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8124. if (name.indexOf(']', name.length-1) !== -1) {
  8125. var ls = name.lastIndexOf('[');
  8126. var arrayIndex = name.slice(ls+1, -1);
  8127. if (arrayIndex.length > 0) {
  8128. arrayOffset = parseInt(arrayIndex);
  8129. if (arrayOffset < 0) {
  8130. return -1;
  8131. }
  8132. }
  8133. name = name.slice(0, ls);
  8134. }
  8135. var ptable = GL.programInfos[program];
  8136. if (!ptable) {
  8137. return -1;
  8138. }
  8139. var utable = ptable.uniforms;
  8140. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8141. 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.
  8142. return uniformInfo[1]+arrayOffset;
  8143. } else {
  8144. return -1;
  8145. }
  8146. }
  8147. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8148. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8149. var len = result.length;
  8150. if (len > maxCount) {
  8151. len = maxCount;
  8152. }
  8153. HEAP32[((count)>>2)]=len;
  8154. for (var i = 0; i < len; ++i) {
  8155. var id = GL.shaders.indexOf(result[i]);
  8156. assert(id !== -1, 'shader not bound to local id');
  8157. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8158. }
  8159. }
  8160. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8161. for (var i = 0; i < n; i++) {
  8162. var renderbuffer = GLctx.createRenderbuffer();
  8163. if (!renderbuffer) {
  8164. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8165. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8166. return;
  8167. }
  8168. var id = GL.getNewId(GL.renderbuffers);
  8169. renderbuffer.name = id;
  8170. GL.renderbuffers[id] = renderbuffer;
  8171. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8172. }
  8173. }
  8174. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8175. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8176. function _emscripten_glUniform1iv(location, count, value) {
  8177. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8178. }
  8179. function _emscripten_glTexCoordPointer() {
  8180. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8181. }
  8182. function _emscripten_glGetInfoLogARB() {
  8183. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8184. }
  8185. function __exit(status) {
  8186. // void _exit(int status);
  8187. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8188. Module['exit'](status);
  8189. }function _exit(status) {
  8190. __exit(status);
  8191. }
  8192. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8193. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8194. function _glfwSetCursorPosCallback(winid, cbfun) {
  8195. GLFW.setCursorPosCallback(winid, cbfun);
  8196. }
  8197. function _glBindAttribLocation(program, index, name) {
  8198. name = Pointer_stringify(name);
  8199. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8200. }
  8201. function _emscripten_glShaderBinary() {
  8202. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8203. }
  8204. function _emscripten_glIsProgram(program) {
  8205. var program = GL.programs[program];
  8206. if (!program) return 0;
  8207. return GLctx.isProgram(program);
  8208. }
  8209. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8210. function _emscripten_glGetShaderiv(shader, pname, p) {
  8211. if (!p) {
  8212. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8213. // if p == null, issue a GL error to notify user about it.
  8214. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8215. return;
  8216. }
  8217. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8218. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8219. if (log === null) log = '(unknown error)';
  8220. HEAP32[((p)>>2)]=log.length + 1;
  8221. } else {
  8222. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8223. }
  8224. }
  8225. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8226. var view;
  8227. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8228. // avoid allocation when uploading few enough uniforms
  8229. view = GL.miniTempBufferViews[9*count-1];
  8230. for (var i = 0; i < 9*count; i += 9) {
  8231. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8232. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8233. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8234. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8235. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8236. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8237. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8238. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8239. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8240. }
  8241. } else {
  8242. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8243. }
  8244. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8245. }
  8246. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8247. function _emscripten_glUniform4fv(location, count, value) {
  8248. var view;
  8249. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8250. // avoid allocation when uploading few enough uniforms
  8251. view = GL.miniTempBufferViews[4*count-1];
  8252. for (var i = 0; i < 4*count; i += 4) {
  8253. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8254. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8255. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8256. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8257. }
  8258. } else {
  8259. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8260. }
  8261. GLctx.uniform4fv(GL.uniforms[location], view);
  8262. }
  8263. function _glBufferSubData(target, offset, size, data) {
  8264. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8265. }
  8266. function _emscripten_glGenFramebuffers(n, ids) {
  8267. for (var i = 0; i < n; ++i) {
  8268. var framebuffer = GLctx.createFramebuffer();
  8269. if (!framebuffer) {
  8270. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8271. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  8272. return;
  8273. }
  8274. var id = GL.getNewId(GL.framebuffers);
  8275. framebuffer.name = id;
  8276. GL.framebuffers[id] = framebuffer;
  8277. HEAP32[(((ids)+(i*4))>>2)]=id;
  8278. }
  8279. }
  8280. function _glGetShaderiv(shader, pname, p) {
  8281. if (!p) {
  8282. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8283. // if p == null, issue a GL error to notify user about it.
  8284. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8285. return;
  8286. }
  8287. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8288. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8289. if (log === null) log = '(unknown error)';
  8290. HEAP32[((p)>>2)]=log.length + 1;
  8291. } else {
  8292. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8293. }
  8294. }
  8295. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8296. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8297. var win = GLFW.WindowFromId(winid);
  8298. if (!win) return;
  8299. win.windowIconifyFunc = cbfun;
  8300. }
  8301. function _emscripten_glUniform1i(location, v0) {
  8302. GLctx.uniform1i(GL.uniforms[location], v0);
  8303. }
  8304. function _emscripten_glGenTextures(n, textures) {
  8305. for (var i = 0; i < n; i++) {
  8306. var texture = GLctx.createTexture();
  8307. if (!texture) {
  8308. 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.
  8309. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8310. return;
  8311. }
  8312. var id = GL.getNewId(GL.textures);
  8313. texture.name = id;
  8314. GL.textures[id] = texture;
  8315. HEAP32[(((textures)+(i*4))>>2)]=id;
  8316. }
  8317. }
  8318. function _emscripten_glVertexAttrib2fv(index, v) {
  8319. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8320. }
  8321. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8322. program = GL.programs[program];
  8323. var info = GLctx.getActiveUniform(program, index);
  8324. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8325. if (bufSize > 0 && name) {
  8326. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8327. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8328. } else {
  8329. if (length) HEAP32[((length)>>2)]=0;
  8330. }
  8331. if (size) HEAP32[((size)>>2)]=info.size;
  8332. if (type) HEAP32[((type)>>2)]=info.type;
  8333. }
  8334. Module["_roundf"] = _roundf;
  8335. function _emscripten_glDeleteObjectARB() {
  8336. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8337. }
  8338. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8339. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8340. return 0;
  8341. }
  8342. function _emscripten_glUniform1f(location, v0) {
  8343. GLctx.uniform1f(GL.uniforms[location], v0);
  8344. }
  8345. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8346. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8347. }
  8348. function _glShaderSource(shader, count, string, length) {
  8349. var source = GL.getSource(shader, count, string, length);
  8350. GLctx.shaderSource(GL.shaders[shader], source);
  8351. }
  8352. function _emscripten_glDrawArrays(mode, first, count) {
  8353. GLctx.drawArrays(mode, first, count);
  8354. }
  8355. function _emscripten_glGenBuffers(n, buffers) {
  8356. for (var i = 0; i < n; i++) {
  8357. var buffer = GLctx.createBuffer();
  8358. if (!buffer) {
  8359. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8360. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8361. return;
  8362. }
  8363. var id = GL.getNewId(GL.buffers);
  8364. buffer.name = id;
  8365. GL.buffers[id] = buffer;
  8366. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8367. }
  8368. }
  8369. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8370. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8371. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8372. return 0;
  8373. }
  8374. function _glfwSetCharCallback(winid, cbfun) {
  8375. GLFW.setCharCallback(winid, cbfun);
  8376. }
  8377. function _emscripten_glGetUniformLocation(program, name) {
  8378. name = Pointer_stringify(name);
  8379. var arrayOffset = 0;
  8380. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8381. if (name.indexOf(']', name.length-1) !== -1) {
  8382. var ls = name.lastIndexOf('[');
  8383. var arrayIndex = name.slice(ls+1, -1);
  8384. if (arrayIndex.length > 0) {
  8385. arrayOffset = parseInt(arrayIndex);
  8386. if (arrayOffset < 0) {
  8387. return -1;
  8388. }
  8389. }
  8390. name = name.slice(0, ls);
  8391. }
  8392. var ptable = GL.programInfos[program];
  8393. if (!ptable) {
  8394. return -1;
  8395. }
  8396. var utable = ptable.uniforms;
  8397. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8398. 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.
  8399. return uniformInfo[1]+arrayOffset;
  8400. } else {
  8401. return -1;
  8402. }
  8403. }
  8404. function _glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8405. function _glBindBuffer(target, buffer) {
  8406. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8407. GLctx.bindBuffer(target, bufferObj);
  8408. }
  8409. function _emscripten_glVertexAttrib4fv(index, v) {
  8410. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8411. }
  8412. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8413. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8414. var win = GLFW.WindowFromId(winid);
  8415. if (!win) return;
  8416. win.cursorEnterFunc = cbfun;
  8417. }
  8418. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8419. function _glBufferData(target, size, data, usage) {
  8420. if (!data) {
  8421. GLctx.bufferData(target, size, usage);
  8422. } else {
  8423. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8424. }
  8425. }
  8426. function _emscripten_glIsShader(shader) {
  8427. var s = GL.shaders[shader];
  8428. if (!s) return 0;
  8429. return GLctx.isShader(s);
  8430. }
  8431. function _emscripten_glDrawBuffers(n, bufs) {
  8432. var bufArray = GL.tempFixedLengthArray[n];
  8433. for (var i = 0; i < n; i++) {
  8434. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8435. }
  8436. GLctx['drawBuffers'](bufArray);
  8437. }
  8438. function _glGetFloatv(name_, p) {
  8439. emscriptenWebGLGet(name_, p, 'Float');
  8440. }
  8441. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8442. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8443. }
  8444. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8445. function _emscripten_glBufferSubData(target, offset, size, data) {
  8446. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8447. }
  8448. function _emscripten_glBufferData(target, size, data, usage) {
  8449. if (!data) {
  8450. GLctx.bufferData(target, size, usage);
  8451. } else {
  8452. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8453. }
  8454. }
  8455. Module["_sbrk"] = _sbrk;
  8456. Module["_bitshift64Shl"] = _bitshift64Shl;
  8457. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8458. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8459. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8460. if (bufSize > 0 && source) {
  8461. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8462. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8463. } else {
  8464. if (length) HEAP32[((length)>>2)]=0;
  8465. }
  8466. }
  8467. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8468. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8469. function _glfwSetKeyCallback(winid, cbfun) {
  8470. GLFW.setKeyCallback(winid, cbfun);
  8471. }
  8472. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8473. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8474. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8475. return 0;
  8476. }
  8477. function _emscripten_glGetFloatv(name_, p) {
  8478. emscriptenWebGLGet(name_, p, 'Float');
  8479. }
  8480. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8481. var pixelData = null;
  8482. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8483. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8484. }
  8485. function ___assert_fail(condition, filename, line, func) {
  8486. ABORT = true;
  8487. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  8488. }
  8489. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8490. GLctx['vertexAttribDivisor'](index, divisor);
  8491. }
  8492. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8493. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8494. }
  8495. function _emscripten_glDrawElements(mode, count, type, indices) {
  8496. GLctx.drawElements(mode, count, type, indices);
  8497. }
  8498. function _glfwSetMouseButtonCallback(winid, cbfun) {
  8499. GLFW.setMouseButtonCallback(winid, cbfun);
  8500. }
  8501. function _emscripten_glCreateProgram() {
  8502. var id = GL.getNewId(GL.programs);
  8503. var program = GLctx.createProgram();
  8504. program.name = id;
  8505. GL.programs[id] = program;
  8506. return id;
  8507. }
  8508. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8509. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8510. }
  8511. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8512. function _emscripten_glBindVertexArray(vao) {
  8513. GLctx['bindVertexArray'](GL.vaos[vao]);
  8514. }
  8515. function _emscripten_glLoadMatrixf() {
  8516. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8517. }
  8518. function _glDeleteShader(id) {
  8519. if (!id) return;
  8520. var shader = GL.shaders[id];
  8521. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8522. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8523. return;
  8524. }
  8525. GLctx.deleteShader(shader);
  8526. GL.shaders[id] = null;
  8527. }
  8528. function _emscripten_glGetProgramiv(program, pname, p) {
  8529. if (!p) {
  8530. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8531. // if p == null, issue a GL error to notify user about it.
  8532. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8533. return;
  8534. }
  8535. if (program >= GL.counter) {
  8536. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8537. return;
  8538. }
  8539. var ptable = GL.programInfos[program];
  8540. if (!ptable) {
  8541. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8542. return;
  8543. }
  8544. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8545. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8546. if (log === null) log = '(unknown error)';
  8547. HEAP32[((p)>>2)]=log.length + 1;
  8548. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8549. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8550. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8551. if (ptable.maxAttributeLength == -1) {
  8552. var program = GL.programs[program];
  8553. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8554. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8555. for (var i = 0; i < numAttribs; ++i) {
  8556. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8557. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8558. }
  8559. }
  8560. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8561. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8562. if (ptable.maxUniformBlockNameLength == -1) {
  8563. var program = GL.programs[program];
  8564. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8565. ptable.maxUniformBlockNameLength = 0;
  8566. for (var i = 0; i < numBlocks; ++i) {
  8567. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8568. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8569. }
  8570. }
  8571. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8572. } else {
  8573. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8574. }
  8575. }
  8576. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8577. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8578. if (log === null) log = '(unknown error)';
  8579. if (maxLength > 0 && infoLog) {
  8580. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8581. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8582. } else {
  8583. if (length) HEAP32[((length)>>2)]=0;
  8584. }
  8585. }
  8586. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8587. var pixelData = null;
  8588. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8589. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8590. }
  8591. function _glPixelStorei(pname, param) {
  8592. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8593. GL.packAlignment = param;
  8594. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8595. GL.unpackAlignment = param;
  8596. }
  8597. GLctx.pixelStorei(pname, param);
  8598. }
  8599. function ___unlock() {}
  8600. function _emscripten_glColorPointer() {
  8601. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  8602. }
  8603. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8604. function _glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8605. function _glfwDestroyWindow(winid) {
  8606. return GLFW.destroyWindow(winid);
  8607. }
  8608. function _emscripten_glFlush() { GLctx['flush']() }
  8609. function _glfwSetErrorCallback(cbfun) {
  8610. GLFW.errorFunc = cbfun;
  8611. }
  8612. function _glfwSetCursorPos(winid, x, y) {
  8613. GLFW.setCursorPos(winid, x, y);
  8614. }
  8615. function _emscripten_glCreateShader(shaderType) {
  8616. var id = GL.getNewId(GL.shaders);
  8617. GL.shaders[id] = GLctx.createShader(shaderType);
  8618. return id;
  8619. }
  8620. function _glUniformMatrix4fv(location, count, transpose, value) {
  8621. var view;
  8622. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8623. // avoid allocation when uploading few enough uniforms
  8624. view = GL.miniTempBufferViews[16*count-1];
  8625. for (var i = 0; i < 16*count; i += 16) {
  8626. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8627. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8628. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8629. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8630. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8631. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8632. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8633. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8634. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8635. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8636. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8637. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8638. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8639. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8640. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8641. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8642. }
  8643. } else {
  8644. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8645. }
  8646. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8647. }
  8648. function _emscripten_glValidateProgram(program) {
  8649. GLctx.validateProgram(GL.programs[program]);
  8650. }
  8651. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8652. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8653. return 0;
  8654. }
  8655. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8656. function _emscripten_glColorMask(red, green, blue, alpha) {
  8657. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8658. }
  8659. function _emscripten_glPixelStorei(pname, param) {
  8660. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8661. GL.packAlignment = param;
  8662. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8663. GL.unpackAlignment = param;
  8664. }
  8665. GLctx.pixelStorei(pname, param);
  8666. }
  8667. function _emscripten_glDeleteTextures(n, textures) {
  8668. for (var i = 0; i < n; i++) {
  8669. var id = HEAP32[(((textures)+(i*4))>>2)];
  8670. var texture = GL.textures[id];
  8671. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8672. GLctx.deleteTexture(texture);
  8673. texture.name = 0;
  8674. GL.textures[id] = null;
  8675. }
  8676. }
  8677. function _glfwGetKey(winid, key) {
  8678. return GLFW.getKey(winid, key);
  8679. }
  8680. function _emscripten_glCompileShader(shader) {
  8681. GLctx.compileShader(GL.shaders[shader]);
  8682. }
  8683. function _emscripten_glGenVertexArrays(n, arrays) {
  8684. for (var i = 0; i < n; i++) {
  8685. var vao = GLctx['createVertexArray']();
  8686. if (!vao) {
  8687. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8688. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8689. return;
  8690. }
  8691. var id = GL.getNewId(GL.vaos);
  8692. vao.name = id;
  8693. GL.vaos[id] = vao;
  8694. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8695. }
  8696. }
  8697. function _time(ptr) {
  8698. var ret = (Date.now()/1000)|0;
  8699. if (ptr) {
  8700. HEAP32[((ptr)>>2)]=ret;
  8701. }
  8702. return ret;
  8703. }
  8704. function _emscripten_glGetBooleanv(name_, p) {
  8705. emscriptenWebGLGet(name_, p, 'Boolean');
  8706. }
  8707. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8708. try {
  8709. // fcntl64
  8710. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8711. switch (cmd) {
  8712. case 0: {
  8713. var arg = SYSCALLS.get();
  8714. if (arg < 0) {
  8715. return -ERRNO_CODES.EINVAL;
  8716. }
  8717. var newStream;
  8718. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8719. return newStream.fd;
  8720. }
  8721. case 1:
  8722. case 2:
  8723. return 0; // FD_CLOEXEC makes no sense for a single process.
  8724. case 3:
  8725. return stream.flags;
  8726. case 4: {
  8727. var arg = SYSCALLS.get();
  8728. stream.flags |= arg;
  8729. return 0;
  8730. }
  8731. case 12:
  8732. case 12: {
  8733. var arg = SYSCALLS.get();
  8734. var offset = 0;
  8735. // We're always unlocked.
  8736. HEAP16[(((arg)+(offset))>>1)]=2;
  8737. return 0;
  8738. }
  8739. case 13:
  8740. case 14:
  8741. case 13:
  8742. case 14:
  8743. return 0; // Pretend that the locking is successful.
  8744. case 16:
  8745. case 8:
  8746. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8747. case 9:
  8748. // 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.
  8749. ___setErrNo(ERRNO_CODES.EINVAL);
  8750. return -1;
  8751. default: {
  8752. return -ERRNO_CODES.EINVAL;
  8753. }
  8754. }
  8755. } catch (e) {
  8756. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8757. return -e.errno;
  8758. }
  8759. }
  8760. var GLctx; GL.init();
  8761. if (ENVIRONMENT_IS_NODE) {
  8762. _emscripten_get_now = function _emscripten_get_now_actual() {
  8763. var t = process['hrtime']();
  8764. return t[0] * 1e3 + t[1] / 1e6;
  8765. };
  8766. } else if (typeof dateNow !== 'undefined') {
  8767. _emscripten_get_now = dateNow;
  8768. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8769. _emscripten_get_now = function() { return self['performance']['now'](); };
  8770. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8771. _emscripten_get_now = function() { return performance['now'](); };
  8772. } else {
  8773. _emscripten_get_now = Date.now;
  8774. };
  8775. 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) };
  8776. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8777. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8778. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8779. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8780. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8781. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8782. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8783. 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;;
  8784. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8785. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8786. JSEvents.staticInit();;
  8787. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8788. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8789. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8790. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8791. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8792. staticSealed = true; // seal the static portion of memory
  8793. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8794. 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) }
  8795. 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) }
  8796. 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) }
  8797. 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) }
  8798. 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) }
  8799. 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) }
  8800. 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) }
  8801. 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) }
  8802. 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) }
  8803. 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) }
  8804. 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) }
  8805. 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) }
  8806. 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) }
  8807. 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) }
  8808. 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) }
  8809. 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) }
  8810. 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) }
  8811. 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) }
  8812. 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) }
  8813. 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) }
  8814. 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) }
  8815. 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) }
  8816. 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) }
  8817. 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) }
  8818. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8819. try {
  8820. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8821. } catch(e) {
  8822. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8823. Module["setThrew"](1, 0);
  8824. }
  8825. }
  8826. function invoke_vd(index,a1) {
  8827. try {
  8828. Module["dynCall_vd"](index,a1);
  8829. } catch(e) {
  8830. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8831. Module["setThrew"](1, 0);
  8832. }
  8833. }
  8834. function invoke_vid(index,a1,a2) {
  8835. try {
  8836. Module["dynCall_vid"](index,a1,a2);
  8837. } catch(e) {
  8838. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8839. Module["setThrew"](1, 0);
  8840. }
  8841. }
  8842. function invoke_vi(index,a1) {
  8843. try {
  8844. Module["dynCall_vi"](index,a1);
  8845. } catch(e) {
  8846. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8847. Module["setThrew"](1, 0);
  8848. }
  8849. }
  8850. function invoke_vii(index,a1,a2) {
  8851. try {
  8852. Module["dynCall_vii"](index,a1,a2);
  8853. } catch(e) {
  8854. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8855. Module["setThrew"](1, 0);
  8856. }
  8857. }
  8858. function invoke_ii(index,a1) {
  8859. try {
  8860. return Module["dynCall_ii"](index,a1);
  8861. } catch(e) {
  8862. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8863. Module["setThrew"](1, 0);
  8864. }
  8865. }
  8866. function invoke_viddd(index,a1,a2,a3,a4) {
  8867. try {
  8868. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8869. } catch(e) {
  8870. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8871. Module["setThrew"](1, 0);
  8872. }
  8873. }
  8874. function invoke_vidd(index,a1,a2,a3) {
  8875. try {
  8876. Module["dynCall_vidd"](index,a1,a2,a3);
  8877. } catch(e) {
  8878. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8879. Module["setThrew"](1, 0);
  8880. }
  8881. }
  8882. function invoke_iiii(index,a1,a2,a3) {
  8883. try {
  8884. return Module["dynCall_iiii"](index,a1,a2,a3);
  8885. } catch(e) {
  8886. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8887. Module["setThrew"](1, 0);
  8888. }
  8889. }
  8890. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  8891. try {
  8892. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  8893. } catch(e) {
  8894. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8895. Module["setThrew"](1, 0);
  8896. }
  8897. }
  8898. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  8899. try {
  8900. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  8901. } catch(e) {
  8902. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8903. Module["setThrew"](1, 0);
  8904. }
  8905. }
  8906. function invoke_viii(index,a1,a2,a3) {
  8907. try {
  8908. Module["dynCall_viii"](index,a1,a2,a3);
  8909. } catch(e) {
  8910. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8911. Module["setThrew"](1, 0);
  8912. }
  8913. }
  8914. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  8915. try {
  8916. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  8917. } catch(e) {
  8918. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8919. Module["setThrew"](1, 0);
  8920. }
  8921. }
  8922. function invoke_vdi(index,a1,a2) {
  8923. try {
  8924. Module["dynCall_vdi"](index,a1,a2);
  8925. } catch(e) {
  8926. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8927. Module["setThrew"](1, 0);
  8928. }
  8929. }
  8930. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  8931. try {
  8932. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  8933. } catch(e) {
  8934. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8935. Module["setThrew"](1, 0);
  8936. }
  8937. }
  8938. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  8939. try {
  8940. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  8941. } catch(e) {
  8942. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8943. Module["setThrew"](1, 0);
  8944. }
  8945. }
  8946. function invoke_iii(index,a1,a2) {
  8947. try {
  8948. return Module["dynCall_iii"](index,a1,a2);
  8949. } catch(e) {
  8950. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8951. Module["setThrew"](1, 0);
  8952. }
  8953. }
  8954. function invoke_i(index) {
  8955. try {
  8956. return Module["dynCall_i"](index);
  8957. } catch(e) {
  8958. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8959. Module["setThrew"](1, 0);
  8960. }
  8961. }
  8962. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  8963. try {
  8964. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  8965. } catch(e) {
  8966. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8967. Module["setThrew"](1, 0);
  8968. }
  8969. }
  8970. function invoke_vdddd(index,a1,a2,a3,a4) {
  8971. try {
  8972. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  8973. } catch(e) {
  8974. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8975. Module["setThrew"](1, 0);
  8976. }
  8977. }
  8978. function invoke_vdd(index,a1,a2) {
  8979. try {
  8980. Module["dynCall_vdd"](index,a1,a2);
  8981. } catch(e) {
  8982. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8983. Module["setThrew"](1, 0);
  8984. }
  8985. }
  8986. function invoke_v(index) {
  8987. try {
  8988. Module["dynCall_v"](index);
  8989. } catch(e) {
  8990. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8991. Module["setThrew"](1, 0);
  8992. }
  8993. }
  8994. function invoke_viid(index,a1,a2,a3) {
  8995. try {
  8996. Module["dynCall_viid"](index,a1,a2,a3);
  8997. } catch(e) {
  8998. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8999. Module["setThrew"](1, 0);
  9000. }
  9001. }
  9002. function invoke_viiii(index,a1,a2,a3,a4) {
  9003. try {
  9004. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  9005. } catch(e) {
  9006. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9007. Module["setThrew"](1, 0);
  9008. }
  9009. }
  9010. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
  9011. Module.asmLibraryArg = { "abort": abort, "assert": assert, "enlargeMemory": enlargeMemory, "getTotalMemory": getTotalMemory, "abortOnCannotGrowMemory": abortOnCannotGrowMemory, "abortStackOverflow": abortStackOverflow, "nullFunc_viiiii": nullFunc_viiiii, "nullFunc_vd": nullFunc_vd, "nullFunc_vid": nullFunc_vid, "nullFunc_vi": nullFunc_vi, "nullFunc_vii": nullFunc_vii, "nullFunc_ii": nullFunc_ii, "nullFunc_viddd": nullFunc_viddd, "nullFunc_vidd": nullFunc_vidd, "nullFunc_iiii": nullFunc_iiii, "nullFunc_viiiiiiii": nullFunc_viiiiiiii, "nullFunc_viiiiii": nullFunc_viiiiii, "nullFunc_viii": nullFunc_viii, "nullFunc_vidddd": nullFunc_vidddd, "nullFunc_vdi": nullFunc_vdi, "nullFunc_viiiiiii": nullFunc_viiiiiii, "nullFunc_viiiiiiiii": nullFunc_viiiiiiiii, "nullFunc_iii": nullFunc_iii, "nullFunc_i": nullFunc_i, "nullFunc_vdddddd": nullFunc_vdddddd, "nullFunc_vdddd": nullFunc_vdddd, "nullFunc_vdd": nullFunc_vdd, "nullFunc_v": nullFunc_v, "nullFunc_viid": nullFunc_viid, "nullFunc_viiii": nullFunc_viiii, "invoke_viiiii": invoke_viiiii, "invoke_vd": invoke_vd, "invoke_vid": invoke_vid, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_ii": invoke_ii, "invoke_viddd": invoke_viddd, "invoke_vidd": invoke_vidd, "invoke_iiii": invoke_iiii, "invoke_viiiiiiii": invoke_viiiiiiii, "invoke_viiiiii": invoke_viiiiii, "invoke_viii": invoke_viii, "invoke_vidddd": invoke_vidddd, "invoke_vdi": invoke_vdi, "invoke_viiiiiii": invoke_viiiiiii, "invoke_viiiiiiiii": invoke_viiiiiiiii, "invoke_iii": invoke_iii, "invoke_i": invoke_i, "invoke_vdddddd": invoke_vdddddd, "invoke_vdddd": invoke_vdddd, "invoke_vdd": invoke_vdd, "invoke_v": invoke_v, "invoke_viid": invoke_viid, "invoke_viiii": invoke_viiii, "_emscripten_glGetTexParameterfv": _emscripten_glGetTexParameterfv, "_glUseProgram": _glUseProgram, "_emscripten_glShaderSource": _emscripten_glShaderSource, "_glfwCreateWindow": _glfwCreateWindow, "_emscripten_glReleaseShaderCompiler": _emscripten_glReleaseShaderCompiler, "_emscripten_glBlendFuncSeparate": _emscripten_glBlendFuncSeparate, "_emscripten_glVertexAttribPointer": _emscripten_glVertexAttribPointer, "_emscripten_glGetIntegerv": _emscripten_glGetIntegerv, "_emscripten_glCullFace": _emscripten_glCullFace, "_emscripten_glIsProgram": _emscripten_glIsProgram, "_emscripten_glStencilMaskSeparate": _emscripten_glStencilMaskSeparate, "_emscripten_glViewport": _emscripten_glViewport, "_emscripten_glFrontFace": _emscripten_glFrontFace, "___assert_fail": ___assert_fail, "_glDeleteProgram": _glDeleteProgram, "_emscripten_glUniform3fv": _emscripten_glUniform3fv, "_emscripten_glPolygonOffset": _emscripten_glPolygonOffset, "_emscripten_glUseProgram": _emscripten_glUseProgram, "_glVertexAttrib4f": _glVertexAttrib4f, "_glBindBuffer": _glBindBuffer, "_emscripten_glDepthFunc": _emscripten_glDepthFunc, "_glGetShaderInfoLog": _glGetShaderInfoLog, "_emscripten_set_fullscreenchange_callback": _emscripten_set_fullscreenchange_callback, "_emscripten_set_touchmove_callback": _emscripten_set_touchmove_callback, "_emscripten_set_main_loop_timing": _emscripten_set_main_loop_timing, "_glDisable": _glDisable, "_glBlendFunc": _glBlendFunc, "_emscripten_glDisableVertexAttribArray": _emscripten_glDisableVertexAttribArray, "_glGetAttribLocation": _glGetAttribLocation, "_glDisableVertexAttribArray": _glDisableVertexAttribArray, "_glCreateShader": _glCreateShader, "_emscripten_glReadPixels": _emscripten_glReadPixels, "_emscripten_glSampleCoverage": _emscripten_glSampleCoverage, "_emscripten_glVertexPointer": _emscripten_glVertexPointer, "_emscripten_set_touchstart_callback": _emscripten_set_touchstart_callback, "emscriptenWebGLComputeImageSize": emscriptenWebGLComputeImageSize, "_emscripten_glGetBooleanv": _emscripten_glGetBooleanv, "_emscripten_glGetShaderSource": _emscripten_glGetShaderSource, "_glUniform4f": _glUniform4f, "_llvm_stacksave": _llvm_stacksave, "_emscripten_glUniform1i": _emscripten_glUniform1i, "_emscripten_glStencilFuncSeparate": _emscripten_glStencilFuncSeparate, "_emscripten_glLoadMatrixf": _emscripten_glLoadMatrixf, "_emscripten_glGenBuffers": _emscripten_glGenBuffers, "_emscripten_glDeleteObjectARB": _emscripten_glDeleteObjectARB, "_glfwSetWindowSizeCallback": _glfwSetWindowSizeCallback, "_emscripten_glGetShaderPrecisionFormat": _emscripten_glGetShaderPrecisionFormat, "_glfwInit": _glfwInit, "_glGenBuffers": _glGenBuffers, "_glShaderSource": _glShaderSource, "_emscripten_glGetString": _emscripten_glGetString, "_emscripten_glIsFramebuffer": _emscripten_glIsFramebuffer, "_glVertexAttrib3f": _glVertexAttrib3f, "_emscripten_glIsEnabled": _emscripten_glIsEnabled, "_emscripten_glScissor": _emscripten_glScissor, "_emscripten_glVertexAttrib4fv": _emscripten_glVertexAttrib4fv, "_emscripten_glFramebufferTexture2D": _emscripten_glFramebufferTexture2D, "_emscripten_glTexParameteriv": _emscripten_glTexParameteriv, "___syscall145": ___syscall145, "_emscripten_glBindProgramARB": _emscripten_glBindProgramARB, "_emscripten_glStencilOpSeparate": _emscripten_glStencilOpSeparate, "_emscripten_glHint": _emscripten_glHint, "_emscripten_glFramebufferRenderbuffer": _emscripten_glFramebufferRenderbuffer, "___syscall140": ___syscall140, "_glfwSetErrorCallback": _glfwSetErrorCallback, "_glfwDefaultWindowHints": _glfwDefaultWindowHints, "_glfwDestroyWindow": _glfwDestroyWindow, "___syscall146": ___syscall146, "_emscripten_glGetActiveAttrib": _emscripten_glGetActiveAttrib, "_emscripten_glAttachShader": _emscripten_glAttachShader, "_glVertexAttribPointer": _glVertexAttribPointer, "_emscripten_glUniform2i": _emscripten_glUniform2i, "_emscripten_glUniform2f": _emscripten_glUniform2f, "_emscripten_glTexParameterfv": _emscripten_glTexParameterfv, "_emscripten_glUniformMatrix2fv": _emscripten_glUniformMatrix2fv, "_glGetProgramInfoLog": _glGetProgramInfoLog, "_glfwSetScrollCallback": _glfwSetScrollCallback, "_emscripten_glTexParameterf": _emscripten_glTexParameterf, "_emscripten_glGetAttachedShaders": _emscripten_glGetAttachedShaders, "_emscripten_glGenTextures": _emscripten_glGenTextures, "_emscripten_glTexParameteri": _emscripten_glTexParameteri, "_llvm_stackrestore": _llvm_stackrestore, "_glfwMakeContextCurrent": _glfwMakeContextCurrent, "_emscripten_glClear": _emscripten_glClear, "_glDrawElements": _glDrawElements, "_glBufferSubData": _glBufferSubData, "_emscripten_glValidateProgram": _emscripten_glValidateProgram, "_emscripten_glVertexAttrib2fv": _emscripten_glVertexAttrib2fv, "_glViewport": _glViewport, "_emscripten_glUniform4iv": _emscripten_glUniform4iv, "_emscripten_glGetTexParameteriv": _emscripten_glGetTexParameteriv, "___setErrNo": ___setErrNo, "_eglGetProcAddress": _eglGetProcAddress, "_emscripten_glBindAttribLocation": _emscripten_glBindAttribLocation, "_glDeleteTextures": _glDeleteTextures, "_glDepthFunc": _glDepthFunc, "_emscripten_glClientActiveTexture": _emscripten_glClientActiveTexture, "_emscripten_glVertexAttrib2f": _emscripten_glVertexAttrib2f, "_glUniform3f": _glUniform3f, "_emscripten_glFlush": _emscripten_glFlush, "_emscripten_glCheckFramebufferStatus": _emscripten_glCheckFramebufferStatus, "_emscripten_glGenerateMipmap": _emscripten_glGenerateMipmap, "_emscripten_glGetError": _emscripten_glGetError, "_emscripten_glClearDepthf": _emscripten_glClearDepthf, "_emscripten_glBufferData": _emscripten_glBufferData, "_emscripten_glUniform3i": _emscripten_glUniform3i, "_emscripten_glRotatef": _emscripten_glRotatef, "_emscripten_glDeleteShader": _emscripten_glDeleteShader, "_glEnable": _glEnable, "_glVertexAttrib2f": _glVertexAttrib2f, "_glGenTextures": _glGenTextures, "_emscripten_glMatrixMode": _emscripten_glMatrixMode, "_glGetString": _glGetString, "_emscripten_glClearStencil": _emscripten_glClearStencil, "_emscripten_glGetUniformLocation": _emscripten_glGetUniformLocation, "emscriptenWebGLGet": emscriptenWebGLGet, "_emscripten_glEnableVertexAttribArray": _emscripten_glEnableVertexAttribArray, "_emscripten_glGetAttribLocation": _emscripten_glGetAttribLocation, "_emscripten_get_now": _emscripten_get_now, "_emscripten_glNormalPointer": _emscripten_glNormalPointer, "_glAttachShader": _glAttachShader, "_emscripten_glTexCoordPointer": _emscripten_glTexCoordPointer, "_emscripten_glEnable": _emscripten_glEnable, "_glCreateProgram": _glCreateProgram, "_glUniformMatrix4fv": _glUniformMatrix4fv, "_emscripten_glClearDepth": _emscripten_glClearDepth, "___lock": ___lock, "emscriptenWebGLGetTexPixelData": emscriptenWebGLGetTexPixelData, "___syscall6": ___syscall6, "___syscall5": ___syscall5, "_emscripten_glIsBuffer": _emscripten_glIsBuffer, "_emscripten_glVertexAttrib3f": _emscripten_glVertexAttrib3f, "_time": _time, "_emscripten_glVertexAttrib1f": _emscripten_glVertexAttrib1f, "_emscripten_glGetFramebufferAttachmentParameteriv": _emscripten_glGetFramebufferAttachmentParameteriv, "_emscripten_glBlendEquationSeparate": _emscripten_glBlendEquationSeparate, "_exit": _exit, "_emscripten_glEnableClientState": _emscripten_glEnableClientState, "_emscripten_glUniform4i": _emscripten_glUniform4i, "_emscripten_glDrawRangeElements": _emscripten_glDrawRangeElements, "_glCullFace": _glCullFace, "_emscripten_glGetPointerv": _emscripten_glGetPointerv, "_emscripten_set_keypress_callback": _emscripten_set_keypress_callback, "__emscripten_sample_gamepad_data": __emscripten_sample_gamepad_data, "_emscripten_get_gamepad_status": _emscripten_get_gamepad_status, "_emscripten_glUniform4f": _emscripten_glUniform4f, "_emscripten_glUniform2fv": _emscripten_glUniform2fv, "_glfwGetVideoModes": _glfwGetVideoModes, "_emscripten_set_click_callback": _emscripten_set_click_callback, "_emscripten_glFinish": _emscripten_glFinish, "_emscripten_glShaderBinary": _emscripten_glShaderBinary, "_emscripten_glDrawElements": _emscripten_glDrawElements, "_emscripten_glBlendFunc": _emscripten_glBlendFunc, "_emscripten_get_num_gamepads": _emscripten_get_num_gamepads, "___syscall221": ___syscall221, "_glCompressedTexImage2D": _glCompressedTexImage2D, "_emscripten_glUniform1iv": _emscripten_glUniform1iv, "_emscripten_glGetVertexAttribPointerv": _emscripten_glGetVertexAttribPointerv, "_glClearDepthf": _glClearDepthf, "_emscripten_glCompressedTexSubImage2D": _emscripten_glCompressedTexSubImage2D, "emscriptenWebGLGetUniform": emscriptenWebGLGetUniform, "_emscripten_glGenRenderbuffers": _emscripten_glGenRenderbuffers, "_emscripten_glDeleteVertexArrays": _emscripten_glDeleteVertexArrays, "_glfwSetWindowShouldClose": _glfwSetWindowShouldClose, "_emscripten_glUniform1fv": _emscripten_glUniform1fv, "_emscripten_glGetActiveUniform": _emscripten_glGetActiveUniform, "_glBindTexture": _glBindTexture, "_emscripten_glUniform3iv": _emscripten_glUniform3iv, "_emscripten_glUniform2iv": _emscripten_glUniform2iv, "_glfwSetCursorPos": _glfwSetCursorPos, "_glfwSetCharCallback": _glfwSetCharCallback, "emscriptenWebGLGetVertexAttrib": emscriptenWebGLGetVertexAttrib, "_glGetFloatv": _glGetFloatv, "_emscripten_glDeleteProgram": _emscripten_glDeleteProgram, "_emscripten_glDeleteRenderbuffers": _emscripten_glDeleteRenderbuffers, "_emscripten_glDrawElementsInstanced": _emscripten_glDrawElementsInstanced, "_emscripten_glVertexAttrib4f": _emscripten_glVertexAttrib4f, "_glDrawArrays": _glDrawArrays, "_emscripten_glTexSubImage2D": _emscripten_glTexSubImage2D, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_emscripten_glPixelStorei": _emscripten_glPixelStorei, "_glCompileShader": _glCompileShader, "_emscripten_get_pointerlock_status": _emscripten_get_pointerlock_status, "_glfwGetMouseButton": _glfwGetMouseButton, "_emscripten_glColorPointer": _emscripten_glColorPointer, "_emscripten_glGetBufferParameteriv": _emscripten_glGetBufferParameteriv, "_glActiveTexture": _glActiveTexture, "_emscripten_request_pointerlock": _emscripten_request_pointerlock, "_emscripten_set_gamepaddisconnected_callback": _emscripten_set_gamepaddisconnected_callback, "_emscripten_asm_const_iii": _emscripten_asm_const_iii, "_emscripten_glDepthMask": _emscripten_glDepthMask, "_glfwSetWindowIconifyCallback": _glfwSetWindowIconifyCallback, "_emscripten_glDrawBuffers": _emscripten_glDrawBuffers, "_glfwTerminate": _glfwTerminate, "_glFrontFace": _glFrontFace, "_emscripten_glGetObjectParameterivARB": _emscripten_glGetObjectParameterivARB, "_emscripten_exit_pointerlock": _emscripten_exit_pointerlock, "_glfwSwapInterval": _glfwSwapInterval, "_glUniform1i": _glUniform1i, "_glEnableVertexAttribArray": _glEnableVertexAttribArray, "_emscripten_glStencilFunc": _emscripten_glStencilFunc, "_abort": _abort, "_emscripten_glGetUniformiv": _emscripten_glGetUniformiv, "_glDeleteBuffers": _glDeleteBuffers, "_glBufferData": _glBufferData, "_glTexImage2D": _glTexImage2D, "_emscripten_glGetShaderiv": _emscripten_glGetShaderiv, "_glfwSetKeyCallback": _glfwSetKeyCallback, "_emscripten_glGenFramebuffers": _emscripten_glGenFramebuffers, "_glUniform1f": _glUniform1f, "_emscripten_glUniformMatrix4fv": _emscripten_glUniformMatrix4fv, "_emscripten_glLoadIdentity": _emscripten_glLoadIdentity, "_glDeleteShader": _glDeleteShader, "_emscripten_glUniform1f": _emscripten_glUniform1f, "_glGetProgramiv": _glGetProgramiv, "_emscripten_glBindFramebuffer": _emscripten_glBindFramebuffer, "_emscripten_glIsRenderbuffer": _emscripten_glIsRenderbuffer, "_glfwGetTime": _glfwGetTime, "_emscripten_glRenderbufferStorage": _emscripten_glRenderbufferStorage, "_emscripten_set_gamepadconnected_callback": _emscripten_set_gamepadconnected_callback, "_emscripten_glBlendColor": _emscripten_glBlendColor, "_emscripten_glGetVertexAttribiv": _emscripten_glGetVertexAttribiv, "_emscripten_glBindVertexArray": _emscripten_glBindVertexArray, "_emscripten_glDrawArraysInstanced": _emscripten_glDrawArraysInstanced, "_emscripten_set_touchcancel_callback": _emscripten_set_touchcancel_callback, "_emscripten_glCreateShader": _emscripten_glCreateShader, "_emscripten_glStencilMask": _emscripten_glStencilMask, "_emscripten_glDeleteTextures": _emscripten_glDeleteTextures, "_glfwGetKey": _glfwGetKey, "_glfwGetPrimaryMonitor": _glfwGetPrimaryMonitor, "_glLinkProgram": _glLinkProgram, "_emscripten_glVertexAttribDivisor": _emscripten_glVertexAttribDivisor, "_emscripten_set_touchend_callback": _emscripten_set_touchend_callback, "_emscripten_glGetUniformfv": _emscripten_glGetUniformfv, "_emscripten_glGetVertexAttribfv": _emscripten_glGetVertexAttribfv, "_emscripten_glGetRenderbufferParameteriv": _emscripten_glGetRenderbufferParameteriv, "_emscripten_glDeleteFramebuffers": _emscripten_glDeleteFramebuffers, "_glGetShaderiv": _glGetShaderiv, "_emscripten_glVertexAttrib3fv": _emscripten_glVertexAttrib3fv, "_glGetUniformLocation": _glGetUniformLocation, "_emscripten_glGetInfoLogARB": _emscripten_glGetInfoLogARB, "_emscripten_glCompileShader": _emscripten_glCompileShader, "_glClear": _glClear, "_emscripten_glFrustum": _emscripten_glFrustum, "_emscripten_glDisable": _emscripten_glDisable, "_emscripten_glDepthRangef": _emscripten_glDepthRangef, "__exit": __exit, "_emscripten_glLineWidth": _emscripten_glLineWidth, "_emscripten_glUniform3f": _emscripten_glUniform3f, "_emscripten_glGetShaderInfoLog": _emscripten_glGetShaderInfoLog, "_emscripten_glStencilOp": _emscripten_glStencilOp, "_glBindAttribLocation": _glBindAttribLocation, "_glPixelStorei": _glPixelStorei, "_emscripten_glColorMask": _emscripten_glColorMask, "_emscripten_glLinkProgram": _emscripten_glLinkProgram, "_emscripten_glBlendEquation": _emscripten_glBlendEquation, "_emscripten_glIsTexture": _emscripten_glIsTexture, "_emscripten_glGetProgramiv": _emscripten_glGetProgramiv, "_emscripten_glVertexAttrib1fv": _emscripten_glVertexAttrib1fv, "_emscripten_glUniformMatrix3fv": _emscripten_glUniformMatrix3fv, "_emscripten_glBindTexture": _emscripten_glBindTexture, "_glfwSetMouseButtonCallback": _glfwSetMouseButtonCallback, "_glfwGetCursorPos": _glfwGetCursorPos, "_emscripten_glActiveTexture": _emscripten_glActiveTexture, "_emscripten_glDeleteBuffers": _emscripten_glDeleteBuffers, "___syscall54": ___syscall54, "___unlock": ___unlock, "_emscripten_glBufferSubData": _emscripten_glBufferSubData, "_glfwSwapBuffers": _glfwSwapBuffers, "_emscripten_glDepthRange": _emscripten_glDepthRange, "_emscripten_set_main_loop": _emscripten_set_main_loop, "_emscripten_glBindRenderbuffer": _emscripten_glBindRenderbuffer, "_emscripten_glGetProgramInfoLog": _emscripten_glGetProgramInfoLog, "_glfwWindowHint": _glfwWindowHint, "_emscripten_glIsShader": _emscripten_glIsShader, "_emscripten_glUniform4fv": _emscripten_glUniform4fv, "_emscripten_glGenVertexArrays": _emscripten_glGenVertexArrays, "_emscripten_glDrawArrays": _emscripten_glDrawArrays, "_emscripten_glCompressedTexImage2D": _emscripten_glCompressedTexImage2D, "_emscripten_glClearColor": _emscripten_glClearColor, "_emscripten_glCreateProgram": _emscripten_glCreateProgram, "_emscripten_glCopyTexSubImage2D": _emscripten_glCopyTexSubImage2D, "_glTexParameteri": _glTexParameteri, "_emscripten_glBindBuffer": _emscripten_glBindBuffer, "_emscripten_glGetFloatv": _emscripten_glGetFloatv, "_emscripten_glDetachShader": _emscripten_glDetachShader, "_glClearColor": _glClearColor, "_glfwSetCursorPosCallback": _glfwSetCursorPosCallback, "_glfwSetCursorEnterCallback": _glfwSetCursorEnterCallback, "_emscripten_glCopyTexImage2D": _emscripten_glCopyTexImage2D, "_emscripten_glTexImage2D": _emscripten_glTexImage2D, "DYNAMICTOP_PTR": DYNAMICTOP_PTR, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "cttz_i8": cttz_i8 };
  9012. // EMSCRIPTEN_START_ASM
  9013. var asm = (function(global, env, buffer) {
  9014. 'use asm';
  9015. var HEAP8 = new global.Int8Array(buffer);
  9016. var HEAP16 = new global.Int16Array(buffer);
  9017. var HEAP32 = new global.Int32Array(buffer);
  9018. var HEAPU8 = new global.Uint8Array(buffer);
  9019. var HEAPU16 = new global.Uint16Array(buffer);
  9020. var HEAPU32 = new global.Uint32Array(buffer);
  9021. var HEAPF32 = new global.Float32Array(buffer);
  9022. var HEAPF64 = new global.Float64Array(buffer);
  9023. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9024. var tempDoublePtr=env.tempDoublePtr|0;
  9025. var ABORT=env.ABORT|0;
  9026. var STACKTOP=env.STACKTOP|0;
  9027. var STACK_MAX=env.STACK_MAX|0;
  9028. var cttz_i8=env.cttz_i8|0;
  9029. var __THREW__ = 0;
  9030. var threwValue = 0;
  9031. var setjmpId = 0;
  9032. var undef = 0;
  9033. var nan = global.NaN, inf = global.Infinity;
  9034. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9035. var tempRet0 = 0;
  9036. var Math_floor=global.Math.floor;
  9037. var Math_abs=global.Math.abs;
  9038. var Math_sqrt=global.Math.sqrt;
  9039. var Math_pow=global.Math.pow;
  9040. var Math_cos=global.Math.cos;
  9041. var Math_sin=global.Math.sin;
  9042. var Math_tan=global.Math.tan;
  9043. var Math_acos=global.Math.acos;
  9044. var Math_asin=global.Math.asin;
  9045. var Math_atan=global.Math.atan;
  9046. var Math_atan2=global.Math.atan2;
  9047. var Math_exp=global.Math.exp;
  9048. var Math_log=global.Math.log;
  9049. var Math_ceil=global.Math.ceil;
  9050. var Math_imul=global.Math.imul;
  9051. var Math_min=global.Math.min;
  9052. var Math_max=global.Math.max;
  9053. var Math_clz32=global.Math.clz32;
  9054. var abort=env.abort;
  9055. var assert=env.assert;
  9056. var enlargeMemory=env.enlargeMemory;
  9057. var getTotalMemory=env.getTotalMemory;
  9058. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9059. var abortStackOverflow=env.abortStackOverflow;
  9060. var nullFunc_viiiii=env.nullFunc_viiiii;
  9061. var nullFunc_vd=env.nullFunc_vd;
  9062. var nullFunc_vid=env.nullFunc_vid;
  9063. var nullFunc_vi=env.nullFunc_vi;
  9064. var nullFunc_vii=env.nullFunc_vii;
  9065. var nullFunc_ii=env.nullFunc_ii;
  9066. var nullFunc_viddd=env.nullFunc_viddd;
  9067. var nullFunc_vidd=env.nullFunc_vidd;
  9068. var nullFunc_iiii=env.nullFunc_iiii;
  9069. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9070. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9071. var nullFunc_viii=env.nullFunc_viii;
  9072. var nullFunc_vidddd=env.nullFunc_vidddd;
  9073. var nullFunc_vdi=env.nullFunc_vdi;
  9074. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9075. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9076. var nullFunc_iii=env.nullFunc_iii;
  9077. var nullFunc_i=env.nullFunc_i;
  9078. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9079. var nullFunc_vdddd=env.nullFunc_vdddd;
  9080. var nullFunc_vdd=env.nullFunc_vdd;
  9081. var nullFunc_v=env.nullFunc_v;
  9082. var nullFunc_viid=env.nullFunc_viid;
  9083. var nullFunc_viiii=env.nullFunc_viiii;
  9084. var invoke_viiiii=env.invoke_viiiii;
  9085. var invoke_vd=env.invoke_vd;
  9086. var invoke_vid=env.invoke_vid;
  9087. var invoke_vi=env.invoke_vi;
  9088. var invoke_vii=env.invoke_vii;
  9089. var invoke_ii=env.invoke_ii;
  9090. var invoke_viddd=env.invoke_viddd;
  9091. var invoke_vidd=env.invoke_vidd;
  9092. var invoke_iiii=env.invoke_iiii;
  9093. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9094. var invoke_viiiiii=env.invoke_viiiiii;
  9095. var invoke_viii=env.invoke_viii;
  9096. var invoke_vidddd=env.invoke_vidddd;
  9097. var invoke_vdi=env.invoke_vdi;
  9098. var invoke_viiiiiii=env.invoke_viiiiiii;
  9099. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9100. var invoke_iii=env.invoke_iii;
  9101. var invoke_i=env.invoke_i;
  9102. var invoke_vdddddd=env.invoke_vdddddd;
  9103. var invoke_vdddd=env.invoke_vdddd;
  9104. var invoke_vdd=env.invoke_vdd;
  9105. var invoke_v=env.invoke_v;
  9106. var invoke_viid=env.invoke_viid;
  9107. var invoke_viiii=env.invoke_viiii;
  9108. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9109. var _glUseProgram=env._glUseProgram;
  9110. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9111. var _glfwCreateWindow=env._glfwCreateWindow;
  9112. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9113. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9114. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9115. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9116. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9117. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9118. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9119. var _emscripten_glViewport=env._emscripten_glViewport;
  9120. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9121. var ___assert_fail=env.___assert_fail;
  9122. var _glDeleteProgram=env._glDeleteProgram;
  9123. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9124. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9125. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9126. var _glVertexAttrib4f=env._glVertexAttrib4f;
  9127. var _glBindBuffer=env._glBindBuffer;
  9128. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9129. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9130. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9131. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9132. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9133. var _glDisable=env._glDisable;
  9134. var _glBlendFunc=env._glBlendFunc;
  9135. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9136. var _glGetAttribLocation=env._glGetAttribLocation;
  9137. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9138. var _glCreateShader=env._glCreateShader;
  9139. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9140. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9141. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9142. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9143. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9144. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9145. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9146. var _glUniform4f=env._glUniform4f;
  9147. var _llvm_stacksave=env._llvm_stacksave;
  9148. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9149. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9150. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9151. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9152. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9153. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9154. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9155. var _glfwInit=env._glfwInit;
  9156. var _glGenBuffers=env._glGenBuffers;
  9157. var _glShaderSource=env._glShaderSource;
  9158. var _emscripten_glGetString=env._emscripten_glGetString;
  9159. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9160. var _glVertexAttrib3f=env._glVertexAttrib3f;
  9161. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9162. var _emscripten_glScissor=env._emscripten_glScissor;
  9163. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9164. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9165. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9166. var ___syscall145=env.___syscall145;
  9167. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9168. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9169. var _emscripten_glHint=env._emscripten_glHint;
  9170. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9171. var ___syscall140=env.___syscall140;
  9172. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9173. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9174. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9175. var ___syscall146=env.___syscall146;
  9176. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9177. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9178. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9179. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9180. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9181. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9182. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9183. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9184. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9185. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9186. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9187. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9188. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9189. var _llvm_stackrestore=env._llvm_stackrestore;
  9190. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9191. var _emscripten_glClear=env._emscripten_glClear;
  9192. var _glDrawElements=env._glDrawElements;
  9193. var _glBufferSubData=env._glBufferSubData;
  9194. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9195. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9196. var _glViewport=env._glViewport;
  9197. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9198. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9199. var ___setErrNo=env.___setErrNo;
  9200. var _eglGetProcAddress=env._eglGetProcAddress;
  9201. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9202. var _glDeleteTextures=env._glDeleteTextures;
  9203. var _glDepthFunc=env._glDepthFunc;
  9204. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9205. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9206. var _glUniform3f=env._glUniform3f;
  9207. var _emscripten_glFlush=env._emscripten_glFlush;
  9208. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9209. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9210. var _emscripten_glGetError=env._emscripten_glGetError;
  9211. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9212. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9213. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9214. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9215. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9216. var _glEnable=env._glEnable;
  9217. var _glVertexAttrib2f=env._glVertexAttrib2f;
  9218. var _glGenTextures=env._glGenTextures;
  9219. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9220. var _glGetString=env._glGetString;
  9221. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9222. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9223. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9224. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9225. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9226. var _emscripten_get_now=env._emscripten_get_now;
  9227. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9228. var _glAttachShader=env._glAttachShader;
  9229. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9230. var _emscripten_glEnable=env._emscripten_glEnable;
  9231. var _glCreateProgram=env._glCreateProgram;
  9232. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9233. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9234. var ___lock=env.___lock;
  9235. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9236. var ___syscall6=env.___syscall6;
  9237. var ___syscall5=env.___syscall5;
  9238. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9239. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9240. var _time=env._time;
  9241. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9242. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9243. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9244. var _exit=env._exit;
  9245. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9246. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9247. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9248. var _glCullFace=env._glCullFace;
  9249. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9250. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9251. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9252. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9253. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9254. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9255. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9256. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9257. var _emscripten_glFinish=env._emscripten_glFinish;
  9258. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9259. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9260. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9261. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9262. var ___syscall221=env.___syscall221;
  9263. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9264. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9265. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9266. var _glClearDepthf=env._glClearDepthf;
  9267. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9268. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9269. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9270. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9271. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9272. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9273. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9274. var _glBindTexture=env._glBindTexture;
  9275. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9276. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9277. var _glfwSetCursorPos=env._glfwSetCursorPos;
  9278. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9279. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9280. var _glGetFloatv=env._glGetFloatv;
  9281. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9282. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9283. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9284. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9285. var _glDrawArrays=env._glDrawArrays;
  9286. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9287. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9288. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9289. var _glCompileShader=env._glCompileShader;
  9290. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9291. var _glfwGetMouseButton=env._glfwGetMouseButton;
  9292. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9293. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9294. var _glActiveTexture=env._glActiveTexture;
  9295. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9296. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9297. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9298. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9299. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9300. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9301. var _glfwTerminate=env._glfwTerminate;
  9302. var _glFrontFace=env._glFrontFace;
  9303. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9304. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9305. var _glfwSwapInterval=env._glfwSwapInterval;
  9306. var _glUniform1i=env._glUniform1i;
  9307. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9308. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9309. var _abort=env._abort;
  9310. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9311. var _glDeleteBuffers=env._glDeleteBuffers;
  9312. var _glBufferData=env._glBufferData;
  9313. var _glTexImage2D=env._glTexImage2D;
  9314. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9315. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9316. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9317. var _glUniform1f=env._glUniform1f;
  9318. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9319. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9320. var _glDeleteShader=env._glDeleteShader;
  9321. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9322. var _glGetProgramiv=env._glGetProgramiv;
  9323. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9324. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9325. var _glfwGetTime=env._glfwGetTime;
  9326. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9327. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9328. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9329. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9330. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9331. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9332. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9333. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9334. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9335. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9336. var _glfwGetKey=env._glfwGetKey;
  9337. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9338. var _glLinkProgram=env._glLinkProgram;
  9339. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9340. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9341. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9342. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9343. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9344. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9345. var _glGetShaderiv=env._glGetShaderiv;
  9346. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9347. var _glGetUniformLocation=env._glGetUniformLocation;
  9348. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9349. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9350. var _glClear=env._glClear;
  9351. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9352. var _emscripten_glDisable=env._emscripten_glDisable;
  9353. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9354. var __exit=env.__exit;
  9355. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9356. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9357. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9358. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9359. var _glBindAttribLocation=env._glBindAttribLocation;
  9360. var _glPixelStorei=env._glPixelStorei;
  9361. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9362. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9363. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9364. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9365. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9366. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9367. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9368. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9369. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9370. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9371. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9372. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9373. var ___syscall54=env.___syscall54;
  9374. var ___unlock=env.___unlock;
  9375. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9376. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9377. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9378. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9379. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9380. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9381. var _glfwWindowHint=env._glfwWindowHint;
  9382. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9383. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9384. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9385. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9386. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9387. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9388. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9389. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9390. var _glTexParameteri=env._glTexParameteri;
  9391. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9392. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9393. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9394. var _glClearColor=env._glClearColor;
  9395. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9396. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9397. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9398. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9399. var tempFloat = 0.0;
  9400. // EMSCRIPTEN_START_FUNCS
  9401. function stackAlloc(size) {
  9402. size = size|0;
  9403. var ret = 0;
  9404. ret = STACKTOP;
  9405. STACKTOP = (STACKTOP + size)|0;
  9406. STACKTOP = (STACKTOP + 15)&-16;
  9407. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9408. return ret|0;
  9409. }
  9410. function stackSave() {
  9411. return STACKTOP|0;
  9412. }
  9413. function stackRestore(top) {
  9414. top = top|0;
  9415. STACKTOP = top;
  9416. }
  9417. function establishStackSpace(stackBase, stackMax) {
  9418. stackBase = stackBase|0;
  9419. stackMax = stackMax|0;
  9420. STACKTOP = stackBase;
  9421. STACK_MAX = stackMax;
  9422. }
  9423. function setThrew(threw, value) {
  9424. threw = threw|0;
  9425. value = value|0;
  9426. if ((__THREW__|0) == 0) {
  9427. __THREW__ = threw;
  9428. threwValue = value;
  9429. }
  9430. }
  9431. function setTempRet0(value) {
  9432. value = value|0;
  9433. tempRet0 = value;
  9434. }
  9435. function getTempRet0() {
  9436. return tempRet0|0;
  9437. }
  9438. function _main() {
  9439. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $dwarf$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9440. sp = STACKTOP;
  9441. STACKTOP = STACKTOP + 608|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(608|0);
  9442. $dwarf$byval_copy = sp + 344|0;
  9443. $0 = sp + 80|0;
  9444. $1 = sp + 56|0;
  9445. $2 = sp;
  9446. _SetConfigFlags(32);
  9447. $3 = HEAP32[2]|0;
  9448. $4 = HEAP32[3]|0;
  9449. _InitWindow($3,$4,4448);
  9450. _LoadModel($0,4488);
  9451. _memcpy((18444|0),($0|0),264)|0;
  9452. _LoadTexture($1,4514);
  9453. ;HEAP32[18708>>2]=HEAP32[$1>>2]|0;HEAP32[18708+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[18708+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[18708+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[18708+16>>2]=HEAP32[$1+16>>2]|0;
  9454. _LoadShader($2,4548,4582);
  9455. dest=18728; 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));
  9456. dest=(18576); 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));
  9457. ;HEAP32[(18632)>>2]=HEAP32[18708>>2]|0;HEAP32[(18632)+4>>2]=HEAP32[18708+4>>2]|0;HEAP32[(18632)+8>>2]=HEAP32[18708+8>>2]|0;HEAP32[(18632)+12>>2]=HEAP32[18708+12>>2]|0;HEAP32[(18632)+16>>2]=HEAP32[18708+16>>2]|0;
  9458. dest=$dwarf$byval_copy; src=16; stop=dest+40|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9459. _SetCameraMode($dwarf$byval_copy,2);
  9460. _emscripten_set_main_loop((1|0),0,1);
  9461. dest=$dwarf$byval_copy; src=18728; 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));
  9462. _UnloadShader($dwarf$byval_copy);
  9463. ;HEAP32[$dwarf$byval_copy>>2]=HEAP32[18708>>2]|0;HEAP32[$dwarf$byval_copy+4>>2]=HEAP32[18708+4>>2]|0;HEAP32[$dwarf$byval_copy+8>>2]=HEAP32[18708+8>>2]|0;HEAP32[$dwarf$byval_copy+12>>2]=HEAP32[18708+12>>2]|0;HEAP32[$dwarf$byval_copy+16>>2]=HEAP32[18708+16>>2]|0;
  9464. _UnloadTexture($dwarf$byval_copy);
  9465. _memcpy(($dwarf$byval_copy|0),(18444|0),264)|0;
  9466. _UnloadModel($dwarf$byval_copy);
  9467. _CloseWindow();
  9468. STACKTOP = sp;return 0;
  9469. }
  9470. function _UpdateDrawFrame() {
  9471. var $$byval_copy1 = 0, $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, $dwarf$byval_copy = 0, $position$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0;
  9472. var stop = 0;
  9473. sp = STACKTOP;
  9474. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  9475. $$byval_copy1 = sp + 288|0;
  9476. $position$byval_copy = sp + 272|0;
  9477. $dwarf$byval_copy = sp + 8|0;
  9478. $0 = sp + 332|0;
  9479. $1 = sp;
  9480. $2 = sp + 328|0;
  9481. _UpdateCamera(16);
  9482. _BeginDrawing();
  9483. HEAP8[$0>>0] = -11;
  9484. $3 = ((($0)) + 1|0);
  9485. HEAP8[$3>>0] = -11;
  9486. $4 = ((($0)) + 2|0);
  9487. HEAP8[$4>>0] = -11;
  9488. $5 = ((($0)) + 3|0);
  9489. HEAP8[$5>>0] = -1;
  9490. ;HEAP8[$$byval_copy1>>0]=HEAP8[$0>>0]|0;HEAP8[$$byval_copy1+1>>0]=HEAP8[$0+1>>0]|0;HEAP8[$$byval_copy1+2>>0]=HEAP8[$0+2>>0]|0;HEAP8[$$byval_copy1+3>>0]=HEAP8[$0+3>>0]|0;
  9491. _ClearBackground($$byval_copy1);
  9492. dest=$$byval_copy1; src=16; stop=dest+40|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9493. _Begin3dMode($$byval_copy1);
  9494. HEAP32[$1>>2] = -1;
  9495. _memcpy(($dwarf$byval_copy|0),(18444|0),264)|0;
  9496. ;HEAP32[$position$byval_copy>>2]=HEAP32[18432>>2]|0;HEAP32[$position$byval_copy+4>>2]=HEAP32[18432+4>>2]|0;HEAP32[$position$byval_copy+8>>2]=HEAP32[18432+8>>2]|0;
  9497. ;HEAP8[$$byval_copy1>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy1+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy1+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy1+3>>0]=HEAP8[$1+3>>0]|0;
  9498. _DrawModel($dwarf$byval_copy,$position$byval_copy,2.0,$$byval_copy1);
  9499. _DrawGrid(10,1.0);
  9500. _End3dMode();
  9501. $6 = HEAP32[2]|0;
  9502. $7 = (($6) + -200)|0;
  9503. $8 = HEAP32[3]|0;
  9504. $9 = (($8) + -20)|0;
  9505. HEAP8[$2>>0] = -126;
  9506. $10 = ((($2)) + 1|0);
  9507. HEAP8[$10>>0] = -126;
  9508. $11 = ((($2)) + 2|0);
  9509. HEAP8[$11>>0] = -126;
  9510. $12 = ((($2)) + 3|0);
  9511. HEAP8[$12>>0] = -1;
  9512. ;HEAP8[$$byval_copy1>>0]=HEAP8[$2>>0]|0;HEAP8[$$byval_copy1+1>>0]=HEAP8[$2+1>>0]|0;HEAP8[$$byval_copy1+2>>0]=HEAP8[$2+2>>0]|0;HEAP8[$$byval_copy1+3>>0]=HEAP8[$2+3>>0]|0;
  9513. _DrawText(4621,$7,$9,10,$$byval_copy1);
  9514. _DrawFPS(10,10);
  9515. _EndDrawing();
  9516. STACKTOP = sp;return;
  9517. }
  9518. function _Vector2Distance($0,$1) {
  9519. $0 = $0|0;
  9520. $1 = $1|0;
  9521. 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;
  9522. sp = STACKTOP;
  9523. $2 = +HEAPF32[$0>>2];
  9524. $3 = +HEAPF32[$1>>2];
  9525. $4 = $2 - $3;
  9526. $5 = $4 * $4;
  9527. $6 = ((($0)) + 4|0);
  9528. $7 = +HEAPF32[$6>>2];
  9529. $8 = ((($1)) + 4|0);
  9530. $9 = +HEAPF32[$8>>2];
  9531. $10 = $7 - $9;
  9532. $11 = $10 * $10;
  9533. $12 = $5 + $11;
  9534. $13 = (+Math_sqrt((+$12)));
  9535. return (+$13);
  9536. }
  9537. function _Vector2Angle($0,$1) {
  9538. $0 = $0|0;
  9539. $1 = $1|0;
  9540. 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;
  9541. sp = STACKTOP;
  9542. $2 = ((($1)) + 4|0);
  9543. $3 = +HEAPF32[$2>>2];
  9544. $4 = ((($0)) + 4|0);
  9545. $5 = +HEAPF32[$4>>2];
  9546. $6 = $3 - $5;
  9547. $7 = +HEAPF32[$1>>2];
  9548. $8 = +HEAPF32[$0>>2];
  9549. $9 = $7 - $8;
  9550. $10 = (+Math_atan2((+$6),(+$9)));
  9551. $11 = $10 * 57.2957763671875;
  9552. $12 = $11 < 0.0;
  9553. $13 = $11 + 360.0;
  9554. $$0 = $12 ? $13 : $11;
  9555. return (+$$0);
  9556. }
  9557. function _VectorZero($0) {
  9558. $0 = $0|0;
  9559. var $1 = 0, $2 = 0, label = 0, sp = 0;
  9560. sp = STACKTOP;
  9561. HEAPF32[$0>>2] = 0.0;
  9562. $1 = ((($0)) + 4|0);
  9563. HEAPF32[$1>>2] = 0.0;
  9564. $2 = ((($0)) + 8|0);
  9565. HEAPF32[$2>>2] = 0.0;
  9566. return;
  9567. }
  9568. function _VectorSubtract($0,$1,$2) {
  9569. $0 = $0|0;
  9570. $1 = $1|0;
  9571. $2 = $2|0;
  9572. var $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0.0, $17 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9573. sp = STACKTOP;
  9574. $3 = +HEAPF32[$1>>2];
  9575. $4 = +HEAPF32[$2>>2];
  9576. $5 = $3 - $4;
  9577. HEAPF32[$0>>2] = $5;
  9578. $6 = ((($0)) + 4|0);
  9579. $7 = ((($1)) + 4|0);
  9580. $8 = +HEAPF32[$7>>2];
  9581. $9 = ((($2)) + 4|0);
  9582. $10 = +HEAPF32[$9>>2];
  9583. $11 = $8 - $10;
  9584. HEAPF32[$6>>2] = $11;
  9585. $12 = ((($0)) + 8|0);
  9586. $13 = ((($1)) + 8|0);
  9587. $14 = +HEAPF32[$13>>2];
  9588. $15 = ((($2)) + 8|0);
  9589. $16 = +HEAPF32[$15>>2];
  9590. $17 = $14 - $16;
  9591. HEAPF32[$12>>2] = $17;
  9592. return;
  9593. }
  9594. function _VectorCrossProduct($0,$1,$2) {
  9595. $0 = $0|0;
  9596. $1 = $1|0;
  9597. $2 = $2|0;
  9598. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $3 = 0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0;
  9599. var $9 = 0.0, label = 0, sp = 0;
  9600. sp = STACKTOP;
  9601. $3 = ((($1)) + 4|0);
  9602. $4 = +HEAPF32[$3>>2];
  9603. $5 = ((($2)) + 8|0);
  9604. $6 = +HEAPF32[$5>>2];
  9605. $7 = $4 * $6;
  9606. $8 = ((($1)) + 8|0);
  9607. $9 = +HEAPF32[$8>>2];
  9608. $10 = ((($2)) + 4|0);
  9609. $11 = +HEAPF32[$10>>2];
  9610. $12 = $9 * $11;
  9611. $13 = $7 - $12;
  9612. $14 = +HEAPF32[$2>>2];
  9613. $15 = $9 * $14;
  9614. $16 = +HEAPF32[$1>>2];
  9615. $17 = $6 * $16;
  9616. $18 = $15 - $17;
  9617. $19 = $11 * $16;
  9618. $20 = $4 * $14;
  9619. $21 = $19 - $20;
  9620. HEAPF32[$0>>2] = $13;
  9621. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  9622. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $18;
  9623. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  9624. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $21;
  9625. return;
  9626. }
  9627. function _VectorLength($0) {
  9628. $0 = $0|0;
  9629. 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;
  9630. sp = STACKTOP;
  9631. $1 = +HEAPF32[$0>>2];
  9632. $2 = $1 * $1;
  9633. $3 = ((($0)) + 4|0);
  9634. $4 = +HEAPF32[$3>>2];
  9635. $5 = $4 * $4;
  9636. $6 = $2 + $5;
  9637. $7 = ((($0)) + 8|0);
  9638. $8 = +HEAPF32[$7>>2];
  9639. $9 = $8 * $8;
  9640. $10 = $6 + $9;
  9641. $11 = (+Math_sqrt((+$10)));
  9642. return (+$11);
  9643. }
  9644. function _VectorScale($0,$1) {
  9645. $0 = $0|0;
  9646. $1 = +$1;
  9647. var $2 = 0.0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  9648. sp = STACKTOP;
  9649. $2 = +HEAPF32[$0>>2];
  9650. $3 = $2 * $1;
  9651. HEAPF32[$0>>2] = $3;
  9652. $4 = ((($0)) + 4|0);
  9653. $5 = +HEAPF32[$4>>2];
  9654. $6 = $5 * $1;
  9655. HEAPF32[$4>>2] = $6;
  9656. $7 = ((($0)) + 8|0);
  9657. $8 = +HEAPF32[$7>>2];
  9658. $9 = $8 * $1;
  9659. HEAPF32[$7>>2] = $9;
  9660. return;
  9661. }
  9662. function _VectorNormalize($0) {
  9663. $0 = $0|0;
  9664. 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;
  9665. sp = STACKTOP;
  9666. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  9667. $$byval_copy = sp;
  9668. ;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;
  9669. $1 = (+_VectorLength($$byval_copy));
  9670. $2 = $1 == 0.0;
  9671. $$op = 1.0 / $1;
  9672. $3 = $2 ? 1.0 : $$op;
  9673. $4 = +HEAPF32[$0>>2];
  9674. $5 = $4 * $3;
  9675. HEAPF32[$0>>2] = $5;
  9676. $6 = ((($0)) + 4|0);
  9677. $7 = +HEAPF32[$6>>2];
  9678. $8 = $3 * $7;
  9679. HEAPF32[$6>>2] = $8;
  9680. $9 = ((($0)) + 8|0);
  9681. $10 = +HEAPF32[$9>>2];
  9682. $11 = $3 * $10;
  9683. HEAPF32[$9>>2] = $11;
  9684. STACKTOP = sp;return;
  9685. }
  9686. function _VectorTransform($0,$1) {
  9687. $0 = $0|0;
  9688. $1 = $1|0;
  9689. 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;
  9690. 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;
  9691. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9692. sp = STACKTOP;
  9693. $2 = +HEAPF32[$0>>2];
  9694. $3 = ((($0)) + 4|0);
  9695. $4 = +HEAPF32[$3>>2];
  9696. $5 = ((($0)) + 8|0);
  9697. $6 = +HEAPF32[$5>>2];
  9698. $7 = +HEAPF32[$1>>2];
  9699. $8 = $2 * $7;
  9700. $9 = ((($1)) + 4|0);
  9701. $10 = +HEAPF32[$9>>2];
  9702. $11 = $4 * $10;
  9703. $12 = $8 + $11;
  9704. $13 = ((($1)) + 8|0);
  9705. $14 = +HEAPF32[$13>>2];
  9706. $15 = $6 * $14;
  9707. $16 = $12 + $15;
  9708. $17 = ((($1)) + 12|0);
  9709. $18 = +HEAPF32[$17>>2];
  9710. $19 = $18 + $16;
  9711. HEAPF32[$0>>2] = $19;
  9712. $20 = ((($1)) + 16|0);
  9713. $21 = +HEAPF32[$20>>2];
  9714. $22 = $2 * $21;
  9715. $23 = ((($1)) + 20|0);
  9716. $24 = +HEAPF32[$23>>2];
  9717. $25 = $4 * $24;
  9718. $26 = $22 + $25;
  9719. $27 = ((($1)) + 24|0);
  9720. $28 = +HEAPF32[$27>>2];
  9721. $29 = $6 * $28;
  9722. $30 = $26 + $29;
  9723. $31 = ((($1)) + 28|0);
  9724. $32 = +HEAPF32[$31>>2];
  9725. $33 = $32 + $30;
  9726. HEAPF32[$3>>2] = $33;
  9727. $34 = ((($1)) + 32|0);
  9728. $35 = +HEAPF32[$34>>2];
  9729. $36 = $2 * $35;
  9730. $37 = ((($1)) + 36|0);
  9731. $38 = +HEAPF32[$37>>2];
  9732. $39 = $4 * $38;
  9733. $40 = $36 + $39;
  9734. $41 = ((($1)) + 40|0);
  9735. $42 = +HEAPF32[$41>>2];
  9736. $43 = $6 * $42;
  9737. $44 = $40 + $43;
  9738. $45 = ((($1)) + 44|0);
  9739. $46 = +HEAPF32[$45>>2];
  9740. $47 = $46 + $44;
  9741. HEAPF32[$5>>2] = $47;
  9742. return;
  9743. }
  9744. function _MatrixTranspose($0) {
  9745. $0 = $0|0;
  9746. 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;
  9747. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  9748. sp = STACKTOP;
  9749. $1 = ((($0)) + 4|0);
  9750. $2 = HEAP32[$1>>2]|0;
  9751. $3 = ((($0)) + 8|0);
  9752. $4 = HEAP32[$3>>2]|0;
  9753. $5 = ((($0)) + 12|0);
  9754. $6 = HEAP32[$5>>2]|0;
  9755. $7 = ((($0)) + 16|0);
  9756. $8 = HEAP32[$7>>2]|0;
  9757. $9 = ((($0)) + 24|0);
  9758. $10 = HEAP32[$9>>2]|0;
  9759. $11 = ((($0)) + 28|0);
  9760. $12 = HEAP32[$11>>2]|0;
  9761. $13 = ((($0)) + 32|0);
  9762. $14 = HEAP32[$13>>2]|0;
  9763. $15 = ((($0)) + 36|0);
  9764. $16 = HEAP32[$15>>2]|0;
  9765. $17 = ((($0)) + 44|0);
  9766. $18 = HEAP32[$17>>2]|0;
  9767. $19 = ((($0)) + 48|0);
  9768. $20 = HEAP32[$19>>2]|0;
  9769. $21 = ((($0)) + 52|0);
  9770. $22 = HEAP32[$21>>2]|0;
  9771. $23 = ((($0)) + 56|0);
  9772. $24 = HEAP32[$23>>2]|0;
  9773. HEAP32[$1>>2] = $8;
  9774. HEAP32[$3>>2] = $14;
  9775. HEAP32[$5>>2] = $20;
  9776. HEAP32[$7>>2] = $2;
  9777. HEAP32[$9>>2] = $16;
  9778. HEAP32[$11>>2] = $22;
  9779. HEAP32[$13>>2] = $4;
  9780. HEAP32[$15>>2] = $10;
  9781. HEAP32[$17>>2] = $24;
  9782. HEAP32[$19>>2] = $6;
  9783. HEAP32[$21>>2] = $12;
  9784. HEAP32[$23>>2] = $18;
  9785. return;
  9786. }
  9787. function _MatrixInvert($0) {
  9788. $0 = $0|0;
  9789. var $1 = 0.0, $10 = 0, $100 = 0.0, $101 = 0.0, $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0.0, $106 = 0.0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0.0, $110 = 0.0, $111 = 0.0, $112 = 0.0, $113 = 0.0, $114 = 0.0, $115 = 0.0, $116 = 0.0;
  9790. var $117 = 0.0, $118 = 0.0, $119 = 0.0, $12 = 0, $120 = 0.0, $121 = 0.0, $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0.0, $130 = 0.0, $131 = 0.0, $132 = 0.0, $133 = 0.0, $134 = 0.0;
  9791. var $135 = 0.0, $136 = 0.0, $137 = 0.0, $138 = 0.0, $139 = 0.0, $14 = 0, $140 = 0.0, $141 = 0.0, $142 = 0.0, $143 = 0.0, $144 = 0.0, $145 = 0.0, $146 = 0.0, $147 = 0.0, $148 = 0.0, $149 = 0.0, $15 = 0.0, $150 = 0.0, $151 = 0.0, $152 = 0.0;
  9792. var $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0.0, $157 = 0.0, $158 = 0.0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0.0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0.0, $166 = 0.0, $167 = 0.0, $168 = 0.0, $169 = 0.0, $17 = 0.0, $170 = 0.0;
  9793. var $171 = 0.0, $172 = 0.0, $173 = 0.0, $174 = 0.0, $175 = 0.0, $176 = 0.0, $177 = 0.0, $18 = 0, $19 = 0.0, $2 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0.0, $24 = 0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0, $29 = 0.0;
  9794. var $3 = 0.0, $30 = 0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0.0, $42 = 0.0, $43 = 0.0, $44 = 0.0, $45 = 0.0, $46 = 0.0, $47 = 0.0;
  9795. var $48 = 0.0, $49 = 0.0, $5 = 0.0, $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0, $65 = 0.0;
  9796. var $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0, $7 = 0.0, $70 = 0.0, $71 = 0.0, $72 = 0.0, $73 = 0.0, $74 = 0.0, $75 = 0.0, $76 = 0.0, $77 = 0.0, $78 = 0.0, $79 = 0.0, $8 = 0, $80 = 0.0, $81 = 0.0, $82 = 0.0, $83 = 0.0;
  9797. var $84 = 0.0, $85 = 0.0, $86 = 0.0, $87 = 0.0, $88 = 0.0, $89 = 0.0, $9 = 0.0, $90 = 0.0, $91 = 0.0, $92 = 0.0, $93 = 0.0, $94 = 0.0, $95 = 0.0, $96 = 0.0, $97 = 0.0, $98 = 0.0, $99 = 0.0, label = 0, sp = 0;
  9798. sp = STACKTOP;
  9799. $1 = +HEAPF32[$0>>2];
  9800. $2 = ((($0)) + 16|0);
  9801. $3 = +HEAPF32[$2>>2];
  9802. $4 = ((($0)) + 32|0);
  9803. $5 = +HEAPF32[$4>>2];
  9804. $6 = ((($0)) + 48|0);
  9805. $7 = +HEAPF32[$6>>2];
  9806. $8 = ((($0)) + 4|0);
  9807. $9 = +HEAPF32[$8>>2];
  9808. $10 = ((($0)) + 20|0);
  9809. $11 = +HEAPF32[$10>>2];
  9810. $12 = ((($0)) + 36|0);
  9811. $13 = +HEAPF32[$12>>2];
  9812. $14 = ((($0)) + 52|0);
  9813. $15 = +HEAPF32[$14>>2];
  9814. $16 = ((($0)) + 8|0);
  9815. $17 = +HEAPF32[$16>>2];
  9816. $18 = ((($0)) + 24|0);
  9817. $19 = +HEAPF32[$18>>2];
  9818. $20 = ((($0)) + 40|0);
  9819. $21 = +HEAPF32[$20>>2];
  9820. $22 = ((($0)) + 56|0);
  9821. $23 = +HEAPF32[$22>>2];
  9822. $24 = ((($0)) + 12|0);
  9823. $25 = +HEAPF32[$24>>2];
  9824. $26 = ((($0)) + 28|0);
  9825. $27 = +HEAPF32[$26>>2];
  9826. $28 = ((($0)) + 44|0);
  9827. $29 = +HEAPF32[$28>>2];
  9828. $30 = ((($0)) + 60|0);
  9829. $31 = +HEAPF32[$30>>2];
  9830. $32 = $1 * $11;
  9831. $33 = $3 * $9;
  9832. $34 = $32 - $33;
  9833. $35 = $1 * $13;
  9834. $36 = $5 * $9;
  9835. $37 = $35 - $36;
  9836. $38 = $1 * $15;
  9837. $39 = $7 * $9;
  9838. $40 = $38 - $39;
  9839. $41 = $3 * $13;
  9840. $42 = $5 * $11;
  9841. $43 = $41 - $42;
  9842. $44 = $3 * $15;
  9843. $45 = $7 * $11;
  9844. $46 = $44 - $45;
  9845. $47 = $5 * $15;
  9846. $48 = $7 * $13;
  9847. $49 = $47 - $48;
  9848. $50 = $17 * $27;
  9849. $51 = $19 * $25;
  9850. $52 = $50 - $51;
  9851. $53 = $17 * $29;
  9852. $54 = $21 * $25;
  9853. $55 = $53 - $54;
  9854. $56 = $17 * $31;
  9855. $57 = $23 * $25;
  9856. $58 = $56 - $57;
  9857. $59 = $19 * $29;
  9858. $60 = $21 * $27;
  9859. $61 = $59 - $60;
  9860. $62 = $19 * $31;
  9861. $63 = $23 * $27;
  9862. $64 = $62 - $63;
  9863. $65 = $21 * $31;
  9864. $66 = $23 * $29;
  9865. $67 = $65 - $66;
  9866. $68 = $34 * $67;
  9867. $69 = $37 * $64;
  9868. $70 = $68 - $69;
  9869. $71 = $40 * $61;
  9870. $72 = $71 + $70;
  9871. $73 = $43 * $58;
  9872. $74 = $73 + $72;
  9873. $75 = $46 * $55;
  9874. $76 = $74 - $75;
  9875. $77 = $49 * $52;
  9876. $78 = $77 + $76;
  9877. $79 = 1.0 / $78;
  9878. $80 = $11 * $67;
  9879. $81 = $13 * $64;
  9880. $82 = $80 - $81;
  9881. $83 = $15 * $61;
  9882. $84 = $83 + $82;
  9883. $85 = $84 * $79;
  9884. $86 = $3 * $67;
  9885. $87 = $5 * $64;
  9886. $88 = $87 - $86;
  9887. $89 = $7 * $61;
  9888. $90 = $88 - $89;
  9889. $91 = $90 * $79;
  9890. $92 = $49 * $27;
  9891. $93 = $46 * $29;
  9892. $94 = $92 - $93;
  9893. $95 = $43 * $31;
  9894. $96 = $94 + $95;
  9895. $97 = $96 * $79;
  9896. $98 = $19 * $49;
  9897. $99 = $46 * $21;
  9898. $100 = $99 - $98;
  9899. $101 = $43 * $23;
  9900. $102 = $100 - $101;
  9901. $103 = $102 * $79;
  9902. $104 = -$9;
  9903. $105 = $67 * $104;
  9904. $106 = $13 * $58;
  9905. $107 = $105 + $106;
  9906. $108 = $15 * $55;
  9907. $109 = $107 - $108;
  9908. $110 = $109 * $79;
  9909. $111 = $1 * $67;
  9910. $112 = $5 * $58;
  9911. $113 = $111 - $112;
  9912. $114 = $7 * $55;
  9913. $115 = $114 + $113;
  9914. $116 = $115 * $79;
  9915. $117 = -$25;
  9916. $118 = $49 * $117;
  9917. $119 = $40 * $29;
  9918. $120 = $118 + $119;
  9919. $121 = $37 * $31;
  9920. $122 = $120 - $121;
  9921. $123 = $122 * $79;
  9922. $124 = $17 * $49;
  9923. $125 = $40 * $21;
  9924. $126 = $124 - $125;
  9925. $127 = $37 * $23;
  9926. $128 = $126 + $127;
  9927. $129 = $128 * $79;
  9928. $130 = $9 * $64;
  9929. $131 = $11 * $58;
  9930. $132 = $130 - $131;
  9931. $133 = $15 * $52;
  9932. $134 = $133 + $132;
  9933. $135 = $134 * $79;
  9934. $136 = $1 * $64;
  9935. $137 = $3 * $58;
  9936. $138 = $137 - $136;
  9937. $139 = $7 * $52;
  9938. $140 = $138 - $139;
  9939. $141 = $140 * $79;
  9940. $142 = $46 * $25;
  9941. $143 = $40 * $27;
  9942. $144 = $142 - $143;
  9943. $145 = $34 * $31;
  9944. $146 = $144 + $145;
  9945. $147 = $146 * $79;
  9946. $148 = $17 * $46;
  9947. $149 = $19 * $40;
  9948. $150 = $149 - $148;
  9949. $151 = $34 * $23;
  9950. $152 = $150 - $151;
  9951. $153 = $152 * $79;
  9952. $154 = $61 * $104;
  9953. $155 = $11 * $55;
  9954. $156 = $154 + $155;
  9955. $157 = $13 * $52;
  9956. $158 = $156 - $157;
  9957. $159 = $158 * $79;
  9958. $160 = $1 * $61;
  9959. $161 = $3 * $55;
  9960. $162 = $160 - $161;
  9961. $163 = $5 * $52;
  9962. $164 = $163 + $162;
  9963. $165 = $164 * $79;
  9964. $166 = $43 * $117;
  9965. $167 = $37 * $27;
  9966. $168 = $166 + $167;
  9967. $169 = $34 * $29;
  9968. $170 = $168 - $169;
  9969. $171 = $170 * $79;
  9970. $172 = $17 * $43;
  9971. $173 = $37 * $19;
  9972. $174 = $172 - $173;
  9973. $175 = $34 * $21;
  9974. $176 = $174 + $175;
  9975. $177 = $176 * $79;
  9976. HEAPF32[$0>>2] = $85;
  9977. HEAPF32[$8>>2] = $110;
  9978. HEAPF32[$16>>2] = $135;
  9979. HEAPF32[$24>>2] = $159;
  9980. HEAPF32[$2>>2] = $91;
  9981. HEAPF32[$10>>2] = $116;
  9982. HEAPF32[$18>>2] = $141;
  9983. HEAPF32[$26>>2] = $165;
  9984. HEAPF32[$4>>2] = $97;
  9985. HEAPF32[$12>>2] = $123;
  9986. HEAPF32[$20>>2] = $147;
  9987. HEAPF32[$28>>2] = $171;
  9988. HEAPF32[$6>>2] = $103;
  9989. HEAPF32[$14>>2] = $129;
  9990. HEAPF32[$22>>2] = $153;
  9991. HEAPF32[$30>>2] = $177;
  9992. return;
  9993. }
  9994. function _MatrixIdentity($0) {
  9995. $0 = $0|0;
  9996. 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;
  9997. sp = STACKTOP;
  9998. HEAPF32[$0>>2] = 1.0;
  9999. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10000. ;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;
  10001. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10002. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  10003. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10004. ;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;
  10005. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10006. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  10007. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10008. ;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;
  10009. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10010. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10011. return;
  10012. }
  10013. function _MatrixTranslate($0,$1,$2,$3) {
  10014. $0 = $0|0;
  10015. $1 = +$1;
  10016. $2 = +$2;
  10017. $3 = +$3;
  10018. 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;
  10019. sp = STACKTOP;
  10020. HEAPF32[$0>>2] = 1.0;
  10021. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10022. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10023. ;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;
  10024. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  10025. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10026. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10027. ;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;
  10028. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  10029. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10030. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  10031. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10032. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  10033. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10034. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  10035. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10036. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  10037. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10038. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  10039. return;
  10040. }
  10041. function _MatrixRotate($0,$1,$2) {
  10042. $0 = $0|0;
  10043. $1 = $1|0;
  10044. $2 = +$2;
  10045. 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;
  10046. 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;
  10047. 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;
  10048. 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;
  10049. 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;
  10050. 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;
  10051. 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;
  10052. 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;
  10053. sp = STACKTOP;
  10054. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10055. $3 = sp;
  10056. _MatrixIdentity($3);
  10057. $4 = +HEAPF32[$1>>2];
  10058. $5 = ((($1)) + 4|0);
  10059. $6 = +HEAPF32[$5>>2];
  10060. $7 = ((($1)) + 8|0);
  10061. $8 = +HEAPF32[$7>>2];
  10062. $9 = $4 * $4;
  10063. $10 = $6 * $6;
  10064. $11 = $9 + $10;
  10065. $12 = $8 * $8;
  10066. $13 = $11 + $12;
  10067. $14 = (+Math_sqrt((+$13)));
  10068. $15 = $14 != 1.0;
  10069. $16 = $14 != 0.0;
  10070. $or$cond = $15 & $16;
  10071. $17 = 1.0 / $14;
  10072. $18 = $4 * $17;
  10073. $19 = $6 * $17;
  10074. $20 = $8 * $17;
  10075. $$ = $or$cond ? $20 : $8;
  10076. $$221 = $or$cond ? $19 : $6;
  10077. $$222 = $or$cond ? $18 : $4;
  10078. $21 = (+Math_sin((+$2)));
  10079. $22 = (+Math_cos((+$2)));
  10080. $23 = 1.0 - $22;
  10081. $24 = +HEAPF32[$3>>2];
  10082. $25 = ((($3)) + 16|0);
  10083. $26 = +HEAPF32[$25>>2];
  10084. $27 = ((($3)) + 32|0);
  10085. $28 = +HEAPF32[$27>>2];
  10086. $29 = ((($3)) + 48|0);
  10087. $30 = +HEAPF32[$29>>2];
  10088. $31 = ((($3)) + 4|0);
  10089. $32 = +HEAPF32[$31>>2];
  10090. $33 = ((($3)) + 20|0);
  10091. $34 = +HEAPF32[$33>>2];
  10092. $35 = ((($3)) + 36|0);
  10093. $36 = +HEAPF32[$35>>2];
  10094. $37 = ((($3)) + 52|0);
  10095. $38 = +HEAPF32[$37>>2];
  10096. $39 = ((($3)) + 8|0);
  10097. $40 = +HEAPF32[$39>>2];
  10098. $41 = ((($3)) + 24|0);
  10099. $42 = +HEAPF32[$41>>2];
  10100. $43 = ((($3)) + 40|0);
  10101. $44 = +HEAPF32[$43>>2];
  10102. $45 = ((($3)) + 56|0);
  10103. $46 = +HEAPF32[$45>>2];
  10104. $47 = $$222 * $$222;
  10105. $48 = $23 * $47;
  10106. $49 = $22 + $48;
  10107. $50 = $$221 * $$222;
  10108. $51 = $23 * $50;
  10109. $52 = $21 * $$;
  10110. $53 = $52 + $51;
  10111. $54 = $$ * $$222;
  10112. $55 = $23 * $54;
  10113. $56 = $21 * $$221;
  10114. $57 = $55 - $56;
  10115. $58 = $51 - $52;
  10116. $59 = $$221 * $$221;
  10117. $60 = $23 * $59;
  10118. $61 = $22 + $60;
  10119. $62 = $$ * $$221;
  10120. $63 = $23 * $62;
  10121. $64 = $21 * $$222;
  10122. $65 = $64 + $63;
  10123. $66 = $56 + $55;
  10124. $67 = $63 - $64;
  10125. $68 = $$ * $$;
  10126. $69 = $23 * $68;
  10127. $70 = $22 + $69;
  10128. $71 = $24 * $49;
  10129. $72 = $53 * $32;
  10130. $73 = $71 + $72;
  10131. $74 = $57 * $40;
  10132. $75 = $73 + $74;
  10133. $76 = $26 * $49;
  10134. $77 = $53 * $34;
  10135. $78 = $76 + $77;
  10136. $79 = $57 * $42;
  10137. $80 = $78 + $79;
  10138. $81 = $28 * $49;
  10139. $82 = $53 * $36;
  10140. $83 = $81 + $82;
  10141. $84 = $57 * $44;
  10142. $85 = $83 + $84;
  10143. $86 = $30 * $49;
  10144. $87 = $53 * $38;
  10145. $88 = $86 + $87;
  10146. $89 = $57 * $46;
  10147. $90 = $88 + $89;
  10148. $91 = $24 * $58;
  10149. $92 = $61 * $32;
  10150. $93 = $91 + $92;
  10151. $94 = $65 * $40;
  10152. $95 = $93 + $94;
  10153. $96 = $26 * $58;
  10154. $97 = $61 * $34;
  10155. $98 = $96 + $97;
  10156. $99 = $65 * $42;
  10157. $100 = $98 + $99;
  10158. $101 = $28 * $58;
  10159. $102 = $61 * $36;
  10160. $103 = $101 + $102;
  10161. $104 = $65 * $44;
  10162. $105 = $103 + $104;
  10163. $106 = $30 * $58;
  10164. $107 = $61 * $38;
  10165. $108 = $106 + $107;
  10166. $109 = $65 * $46;
  10167. $110 = $108 + $109;
  10168. $111 = $24 * $66;
  10169. $112 = $67 * $32;
  10170. $113 = $111 + $112;
  10171. $114 = $70 * $40;
  10172. $115 = $113 + $114;
  10173. $116 = $26 * $66;
  10174. $117 = $67 * $34;
  10175. $118 = $116 + $117;
  10176. $119 = $70 * $42;
  10177. $120 = $118 + $119;
  10178. $121 = $28 * $66;
  10179. $122 = $67 * $36;
  10180. $123 = $121 + $122;
  10181. $124 = $70 * $44;
  10182. $125 = $123 + $124;
  10183. $126 = $30 * $66;
  10184. $127 = $67 * $38;
  10185. $128 = $126 + $127;
  10186. $129 = $70 * $46;
  10187. $130 = $128 + $129;
  10188. $131 = ((($3)) + 12|0);
  10189. $132 = HEAP32[$131>>2]|0;
  10190. $133 = ((($3)) + 28|0);
  10191. $134 = HEAP32[$133>>2]|0;
  10192. $135 = ((($3)) + 44|0);
  10193. $136 = HEAP32[$135>>2]|0;
  10194. $137 = ((($3)) + 60|0);
  10195. $138 = HEAP32[$137>>2]|0;
  10196. HEAPF32[$0>>2] = $75;
  10197. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  10198. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  10199. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  10200. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  10201. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  10202. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  10203. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  10204. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  10205. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  10206. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  10207. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  10208. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  10209. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  10210. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  10211. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  10212. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  10213. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  10214. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  10215. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  10216. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  10217. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  10218. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  10219. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  10220. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  10221. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  10222. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  10223. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  10224. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  10225. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  10226. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  10227. STACKTOP = sp;return;
  10228. }
  10229. function _MatrixScale($0,$1,$2,$3) {
  10230. $0 = $0|0;
  10231. $1 = +$1;
  10232. $2 = +$2;
  10233. $3 = +$3;
  10234. 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;
  10235. sp = STACKTOP;
  10236. HEAPF32[$0>>2] = $1;
  10237. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10238. ;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;
  10239. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10240. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  10241. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10242. ;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;
  10243. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10244. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  10245. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10246. ;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;
  10247. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10248. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10249. return;
  10250. }
  10251. function _MatrixMultiply($0,$1,$2) {
  10252. $0 = $0|0;
  10253. $1 = $1|0;
  10254. $2 = $2|0;
  10255. 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;
  10256. 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;
  10257. 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;
  10258. 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;
  10259. 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;
  10260. 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;
  10261. 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;
  10262. 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;
  10263. 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;
  10264. 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;
  10265. sp = STACKTOP;
  10266. $3 = +HEAPF32[$2>>2];
  10267. $4 = +HEAPF32[$1>>2];
  10268. $5 = $3 * $4;
  10269. $6 = ((($2)) + 16|0);
  10270. $7 = +HEAPF32[$6>>2];
  10271. $8 = ((($1)) + 4|0);
  10272. $9 = +HEAPF32[$8>>2];
  10273. $10 = $7 * $9;
  10274. $11 = $5 + $10;
  10275. $12 = ((($2)) + 32|0);
  10276. $13 = +HEAPF32[$12>>2];
  10277. $14 = ((($1)) + 8|0);
  10278. $15 = +HEAPF32[$14>>2];
  10279. $16 = $13 * $15;
  10280. $17 = $11 + $16;
  10281. $18 = ((($2)) + 48|0);
  10282. $19 = +HEAPF32[$18>>2];
  10283. $20 = ((($1)) + 12|0);
  10284. $21 = +HEAPF32[$20>>2];
  10285. $22 = $19 * $21;
  10286. $23 = $17 + $22;
  10287. $24 = ((($1)) + 16|0);
  10288. $25 = +HEAPF32[$24>>2];
  10289. $26 = $3 * $25;
  10290. $27 = ((($1)) + 20|0);
  10291. $28 = +HEAPF32[$27>>2];
  10292. $29 = $7 * $28;
  10293. $30 = $26 + $29;
  10294. $31 = ((($1)) + 24|0);
  10295. $32 = +HEAPF32[$31>>2];
  10296. $33 = $13 * $32;
  10297. $34 = $30 + $33;
  10298. $35 = ((($1)) + 28|0);
  10299. $36 = +HEAPF32[$35>>2];
  10300. $37 = $19 * $36;
  10301. $38 = $34 + $37;
  10302. $39 = ((($1)) + 32|0);
  10303. $40 = +HEAPF32[$39>>2];
  10304. $41 = $3 * $40;
  10305. $42 = ((($1)) + 36|0);
  10306. $43 = +HEAPF32[$42>>2];
  10307. $44 = $7 * $43;
  10308. $45 = $41 + $44;
  10309. $46 = ((($1)) + 40|0);
  10310. $47 = +HEAPF32[$46>>2];
  10311. $48 = $13 * $47;
  10312. $49 = $45 + $48;
  10313. $50 = ((($1)) + 44|0);
  10314. $51 = +HEAPF32[$50>>2];
  10315. $52 = $19 * $51;
  10316. $53 = $49 + $52;
  10317. $54 = ((($1)) + 48|0);
  10318. $55 = +HEAPF32[$54>>2];
  10319. $56 = $3 * $55;
  10320. $57 = ((($1)) + 52|0);
  10321. $58 = +HEAPF32[$57>>2];
  10322. $59 = $7 * $58;
  10323. $60 = $56 + $59;
  10324. $61 = ((($1)) + 56|0);
  10325. $62 = +HEAPF32[$61>>2];
  10326. $63 = $13 * $62;
  10327. $64 = $60 + $63;
  10328. $65 = ((($1)) + 60|0);
  10329. $66 = +HEAPF32[$65>>2];
  10330. $67 = $19 * $66;
  10331. $68 = $64 + $67;
  10332. $69 = ((($2)) + 4|0);
  10333. $70 = +HEAPF32[$69>>2];
  10334. $71 = $4 * $70;
  10335. $72 = ((($2)) + 20|0);
  10336. $73 = +HEAPF32[$72>>2];
  10337. $74 = $9 * $73;
  10338. $75 = $71 + $74;
  10339. $76 = ((($2)) + 36|0);
  10340. $77 = +HEAPF32[$76>>2];
  10341. $78 = $15 * $77;
  10342. $79 = $75 + $78;
  10343. $80 = ((($2)) + 52|0);
  10344. $81 = +HEAPF32[$80>>2];
  10345. $82 = $21 * $81;
  10346. $83 = $79 + $82;
  10347. $84 = $25 * $70;
  10348. $85 = $28 * $73;
  10349. $86 = $84 + $85;
  10350. $87 = $32 * $77;
  10351. $88 = $86 + $87;
  10352. $89 = $36 * $81;
  10353. $90 = $88 + $89;
  10354. $91 = $40 * $70;
  10355. $92 = $43 * $73;
  10356. $93 = $91 + $92;
  10357. $94 = $47 * $77;
  10358. $95 = $93 + $94;
  10359. $96 = $51 * $81;
  10360. $97 = $95 + $96;
  10361. $98 = $55 * $70;
  10362. $99 = $58 * $73;
  10363. $100 = $98 + $99;
  10364. $101 = $62 * $77;
  10365. $102 = $100 + $101;
  10366. $103 = $66 * $81;
  10367. $104 = $102 + $103;
  10368. $105 = ((($2)) + 8|0);
  10369. $106 = +HEAPF32[$105>>2];
  10370. $107 = $4 * $106;
  10371. $108 = ((($2)) + 24|0);
  10372. $109 = +HEAPF32[$108>>2];
  10373. $110 = $9 * $109;
  10374. $111 = $107 + $110;
  10375. $112 = ((($2)) + 40|0);
  10376. $113 = +HEAPF32[$112>>2];
  10377. $114 = $15 * $113;
  10378. $115 = $111 + $114;
  10379. $116 = ((($2)) + 56|0);
  10380. $117 = +HEAPF32[$116>>2];
  10381. $118 = $21 * $117;
  10382. $119 = $115 + $118;
  10383. $120 = $25 * $106;
  10384. $121 = $28 * $109;
  10385. $122 = $120 + $121;
  10386. $123 = $32 * $113;
  10387. $124 = $122 + $123;
  10388. $125 = $36 * $117;
  10389. $126 = $124 + $125;
  10390. $127 = $40 * $106;
  10391. $128 = $43 * $109;
  10392. $129 = $127 + $128;
  10393. $130 = $47 * $113;
  10394. $131 = $129 + $130;
  10395. $132 = $51 * $117;
  10396. $133 = $131 + $132;
  10397. $134 = $55 * $106;
  10398. $135 = $58 * $109;
  10399. $136 = $134 + $135;
  10400. $137 = $62 * $113;
  10401. $138 = $136 + $137;
  10402. $139 = $66 * $117;
  10403. $140 = $138 + $139;
  10404. $141 = ((($2)) + 12|0);
  10405. $142 = +HEAPF32[$141>>2];
  10406. $143 = $4 * $142;
  10407. $144 = ((($2)) + 28|0);
  10408. $145 = +HEAPF32[$144>>2];
  10409. $146 = $9 * $145;
  10410. $147 = $143 + $146;
  10411. $148 = ((($2)) + 44|0);
  10412. $149 = +HEAPF32[$148>>2];
  10413. $150 = $15 * $149;
  10414. $151 = $147 + $150;
  10415. $152 = ((($2)) + 60|0);
  10416. $153 = +HEAPF32[$152>>2];
  10417. $154 = $21 * $153;
  10418. $155 = $151 + $154;
  10419. $156 = $25 * $142;
  10420. $157 = $28 * $145;
  10421. $158 = $156 + $157;
  10422. $159 = $32 * $149;
  10423. $160 = $158 + $159;
  10424. $161 = $36 * $153;
  10425. $162 = $160 + $161;
  10426. $163 = $40 * $142;
  10427. $164 = $43 * $145;
  10428. $165 = $163 + $164;
  10429. $166 = $47 * $149;
  10430. $167 = $165 + $166;
  10431. $168 = $51 * $153;
  10432. $169 = $167 + $168;
  10433. $170 = $55 * $142;
  10434. $171 = $58 * $145;
  10435. $172 = $170 + $171;
  10436. $173 = $62 * $149;
  10437. $174 = $172 + $173;
  10438. $175 = $66 * $153;
  10439. $176 = $174 + $175;
  10440. HEAPF32[$0>>2] = $23;
  10441. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10442. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  10443. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10444. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  10445. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10446. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  10447. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10448. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  10449. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10450. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  10451. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10452. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  10453. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10454. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  10455. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10456. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  10457. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10458. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  10459. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10460. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  10461. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10462. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  10463. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10464. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  10465. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10466. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  10467. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10468. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  10469. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10470. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  10471. return;
  10472. }
  10473. function _MatrixFrustum($0,$1,$2,$3,$4,$5,$6) {
  10474. $0 = $0|0;
  10475. $1 = +$1;
  10476. $2 = +$2;
  10477. $3 = +$3;
  10478. $4 = +$4;
  10479. $5 = +$5;
  10480. $6 = +$6;
  10481. 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;
  10482. var $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0;
  10483. var $35 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  10484. sp = STACKTOP;
  10485. $7 = $2 - $1;
  10486. $8 = $7;
  10487. $9 = $4 - $3;
  10488. $10 = $9;
  10489. $11 = $6 - $5;
  10490. $12 = $11;
  10491. $13 = $5 * 2.0;
  10492. $14 = $8;
  10493. $15 = $13 / $14;
  10494. $16 = $15;
  10495. $17 = $10;
  10496. $18 = $13 / $17;
  10497. $19 = $18;
  10498. $20 = $1 + $2;
  10499. $21 = $20 / $14;
  10500. $22 = $21;
  10501. $23 = $3 + $4;
  10502. $24 = $23 / $17;
  10503. $25 = $24;
  10504. $26 = $5 + $6;
  10505. $27 = -$26;
  10506. $28 = $12;
  10507. $29 = $27 / $28;
  10508. $30 = $29;
  10509. $31 = $5 * $6;
  10510. $32 = $31 * 2.0;
  10511. $33 = -$32;
  10512. $34 = $33 / $28;
  10513. $35 = $34;
  10514. HEAPF32[$0>>2] = $16;
  10515. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10516. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10517. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10518. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = $22;
  10519. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10520. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = 0.0;
  10521. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10522. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10523. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10524. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $19;
  10525. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10526. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = $25;
  10527. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10528. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = 0.0;
  10529. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10530. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10531. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10532. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10533. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10534. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $30;
  10535. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10536. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $35;
  10537. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10538. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10539. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10540. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10541. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10542. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = -1.0;
  10543. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10544. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 0.0;
  10545. return;
  10546. }
  10547. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  10548. $0 = $0|0;
  10549. $1 = +$1;
  10550. $2 = +$2;
  10551. $3 = +$3;
  10552. $4 = +$4;
  10553. $5 = +$5;
  10554. $6 = +$6;
  10555. 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;
  10556. 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;
  10557. var sp = 0;
  10558. sp = STACKTOP;
  10559. $7 = $2 - $1;
  10560. $8 = $7;
  10561. $9 = $4 - $3;
  10562. $10 = $9;
  10563. $11 = $6 - $5;
  10564. $12 = $11;
  10565. $13 = 2.0 / $8;
  10566. $14 = 2.0 / $10;
  10567. $15 = -2.0 / $12;
  10568. $16 = $1 + $2;
  10569. $17 = -$16;
  10570. $18 = $8;
  10571. $19 = $17 / $18;
  10572. $20 = $19;
  10573. $21 = $3 + $4;
  10574. $22 = -$21;
  10575. $23 = $10;
  10576. $24 = $22 / $23;
  10577. $25 = $24;
  10578. $26 = $5 + $6;
  10579. $27 = -$26;
  10580. $28 = $12;
  10581. $29 = $27 / $28;
  10582. $30 = $29;
  10583. HEAPF32[$0>>2] = $13;
  10584. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10585. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10586. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10587. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  10588. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10589. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  10590. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10591. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10592. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10593. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  10594. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10595. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  10596. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10597. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  10598. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10599. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10600. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10601. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10602. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10603. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  10604. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10605. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  10606. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10607. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10608. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10609. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10610. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10611. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  10612. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10613. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  10614. return;
  10615. }
  10616. function _MatrixLookAt($0,$1,$2,$3) {
  10617. $0 = $0|0;
  10618. $1 = $1|0;
  10619. $2 = $2|0;
  10620. $3 = $3|0;
  10621. var $$byval_copy4 = 0, $$byval_copy5 = 0, $$sroa$10$0$$sroa_idx14 = 0, $$sroa$11$0$$sroa_idx16 = 0, $$sroa$12$0$$sroa_idx18 = 0, $$sroa$13$0$$sroa_idx20 = 0, $$sroa$14$0$$sroa_idx22 = 0, $$sroa$15$0$$sroa_idx24 = 0, $$sroa$16$0$$sroa_idx26 = 0, $$sroa$17$0$$sroa_idx28 = 0, $$sroa$18$0$$sroa_idx30 = 0, $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $$sroa$6$0$$sroa_idx6 = 0, $$sroa$7$0$$sroa_idx8 = 0, $$sroa$8$0$$sroa_idx10 = 0, $$sroa$9$0$$sroa_idx12 = 0, $10 = 0, $11 = 0.0, $12 = 0.0;
  10622. var $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0.0;
  10623. var $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0.0, $42 = 0.0, $43 = 0.0, $44 = 0.0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  10624. sp = STACKTOP;
  10625. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10626. $$byval_copy5 = sp + 48|0;
  10627. $$byval_copy4 = sp + 36|0;
  10628. $4 = sp + 24|0;
  10629. $5 = sp + 12|0;
  10630. $6 = sp;
  10631. ;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;
  10632. ;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;
  10633. _VectorSubtract($4,$$byval_copy4,$$byval_copy5);
  10634. _VectorNormalize($4);
  10635. ;HEAP32[$$byval_copy4>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$3+8>>2]|0;
  10636. ;HEAP32[$$byval_copy5>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$4+8>>2]|0;
  10637. _VectorCrossProduct($5,$$byval_copy4,$$byval_copy5);
  10638. _VectorNormalize($5);
  10639. ;HEAP32[$$byval_copy4>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$4+8>>2]|0;
  10640. ;HEAP32[$$byval_copy5>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$5+8>>2]|0;
  10641. _VectorCrossProduct($6,$$byval_copy4,$$byval_copy5);
  10642. _VectorNormalize($6);
  10643. $7 = +HEAPF32[$5>>2];
  10644. $8 = ((($5)) + 4|0);
  10645. $9 = +HEAPF32[$8>>2];
  10646. $10 = ((($5)) + 8|0);
  10647. $11 = +HEAPF32[$10>>2];
  10648. $12 = +HEAPF32[$1>>2];
  10649. $13 = $7 * $12;
  10650. $14 = ((($1)) + 4|0);
  10651. $15 = +HEAPF32[$14>>2];
  10652. $16 = $9 * $15;
  10653. $17 = $13 + $16;
  10654. $18 = ((($1)) + 8|0);
  10655. $19 = +HEAPF32[$18>>2];
  10656. $20 = $11 * $19;
  10657. $21 = $17 + $20;
  10658. $22 = -$21;
  10659. $23 = +HEAPF32[$6>>2];
  10660. $24 = ((($6)) + 4|0);
  10661. $25 = +HEAPF32[$24>>2];
  10662. $26 = ((($6)) + 8|0);
  10663. $27 = +HEAPF32[$26>>2];
  10664. $28 = $12 * $23;
  10665. $29 = $15 * $25;
  10666. $30 = $28 + $29;
  10667. $31 = $19 * $27;
  10668. $32 = $30 + $31;
  10669. $33 = -$32;
  10670. $34 = +HEAPF32[$4>>2];
  10671. $35 = ((($4)) + 4|0);
  10672. $36 = +HEAPF32[$35>>2];
  10673. $37 = ((($4)) + 8|0);
  10674. $38 = +HEAPF32[$37>>2];
  10675. $39 = $12 * $34;
  10676. $40 = $15 * $36;
  10677. $41 = $39 + $40;
  10678. $42 = $19 * $38;
  10679. $43 = $41 + $42;
  10680. $44 = -$43;
  10681. HEAPF32[$0>>2] = $7;
  10682. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10683. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $23;
  10684. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10685. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $34;
  10686. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10687. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = 0.0;
  10688. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10689. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $9;
  10690. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10691. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $25;
  10692. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10693. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $36;
  10694. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10695. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = 0.0;
  10696. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10697. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $11;
  10698. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10699. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $27;
  10700. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10701. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $38;
  10702. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10703. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  10704. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10705. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $22;
  10706. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10707. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $33;
  10708. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10709. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $44;
  10710. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10711. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  10712. STACKTOP = sp;return;
  10713. }
  10714. function _ProcessGestureEvent($0) {
  10715. $0 = $0|0;
  10716. 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;
  10717. 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;
  10718. 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;
  10719. 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;
  10720. 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;
  10721. 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;
  10722. 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;
  10723. 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;
  10724. 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;
  10725. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  10726. sp = STACKTOP;
  10727. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10728. $moveDownPosition2$byval_copy12 = sp + 8|0;
  10729. $moveDownPosition$byval_copy11 = sp;
  10730. $1 = ((($0)) + 4|0);
  10731. $2 = HEAP32[$1>>2]|0;
  10732. HEAP32[4697] = $2;
  10733. $3 = ($2|0)<(2);
  10734. $4 = HEAP32[$0>>2]|0;
  10735. $5 = ($4|0)==(1);
  10736. if (!($3)) {
  10737. if ($5) {
  10738. $88 = ((($0)) + 24|0);
  10739. $89 = $88;
  10740. $90 = $89;
  10741. $91 = HEAP32[$90>>2]|0;
  10742. $92 = (($89) + 4)|0;
  10743. $93 = $92;
  10744. $94 = HEAP32[$93>>2]|0;
  10745. $95 = 18152;
  10746. $96 = $95;
  10747. HEAP32[$96>>2] = $91;
  10748. $97 = (($95) + 4)|0;
  10749. $98 = $97;
  10750. HEAP32[$98>>2] = $94;
  10751. $99 = ((($0)) + 32|0);
  10752. $100 = $99;
  10753. $101 = $100;
  10754. $102 = HEAP32[$101>>2]|0;
  10755. $103 = (($100) + 4)|0;
  10756. $104 = $103;
  10757. $105 = HEAP32[$104>>2]|0;
  10758. $106 = 18192;
  10759. $107 = $106;
  10760. HEAP32[$107>>2] = $102;
  10761. $108 = (($106) + 4)|0;
  10762. $109 = $108;
  10763. HEAP32[$109>>2] = $105;
  10764. $110 = +HEAPF32[4548];
  10765. $111 = +HEAPF32[4538];
  10766. $112 = $110 - $111;
  10767. HEAPF32[4550] = $112;
  10768. $113 = +HEAPF32[(18196)>>2];
  10769. $114 = +HEAPF32[(18156)>>2];
  10770. $115 = $113 - $114;
  10771. HEAPF32[(18204)>>2] = $115;
  10772. HEAP32[4696] = 4;
  10773. STACKTOP = sp;return;
  10774. }
  10775. switch ($4|0) {
  10776. case 2: {
  10777. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18184+4>>2]|0;
  10778. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18208+4>>2]|0;
  10779. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10780. HEAPF32[4702] = $116;
  10781. $117 = 18184;
  10782. $118 = $117;
  10783. $119 = HEAP32[$118>>2]|0;
  10784. $120 = (($117) + 4)|0;
  10785. $121 = $120;
  10786. $122 = HEAP32[$121>>2]|0;
  10787. $123 = 18152;
  10788. $124 = $123;
  10789. HEAP32[$124>>2] = $119;
  10790. $125 = (($123) + 4)|0;
  10791. $126 = $125;
  10792. HEAP32[$126>>2] = $122;
  10793. $127 = 18208;
  10794. $128 = $127;
  10795. $129 = HEAP32[$128>>2]|0;
  10796. $130 = (($127) + 4)|0;
  10797. $131 = $130;
  10798. $132 = HEAP32[$131>>2]|0;
  10799. $133 = 18192;
  10800. $134 = $133;
  10801. HEAP32[$134>>2] = $129;
  10802. $135 = (($133) + 4)|0;
  10803. $136 = $135;
  10804. HEAP32[$136>>2] = $132;
  10805. $137 = ((($0)) + 24|0);
  10806. $138 = $137;
  10807. $139 = $138;
  10808. $140 = HEAP32[$139>>2]|0;
  10809. $141 = (($138) + 4)|0;
  10810. $142 = $141;
  10811. $143 = HEAP32[$142>>2]|0;
  10812. $144 = 18184;
  10813. $145 = $144;
  10814. HEAP32[$145>>2] = $140;
  10815. $146 = (($144) + 4)|0;
  10816. $147 = $146;
  10817. HEAP32[$147>>2] = $143;
  10818. $148 = ((($0)) + 32|0);
  10819. $149 = $148;
  10820. $150 = $149;
  10821. $151 = HEAP32[$150>>2]|0;
  10822. $152 = (($149) + 4)|0;
  10823. $153 = $152;
  10824. $154 = HEAP32[$153>>2]|0;
  10825. $155 = 18208;
  10826. $156 = $155;
  10827. HEAP32[$156>>2] = $151;
  10828. $157 = (($155) + 4)|0;
  10829. $158 = $157;
  10830. HEAP32[$158>>2] = $154;
  10831. $159 = +HEAPF32[4552];
  10832. $160 = +HEAPF32[4546];
  10833. $161 = $159 - $160;
  10834. HEAPF32[4550] = $161;
  10835. $162 = +HEAPF32[(18212)>>2];
  10836. $163 = +HEAPF32[(18188)>>2];
  10837. $164 = $162 - $163;
  10838. HEAPF32[(18204)>>2] = $164;
  10839. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18152+4>>2]|0;
  10840. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18184>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18184+4>>2]|0;
  10841. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10842. $166 = !($165 >= 0.004999999888241291);
  10843. if ($166) {
  10844. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18192>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18192+4>>2]|0;
  10845. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18208+4>>2]|0;
  10846. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10847. $168 = !($167 >= 0.004999999888241291);
  10848. if ($168) {
  10849. $$sink16 = 4;
  10850. } else {
  10851. label = 29;
  10852. }
  10853. } else {
  10854. label = 29;
  10855. }
  10856. if ((label|0) == 29) {
  10857. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18184+4>>2]|0;
  10858. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18208+4>>2]|0;
  10859. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10860. $170 = +HEAPF32[4702];
  10861. $171 = $169 - $170;
  10862. $172 = $171 < 0.0;
  10863. $$sink11 = $172 ? 256 : 512;
  10864. $$sink16 = $$sink11;
  10865. }
  10866. HEAP32[4696] = $$sink16;
  10867. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18184>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18184+4>>2]|0;
  10868. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18208>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18208+4>>2]|0;
  10869. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10870. $174 = 360.0 - $173;
  10871. HEAPF32[4703] = $174;
  10872. STACKTOP = sp;return;
  10873. break;
  10874. }
  10875. case 0: {
  10876. HEAPF32[4702] = 0.0;
  10877. HEAPF32[4703] = 0.0;
  10878. HEAPF32[4550] = 0.0;
  10879. HEAPF32[(18204)>>2] = 0.0;
  10880. HEAP32[4697] = 0;
  10881. HEAP32[4696] = 0;
  10882. STACKTOP = sp;return;
  10883. break;
  10884. }
  10885. default: {
  10886. STACKTOP = sp;return;
  10887. }
  10888. }
  10889. }
  10890. if ($5) {
  10891. $6 = HEAP32[4698]|0;
  10892. $7 = (($6) + 1)|0;
  10893. HEAP32[4698] = $7;
  10894. $8 = HEAP32[4696]|0;
  10895. $9 = ($8|0)==(0);
  10896. $10 = ($6|0)>(0);
  10897. $or$cond = $10 & $9;
  10898. if ($or$cond) {
  10899. $11 = ((($0)) + 24|0);
  10900. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18152+4>>2]|0;
  10901. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  10902. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10903. $13 = $12 < 0.029999999329447746;
  10904. if ($13) {
  10905. HEAP32[4696] = 2;
  10906. HEAP32[4698] = 0;
  10907. } else {
  10908. label = 6;
  10909. }
  10910. } else {
  10911. label = 6;
  10912. }
  10913. if ((label|0) == 6) {
  10914. HEAP32[4698] = 1;
  10915. HEAP32[4696] = 1;
  10916. }
  10917. $14 = ((($0)) + 24|0);
  10918. $15 = $14;
  10919. $16 = $15;
  10920. $17 = HEAP32[$16>>2]|0;
  10921. $18 = (($15) + 4)|0;
  10922. $19 = $18;
  10923. $20 = HEAP32[$19>>2]|0;
  10924. $21 = 18152;
  10925. $22 = $21;
  10926. HEAP32[$22>>2] = $17;
  10927. $23 = (($21) + 4)|0;
  10928. $24 = $23;
  10929. HEAP32[$24>>2] = $20;
  10930. $25 = 18160;
  10931. $26 = $25;
  10932. HEAP32[$26>>2] = $17;
  10933. $27 = (($25) + 4)|0;
  10934. $28 = $27;
  10935. HEAP32[$28>>2] = $20;
  10936. $29 = 18168;
  10937. $30 = $29;
  10938. HEAP32[$30>>2] = $17;
  10939. $31 = (($29) + 4)|0;
  10940. $32 = $31;
  10941. HEAP32[$32>>2] = $20;
  10942. $33 = ((($0)) + 8|0);
  10943. $34 = HEAP32[$33>>2]|0;
  10944. HEAP32[14] = $34;
  10945. HEAPF32[4544] = 0.0;
  10946. HEAPF32[(18180)>>2] = 0.0;
  10947. STACKTOP = sp;return;
  10948. }
  10949. switch ($4|0) {
  10950. case 0: {
  10951. $35 = HEAP32[4696]|0;
  10952. $36 = ($35|0)==(8);
  10953. if ($36) {
  10954. $37 = ((($0)) + 24|0);
  10955. $38 = $37;
  10956. $39 = $38;
  10957. $40 = HEAP32[$39>>2]|0;
  10958. $41 = (($38) + 4)|0;
  10959. $42 = $41;
  10960. $43 = HEAP32[$42>>2]|0;
  10961. $44 = 18168;
  10962. $45 = $44;
  10963. HEAP32[$45>>2] = $40;
  10964. $46 = (($44) + 4)|0;
  10965. $47 = $46;
  10966. HEAP32[$47>>2] = $43;
  10967. }
  10968. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18152+4>>2]|0;
  10969. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18168>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18168+4>>2]|0;
  10970. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10971. $49 = $48 / 0.0;
  10972. HEAPF32[4699] = $49;
  10973. HEAP32[4700] = 0;
  10974. $50 = $49 > 5.0000002374872565E-4;
  10975. if ($50) {
  10976. $51 = HEAP32[14]|0;
  10977. $52 = ((($0)) + 8|0);
  10978. $53 = HEAP32[$52>>2]|0;
  10979. $54 = ($51|0)==($53|0);
  10980. if ($54) {
  10981. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18152+4>>2]|0;
  10982. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18168>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18168+4>>2]|0;
  10983. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10984. $56 = 360.0 - $55;
  10985. HEAPF32[4701] = $56;
  10986. $57 = $56 < 30.0;
  10987. $58 = $56 > 330.0;
  10988. $or$cond3 = $57 | $58;
  10989. if ($or$cond3) {
  10990. $$sink10 = 16;
  10991. } else {
  10992. $59 = $56 > 30.0;
  10993. $60 = $56 < 120.0;
  10994. $or$cond5 = $59 & $60;
  10995. if ($or$cond5) {
  10996. $$sink10 = 64;
  10997. } else {
  10998. $61 = $56 > 120.0;
  10999. $62 = $56 < 210.0;
  11000. $or$cond7 = $61 & $62;
  11001. $63 = $56 > 210.0;
  11002. $64 = $56 < 300.0;
  11003. $or$cond9 = $63 & $64;
  11004. $$sink = $or$cond9 ? 128 : 0;
  11005. $$$sink = $or$cond7 ? 32 : $$sink;
  11006. $$sink10 = $$$sink;
  11007. }
  11008. }
  11009. } else {
  11010. label = 16;
  11011. }
  11012. } else {
  11013. label = 16;
  11014. }
  11015. if ((label|0) == 16) {
  11016. HEAPF32[4699] = 0.0;
  11017. HEAPF32[4701] = 0.0;
  11018. $$sink10 = 0;
  11019. }
  11020. HEAP32[4696] = $$sink10;
  11021. HEAPF32[4540] = 0.0;
  11022. HEAPF32[(18164)>>2] = 0.0;
  11023. HEAP32[4697] = 0;
  11024. STACKTOP = sp;return;
  11025. break;
  11026. }
  11027. case 2: {
  11028. $65 = HEAP32[4700]|0;
  11029. $66 = ($65|0)==(0);
  11030. if ($66) {
  11031. HEAP32[4700] = 1;
  11032. }
  11033. $67 = ((($0)) + 24|0);
  11034. $68 = $67;
  11035. $69 = $68;
  11036. $70 = HEAP32[$69>>2]|0;
  11037. $71 = (($68) + 4)|0;
  11038. $72 = $71;
  11039. $73 = HEAP32[$72>>2]|0;
  11040. $74 = 18184;
  11041. $75 = $74;
  11042. HEAP32[$75>>2] = $70;
  11043. $76 = (($74) + 4)|0;
  11044. $77 = $76;
  11045. HEAP32[$77>>2] = $73;
  11046. $78 = HEAP32[4696]|0;
  11047. $79 = ($78|0)==(4);
  11048. if ($79) {
  11049. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18152+4>>2]|0;
  11050. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18184>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18184+4>>2]|0;
  11051. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11052. $81 = !($80 >= 0.014999999664723873);
  11053. if (!($81)) {
  11054. HEAP32[4696] = 8;
  11055. }
  11056. }
  11057. $82 = +HEAPF32[4546];
  11058. $83 = +HEAPF32[4540];
  11059. $84 = $82 - $83;
  11060. HEAPF32[4544] = $84;
  11061. $85 = +HEAPF32[(18188)>>2];
  11062. $86 = +HEAPF32[(18164)>>2];
  11063. $87 = $85 - $86;
  11064. HEAPF32[(18180)>>2] = $87;
  11065. STACKTOP = sp;return;
  11066. break;
  11067. }
  11068. default: {
  11069. STACKTOP = sp;return;
  11070. }
  11071. }
  11072. }
  11073. function _UpdateGestures() {
  11074. 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;
  11075. sp = STACKTOP;
  11076. $0 = HEAP32[4696]|0;
  11077. $$off = (($0) + -1)|0;
  11078. $1 = ($$off>>>0)<(2);
  11079. $2 = HEAP32[4697]|0;
  11080. $3 = ($2|0)<(2);
  11081. $or$cond3 = $1 & $3;
  11082. if ($or$cond3) {
  11083. HEAP32[4696] = 4;
  11084. }
  11085. $4 = HEAP32[4696]|0;
  11086. $5 = (($4) + -16)|0;
  11087. $6 = $5 >>> 4;
  11088. $7 = $5 << 28;
  11089. $8 = $6 | $7;
  11090. switch ($8|0) {
  11091. case 0: case 1: case 3: case 7: {
  11092. break;
  11093. }
  11094. default: {
  11095. return;
  11096. }
  11097. }
  11098. HEAP32[4696] = 0;
  11099. return;
  11100. }
  11101. function _SetCameraMode($0,$1) {
  11102. $0 = $0|0;
  11103. $1 = $1|0;
  11104. var $$sroa$023$0$$sroa_idx = 0, $$sroa$023$0$copyload = 0.0, $$sroa$030$0$copyload = 0.0, $$sroa$4$0$$sroa_idx25 = 0, $$sroa$4$0$copyload = 0.0, $$sroa$432$0$$sroa_idx33 = 0, $$sroa$432$0$copyload = 0.0, $$sroa$527$0$$sroa_idx28 = 0, $$sroa$527$0$copyload = 0.0, $$sroa$535$0$$sroa_idx36 = 0, $$sroa$535$0$copyload = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0;
  11105. var $19 = 0.0, $2 = 0.0, $20 = 0.0, $21 = 0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  11106. sp = STACKTOP;
  11107. $$sroa$030$0$copyload = +HEAPF32[$0>>2];
  11108. $$sroa$432$0$$sroa_idx33 = ((($0)) + 4|0);
  11109. $$sroa$432$0$copyload = +HEAPF32[$$sroa$432$0$$sroa_idx33>>2];
  11110. $$sroa$535$0$$sroa_idx36 = ((($0)) + 8|0);
  11111. $$sroa$535$0$copyload = +HEAPF32[$$sroa$535$0$$sroa_idx36>>2];
  11112. $$sroa$023$0$$sroa_idx = ((($0)) + 12|0);
  11113. $$sroa$023$0$copyload = +HEAPF32[$$sroa$023$0$$sroa_idx>>2];
  11114. $$sroa$4$0$$sroa_idx25 = ((($0)) + 16|0);
  11115. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx25>>2];
  11116. $$sroa$527$0$$sroa_idx28 = ((($0)) + 20|0);
  11117. $$sroa$527$0$copyload = +HEAPF32[$$sroa$527$0$$sroa_idx28>>2];
  11118. $2 = $$sroa$023$0$copyload - $$sroa$030$0$copyload;
  11119. $3 = $$sroa$4$0$copyload - $$sroa$432$0$copyload;
  11120. $4 = $$sroa$527$0$copyload - $$sroa$535$0$copyload;
  11121. $5 = $2 * $2;
  11122. $6 = $3 * $3;
  11123. $7 = $5 + $6;
  11124. $8 = $4 * $4;
  11125. $9 = $7 + $8;
  11126. $10 = (+Math_sqrt((+$9)));
  11127. HEAPF32[4704] = $10;
  11128. $11 = $5 + $8;
  11129. $12 = (+Math_sqrt((+$11)));
  11130. $13 = (+Math_sqrt((+$7)));
  11131. $14 = (+Math_abs((+$2)));
  11132. $15 = $14 / $12;
  11133. $16 = (+Math_asin((+$15)));
  11134. HEAPF32[4705] = $16;
  11135. $17 = (+Math_abs((+$3)));
  11136. $18 = $17 / $13;
  11137. $19 = (+Math_asin((+$18)));
  11138. $20 = -$19;
  11139. HEAPF32[4706] = $20;
  11140. $21 = HEAP32[$$sroa$432$0$$sroa_idx33>>2]|0;
  11141. HEAP32[15] = $21;
  11142. HEAP32[4707] = $1;
  11143. return;
  11144. }
  11145. function _UpdateCamera($0) {
  11146. $0 = $0|0;
  11147. var $$ = 0, $$0 = 0, $$byval_copy3 = 0, $$not = 0, $$not188 = 0, $$off187 = 0, $$pr = 0, $$pr190 = 0, $$sink = 0.0, $$sink17 = 0, $$sink22 = 0.0, $$sink22$p = 0.0, $$sink26 = 0.0, $$sink28 = 0.0, $$sroa$095$0 = 0.0, $$sroa$9$0 = 0.0, $1 = 0, $10 = 0, $100 = 0.0, $101 = 0.0;
  11148. var $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0.0, $106 = 0.0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0, $110 = 0.0, $111 = 0.0, $112 = 0, $113 = 0.0, $114 = 0, $115 = 0.0, $116 = 0.0, $117 = 0.0, $118 = 0.0, $119 = 0.0, $12 = 0;
  11149. var $120 = 0.0, $121 = 0, $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0, $130 = 0.0, $131 = 0.0, $132 = 0.0, $133 = 0.0, $134 = 0.0, $135 = 0, $136 = 0.0, $137 = 0, $138 = 0.0;
  11150. var $139 = 0.0, $14 = 0, $140 = 0.0, $141 = 0.0, $142 = 0.0, $143 = 0.0, $144 = 0, $145 = 0, $146 = 0.0, $147 = 0.0, $148 = 0.0, $149 = 0, $15 = 0, $150 = 0, $151 = 0.0, $152 = 0.0, $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0.0;
  11151. var $157 = 0.0, $158 = 0.0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0.0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0.0, $166 = 0.0, $167 = 0, $168 = 0.0, $169 = 0, $17 = 0, $170 = 0.0, $171 = 0.0, $172 = 0.0, $173 = 0.0, $174 = 0.0;
  11152. var $175 = 0.0, $176 = 0, $177 = 0.0, $178 = 0.0, $179 = 0.0, $18 = 0, $180 = 0.0, $181 = 0.0, $182 = 0.0, $183 = 0.0, $184 = 0.0, $185 = 0.0, $186 = 0.0, $187 = 0.0, $188 = 0.0, $189 = 0.0, $19 = 0, $190 = 0.0, $191 = 0, $192 = 0.0;
  11153. var $193 = 0, $194 = 0.0, $195 = 0.0, $196 = 0.0, $197 = 0.0, $198 = 0.0, $199 = 0.0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0.0, $204 = 0.0, $205 = 0.0, $206 = 0.0, $207 = 0, $208 = 0, $209 = 0, $21 = 0;
  11154. var $210 = 0, $211 = 0.0, $212 = 0.0, $213 = 0.0, $214 = 0.0, $215 = 0.0, $216 = 0.0, $217 = 0.0, $218 = 0.0, $219 = 0.0, $22 = 0, $220 = 0, $221 = 0, $222 = 0.0, $223 = 0.0, $224 = 0.0, $225 = 0.0, $226 = 0.0, $227 = 0.0, $228 = 0.0;
  11155. var $229 = 0.0, $23 = 0, $230 = 0.0, $231 = 0.0, $232 = 0.0, $233 = 0.0, $234 = 0.0, $235 = 0.0, $236 = 0, $237 = 0.0, $238 = 0.0, $239 = 0.0, $24 = 0, $240 = 0.0, $241 = 0.0, $242 = 0, $243 = 0.0, $244 = 0.0, $245 = 0.0, $246 = 0.0;
  11156. var $247 = 0.0, $248 = 0.0, $249 = 0.0, $25 = 0, $250 = 0.0, $251 = 0, $252 = 0.0, $253 = 0.0, $254 = 0.0, $255 = 0.0, $256 = 0.0, $257 = 0.0, $258 = 0.0, $259 = 0.0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0.0;
  11157. var $265 = 0.0, $266 = 0, $267 = 0.0, $268 = 0.0, $269 = 0, $27 = 0, $270 = 0.0, $271 = 0.0, $272 = 0.0, $273 = 0.0, $274 = 0, $275 = 0.0, $276 = 0.0, $277 = 0.0, $278 = 0, $279 = 0.0, $28 = 0, $280 = 0.0, $281 = 0.0, $282 = 0.0;
  11158. var $283 = 0.0, $284 = 0.0, $285 = 0.0, $286 = 0.0, $287 = 0.0, $288 = 0.0, $289 = 0.0, $29 = 0, $290 = 0, $291 = 0.0, $292 = 0.0, $293 = 0, $294 = 0.0, $295 = 0.0, $296 = 0.0, $297 = 0, $298 = 0.0, $299 = 0.0, $3 = 0, $30 = 0;
  11159. var $300 = 0.0, $301 = 0.0, $302 = 0.0, $303 = 0.0, $304 = 0.0, $305 = 0.0, $306 = 0.0, $307 = 0.0, $308 = 0, $309 = 0.0, $31 = 0, $310 = 0.0, $311 = 0, $312 = 0, $313 = 0.0, $314 = 0.0, $315 = 0.0, $316 = 0.0, $317 = 0.0, $318 = 0.0;
  11160. var $319 = 0, $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0.0, $324 = 0.0, $325 = 0.0, $326 = 0.0, $327 = 0, $328 = 0.0, $329 = 0.0, $33 = 0, $330 = 0.0, $331 = 0.0, $332 = 0.0, $333 = 0.0, $334 = 0.0, $335 = 0.0, $336 = 0;
  11161. var $337 = 0.0, $338 = 0.0, $339 = 0, $34 = 0, $340 = 0.0, $341 = 0.0, $342 = 0.0, $343 = 0.0, $344 = 0, $345 = 0, $346 = 0.0, $347 = 0.0, $348 = 0.0, $349 = 0.0, $35 = 0, $350 = 0.0, $351 = 0, $352 = 0.0, $353 = 0.0, $354 = 0.0;
  11162. var $355 = 0.0, $356 = 0.0, $357 = 0, $358 = 0.0, $359 = 0.0, $36 = 0, $360 = 0.0, $361 = 0.0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0.0, $367 = 0, $368 = 0.0, $369 = 0.0, $37 = 0.0, $370 = 0.0, $371 = 0.0, $372 = 0.0;
  11163. var $373 = 0.0, $374 = 0.0, $375 = 0.0, $376 = 0, $377 = 0.0, $378 = 0.0, $379 = 0, $38 = 0.0, $380 = 0, $381 = 0.0, $382 = 0.0, $383 = 0.0, $384 = 0.0, $385 = 0.0, $386 = 0.0, $387 = 0.0, $388 = 0, $389 = 0.0, $39 = 0.0, $390 = 0.0;
  11164. var $391 = 0, $392 = 0.0, $393 = 0.0, $394 = 0, $395 = 0.0, $396 = 0.0, $397 = 0.0, $398 = 0.0, $399 = 0, $4 = 0, $40 = 0, $400 = 0.0, $401 = 0.0, $402 = 0.0, $403 = 0, $404 = 0.0, $405 = 0.0, $406 = 0, $407 = 0, $408 = 0;
  11165. var $409 = 0, $41 = 0, $410 = 0, $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0, $42 = 0.0, $43 = 0, $44 = 0, $45 = 0.0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0;
  11166. var $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0, $55 = 0, $56 = 0.0, $57 = 0, $58 = 0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0.0, $64 = 0.0, $65 = 0.0, $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0;
  11167. var $7 = 0, $70 = 0.0, $71 = 0, $72 = 0.0, $73 = 0.0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0.0, $86 = 0, $87 = 0;
  11168. var $88 = 0.0, $89 = 0.0, $9 = 0, $90 = 0.0, $91 = 0, $92 = 0, $93 = 0.0, $94 = 0, $95 = 0, $96 = 0.0, $97 = 0, $98 = 0, $99 = 0.0, $not$ = 0, $or$cond = 0, $or$cond11 = 0, $or$cond13 = 0, $or$cond15 = 0, $or$cond189 = 0, $or$cond3 = 0;
  11169. var $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, $storemerge = 0.0, label = 0, sp = 0;
  11170. sp = STACKTOP;
  11171. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  11172. $$byval_copy3 = sp + 72|0;
  11173. $1 = sp + 56|0;
  11174. $2 = sp + 16|0;
  11175. $3 = sp + 64|0;
  11176. $4 = sp + 48|0;
  11177. $5 = sp + 40|0;
  11178. $6 = sp + 8|0;
  11179. $7 = sp;
  11180. _GetMousePosition($1);
  11181. $8 = (_GetMouseWheelMove()|0);
  11182. $9 = HEAP32[16]|0;
  11183. $10 = (_IsMouseButtonDown($9)|0);
  11184. $11 = HEAP32[17]|0;
  11185. $12 = (_IsKeyDown($11)|0);
  11186. $13 = HEAP32[18]|0;
  11187. $14 = (_IsKeyDown($13)|0);
  11188. $15 = HEAP32[19]|0;
  11189. $16 = (_IsKeyDown($15)|0);
  11190. HEAP32[$2>>2] = $16;
  11191. $17 = ((($2)) + 4|0);
  11192. $18 = HEAP32[20]|0;
  11193. $19 = (_IsKeyDown($18)|0);
  11194. HEAP32[$17>>2] = $19;
  11195. $20 = ((($2)) + 8|0);
  11196. $21 = HEAP32[21]|0;
  11197. $22 = (_IsKeyDown($21)|0);
  11198. HEAP32[$20>>2] = $22;
  11199. $23 = ((($2)) + 12|0);
  11200. $24 = HEAP32[22]|0;
  11201. $25 = (_IsKeyDown($24)|0);
  11202. HEAP32[$23>>2] = $25;
  11203. $26 = ((($2)) + 16|0);
  11204. $27 = HEAP32[23]|0;
  11205. $28 = (_IsKeyDown($27)|0);
  11206. HEAP32[$26>>2] = $28;
  11207. $29 = ((($2)) + 20|0);
  11208. $30 = HEAP32[24]|0;
  11209. $31 = (_IsKeyDown($30)|0);
  11210. HEAP32[$29>>2] = $31;
  11211. $32 = HEAP32[4707]|0;
  11212. $33 = ($32|0)==(0);
  11213. L1: do {
  11214. if ($33) {
  11215. label = 58;
  11216. } else {
  11217. $34 = (_GetScreenWidth()|0);
  11218. $35 = (_GetScreenHeight()|0);
  11219. $$off187 = (($32) + -3)|0;
  11220. $36 = ($$off187>>>0)<(2);
  11221. do {
  11222. if ($36) {
  11223. _HideCursor();
  11224. $37 = +HEAPF32[$1>>2];
  11225. $38 = (+($35|0));
  11226. $39 = $38 / 3.0;
  11227. $40 = $37 < $39;
  11228. $41 = ((($1)) + 4|0);
  11229. $42 = +HEAPF32[$41>>2];
  11230. if ($40) {
  11231. $43 = (($35|0) / 3)&-1;
  11232. $44 = (($34) - ($43))|0;
  11233. $45 = (+($44|0));
  11234. HEAPF32[$3>>2] = $45;
  11235. $46 = ((($3)) + 4|0);
  11236. HEAPF32[$46>>2] = $42;
  11237. ;HEAP32[$$byval_copy3>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$3+4>>2]|0;
  11238. _SetMousePosition($$byval_copy3);
  11239. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11240. break;
  11241. }
  11242. $47 = $42 < $39;
  11243. if ($47) {
  11244. HEAPF32[$4>>2] = $37;
  11245. $48 = ((($4)) + 4|0);
  11246. $49 = (($35|0) / 3)&-1;
  11247. $50 = (($35) - ($49))|0;
  11248. $51 = (+($50|0));
  11249. HEAPF32[$48>>2] = $51;
  11250. ;HEAP32[$$byval_copy3>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$4+4>>2]|0;
  11251. _SetMousePosition($$byval_copy3);
  11252. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11253. break;
  11254. }
  11255. $52 = (+($34|0));
  11256. $53 = $52 - $39;
  11257. $54 = $37 > $53;
  11258. if ($54) {
  11259. $55 = (($35|0) / 3)&-1;
  11260. $56 = (+($55|0));
  11261. HEAPF32[$5>>2] = $56;
  11262. $57 = ((($5)) + 4|0);
  11263. $58 = HEAP32[$41>>2]|0;
  11264. HEAP32[$57>>2] = $58;
  11265. ;HEAP32[$$byval_copy3>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$5+4>>2]|0;
  11266. _SetMousePosition($$byval_copy3);
  11267. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11268. break;
  11269. }
  11270. $59 = $38 - $39;
  11271. $60 = $42 > $59;
  11272. if ($60) {
  11273. HEAPF32[$6>>2] = $37;
  11274. $61 = ((($6)) + 4|0);
  11275. $62 = (($35|0) / 3)&-1;
  11276. $63 = (+($62|0));
  11277. HEAPF32[$61>>2] = $63;
  11278. ;HEAP32[$$byval_copy3>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$6+4>>2]|0;
  11279. _SetMousePosition($$byval_copy3);
  11280. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11281. break;
  11282. } else {
  11283. $64 = +HEAPF32[4554];
  11284. $65 = $37 - $64;
  11285. $66 = +HEAPF32[(18220)>>2];
  11286. $67 = $42 - $66;
  11287. $$sroa$095$0 = $65;$$sroa$9$0 = $67;
  11288. break;
  11289. }
  11290. } else {
  11291. _ShowCursor();
  11292. $68 = +HEAPF32[$1>>2];
  11293. $69 = +HEAPF32[4554];
  11294. $70 = $68 - $69;
  11295. $71 = ((($1)) + 4|0);
  11296. $72 = +HEAPF32[$71>>2];
  11297. $73 = +HEAPF32[(18220)>>2];
  11298. $74 = $72 - $73;
  11299. $$sroa$095$0 = $70;$$sroa$9$0 = $74;
  11300. }
  11301. } while(0);
  11302. _GetMousePosition($7);
  11303. $75 = $7;
  11304. $76 = $75;
  11305. $77 = HEAP32[$76>>2]|0;
  11306. $78 = (($75) + 4)|0;
  11307. $79 = $78;
  11308. $80 = HEAP32[$79>>2]|0;
  11309. $81 = 18216;
  11310. $82 = $81;
  11311. HEAP32[$82>>2] = $77;
  11312. $83 = (($81) + 4)|0;
  11313. $84 = $83;
  11314. HEAP32[$84>>2] = $80;
  11315. $$pr = HEAP32[4707]|0;
  11316. switch ($$pr|0) {
  11317. case 1: {
  11318. $85 = +HEAPF32[4704];
  11319. $86 = $85 < 120.0;
  11320. $87 = ($8|0)<(0);
  11321. $or$cond3 = $87 & $86;
  11322. do {
  11323. if ($or$cond3) {
  11324. $88 = (+($8|0));
  11325. $89 = $88 * 1.5;
  11326. $90 = $85 - $89;
  11327. HEAPF32[4704] = $90;
  11328. $91 = $90 > 120.0;
  11329. if ($91) {
  11330. HEAPF32[4704] = 120.0;
  11331. }
  11332. } else {
  11333. $92 = ((($0)) + 4|0);
  11334. $93 = +HEAPF32[$92>>2];
  11335. $94 = ((($0)) + 12|0);
  11336. $95 = ((($0)) + 16|0);
  11337. $96 = +HEAPF32[$95>>2];
  11338. $97 = $93 > $96;
  11339. $98 = $85 == 120.0;
  11340. $or$cond5 = $98 & $97;
  11341. $or$cond7 = $87 & $or$cond5;
  11342. if ($or$cond7) {
  11343. $99 = (+($8|0));
  11344. $100 = +HEAPF32[$94>>2];
  11345. $101 = +HEAPF32[$0>>2];
  11346. $102 = $100 - $101;
  11347. $103 = $99 * $102;
  11348. $104 = $103 * 1.5;
  11349. $105 = $104 / $85;
  11350. $106 = $100 + $105;
  11351. HEAPF32[$94>>2] = $106;
  11352. $107 = $96 - $93;
  11353. $108 = $99 * $107;
  11354. $109 = $108 * 1.5;
  11355. $110 = $109 / $85;
  11356. $111 = $96 + $110;
  11357. HEAPF32[$95>>2] = $111;
  11358. $112 = ((($0)) + 20|0);
  11359. $113 = +HEAPF32[$112>>2];
  11360. $114 = ((($0)) + 8|0);
  11361. $115 = +HEAPF32[$114>>2];
  11362. $116 = $113 - $115;
  11363. $117 = $99 * $116;
  11364. $118 = $117 * 1.5;
  11365. $119 = $118 / $85;
  11366. $120 = $113 + $119;
  11367. HEAPF32[$112>>2] = $120;
  11368. break;
  11369. }
  11370. $$not = $97 ^ 1;
  11371. $121 = !($96 >= 0.0);
  11372. $or$cond = $121 | $$not;
  11373. if (!($or$cond)) {
  11374. $122 = (+($8|0));
  11375. $123 = +HEAPF32[$94>>2];
  11376. $124 = +HEAPF32[$0>>2];
  11377. $125 = $123 - $124;
  11378. $126 = $122 * $125;
  11379. $127 = $126 * 1.5;
  11380. $128 = $127 / $85;
  11381. $129 = $123 + $128;
  11382. HEAPF32[$94>>2] = $129;
  11383. $130 = $96 - $93;
  11384. $131 = $122 * $130;
  11385. $132 = $131 * 1.5;
  11386. $133 = $132 / $85;
  11387. $134 = $96 + $133;
  11388. HEAPF32[$95>>2] = $134;
  11389. $135 = ((($0)) + 20|0);
  11390. $136 = +HEAPF32[$135>>2];
  11391. $137 = ((($0)) + 8|0);
  11392. $138 = +HEAPF32[$137>>2];
  11393. $139 = $136 - $138;
  11394. $140 = $122 * $139;
  11395. $141 = $140 * 1.5;
  11396. $142 = $141 / $85;
  11397. $143 = $136 + $142;
  11398. HEAPF32[$135>>2] = $143;
  11399. break;
  11400. }
  11401. if ($97) {
  11402. $144 = $96 < 0.0;
  11403. $145 = ($8|0)>(0);
  11404. $or$cond9 = $145 & $144;
  11405. if ($or$cond9) {
  11406. $146 = (+($8|0));
  11407. $147 = $146 * 1.5;
  11408. $148 = $85 - $147;
  11409. HEAPF32[4704] = $148;
  11410. $149 = $148 < 0.30000001192092896;
  11411. if (!($149)) {
  11412. break;
  11413. }
  11414. HEAPF32[4704] = 0.30000001192092896;
  11415. break;
  11416. }
  11417. }
  11418. $150 = $93 < $96;
  11419. $or$cond11 = $98 & $150;
  11420. $or$cond13 = $87 & $or$cond11;
  11421. $151 = +HEAPF32[$95>>2];
  11422. $152 = +HEAPF32[$92>>2];
  11423. if ($or$cond13) {
  11424. $153 = (+($8|0));
  11425. $154 = +HEAPF32[$94>>2];
  11426. $155 = +HEAPF32[$0>>2];
  11427. $156 = $154 - $155;
  11428. $157 = $153 * $156;
  11429. $158 = $157 * 1.5;
  11430. $159 = $158 / $85;
  11431. $160 = $154 + $159;
  11432. HEAPF32[$94>>2] = $160;
  11433. $161 = $151 - $152;
  11434. $162 = $153 * $161;
  11435. $163 = $162 * 1.5;
  11436. $164 = +HEAPF32[4704];
  11437. $165 = $163 / $164;
  11438. $166 = $151 + $165;
  11439. HEAPF32[$95>>2] = $166;
  11440. $167 = ((($0)) + 20|0);
  11441. $168 = +HEAPF32[$167>>2];
  11442. $169 = ((($0)) + 8|0);
  11443. $170 = +HEAPF32[$169>>2];
  11444. $171 = $168 - $170;
  11445. $172 = $153 * $171;
  11446. $173 = $172 * 1.5;
  11447. $174 = $173 / $164;
  11448. $175 = $168 + $174;
  11449. HEAPF32[$167>>2] = $175;
  11450. break;
  11451. }
  11452. $$not188 = $150 ^ 1;
  11453. $176 = !($96 <= 0.0);
  11454. $or$cond189 = $176 | $$not188;
  11455. if (!($or$cond189)) {
  11456. $177 = (+($8|0));
  11457. $178 = +HEAPF32[$94>>2];
  11458. $179 = +HEAPF32[$0>>2];
  11459. $180 = $178 - $179;
  11460. $181 = $177 * $180;
  11461. $182 = $181 * 1.5;
  11462. $183 = $182 / $85;
  11463. $184 = $178 + $183;
  11464. HEAPF32[$94>>2] = $184;
  11465. $185 = $151 - $152;
  11466. $186 = $177 * $185;
  11467. $187 = $186 * 1.5;
  11468. $188 = +HEAPF32[4704];
  11469. $189 = $187 / $188;
  11470. $190 = $151 + $189;
  11471. HEAPF32[$95>>2] = $190;
  11472. $191 = ((($0)) + 20|0);
  11473. $192 = +HEAPF32[$191>>2];
  11474. $193 = ((($0)) + 8|0);
  11475. $194 = +HEAPF32[$193>>2];
  11476. $195 = $192 - $194;
  11477. $196 = $177 * $195;
  11478. $197 = $196 * 1.5;
  11479. $198 = $197 / $188;
  11480. $199 = $192 + $198;
  11481. HEAPF32[$191>>2] = $199;
  11482. break;
  11483. }
  11484. $200 = $152 < $151;
  11485. if ($200) {
  11486. $201 = $151 > 0.0;
  11487. $202 = ($8|0)>(0);
  11488. $or$cond15 = $202 & $201;
  11489. if ($or$cond15) {
  11490. $203 = (+($8|0));
  11491. $204 = $203 * 1.5;
  11492. $205 = +HEAPF32[4704];
  11493. $206 = $205 - $204;
  11494. HEAPF32[4704] = $206;
  11495. $207 = $206 < 0.30000001192092896;
  11496. if ($207) {
  11497. HEAPF32[4704] = 0.30000001192092896;
  11498. }
  11499. }
  11500. }
  11501. }
  11502. } while(0);
  11503. $208 = ($10|0)==(0);
  11504. if ($208) {
  11505. label = 58;
  11506. break L1;
  11507. }
  11508. $209 = ($12|0)==(0);
  11509. if ($209) {
  11510. $222 = $$sroa$095$0 * -0.0099999997764825821;
  11511. $223 = +HEAPF32[4705];
  11512. $224 = (+Math_cos((+$223)));
  11513. $225 = $222 * $224;
  11514. $226 = $$sroa$9$0 * 0.0099999997764825821;
  11515. $227 = (+Math_sin((+$223)));
  11516. $228 = $226 * $227;
  11517. $229 = +HEAPF32[4706];
  11518. $230 = (+Math_sin((+$229)));
  11519. $231 = $228 * $230;
  11520. $232 = $225 + $231;
  11521. $233 = +HEAPF32[4704];
  11522. $234 = $233 / 5.0999999046325684;
  11523. $235 = $232 * $234;
  11524. $236 = ((($0)) + 12|0);
  11525. $237 = +HEAPF32[$236>>2];
  11526. $238 = $237 + $235;
  11527. HEAPF32[$236>>2] = $238;
  11528. $239 = (+Math_cos((+$229)));
  11529. $240 = $226 * $239;
  11530. $241 = $234 * $240;
  11531. $242 = ((($0)) + 16|0);
  11532. $243 = +HEAPF32[$242>>2];
  11533. $244 = $243 + $241;
  11534. HEAPF32[$242>>2] = $244;
  11535. $245 = $$sroa$095$0 * 0.0099999997764825821;
  11536. $246 = $245 * $227;
  11537. $247 = $226 * $224;
  11538. $248 = $247 * $230;
  11539. $249 = $246 + $248;
  11540. $250 = $249 * $234;
  11541. $251 = ((($0)) + 20|0);
  11542. $252 = +HEAPF32[$251>>2];
  11543. $253 = $250 + $252;
  11544. HEAPF32[$251>>2] = $253;
  11545. label = 58;
  11546. break L1;
  11547. }
  11548. $210 = ($14|0)==(0);
  11549. if (!($210)) {
  11550. $211 = $$sroa$9$0 * 0.05000000074505806;
  11551. $212 = +HEAPF32[4704];
  11552. $213 = $211 + $212;
  11553. HEAPF32[4704] = $213;
  11554. label = 58;
  11555. break L1;
  11556. }
  11557. $214 = $$sroa$095$0 * 0.0099999997764825821;
  11558. $215 = +HEAPF32[4705];
  11559. $216 = $215 - $214;
  11560. HEAPF32[4705] = $216;
  11561. $217 = $$sroa$9$0 * 0.0099999997764825821;
  11562. $218 = +HEAPF32[4706];
  11563. $219 = $218 - $217;
  11564. HEAPF32[4706] = $219;
  11565. $220 = $219 > 1.483529806137085;
  11566. if ($220) {
  11567. HEAPF32[4706] = 1.483529806137085;
  11568. label = 58;
  11569. break L1;
  11570. }
  11571. $221 = $219 < -1.483529806137085;
  11572. if (!($221)) {
  11573. label = 58;
  11574. break L1;
  11575. }
  11576. HEAPF32[4706] = -1.483529806137085;
  11577. label = 58;
  11578. break L1;
  11579. break;
  11580. }
  11581. case 2: {
  11582. $254 = +HEAPF32[4705];
  11583. $255 = $254 + 0.0099999997764825821;
  11584. HEAPF32[4705] = $255;
  11585. $256 = (+($8|0));
  11586. $257 = $256 * 1.5;
  11587. $258 = +HEAPF32[4704];
  11588. $259 = $258 - $257;
  11589. HEAPF32[4704] = $259;
  11590. $260 = $259 < 1.2000000476837158;
  11591. if (!($260)) {
  11592. label = 58;
  11593. break L1;
  11594. }
  11595. HEAPF32[4704] = 1.2000000476837158;
  11596. label = 58;
  11597. break L1;
  11598. break;
  11599. }
  11600. case 4: case 3: {
  11601. $264 = +HEAPF32[4705];
  11602. $265 = (+Math_sin((+$264)));
  11603. $266 = HEAP32[$17>>2]|0;
  11604. $267 = (+($266>>>0));
  11605. $268 = $265 * $267;
  11606. $269 = HEAP32[$2>>2]|0;
  11607. $270 = (+($269>>>0));
  11608. $271 = $265 * $270;
  11609. $272 = $268 - $271;
  11610. $273 = (+Math_cos((+$264)));
  11611. $274 = HEAP32[$23>>2]|0;
  11612. $275 = (+($274>>>0));
  11613. $276 = $273 * $275;
  11614. $277 = $272 - $276;
  11615. $278 = HEAP32[$20>>2]|0;
  11616. $279 = (+($278>>>0));
  11617. $280 = $273 * $279;
  11618. $281 = $277 + $280;
  11619. $282 = $281 / 20.0;
  11620. $283 = +HEAPF32[$0>>2];
  11621. $284 = $283 + $282;
  11622. HEAPF32[$0>>2] = $284;
  11623. $285 = +HEAPF32[4706];
  11624. $286 = (+Math_sin((+$285)));
  11625. $287 = $270 * $286;
  11626. $288 = $267 * $286;
  11627. $289 = $287 - $288;
  11628. $290 = HEAP32[$26>>2]|0;
  11629. $291 = (+($290>>>0));
  11630. $292 = $289 + $291;
  11631. $293 = HEAP32[$29>>2]|0;
  11632. $294 = (+($293>>>0));
  11633. $295 = $292 - $294;
  11634. $296 = $295 / 20.0;
  11635. $297 = ((($0)) + 4|0);
  11636. $298 = +HEAPF32[$297>>2];
  11637. $299 = $298 + $296;
  11638. HEAPF32[$297>>2] = $299;
  11639. $300 = $267 * $273;
  11640. $301 = $273 * $270;
  11641. $302 = $300 - $301;
  11642. $303 = $265 * $275;
  11643. $304 = $302 + $303;
  11644. $305 = $265 * $279;
  11645. $306 = $304 - $305;
  11646. $307 = $306 / 20.0;
  11647. $308 = ((($0)) + 8|0);
  11648. $309 = +HEAPF32[$308>>2];
  11649. $310 = $307 + $309;
  11650. HEAPF32[$308>>2] = $310;
  11651. $311 = HEAP32[$2>>2]|0;
  11652. $312 = ($311|0)==(0);
  11653. if ($312) {
  11654. $261 = ((($2)) + 4|0);
  11655. $262 = HEAP32[$261>>2]|0;
  11656. $263 = ($262|0)==(0);
  11657. if ($263) {
  11658. $407 = ((($2)) + 8|0);
  11659. $408 = HEAP32[$407>>2]|0;
  11660. $409 = ($408|0)==(0);
  11661. if ($409) {
  11662. $410 = ((($2)) + 12|0);
  11663. $411 = HEAP32[$410>>2]|0;
  11664. $412 = ($411|0)==(0);
  11665. if ($412) {
  11666. $413 = ((($2)) + 16|0);
  11667. $414 = HEAP32[$413>>2]|0;
  11668. $415 = ($414|0)==(0);
  11669. if ($415) {
  11670. $416 = ((($2)) + 20|0);
  11671. $417 = HEAP32[$416>>2]|0;
  11672. $not$ = ($417|0)!=(0);
  11673. $$ = $not$&1;
  11674. $$0 = $$;
  11675. } else {
  11676. $$0 = 1;
  11677. }
  11678. } else {
  11679. $$0 = 1;
  11680. }
  11681. } else {
  11682. $$0 = 1;
  11683. }
  11684. } else {
  11685. $$0 = 1;
  11686. }
  11687. } else {
  11688. $$0 = 1;
  11689. }
  11690. $313 = $$sroa$095$0 * 0.0030000000260770321;
  11691. $314 = +HEAPF32[4705];
  11692. $315 = $314 - $313;
  11693. HEAPF32[4705] = $315;
  11694. $316 = $$sroa$9$0 * 0.0030000000260770321;
  11695. $317 = +HEAPF32[4706];
  11696. $318 = $317 - $316;
  11697. HEAPF32[4706] = $318;
  11698. $319 = HEAP32[4707]|0;
  11699. $320 = ($319|0)==(4);
  11700. if ($320) {
  11701. $321 = $318 > 0.087266460061073303;
  11702. if ($321) {
  11703. $$sink26 = 0.087266460061073303;
  11704. label = 49;
  11705. } else {
  11706. $322 = $318 < -1.483529806137085;
  11707. if ($322) {
  11708. $$sink26 = -1.483529806137085;
  11709. label = 49;
  11710. }
  11711. }
  11712. if ((label|0) == 49) {
  11713. HEAPF32[4706] = $$sink26;
  11714. }
  11715. $323 = (+($8|0));
  11716. $324 = $323 * 1.5;
  11717. $325 = +HEAPF32[4704];
  11718. $326 = $325 - $324;
  11719. $327 = $326 < 1.2000000476837158;
  11720. $storemerge = $327 ? 1.2000000476837158 : $326;
  11721. HEAPF32[4704] = $storemerge;
  11722. $328 = +HEAPF32[$0>>2];
  11723. $329 = +HEAPF32[4705];
  11724. $330 = (+Math_cos((+$329)));
  11725. $331 = $330 * 0.40000000596046448;
  11726. $332 = $328 + $331;
  11727. $333 = (+Math_sin((+$329)));
  11728. $334 = $333 * 0.0;
  11729. $335 = $332 + $334;
  11730. $336 = ((($0)) + 12|0);
  11731. HEAPF32[$336>>2] = $335;
  11732. $337 = +HEAPF32[$297>>2];
  11733. $338 = $337 + 0.0;
  11734. $339 = ((($0)) + 16|0);
  11735. HEAPF32[$339>>2] = $338;
  11736. $340 = +HEAPF32[$308>>2];
  11737. $341 = $334 + $340;
  11738. $342 = $333 * 0.40000000596046448;
  11739. $343 = $341 - $342;
  11740. $$sink = $343;$$sink17 = $336;
  11741. } else {
  11742. $344 = $318 > 1.483529806137085;
  11743. if ($344) {
  11744. $$sink28 = 1.483529806137085;
  11745. label = 53;
  11746. } else {
  11747. $345 = $318 < -1.483529806137085;
  11748. if ($345) {
  11749. $$sink28 = -1.483529806137085;
  11750. label = 53;
  11751. }
  11752. }
  11753. if ((label|0) == 53) {
  11754. HEAPF32[4706] = $$sink28;
  11755. }
  11756. $346 = +HEAPF32[$0>>2];
  11757. $347 = +HEAPF32[4705];
  11758. $348 = (+Math_sin((+$347)));
  11759. $349 = $348 * 25.0;
  11760. $350 = $346 - $349;
  11761. $351 = ((($0)) + 12|0);
  11762. HEAPF32[$351>>2] = $350;
  11763. $352 = +HEAPF32[$297>>2];
  11764. $353 = +HEAPF32[4706];
  11765. $354 = (+Math_sin((+$353)));
  11766. $355 = $354 * 25.0;
  11767. $356 = $352 + $355;
  11768. $357 = ((($0)) + 16|0);
  11769. HEAPF32[$357>>2] = $356;
  11770. $358 = +HEAPF32[$308>>2];
  11771. $359 = (+Math_cos((+$347)));
  11772. $360 = $359 * 25.0;
  11773. $361 = $358 - $360;
  11774. $362 = ((($0)) + 20|0);
  11775. HEAPF32[$362>>2] = $361;
  11776. $363 = ($$0|0)==(0);
  11777. if (!($363)) {
  11778. $364 = HEAP32[4708]|0;
  11779. $365 = (($364) + 1)|0;
  11780. HEAP32[4708] = $365;
  11781. }
  11782. $366 = +HEAPF32[15];
  11783. $367 = HEAP32[4708]|0;
  11784. $368 = (+($367|0));
  11785. $369 = $368 / 5.0;
  11786. $370 = (+Math_sin((+$369)));
  11787. $371 = $370 / 30.0;
  11788. $372 = $366 - $371;
  11789. HEAPF32[$297>>2] = $372;
  11790. $373 = $368 / 10.0;
  11791. $374 = (+Math_sin((+$373)));
  11792. $375 = $374 / 200.0;
  11793. $376 = ((($0)) + 24|0);
  11794. HEAPF32[$376>>2] = $375;
  11795. $377 = -$374;
  11796. $378 = $377 / 200.0;
  11797. $$sink = $378;$$sink17 = $376;
  11798. }
  11799. $379 = ((($$sink17)) + 8|0);
  11800. HEAPF32[$379>>2] = $$sink;
  11801. label = 58;
  11802. break L1;
  11803. break;
  11804. }
  11805. default: {
  11806. $380 = $$pr;
  11807. break L1;
  11808. }
  11809. }
  11810. }
  11811. } while(0);
  11812. if ((label|0) == 58) {
  11813. $$pr190 = HEAP32[4707]|0;
  11814. $380 = $$pr190;
  11815. }
  11816. switch ($380|0) {
  11817. case 1: case 2: case 4: {
  11818. break;
  11819. }
  11820. default: {
  11821. STACKTOP = sp;return;
  11822. }
  11823. }
  11824. $381 = +HEAPF32[4705];
  11825. $382 = (+Math_sin((+$381)));
  11826. $383 = +HEAPF32[4704];
  11827. $384 = $382 * $383;
  11828. $385 = +HEAPF32[4706];
  11829. $386 = (+Math_cos((+$385)));
  11830. $387 = $384 * $386;
  11831. $388 = ((($0)) + 12|0);
  11832. $389 = +HEAPF32[$388>>2];
  11833. $390 = $387 + $389;
  11834. HEAPF32[$0>>2] = $390;
  11835. $391 = !($385 <= 0.0);
  11836. $392 = (+Math_sin((+$385)));
  11837. $393 = +HEAPF32[4704];
  11838. $394 = ((($0)) + 16|0);
  11839. $395 = +HEAPF32[$394>>2];
  11840. $396 = $392 * $393;
  11841. $397 = $392 * $396;
  11842. $398 = -$397;
  11843. $$sink22$p = $391 ? $398 : $397;
  11844. $$sink22 = $395 + $$sink22$p;
  11845. $399 = ((($0)) + 4|0);
  11846. HEAPF32[$399>>2] = $$sink22;
  11847. $400 = (+Math_cos((+$381)));
  11848. $401 = $393 * $400;
  11849. $402 = $386 * $401;
  11850. $403 = ((($0)) + 20|0);
  11851. $404 = +HEAPF32[$403>>2];
  11852. $405 = $404 + $402;
  11853. $406 = ((($0)) + 8|0);
  11854. HEAPF32[$406>>2] = $405;
  11855. STACKTOP = sp;return;
  11856. }
  11857. function _GetMousePosition($0) {
  11858. $0 = $0|0;
  11859. 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;
  11860. sp = STACKTOP;
  11861. $1 = 18224;
  11862. $2 = $1;
  11863. $3 = HEAP32[$2>>2]|0;
  11864. $4 = (($1) + 4)|0;
  11865. $5 = $4;
  11866. $6 = HEAP32[$5>>2]|0;
  11867. $7 = $0;
  11868. $8 = $7;
  11869. HEAP32[$8>>2] = $3;
  11870. $9 = (($7) + 4)|0;
  11871. $10 = $9;
  11872. HEAP32[$10>>2] = $6;
  11873. return;
  11874. }
  11875. function _GetMouseWheelMove() {
  11876. var $0 = 0, $1 = 0, label = 0, sp = 0;
  11877. sp = STACKTOP;
  11878. $0 = HEAP32[4713]|0;
  11879. $1 = (($0|0) / 100)&-1;
  11880. return ($1|0);
  11881. }
  11882. function _IsMouseButtonDown($0) {
  11883. $0 = $0|0;
  11884. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  11885. sp = STACKTOP;
  11886. $1 = (_GetMouseButtonStatus($0)|0);
  11887. $2 = ($1|0)==(1);
  11888. $$ = $2&1;
  11889. return ($$|0);
  11890. }
  11891. function _IsKeyDown($0) {
  11892. $0 = $0|0;
  11893. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  11894. sp = STACKTOP;
  11895. $1 = (_GetKeyStatus($0)|0);
  11896. $2 = ($1|0)==(1);
  11897. $$ = $2&1;
  11898. return ($$|0);
  11899. }
  11900. function _GetScreenWidth() {
  11901. var $0 = 0, label = 0, sp = 0;
  11902. sp = STACKTOP;
  11903. $0 = HEAP32[4712]|0;
  11904. return ($0|0);
  11905. }
  11906. function _GetScreenHeight() {
  11907. var $0 = 0, label = 0, sp = 0;
  11908. sp = STACKTOP;
  11909. $0 = HEAP32[4711]|0;
  11910. return ($0|0);
  11911. }
  11912. function _HideCursor() {
  11913. var label = 0, sp = 0;
  11914. sp = STACKTOP;
  11915. HEAP32[4709] = 1;
  11916. return;
  11917. }
  11918. function _SetMousePosition($0) {
  11919. $0 = $0|0;
  11920. var $1 = 0, $10 = 0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  11921. sp = STACKTOP;
  11922. $1 = $0;
  11923. $2 = $1;
  11924. $3 = HEAP32[$2>>2]|0;
  11925. $4 = (($1) + 4)|0;
  11926. $5 = $4;
  11927. $6 = HEAP32[$5>>2]|0;
  11928. $7 = 18224;
  11929. $8 = $7;
  11930. HEAP32[$8>>2] = $3;
  11931. $9 = (($7) + 4)|0;
  11932. $10 = $9;
  11933. HEAP32[$10>>2] = $6;
  11934. $11 = HEAP32[4710]|0;
  11935. $12 = +HEAPF32[$0>>2];
  11936. $13 = $12;
  11937. $14 = ((($0)) + 4|0);
  11938. $15 = +HEAPF32[$14>>2];
  11939. $16 = $15;
  11940. _glfwSetCursorPos(($11|0),(+$13),(+$16));
  11941. return;
  11942. }
  11943. function _ShowCursor() {
  11944. var label = 0, sp = 0;
  11945. sp = STACKTOP;
  11946. HEAP32[4709] = 0;
  11947. return;
  11948. }
  11949. function _GetKeyStatus($0) {
  11950. $0 = $0|0;
  11951. var $1 = 0, $2 = 0, label = 0, sp = 0;
  11952. sp = STACKTOP;
  11953. $1 = HEAP32[4710]|0;
  11954. $2 = (_glfwGetKey(($1|0),($0|0))|0);
  11955. return ($2|0);
  11956. }
  11957. function _GetMouseButtonStatus($0) {
  11958. $0 = $0|0;
  11959. var $1 = 0, $2 = 0, label = 0, sp = 0;
  11960. sp = STACKTOP;
  11961. $1 = HEAP32[4710]|0;
  11962. $2 = (_glfwGetMouseButton(($1|0),($0|0))|0);
  11963. return ($2|0);
  11964. }
  11965. function _InitWindow($0,$1,$2) {
  11966. $0 = $0|0;
  11967. $1 = $1|0;
  11968. $2 = $2|0;
  11969. 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;
  11970. sp = STACKTOP;
  11971. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  11972. $vararg_buffer = sp;
  11973. _TraceLog(0,4656,$vararg_buffer);
  11974. HEAP32[4714] = $2;
  11975. _InitGraphicsDevice($0,$1);
  11976. _LoadDefaultFont();
  11977. _InitTimer();
  11978. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(5|0))|0);
  11979. (_emscripten_set_keypress_callback((4685|0),(0|0),1,(6|0))|0);
  11980. (_emscripten_set_click_callback((4685|0),(0|0),1,(7|0))|0);
  11981. (_emscripten_set_touchstart_callback((4685|0),(0|0),1,(8|0))|0);
  11982. (_emscripten_set_touchend_callback((4685|0),(0|0),1,(8|0))|0);
  11983. (_emscripten_set_touchmove_callback((4685|0),(0|0),1,(8|0))|0);
  11984. (_emscripten_set_touchcancel_callback((4685|0),(0|0),1,(8|0))|0);
  11985. (_emscripten_set_gamepadconnected_callback((0|0),1,(9|0))|0);
  11986. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(9|0))|0);
  11987. $3 = HEAP32[4712]|0;
  11988. $4 = (+($3|0));
  11989. $5 = $4 * 0.5;
  11990. HEAPF32[4556] = $5;
  11991. $6 = HEAP32[4711]|0;
  11992. $7 = (+($6|0));
  11993. $8 = $7 * 0.5;
  11994. HEAPF32[(18228)>>2] = $8;
  11995. $9 = HEAP32[4715]|0;
  11996. $10 = ($9|0)==(0);
  11997. if ($10) {
  11998. STACKTOP = sp;return;
  11999. }
  12000. _SetTargetFPS(60);
  12001. _LogoAnimation();
  12002. STACKTOP = sp;return;
  12003. }
  12004. function _TraceLog($0,$1,$varargs) {
  12005. $0 = $0|0;
  12006. $1 = $1|0;
  12007. $varargs = $varargs|0;
  12008. 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;
  12009. sp = STACKTOP;
  12010. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12011. $2 = sp;
  12012. switch ($0|0) {
  12013. case 0: {
  12014. ;HEAP8[18264>>0]=HEAP8[9185>>0]|0;HEAP8[18264+1>>0]=HEAP8[9185+1>>0]|0;HEAP8[18264+2>>0]=HEAP8[9185+2>>0]|0;HEAP8[18264+3>>0]=HEAP8[9185+3>>0]|0;HEAP8[18264+4>>0]=HEAP8[9185+4>>0]|0;HEAP8[18264+5>>0]=HEAP8[9185+5>>0]|0;HEAP8[18264+6>>0]=HEAP8[9185+6>>0]|0;
  12015. break;
  12016. }
  12017. case 1: {
  12018. $3 = 18264;
  12019. $4 = $3;
  12020. HEAP32[$4>>2] = 1330795077;
  12021. $5 = (($3) + 4)|0;
  12022. $6 = $5;
  12023. HEAP32[$6>>2] = 2112082;
  12024. break;
  12025. }
  12026. case 2: {
  12027. dest=18264; src=9192; 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));
  12028. break;
  12029. }
  12030. case 3: {
  12031. $7 = 18264;
  12032. $8 = $7;
  12033. HEAP32[$8>>2] = 1430406468;
  12034. $9 = (($7) + 4)|0;
  12035. $10 = $9;
  12036. HEAP32[$10>>2] = 2112071;
  12037. break;
  12038. }
  12039. default: {
  12040. }
  12041. }
  12042. (_strcat(18264,$1)|0);
  12043. $strlen = (_strlen(18264)|0);
  12044. $endptr = (18264 + ($strlen)|0);
  12045. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  12046. HEAP32[$2>>2] = $varargs;
  12047. $11 = ($0|0)==(3);
  12048. if ($11) {
  12049. STACKTOP = sp;return;
  12050. }
  12051. (_vprintf(18264,$2)|0);
  12052. $12 = ($0|0)==(1);
  12053. if ($12) {
  12054. _exit(1);
  12055. // unreachable;
  12056. } else {
  12057. STACKTOP = sp;return;
  12058. }
  12059. }
  12060. function _InitGraphicsDevice($0,$1) {
  12061. $0 = $0|0;
  12062. $1 = $1|0;
  12063. 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;
  12064. 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;
  12065. 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;
  12066. 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;
  12067. 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;
  12068. var label = 0, sp = 0, src = 0, stop = 0;
  12069. sp = STACKTOP;
  12070. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  12071. $$byval_copy = sp + 136|0;
  12072. $vararg_buffer22 = sp + 64|0;
  12073. $vararg_buffer18 = sp + 56|0;
  12074. $vararg_buffer14 = sp + 48|0;
  12075. $vararg_buffer10 = sp + 40|0;
  12076. $vararg_buffer8 = sp + 32|0;
  12077. $vararg_buffer6 = sp + 24|0;
  12078. $vararg_buffer3 = sp + 16|0;
  12079. $vararg_buffer1 = sp + 8|0;
  12080. $vararg_buffer = sp;
  12081. $2 = sp + 72|0;
  12082. $3 = sp + 140|0;
  12083. HEAP32[4712] = $0;
  12084. HEAP32[4711] = $1;
  12085. _MatrixIdentity($2);
  12086. dest=18936; 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));
  12087. (_glfwSetErrorCallback((2|0))|0);
  12088. $4 = (_glfwInit()|0);
  12089. $5 = ($4|0)==(0);
  12090. if ($5) {
  12091. _TraceLog(1,5327,$vararg_buffer);
  12092. }
  12093. $6 = HEAP32[4712]|0;
  12094. HEAP32[4750] = $6;
  12095. $7 = HEAP32[4711]|0;
  12096. HEAP32[4751] = $7;
  12097. _glfwDefaultWindowHints();
  12098. $8 = HEAP8[21680]|0;
  12099. $9 = $8 & 4;
  12100. $10 = ($9<<24>>24)==(0);
  12101. if ($10) {
  12102. _glfwWindowHint(131075,0);
  12103. } else {
  12104. _glfwWindowHint(131075,1);
  12105. }
  12106. $11 = HEAP8[21680]|0;
  12107. $12 = $11 & 8;
  12108. $13 = ($12<<24>>24)==(0);
  12109. if (!($13)) {
  12110. _glfwWindowHint(131077,1);
  12111. }
  12112. $14 = HEAP8[21680]|0;
  12113. $15 = $14 & 32;
  12114. $16 = ($15<<24>>24)==(0);
  12115. if (!($16)) {
  12116. _glfwWindowHint(135181,4);
  12117. _TraceLog(0,5353,$vararg_buffer1);
  12118. }
  12119. $17 = (_rlGetVersion()|0);
  12120. $18 = ($17|0)==(2);
  12121. if ($18) {
  12122. _glfwWindowHint(139266,2);
  12123. _glfwWindowHint(139267,1);
  12124. } else {
  12125. $19 = (_rlGetVersion()|0);
  12126. $20 = ($19|0)==(3);
  12127. if ($20) {
  12128. _glfwWindowHint(139266,3);
  12129. _glfwWindowHint(139267,3);
  12130. _glfwWindowHint(139272,204801);
  12131. _glfwWindowHint(139270,0);
  12132. }
  12133. }
  12134. $21 = HEAP32[4752]|0;
  12135. $22 = ($21|0)==(0);
  12136. if ($22) {
  12137. $47 = HEAP32[4712]|0;
  12138. $48 = HEAP32[4711]|0;
  12139. $49 = HEAP32[4714]|0;
  12140. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  12141. HEAP32[4710] = $50;
  12142. $51 = HEAP32[4712]|0;
  12143. HEAP32[4753] = $51;
  12144. $52 = HEAP32[4711]|0;
  12145. HEAP32[4754] = $52;
  12146. $54 = $50;
  12147. } else {
  12148. $23 = (_glfwGetPrimaryMonitor()|0);
  12149. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  12150. $25 = HEAP32[$$byval_copy>>2]|0;
  12151. $26 = ($25|0)>(0);
  12152. L22: do {
  12153. if ($26) {
  12154. $27 = HEAP32[4712]|0;
  12155. $28 = HEAP32[$$byval_copy>>2]|0;
  12156. $29 = HEAP32[4711]|0;
  12157. $$015 = 0;
  12158. while(1) {
  12159. $30 = (($24) + (($$015*24)|0)|0);
  12160. $31 = HEAP32[$30>>2]|0;
  12161. $32 = ($31|0)<($27|0);
  12162. if (!($32)) {
  12163. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  12164. $34 = HEAP32[$33>>2]|0;
  12165. $35 = ($34|0)<($29|0);
  12166. if (!($35)) {
  12167. break;
  12168. }
  12169. }
  12170. $36 = (($$015) + 1)|0;
  12171. $37 = ($36|0)<($28|0);
  12172. if ($37) {
  12173. $$015 = $36;
  12174. } else {
  12175. break L22;
  12176. }
  12177. }
  12178. HEAP32[4750] = $31;
  12179. HEAP32[4751] = $34;
  12180. }
  12181. } while(0);
  12182. $38 = HEAP32[4750]|0;
  12183. $39 = HEAP32[4751]|0;
  12184. HEAP32[$vararg_buffer3>>2] = $38;
  12185. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  12186. HEAP32[$vararg_ptr5>>2] = $39;
  12187. _TraceLog(2,5378,$vararg_buffer3);
  12188. $40 = HEAP32[4750]|0;
  12189. $41 = HEAP32[4751]|0;
  12190. _SetupFramebufferSize($40,$41);
  12191. $42 = HEAP32[4750]|0;
  12192. $43 = HEAP32[4751]|0;
  12193. $44 = HEAP32[4714]|0;
  12194. $45 = (_glfwGetPrimaryMonitor()|0);
  12195. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  12196. HEAP32[4710] = $46;
  12197. $54 = $46;
  12198. }
  12199. $53 = ($54|0)==(0|0);
  12200. if ($53) {
  12201. _glfwTerminate();
  12202. _TraceLog(1,5416,$vararg_buffer6);
  12203. } else {
  12204. _TraceLog(0,5449,$vararg_buffer8);
  12205. $55 = HEAP32[4753]|0;
  12206. $56 = HEAP32[4754]|0;
  12207. HEAP32[$vararg_buffer10>>2] = $55;
  12208. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  12209. HEAP32[$vararg_ptr13>>2] = $56;
  12210. _TraceLog(0,5489,$vararg_buffer10);
  12211. $57 = HEAP32[4712]|0;
  12212. $58 = HEAP32[4711]|0;
  12213. HEAP32[$vararg_buffer14>>2] = $57;
  12214. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  12215. HEAP32[$vararg_ptr17>>2] = $58;
  12216. _TraceLog(0,5510,$vararg_buffer14);
  12217. $59 = HEAP32[4755]|0;
  12218. $60 = HEAP32[4756]|0;
  12219. HEAP32[$vararg_buffer18>>2] = $59;
  12220. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  12221. HEAP32[$vararg_ptr21>>2] = $60;
  12222. _TraceLog(0,5531,$vararg_buffer18);
  12223. }
  12224. $61 = HEAP32[4710]|0;
  12225. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  12226. $62 = HEAP32[4710]|0;
  12227. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  12228. $63 = HEAP32[4710]|0;
  12229. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  12230. $64 = HEAP32[4710]|0;
  12231. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  12232. $65 = HEAP32[4710]|0;
  12233. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  12234. $66 = HEAP32[4710]|0;
  12235. (_glfwSetCharCallback(($66|0),(4|0))|0);
  12236. $67 = HEAP32[4710]|0;
  12237. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  12238. $68 = HEAP32[4710]|0;
  12239. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  12240. $69 = HEAP32[4710]|0;
  12241. _glfwMakeContextCurrent(($69|0));
  12242. _glfwSwapInterval(0);
  12243. $70 = HEAP8[21680]|0;
  12244. $71 = $70 & 64;
  12245. $72 = ($71<<24>>24)==(0);
  12246. if ($72) {
  12247. $73 = HEAP32[4712]|0;
  12248. $74 = HEAP32[4711]|0;
  12249. _rlglInit($73,$74);
  12250. _SetupViewport();
  12251. _rlMatrixMode(5889);
  12252. _rlLoadIdentity();
  12253. $75 = HEAP32[4753]|0;
  12254. $76 = HEAP32[4755]|0;
  12255. $77 = (($75) - ($76))|0;
  12256. $78 = (+($77|0));
  12257. $79 = HEAP32[4754]|0;
  12258. $80 = HEAP32[4756]|0;
  12259. $81 = (($79) - ($80))|0;
  12260. $82 = (+($81|0));
  12261. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12262. _rlMatrixMode(5888);
  12263. _rlLoadIdentity();
  12264. HEAP8[$3>>0] = -11;
  12265. $83 = ((($3)) + 1|0);
  12266. HEAP8[$83>>0] = -11;
  12267. $84 = ((($3)) + 2|0);
  12268. HEAP8[$84>>0] = -11;
  12269. $85 = ((($3)) + 3|0);
  12270. HEAP8[$85>>0] = -1;
  12271. ;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;
  12272. _ClearBackground($$byval_copy);
  12273. STACKTOP = sp;return;
  12274. }
  12275. _glfwSwapInterval(1);
  12276. _TraceLog(0,5556,$vararg_buffer22);
  12277. $73 = HEAP32[4712]|0;
  12278. $74 = HEAP32[4711]|0;
  12279. _rlglInit($73,$74);
  12280. _SetupViewport();
  12281. _rlMatrixMode(5889);
  12282. _rlLoadIdentity();
  12283. $75 = HEAP32[4753]|0;
  12284. $76 = HEAP32[4755]|0;
  12285. $77 = (($75) - ($76))|0;
  12286. $78 = (+($77|0));
  12287. $79 = HEAP32[4754]|0;
  12288. $80 = HEAP32[4756]|0;
  12289. $81 = (($79) - ($80))|0;
  12290. $82 = (+($81|0));
  12291. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12292. _rlMatrixMode(5888);
  12293. _rlLoadIdentity();
  12294. HEAP8[$3>>0] = -11;
  12295. $83 = ((($3)) + 1|0);
  12296. HEAP8[$83>>0] = -11;
  12297. $84 = ((($3)) + 2|0);
  12298. HEAP8[$84>>0] = -11;
  12299. $85 = ((($3)) + 3|0);
  12300. HEAP8[$85>>0] = -1;
  12301. ;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;
  12302. _ClearBackground($$byval_copy);
  12303. STACKTOP = sp;return;
  12304. }
  12305. function _LoadDefaultFont() {
  12306. 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;
  12307. 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;
  12308. 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;
  12309. var $vararg_buffer = 0, label = 0, sp = 0;
  12310. sp = STACKTOP;
  12311. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  12312. $$byval_copy1 = sp + 44|0;
  12313. $vararg_buffer = sp;
  12314. $0 = sp + 4|0;
  12315. $1 = sp + 24|0;
  12316. HEAP32[(18904)>>2] = 224;
  12317. $2 = (_malloc(65536)|0);
  12318. _memset(($2|0),0,65536)|0;
  12319. $$095104 = 0;$$096103 = 0;
  12320. while(1) {
  12321. $3 = (100 + ($$095104<<2)|0);
  12322. $4 = HEAP32[$3>>2]|0;
  12323. $$097102 = 31;
  12324. while(1) {
  12325. $16 = 1 << $$097102;
  12326. $17 = $4 & $16;
  12327. $18 = ($17|0)==(0);
  12328. if (!($18)) {
  12329. $19 = (($$097102) + ($$096103))|0;
  12330. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  12331. 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;
  12332. }
  12333. $20 = (($$097102) + -1)|0;
  12334. $21 = ($$097102|0)>(0);
  12335. if ($21) {
  12336. $$097102 = $20;
  12337. } else {
  12338. break;
  12339. }
  12340. }
  12341. $12 = (($$095104) + 1)|0;
  12342. $13 = ($$095104|0)>(511);
  12343. $$ = $13 ? 0 : $12;
  12344. $14 = (($$096103) + 32)|0;
  12345. $15 = ($14|0)<(16384);
  12346. if ($15) {
  12347. $$095104 = $$;$$096103 = $14;
  12348. } else {
  12349. break;
  12350. }
  12351. }
  12352. _LoadImageEx($0,$2,128,128);
  12353. _ImageFormat($0,2);
  12354. _free($2);
  12355. ;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;
  12356. _LoadTextureFromImage($1,$$byval_copy1);
  12357. ;HEAP32[18880>>2]=HEAP32[$1>>2]|0;HEAP32[18880+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[18880+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[18880+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[18880+16>>2]=HEAP32[$1+16>>2]|0;
  12358. ;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;
  12359. _UnloadImage($$byval_copy1);
  12360. $5 = HEAP32[(18904)>>2]|0;
  12361. $6 = $5 << 5;
  12362. $7 = (_malloc($6)|0);
  12363. HEAP32[(18908)>>2] = $7;
  12364. $8 = ($5|0)>(0);
  12365. if (!($8)) {
  12366. $$lcssa = $7;
  12367. $22 = ((($$lcssa)) + 16|0);
  12368. $23 = HEAP32[$22>>2]|0;
  12369. HEAP32[(18900)>>2] = $23;
  12370. $24 = HEAP32[4720]|0;
  12371. HEAP32[$vararg_buffer>>2] = $24;
  12372. _TraceLog(0,4880,$vararg_buffer);
  12373. STACKTOP = sp;return;
  12374. }
  12375. $9 = HEAP32[(18884)>>2]|0;
  12376. $10 = HEAP32[(18904)>>2]|0;
  12377. $11 = HEAP32[(18908)>>2]|0;
  12378. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  12379. while(1) {
  12380. $25 = (($$0101) + 32)|0;
  12381. $26 = (($27) + ($$0101<<5)|0);
  12382. HEAP32[$26>>2] = $25;
  12383. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  12384. HEAP32[$28>>2] = $$090100;
  12385. $29 = ($$09299*11)|0;
  12386. $30 = (($29) + 1)|0;
  12387. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  12388. HEAP32[$31>>2] = $30;
  12389. $32 = (2148 + ($$0101<<2)|0);
  12390. $33 = HEAP32[$32>>2]|0;
  12391. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  12392. HEAP32[$34>>2] = $33;
  12393. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  12394. HEAP32[$35>>2] = 10;
  12395. $36 = (($$090100) + 1)|0;
  12396. $37 = (($36) + ($33))|0;
  12397. $38 = ($37|0)<($9|0);
  12398. $39 = (($$09299) + 1)|0;
  12399. if ($38) {
  12400. $$191 = $37;$$193 = $$09299;
  12401. } else {
  12402. $40 = ($39*11)|0;
  12403. $41 = (($40) + 1)|0;
  12404. $42 = (($33) + 2)|0;
  12405. HEAP32[$28>>2] = 1;
  12406. HEAP32[$31>>2] = $41;
  12407. $$191 = $42;$$193 = $39;
  12408. }
  12409. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  12410. HEAP32[$43>>2] = 0;
  12411. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  12412. HEAP32[$44>>2] = 0;
  12413. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  12414. HEAP32[$45>>2] = 0;
  12415. $46 = (($$0101) + 1)|0;
  12416. $47 = ($46|0)<($10|0);
  12417. if ($47) {
  12418. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  12419. } else {
  12420. $$lcssa = $11;
  12421. break;
  12422. }
  12423. }
  12424. $22 = ((($$lcssa)) + 16|0);
  12425. $23 = HEAP32[$22>>2]|0;
  12426. HEAP32[(18900)>>2] = $23;
  12427. $24 = HEAP32[4720]|0;
  12428. HEAP32[$vararg_buffer>>2] = $24;
  12429. _TraceLog(0,4880,$vararg_buffer);
  12430. STACKTOP = sp;return;
  12431. }
  12432. function _InitTimer() {
  12433. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  12434. sp = STACKTOP;
  12435. $0 = (_time((0|0))|0);
  12436. _srand($0);
  12437. $1 = (+_GetTime());
  12438. HEAPF64[2282] = $1;
  12439. return;
  12440. }
  12441. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  12442. $0 = $0|0;
  12443. $1 = $1|0;
  12444. $2 = $2|0;
  12445. 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;
  12446. sp = STACKTOP;
  12447. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  12448. $vararg_buffer4 = sp + 16|0;
  12449. $vararg_buffer = sp;
  12450. $3 = HEAP32[$1>>2]|0;
  12451. $4 = ($3|0)==(0);
  12452. $5 = ((($1)) + 264|0);
  12453. $6 = HEAP32[$5>>2]|0;
  12454. $7 = ((($1)) + 268|0);
  12455. $8 = HEAP32[$7>>2]|0;
  12456. $9 = ((($1)) + 272|0);
  12457. $10 = HEAP32[$9>>2]|0;
  12458. $11 = ((($1)) + 276|0);
  12459. $12 = HEAP32[$11>>2]|0;
  12460. if ($4) {
  12461. HEAP32[$vararg_buffer4>>2] = $6;
  12462. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  12463. HEAP32[$vararg_ptr7>>2] = $8;
  12464. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  12465. HEAP32[$vararg_ptr8>>2] = $10;
  12466. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  12467. HEAP32[$vararg_ptr9>>2] = $12;
  12468. _TraceLog(0,4813,$vararg_buffer4);
  12469. STACKTOP = sp;return 0;
  12470. } else {
  12471. HEAP32[$vararg_buffer>>2] = $6;
  12472. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12473. HEAP32[$vararg_ptr1>>2] = $8;
  12474. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  12475. HEAP32[$vararg_ptr2>>2] = $10;
  12476. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  12477. HEAP32[$vararg_ptr3>>2] = $12;
  12478. _TraceLog(0,4744,$vararg_buffer);
  12479. STACKTOP = sp;return 0;
  12480. }
  12481. return (0)|0;
  12482. }
  12483. function _EmscriptenKeyboardCallback($0,$1,$2) {
  12484. $0 = $0|0;
  12485. $1 = $1|0;
  12486. $2 = $2|0;
  12487. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  12488. sp = STACKTOP;
  12489. $3 = ($0|0)==(1);
  12490. if (!($3)) {
  12491. return 0;
  12492. }
  12493. $4 = ((($1)) + 32|0);
  12494. $5 = (_strcmp($4,4737)|0);
  12495. $6 = ($5|0)==(0);
  12496. if (!($6)) {
  12497. return 0;
  12498. }
  12499. (_emscripten_exit_pointerlock()|0);
  12500. return 0;
  12501. }
  12502. function _EmscriptenMouseCallback($0,$1,$2) {
  12503. $0 = $0|0;
  12504. $1 = $1|0;
  12505. $2 = $2|0;
  12506. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  12507. sp = STACKTOP;
  12508. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  12509. $3 = sp;
  12510. $4 = ($0|0)==(4);
  12511. if (!($4)) {
  12512. STACKTOP = sp;return 0;
  12513. }
  12514. (_emscripten_get_pointerlock_status(($3|0))|0);
  12515. $5 = HEAP32[$3>>2]|0;
  12516. $6 = ($5|0)==(0);
  12517. if ($6) {
  12518. (_emscripten_request_pointerlock((0|0),1)|0);
  12519. } else {
  12520. (_emscripten_exit_pointerlock()|0);
  12521. (_emscripten_get_pointerlock_status(($3|0))|0);
  12522. }
  12523. STACKTOP = sp;return 0;
  12524. }
  12525. function _EmscriptenTouchCallback($0,$1,$2) {
  12526. $0 = $0|0;
  12527. $1 = $1|0;
  12528. $2 = $2|0;
  12529. 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;
  12530. 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;
  12531. 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;
  12532. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  12533. sp = STACKTOP;
  12534. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12535. $$byval_copy = sp + 56|0;
  12536. $3 = sp;
  12537. switch ($0|0) {
  12538. case 22: {
  12539. $$sink = 1;
  12540. label = 4;
  12541. break;
  12542. }
  12543. case 23: {
  12544. $$sink = 0;
  12545. label = 4;
  12546. break;
  12547. }
  12548. case 24: {
  12549. $$sink = 2;
  12550. label = 4;
  12551. break;
  12552. }
  12553. default: {
  12554. }
  12555. }
  12556. if ((label|0) == 4) {
  12557. HEAP32[$3>>2] = $$sink;
  12558. }
  12559. $4 = HEAP32[$1>>2]|0;
  12560. $5 = ((($3)) + 4|0);
  12561. HEAP32[$5>>2] = $4;
  12562. $6 = ((($1)) + 20|0);
  12563. $7 = HEAP32[$6>>2]|0;
  12564. $8 = ((($3)) + 8|0);
  12565. HEAP32[$8>>2] = $7;
  12566. $9 = ((($1)) + 72|0);
  12567. $10 = HEAP32[$9>>2]|0;
  12568. $11 = ((($3)) + 12|0);
  12569. HEAP32[$11>>2] = $10;
  12570. $12 = ((($1)) + 56|0);
  12571. $13 = HEAP32[$12>>2]|0;
  12572. $14 = (+($13|0));
  12573. $15 = ((($1)) + 60|0);
  12574. $16 = HEAP32[$15>>2]|0;
  12575. $17 = (+($16|0));
  12576. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  12577. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  12578. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  12579. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  12580. $18 = ((($1)) + 108|0);
  12581. $19 = HEAP32[$18>>2]|0;
  12582. $20 = (+($19|0));
  12583. $21 = ((($1)) + 112|0);
  12584. $22 = HEAP32[$21>>2]|0;
  12585. $23 = (+($22|0));
  12586. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  12587. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  12588. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  12589. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  12590. $24 = ((($3)) + 24|0);
  12591. $25 = $24;
  12592. $26 = $25;
  12593. $27 = HEAP32[$26>>2]|0;
  12594. $28 = (($25) + 4)|0;
  12595. $29 = $28;
  12596. $30 = HEAP32[$29>>2]|0;
  12597. $31 = 18240;
  12598. $32 = $31;
  12599. HEAP32[$32>>2] = $27;
  12600. $33 = (($31) + 4)|0;
  12601. $34 = $33;
  12602. HEAP32[$34>>2] = $30;
  12603. $35 = ((($3)) + 32|0);
  12604. $36 = $35;
  12605. $37 = $36;
  12606. $38 = HEAP32[$37>>2]|0;
  12607. $39 = (($36) + 4)|0;
  12608. $40 = $39;
  12609. $41 = HEAP32[$40>>2]|0;
  12610. $42 = (18248);
  12611. $43 = $42;
  12612. HEAP32[$43>>2] = $38;
  12613. $44 = (($42) + 4)|0;
  12614. $45 = $44;
  12615. HEAP32[$45>>2] = $41;
  12616. $46 = (_GetScreenWidth()|0);
  12617. $47 = (+($46|0));
  12618. $48 = +HEAPF32[$24>>2];
  12619. $49 = $48 / $47;
  12620. HEAPF32[$24>>2] = $49;
  12621. $50 = (_GetScreenHeight()|0);
  12622. $51 = (+($50|0));
  12623. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  12624. $53 = $52 / $51;
  12625. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  12626. $54 = (_GetScreenWidth()|0);
  12627. $55 = (+($54|0));
  12628. $56 = +HEAPF32[$35>>2];
  12629. $57 = $56 / $55;
  12630. HEAPF32[$35>>2] = $57;
  12631. $58 = (_GetScreenHeight()|0);
  12632. $59 = (+($58|0));
  12633. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  12634. $61 = $60 / $59;
  12635. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  12636. 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));
  12637. _ProcessGestureEvent($$byval_copy);
  12638. STACKTOP = sp;return 1;
  12639. }
  12640. function _EmscriptenGamepadCallback($0,$1,$2) {
  12641. $0 = $0|0;
  12642. $1 = $1|0;
  12643. $2 = $2|0;
  12644. 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;
  12645. sp = STACKTOP;
  12646. $3 = ((($1)) + 1296|0);
  12647. $4 = HEAP32[$3>>2]|0;
  12648. $5 = ($4|0)==(0);
  12649. if ($5) {
  12650. label = 3;
  12651. } else {
  12652. $6 = ((($1)) + 1300|0);
  12653. $7 = HEAP32[$6>>2]|0;
  12654. $8 = ($7|0)<(4);
  12655. if ($8) {
  12656. $$sink = 1;
  12657. } else {
  12658. label = 3;
  12659. }
  12660. }
  12661. if ((label|0) == 3) {
  12662. $$sink = 0;
  12663. }
  12664. $9 = ((($1)) + 1300|0);
  12665. $10 = HEAP32[$9>>2]|0;
  12666. $11 = (18864 + ($10<<2)|0);
  12667. HEAP32[$11>>2] = $$sink;
  12668. return 0;
  12669. }
  12670. function _SetTargetFPS($0) {
  12671. $0 = $0|0;
  12672. 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;
  12673. sp = STACKTOP;
  12674. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12675. $vararg_buffer = sp;
  12676. $1 = ($0|0)<(1);
  12677. $2 = (+($0|0));
  12678. $3 = 1.0 / $2;
  12679. $$ = $1 ? 0.0 : $3;
  12680. HEAPF64[2279] = $$;
  12681. $4 = $3;
  12682. $$op = $4 * 1000.0;
  12683. $5 = $$op;
  12684. $6 = $1 ? 0.0 : $5;
  12685. HEAPF64[$vararg_buffer>>3] = $6;
  12686. _TraceLog(0,4693,$vararg_buffer);
  12687. STACKTOP = sp;return;
  12688. }
  12689. function _LogoAnimation() {
  12690. var label = 0, sp = 0;
  12691. sp = STACKTOP;
  12692. HEAP32[4715] = 0;
  12693. return;
  12694. }
  12695. function _GetTime() {
  12696. var $0 = 0.0, label = 0, sp = 0;
  12697. sp = STACKTOP;
  12698. $0 = (+_glfwGetTime());
  12699. return (+$0);
  12700. }
  12701. function _LoadImageEx($0,$1,$2,$3) {
  12702. $0 = $0|0;
  12703. $1 = $1|0;
  12704. $2 = $2|0;
  12705. $3 = $3|0;
  12706. 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;
  12707. 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;
  12708. sp = STACKTOP;
  12709. $4 = $2 << 2;
  12710. $5 = Math_imul($4, $3)|0;
  12711. $6 = (_malloc($5)|0);
  12712. $7 = ($5|0)>(0);
  12713. if ($7) {
  12714. $8 = (($5) + -1)|0;
  12715. $9 = $8 >>> 2;
  12716. $$03334 = 0;$$035 = 0;
  12717. while(1) {
  12718. $10 = (($1) + ($$03334<<2)|0);
  12719. $11 = HEAP8[$10>>0]|0;
  12720. $12 = (($6) + ($$035)|0);
  12721. HEAP8[$12>>0] = $11;
  12722. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  12723. $14 = HEAP8[$13>>0]|0;
  12724. $15 = $$035 | 1;
  12725. $16 = (($6) + ($15)|0);
  12726. HEAP8[$16>>0] = $14;
  12727. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  12728. $18 = HEAP8[$17>>0]|0;
  12729. $19 = $$035 | 2;
  12730. $20 = (($6) + ($19)|0);
  12731. HEAP8[$20>>0] = $18;
  12732. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  12733. $22 = HEAP8[$21>>0]|0;
  12734. $23 = $$035 | 3;
  12735. $24 = (($6) + ($23)|0);
  12736. HEAP8[$24>>0] = $22;
  12737. $25 = (($$03334) + 1)|0;
  12738. $26 = (($$035) + 4)|0;
  12739. $exitcond = ($$03334|0)==($9|0);
  12740. if ($exitcond) {
  12741. break;
  12742. } else {
  12743. $$03334 = $25;$$035 = $26;
  12744. }
  12745. }
  12746. }
  12747. HEAP32[$0>>2] = $6;
  12748. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  12749. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  12750. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  12751. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  12752. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  12753. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  12754. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  12755. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  12756. return;
  12757. }
  12758. function _ImageFormat($0,$1) {
  12759. $0 = $0|0;
  12760. $1 = $1|0;
  12761. 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;
  12762. 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;
  12763. 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;
  12764. 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;
  12765. 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;
  12766. 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;
  12767. 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;
  12768. 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;
  12769. 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;
  12770. 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;
  12771. 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;
  12772. 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;
  12773. 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;
  12774. 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;
  12775. 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;
  12776. 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;
  12777. sp = STACKTOP;
  12778. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  12779. $$byval_copy = sp + 4|0;
  12780. $vararg_buffer = sp;
  12781. $2 = ((($0)) + 16|0);
  12782. $3 = HEAP32[$2>>2]|0;
  12783. $4 = ($3|0)==($1|0);
  12784. if ($4) {
  12785. STACKTOP = sp;return;
  12786. }
  12787. $5 = ($3|0)<(8);
  12788. $6 = ($1|0)<(8);
  12789. $or$cond = $6 & $5;
  12790. if (!($or$cond)) {
  12791. _TraceLog(2,5227,$vararg_buffer);
  12792. STACKTOP = sp;return;
  12793. }
  12794. ;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;
  12795. $7 = (_GetImageData($$byval_copy)|0);
  12796. $8 = HEAP32[$0>>2]|0;
  12797. _free($8);
  12798. HEAP32[$2>>2] = $1;
  12799. switch ($1|0) {
  12800. case 1: {
  12801. $9 = ((($0)) + 4|0);
  12802. $10 = HEAP32[$9>>2]|0;
  12803. $11 = ((($0)) + 8|0);
  12804. $12 = HEAP32[$11>>2]|0;
  12805. $13 = Math_imul($12, $10)|0;
  12806. $14 = (_malloc($13)|0);
  12807. HEAP32[$0>>2] = $14;
  12808. $15 = Math_imul($12, $10)|0;
  12809. $16 = ($15|0)>(0);
  12810. if ($16) {
  12811. $$0171188 = 0;
  12812. while(1) {
  12813. $17 = (($7) + ($$0171188<<2)|0);
  12814. $18 = HEAP8[$17>>0]|0;
  12815. $19 = (+($18&255));
  12816. $20 = $19 * 0.29899999499320984;
  12817. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  12818. $22 = HEAP8[$21>>0]|0;
  12819. $23 = (+($22&255));
  12820. $24 = $23 * 0.58700001239776611;
  12821. $25 = $20 + $24;
  12822. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  12823. $27 = HEAP8[$26>>0]|0;
  12824. $28 = (+($27&255));
  12825. $29 = $28 * 0.11400000005960464;
  12826. $30 = $25 + $29;
  12827. $31 = (~~(($30))&255);
  12828. $32 = HEAP32[$0>>2]|0;
  12829. $33 = (($32) + ($$0171188)|0);
  12830. HEAP8[$33>>0] = $31;
  12831. $34 = (($$0171188) + 1)|0;
  12832. $35 = HEAP32[$9>>2]|0;
  12833. $36 = HEAP32[$11>>2]|0;
  12834. $37 = Math_imul($36, $35)|0;
  12835. $38 = ($34|0)<($37|0);
  12836. if ($38) {
  12837. $$0171188 = $34;
  12838. } else {
  12839. break;
  12840. }
  12841. }
  12842. }
  12843. break;
  12844. }
  12845. case 2: {
  12846. $39 = ((($0)) + 4|0);
  12847. $40 = HEAP32[$39>>2]|0;
  12848. $41 = ((($0)) + 8|0);
  12849. $42 = HEAP32[$41>>2]|0;
  12850. $43 = $40 << 1;
  12851. $44 = Math_imul($43, $42)|0;
  12852. $45 = (_malloc($44)|0);
  12853. HEAP32[$0>>2] = $45;
  12854. $46 = HEAP32[$39>>2]|0;
  12855. $47 = $46 << 1;
  12856. $48 = Math_imul($47, $42)|0;
  12857. $49 = ($48|0)>(0);
  12858. if ($49) {
  12859. $$0170190 = 0;$$0172189 = 0;
  12860. while(1) {
  12861. $50 = (($7) + ($$0172189<<2)|0);
  12862. $51 = HEAP8[$50>>0]|0;
  12863. $52 = (+($51&255));
  12864. $53 = $52 * 0.29899999499320984;
  12865. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  12866. $55 = HEAP8[$54>>0]|0;
  12867. $56 = (+($55&255));
  12868. $57 = $56 * 0.58700001239776611;
  12869. $58 = $53 + $57;
  12870. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  12871. $60 = HEAP8[$59>>0]|0;
  12872. $61 = (+($60&255));
  12873. $62 = $61 * 0.11400000005960464;
  12874. $63 = $58 + $62;
  12875. $64 = (~~(($63))&255);
  12876. $65 = HEAP32[$0>>2]|0;
  12877. $66 = (($65) + ($$0170190)|0);
  12878. HEAP8[$66>>0] = $64;
  12879. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  12880. $68 = HEAP8[$67>>0]|0;
  12881. $69 = HEAP32[$0>>2]|0;
  12882. $70 = $$0170190 | 1;
  12883. $71 = (($69) + ($70)|0);
  12884. HEAP8[$71>>0] = $68;
  12885. $72 = (($$0172189) + 1)|0;
  12886. $73 = (($$0170190) + 2)|0;
  12887. $74 = HEAP32[$39>>2]|0;
  12888. $75 = HEAP32[$41>>2]|0;
  12889. $76 = $74 << 1;
  12890. $77 = Math_imul($76, $75)|0;
  12891. $78 = ($73|0)<($77|0);
  12892. if ($78) {
  12893. $$0170190 = $73;$$0172189 = $72;
  12894. } else {
  12895. break;
  12896. }
  12897. }
  12898. }
  12899. break;
  12900. }
  12901. case 3: {
  12902. $79 = ((($0)) + 4|0);
  12903. $80 = HEAP32[$79>>2]|0;
  12904. $81 = ((($0)) + 8|0);
  12905. $82 = HEAP32[$81>>2]|0;
  12906. $83 = $80 << 1;
  12907. $84 = Math_imul($83, $82)|0;
  12908. $85 = (_malloc($84)|0);
  12909. HEAP32[$0>>2] = $85;
  12910. $86 = HEAP32[$79>>2]|0;
  12911. $87 = Math_imul($82, $86)|0;
  12912. $88 = ($87|0)>(0);
  12913. if ($88) {
  12914. $89 = HEAP8[$7>>0]|0;
  12915. $90 = (+($89&255));
  12916. $91 = $90 * 31.0;
  12917. $92 = $91 / 255.0;
  12918. $roundf179 = (+_roundf((+$92)));
  12919. $93 = (~~(($roundf179))&255);
  12920. $94 = ((($7)) + 1|0);
  12921. $95 = HEAP8[$94>>0]|0;
  12922. $96 = (+($95&255));
  12923. $97 = $96 * 63.0;
  12924. $98 = $97 / 255.0;
  12925. $roundf180 = (+_roundf((+$98)));
  12926. $99 = (~~(($roundf180))&255);
  12927. $100 = ((($7)) + 2|0);
  12928. $101 = HEAP8[$100>>0]|0;
  12929. $102 = (+($101&255));
  12930. $103 = $102 * 31.0;
  12931. $104 = $103 / 255.0;
  12932. $roundf181 = (+_roundf((+$104)));
  12933. $105 = (~~(($roundf181))&255);
  12934. $106 = $93&255;
  12935. $107 = $106 << 11;
  12936. $108 = $99&255;
  12937. $109 = $108 << 5;
  12938. $110 = $109 | $107;
  12939. $111 = $105&255;
  12940. $112 = $110 | $111;
  12941. $113 = $112&65535;
  12942. $114 = HEAP32[$0>>2]|0;
  12943. $115 = HEAP32[$79>>2]|0;
  12944. $116 = HEAP32[$81>>2]|0;
  12945. $117 = Math_imul($116, $115)|0;
  12946. $$0169192 = 0;
  12947. while(1) {
  12948. $118 = (($114) + ($$0169192<<1)|0);
  12949. HEAP16[$118>>1] = $113;
  12950. $119 = (($$0169192) + 1)|0;
  12951. $120 = ($119|0)<($117|0);
  12952. if ($120) {
  12953. $$0169192 = $119;
  12954. } else {
  12955. break;
  12956. }
  12957. }
  12958. }
  12959. break;
  12960. }
  12961. case 4: {
  12962. $121 = ((($0)) + 4|0);
  12963. $122 = HEAP32[$121>>2]|0;
  12964. $123 = ((($0)) + 8|0);
  12965. $124 = HEAP32[$123>>2]|0;
  12966. $125 = ($122*3)|0;
  12967. $126 = Math_imul($125, $124)|0;
  12968. $127 = (_malloc($126)|0);
  12969. HEAP32[$0>>2] = $127;
  12970. $128 = HEAP32[$121>>2]|0;
  12971. $129 = ($128*3)|0;
  12972. $130 = Math_imul($129, $124)|0;
  12973. $131 = ($130|0)>(0);
  12974. if ($131) {
  12975. $$0168195 = 0;$$1194 = 0;
  12976. while(1) {
  12977. $132 = (($7) + ($$1194<<2)|0);
  12978. $133 = HEAP8[$132>>0]|0;
  12979. $134 = HEAP32[$0>>2]|0;
  12980. $135 = (($134) + ($$0168195)|0);
  12981. HEAP8[$135>>0] = $133;
  12982. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  12983. $137 = HEAP8[$136>>0]|0;
  12984. $138 = HEAP32[$0>>2]|0;
  12985. $139 = (($$0168195) + 1)|0;
  12986. $140 = (($138) + ($139)|0);
  12987. HEAP8[$140>>0] = $137;
  12988. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  12989. $142 = HEAP8[$141>>0]|0;
  12990. $143 = HEAP32[$0>>2]|0;
  12991. $144 = (($$0168195) + 2)|0;
  12992. $145 = (($143) + ($144)|0);
  12993. HEAP8[$145>>0] = $142;
  12994. $146 = (($$1194) + 1)|0;
  12995. $147 = (($$0168195) + 3)|0;
  12996. $148 = HEAP32[$121>>2]|0;
  12997. $149 = HEAP32[$123>>2]|0;
  12998. $150 = ($148*3)|0;
  12999. $151 = Math_imul($150, $149)|0;
  13000. $152 = ($147|0)<($151|0);
  13001. if ($152) {
  13002. $$0168195 = $147;$$1194 = $146;
  13003. } else {
  13004. break;
  13005. }
  13006. }
  13007. }
  13008. break;
  13009. }
  13010. case 5: {
  13011. $153 = ((($0)) + 4|0);
  13012. $154 = HEAP32[$153>>2]|0;
  13013. $155 = ((($0)) + 8|0);
  13014. $156 = HEAP32[$155>>2]|0;
  13015. $157 = $154 << 1;
  13016. $158 = Math_imul($157, $156)|0;
  13017. $159 = (_malloc($158)|0);
  13018. HEAP32[$0>>2] = $159;
  13019. $160 = HEAP32[$153>>2]|0;
  13020. $161 = Math_imul($156, $160)|0;
  13021. $162 = ($161|0)>(0);
  13022. if ($162) {
  13023. $163 = HEAP32[$0>>2]|0;
  13024. $164 = HEAP32[$153>>2]|0;
  13025. $165 = HEAP32[$155>>2]|0;
  13026. $166 = Math_imul($165, $164)|0;
  13027. $$0167197 = 0;
  13028. while(1) {
  13029. $167 = (($7) + ($$0167197<<2)|0);
  13030. $168 = HEAP8[$167>>0]|0;
  13031. $169 = (+($168&255));
  13032. $170 = $169 * 31.0;
  13033. $171 = $170 / 255.0;
  13034. $roundf176 = (+_roundf((+$171)));
  13035. $172 = (~~(($roundf176))&255);
  13036. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  13037. $174 = HEAP8[$173>>0]|0;
  13038. $175 = (+($174&255));
  13039. $176 = $175 * 31.0;
  13040. $177 = $176 / 255.0;
  13041. $roundf177 = (+_roundf((+$177)));
  13042. $178 = (~~(($roundf177))&255);
  13043. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  13044. $180 = HEAP8[$179>>0]|0;
  13045. $181 = (+($180&255));
  13046. $182 = $181 * 31.0;
  13047. $183 = $182 / 255.0;
  13048. $roundf178 = (+_roundf((+$183)));
  13049. $184 = (~~(($roundf178))&255);
  13050. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  13051. $186 = HEAP8[$185>>0]|0;
  13052. $187 = ($186&255)>(50);
  13053. $188 = $172&255;
  13054. $189 = $188 << 11;
  13055. $190 = $178&255;
  13056. $191 = $190 << 6;
  13057. $192 = $191 | $189;
  13058. $193 = $184&255;
  13059. $194 = $193 << 1;
  13060. $195 = $192 | $194;
  13061. $196 = $187&1;
  13062. $197 = $195 | $196;
  13063. $198 = $197&65535;
  13064. $199 = (($163) + ($$0167197<<1)|0);
  13065. HEAP16[$199>>1] = $198;
  13066. $200 = (($$0167197) + 1)|0;
  13067. $201 = ($200|0)<($166|0);
  13068. if ($201) {
  13069. $$0167197 = $200;
  13070. } else {
  13071. break;
  13072. }
  13073. }
  13074. }
  13075. break;
  13076. }
  13077. case 6: {
  13078. $202 = ((($0)) + 4|0);
  13079. $203 = HEAP32[$202>>2]|0;
  13080. $204 = ((($0)) + 8|0);
  13081. $205 = HEAP32[$204>>2]|0;
  13082. $206 = $203 << 1;
  13083. $207 = Math_imul($206, $205)|0;
  13084. $208 = (_malloc($207)|0);
  13085. HEAP32[$0>>2] = $208;
  13086. $209 = HEAP32[$202>>2]|0;
  13087. $210 = Math_imul($205, $209)|0;
  13088. $211 = ($210|0)>(0);
  13089. if ($211) {
  13090. $212 = HEAP32[$0>>2]|0;
  13091. $213 = HEAP32[$202>>2]|0;
  13092. $214 = HEAP32[$204>>2]|0;
  13093. $215 = Math_imul($214, $213)|0;
  13094. $$0166199 = 0;
  13095. while(1) {
  13096. $216 = (($7) + ($$0166199<<2)|0);
  13097. $217 = HEAP8[$216>>0]|0;
  13098. $218 = (+($217&255));
  13099. $219 = $218 * 15.0;
  13100. $220 = $219 / 255.0;
  13101. $roundf = (+_roundf((+$220)));
  13102. $221 = (~~(($roundf))&255);
  13103. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  13104. $223 = HEAP8[$222>>0]|0;
  13105. $224 = (+($223&255));
  13106. $225 = $224 * 15.0;
  13107. $226 = $225 / 255.0;
  13108. $roundf173 = (+_roundf((+$226)));
  13109. $227 = (~~(($roundf173))&255);
  13110. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  13111. $229 = HEAP8[$228>>0]|0;
  13112. $230 = (+($229&255));
  13113. $231 = $230 * 15.0;
  13114. $232 = $231 / 255.0;
  13115. $roundf174 = (+_roundf((+$232)));
  13116. $233 = (~~(($roundf174))&255);
  13117. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  13118. $235 = HEAP8[$234>>0]|0;
  13119. $236 = (+($235&255));
  13120. $237 = $236 * 15.0;
  13121. $238 = $237 / 255.0;
  13122. $roundf175 = (+_roundf((+$238)));
  13123. $239 = (~~(($roundf175))&255);
  13124. $240 = $221&255;
  13125. $241 = $240 << 12;
  13126. $242 = $227&255;
  13127. $243 = $242 << 8;
  13128. $244 = $243 | $241;
  13129. $245 = $233&255;
  13130. $246 = $245 << 4;
  13131. $247 = $244 | $246;
  13132. $248 = $239&255;
  13133. $249 = $247 | $248;
  13134. $250 = $249&65535;
  13135. $251 = (($212) + ($$0166199<<1)|0);
  13136. HEAP16[$251>>1] = $250;
  13137. $252 = (($$0166199) + 1)|0;
  13138. $253 = ($252|0)<($215|0);
  13139. if ($253) {
  13140. $$0166199 = $252;
  13141. } else {
  13142. break;
  13143. }
  13144. }
  13145. }
  13146. break;
  13147. }
  13148. case 7: {
  13149. $254 = ((($0)) + 4|0);
  13150. $255 = HEAP32[$254>>2]|0;
  13151. $256 = ((($0)) + 8|0);
  13152. $257 = HEAP32[$256>>2]|0;
  13153. $258 = $255 << 2;
  13154. $259 = Math_imul($258, $257)|0;
  13155. $260 = (_malloc($259)|0);
  13156. HEAP32[$0>>2] = $260;
  13157. $261 = HEAP32[$254>>2]|0;
  13158. $262 = $261 << 2;
  13159. $263 = Math_imul($262, $257)|0;
  13160. $264 = ($263|0)>(0);
  13161. if ($264) {
  13162. $$0202 = 0;$$2201 = 0;
  13163. while(1) {
  13164. $265 = (($7) + ($$2201<<2)|0);
  13165. $266 = HEAP8[$265>>0]|0;
  13166. $267 = HEAP32[$0>>2]|0;
  13167. $268 = (($267) + ($$0202)|0);
  13168. HEAP8[$268>>0] = $266;
  13169. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  13170. $270 = HEAP8[$269>>0]|0;
  13171. $271 = HEAP32[$0>>2]|0;
  13172. $272 = $$0202 | 1;
  13173. $273 = (($271) + ($272)|0);
  13174. HEAP8[$273>>0] = $270;
  13175. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  13176. $275 = HEAP8[$274>>0]|0;
  13177. $276 = HEAP32[$0>>2]|0;
  13178. $277 = $$0202 | 2;
  13179. $278 = (($276) + ($277)|0);
  13180. HEAP8[$278>>0] = $275;
  13181. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  13182. $280 = HEAP8[$279>>0]|0;
  13183. $281 = HEAP32[$0>>2]|0;
  13184. $282 = $$0202 | 3;
  13185. $283 = (($281) + ($282)|0);
  13186. HEAP8[$283>>0] = $280;
  13187. $284 = (($$2201) + 1)|0;
  13188. $285 = (($$0202) + 4)|0;
  13189. $286 = HEAP32[$254>>2]|0;
  13190. $287 = HEAP32[$256>>2]|0;
  13191. $288 = $286 << 2;
  13192. $289 = Math_imul($288, $287)|0;
  13193. $290 = ($285|0)<($289|0);
  13194. if ($290) {
  13195. $$0202 = $285;$$2201 = $284;
  13196. } else {
  13197. break;
  13198. }
  13199. }
  13200. }
  13201. break;
  13202. }
  13203. default: {
  13204. }
  13205. }
  13206. _free($7);
  13207. STACKTOP = sp;return;
  13208. }
  13209. function _LoadTextureFromImage($0,$1) {
  13210. $0 = $0|0;
  13211. $1 = $1|0;
  13212. 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;
  13213. sp = STACKTOP;
  13214. $2 = HEAP32[$1>>2]|0;
  13215. $3 = ((($1)) + 4|0);
  13216. $4 = HEAP32[$3>>2]|0;
  13217. $5 = ((($1)) + 8|0);
  13218. $6 = HEAP32[$5>>2]|0;
  13219. $7 = ((($1)) + 16|0);
  13220. $8 = HEAP32[$7>>2]|0;
  13221. $9 = ((($1)) + 12|0);
  13222. $10 = HEAP32[$9>>2]|0;
  13223. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  13224. $12 = HEAP32[$3>>2]|0;
  13225. $13 = HEAP32[$5>>2]|0;
  13226. HEAP32[$0>>2] = $11;
  13227. $$sroa$5$0$$sroa_idx2 = ((($0)) + 4|0);
  13228. HEAP32[$$sroa$5$0$$sroa_idx2>>2] = $12;
  13229. $$sroa$7$0$$sroa_idx4 = ((($0)) + 8|0);
  13230. HEAP32[$$sroa$7$0$$sroa_idx4>>2] = $13;
  13231. $$sroa$9$0$$sroa_idx6 = ((($0)) + 12|0);
  13232. HEAP32[$$sroa$9$0$$sroa_idx6>>2] = $10;
  13233. $$sroa$11$0$$sroa_idx8 = ((($0)) + 16|0);
  13234. HEAP32[$$sroa$11$0$$sroa_idx8>>2] = $8;
  13235. return;
  13236. }
  13237. function _UnloadImage($0) {
  13238. $0 = $0|0;
  13239. var $1 = 0, label = 0, sp = 0;
  13240. sp = STACKTOP;
  13241. $1 = HEAP32[$0>>2]|0;
  13242. _free($1);
  13243. return;
  13244. }
  13245. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  13246. $0 = $0|0;
  13247. $1 = $1|0;
  13248. $2 = $2|0;
  13249. $3 = $3|0;
  13250. $4 = $4|0;
  13251. 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;
  13252. 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;
  13253. 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;
  13254. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  13255. sp = STACKTOP;
  13256. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  13257. $vararg_buffer15 = sp + 64|0;
  13258. $vararg_buffer11 = sp + 48|0;
  13259. $vararg_buffer9 = sp + 40|0;
  13260. $vararg_buffer7 = sp + 32|0;
  13261. $vararg_buffer5 = sp + 24|0;
  13262. $vararg_buffer3 = sp + 16|0;
  13263. $vararg_buffer1 = sp + 8|0;
  13264. $vararg_buffer = sp;
  13265. $5 = sp + 68|0;
  13266. _glBindTexture(3553,0);
  13267. HEAP32[$5>>2] = 0;
  13268. $6 = HEAP32[4728]|0;
  13269. $7 = ($6|0)==(0);
  13270. $8 = $3 & -4;
  13271. $switch = ($8|0)==(8);
  13272. $or$cond100 = $switch & $7;
  13273. if ($or$cond100) {
  13274. _TraceLog(2,4925,$vararg_buffer);
  13275. $$0 = HEAP32[$5>>2]|0;
  13276. STACKTOP = sp;return ($$0|0);
  13277. }
  13278. $9 = HEAP32[4729]|0;
  13279. $10 = ($9|0)==(0);
  13280. $11 = ($3|0)==(12);
  13281. $or$cond7 = $11 & $10;
  13282. if ($or$cond7) {
  13283. _TraceLog(2,4969,$vararg_buffer1);
  13284. $$0 = HEAP32[$5>>2]|0;
  13285. STACKTOP = sp;return ($$0|0);
  13286. }
  13287. $12 = HEAP32[4730]|0;
  13288. $13 = ($12|0)==(0);
  13289. $$off = (($3) + -13)|0;
  13290. $14 = ($$off>>>0)<(2);
  13291. $or$cond = $14 & $13;
  13292. if ($or$cond) {
  13293. _TraceLog(2,5014,$vararg_buffer3);
  13294. $$0 = HEAP32[$5>>2]|0;
  13295. STACKTOP = sp;return ($$0|0);
  13296. }
  13297. $15 = HEAP32[4731]|0;
  13298. $16 = ($15|0)==(0);
  13299. $$off92 = (($3) + -15)|0;
  13300. $17 = ($$off92>>>0)<(2);
  13301. $or$cond96 = $17 & $16;
  13302. if ($or$cond96) {
  13303. _TraceLog(2,5059,$vararg_buffer5);
  13304. $$0 = HEAP32[$5>>2]|0;
  13305. STACKTOP = sp;return ($$0|0);
  13306. }
  13307. $18 = HEAP32[4732]|0;
  13308. $19 = ($18|0)==(0);
  13309. $$off93 = (($3) + -17)|0;
  13310. $20 = ($$off93>>>0)<(2);
  13311. $or$cond98 = $20 & $19;
  13312. if ($or$cond98) {
  13313. _TraceLog(2,5104,$vararg_buffer7);
  13314. $$0 = HEAP32[$5>>2]|0;
  13315. STACKTOP = sp;return ($$0|0);
  13316. }
  13317. _glGenTextures(1,($5|0));
  13318. $21 = HEAP32[$5>>2]|0;
  13319. _glBindTexture(3553,($21|0));
  13320. do {
  13321. switch ($3|0) {
  13322. case 1: {
  13323. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  13324. break;
  13325. }
  13326. case 2: {
  13327. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  13328. break;
  13329. }
  13330. case 3: {
  13331. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  13332. break;
  13333. }
  13334. case 4: {
  13335. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  13336. break;
  13337. }
  13338. case 5: {
  13339. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  13340. break;
  13341. }
  13342. case 6: {
  13343. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  13344. break;
  13345. }
  13346. case 7: {
  13347. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  13348. break;
  13349. }
  13350. case 8: {
  13351. $22 = HEAP32[4728]|0;
  13352. $23 = ($22|0)==(0);
  13353. if (!($23)) {
  13354. _LoadCompressedTexture($0,$1,$2,$4,33776);
  13355. }
  13356. break;
  13357. }
  13358. case 9: {
  13359. $24 = HEAP32[4728]|0;
  13360. $25 = ($24|0)==(0);
  13361. if (!($25)) {
  13362. _LoadCompressedTexture($0,$1,$2,$4,33777);
  13363. }
  13364. break;
  13365. }
  13366. case 10: {
  13367. $26 = HEAP32[4728]|0;
  13368. $27 = ($26|0)==(0);
  13369. if (!($27)) {
  13370. _LoadCompressedTexture($0,$1,$2,$4,33778);
  13371. }
  13372. break;
  13373. }
  13374. case 11: {
  13375. $28 = HEAP32[4728]|0;
  13376. $29 = ($28|0)==(0);
  13377. if (!($29)) {
  13378. _LoadCompressedTexture($0,$1,$2,$4,33779);
  13379. }
  13380. break;
  13381. }
  13382. case 12: {
  13383. $30 = HEAP32[4729]|0;
  13384. $31 = ($30|0)==(0);
  13385. if (!($31)) {
  13386. _LoadCompressedTexture($0,$1,$2,$4,36196);
  13387. }
  13388. break;
  13389. }
  13390. case 13: {
  13391. $32 = HEAP32[4730]|0;
  13392. $33 = ($32|0)==(0);
  13393. if (!($33)) {
  13394. _LoadCompressedTexture($0,$1,$2,$4,37492);
  13395. }
  13396. break;
  13397. }
  13398. case 14: {
  13399. $34 = HEAP32[4730]|0;
  13400. $35 = ($34|0)==(0);
  13401. if (!($35)) {
  13402. _LoadCompressedTexture($0,$1,$2,$4,37496);
  13403. }
  13404. break;
  13405. }
  13406. case 15: {
  13407. $36 = HEAP32[4731]|0;
  13408. $37 = ($36|0)==(0);
  13409. if (!($37)) {
  13410. _LoadCompressedTexture($0,$1,$2,$4,35840);
  13411. }
  13412. break;
  13413. }
  13414. case 16: {
  13415. $38 = HEAP32[4731]|0;
  13416. $39 = ($38|0)==(0);
  13417. if (!($39)) {
  13418. _LoadCompressedTexture($0,$1,$2,$4,35842);
  13419. }
  13420. break;
  13421. }
  13422. case 17: {
  13423. $40 = HEAP32[4732]|0;
  13424. $41 = ($40|0)==(0);
  13425. if (!($41)) {
  13426. _LoadCompressedTexture($0,$1,$2,$4,37808);
  13427. }
  13428. break;
  13429. }
  13430. case 18: {
  13431. $42 = HEAP32[4732]|0;
  13432. $43 = ($42|0)==(0);
  13433. if (!($43)) {
  13434. _LoadCompressedTexture($0,$1,$2,$4,37815);
  13435. }
  13436. break;
  13437. }
  13438. default: {
  13439. _TraceLog(2,5149,$vararg_buffer9);
  13440. }
  13441. }
  13442. } while(0);
  13443. $44 = HEAP32[4733]|0;
  13444. $45 = ($44|0)==(0);
  13445. if ($45) {
  13446. _glTexParameteri(3553,10242,33071);
  13447. _glTexParameteri(3553,10243,33071);
  13448. } else {
  13449. _glTexParameteri(3553,10242,10497);
  13450. _glTexParameteri(3553,10243,10497);
  13451. }
  13452. _glTexParameteri(3553,10240,9728);
  13453. _glTexParameteri(3553,10241,9728);
  13454. _glBindTexture(3553,0);
  13455. $46 = HEAP32[$5>>2]|0;
  13456. $47 = ($46|0)==(0);
  13457. if ($47) {
  13458. _TraceLog(2,11993,$vararg_buffer15);
  13459. $$0 = HEAP32[$5>>2]|0;
  13460. STACKTOP = sp;return ($$0|0);
  13461. } else {
  13462. HEAP32[$vararg_buffer11>>2] = $46;
  13463. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  13464. HEAP32[$vararg_ptr13>>2] = $1;
  13465. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  13466. HEAP32[$vararg_ptr14>>2] = $2;
  13467. _TraceLog(0,5178,$vararg_buffer11);
  13468. $$0 = HEAP32[$5>>2]|0;
  13469. STACKTOP = sp;return ($$0|0);
  13470. }
  13471. return (0)|0;
  13472. }
  13473. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  13474. $0 = $0|0;
  13475. $1 = $1|0;
  13476. $2 = $2|0;
  13477. $3 = $3|0;
  13478. $4 = $4|0;
  13479. 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;
  13480. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  13481. sp = STACKTOP;
  13482. _glPixelStorei(3317,1);
  13483. switch ($4|0) {
  13484. case 33776: case 33777: case 36196: case 37492: {
  13485. $$038 = 8;
  13486. break;
  13487. }
  13488. default: {
  13489. $$038 = 16;
  13490. }
  13491. }
  13492. $5 = ($3|0)<(1);
  13493. $6 = $1 | $2;
  13494. $7 = ($6|0)==(0);
  13495. $or$cond42 = $5 | $7;
  13496. if ($or$cond42) {
  13497. return;
  13498. } else {
  13499. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  13500. }
  13501. while(1) {
  13502. $8 = (($$046) + 3)|0;
  13503. $9 = (($8|0) / 4)&-1;
  13504. $10 = (($$03943) + 3)|0;
  13505. $11 = (($10|0) / 4)&-1;
  13506. $12 = Math_imul($11, $$038)|0;
  13507. $13 = Math_imul($12, $9)|0;
  13508. $14 = (($0) + ($$03744)|0);
  13509. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  13510. $15 = (($13) + ($$03744))|0;
  13511. $16 = (($$046|0) / 2)&-1;
  13512. $17 = (($$03943|0) / 2)&-1;
  13513. $18 = ($$046|0)<(2);
  13514. $$ = $18 ? 1 : $16;
  13515. $19 = ($$03943|0)<(2);
  13516. $$140 = $19 ? 1 : $17;
  13517. $20 = (($$03645) + 1)|0;
  13518. $21 = ($20|0)>=($3|0);
  13519. $22 = $$ | $$140;
  13520. $23 = ($22|0)==(0);
  13521. $or$cond = $21 | $23;
  13522. if ($or$cond) {
  13523. break;
  13524. } else {
  13525. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  13526. }
  13527. }
  13528. return;
  13529. }
  13530. function _GetImageData($0) {
  13531. $0 = $0|0;
  13532. 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;
  13533. 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;
  13534. 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;
  13535. 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;
  13536. 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;
  13537. 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;
  13538. 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;
  13539. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13540. sp = STACKTOP;
  13541. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13542. $vararg_buffer = sp;
  13543. $1 = ((($0)) + 4|0);
  13544. $2 = HEAP32[$1>>2]|0;
  13545. $3 = ((($0)) + 8|0);
  13546. $4 = HEAP32[$3>>2]|0;
  13547. $5 = $2 << 2;
  13548. $6 = Math_imul($5, $4)|0;
  13549. $7 = (_malloc($6)|0);
  13550. $8 = HEAP32[$1>>2]|0;
  13551. $9 = Math_imul($4, $8)|0;
  13552. $10 = ($9|0)>(0);
  13553. if (!($10)) {
  13554. STACKTOP = sp;return ($7|0);
  13555. }
  13556. $11 = ((($0)) + 16|0);
  13557. $12 = HEAP32[$11>>2]|0;
  13558. $13 = HEAP32[$0>>2]|0;
  13559. $$0104105 = 0;$$0106 = 0;
  13560. while(1) {
  13561. switch ($12|0) {
  13562. case 1: {
  13563. $14 = (($13) + ($$0106)|0);
  13564. $15 = HEAP8[$14>>0]|0;
  13565. $16 = (($7) + ($$0104105<<2)|0);
  13566. HEAP8[$16>>0] = $15;
  13567. $17 = HEAP8[$14>>0]|0;
  13568. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13569. HEAP8[$18>>0] = $17;
  13570. $19 = HEAP8[$14>>0]|0;
  13571. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13572. HEAP8[$20>>0] = $19;
  13573. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13574. HEAP8[$21>>0] = -1;
  13575. $22 = (($$0106) + 1)|0;
  13576. $$1 = $22;
  13577. break;
  13578. }
  13579. case 2: {
  13580. $23 = (($13) + ($$0106)|0);
  13581. $24 = HEAP8[$23>>0]|0;
  13582. $25 = (($7) + ($$0104105<<2)|0);
  13583. HEAP8[$25>>0] = $24;
  13584. $26 = HEAP8[$23>>0]|0;
  13585. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13586. HEAP8[$27>>0] = $26;
  13587. $28 = HEAP8[$23>>0]|0;
  13588. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13589. HEAP8[$29>>0] = $28;
  13590. $30 = (($$0106) + 1)|0;
  13591. $31 = (($13) + ($30)|0);
  13592. $32 = HEAP8[$31>>0]|0;
  13593. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13594. HEAP8[$33>>0] = $32;
  13595. $34 = (($$0106) + 2)|0;
  13596. $$1 = $34;
  13597. break;
  13598. }
  13599. case 5: {
  13600. $35 = (($13) + ($$0106<<1)|0);
  13601. $36 = HEAP16[$35>>1]|0;
  13602. $37 = $36&65535;
  13603. $38 = $37 >>> 11;
  13604. $39 = (+($38|0));
  13605. $40 = $39 * 8.0;
  13606. $41 = (~~(($40))&255);
  13607. $42 = (($7) + ($$0104105<<2)|0);
  13608. HEAP8[$42>>0] = $41;
  13609. $43 = $37 >>> 6;
  13610. $44 = $43 & 31;
  13611. $45 = (+($44|0));
  13612. $46 = $45 * 8.0;
  13613. $47 = (~~(($46))&255);
  13614. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13615. HEAP8[$48>>0] = $47;
  13616. $49 = $37 >>> 1;
  13617. $50 = $49 & 31;
  13618. $51 = (+($50|0));
  13619. $52 = $51 * 8.0;
  13620. $53 = (~~(($52))&255);
  13621. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13622. HEAP8[$54>>0] = $53;
  13623. $55 = $37 & 1;
  13624. $56 = (0 - ($55))|0;
  13625. $57 = $56&255;
  13626. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13627. HEAP8[$58>>0] = $57;
  13628. $59 = (($$0106) + 1)|0;
  13629. $$1 = $59;
  13630. break;
  13631. }
  13632. case 3: {
  13633. $60 = (($13) + ($$0106<<1)|0);
  13634. $61 = HEAP16[$60>>1]|0;
  13635. $62 = $61&65535;
  13636. $63 = $62 >>> 11;
  13637. $64 = (+($63|0));
  13638. $65 = $64 * 8.0;
  13639. $66 = (~~(($65))&255);
  13640. $67 = (($7) + ($$0104105<<2)|0);
  13641. HEAP8[$67>>0] = $66;
  13642. $68 = $62 >>> 5;
  13643. $69 = $68 & 63;
  13644. $70 = (+($69|0));
  13645. $71 = $70 * 4.0;
  13646. $72 = (~~(($71))&255);
  13647. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13648. HEAP8[$73>>0] = $72;
  13649. $74 = $62 & 31;
  13650. $75 = (+($74|0));
  13651. $76 = $75 * 8.0;
  13652. $77 = (~~(($76))&255);
  13653. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13654. HEAP8[$78>>0] = $77;
  13655. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13656. HEAP8[$79>>0] = -1;
  13657. $80 = (($$0106) + 1)|0;
  13658. $$1 = $80;
  13659. break;
  13660. }
  13661. case 6: {
  13662. $81 = (($13) + ($$0106<<1)|0);
  13663. $82 = HEAP16[$81>>1]|0;
  13664. $83 = $82&65535;
  13665. $84 = $83 >>> 12;
  13666. $85 = (+($84|0));
  13667. $86 = $85 * 17.0;
  13668. $87 = (~~(($86))&255);
  13669. $88 = (($7) + ($$0104105<<2)|0);
  13670. HEAP8[$88>>0] = $87;
  13671. $89 = $83 >>> 8;
  13672. $90 = $89 & 15;
  13673. $91 = (+($90|0));
  13674. $92 = $91 * 17.0;
  13675. $93 = (~~(($92))&255);
  13676. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13677. HEAP8[$94>>0] = $93;
  13678. $95 = $83 >>> 4;
  13679. $96 = $95 & 15;
  13680. $97 = (+($96|0));
  13681. $98 = $97 * 17.0;
  13682. $99 = (~~(($98))&255);
  13683. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13684. HEAP8[$100>>0] = $99;
  13685. $101 = $83 & 15;
  13686. $102 = (+($101|0));
  13687. $103 = $102 * 17.0;
  13688. $104 = (~~(($103))&255);
  13689. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13690. HEAP8[$105>>0] = $104;
  13691. $106 = (($$0106) + 1)|0;
  13692. $$1 = $106;
  13693. break;
  13694. }
  13695. case 7: {
  13696. $107 = (($13) + ($$0106)|0);
  13697. $108 = HEAP8[$107>>0]|0;
  13698. $109 = (($7) + ($$0104105<<2)|0);
  13699. HEAP8[$109>>0] = $108;
  13700. $110 = (($$0106) + 1)|0;
  13701. $111 = (($13) + ($110)|0);
  13702. $112 = HEAP8[$111>>0]|0;
  13703. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13704. HEAP8[$113>>0] = $112;
  13705. $114 = (($$0106) + 2)|0;
  13706. $115 = (($13) + ($114)|0);
  13707. $116 = HEAP8[$115>>0]|0;
  13708. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13709. HEAP8[$117>>0] = $116;
  13710. $118 = (($$0106) + 3)|0;
  13711. $119 = (($13) + ($118)|0);
  13712. $120 = HEAP8[$119>>0]|0;
  13713. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13714. HEAP8[$121>>0] = $120;
  13715. $122 = (($$0106) + 4)|0;
  13716. $$1 = $122;
  13717. break;
  13718. }
  13719. case 4: {
  13720. $123 = (($13) + ($$0106)|0);
  13721. $124 = HEAP8[$123>>0]|0;
  13722. $125 = (($7) + ($$0104105<<2)|0);
  13723. HEAP8[$125>>0] = $124;
  13724. $126 = (($$0106) + 1)|0;
  13725. $127 = (($13) + ($126)|0);
  13726. $128 = HEAP8[$127>>0]|0;
  13727. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13728. HEAP8[$129>>0] = $128;
  13729. $130 = (($$0106) + 2)|0;
  13730. $131 = (($13) + ($130)|0);
  13731. $132 = HEAP8[$131>>0]|0;
  13732. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13733. HEAP8[$133>>0] = $132;
  13734. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13735. HEAP8[$134>>0] = -1;
  13736. $135 = (($$0106) + 3)|0;
  13737. $$1 = $135;
  13738. break;
  13739. }
  13740. default: {
  13741. _TraceLog(2,5281,$vararg_buffer);
  13742. $$1 = $$0106;
  13743. }
  13744. }
  13745. $136 = (($$0104105) + 1)|0;
  13746. $137 = HEAP32[$1>>2]|0;
  13747. $138 = HEAP32[$3>>2]|0;
  13748. $139 = Math_imul($138, $137)|0;
  13749. $140 = ($136|0)<($139|0);
  13750. if ($140) {
  13751. $$0104105 = $136;$$0106 = $$1;
  13752. } else {
  13753. break;
  13754. }
  13755. }
  13756. STACKTOP = sp;return ($7|0);
  13757. }
  13758. function _ErrorCallback($0,$1) {
  13759. $0 = $0|0;
  13760. $1 = $1|0;
  13761. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  13762. sp = STACKTOP;
  13763. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13764. $vararg_buffer = sp;
  13765. HEAP32[$vararg_buffer>>2] = $0;
  13766. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  13767. HEAP32[$vararg_ptr1>>2] = $1;
  13768. _TraceLog(2,9147,$vararg_buffer);
  13769. STACKTOP = sp;return;
  13770. }
  13771. function _rlGetVersion() {
  13772. var label = 0, sp = 0;
  13773. sp = STACKTOP;
  13774. return 4;
  13775. }
  13776. function _SetupFramebufferSize($0,$1) {
  13777. $0 = $0|0;
  13778. $1 = $1|0;
  13779. 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;
  13780. 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;
  13781. 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;
  13782. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13783. sp = STACKTOP;
  13784. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  13785. $vararg_buffer8 = sp + 24|0;
  13786. $vararg_buffer4 = sp + 16|0;
  13787. $vararg_buffer = sp;
  13788. $2 = sp + 40|0;
  13789. $3 = HEAP32[4712]|0;
  13790. $4 = ($3|0)>($0|0);
  13791. if (!($4)) {
  13792. $5 = HEAP32[4711]|0;
  13793. $6 = ($5|0)>($1|0);
  13794. if (!($6)) {
  13795. $30 = ($3|0)<($0|0);
  13796. $31 = ($5|0)<($1|0);
  13797. $or$cond = $30 | $31;
  13798. if (!($or$cond)) {
  13799. HEAP32[4753] = $3;
  13800. HEAP32[4754] = $5;
  13801. HEAP32[4755] = 0;
  13802. HEAP32[4756] = 0;
  13803. STACKTOP = sp;return;
  13804. }
  13805. HEAP32[$vararg_buffer8>>2] = $3;
  13806. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  13807. HEAP32[$vararg_ptr11>>2] = $5;
  13808. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  13809. HEAP32[$vararg_ptr12>>2] = $0;
  13810. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  13811. HEAP32[$vararg_ptr13>>2] = $1;
  13812. _TraceLog(0,9081,$vararg_buffer8);
  13813. $32 = (+($0|0));
  13814. $33 = (+($1|0));
  13815. $34 = $32 / $33;
  13816. $35 = HEAP32[4712]|0;
  13817. $36 = (+($35|0));
  13818. $37 = HEAP32[4711]|0;
  13819. $38 = (+($37|0));
  13820. $39 = $36 / $38;
  13821. $40 = !($34 <= $39);
  13822. if ($40) {
  13823. $44 = $34 * $38;
  13824. $roundf = (+_roundf((+$44)));
  13825. $45 = (~~(($roundf)));
  13826. HEAP32[4753] = $45;
  13827. HEAP32[4754] = $37;
  13828. $46 = (($45) - ($35))|0;
  13829. HEAP32[4755] = $46;
  13830. $$sink1 = 0;
  13831. } else {
  13832. HEAP32[4753] = $35;
  13833. $41 = $36 / $34;
  13834. $roundf38 = (+_roundf((+$41)));
  13835. $42 = (~~(($roundf38)));
  13836. HEAP32[4754] = $42;
  13837. HEAP32[4755] = 0;
  13838. $43 = (($42) - ($37))|0;
  13839. $$sink1 = $43;
  13840. }
  13841. HEAP32[4756] = $$sink1;
  13842. STACKTOP = sp;return;
  13843. }
  13844. }
  13845. $7 = HEAP32[4711]|0;
  13846. HEAP32[$vararg_buffer>>2] = $3;
  13847. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  13848. HEAP32[$vararg_ptr1>>2] = $7;
  13849. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  13850. HEAP32[$vararg_ptr2>>2] = $0;
  13851. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  13852. HEAP32[$vararg_ptr3>>2] = $1;
  13853. _TraceLog(2,8938,$vararg_buffer);
  13854. $8 = (+($0|0));
  13855. $9 = HEAP32[4712]|0;
  13856. $10 = (+($9|0));
  13857. $11 = $8 / $10;
  13858. $12 = (+($1|0));
  13859. $13 = HEAP32[4711]|0;
  13860. $14 = (+($13|0));
  13861. $15 = $12 / $14;
  13862. $16 = !($11 <= $15);
  13863. if ($16) {
  13864. $22 = $10 * $15;
  13865. $roundf39 = (+_roundf((+$22)));
  13866. $23 = (~~(($roundf39)));
  13867. HEAP32[4753] = $23;
  13868. HEAP32[4754] = $1;
  13869. $24 = (($0) - ($23))|0;
  13870. HEAP32[4755] = $24;
  13871. $$sink = 0;
  13872. } else {
  13873. HEAP32[4753] = $0;
  13874. $17 = HEAP32[4711]|0;
  13875. $18 = (+($17|0));
  13876. $19 = $11 * $18;
  13877. $roundf40 = (+_roundf((+$19)));
  13878. $20 = (~~(($roundf40)));
  13879. HEAP32[4754] = $20;
  13880. HEAP32[4755] = 0;
  13881. $21 = (($1) - ($20))|0;
  13882. $$sink = $21;
  13883. }
  13884. HEAP32[4756] = $$sink;
  13885. $25 = HEAP32[4753]|0;
  13886. $26 = (+($25|0));
  13887. $27 = HEAP32[4712]|0;
  13888. $28 = (+($27|0));
  13889. $29 = $26 / $28;
  13890. _MatrixScale($2,$29,$29,$29);
  13891. dest=18936; 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));
  13892. HEAP32[4753] = $0;
  13893. HEAP32[4754] = $1;
  13894. HEAP32[$vararg_buffer4>>2] = $0;
  13895. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  13896. HEAP32[$vararg_ptr7>>2] = $1;
  13897. _TraceLog(2,9016,$vararg_buffer4);
  13898. STACKTOP = sp;return;
  13899. }
  13900. function _WindowSizeCallback($0,$1,$2) {
  13901. $0 = $0|0;
  13902. $1 = $1|0;
  13903. $2 = $2|0;
  13904. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  13905. sp = STACKTOP;
  13906. _rlViewport(0,0,$1,$2);
  13907. _rlMatrixMode(5889);
  13908. _rlLoadIdentity();
  13909. $3 = (+($1|0));
  13910. $4 = (+($2|0));
  13911. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  13912. _rlMatrixMode(5888);
  13913. _rlLoadIdentity();
  13914. _rlClearScreenBuffers();
  13915. HEAP32[4712] = $1;
  13916. HEAP32[4711] = $2;
  13917. HEAP32[4753] = $1;
  13918. HEAP32[4754] = $2;
  13919. return;
  13920. }
  13921. function _CursorEnterCallback($0,$1) {
  13922. $0 = $0|0;
  13923. $1 = $1|0;
  13924. var label = 0, sp = 0;
  13925. sp = STACKTOP;
  13926. return;
  13927. }
  13928. function _KeyCallback($0,$1,$2,$3,$4) {
  13929. $0 = $0|0;
  13930. $1 = $1|0;
  13931. $2 = $2|0;
  13932. $3 = $3|0;
  13933. $4 = $4|0;
  13934. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  13935. sp = STACKTOP;
  13936. $5 = HEAP32[762]|0;
  13937. $6 = ($5|0)==($1|0);
  13938. $7 = ($3|0)==(1);
  13939. $or$cond = $7 & $6;
  13940. if ($or$cond) {
  13941. _glfwSetWindowShouldClose(($0|0),1);
  13942. return;
  13943. }
  13944. $8 = $3&255;
  13945. $9 = (21687 + ($1)|0);
  13946. HEAP8[$9>>0] = $8;
  13947. if (!($7)) {
  13948. return;
  13949. }
  13950. HEAP32[761] = $1;
  13951. return;
  13952. }
  13953. function _MouseButtonCallback($0,$1,$2,$3) {
  13954. $0 = $0|0;
  13955. $1 = $1|0;
  13956. $2 = $2|0;
  13957. $3 = $3|0;
  13958. 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;
  13959. 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;
  13960. sp = STACKTOP;
  13961. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  13962. $$byval_copy = sp + 64|0;
  13963. $4 = sp + 8|0;
  13964. $5 = sp;
  13965. $6 = $2&255;
  13966. $7 = (21681 + ($1)|0);
  13967. HEAP8[$7>>0] = $6;
  13968. $8 = (_IsMouseButtonPressed(0)|0);
  13969. $9 = ($8|0)==(0);
  13970. if ($9) {
  13971. $10 = (_IsMouseButtonReleased(0)|0);
  13972. $11 = ($10|0)==(0);
  13973. if (!($11)) {
  13974. $$sink = 0;
  13975. label = 3;
  13976. }
  13977. } else {
  13978. $$sink = 1;
  13979. label = 3;
  13980. }
  13981. if ((label|0) == 3) {
  13982. HEAP32[$4>>2] = $$sink;
  13983. }
  13984. $12 = ((($4)) + 8|0);
  13985. HEAP32[$12>>2] = 0;
  13986. $13 = ((($4)) + 4|0);
  13987. HEAP32[$13>>2] = 1;
  13988. $14 = ((($4)) + 24|0);
  13989. _GetMousePosition($5);
  13990. $15 = $5;
  13991. $16 = $15;
  13992. $17 = HEAP32[$16>>2]|0;
  13993. $18 = (($15) + 4)|0;
  13994. $19 = $18;
  13995. $20 = HEAP32[$19>>2]|0;
  13996. $21 = $14;
  13997. $22 = $21;
  13998. HEAP32[$22>>2] = $17;
  13999. $23 = (($21) + 4)|0;
  14000. $24 = $23;
  14001. HEAP32[$24>>2] = $20;
  14002. $25 = (_GetScreenWidth()|0);
  14003. $26 = (+($25|0));
  14004. $27 = +HEAPF32[$14>>2];
  14005. $28 = $27 / $26;
  14006. HEAPF32[$14>>2] = $28;
  14007. $29 = (_GetScreenHeight()|0);
  14008. $30 = (+($29|0));
  14009. $31 = ((($4)) + 28|0);
  14010. $32 = +HEAPF32[$31>>2];
  14011. $33 = $32 / $30;
  14012. HEAPF32[$31>>2] = $33;
  14013. 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));
  14014. _ProcessGestureEvent($$byval_copy);
  14015. STACKTOP = sp;return;
  14016. }
  14017. function _MouseCursorPosCallback($0,$1,$2) {
  14018. $0 = $0|0;
  14019. $1 = +$1;
  14020. $2 = +$2;
  14021. 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;
  14022. 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;
  14023. sp = STACKTOP;
  14024. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  14025. $$byval_copy = sp + 56|0;
  14026. $3 = sp;
  14027. HEAP32[$3>>2] = 2;
  14028. $4 = ((($3)) + 8|0);
  14029. HEAP32[$4>>2] = 0;
  14030. $5 = ((($3)) + 4|0);
  14031. HEAP32[$5>>2] = 1;
  14032. $6 = $1;
  14033. $7 = $2;
  14034. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  14035. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  14036. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  14037. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  14038. $8 = ((($3)) + 24|0);
  14039. $9 = $8;
  14040. $10 = $9;
  14041. $11 = HEAP32[$10>>2]|0;
  14042. $12 = (($9) + 4)|0;
  14043. $13 = $12;
  14044. $14 = HEAP32[$13>>2]|0;
  14045. $15 = 18240;
  14046. $16 = $15;
  14047. HEAP32[$16>>2] = $11;
  14048. $17 = (($15) + 4)|0;
  14049. $18 = $17;
  14050. HEAP32[$18>>2] = $14;
  14051. $19 = (_GetScreenWidth()|0);
  14052. $20 = (+($19|0));
  14053. $21 = +HEAPF32[$8>>2];
  14054. $22 = $21 / $20;
  14055. HEAPF32[$8>>2] = $22;
  14056. $23 = (_GetScreenHeight()|0);
  14057. $24 = (+($23|0));
  14058. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  14059. $26 = $25 / $24;
  14060. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  14061. 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));
  14062. _ProcessGestureEvent($$byval_copy);
  14063. STACKTOP = sp;return;
  14064. }
  14065. function _CharCallback($0,$1) {
  14066. $0 = $0|0;
  14067. $1 = $1|0;
  14068. var label = 0, sp = 0;
  14069. sp = STACKTOP;
  14070. HEAP32[761] = $1;
  14071. return;
  14072. }
  14073. function _ScrollCallback($0,$1,$2) {
  14074. $0 = $0|0;
  14075. $1 = +$1;
  14076. $2 = +$2;
  14077. var $3 = 0, label = 0, sp = 0;
  14078. sp = STACKTOP;
  14079. $3 = (~~(($2)));
  14080. HEAP32[5126] = $3;
  14081. return;
  14082. }
  14083. function _WindowIconifyCallback($0,$1) {
  14084. $0 = $0|0;
  14085. $1 = $1|0;
  14086. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  14087. sp = STACKTOP;
  14088. $2 = ($1|0)!=(0);
  14089. $$sink = $2&1;
  14090. HEAP32[5125] = $$sink;
  14091. return;
  14092. }
  14093. function _rlglInit($0,$1) {
  14094. $0 = $0|0;
  14095. $1 = $1|0;
  14096. 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;
  14097. 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;
  14098. 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;
  14099. 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;
  14100. 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;
  14101. 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;
  14102. sp = STACKTOP;
  14103. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  14104. $vararg_buffer41 = sp + 2184|0;
  14105. $vararg_buffer39 = sp + 2176|0;
  14106. $vararg_buffer36 = sp + 2168|0;
  14107. $vararg_buffer34 = sp + 2160|0;
  14108. $vararg_buffer31 = sp + 2152|0;
  14109. $vararg_buffer29 = sp + 2144|0;
  14110. $vararg_buffer27 = sp + 2136|0;
  14111. $vararg_buffer25 = sp + 2128|0;
  14112. $vararg_buffer23 = sp + 2120|0;
  14113. $vararg_buffer21 = sp + 2112|0;
  14114. $vararg_buffer19 = sp + 2104|0;
  14115. $vararg_buffer17 = sp + 2096|0;
  14116. $vararg_buffer15 = sp + 2088|0;
  14117. $vararg_buffer13 = sp + 2080|0;
  14118. $vararg_buffer10 = sp + 2072|0;
  14119. $vararg_buffer7 = sp + 24|0;
  14120. $vararg_buffer4 = sp + 16|0;
  14121. $vararg_buffer1 = sp + 8|0;
  14122. $vararg_buffer = sp;
  14123. $2 = sp + 2400|0;
  14124. $3 = sp + 2384|0;
  14125. $4 = sp + 2320|0;
  14126. $5 = sp + 2256|0;
  14127. $6 = sp + 2192|0;
  14128. $7 = (_glGetString(7936)|0);
  14129. HEAP32[$vararg_buffer>>2] = $7;
  14130. _TraceLog(0,5579,$vararg_buffer);
  14131. $8 = (_glGetString(7937)|0);
  14132. HEAP32[$vararg_buffer1>>2] = $8;
  14133. _TraceLog(0,5597,$vararg_buffer1);
  14134. $9 = (_glGetString(7938)|0);
  14135. HEAP32[$vararg_buffer4>>2] = $9;
  14136. _TraceLog(0,5615,$vararg_buffer4);
  14137. $10 = (_glGetString(35724)|0);
  14138. HEAP32[$vararg_buffer7>>2] = $10;
  14139. _TraceLog(0,5633,$vararg_buffer7);
  14140. $11 = (_glGetString(7939)|0);
  14141. $12 = (_strlen($11)|0);
  14142. $13 = (($12) + 1)|0;
  14143. $14 = (_malloc($13)|0);
  14144. _memcpy(($14|0),($11|0),($13|0))|0;
  14145. $$062 = 0;$$sink63 = $14;
  14146. while(1) {
  14147. $15 = (_strtok($$sink63,5651)|0);
  14148. $16 = (($vararg_buffer7) + ($$062<<2)|0);
  14149. HEAP32[$16>>2] = $15;
  14150. $17 = ($15|0)==(0|0);
  14151. $18 = (($$062) + 1)|0;
  14152. if ($17) {
  14153. break;
  14154. } else {
  14155. $$062 = $18;$$sink63 = 0;
  14156. }
  14157. }
  14158. _free($14);
  14159. $19 = (($$062) + -1)|0;
  14160. HEAP32[$vararg_buffer10>>2] = $19;
  14161. _TraceLog(0,5653,$vararg_buffer10);
  14162. $20 = ($$062|0)>(1);
  14163. if ($20) {
  14164. $$06167 = 0;
  14165. while(1) {
  14166. $23 = (($vararg_buffer7) + ($$06167<<2)|0);
  14167. $24 = HEAP32[$23>>2]|0;
  14168. $25 = (_strcmp($24,5688)|0);
  14169. $26 = ($25|0)==(0);
  14170. if ($26) {
  14171. HEAP32[4791] = 1;
  14172. $27 = (_eglGetProcAddress((5715|0))|0);
  14173. HEAP32[4792] = $27;
  14174. $28 = (_eglGetProcAddress((5736|0))|0);
  14175. HEAP32[4793] = $28;
  14176. $29 = (_eglGetProcAddress((5757|0))|0);
  14177. HEAP32[4794] = $29;
  14178. }
  14179. $30 = (_strcmp($24,5781)|0);
  14180. $31 = ($30|0)==(0);
  14181. if ($31) {
  14182. HEAP32[4733] = 1;
  14183. }
  14184. $32 = (_strcmp($24,5801)|0);
  14185. $33 = ($32|0)==(0);
  14186. if ($33) {
  14187. label = 12;
  14188. } else {
  14189. $34 = HEAP32[$23>>2]|0;
  14190. $35 = (_strcmp($34,5833)|0);
  14191. $36 = ($35|0)==(0);
  14192. if ($36) {
  14193. label = 12;
  14194. } else {
  14195. $37 = (_strcmp($34,5866)|0);
  14196. $38 = ($37|0)==(0);
  14197. if ($38) {
  14198. label = 12;
  14199. }
  14200. }
  14201. }
  14202. if ((label|0) == 12) {
  14203. label = 0;
  14204. HEAP32[4728] = 1;
  14205. }
  14206. $39 = (_strcmp($24,5906)|0);
  14207. $40 = ($39|0)==(0);
  14208. if ($40) {
  14209. label = 15;
  14210. } else {
  14211. $41 = HEAP32[$23>>2]|0;
  14212. $42 = (_strcmp($41,5942)|0);
  14213. $43 = ($42|0)==(0);
  14214. if ($43) {
  14215. label = 15;
  14216. }
  14217. }
  14218. if ((label|0) == 15) {
  14219. label = 0;
  14220. HEAP32[4729] = 1;
  14221. }
  14222. $44 = HEAP32[$23>>2]|0;
  14223. $45 = (_strcmp($44,5975)|0);
  14224. $46 = ($45|0)==(0);
  14225. if ($46) {
  14226. HEAP32[4730] = 1;
  14227. }
  14228. $47 = (_strcmp($44,6000)|0);
  14229. $48 = ($47|0)==(0);
  14230. if ($48) {
  14231. HEAP32[4731] = 1;
  14232. }
  14233. $49 = (_strcmp($44,6033)|0);
  14234. $50 = ($49|0)==(0);
  14235. if ($50) {
  14236. HEAP32[4732] = 1;
  14237. }
  14238. $51 = (_strcmp($44,6069)|0);
  14239. $52 = ($51|0)==(0);
  14240. if ($52) {
  14241. HEAP32[4795] = 1;
  14242. _glGetFloatv(34047,(19184|0));
  14243. }
  14244. $53 = HEAP32[$23>>2]|0;
  14245. $54 = (_strcmp($53,6103)|0);
  14246. $55 = ($54|0)==(0);
  14247. if ($55) {
  14248. HEAP32[4797] = 1;
  14249. }
  14250. $56 = (($$06167) + 1)|0;
  14251. $exitcond70 = ($56|0)==($19|0);
  14252. if ($exitcond70) {
  14253. break;
  14254. } else {
  14255. $$06167 = $56;
  14256. }
  14257. }
  14258. }
  14259. $21 = HEAP32[4791]|0;
  14260. $22 = ($21|0)==(0);
  14261. if ($22) {
  14262. _TraceLog(2,6206,$vararg_buffer15);
  14263. } else {
  14264. _TraceLog(0,6131,$vararg_buffer13);
  14265. }
  14266. $57 = HEAP32[4733]|0;
  14267. $58 = ($57|0)==(0);
  14268. if ($58) {
  14269. _TraceLog(2,6342,$vararg_buffer19);
  14270. } else {
  14271. _TraceLog(0,6267,$vararg_buffer17);
  14272. }
  14273. $59 = HEAP32[4728]|0;
  14274. $60 = ($59|0)==(0);
  14275. if (!($60)) {
  14276. _TraceLog(0,6434,$vararg_buffer21);
  14277. }
  14278. $61 = HEAP32[4729]|0;
  14279. $62 = ($61|0)==(0);
  14280. if (!($62)) {
  14281. _TraceLog(0,6480,$vararg_buffer23);
  14282. }
  14283. $63 = HEAP32[4730]|0;
  14284. $64 = ($63|0)==(0);
  14285. if (!($64)) {
  14286. _TraceLog(0,6527,$vararg_buffer25);
  14287. }
  14288. $65 = HEAP32[4731]|0;
  14289. $66 = ($65|0)==(0);
  14290. if (!($66)) {
  14291. _TraceLog(0,6578,$vararg_buffer27);
  14292. }
  14293. $67 = HEAP32[4732]|0;
  14294. $68 = ($67|0)==(0);
  14295. if (!($68)) {
  14296. _TraceLog(0,6625,$vararg_buffer29);
  14297. }
  14298. $69 = HEAP32[4795]|0;
  14299. $70 = ($69|0)==(0);
  14300. if (!($70)) {
  14301. $71 = +HEAPF32[4796];
  14302. $72 = $71;
  14303. HEAPF64[$vararg_buffer31>>3] = $72;
  14304. _TraceLog(0,6672,$vararg_buffer31);
  14305. }
  14306. $73 = HEAP32[4797]|0;
  14307. $74 = ($73|0)==(0);
  14308. if (!($74)) {
  14309. _TraceLog(0,6738,$vararg_buffer34);
  14310. }
  14311. HEAP32[$vararg_buffer10>>2] = -1;
  14312. $75 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  14313. HEAP32[4798] = $75;
  14314. $76 = ($75|0)==(0);
  14315. if ($76) {
  14316. _TraceLog(2,6842,$vararg_buffer39);
  14317. } else {
  14318. HEAP32[$vararg_buffer36>>2] = $75;
  14319. _TraceLog(0,6791,$vararg_buffer36);
  14320. }
  14321. _LoadDefaultShader($2);
  14322. dest=19196; 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));
  14323. dest=19252; 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));
  14324. _LoadDefaultBuffers();
  14325. $77 = (_malloc(49152)|0);
  14326. HEAP32[4827] = $77;
  14327. $$06066 = 0;
  14328. while(1) {
  14329. $79 = HEAP32[4827]|0;
  14330. $80 = (($79) + (($$06066*12)|0)|0);
  14331. _VectorZero($3);
  14332. ;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;
  14333. $81 = (($$06066) + 1)|0;
  14334. $exitcond69 = ($81|0)==(4096);
  14335. if ($exitcond69) {
  14336. break;
  14337. } else {
  14338. $$06066 = $81;
  14339. }
  14340. }
  14341. $78 = (_malloc(36864)|0);
  14342. HEAP32[4828] = $78;
  14343. $$05965 = 0;
  14344. while(1) {
  14345. $82 = (((($78) + (($$05965*144)|0)|0)) + 8|0);
  14346. HEAP32[$82>>2] = 0;
  14347. $83 = (($78) + (($$05965*144)|0)|0);
  14348. HEAP32[$83>>2] = 0;
  14349. $84 = (($$05965) + 1)|0;
  14350. $exitcond = ($84|0)==(256);
  14351. if ($exitcond) {
  14352. break;
  14353. } else {
  14354. $$05965 = $84;
  14355. }
  14356. }
  14357. HEAP32[4829] = 1;
  14358. $85 = HEAP32[4798]|0;
  14359. $86 = ((($78)) + 8|0);
  14360. HEAP32[$86>>2] = $85;
  14361. HEAP32[4830] = 4;
  14362. _MatrixIdentity($4);
  14363. dest=19324; 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));
  14364. _MatrixIdentity($4);
  14365. dest=(19388); 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));
  14366. _MatrixIdentity($4);
  14367. dest=(19452); 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));
  14368. _MatrixIdentity($4);
  14369. dest=(19516); 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));
  14370. _MatrixIdentity($4);
  14371. dest=(19580); 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));
  14372. _MatrixIdentity($4);
  14373. dest=(19644); 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));
  14374. _MatrixIdentity($4);
  14375. dest=(19708); 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));
  14376. _MatrixIdentity($4);
  14377. dest=(19772); 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));
  14378. _MatrixIdentity($4);
  14379. dest=(19836); 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));
  14380. _MatrixIdentity($4);
  14381. dest=(19900); 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));
  14382. _MatrixIdentity($4);
  14383. dest=(19964); 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));
  14384. _MatrixIdentity($4);
  14385. dest=(20028); 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));
  14386. _MatrixIdentity($4);
  14387. dest=(20092); 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));
  14388. _MatrixIdentity($4);
  14389. dest=(20156); 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));
  14390. _MatrixIdentity($4);
  14391. dest=(20220); 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));
  14392. _MatrixIdentity($4);
  14393. dest=(20284); 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));
  14394. _MatrixIdentity($5);
  14395. dest=19032; 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));
  14396. _MatrixIdentity($6);
  14397. dest=19096; 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));
  14398. HEAP32[4757] = 19096;
  14399. _glDepthFunc(515);
  14400. _glDisable(2929);
  14401. _glBlendFunc(770,771);
  14402. _glEnable(3042);
  14403. _glCullFace(1029);
  14404. _glFrontFace(2305);
  14405. _glEnable(2884);
  14406. _glClearColor(0.0,0.0,0.0,1.0);
  14407. _glClearDepthf(1.0);
  14408. _glClear(16640);
  14409. HEAP32[5087] = $0;
  14410. HEAP32[5088] = $1;
  14411. _TraceLog(0,6881,$vararg_buffer41);
  14412. STACKTOP = sp;return;
  14413. }
  14414. function _SetupViewport() {
  14415. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  14416. sp = STACKTOP;
  14417. $0 = HEAP32[4755]|0;
  14418. $1 = (($0|0) / 2)&-1;
  14419. $2 = HEAP32[4756]|0;
  14420. $3 = (($2|0) / 2)&-1;
  14421. $4 = HEAP32[4753]|0;
  14422. $5 = (($4) - ($0))|0;
  14423. $6 = HEAP32[4754]|0;
  14424. $7 = (($6) - ($2))|0;
  14425. _rlViewport($1,$3,$5,$7);
  14426. return;
  14427. }
  14428. function _rlMatrixMode($0) {
  14429. $0 = $0|0;
  14430. var $modelview$sink = 0, label = 0, sp = 0;
  14431. sp = STACKTOP;
  14432. switch ($0|0) {
  14433. case 5889: {
  14434. $modelview$sink = 19032;
  14435. label = 3;
  14436. break;
  14437. }
  14438. case 5888: {
  14439. $modelview$sink = 19096;
  14440. label = 3;
  14441. break;
  14442. }
  14443. default: {
  14444. }
  14445. }
  14446. if ((label|0) == 3) {
  14447. HEAP32[4757] = $modelview$sink;
  14448. }
  14449. HEAP32[4790] = $0;
  14450. return;
  14451. }
  14452. function _rlLoadIdentity() {
  14453. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14454. sp = STACKTOP;
  14455. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14456. $0 = sp;
  14457. $1 = HEAP32[4757]|0;
  14458. _MatrixIdentity($0);
  14459. 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));
  14460. STACKTOP = sp;return;
  14461. }
  14462. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  14463. $0 = +$0;
  14464. $1 = +$1;
  14465. $2 = +$2;
  14466. $3 = +$3;
  14467. $4 = +$4;
  14468. $5 = +$5;
  14469. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14470. sp = STACKTOP;
  14471. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14472. $$byval_copy1 = sp + 192|0;
  14473. $$byval_copy = sp + 128|0;
  14474. $6 = sp + 64|0;
  14475. $7 = sp;
  14476. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  14477. _MatrixTranspose($6);
  14478. $8 = HEAP32[4757]|0;
  14479. 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));
  14480. 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));
  14481. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  14482. 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));
  14483. STACKTOP = sp;return;
  14484. }
  14485. function _ClearBackground($0) {
  14486. $0 = $0|0;
  14487. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  14488. sp = STACKTOP;
  14489. $1 = HEAP8[$0>>0]|0;
  14490. $2 = ((($0)) + 1|0);
  14491. $3 = HEAP8[$2>>0]|0;
  14492. $4 = ((($0)) + 2|0);
  14493. $5 = HEAP8[$4>>0]|0;
  14494. $6 = ((($0)) + 3|0);
  14495. $7 = HEAP8[$6>>0]|0;
  14496. _rlClearColor($1,$3,$5,$7);
  14497. return;
  14498. }
  14499. function _rlClearColor($0,$1,$2,$3) {
  14500. $0 = $0|0;
  14501. $1 = $1|0;
  14502. $2 = $2|0;
  14503. $3 = $3|0;
  14504. 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;
  14505. sp = STACKTOP;
  14506. $4 = (+($0&255));
  14507. $5 = $4 / 255.0;
  14508. $6 = (+($1&255));
  14509. $7 = $6 / 255.0;
  14510. $8 = (+($2&255));
  14511. $9 = $8 / 255.0;
  14512. $10 = (+($3&255));
  14513. $11 = $10 / 255.0;
  14514. _glClearColor((+$5),(+$7),(+$9),(+$11));
  14515. return;
  14516. }
  14517. function _rlViewport($0,$1,$2,$3) {
  14518. $0 = $0|0;
  14519. $1 = $1|0;
  14520. $2 = $2|0;
  14521. $3 = $3|0;
  14522. var label = 0, sp = 0;
  14523. sp = STACKTOP;
  14524. _glViewport(($0|0),($1|0),($2|0),($3|0));
  14525. return;
  14526. }
  14527. function _LoadDefaultShader($0) {
  14528. $0 = $0|0;
  14529. 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;
  14530. sp = STACKTOP;
  14531. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  14532. $vararg_buffer1 = sp + 8|0;
  14533. $vararg_buffer = sp;
  14534. $1 = sp + 16|0;
  14535. $2 = sp + 513|0;
  14536. $3 = sp + 72|0;
  14537. _memcpy(($2|0),(7457|0),489)|0;
  14538. _memcpy(($3|0),(7946|0),441)|0;
  14539. $4 = (_LoadShaderProgram($2,$3)|0);
  14540. HEAP32[$1>>2] = $4;
  14541. $5 = ($4|0)==(0);
  14542. if ($5) {
  14543. HEAP32[$vararg_buffer1>>2] = $4;
  14544. _TraceLog(2,8435,$vararg_buffer1);
  14545. } else {
  14546. HEAP32[$vararg_buffer>>2] = $4;
  14547. _TraceLog(0,8387,$vararg_buffer);
  14548. }
  14549. $6 = HEAP32[$1>>2]|0;
  14550. $7 = ($6|0)==(0);
  14551. if (!($7)) {
  14552. _LoadDefaultShaderLocations($1);
  14553. }
  14554. 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));
  14555. STACKTOP = sp;return;
  14556. }
  14557. function _LoadDefaultBuffers() {
  14558. 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;
  14559. 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;
  14560. 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;
  14561. 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;
  14562. 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;
  14563. 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;
  14564. 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;
  14565. sp = STACKTOP;
  14566. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14567. $vararg_buffer17 = sp + 48|0;
  14568. $vararg_buffer14 = sp + 40|0;
  14569. $vararg_buffer10 = sp + 32|0;
  14570. $vararg_buffer7 = sp + 24|0;
  14571. $vararg_buffer3 = sp + 16|0;
  14572. $vararg_buffer1 = sp + 8|0;
  14573. $vararg_buffer = sp;
  14574. $0 = (_malloc(24576)|0);
  14575. HEAP32[(20368)>>2] = $0;
  14576. $1 = (_malloc(8192)|0);
  14577. HEAP32[(20376)>>2] = $1;
  14578. HEAP32[(20372)>>2] = 0;
  14579. HEAP32[(20380)>>2] = 0;
  14580. _memset(($0|0),0,24576)|0;
  14581. $$05972 = 0;
  14582. while(1) {
  14583. $2 = HEAP32[(20376)>>2]|0;
  14584. $3 = (($2) + ($$05972)|0);
  14585. HEAP8[$3>>0] = 0;
  14586. $4 = (($$05972) + 1)|0;
  14587. $exitcond80 = ($4|0)==(8192);
  14588. if ($exitcond80) {
  14589. break;
  14590. } else {
  14591. $$05972 = $4;
  14592. }
  14593. }
  14594. HEAP32[5089] = 0;
  14595. HEAP32[(20364)>>2] = 0;
  14596. HEAP32[(20360)>>2] = 0;
  14597. $5 = (_malloc(73728)|0);
  14598. HEAP32[(20416)>>2] = $5;
  14599. $6 = (_malloc(24576)|0);
  14600. HEAP32[(20424)>>2] = $6;
  14601. HEAP32[(20420)>>2] = 0;
  14602. HEAP32[(20428)>>2] = 0;
  14603. _memset(($5|0),0,73728)|0;
  14604. $$05770 = 0;
  14605. while(1) {
  14606. $7 = HEAP32[(20424)>>2]|0;
  14607. $8 = (($7) + ($$05770)|0);
  14608. HEAP8[$8>>0] = 0;
  14609. $9 = (($$05770) + 1)|0;
  14610. $exitcond78 = ($9|0)==(24576);
  14611. if ($exitcond78) {
  14612. break;
  14613. } else {
  14614. $$05770 = $9;
  14615. }
  14616. }
  14617. HEAP32[5101] = 0;
  14618. HEAP32[(20412)>>2] = 0;
  14619. HEAP32[(20408)>>2] = 0;
  14620. $10 = (_malloc(49152)|0);
  14621. HEAP32[(20464)>>2] = $10;
  14622. $11 = (_malloc(32768)|0);
  14623. HEAP32[(20468)>>2] = $11;
  14624. $12 = (_malloc(16384)|0);
  14625. HEAP32[(20472)>>2] = $12;
  14626. $13 = (_malloc(12288)|0);
  14627. HEAP32[(20476)>>2] = $13;
  14628. $14 = HEAP32[(20464)>>2]|0;
  14629. _memset(($14|0),0,49152)|0;
  14630. $15 = HEAP32[(20468)>>2]|0;
  14631. _memset(($15|0),0,32768)|0;
  14632. $$05467 = 0;
  14633. while(1) {
  14634. $17 = HEAP32[(20472)>>2]|0;
  14635. $18 = (($17) + ($$05467)|0);
  14636. HEAP8[$18>>0] = 0;
  14637. $19 = (($$05467) + 1)|0;
  14638. $exitcond75 = ($19|0)==(16384);
  14639. if ($exitcond75) {
  14640. break;
  14641. } else {
  14642. $$05467 = $19;
  14643. }
  14644. }
  14645. $16 = HEAP32[(20476)>>2]|0;
  14646. $$05365 = 0;$$066 = 0;
  14647. while(1) {
  14648. $22 = $$05365 << 2;
  14649. $23 = $22&65535;
  14650. $24 = (($16) + ($$066<<1)|0);
  14651. HEAP16[$24>>1] = $23;
  14652. $25 = $22 | 1;
  14653. $26 = $25&65535;
  14654. $27 = $$066 | 1;
  14655. $28 = (($16) + ($27<<1)|0);
  14656. HEAP16[$28>>1] = $26;
  14657. $29 = $22 | 2;
  14658. $30 = $29&65535;
  14659. $31 = (($$066) + 2)|0;
  14660. $32 = (($16) + ($31<<1)|0);
  14661. HEAP16[$32>>1] = $30;
  14662. $33 = (($$066) + 3)|0;
  14663. $34 = (($16) + ($33<<1)|0);
  14664. HEAP16[$34>>1] = $23;
  14665. $35 = (($$066) + 4)|0;
  14666. $36 = (($16) + ($35<<1)|0);
  14667. HEAP16[$36>>1] = $30;
  14668. $37 = $22 | 3;
  14669. $38 = $37&65535;
  14670. $39 = (($$066) + 5)|0;
  14671. $40 = (($16) + ($39<<1)|0);
  14672. HEAP16[$40>>1] = $38;
  14673. $41 = (($$05365) + 1)|0;
  14674. $42 = (($$066) + 6)|0;
  14675. $exitcond = ($41|0)==(1024);
  14676. if ($exitcond) {
  14677. break;
  14678. } else {
  14679. $$05365 = $41;$$066 = $42;
  14680. }
  14681. }
  14682. HEAP32[5113] = 0;
  14683. HEAP32[(20456)>>2] = 0;
  14684. HEAP32[(20460)>>2] = 0;
  14685. _TraceLog(0,6928,$vararg_buffer);
  14686. $20 = HEAP32[4791]|0;
  14687. $21 = ($20|0)==(0);
  14688. if (!($21)) {
  14689. $43 = HEAP32[4792]|0;
  14690. FUNCTION_TABLE_vii[$43 & 63](1,(20384));
  14691. $44 = HEAP32[4793]|0;
  14692. $45 = HEAP32[(20384)>>2]|0;
  14693. FUNCTION_TABLE_vi[$44 & 31]($45);
  14694. }
  14695. _glGenBuffers(2,((20388)|0));
  14696. $46 = HEAP32[(20388)>>2]|0;
  14697. _glBindBuffer(34962,($46|0));
  14698. $47 = HEAP32[(20368)>>2]|0;
  14699. _glBufferData(34962,24576,($47|0),35048);
  14700. $48 = HEAP32[(19256)>>2]|0;
  14701. _glEnableVertexAttribArray(($48|0));
  14702. $49 = HEAP32[(19256)>>2]|0;
  14703. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  14704. _glGenBuffers(2,((20392)|0));
  14705. $50 = HEAP32[(20392)>>2]|0;
  14706. _glBindBuffer(34962,($50|0));
  14707. $51 = HEAP32[(20376)>>2]|0;
  14708. _glBufferData(34962,8192,($51|0),35048);
  14709. $52 = HEAP32[(19276)>>2]|0;
  14710. _glEnableVertexAttribArray(($52|0));
  14711. $53 = HEAP32[(19276)>>2]|0;
  14712. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  14713. $54 = HEAP32[4791]|0;
  14714. $55 = ($54|0)==(0);
  14715. if ($55) {
  14716. $57 = HEAP32[(20388)>>2]|0;
  14717. $58 = HEAP32[(20392)>>2]|0;
  14718. HEAP32[$vararg_buffer3>>2] = $57;
  14719. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  14720. HEAP32[$vararg_ptr6>>2] = $58;
  14721. _TraceLog(0,7066,$vararg_buffer3);
  14722. } else {
  14723. $56 = HEAP32[(20384)>>2]|0;
  14724. HEAP32[$vararg_buffer1>>2] = $56;
  14725. _TraceLog(0,7001,$vararg_buffer1);
  14726. }
  14727. $59 = HEAP32[4791]|0;
  14728. $60 = ($59|0)==(0);
  14729. if (!($60)) {
  14730. $61 = HEAP32[4792]|0;
  14731. FUNCTION_TABLE_vii[$61 & 63](1,(20432));
  14732. $62 = HEAP32[4793]|0;
  14733. $63 = HEAP32[(20432)>>2]|0;
  14734. FUNCTION_TABLE_vi[$62 & 31]($63);
  14735. }
  14736. _glGenBuffers(1,((20436)|0));
  14737. $64 = HEAP32[(20436)>>2]|0;
  14738. _glBindBuffer(34962,($64|0));
  14739. $65 = HEAP32[(20416)>>2]|0;
  14740. _glBufferData(34962,73728,($65|0),35048);
  14741. $66 = HEAP32[(19256)>>2]|0;
  14742. _glEnableVertexAttribArray(($66|0));
  14743. $67 = HEAP32[(19256)>>2]|0;
  14744. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  14745. _glGenBuffers(1,((20440)|0));
  14746. $68 = HEAP32[(20440)>>2]|0;
  14747. _glBindBuffer(34962,($68|0));
  14748. $69 = HEAP32[(20424)>>2]|0;
  14749. _glBufferData(34962,24576,($69|0),35048);
  14750. $70 = HEAP32[(19276)>>2]|0;
  14751. _glEnableVertexAttribArray(($70|0));
  14752. $71 = HEAP32[(19276)>>2]|0;
  14753. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  14754. $72 = HEAP32[4791]|0;
  14755. $73 = ($72|0)==(0);
  14756. if ($73) {
  14757. $75 = HEAP32[(20436)>>2]|0;
  14758. $76 = HEAP32[(20440)>>2]|0;
  14759. HEAP32[$vararg_buffer10>>2] = $75;
  14760. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  14761. HEAP32[$vararg_ptr13>>2] = $76;
  14762. _TraceLog(0,7212,$vararg_buffer10);
  14763. } else {
  14764. $74 = HEAP32[(20432)>>2]|0;
  14765. HEAP32[$vararg_buffer7>>2] = $74;
  14766. _TraceLog(0,7143,$vararg_buffer7);
  14767. }
  14768. $77 = HEAP32[4791]|0;
  14769. $78 = ($77|0)==(0);
  14770. if (!($78)) {
  14771. $79 = HEAP32[4792]|0;
  14772. FUNCTION_TABLE_vii[$79 & 63](1,(20480));
  14773. $80 = HEAP32[4793]|0;
  14774. $81 = HEAP32[(20480)>>2]|0;
  14775. FUNCTION_TABLE_vi[$80 & 31]($81);
  14776. }
  14777. _glGenBuffers(1,((20484)|0));
  14778. $82 = HEAP32[(20484)>>2]|0;
  14779. _glBindBuffer(34962,($82|0));
  14780. $83 = HEAP32[(20464)>>2]|0;
  14781. _glBufferData(34962,49152,($83|0),35048);
  14782. $84 = HEAP32[(19256)>>2]|0;
  14783. _glEnableVertexAttribArray(($84|0));
  14784. $85 = HEAP32[(19256)>>2]|0;
  14785. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  14786. _glGenBuffers(1,((20488)|0));
  14787. $86 = HEAP32[(20488)>>2]|0;
  14788. _glBindBuffer(34962,($86|0));
  14789. $87 = HEAP32[(20468)>>2]|0;
  14790. _glBufferData(34962,32768,($87|0),35048);
  14791. $88 = HEAP32[(19260)>>2]|0;
  14792. _glEnableVertexAttribArray(($88|0));
  14793. $89 = HEAP32[(19260)>>2]|0;
  14794. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  14795. _glGenBuffers(1,((20492)|0));
  14796. $90 = HEAP32[(20492)>>2]|0;
  14797. _glBindBuffer(34962,($90|0));
  14798. $91 = HEAP32[(20472)>>2]|0;
  14799. _glBufferData(34962,16384,($91|0),35048);
  14800. $92 = HEAP32[(19276)>>2]|0;
  14801. _glEnableVertexAttribArray(($92|0));
  14802. $93 = HEAP32[(19276)>>2]|0;
  14803. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  14804. _glGenBuffers(1,((20496)|0));
  14805. $94 = HEAP32[(20496)>>2]|0;
  14806. _glBindBuffer(34963,($94|0));
  14807. $95 = HEAP32[(20476)>>2]|0;
  14808. _glBufferData(34963,12288,($95|0),35044);
  14809. $96 = HEAP32[4791]|0;
  14810. $97 = ($96|0)==(0);
  14811. if ($97) {
  14812. $99 = HEAP32[(20484)>>2]|0;
  14813. $100 = HEAP32[(20488)>>2]|0;
  14814. $101 = HEAP32[(20492)>>2]|0;
  14815. $102 = HEAP32[(20496)>>2]|0;
  14816. HEAP32[$vararg_buffer17>>2] = $99;
  14817. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  14818. HEAP32[$vararg_ptr20>>2] = $100;
  14819. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  14820. HEAP32[$vararg_ptr21>>2] = $101;
  14821. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  14822. HEAP32[$vararg_ptr22>>2] = $102;
  14823. _TraceLog(0,7358,$vararg_buffer17);
  14824. } else {
  14825. $98 = HEAP32[(20480)>>2]|0;
  14826. HEAP32[$vararg_buffer14>>2] = $98;
  14827. _TraceLog(0,7293,$vararg_buffer14);
  14828. }
  14829. $103 = HEAP32[4791]|0;
  14830. $104 = ($103|0)==(0);
  14831. if ($104) {
  14832. STACKTOP = sp;return;
  14833. }
  14834. $105 = HEAP32[4793]|0;
  14835. FUNCTION_TABLE_vi[$105 & 31](0);
  14836. STACKTOP = sp;return;
  14837. }
  14838. function _LoadShaderProgram($0,$1) {
  14839. $0 = $0|0;
  14840. $1 = $1|0;
  14841. 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;
  14842. 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;
  14843. sp = STACKTOP;
  14844. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  14845. $vararg_buffer22 = sp + 64|0;
  14846. $vararg_buffer19 = sp + 56|0;
  14847. $vararg_buffer16 = sp + 48|0;
  14848. $vararg_buffer13 = sp + 40|0;
  14849. $vararg_buffer10 = sp + 32|0;
  14850. $vararg_buffer7 = sp + 24|0;
  14851. $vararg_buffer4 = sp + 16|0;
  14852. $vararg_buffer1 = sp + 8|0;
  14853. $vararg_buffer = sp;
  14854. $2 = sp + 80|0;
  14855. $3 = sp + 76|0;
  14856. $4 = sp + 72|0;
  14857. $5 = sp + 68|0;
  14858. $6 = (_glCreateShader(35633)|0);
  14859. $7 = (_glCreateShader(35632)|0);
  14860. HEAP32[$2>>2] = $0;
  14861. HEAP32[$3>>2] = $1;
  14862. _glShaderSource(($6|0),1,($2|0),(0|0));
  14863. _glShaderSource(($7|0),1,($3|0),(0|0));
  14864. HEAP32[$4>>2] = 0;
  14865. _glCompileShader(($6|0));
  14866. _glGetShaderiv(($6|0),35713,($4|0));
  14867. $8 = HEAP32[$4>>2]|0;
  14868. $9 = ($8|0)==(1);
  14869. if ($9) {
  14870. HEAP32[$vararg_buffer4>>2] = $6;
  14871. _TraceLog(0,8691,$vararg_buffer4);
  14872. } else {
  14873. HEAP32[$vararg_buffer>>2] = $6;
  14874. _TraceLog(2,8639,$vararg_buffer);
  14875. HEAP32[$vararg_buffer>>2] = 0;
  14876. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  14877. $10 = HEAP32[$vararg_buffer>>2]|0;
  14878. $11 = (_llvm_stacksave()|0);
  14879. $$alloca_mul = $10;
  14880. $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);;
  14881. $13 = HEAP32[$vararg_buffer>>2]|0;
  14882. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  14883. HEAP32[$vararg_buffer1>>2] = $12;
  14884. _TraceLog(0,8688,$vararg_buffer1);
  14885. _llvm_stackrestore(($11|0));
  14886. }
  14887. _glCompileShader(($7|0));
  14888. _glGetShaderiv(($7|0),35713,($4|0));
  14889. $14 = HEAP32[$4>>2]|0;
  14890. $15 = ($14|0)==(1);
  14891. if ($15) {
  14892. HEAP32[$vararg_buffer13>>2] = $7;
  14893. _TraceLog(0,8792,$vararg_buffer13);
  14894. } else {
  14895. HEAP32[$vararg_buffer7>>2] = $7;
  14896. _TraceLog(2,8741,$vararg_buffer7);
  14897. HEAP32[$vararg_buffer7>>2] = 0;
  14898. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  14899. $16 = HEAP32[$vararg_buffer7>>2]|0;
  14900. $17 = (_llvm_stacksave()|0);
  14901. $$alloca_mul34 = $16;
  14902. $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);;
  14903. $19 = HEAP32[$vararg_buffer7>>2]|0;
  14904. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  14905. HEAP32[$vararg_buffer10>>2] = $18;
  14906. _TraceLog(0,8688,$vararg_buffer10);
  14907. _llvm_stackrestore(($17|0));
  14908. }
  14909. $20 = (_glCreateProgram()|0);
  14910. _glAttachShader(($20|0),($6|0));
  14911. _glAttachShader(($20|0),($7|0));
  14912. _glBindAttribLocation(($20|0),0,(8483|0));
  14913. _glBindAttribLocation(($20|0),1,(8498|0));
  14914. _glBindAttribLocation(($20|0),2,(8529|0));
  14915. _glBindAttribLocation(($20|0),3,(8556|0));
  14916. _glBindAttribLocation(($20|0),4,(8542|0));
  14917. _glBindAttribLocation(($20|0),5,(8513|0));
  14918. _glLinkProgram(($20|0));
  14919. _glGetProgramiv(($20|0),35714,($4|0));
  14920. $21 = HEAP32[$4>>2]|0;
  14921. $22 = ($21|0)==(0);
  14922. if ($22) {
  14923. HEAP32[$vararg_buffer16>>2] = $20;
  14924. _TraceLog(2,8844,$vararg_buffer16);
  14925. HEAP32[$vararg_buffer16>>2] = 0;
  14926. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  14927. $23 = HEAP32[$vararg_buffer16>>2]|0;
  14928. $24 = (_llvm_stacksave()|0);
  14929. $$alloca_mul36 = $23;
  14930. $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);;
  14931. $26 = HEAP32[$vararg_buffer16>>2]|0;
  14932. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  14933. HEAP32[$vararg_buffer19>>2] = $25;
  14934. _TraceLog(0,8688,$vararg_buffer19);
  14935. _glDeleteProgram(($20|0));
  14936. _llvm_stackrestore(($24|0));
  14937. $$0 = 0;
  14938. _glDeleteShader(($6|0));
  14939. _glDeleteShader(($7|0));
  14940. STACKTOP = sp;return ($$0|0);
  14941. } else {
  14942. HEAP32[$vararg_buffer22>>2] = $20;
  14943. _TraceLog(0,8890,$vararg_buffer22);
  14944. $$0 = $20;
  14945. _glDeleteShader(($6|0));
  14946. _glDeleteShader(($7|0));
  14947. STACKTOP = sp;return ($$0|0);
  14948. }
  14949. return (0)|0;
  14950. }
  14951. function _LoadDefaultShaderLocations($0) {
  14952. $0 = $0|0;
  14953. 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;
  14954. 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;
  14955. var sp = 0;
  14956. sp = STACKTOP;
  14957. $1 = HEAP32[$0>>2]|0;
  14958. $2 = (_glGetAttribLocation(($1|0),(8483|0))|0);
  14959. $3 = ((($0)) + 4|0);
  14960. HEAP32[$3>>2] = $2;
  14961. $4 = HEAP32[$0>>2]|0;
  14962. $5 = (_glGetAttribLocation(($4|0),(8498|0))|0);
  14963. $6 = ((($0)) + 8|0);
  14964. HEAP32[$6>>2] = $5;
  14965. $7 = HEAP32[$0>>2]|0;
  14966. $8 = (_glGetAttribLocation(($7|0),(8513|0))|0);
  14967. $9 = ((($0)) + 12|0);
  14968. HEAP32[$9>>2] = $8;
  14969. $10 = HEAP32[$0>>2]|0;
  14970. $11 = (_glGetAttribLocation(($10|0),(8529|0))|0);
  14971. $12 = ((($0)) + 16|0);
  14972. HEAP32[$12>>2] = $11;
  14973. $13 = HEAP32[$0>>2]|0;
  14974. $14 = (_glGetAttribLocation(($13|0),(8542|0))|0);
  14975. $15 = ((($0)) + 20|0);
  14976. HEAP32[$15>>2] = $14;
  14977. $16 = HEAP32[$0>>2]|0;
  14978. $17 = (_glGetAttribLocation(($16|0),(8556|0))|0);
  14979. $18 = ((($0)) + 24|0);
  14980. HEAP32[$18>>2] = $17;
  14981. $19 = HEAP32[$0>>2]|0;
  14982. $20 = (_glGetUniformLocation(($19|0),(8568|0))|0);
  14983. $21 = ((($0)) + 28|0);
  14984. HEAP32[$21>>2] = $20;
  14985. $22 = HEAP32[$0>>2]|0;
  14986. $23 = (_glGetUniformLocation(($22|0),(8578|0))|0);
  14987. $24 = ((($0)) + 32|0);
  14988. HEAP32[$24>>2] = $23;
  14989. $25 = HEAP32[$0>>2]|0;
  14990. $26 = (_glGetUniformLocation(($25|0),(8589|0))|0);
  14991. $27 = ((($0)) + 36|0);
  14992. HEAP32[$27>>2] = $26;
  14993. $28 = HEAP32[$0>>2]|0;
  14994. $29 = (_glGetUniformLocation(($28|0),(8600|0))|0);
  14995. $30 = ((($0)) + 40|0);
  14996. HEAP32[$30>>2] = $29;
  14997. $31 = HEAP32[$0>>2]|0;
  14998. $32 = (_glGetUniformLocation(($31|0),(8612|0))|0);
  14999. $33 = ((($0)) + 44|0);
  15000. HEAP32[$33>>2] = $32;
  15001. $34 = HEAP32[$0>>2]|0;
  15002. $35 = (_glGetUniformLocation(($34|0),(8621|0))|0);
  15003. $36 = ((($0)) + 48|0);
  15004. HEAP32[$36>>2] = $35;
  15005. $37 = HEAP32[$0>>2]|0;
  15006. $38 = (_glGetUniformLocation(($37|0),(8630|0))|0);
  15007. $39 = ((($0)) + 52|0);
  15008. HEAP32[$39>>2] = $38;
  15009. return;
  15010. }
  15011. function _IsMouseButtonPressed($0) {
  15012. $0 = $0|0;
  15013. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15014. sp = STACKTOP;
  15015. $1 = (21681 + ($0)|0);
  15016. $2 = HEAP8[$1>>0]|0;
  15017. $3 = (21684 + ($0)|0);
  15018. $4 = HEAP8[$3>>0]|0;
  15019. $5 = ($2<<24>>24)!=($4<<24>>24);
  15020. $6 = ($2<<24>>24)==(1);
  15021. $or$cond = $6 & $5;
  15022. $$0 = $or$cond&1;
  15023. return ($$0|0);
  15024. }
  15025. function _IsMouseButtonReleased($0) {
  15026. $0 = $0|0;
  15027. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15028. sp = STACKTOP;
  15029. $1 = (21681 + ($0)|0);
  15030. $2 = HEAP8[$1>>0]|0;
  15031. $3 = (21684 + ($0)|0);
  15032. $4 = HEAP8[$3>>0]|0;
  15033. $5 = ($2<<24>>24)!=($4<<24>>24);
  15034. $6 = ($2<<24>>24)==(0);
  15035. $or$cond = $6 & $5;
  15036. $$0 = $or$cond&1;
  15037. return ($$0|0);
  15038. }
  15039. function _rlClearScreenBuffers() {
  15040. var label = 0, sp = 0;
  15041. sp = STACKTOP;
  15042. _glClear(16640);
  15043. return;
  15044. }
  15045. function _CloseWindow() {
  15046. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15047. sp = STACKTOP;
  15048. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15049. $vararg_buffer = sp;
  15050. _UnloadDefaultFont();
  15051. _rlglClose();
  15052. $0 = HEAP32[4710]|0;
  15053. _glfwDestroyWindow(($0|0));
  15054. _glfwTerminate();
  15055. _TraceLog(0,9202,$vararg_buffer);
  15056. STACKTOP = sp;return;
  15057. }
  15058. function _UnloadDefaultFont() {
  15059. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  15060. sp = STACKTOP;
  15061. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15062. $$byval_copy = sp;
  15063. ;HEAP32[$$byval_copy>>2]=HEAP32[18880>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[18880+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[18880+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[18880+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[18880+16>>2]|0;
  15064. _UnloadTexture($$byval_copy);
  15065. $0 = HEAP32[(18908)>>2]|0;
  15066. _free($0);
  15067. STACKTOP = sp;return;
  15068. }
  15069. function _rlglClose() {
  15070. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15071. sp = STACKTOP;
  15072. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15073. $vararg_buffer = sp;
  15074. _UnloadDefaultShader();
  15075. _UnloadDefaultBuffers();
  15076. _glDeleteTextures(1,(19192|0));
  15077. $0 = HEAP32[4798]|0;
  15078. HEAP32[$vararg_buffer>>2] = $0;
  15079. _TraceLog(0,9229,$vararg_buffer);
  15080. $1 = HEAP32[4828]|0;
  15081. _free($1);
  15082. STACKTOP = sp;return;
  15083. }
  15084. function _UnloadDefaultShader() {
  15085. var $0 = 0, label = 0, sp = 0;
  15086. sp = STACKTOP;
  15087. _glUseProgram(0);
  15088. $0 = HEAP32[4799]|0;
  15089. _glDeleteProgram(($0|0));
  15090. return;
  15091. }
  15092. function _UnloadDefaultBuffers() {
  15093. 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;
  15094. sp = STACKTOP;
  15095. $0 = HEAP32[4791]|0;
  15096. $1 = ($0|0)==(0);
  15097. if (!($1)) {
  15098. $2 = HEAP32[4793]|0;
  15099. FUNCTION_TABLE_vi[$2 & 31](0);
  15100. }
  15101. _glDisableVertexAttribArray(0);
  15102. _glDisableVertexAttribArray(1);
  15103. _glDisableVertexAttribArray(2);
  15104. _glDisableVertexAttribArray(3);
  15105. _glBindBuffer(34962,0);
  15106. _glBindBuffer(34963,0);
  15107. _glDeleteBuffers(1,((20388)|0));
  15108. _glDeleteBuffers(1,((20392)|0));
  15109. _glDeleteBuffers(1,((20436)|0));
  15110. _glDeleteBuffers(1,((20440)|0));
  15111. _glDeleteBuffers(1,((20484)|0));
  15112. _glDeleteBuffers(1,((20488)|0));
  15113. _glDeleteBuffers(1,((20492)|0));
  15114. _glDeleteBuffers(1,((20496)|0));
  15115. $3 = HEAP32[4791]|0;
  15116. $4 = ($3|0)==(0);
  15117. if (!($4)) {
  15118. $5 = HEAP32[4794]|0;
  15119. FUNCTION_TABLE_vii[$5 & 63](1,(20384));
  15120. $6 = HEAP32[4794]|0;
  15121. FUNCTION_TABLE_vii[$6 & 63](1,(20432));
  15122. $7 = HEAP32[4794]|0;
  15123. FUNCTION_TABLE_vii[$7 & 63](1,(20480));
  15124. }
  15125. $8 = HEAP32[(20368)>>2]|0;
  15126. _free($8);
  15127. $9 = HEAP32[(20376)>>2]|0;
  15128. _free($9);
  15129. $10 = HEAP32[(20416)>>2]|0;
  15130. _free($10);
  15131. $11 = HEAP32[(20424)>>2]|0;
  15132. _free($11);
  15133. $12 = HEAP32[(20464)>>2]|0;
  15134. _free($12);
  15135. $13 = HEAP32[(20468)>>2]|0;
  15136. _free($13);
  15137. $14 = HEAP32[(20472)>>2]|0;
  15138. _free($14);
  15139. $15 = HEAP32[(20476)>>2]|0;
  15140. _free($15);
  15141. return;
  15142. }
  15143. function _UnloadTexture($0) {
  15144. $0 = $0|0;
  15145. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15146. sp = STACKTOP;
  15147. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15148. $vararg_buffer = sp;
  15149. $1 = HEAP32[$0>>2]|0;
  15150. $2 = ($1|0)==(0);
  15151. if ($2) {
  15152. STACKTOP = sp;return;
  15153. }
  15154. _rlDeleteTextures($1);
  15155. $3 = HEAP32[$0>>2]|0;
  15156. HEAP32[$vararg_buffer>>2] = $3;
  15157. _TraceLog(0,9294,$vararg_buffer);
  15158. STACKTOP = sp;return;
  15159. }
  15160. function _rlDeleteTextures($0) {
  15161. $0 = $0|0;
  15162. var $1 = 0, $2 = 0, label = 0, sp = 0;
  15163. sp = STACKTOP;
  15164. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15165. $1 = sp;
  15166. HEAP32[$1>>2] = $0;
  15167. $2 = ($0|0)==(0);
  15168. if (!($2)) {
  15169. _glDeleteTextures(1,($1|0));
  15170. }
  15171. STACKTOP = sp;return;
  15172. }
  15173. function _BeginDrawing() {
  15174. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15175. sp = STACKTOP;
  15176. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  15177. $downscaleView$byval_copy = sp;
  15178. $0 = (+_GetTime());
  15179. HEAPF64[2299] = $0;
  15180. $1 = +HEAPF64[2282];
  15181. $2 = $0 - $1;
  15182. HEAPF64[2300] = $2;
  15183. HEAPF64[2282] = $0;
  15184. _rlClearScreenBuffers();
  15185. _rlLoadIdentity();
  15186. dest=$downscaleView$byval_copy; src=18936; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15187. (_MatrixToFloat($downscaleView$byval_copy)|0);
  15188. _rlMultMatrixf(20508);
  15189. STACKTOP = sp;return;
  15190. }
  15191. function _MatrixToFloat($0) {
  15192. $0 = $0|0;
  15193. 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;
  15194. 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;
  15195. sp = STACKTOP;
  15196. $1 = HEAP32[$0>>2]|0;
  15197. HEAP32[5127] = $1;
  15198. $2 = ((($0)) + 4|0);
  15199. $3 = HEAP32[$2>>2]|0;
  15200. HEAP32[(20512)>>2] = $3;
  15201. $4 = ((($0)) + 8|0);
  15202. $5 = HEAP32[$4>>2]|0;
  15203. HEAP32[(20516)>>2] = $5;
  15204. $6 = ((($0)) + 12|0);
  15205. $7 = HEAP32[$6>>2]|0;
  15206. HEAP32[(20520)>>2] = $7;
  15207. $8 = ((($0)) + 16|0);
  15208. $9 = HEAP32[$8>>2]|0;
  15209. HEAP32[(20524)>>2] = $9;
  15210. $10 = ((($0)) + 20|0);
  15211. $11 = HEAP32[$10>>2]|0;
  15212. HEAP32[(20528)>>2] = $11;
  15213. $12 = ((($0)) + 24|0);
  15214. $13 = HEAP32[$12>>2]|0;
  15215. HEAP32[(20532)>>2] = $13;
  15216. $14 = ((($0)) + 28|0);
  15217. $15 = HEAP32[$14>>2]|0;
  15218. HEAP32[(20536)>>2] = $15;
  15219. $16 = ((($0)) + 32|0);
  15220. $17 = HEAP32[$16>>2]|0;
  15221. HEAP32[(20540)>>2] = $17;
  15222. $18 = ((($0)) + 36|0);
  15223. $19 = HEAP32[$18>>2]|0;
  15224. HEAP32[(20544)>>2] = $19;
  15225. $20 = ((($0)) + 40|0);
  15226. $21 = HEAP32[$20>>2]|0;
  15227. HEAP32[(20548)>>2] = $21;
  15228. $22 = ((($0)) + 44|0);
  15229. $23 = HEAP32[$22>>2]|0;
  15230. HEAP32[(20552)>>2] = $23;
  15231. $24 = ((($0)) + 48|0);
  15232. $25 = HEAP32[$24>>2]|0;
  15233. HEAP32[(20556)>>2] = $25;
  15234. $26 = ((($0)) + 52|0);
  15235. $27 = HEAP32[$26>>2]|0;
  15236. HEAP32[(20560)>>2] = $27;
  15237. $28 = ((($0)) + 56|0);
  15238. $29 = HEAP32[$28>>2]|0;
  15239. HEAP32[(20564)>>2] = $29;
  15240. $30 = ((($0)) + 60|0);
  15241. $31 = HEAP32[$30>>2]|0;
  15242. HEAP32[(20568)>>2] = $31;
  15243. return (20508|0);
  15244. }
  15245. function _rlMultMatrixf($0) {
  15246. $0 = $0|0;
  15247. 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;
  15248. 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;
  15249. 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;
  15250. sp = STACKTOP;
  15251. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15252. $$byval_copy1 = sp + 192|0;
  15253. $$byval_copy = sp + 128|0;
  15254. $1 = sp + 64|0;
  15255. $2 = sp;
  15256. $3 = HEAP32[$0>>2]|0;
  15257. HEAP32[$1>>2] = $3;
  15258. $4 = ((($1)) + 4|0);
  15259. $5 = ((($0)) + 4|0);
  15260. $6 = HEAP32[$5>>2]|0;
  15261. HEAP32[$4>>2] = $6;
  15262. $7 = ((($1)) + 8|0);
  15263. $8 = ((($0)) + 8|0);
  15264. $9 = HEAP32[$8>>2]|0;
  15265. HEAP32[$7>>2] = $9;
  15266. $10 = ((($1)) + 12|0);
  15267. $11 = ((($0)) + 12|0);
  15268. $12 = HEAP32[$11>>2]|0;
  15269. HEAP32[$10>>2] = $12;
  15270. $13 = ((($1)) + 16|0);
  15271. $14 = ((($0)) + 16|0);
  15272. $15 = HEAP32[$14>>2]|0;
  15273. HEAP32[$13>>2] = $15;
  15274. $16 = ((($1)) + 20|0);
  15275. $17 = ((($0)) + 20|0);
  15276. $18 = HEAP32[$17>>2]|0;
  15277. HEAP32[$16>>2] = $18;
  15278. $19 = ((($1)) + 24|0);
  15279. $20 = ((($0)) + 24|0);
  15280. $21 = HEAP32[$20>>2]|0;
  15281. HEAP32[$19>>2] = $21;
  15282. $22 = ((($1)) + 28|0);
  15283. $23 = ((($0)) + 28|0);
  15284. $24 = HEAP32[$23>>2]|0;
  15285. HEAP32[$22>>2] = $24;
  15286. $25 = ((($1)) + 32|0);
  15287. $26 = ((($0)) + 32|0);
  15288. $27 = HEAP32[$26>>2]|0;
  15289. HEAP32[$25>>2] = $27;
  15290. $28 = ((($1)) + 36|0);
  15291. $29 = ((($0)) + 36|0);
  15292. $30 = HEAP32[$29>>2]|0;
  15293. HEAP32[$28>>2] = $30;
  15294. $31 = ((($1)) + 40|0);
  15295. $32 = ((($0)) + 40|0);
  15296. $33 = HEAP32[$32>>2]|0;
  15297. HEAP32[$31>>2] = $33;
  15298. $34 = ((($1)) + 44|0);
  15299. $35 = ((($0)) + 44|0);
  15300. $36 = HEAP32[$35>>2]|0;
  15301. HEAP32[$34>>2] = $36;
  15302. $37 = ((($1)) + 48|0);
  15303. $38 = ((($0)) + 48|0);
  15304. $39 = HEAP32[$38>>2]|0;
  15305. HEAP32[$37>>2] = $39;
  15306. $40 = ((($1)) + 52|0);
  15307. $41 = ((($0)) + 52|0);
  15308. $42 = HEAP32[$41>>2]|0;
  15309. HEAP32[$40>>2] = $42;
  15310. $43 = ((($1)) + 56|0);
  15311. $44 = ((($0)) + 56|0);
  15312. $45 = HEAP32[$44>>2]|0;
  15313. HEAP32[$43>>2] = $45;
  15314. $46 = ((($1)) + 60|0);
  15315. $47 = ((($0)) + 60|0);
  15316. $48 = HEAP32[$47>>2]|0;
  15317. HEAP32[$46>>2] = $48;
  15318. $49 = HEAP32[4757]|0;
  15319. 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));
  15320. 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));
  15321. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  15322. 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));
  15323. STACKTOP = sp;return;
  15324. }
  15325. function _EndDrawing() {
  15326. 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;
  15327. sp = STACKTOP;
  15328. _rlglDraw();
  15329. _SwapBuffers();
  15330. _PollInputEvents();
  15331. $0 = (+_GetTime());
  15332. HEAPF64[2299] = $0;
  15333. $1 = +HEAPF64[2282];
  15334. $2 = $0 - $1;
  15335. HEAPF64[2301] = $2;
  15336. HEAPF64[2282] = $0;
  15337. $3 = +HEAPF64[2300];
  15338. $4 = $2 + $3;
  15339. HEAPF64[2302] = $4;
  15340. $5 = +HEAPF64[2279];
  15341. $6 = $4 < $5;
  15342. if (!($6)) {
  15343. return;
  15344. }
  15345. $7 = $5 - $4;
  15346. $8 = $7 * 1000.0;
  15347. $9 = $8;
  15348. _Wait($9);
  15349. $10 = (+_GetTime());
  15350. HEAPF64[2299] = $10;
  15351. $11 = +HEAPF64[2282];
  15352. $12 = $10 - $11;
  15353. HEAPF64[2282] = $10;
  15354. $13 = +HEAPF64[2302];
  15355. $14 = $12 + $13;
  15356. HEAPF64[2302] = $14;
  15357. return;
  15358. }
  15359. function _rlglDraw() {
  15360. var label = 0, sp = 0;
  15361. sp = STACKTOP;
  15362. _UpdateDefaultBuffers();
  15363. _DrawDefaultBuffers();
  15364. return;
  15365. }
  15366. function _SwapBuffers() {
  15367. var $0 = 0, label = 0, sp = 0;
  15368. sp = STACKTOP;
  15369. $0 = HEAP32[4710]|0;
  15370. _glfwSwapBuffers(($0|0));
  15371. return;
  15372. }
  15373. function _PollInputEvents() {
  15374. 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;
  15375. 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;
  15376. 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;
  15377. sp = STACKTOP;
  15378. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  15379. $0 = sp + 1440|0;
  15380. $1 = sp + 1432|0;
  15381. $2 = sp;
  15382. _UpdateGestures();
  15383. HEAP32[761] = -1;
  15384. HEAP32[763] = -1;
  15385. HEAP32[5143] = 0;
  15386. $3 = HEAP32[4710]|0;
  15387. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  15388. $4 = +HEAPF64[$0>>3];
  15389. $5 = $4;
  15390. HEAPF32[4556] = $5;
  15391. $6 = +HEAPF64[$1>>3];
  15392. $7 = $6;
  15393. HEAPF32[(18228)>>2] = $7;
  15394. _memcpy((22199|0),(21687|0),512)|0;
  15395. ;HEAP8[21684>>0]=HEAP8[21681>>0]|0;HEAP8[21684+1>>0]=HEAP8[21681+1>>0]|0;HEAP8[21684+2>>0]=HEAP8[21681+2>>0]|0;
  15396. $8 = HEAP32[5126]|0;
  15397. HEAP32[4713] = $8;
  15398. HEAP32[5126] = 0;
  15399. $9 = (_emscripten_get_num_gamepads()|0);
  15400. $10 = ($9|0)>(0);
  15401. if (!($10)) {
  15402. STACKTOP = sp;return;
  15403. }
  15404. $11 = ((($2)) + 12|0);
  15405. $12 = ((($2)) + 8|0);
  15406. $$05160 = 0;
  15407. while(1) {
  15408. $scevgep = (22711 + ($$05160<<5)|0);
  15409. $scevgep67 = (22839 + ($$05160<<5)|0);
  15410. 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));
  15411. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  15412. $14 = ($13|0)==(0);
  15413. if ($14) {
  15414. $15 = HEAP32[$11>>2]|0;
  15415. $16 = ($15|0)>(0);
  15416. if ($16) {
  15417. $17 = HEAP32[$11>>2]|0;
  15418. $$04857 = 0;
  15419. while(1) {
  15420. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  15421. $22 = HEAP32[$21>>2]|0;
  15422. $23 = ($22|0)==(1);
  15423. $24 = ((22839 + ($$05160<<5)|0) + ($$04857)|0);
  15424. if ($23) {
  15425. HEAP8[$24>>0] = 1;
  15426. HEAP32[763] = $$04857;
  15427. } else {
  15428. HEAP8[$24>>0] = 0;
  15429. }
  15430. $25 = (($$04857) + 1)|0;
  15431. $26 = ($25|0)<($17|0);
  15432. $27 = ($25|0)<(32);
  15433. $28 = $27 & $26;
  15434. if ($28) {
  15435. $$04857 = $25;
  15436. } else {
  15437. break;
  15438. }
  15439. }
  15440. }
  15441. $18 = HEAP32[$12>>2]|0;
  15442. $19 = ($18|0)>(0);
  15443. if ($19) {
  15444. $20 = HEAP32[$12>>2]|0;
  15445. $$058 = 0;
  15446. while(1) {
  15447. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  15448. $30 = +HEAPF64[$29>>3];
  15449. $31 = $30;
  15450. $32 = ((20576 + ($$05160<<5)|0) + ($$058<<2)|0);
  15451. HEAPF32[$32>>2] = $31;
  15452. $33 = (($$058) + 1)|0;
  15453. $34 = ($33|0)<($20|0);
  15454. $35 = ($33|0)<(8);
  15455. $36 = $35 & $34;
  15456. if ($36) {
  15457. $$058 = $33;
  15458. } else {
  15459. $$lcssa = $20;
  15460. break;
  15461. }
  15462. }
  15463. } else {
  15464. $$lcssa = $18;
  15465. }
  15466. HEAP32[5143] = $$lcssa;
  15467. }
  15468. $37 = (($$05160) + 1)|0;
  15469. $38 = ($37|0)<($9|0);
  15470. $39 = ($37|0)<(4);
  15471. $40 = $38 & $39;
  15472. if ($40) {
  15473. $$05160 = $37;
  15474. } else {
  15475. break;
  15476. }
  15477. }
  15478. STACKTOP = sp;return;
  15479. }
  15480. function _Wait($0) {
  15481. $0 = +$0;
  15482. 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;
  15483. sp = STACKTOP;
  15484. $1 = (+_GetTime());
  15485. $2 = 0.0 - $1;
  15486. $3 = $0 / 1000.0;
  15487. $4 = $3;
  15488. $5 = $2 < $4;
  15489. if (!($5)) {
  15490. return;
  15491. }
  15492. while(1) {
  15493. $6 = (+_GetTime());
  15494. $7 = $6 - $1;
  15495. $8 = $7 < $4;
  15496. if (!($8)) {
  15497. break;
  15498. }
  15499. }
  15500. return;
  15501. }
  15502. function _UpdateDefaultBuffers() {
  15503. 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;
  15504. 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;
  15505. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15506. sp = STACKTOP;
  15507. $0 = HEAP32[5089]|0;
  15508. $1 = ($0|0)>(0);
  15509. if ($1) {
  15510. $2 = HEAP32[4791]|0;
  15511. $3 = ($2|0)==(0);
  15512. if (!($3)) {
  15513. $4 = HEAP32[4793]|0;
  15514. $5 = HEAP32[(20384)>>2]|0;
  15515. FUNCTION_TABLE_vi[$4 & 31]($5);
  15516. }
  15517. $6 = HEAP32[(20388)>>2]|0;
  15518. _glBindBuffer(34962,($6|0));
  15519. $7 = HEAP32[5089]|0;
  15520. $8 = ($7*12)|0;
  15521. $9 = HEAP32[(20368)>>2]|0;
  15522. _glBufferSubData(34962,0,($8|0),($9|0));
  15523. $10 = HEAP32[(20392)>>2]|0;
  15524. _glBindBuffer(34962,($10|0));
  15525. $11 = HEAP32[(20364)>>2]|0;
  15526. $12 = $11 << 2;
  15527. $13 = HEAP32[(20376)>>2]|0;
  15528. _glBufferSubData(34962,0,($12|0),($13|0));
  15529. }
  15530. $14 = HEAP32[5101]|0;
  15531. $15 = ($14|0)>(0);
  15532. if ($15) {
  15533. $16 = HEAP32[4791]|0;
  15534. $17 = ($16|0)==(0);
  15535. if (!($17)) {
  15536. $18 = HEAP32[4793]|0;
  15537. $19 = HEAP32[(20432)>>2]|0;
  15538. FUNCTION_TABLE_vi[$18 & 31]($19);
  15539. }
  15540. $20 = HEAP32[(20436)>>2]|0;
  15541. _glBindBuffer(34962,($20|0));
  15542. $21 = HEAP32[5101]|0;
  15543. $22 = ($21*12)|0;
  15544. $23 = HEAP32[(20416)>>2]|0;
  15545. _glBufferSubData(34962,0,($22|0),($23|0));
  15546. $24 = HEAP32[(20440)>>2]|0;
  15547. _glBindBuffer(34962,($24|0));
  15548. $25 = HEAP32[(20412)>>2]|0;
  15549. $26 = $25 << 2;
  15550. $27 = HEAP32[(20424)>>2]|0;
  15551. _glBufferSubData(34962,0,($26|0),($27|0));
  15552. }
  15553. $28 = HEAP32[5113]|0;
  15554. $29 = ($28|0)>(0);
  15555. if ($29) {
  15556. $30 = HEAP32[4791]|0;
  15557. $31 = ($30|0)==(0);
  15558. if (!($31)) {
  15559. $32 = HEAP32[4793]|0;
  15560. $33 = HEAP32[(20480)>>2]|0;
  15561. FUNCTION_TABLE_vi[$32 & 31]($33);
  15562. }
  15563. $34 = HEAP32[(20484)>>2]|0;
  15564. _glBindBuffer(34962,($34|0));
  15565. $35 = HEAP32[5113]|0;
  15566. $36 = ($35*12)|0;
  15567. $37 = HEAP32[(20464)>>2]|0;
  15568. _glBufferSubData(34962,0,($36|0),($37|0));
  15569. $38 = HEAP32[(20488)>>2]|0;
  15570. _glBindBuffer(34962,($38|0));
  15571. $39 = HEAP32[5113]|0;
  15572. $40 = $39 << 3;
  15573. $41 = HEAP32[(20468)>>2]|0;
  15574. _glBufferSubData(34962,0,($40|0),($41|0));
  15575. $42 = HEAP32[(20492)>>2]|0;
  15576. _glBindBuffer(34962,($42|0));
  15577. $43 = HEAP32[5113]|0;
  15578. $44 = $43 << 2;
  15579. $45 = HEAP32[(20472)>>2]|0;
  15580. _glBufferSubData(34962,0,($44|0),($45|0));
  15581. }
  15582. $46 = HEAP32[4791]|0;
  15583. $47 = ($46|0)==(0);
  15584. if ($47) {
  15585. return;
  15586. }
  15587. $48 = HEAP32[4793]|0;
  15588. FUNCTION_TABLE_vi[$48 & 31](0);
  15589. return;
  15590. }
  15591. function _DrawDefaultBuffers() {
  15592. 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;
  15593. 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;
  15594. 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;
  15595. 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;
  15596. 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;
  15597. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15598. sp = STACKTOP;
  15599. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  15600. $$byval_copy2 = sp + 256|0;
  15601. $modelview$byval_copy = sp + 192|0;
  15602. $0 = sp + 128|0;
  15603. $1 = sp + 64|0;
  15604. $2 = sp;
  15605. dest=$0; src=19032; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15606. dest=$1; src=19096; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15607. $3 = HEAP32[5176]|0;
  15608. $4 = ($3|0)!=(0);
  15609. $$ = $4 ? 2 : 1;
  15610. $$02932 = 0;
  15611. while(1) {
  15612. if ($4) {
  15613. 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));
  15614. 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));
  15615. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  15616. }
  15617. $8 = HEAP32[5089]|0;
  15618. $9 = ($8|0)>(0);
  15619. $10 = HEAP32[5101]|0;
  15620. $11 = ($10|0)>(0);
  15621. $or$cond = $9 | $11;
  15622. $12 = HEAP32[5113]|0;
  15623. $13 = ($12|0)>(0);
  15624. $or$cond3 = $or$cond | $13;
  15625. if ($or$cond3) {
  15626. $14 = HEAP32[4813]|0;
  15627. _glUseProgram(($14|0));
  15628. dest=$modelview$byval_copy; src=19096; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15629. dest=$$byval_copy2; src=19032; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15630. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  15631. $15 = HEAP32[(19280)>>2]|0;
  15632. 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));
  15633. $16 = (_MatrixToFloat($$byval_copy2)|0);
  15634. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  15635. $17 = HEAP32[(19284)>>2]|0;
  15636. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  15637. $18 = HEAP32[(19296)>>2]|0;
  15638. _glUniform1i(($18|0),0);
  15639. }
  15640. $19 = HEAP32[5089]|0;
  15641. $20 = ($19|0)>(0);
  15642. if ($20) {
  15643. $21 = HEAP32[4798]|0;
  15644. _glBindTexture(3553,($21|0));
  15645. $22 = HEAP32[4791]|0;
  15646. $23 = ($22|0)==(0);
  15647. if ($23) {
  15648. $26 = HEAP32[(20388)>>2]|0;
  15649. _glBindBuffer(34962,($26|0));
  15650. $27 = HEAP32[(19256)>>2]|0;
  15651. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  15652. $28 = HEAP32[(19256)>>2]|0;
  15653. _glEnableVertexAttribArray(($28|0));
  15654. $29 = HEAP32[(20392)>>2]|0;
  15655. _glBindBuffer(34962,($29|0));
  15656. $30 = HEAP32[(19276)>>2]|0;
  15657. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  15658. $31 = HEAP32[(19276)>>2]|0;
  15659. _glEnableVertexAttribArray(($31|0));
  15660. } else {
  15661. $24 = HEAP32[4793]|0;
  15662. $25 = HEAP32[(20384)>>2]|0;
  15663. FUNCTION_TABLE_vi[$24 & 31]($25);
  15664. }
  15665. $32 = HEAP32[5089]|0;
  15666. _glDrawArrays(1,0,($32|0));
  15667. $33 = HEAP32[4791]|0;
  15668. $34 = ($33|0)==(0);
  15669. if ($34) {
  15670. _glBindBuffer(34962,0);
  15671. }
  15672. _glBindTexture(3553,0);
  15673. }
  15674. $35 = HEAP32[5101]|0;
  15675. $36 = ($35|0)>(0);
  15676. if ($36) {
  15677. $37 = HEAP32[4798]|0;
  15678. _glBindTexture(3553,($37|0));
  15679. $38 = HEAP32[4791]|0;
  15680. $39 = ($38|0)==(0);
  15681. if ($39) {
  15682. $42 = HEAP32[(20436)>>2]|0;
  15683. _glBindBuffer(34962,($42|0));
  15684. $43 = HEAP32[(19256)>>2]|0;
  15685. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  15686. $44 = HEAP32[(19256)>>2]|0;
  15687. _glEnableVertexAttribArray(($44|0));
  15688. $45 = HEAP32[(20440)>>2]|0;
  15689. _glBindBuffer(34962,($45|0));
  15690. $46 = HEAP32[(19276)>>2]|0;
  15691. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  15692. $47 = HEAP32[(19276)>>2]|0;
  15693. _glEnableVertexAttribArray(($47|0));
  15694. } else {
  15695. $40 = HEAP32[4793]|0;
  15696. $41 = HEAP32[(20432)>>2]|0;
  15697. FUNCTION_TABLE_vi[$40 & 31]($41);
  15698. }
  15699. $48 = HEAP32[5101]|0;
  15700. _glDrawArrays(4,0,($48|0));
  15701. $49 = HEAP32[4791]|0;
  15702. $50 = ($49|0)==(0);
  15703. if ($50) {
  15704. _glBindBuffer(34962,0);
  15705. }
  15706. _glBindTexture(3553,0);
  15707. }
  15708. $51 = HEAP32[5113]|0;
  15709. $52 = ($51|0)>(0);
  15710. if ($52) {
  15711. $53 = HEAP32[4791]|0;
  15712. $54 = ($53|0)==(0);
  15713. if ($54) {
  15714. $57 = HEAP32[(20484)>>2]|0;
  15715. _glBindBuffer(34962,($57|0));
  15716. $58 = HEAP32[(19256)>>2]|0;
  15717. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  15718. $59 = HEAP32[(19256)>>2]|0;
  15719. _glEnableVertexAttribArray(($59|0));
  15720. $60 = HEAP32[(20488)>>2]|0;
  15721. _glBindBuffer(34962,($60|0));
  15722. $61 = HEAP32[(19260)>>2]|0;
  15723. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  15724. $62 = HEAP32[(19260)>>2]|0;
  15725. _glEnableVertexAttribArray(($62|0));
  15726. $63 = HEAP32[(20492)>>2]|0;
  15727. _glBindBuffer(34962,($63|0));
  15728. $64 = HEAP32[(19276)>>2]|0;
  15729. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  15730. $65 = HEAP32[(19276)>>2]|0;
  15731. _glEnableVertexAttribArray(($65|0));
  15732. $66 = HEAP32[(20496)>>2]|0;
  15733. _glBindBuffer(34963,($66|0));
  15734. } else {
  15735. $55 = HEAP32[4793]|0;
  15736. $56 = HEAP32[(20480)>>2]|0;
  15737. FUNCTION_TABLE_vi[$55 & 31]($56);
  15738. }
  15739. $67 = HEAP32[4829]|0;
  15740. $68 = ($67|0)>(0);
  15741. if ($68) {
  15742. $$02830 = 0;$$031 = 0;
  15743. while(1) {
  15744. $71 = HEAP32[4828]|0;
  15745. $72 = (($71) + (($$031*144)|0)|0);
  15746. $73 = HEAP32[$72>>2]|0;
  15747. $74 = (($73|0) / 4)&-1;
  15748. $75 = ($74*6)|0;
  15749. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  15750. $77 = HEAP32[$76>>2]|0;
  15751. _glBindTexture(3553,($77|0));
  15752. $78 = $$02830 << 1;
  15753. $79 = $78;
  15754. _glDrawElements(4,($75|0),5123,($79|0));
  15755. $80 = HEAP32[4828]|0;
  15756. $81 = (($80) + (($$031*144)|0)|0);
  15757. $82 = HEAP32[$81>>2]|0;
  15758. $83 = (($82|0) / 4)&-1;
  15759. $84 = ($83*6)|0;
  15760. $85 = (($84) + ($$02830))|0;
  15761. $86 = (($$031) + 1)|0;
  15762. $87 = HEAP32[4829]|0;
  15763. $88 = ($86|0)<($87|0);
  15764. if ($88) {
  15765. $$02830 = $85;$$031 = $86;
  15766. } else {
  15767. break;
  15768. }
  15769. }
  15770. }
  15771. $69 = HEAP32[4791]|0;
  15772. $70 = ($69|0)==(0);
  15773. if ($70) {
  15774. _glBindBuffer(34962,0);
  15775. _glBindBuffer(34963,0);
  15776. }
  15777. _glBindTexture(3553,0);
  15778. }
  15779. $89 = HEAP32[4791]|0;
  15780. $90 = ($89|0)==(0);
  15781. if (!($90)) {
  15782. $91 = HEAP32[4793]|0;
  15783. FUNCTION_TABLE_vi[$91 & 31](0);
  15784. }
  15785. _glUseProgram(0);
  15786. $92 = (($$02932) + 1)|0;
  15787. $93 = ($92|0)<($$|0);
  15788. if ($93) {
  15789. $$02932 = $92;
  15790. } else {
  15791. break;
  15792. }
  15793. }
  15794. HEAP32[4829] = 1;
  15795. $5 = HEAP32[4798]|0;
  15796. $6 = HEAP32[4828]|0;
  15797. $7 = ((($6)) + 8|0);
  15798. HEAP32[$7>>2] = $5;
  15799. HEAP32[$6>>2] = 0;
  15800. HEAP32[5089] = 0;
  15801. HEAP32[(20364)>>2] = 0;
  15802. HEAP32[5101] = 0;
  15803. HEAP32[(20412)>>2] = 0;
  15804. HEAP32[5113] = 0;
  15805. HEAP32[(20456)>>2] = 0;
  15806. HEAP32[(20460)>>2] = 0;
  15807. HEAPF32[764] = -1.0;
  15808. dest=19032; 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));
  15809. dest=19096; 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));
  15810. STACKTOP = sp;return;
  15811. }
  15812. function _SetStereoView($0,$1,$2) {
  15813. $0 = $0|0;
  15814. $1 = $1|0;
  15815. $2 = $2|0;
  15816. 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;
  15817. sp = STACKTOP;
  15818. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15819. $$byval_copy3 = sp + 192|0;
  15820. $$byval_copy = sp + 64|0;
  15821. $3 = sp;
  15822. $4 = sp + 128|0;
  15823. 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));
  15824. $5 = HEAP32[5087]|0;
  15825. $6 = Math_imul($5, $0)|0;
  15826. $7 = (($6|0) / 2)&-1;
  15827. $8 = (($5|0) / 2)&-1;
  15828. $9 = HEAP32[5088]|0;
  15829. _rlViewport($7,0,$8,$9);
  15830. $10 = (20936 + ($0<<6)|0);
  15831. 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));
  15832. 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));
  15833. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  15834. $11 = (20808 + ($0<<6)|0);
  15835. 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));
  15836. 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));
  15837. _SetMatrixModelview($$byval_copy3);
  15838. 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));
  15839. _SetMatrixProjection($$byval_copy3);
  15840. STACKTOP = sp;return;
  15841. }
  15842. function _SetMatrixModelview($0) {
  15843. $0 = $0|0;
  15844. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15845. sp = STACKTOP;
  15846. dest=19096; 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));
  15847. return;
  15848. }
  15849. function _SetMatrixProjection($0) {
  15850. $0 = $0|0;
  15851. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15852. sp = STACKTOP;
  15853. dest=19032; 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));
  15854. return;
  15855. }
  15856. function _Begin3dMode($0) {
  15857. $0 = $0|0;
  15858. var $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy3 = 0, $1 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0;
  15859. var $8 = 0.0, $9 = 0.0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15860. sp = STACKTOP;
  15861. STACKTOP = STACKTOP + 160|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(160|0);
  15862. $$byval_copy3 = sp + 88|0;
  15863. $$byval_copy1 = sp + 76|0;
  15864. $$byval_copy = sp + 64|0;
  15865. $1 = sp;
  15866. _rlglDraw();
  15867. _rlMatrixMode(5889);
  15868. _rlPushMatrix();
  15869. _rlLoadIdentity();
  15870. $2 = HEAP32[4712]|0;
  15871. $3 = (+($2|0));
  15872. $4 = HEAP32[4711]|0;
  15873. $5 = (+($4|0));
  15874. $6 = $3 / $5;
  15875. $7 = ((($0)) + 36|0);
  15876. $8 = +HEAPF32[$7>>2];
  15877. $9 = $8 * 3.1415927410125732;
  15878. $10 = $9;
  15879. $11 = $10 / 360.0;
  15880. $12 = (+Math_tan((+$11)));
  15881. $13 = $12 * 0.01;
  15882. $14 = $6;
  15883. $15 = $13 * $14;
  15884. $16 = -$15;
  15885. $17 = -$13;
  15886. _rlFrustum($16,$15,$17,$13,0.01,1000.0);
  15887. _rlMatrixMode(5888);
  15888. _rlLoadIdentity();
  15889. $18 = ((($0)) + 12|0);
  15890. $19 = ((($0)) + 24|0);
  15891. ;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;
  15892. ;HEAP32[$$byval_copy1>>2]=HEAP32[$18>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$18+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$18+8>>2]|0;
  15893. ;HEAP32[$$byval_copy3>>2]=HEAP32[$19>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$19+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$19+8>>2]|0;
  15894. _MatrixLookAt($1,$$byval_copy,$$byval_copy1,$$byval_copy3);
  15895. dest=$$byval_copy3; src=$1; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15896. (_MatrixToFloat($$byval_copy3)|0);
  15897. _rlMultMatrixf(20508);
  15898. _rlEnableDepthTest();
  15899. STACKTOP = sp;return;
  15900. }
  15901. function _rlPushMatrix() {
  15902. 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;
  15903. sp = STACKTOP;
  15904. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15905. $vararg_buffer = sp;
  15906. $0 = HEAP32[5266]|0;
  15907. $1 = ($0|0)==(15);
  15908. if ($1) {
  15909. HEAP32[$vararg_buffer>>2] = 16;
  15910. _TraceLog(1,9344,$vararg_buffer);
  15911. }
  15912. $2 = HEAP32[5266]|0;
  15913. $3 = (19324 + ($2<<6)|0);
  15914. $4 = HEAP32[4757]|0;
  15915. 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));
  15916. _rlLoadIdentity();
  15917. $5 = HEAP32[5266]|0;
  15918. $6 = (($5) + 1)|0;
  15919. HEAP32[5266] = $6;
  15920. $7 = HEAP32[4790]|0;
  15921. $8 = ($7|0)==(5888);
  15922. if (!($8)) {
  15923. STACKTOP = sp;return;
  15924. }
  15925. HEAP32[5267] = 1;
  15926. STACKTOP = sp;return;
  15927. }
  15928. function _rlFrustum($0,$1,$2,$3,$4,$5) {
  15929. $0 = +$0;
  15930. $1 = +$1;
  15931. $2 = +$2;
  15932. $3 = +$3;
  15933. $4 = +$4;
  15934. $5 = +$5;
  15935. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15936. sp = STACKTOP;
  15937. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15938. $$byval_copy1 = sp + 192|0;
  15939. $$byval_copy = sp + 128|0;
  15940. $6 = sp + 64|0;
  15941. $7 = sp;
  15942. _MatrixFrustum($6,$0,$1,$2,$3,$4,$5);
  15943. _MatrixTranspose($6);
  15944. $8 = HEAP32[4757]|0;
  15945. 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));
  15946. 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));
  15947. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  15948. 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));
  15949. STACKTOP = sp;return;
  15950. }
  15951. function _rlEnableDepthTest() {
  15952. var label = 0, sp = 0;
  15953. sp = STACKTOP;
  15954. _glEnable(2929);
  15955. return;
  15956. }
  15957. function _End3dMode() {
  15958. var label = 0, sp = 0;
  15959. sp = STACKTOP;
  15960. _rlglDraw();
  15961. _rlMatrixMode(5889);
  15962. _rlPopMatrix();
  15963. _rlMatrixMode(5888);
  15964. _rlLoadIdentity();
  15965. _rlDisableDepthTest();
  15966. return;
  15967. }
  15968. function _rlPopMatrix() {
  15969. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  15970. sp = STACKTOP;
  15971. $0 = HEAP32[5266]|0;
  15972. $1 = ($0|0)>(0);
  15973. if (!($1)) {
  15974. return;
  15975. }
  15976. $2 = HEAP32[5266]|0;
  15977. $3 = (($2) + -1)|0;
  15978. $4 = (19324 + ($3<<6)|0);
  15979. $5 = HEAP32[4757]|0;
  15980. _memmove(($5|0),($4|0),64)|0;
  15981. $6 = (($2) + -1)|0;
  15982. HEAP32[5266] = $6;
  15983. return;
  15984. }
  15985. function _rlDisableDepthTest() {
  15986. var label = 0, sp = 0;
  15987. sp = STACKTOP;
  15988. _glDisable(2929);
  15989. return;
  15990. }
  15991. function _GetFPS() {
  15992. var $0 = 0.0, $1 = 0.0, $2 = 0, label = 0, sp = 0;
  15993. sp = STACKTOP;
  15994. $0 = (+_GetFrameTime());
  15995. $1 = 1.0 / $0;
  15996. $2 = (~~(($1)));
  15997. return ($2|0);
  15998. }
  15999. function _GetFrameTime() {
  16000. var $0 = 0.0, $1 = 0.0, label = 0, sp = 0;
  16001. sp = STACKTOP;
  16002. $0 = +HEAPF64[2302];
  16003. $1 = $0;
  16004. return (+$1);
  16005. }
  16006. function _SetConfigFlags($0) {
  16007. $0 = $0|0;
  16008. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  16009. sp = STACKTOP;
  16010. HEAP8[21680] = $0;
  16011. $1 = $0 & 1;
  16012. $2 = ($1<<24>>24)==(0);
  16013. if (!($2)) {
  16014. HEAP32[4715] = 1;
  16015. }
  16016. $3 = HEAP8[21680]|0;
  16017. $4 = $3 & 2;
  16018. $5 = ($4<<24>>24)==(0);
  16019. if ($5) {
  16020. return;
  16021. }
  16022. HEAP32[4752] = 1;
  16023. return;
  16024. }
  16025. function _IsFileExtension($0,$1) {
  16026. $0 = $0|0;
  16027. $1 = $1|0;
  16028. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  16029. sp = STACKTOP;
  16030. $2 = (_strrchr($0,46)|0);
  16031. $3 = ($2|0)==(0|0);
  16032. if ($3) {
  16033. return 0;
  16034. } else {
  16035. $4 = (_strcmp($2,$1)|0);
  16036. $5 = ($4|0)==(0);
  16037. $$ = $5&1;
  16038. return ($$|0);
  16039. }
  16040. return (0)|0;
  16041. }
  16042. function _rlTranslatef($0,$1,$2) {
  16043. $0 = +$0;
  16044. $1 = +$1;
  16045. $2 = +$2;
  16046. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16047. sp = STACKTOP;
  16048. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16049. $$byval_copy1 = sp + 192|0;
  16050. $$byval_copy = sp + 128|0;
  16051. $3 = sp + 64|0;
  16052. $4 = sp;
  16053. _MatrixTranslate($3,$0,$1,$2);
  16054. _MatrixTranspose($3);
  16055. $5 = HEAP32[4757]|0;
  16056. dest=$$byval_copy; src=$5; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16057. dest=$$byval_copy1; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16058. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  16059. dest=$5; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16060. STACKTOP = sp;return;
  16061. }
  16062. function _rlRotatef($0,$1,$2,$3) {
  16063. $0 = +$0;
  16064. $1 = +$1;
  16065. $2 = +$2;
  16066. $3 = +$3;
  16067. var $$byval_copy1 = 0, $$byval_copy2 = 0, $10 = 0.0, $11 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16068. sp = STACKTOP;
  16069. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  16070. $$byval_copy2 = sp + 272|0;
  16071. $$byval_copy1 = sp + 208|0;
  16072. $4 = sp + 144|0;
  16073. $5 = sp + 64|0;
  16074. $6 = sp + 80|0;
  16075. $7 = sp;
  16076. _MatrixIdentity($4);
  16077. HEAPF32[$5>>2] = $1;
  16078. $8 = ((($5)) + 4|0);
  16079. HEAPF32[$8>>2] = $2;
  16080. $9 = ((($5)) + 8|0);
  16081. HEAPF32[$9>>2] = $3;
  16082. _VectorNormalize($5);
  16083. $10 = $0 * 0.01745329238474369;
  16084. ;HEAP32[$$byval_copy2>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$5+8>>2]|0;
  16085. _MatrixRotate($6,$$byval_copy2,$10);
  16086. dest=$4; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16087. _MatrixTranspose($4);
  16088. $11 = HEAP32[4757]|0;
  16089. dest=$$byval_copy1; src=$11; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16090. dest=$$byval_copy2; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16091. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  16092. dest=$11; src=$7; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16093. STACKTOP = sp;return;
  16094. }
  16095. function _rlBegin($0) {
  16096. $0 = $0|0;
  16097. var label = 0, sp = 0;
  16098. sp = STACKTOP;
  16099. HEAP32[4830] = $0;
  16100. return;
  16101. }
  16102. function _rlEnd() {
  16103. var $$03956 = 0, $$04052 = 0, $$04154 = 0, $$04248 = 0, $$04347 = 0, $$byval_copy = 0, $$promoted = 0, $0 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0;
  16104. var $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0;
  16105. var $128 = 0, $129 = 0, $13 = 0.0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0;
  16106. var $146 = 0, $147 = 0, $148 = 0.0, $149 = 0.0, $15 = 0.0, $16 = 0, $17 = 0.0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0;
  16107. var $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0;
  16108. var $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0;
  16109. var $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0;
  16110. var $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond60 = 0, $exitcond63 = 0;
  16111. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16112. sp = STACKTOP;
  16113. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  16114. $$byval_copy = sp;
  16115. $0 = HEAP32[5267]|0;
  16116. $1 = ($0|0)==(0);
  16117. if (!($1)) {
  16118. $2 = HEAP32[5268]|0;
  16119. $3 = ($2|0)>(0);
  16120. if ($3) {
  16121. $$03956 = 0;
  16122. while(1) {
  16123. $6 = HEAP32[4827]|0;
  16124. $7 = (($6) + (($$03956*12)|0)|0);
  16125. $8 = HEAP32[4757]|0;
  16126. dest=$$byval_copy; src=$8; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16127. _VectorTransform($7,$$byval_copy);
  16128. $9 = (($$03956) + 1)|0;
  16129. $5 = HEAP32[5268]|0;
  16130. $10 = ($9|0)<($5|0);
  16131. if ($10) {
  16132. $$03956 = $9;
  16133. } else {
  16134. break;
  16135. }
  16136. }
  16137. HEAP32[5267] = 0;
  16138. $4 = ($5|0)>(0);
  16139. if ($4) {
  16140. $$04154 = 0;
  16141. while(1) {
  16142. $11 = HEAP32[4827]|0;
  16143. $12 = (($11) + (($$04154*12)|0)|0);
  16144. $13 = +HEAPF32[$12>>2];
  16145. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  16146. $15 = +HEAPF32[$14>>2];
  16147. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  16148. $17 = +HEAPF32[$16>>2];
  16149. _rlVertex3f($13,$15,$17);
  16150. $18 = (($$04154) + 1)|0;
  16151. $19 = HEAP32[5268]|0;
  16152. $20 = ($18|0)<($19|0);
  16153. if ($20) {
  16154. $$04154 = $18;
  16155. } else {
  16156. break;
  16157. }
  16158. }
  16159. }
  16160. } else {
  16161. HEAP32[5267] = 0;
  16162. }
  16163. HEAP32[5268] = 0;
  16164. }
  16165. $21 = HEAP32[4830]|0;
  16166. switch ($21|0) {
  16167. case 1: {
  16168. $22 = HEAP32[5089]|0;
  16169. $23 = HEAP32[(20364)>>2]|0;
  16170. $24 = ($22|0)==($23|0);
  16171. if ($24) {
  16172. $148 = +HEAPF32[764];
  16173. $149 = $148 + 4.9999998736893758E-5;
  16174. HEAPF32[764] = $149;
  16175. STACKTOP = sp;return;
  16176. }
  16177. $25 = (($22) - ($23))|0;
  16178. $26 = ($25|0)>(0);
  16179. if ($26) {
  16180. $$04347 = 0;
  16181. } else {
  16182. $148 = +HEAPF32[764];
  16183. $149 = $148 + 4.9999998736893758E-5;
  16184. HEAPF32[764] = $149;
  16185. STACKTOP = sp;return;
  16186. }
  16187. while(1) {
  16188. $27 = HEAP32[(20376)>>2]|0;
  16189. $28 = HEAP32[(20364)>>2]|0;
  16190. $29 = $28 << 2;
  16191. $30 = (($29) + -4)|0;
  16192. $31 = (($27) + ($30)|0);
  16193. $32 = HEAP8[$31>>0]|0;
  16194. $33 = (($27) + ($29)|0);
  16195. HEAP8[$33>>0] = $32;
  16196. $34 = HEAP32[(20376)>>2]|0;
  16197. $35 = HEAP32[(20364)>>2]|0;
  16198. $36 = $35 << 2;
  16199. $37 = (($36) + -3)|0;
  16200. $38 = (($34) + ($37)|0);
  16201. $39 = HEAP8[$38>>0]|0;
  16202. $40 = $36 | 1;
  16203. $41 = (($34) + ($40)|0);
  16204. HEAP8[$41>>0] = $39;
  16205. $42 = HEAP32[(20376)>>2]|0;
  16206. $43 = HEAP32[(20364)>>2]|0;
  16207. $44 = $43 << 2;
  16208. $45 = (($44) + -2)|0;
  16209. $46 = (($42) + ($45)|0);
  16210. $47 = HEAP8[$46>>0]|0;
  16211. $48 = $44 | 2;
  16212. $49 = (($42) + ($48)|0);
  16213. HEAP8[$49>>0] = $47;
  16214. $50 = HEAP32[(20376)>>2]|0;
  16215. $51 = HEAP32[(20364)>>2]|0;
  16216. $52 = $51 << 2;
  16217. $53 = (($52) + -1)|0;
  16218. $54 = (($50) + ($53)|0);
  16219. $55 = HEAP8[$54>>0]|0;
  16220. $56 = $52 | 3;
  16221. $57 = (($50) + ($56)|0);
  16222. HEAP8[$57>>0] = $55;
  16223. $58 = HEAP32[(20364)>>2]|0;
  16224. $59 = (($58) + 1)|0;
  16225. HEAP32[(20364)>>2] = $59;
  16226. $60 = (($$04347) + 1)|0;
  16227. $exitcond = ($60|0)==($25|0);
  16228. if ($exitcond) {
  16229. break;
  16230. } else {
  16231. $$04347 = $60;
  16232. }
  16233. }
  16234. $148 = +HEAPF32[764];
  16235. $149 = $148 + 4.9999998736893758E-5;
  16236. HEAPF32[764] = $149;
  16237. STACKTOP = sp;return;
  16238. break;
  16239. }
  16240. case 4: {
  16241. $61 = HEAP32[5101]|0;
  16242. $62 = HEAP32[(20412)>>2]|0;
  16243. $63 = ($61|0)==($62|0);
  16244. if ($63) {
  16245. $148 = +HEAPF32[764];
  16246. $149 = $148 + 4.9999998736893758E-5;
  16247. HEAPF32[764] = $149;
  16248. STACKTOP = sp;return;
  16249. }
  16250. $64 = (($61) - ($62))|0;
  16251. $65 = ($64|0)>(0);
  16252. if ($65) {
  16253. $$04248 = 0;
  16254. } else {
  16255. $148 = +HEAPF32[764];
  16256. $149 = $148 + 4.9999998736893758E-5;
  16257. HEAPF32[764] = $149;
  16258. STACKTOP = sp;return;
  16259. }
  16260. while(1) {
  16261. $66 = HEAP32[(20424)>>2]|0;
  16262. $67 = HEAP32[(20412)>>2]|0;
  16263. $68 = $67 << 2;
  16264. $69 = (($68) + -4)|0;
  16265. $70 = (($66) + ($69)|0);
  16266. $71 = HEAP8[$70>>0]|0;
  16267. $72 = (($66) + ($68)|0);
  16268. HEAP8[$72>>0] = $71;
  16269. $73 = HEAP32[(20424)>>2]|0;
  16270. $74 = HEAP32[(20412)>>2]|0;
  16271. $75 = $74 << 2;
  16272. $76 = (($75) + -3)|0;
  16273. $77 = (($73) + ($76)|0);
  16274. $78 = HEAP8[$77>>0]|0;
  16275. $79 = $75 | 1;
  16276. $80 = (($73) + ($79)|0);
  16277. HEAP8[$80>>0] = $78;
  16278. $81 = HEAP32[(20424)>>2]|0;
  16279. $82 = HEAP32[(20412)>>2]|0;
  16280. $83 = $82 << 2;
  16281. $84 = (($83) + -2)|0;
  16282. $85 = (($81) + ($84)|0);
  16283. $86 = HEAP8[$85>>0]|0;
  16284. $87 = $83 | 2;
  16285. $88 = (($81) + ($87)|0);
  16286. HEAP8[$88>>0] = $86;
  16287. $89 = HEAP32[(20424)>>2]|0;
  16288. $90 = HEAP32[(20412)>>2]|0;
  16289. $91 = $90 << 2;
  16290. $92 = (($91) + -1)|0;
  16291. $93 = (($89) + ($92)|0);
  16292. $94 = HEAP8[$93>>0]|0;
  16293. $95 = $91 | 3;
  16294. $96 = (($89) + ($95)|0);
  16295. HEAP8[$96>>0] = $94;
  16296. $97 = HEAP32[(20412)>>2]|0;
  16297. $98 = (($97) + 1)|0;
  16298. HEAP32[(20412)>>2] = $98;
  16299. $99 = (($$04248) + 1)|0;
  16300. $exitcond60 = ($99|0)==($64|0);
  16301. if ($exitcond60) {
  16302. break;
  16303. } else {
  16304. $$04248 = $99;
  16305. }
  16306. }
  16307. $148 = +HEAPF32[764];
  16308. $149 = $148 + 4.9999998736893758E-5;
  16309. HEAPF32[764] = $149;
  16310. STACKTOP = sp;return;
  16311. break;
  16312. }
  16313. case 7: {
  16314. $100 = HEAP32[5113]|0;
  16315. $101 = HEAP32[(20460)>>2]|0;
  16316. $102 = ($100|0)==($101|0);
  16317. if (!($102)) {
  16318. $103 = (($100) - ($101))|0;
  16319. $104 = ($103|0)>(0);
  16320. if ($104) {
  16321. $$04052 = 0;
  16322. while(1) {
  16323. $105 = HEAP32[(20472)>>2]|0;
  16324. $106 = HEAP32[(20460)>>2]|0;
  16325. $107 = $106 << 2;
  16326. $108 = (($107) + -4)|0;
  16327. $109 = (($105) + ($108)|0);
  16328. $110 = HEAP8[$109>>0]|0;
  16329. $111 = (($105) + ($107)|0);
  16330. HEAP8[$111>>0] = $110;
  16331. $112 = HEAP32[(20472)>>2]|0;
  16332. $113 = HEAP32[(20460)>>2]|0;
  16333. $114 = $113 << 2;
  16334. $115 = (($114) + -3)|0;
  16335. $116 = (($112) + ($115)|0);
  16336. $117 = HEAP8[$116>>0]|0;
  16337. $118 = $114 | 1;
  16338. $119 = (($112) + ($118)|0);
  16339. HEAP8[$119>>0] = $117;
  16340. $120 = HEAP32[(20472)>>2]|0;
  16341. $121 = HEAP32[(20460)>>2]|0;
  16342. $122 = $121 << 2;
  16343. $123 = (($122) + -2)|0;
  16344. $124 = (($120) + ($123)|0);
  16345. $125 = HEAP8[$124>>0]|0;
  16346. $126 = $122 | 2;
  16347. $127 = (($120) + ($126)|0);
  16348. HEAP8[$127>>0] = $125;
  16349. $128 = HEAP32[(20472)>>2]|0;
  16350. $129 = HEAP32[(20460)>>2]|0;
  16351. $130 = $129 << 2;
  16352. $131 = (($130) + -1)|0;
  16353. $132 = (($128) + ($131)|0);
  16354. $133 = HEAP8[$132>>0]|0;
  16355. $134 = $130 | 3;
  16356. $135 = (($128) + ($134)|0);
  16357. HEAP8[$135>>0] = $133;
  16358. $136 = HEAP32[(20460)>>2]|0;
  16359. $137 = (($136) + 1)|0;
  16360. HEAP32[(20460)>>2] = $137;
  16361. $138 = (($$04052) + 1)|0;
  16362. $exitcond63 = ($138|0)==($103|0);
  16363. if ($exitcond63) {
  16364. break;
  16365. } else {
  16366. $$04052 = $138;
  16367. }
  16368. }
  16369. }
  16370. }
  16371. $139 = HEAP32[5113]|0;
  16372. $140 = HEAP32[(20456)>>2]|0;
  16373. $141 = ($139|0)>($140|0);
  16374. if (!($141)) {
  16375. $148 = +HEAPF32[764];
  16376. $149 = $148 + 4.9999998736893758E-5;
  16377. HEAPF32[764] = $149;
  16378. STACKTOP = sp;return;
  16379. }
  16380. $142 = HEAP32[(20468)>>2]|0;
  16381. $$promoted = HEAP32[(20456)>>2]|0;
  16382. $143 = $$promoted << 1;
  16383. $scevgep = (($142) + ($143<<2)|0);
  16384. $144 = (($139) - ($140))|0;
  16385. $145 = $144 << 3;
  16386. _memset(($scevgep|0),0,($145|0))|0;
  16387. $146 = (($139) + ($$promoted))|0;
  16388. $147 = (($146) - ($140))|0;
  16389. HEAP32[(20456)>>2] = $147;
  16390. $148 = +HEAPF32[764];
  16391. $149 = $148 + 4.9999998736893758E-5;
  16392. HEAPF32[764] = $149;
  16393. STACKTOP = sp;return;
  16394. break;
  16395. }
  16396. default: {
  16397. $148 = +HEAPF32[764];
  16398. $149 = $148 + 4.9999998736893758E-5;
  16399. HEAPF32[764] = $149;
  16400. STACKTOP = sp;return;
  16401. }
  16402. }
  16403. }
  16404. function _rlVertex3f($0,$1,$2) {
  16405. $0 = +$0;
  16406. $1 = +$1;
  16407. $2 = +$2;
  16408. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0;
  16409. var $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0;
  16410. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  16411. sp = STACKTOP;
  16412. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  16413. $vararg_buffer3 = sp + 16|0;
  16414. $vararg_buffer1 = sp + 8|0;
  16415. $vararg_buffer = sp;
  16416. $3 = HEAP32[5267]|0;
  16417. $4 = ($3|0)==(0);
  16418. if (!($4)) {
  16419. $5 = HEAP32[4827]|0;
  16420. $6 = HEAP32[5268]|0;
  16421. $7 = (($5) + (($6*12)|0)|0);
  16422. HEAPF32[$7>>2] = $0;
  16423. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  16424. HEAPF32[$8>>2] = $1;
  16425. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  16426. HEAPF32[$9>>2] = $2;
  16427. $10 = (($6) + 1)|0;
  16428. HEAP32[5268] = $10;
  16429. STACKTOP = sp;return;
  16430. }
  16431. $11 = HEAP32[4830]|0;
  16432. switch ($11|0) {
  16433. case 1: {
  16434. $12 = HEAP32[5089]|0;
  16435. $13 = ($12|0)<(2048);
  16436. if ($13) {
  16437. $14 = HEAP32[(20368)>>2]|0;
  16438. $15 = ($12*3)|0;
  16439. $16 = (($14) + ($15<<2)|0);
  16440. HEAPF32[$16>>2] = $0;
  16441. $17 = (($15) + 1)|0;
  16442. $18 = (($14) + ($17<<2)|0);
  16443. HEAPF32[$18>>2] = $1;
  16444. $19 = (($15) + 2)|0;
  16445. $20 = (($14) + ($19<<2)|0);
  16446. HEAPF32[$20>>2] = $2;
  16447. $21 = (($12) + 1)|0;
  16448. HEAP32[5089] = $21;
  16449. STACKTOP = sp;return;
  16450. } else {
  16451. _TraceLog(1,9382,$vararg_buffer);
  16452. STACKTOP = sp;return;
  16453. }
  16454. break;
  16455. }
  16456. case 4: {
  16457. $22 = HEAP32[5101]|0;
  16458. $23 = ($22|0)<(6144);
  16459. if ($23) {
  16460. $24 = HEAP32[(20416)>>2]|0;
  16461. $25 = ($22*3)|0;
  16462. $26 = (($24) + ($25<<2)|0);
  16463. HEAPF32[$26>>2] = $0;
  16464. $27 = (($25) + 1)|0;
  16465. $28 = (($24) + ($27<<2)|0);
  16466. HEAPF32[$28>>2] = $1;
  16467. $29 = (($25) + 2)|0;
  16468. $30 = (($24) + ($29<<2)|0);
  16469. HEAPF32[$30>>2] = $2;
  16470. $31 = (($22) + 1)|0;
  16471. HEAP32[5101] = $31;
  16472. STACKTOP = sp;return;
  16473. } else {
  16474. _TraceLog(1,9407,$vararg_buffer1);
  16475. STACKTOP = sp;return;
  16476. }
  16477. break;
  16478. }
  16479. case 7: {
  16480. $32 = HEAP32[5113]|0;
  16481. $33 = ($32|0)<(4096);
  16482. if ($33) {
  16483. $34 = HEAP32[(20464)>>2]|0;
  16484. $35 = ($32*3)|0;
  16485. $36 = (($34) + ($35<<2)|0);
  16486. HEAPF32[$36>>2] = $0;
  16487. $37 = (($35) + 1)|0;
  16488. $38 = (($34) + ($37<<2)|0);
  16489. HEAPF32[$38>>2] = $1;
  16490. $39 = (($35) + 2)|0;
  16491. $40 = (($34) + ($39<<2)|0);
  16492. HEAPF32[$40>>2] = $2;
  16493. $41 = (($32) + 1)|0;
  16494. HEAP32[5113] = $41;
  16495. $42 = HEAP32[4828]|0;
  16496. $43 = HEAP32[4829]|0;
  16497. $44 = (($43) + -1)|0;
  16498. $45 = (($42) + (($44*144)|0)|0);
  16499. $46 = HEAP32[$45>>2]|0;
  16500. $47 = (($46) + 1)|0;
  16501. HEAP32[$45>>2] = $47;
  16502. STACKTOP = sp;return;
  16503. } else {
  16504. _TraceLog(1,9436,$vararg_buffer3);
  16505. STACKTOP = sp;return;
  16506. }
  16507. break;
  16508. }
  16509. default: {
  16510. STACKTOP = sp;return;
  16511. }
  16512. }
  16513. }
  16514. function _rlVertex2f($0,$1) {
  16515. $0 = +$0;
  16516. $1 = +$1;
  16517. var $2 = 0.0, label = 0, sp = 0;
  16518. sp = STACKTOP;
  16519. $2 = +HEAPF32[764];
  16520. _rlVertex3f($0,$1,$2);
  16521. return;
  16522. }
  16523. function _rlTexCoord2f($0,$1) {
  16524. $0 = +$0;
  16525. $1 = +$1;
  16526. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  16527. sp = STACKTOP;
  16528. $2 = HEAP32[4830]|0;
  16529. $3 = ($2|0)==(7);
  16530. if (!($3)) {
  16531. return;
  16532. }
  16533. $4 = HEAP32[(20468)>>2]|0;
  16534. $5 = HEAP32[(20456)>>2]|0;
  16535. $6 = $5 << 1;
  16536. $7 = (($4) + ($6<<2)|0);
  16537. HEAPF32[$7>>2] = $0;
  16538. $8 = $6 | 1;
  16539. $9 = (($4) + ($8<<2)|0);
  16540. HEAPF32[$9>>2] = $1;
  16541. $10 = (($5) + 1)|0;
  16542. HEAP32[(20456)>>2] = $10;
  16543. return;
  16544. }
  16545. function _rlNormal3f($0,$1,$2) {
  16546. $0 = +$0;
  16547. $1 = +$1;
  16548. $2 = +$2;
  16549. var label = 0, sp = 0;
  16550. sp = STACKTOP;
  16551. return;
  16552. }
  16553. function _rlColor4ub($0,$1,$2,$3) {
  16554. $0 = $0|0;
  16555. $1 = $1|0;
  16556. $2 = $2|0;
  16557. $3 = $3|0;
  16558. 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;
  16559. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  16560. sp = STACKTOP;
  16561. $4 = HEAP32[4830]|0;
  16562. switch ($4|0) {
  16563. case 1: {
  16564. $$sink37 = (20364);$$sink38 = (20376);
  16565. break;
  16566. }
  16567. case 4: {
  16568. $$sink37 = (20412);$$sink38 = (20424);
  16569. break;
  16570. }
  16571. case 7: {
  16572. $$sink37 = (20460);$$sink38 = (20472);
  16573. break;
  16574. }
  16575. default: {
  16576. return;
  16577. }
  16578. }
  16579. $5 = HEAP32[$$sink38>>2]|0;
  16580. $6 = HEAP32[$$sink37>>2]|0;
  16581. $7 = $6 << 2;
  16582. $8 = (($5) + ($7)|0);
  16583. HEAP8[$8>>0] = $0;
  16584. $9 = HEAP32[$$sink38>>2]|0;
  16585. $10 = HEAP32[$$sink37>>2]|0;
  16586. $11 = $10 << 2;
  16587. $12 = $11 | 1;
  16588. $13 = (($9) + ($12)|0);
  16589. HEAP8[$13>>0] = $1;
  16590. $14 = HEAP32[$$sink38>>2]|0;
  16591. $15 = HEAP32[$$sink37>>2]|0;
  16592. $16 = $15 << 2;
  16593. $17 = $16 | 2;
  16594. $18 = (($14) + ($17)|0);
  16595. HEAP8[$18>>0] = $2;
  16596. $19 = HEAP32[$$sink38>>2]|0;
  16597. $20 = HEAP32[$$sink37>>2]|0;
  16598. $21 = $20 << 2;
  16599. $22 = $21 | 3;
  16600. $23 = (($19) + ($22)|0);
  16601. HEAP8[$23>>0] = $3;
  16602. $24 = HEAP32[$$sink37>>2]|0;
  16603. $25 = (($24) + 1)|0;
  16604. HEAP32[$$sink37>>2] = $25;
  16605. return;
  16606. }
  16607. function _rlColor3f($0,$1,$2) {
  16608. $0 = +$0;
  16609. $1 = +$1;
  16610. $2 = +$2;
  16611. var $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, label = 0, sp = 0;
  16612. sp = STACKTOP;
  16613. $3 = $0 * 255.0;
  16614. $4 = (~~(($3))&255);
  16615. $5 = $1 * 255.0;
  16616. $6 = (~~(($5))&255);
  16617. $7 = $2 * 255.0;
  16618. $8 = (~~(($7))&255);
  16619. _rlColor4ub($4,$6,$8,-1);
  16620. return;
  16621. }
  16622. function _rlEnableTexture($0) {
  16623. $0 = $0|0;
  16624. 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;
  16625. sp = STACKTOP;
  16626. $1 = HEAP32[4828]|0;
  16627. $2 = HEAP32[4829]|0;
  16628. $3 = (($2) + -1)|0;
  16629. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  16630. $5 = HEAP32[$4>>2]|0;
  16631. $6 = ($5|0)==($0|0);
  16632. if ($6) {
  16633. return;
  16634. }
  16635. $7 = (($1) + (($3*144)|0)|0);
  16636. $8 = HEAP32[$7>>2]|0;
  16637. $9 = ($8|0)>(0);
  16638. if ($9) {
  16639. $10 = (($2) + 1)|0;
  16640. HEAP32[4829] = $10;
  16641. }
  16642. $11 = HEAP32[4829]|0;
  16643. $12 = (($11) + -1)|0;
  16644. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  16645. HEAP32[$13>>2] = $0;
  16646. $14 = (($1) + (($12*144)|0)|0);
  16647. HEAP32[$14>>2] = 0;
  16648. return;
  16649. }
  16650. function _rlDisableTexture() {
  16651. var $0 = 0, $1 = 0, label = 0, sp = 0;
  16652. sp = STACKTOP;
  16653. $0 = HEAP32[5113]|0;
  16654. $1 = ($0|0)>(4095);
  16655. if (!($1)) {
  16656. return;
  16657. }
  16658. _rlglDraw();
  16659. return;
  16660. }
  16661. function _rlDeleteShader($0) {
  16662. $0 = $0|0;
  16663. var $1 = 0, label = 0, sp = 0;
  16664. sp = STACKTOP;
  16665. $1 = ($0|0)==(0);
  16666. if ($1) {
  16667. return;
  16668. }
  16669. _glDeleteProgram(($0|0));
  16670. return;
  16671. }
  16672. function _rlDeleteVertexArrays($0) {
  16673. $0 = $0|0;
  16674. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  16675. sp = STACKTOP;
  16676. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16677. $vararg_buffer = sp;
  16678. $1 = sp + 4|0;
  16679. HEAP32[$1>>2] = $0;
  16680. $2 = HEAP32[4791]|0;
  16681. $3 = ($2|0)==(0);
  16682. if ($3) {
  16683. STACKTOP = sp;return;
  16684. }
  16685. $4 = ($0|0)==(0);
  16686. if (!($4)) {
  16687. $5 = HEAP32[4794]|0;
  16688. FUNCTION_TABLE_vii[$5 & 63](1,$1);
  16689. }
  16690. $6 = HEAP32[$1>>2]|0;
  16691. HEAP32[$vararg_buffer>>2] = $6;
  16692. _TraceLog(0,9461,$vararg_buffer);
  16693. STACKTOP = sp;return;
  16694. }
  16695. function _rlDeleteBuffers($0) {
  16696. $0 = $0|0;
  16697. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  16698. sp = STACKTOP;
  16699. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16700. $vararg_buffer = sp;
  16701. $1 = sp + 4|0;
  16702. HEAP32[$1>>2] = $0;
  16703. $2 = ($0|0)==(0);
  16704. if ($2) {
  16705. STACKTOP = sp;return;
  16706. }
  16707. _glDeleteBuffers(1,($1|0));
  16708. $3 = HEAP32[4791]|0;
  16709. $4 = ($3|0)==(0);
  16710. if (!($4)) {
  16711. STACKTOP = sp;return;
  16712. }
  16713. $5 = HEAP32[$1>>2]|0;
  16714. HEAP32[$vararg_buffer>>2] = $5;
  16715. _TraceLog(0,9509,$vararg_buffer);
  16716. STACKTOP = sp;return;
  16717. }
  16718. function _rlglLoadMesh($0,$1) {
  16719. $0 = $0|0;
  16720. $1 = $1|0;
  16721. var $$ = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  16722. 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;
  16723. 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;
  16724. 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;
  16725. var $82 = 0, $83 = 0, $84 = 0, $85 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  16726. sp = STACKTOP;
  16727. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  16728. $vararg_buffer3 = sp + 16|0;
  16729. $vararg_buffer1 = sp + 8|0;
  16730. $vararg_buffer = sp;
  16731. $2 = sp + 48|0;
  16732. $3 = sp + 20|0;
  16733. $4 = ((($0)) + 36|0);
  16734. $5 = ((($0)) + 40|0);
  16735. $6 = ((($0)) + 44|0);
  16736. $7 = ((($0)) + 48|0);
  16737. $8 = ((($0)) + 52|0);
  16738. $9 = ((($0)) + 56|0);
  16739. $10 = ((($0)) + 60|0);
  16740. $11 = ((($0)) + 64|0);
  16741. $12 = ($1|0)!=(0);
  16742. $$ = $12 ? 35048 : 35044;
  16743. ;HEAP32[$4>>2]=0|0;HEAP32[$4+4>>2]=0|0;HEAP32[$4+8>>2]=0|0;HEAP32[$4+12>>2]=0|0;HEAP32[$4+16>>2]=0|0;HEAP32[$4+20>>2]=0|0;HEAP32[$4+24>>2]=0|0;HEAP32[$4+28>>2]=0|0;
  16744. HEAP32[$2>>2] = 0;
  16745. ;HEAP32[$3>>2]=0|0;HEAP32[$3+4>>2]=0|0;HEAP32[$3+8>>2]=0|0;HEAP32[$3+12>>2]=0|0;HEAP32[$3+16>>2]=0|0;HEAP32[$3+20>>2]=0|0;HEAP32[$3+24>>2]=0|0;
  16746. $13 = HEAP32[4791]|0;
  16747. $14 = ($13|0)==(0);
  16748. if (!($14)) {
  16749. $15 = HEAP32[4792]|0;
  16750. FUNCTION_TABLE_vii[$15 & 63](1,$2);
  16751. $16 = HEAP32[4793]|0;
  16752. $17 = HEAP32[$2>>2]|0;
  16753. FUNCTION_TABLE_vi[$16 & 31]($17);
  16754. }
  16755. _glGenBuffers(1,($3|0));
  16756. $18 = HEAP32[$3>>2]|0;
  16757. _glBindBuffer(34962,($18|0));
  16758. $19 = HEAP32[$0>>2]|0;
  16759. $20 = ($19*12)|0;
  16760. $21 = ((($0)) + 8|0);
  16761. $22 = HEAP32[$21>>2]|0;
  16762. _glBufferData(34962,($20|0),($22|0),($$|0));
  16763. _glVertexAttribPointer(0,3,5126,0,0,(0|0));
  16764. _glEnableVertexAttribArray(0);
  16765. $23 = ((($3)) + 4|0);
  16766. _glGenBuffers(1,($23|0));
  16767. $24 = HEAP32[$23>>2]|0;
  16768. _glBindBuffer(34962,($24|0));
  16769. $25 = HEAP32[$0>>2]|0;
  16770. $26 = $25 << 3;
  16771. $27 = ((($0)) + 12|0);
  16772. $28 = HEAP32[$27>>2]|0;
  16773. _glBufferData(34962,($26|0),($28|0),($$|0));
  16774. _glVertexAttribPointer(1,2,5126,0,0,(0|0));
  16775. _glEnableVertexAttribArray(1);
  16776. $29 = ((($0)) + 20|0);
  16777. $30 = HEAP32[$29>>2]|0;
  16778. $31 = ($30|0)==(0|0);
  16779. if ($31) {
  16780. _glVertexAttrib3f(2,1.0,1.0,1.0);
  16781. _glDisableVertexAttribArray(2);
  16782. } else {
  16783. $32 = ((($3)) + 8|0);
  16784. _glGenBuffers(1,($32|0));
  16785. $33 = HEAP32[$32>>2]|0;
  16786. _glBindBuffer(34962,($33|0));
  16787. $34 = HEAP32[$0>>2]|0;
  16788. $35 = ($34*12)|0;
  16789. $36 = HEAP32[$29>>2]|0;
  16790. _glBufferData(34962,($35|0),($36|0),($$|0));
  16791. _glVertexAttribPointer(2,3,5126,0,0,(0|0));
  16792. _glEnableVertexAttribArray(2);
  16793. }
  16794. $37 = ((($0)) + 28|0);
  16795. $38 = HEAP32[$37>>2]|0;
  16796. $39 = ($38|0)==(0|0);
  16797. if ($39) {
  16798. _glVertexAttrib4f(3,1.0,1.0,1.0,1.0);
  16799. _glDisableVertexAttribArray(3);
  16800. } else {
  16801. $40 = ((($3)) + 12|0);
  16802. _glGenBuffers(1,($40|0));
  16803. $41 = HEAP32[$40>>2]|0;
  16804. _glBindBuffer(34962,($41|0));
  16805. $42 = HEAP32[$0>>2]|0;
  16806. $43 = $42 << 2;
  16807. $44 = HEAP32[$37>>2]|0;
  16808. _glBufferData(34962,($43|0),($44|0),($$|0));
  16809. _glVertexAttribPointer(3,4,5121,1,0,(0|0));
  16810. _glEnableVertexAttribArray(3);
  16811. }
  16812. $45 = ((($0)) + 24|0);
  16813. $46 = HEAP32[$45>>2]|0;
  16814. $47 = ($46|0)==(0|0);
  16815. if ($47) {
  16816. _glVertexAttrib3f(4,0.0,0.0,0.0);
  16817. _glDisableVertexAttribArray(4);
  16818. } else {
  16819. $48 = ((($3)) + 16|0);
  16820. _glGenBuffers(1,($48|0));
  16821. $49 = HEAP32[$48>>2]|0;
  16822. _glBindBuffer(34962,($49|0));
  16823. $50 = HEAP32[$0>>2]|0;
  16824. $51 = ($50*12)|0;
  16825. $52 = HEAP32[$45>>2]|0;
  16826. _glBufferData(34962,($51|0),($52|0),($$|0));
  16827. _glVertexAttribPointer(4,3,5126,0,0,(0|0));
  16828. _glEnableVertexAttribArray(4);
  16829. }
  16830. $53 = ((($0)) + 16|0);
  16831. $54 = HEAP32[$53>>2]|0;
  16832. $55 = ($54|0)==(0|0);
  16833. if ($55) {
  16834. _glVertexAttrib2f(5,0.0,0.0);
  16835. _glDisableVertexAttribArray(5);
  16836. } else {
  16837. $56 = ((($3)) + 20|0);
  16838. _glGenBuffers(1,($56|0));
  16839. $57 = HEAP32[$56>>2]|0;
  16840. _glBindBuffer(34962,($57|0));
  16841. $58 = HEAP32[$0>>2]|0;
  16842. $59 = $58 << 3;
  16843. $60 = HEAP32[$53>>2]|0;
  16844. _glBufferData(34962,($59|0),($60|0),($$|0));
  16845. _glVertexAttribPointer(5,2,5126,0,0,(0|0));
  16846. _glEnableVertexAttribArray(5);
  16847. }
  16848. $61 = ((($0)) + 32|0);
  16849. $62 = HEAP32[$61>>2]|0;
  16850. $63 = ($62|0)==(0|0);
  16851. if (!($63)) {
  16852. $64 = ((($3)) + 24|0);
  16853. _glGenBuffers(1,($64|0));
  16854. $65 = HEAP32[$64>>2]|0;
  16855. _glBindBuffer(34963,($65|0));
  16856. $66 = ((($0)) + 4|0);
  16857. $67 = HEAP32[$66>>2]|0;
  16858. $68 = ($67*6)|0;
  16859. $69 = HEAP32[$61>>2]|0;
  16860. _glBufferData(34963,($68|0),($69|0),35044);
  16861. }
  16862. $70 = HEAP32[$3>>2]|0;
  16863. HEAP32[$5>>2] = $70;
  16864. $71 = HEAP32[$23>>2]|0;
  16865. HEAP32[$6>>2] = $71;
  16866. $72 = ((($3)) + 8|0);
  16867. $73 = HEAP32[$72>>2]|0;
  16868. HEAP32[$7>>2] = $73;
  16869. $74 = ((($3)) + 12|0);
  16870. $75 = HEAP32[$74>>2]|0;
  16871. HEAP32[$8>>2] = $75;
  16872. $76 = ((($3)) + 16|0);
  16873. $77 = HEAP32[$76>>2]|0;
  16874. HEAP32[$9>>2] = $77;
  16875. $78 = ((($3)) + 20|0);
  16876. $79 = HEAP32[$78>>2]|0;
  16877. HEAP32[$10>>2] = $79;
  16878. $80 = ((($3)) + 24|0);
  16879. $81 = HEAP32[$80>>2]|0;
  16880. HEAP32[$11>>2] = $81;
  16881. $82 = HEAP32[4791]|0;
  16882. $83 = ($82|0)==(0);
  16883. if ($83) {
  16884. _TraceLog(0,9658,$vararg_buffer3);
  16885. STACKTOP = sp;return;
  16886. }
  16887. $84 = HEAP32[$2>>2]|0;
  16888. $85 = ($84|0)==(0);
  16889. if ($85) {
  16890. _TraceLog(2,9617,$vararg_buffer1);
  16891. STACKTOP = sp;return;
  16892. } else {
  16893. HEAP32[$4>>2] = $84;
  16894. HEAP32[$vararg_buffer>>2] = $84;
  16895. _TraceLog(0,9564,$vararg_buffer);
  16896. STACKTOP = sp;return;
  16897. }
  16898. }
  16899. function _rlglDrawMesh($0,$1,$2) {
  16900. $0 = $0|0;
  16901. $1 = $1|0;
  16902. $2 = $2|0;
  16903. var $$ = 0, $$020 = 0, $$byval_copy5 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0;
  16904. var $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0.0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0.0, $130 = 0, $131 = 0, $132 = 0;
  16905. var $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0;
  16906. var $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0.0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0;
  16907. var $17 = 0.0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $18 = 0, $19 = 0, $20 = 0.0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0, $27 = 0, $28 = 0;
  16908. var $29 = 0, $3 = 0, $30 = 0, $31 = 0.0, $32 = 0.0, $33 = 0, $34 = 0, $35 = 0.0, $36 = 0.0, $37 = 0, $38 = 0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0, $42 = 0, $43 = 0.0, $44 = 0.0, $45 = 0, $46 = 0;
  16909. var $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0.0, $51 = 0.0, $52 = 0, $53 = 0, $54 = 0.0, $55 = 0.0, $56 = 0, $57 = 0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0.0, $63 = 0.0, $64 = 0;
  16910. var $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0.0, $75 = 0, $76 = 0.0, $77 = 0, $78 = 0.0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0.0;
  16911. var $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $modelview$byval_copy4 = 0, dest = 0;
  16912. var label = 0, sp = 0, src = 0, stop = 0;
  16913. sp = STACKTOP;
  16914. STACKTOP = STACKTOP + 384|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(384|0);
  16915. $$byval_copy5 = sp + 320|0;
  16916. $modelview$byval_copy4 = sp + 256|0;
  16917. $3 = sp + 192|0;
  16918. $4 = sp + 128|0;
  16919. $5 = sp + 64|0;
  16920. $6 = sp;
  16921. $7 = HEAP32[$1>>2]|0;
  16922. _glUseProgram(($7|0));
  16923. $8 = ((($1)) + 32|0);
  16924. $9 = HEAP32[$8>>2]|0;
  16925. $10 = ((($1)) + 116|0);
  16926. $11 = HEAP8[$10>>0]|0;
  16927. $12 = (+($11&255));
  16928. $13 = $12 / 255.0;
  16929. $14 = ((($1)) + 117|0);
  16930. $15 = HEAP8[$14>>0]|0;
  16931. $16 = (+($15&255));
  16932. $17 = $16 / 255.0;
  16933. $18 = ((($1)) + 118|0);
  16934. $19 = HEAP8[$18>>0]|0;
  16935. $20 = (+($19&255));
  16936. $21 = $20 / 255.0;
  16937. $22 = ((($1)) + 119|0);
  16938. $23 = HEAP8[$22>>0]|0;
  16939. $24 = (+($23&255));
  16940. $25 = $24 / 255.0;
  16941. _glUniform4f(($9|0),(+$13),(+$17),(+$21),(+$25));
  16942. $26 = ((($1)) + 36|0);
  16943. $27 = HEAP32[$26>>2]|0;
  16944. $28 = ($27|0)==(-1);
  16945. if (!($28)) {
  16946. $29 = ((($1)) + 120|0);
  16947. $30 = HEAP8[$29>>0]|0;
  16948. $31 = (+($30&255));
  16949. $32 = $31 / 255.0;
  16950. $33 = ((($1)) + 121|0);
  16951. $34 = HEAP8[$33>>0]|0;
  16952. $35 = (+($34&255));
  16953. $36 = $35 / 255.0;
  16954. $37 = ((($1)) + 122|0);
  16955. $38 = HEAP8[$37>>0]|0;
  16956. $39 = (+($38&255));
  16957. $40 = $39 / 255.0;
  16958. $41 = ((($1)) + 123|0);
  16959. $42 = HEAP8[$41>>0]|0;
  16960. $43 = (+($42&255));
  16961. $44 = $43 / 255.0;
  16962. _glUniform4f(($27|0),(+$32),(+$36),(+$40),(+$44));
  16963. }
  16964. $45 = ((($1)) + 40|0);
  16965. $46 = HEAP32[$45>>2]|0;
  16966. $47 = ($46|0)==(-1);
  16967. if (!($47)) {
  16968. $48 = ((($1)) + 124|0);
  16969. $49 = HEAP8[$48>>0]|0;
  16970. $50 = (+($49&255));
  16971. $51 = $50 / 255.0;
  16972. $52 = ((($1)) + 125|0);
  16973. $53 = HEAP8[$52>>0]|0;
  16974. $54 = (+($53&255));
  16975. $55 = $54 / 255.0;
  16976. $56 = ((($1)) + 126|0);
  16977. $57 = HEAP8[$56>>0]|0;
  16978. $58 = (+($57&255));
  16979. $59 = $58 / 255.0;
  16980. $60 = ((($1)) + 127|0);
  16981. $61 = HEAP8[$60>>0]|0;
  16982. $62 = (+($61&255));
  16983. $63 = $62 / 255.0;
  16984. _glUniform4f(($46|0),(+$51),(+$55),(+$59),(+$63));
  16985. }
  16986. dest=$3; src=19096; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16987. dest=$4; src=19032; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16988. dest=$modelview$byval_copy4; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16989. dest=$$byval_copy5; src=19096; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16990. _MatrixMultiply($5,$modelview$byval_copy4,$$byval_copy5);
  16991. $64 = HEAP32[$1>>2]|0;
  16992. $65 = HEAP32[4799]|0;
  16993. $66 = ($64|0)==($65|0);
  16994. if (!($66)) {
  16995. $67 = (_glGetUniformLocation(($64|0),(9706|0))|0);
  16996. $68 = ($67|0)==(-1);
  16997. if (!($68)) {
  16998. dest=$modelview$byval_copy4; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16999. _MatrixTranspose($modelview$byval_copy4);
  17000. _MatrixInvert($modelview$byval_copy4);
  17001. dest=$$byval_copy5; src=$modelview$byval_copy4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17002. $69 = (_MatrixToFloat($$byval_copy5)|0);
  17003. _glUniformMatrix4fv(($67|0),1,0,($69|0));
  17004. }
  17005. $70 = HEAP32[$1>>2]|0;
  17006. $71 = (_glGetUniformLocation(($70|0),(9718|0))|0);
  17007. $72 = ($71|0)==(-1);
  17008. if (!($72)) {
  17009. $73 = ((($3)) + 8|0);
  17010. $74 = +HEAPF32[$73>>2];
  17011. $75 = ((($3)) + 24|0);
  17012. $76 = +HEAPF32[$75>>2];
  17013. $77 = ((($3)) + 40|0);
  17014. $78 = +HEAPF32[$77>>2];
  17015. _glUniform3f(($71|0),(+$74),(+$76),(+$78));
  17016. }
  17017. $79 = (_glGetUniformLocation(($70|0),(9726|0))|0);
  17018. $80 = ($79|0)==(-1);
  17019. if (!($80)) {
  17020. $81 = ((($1)) + 128|0);
  17021. $82 = +HEAPF32[$81>>2];
  17022. _glUniform1f(($79|0),(+$82));
  17023. }
  17024. }
  17025. _glActiveTexture(33984);
  17026. $83 = ((($1)) + 56|0);
  17027. $84 = HEAP32[$83>>2]|0;
  17028. _glBindTexture(3553,($84|0));
  17029. $85 = ((($1)) + 44|0);
  17030. $86 = HEAP32[$85>>2]|0;
  17031. _glUniform1i(($86|0),0);
  17032. $87 = ((($1)) + 76|0);
  17033. $88 = HEAP32[$87>>2]|0;
  17034. $89 = ($88|0)==(0);
  17035. if (!($89)) {
  17036. $90 = ((($1)) + 48|0);
  17037. $91 = HEAP32[$90>>2]|0;
  17038. $92 = ($91|0)==(-1);
  17039. if (!($92)) {
  17040. $93 = HEAP32[$1>>2]|0;
  17041. $94 = (_glGetUniformLocation(($93|0),(9737|0))|0);
  17042. _glUniform1i(($94|0),1);
  17043. _glActiveTexture(33985);
  17044. $95 = HEAP32[$87>>2]|0;
  17045. _glBindTexture(3553,($95|0));
  17046. $96 = HEAP32[$90>>2]|0;
  17047. _glUniform1i(($96|0),1);
  17048. }
  17049. }
  17050. $97 = ((($1)) + 96|0);
  17051. $98 = HEAP32[$97>>2]|0;
  17052. $99 = ($98|0)==(0);
  17053. if (!($99)) {
  17054. $100 = ((($1)) + 52|0);
  17055. $101 = HEAP32[$100>>2]|0;
  17056. $102 = ($101|0)==(-1);
  17057. if (!($102)) {
  17058. $103 = HEAP32[$1>>2]|0;
  17059. $104 = (_glGetUniformLocation(($103|0),(9747|0))|0);
  17060. _glUniform1i(($104|0),1);
  17061. _glActiveTexture(33986);
  17062. $105 = HEAP32[$97>>2]|0;
  17063. _glBindTexture(3553,($105|0));
  17064. $106 = HEAP32[$100>>2]|0;
  17065. _glUniform1i(($106|0),2);
  17066. }
  17067. }
  17068. $107 = HEAP32[4791]|0;
  17069. $108 = ($107|0)==(0);
  17070. if ($108) {
  17071. $112 = ((($0)) + 40|0);
  17072. $113 = HEAP32[$112>>2]|0;
  17073. _glBindBuffer(34962,($113|0));
  17074. $114 = ((($1)) + 4|0);
  17075. $115 = HEAP32[$114>>2]|0;
  17076. _glVertexAttribPointer(($115|0),3,5126,0,0,(0|0));
  17077. _glEnableVertexAttribArray(($115|0));
  17078. $116 = ((($0)) + 44|0);
  17079. $117 = HEAP32[$116>>2]|0;
  17080. _glBindBuffer(34962,($117|0));
  17081. $118 = ((($1)) + 8|0);
  17082. $119 = HEAP32[$118>>2]|0;
  17083. _glVertexAttribPointer(($119|0),2,5126,0,0,(0|0));
  17084. _glEnableVertexAttribArray(($119|0));
  17085. $120 = ((($1)) + 16|0);
  17086. $121 = HEAP32[$120>>2]|0;
  17087. $122 = ($121|0)==(-1);
  17088. if (!($122)) {
  17089. $123 = ((($0)) + 48|0);
  17090. $124 = HEAP32[$123>>2]|0;
  17091. _glBindBuffer(34962,($124|0));
  17092. $125 = HEAP32[$120>>2]|0;
  17093. _glVertexAttribPointer(($125|0),3,5126,0,0,(0|0));
  17094. $126 = HEAP32[$120>>2]|0;
  17095. _glEnableVertexAttribArray(($126|0));
  17096. }
  17097. $127 = ((($1)) + 24|0);
  17098. $128 = HEAP32[$127>>2]|0;
  17099. $129 = ($128|0)==(-1);
  17100. do {
  17101. if (!($129)) {
  17102. $130 = ((($0)) + 52|0);
  17103. $131 = HEAP32[$130>>2]|0;
  17104. $132 = ($131|0)==(0);
  17105. if ($132) {
  17106. _glVertexAttrib4f(($128|0),1.0,1.0,1.0,1.0);
  17107. $135 = HEAP32[$127>>2]|0;
  17108. _glDisableVertexAttribArray(($135|0));
  17109. break;
  17110. } else {
  17111. _glBindBuffer(34962,($131|0));
  17112. $133 = HEAP32[$127>>2]|0;
  17113. _glVertexAttribPointer(($133|0),4,5121,1,0,(0|0));
  17114. $134 = HEAP32[$127>>2]|0;
  17115. _glEnableVertexAttribArray(($134|0));
  17116. break;
  17117. }
  17118. }
  17119. } while(0);
  17120. $136 = ((($1)) + 20|0);
  17121. $137 = HEAP32[$136>>2]|0;
  17122. $138 = ($137|0)==(-1);
  17123. if (!($138)) {
  17124. $139 = ((($0)) + 56|0);
  17125. $140 = HEAP32[$139>>2]|0;
  17126. _glBindBuffer(34962,($140|0));
  17127. $141 = HEAP32[$136>>2]|0;
  17128. _glVertexAttribPointer(($141|0),3,5126,0,0,(0|0));
  17129. $142 = HEAP32[$136>>2]|0;
  17130. _glEnableVertexAttribArray(($142|0));
  17131. }
  17132. $143 = ((($1)) + 12|0);
  17133. $144 = HEAP32[$143>>2]|0;
  17134. $145 = ($144|0)==(-1);
  17135. if (!($145)) {
  17136. $146 = ((($0)) + 60|0);
  17137. $147 = HEAP32[$146>>2]|0;
  17138. _glBindBuffer(34962,($147|0));
  17139. $148 = HEAP32[$143>>2]|0;
  17140. _glVertexAttribPointer(($148|0),2,5126,0,0,(0|0));
  17141. $149 = HEAP32[$143>>2]|0;
  17142. _glEnableVertexAttribArray(($149|0));
  17143. }
  17144. $150 = ((($0)) + 32|0);
  17145. $151 = HEAP32[$150>>2]|0;
  17146. $152 = ($151|0)==(0|0);
  17147. if (!($152)) {
  17148. $153 = HEAP32[(20496)>>2]|0;
  17149. _glBindBuffer(34963,($153|0));
  17150. }
  17151. } else {
  17152. $109 = HEAP32[4793]|0;
  17153. $110 = ((($0)) + 36|0);
  17154. $111 = HEAP32[$110>>2]|0;
  17155. FUNCTION_TABLE_vi[$109 & 31]($111);
  17156. }
  17157. $154 = HEAP32[5176]|0;
  17158. $155 = ($154|0)!=(0);
  17159. $$ = $155 ? 2 : 1;
  17160. $156 = ((($1)) + 28|0);
  17161. $157 = ((($0)) + 32|0);
  17162. $158 = HEAP32[$0>>2]|0;
  17163. $159 = ((($0)) + 4|0);
  17164. $$020 = 0;
  17165. while(1) {
  17166. if ($155) {
  17167. dest=$modelview$byval_copy4; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17168. dest=$$byval_copy5; src=$5; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17169. _SetStereoView($$020,$modelview$byval_copy4,$$byval_copy5);
  17170. } else {
  17171. dest=19096; 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));
  17172. }
  17173. dest=$modelview$byval_copy4; src=19096; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17174. dest=$$byval_copy5; src=19032; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17175. _MatrixMultiply($6,$modelview$byval_copy4,$$byval_copy5);
  17176. $162 = HEAP32[$156>>2]|0;
  17177. dest=$$byval_copy5; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17178. $163 = (_MatrixToFloat($$byval_copy5)|0);
  17179. _glUniformMatrix4fv(($162|0),1,0,($163|0));
  17180. $164 = HEAP32[$157>>2]|0;
  17181. $165 = ($164|0)==(0|0);
  17182. if ($165) {
  17183. _glDrawArrays(4,0,($158|0));
  17184. } else {
  17185. $166 = HEAP32[$159>>2]|0;
  17186. $167 = ($166*3)|0;
  17187. _glDrawElements(4,($167|0),5123,(0|0));
  17188. }
  17189. $168 = (($$020) + 1)|0;
  17190. $169 = ($168|0)<($$|0);
  17191. if ($169) {
  17192. $$020 = $168;
  17193. } else {
  17194. break;
  17195. }
  17196. }
  17197. $160 = HEAP32[$87>>2]|0;
  17198. $161 = ($160|0)==(0);
  17199. if (!($161)) {
  17200. _glActiveTexture(33985);
  17201. _glBindTexture(3553,0);
  17202. }
  17203. $170 = HEAP32[$97>>2]|0;
  17204. $171 = ($170|0)==(0);
  17205. if (!($171)) {
  17206. _glActiveTexture(33986);
  17207. _glBindTexture(3553,0);
  17208. }
  17209. _glActiveTexture(33984);
  17210. _glBindTexture(3553,0);
  17211. $172 = HEAP32[4791]|0;
  17212. $173 = ($172|0)==(0);
  17213. if (!($173)) {
  17214. $174 = HEAP32[4793]|0;
  17215. FUNCTION_TABLE_vi[$174 & 31](0);
  17216. _glUseProgram(0);
  17217. dest=19032; 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));
  17218. dest=19096; 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));
  17219. STACKTOP = sp;return;
  17220. }
  17221. _glBindBuffer(34962,0);
  17222. $175 = ((($0)) + 32|0);
  17223. $176 = HEAP32[$175>>2]|0;
  17224. $177 = ($176|0)==(0|0);
  17225. if ($177) {
  17226. _glUseProgram(0);
  17227. dest=19032; 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));
  17228. dest=19096; 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));
  17229. STACKTOP = sp;return;
  17230. }
  17231. _glBindBuffer(34963,0);
  17232. _glUseProgram(0);
  17233. dest=19032; 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));
  17234. dest=19096; 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));
  17235. STACKTOP = sp;return;
  17236. }
  17237. function _rlglUnloadMesh($0) {
  17238. $0 = $0|0;
  17239. 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;
  17240. var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17241. sp = STACKTOP;
  17242. $1 = ((($0)) + 8|0);
  17243. $2 = HEAP32[$1>>2]|0;
  17244. $3 = ($2|0)==(0|0);
  17245. if (!($3)) {
  17246. _free($2);
  17247. }
  17248. $4 = ((($0)) + 12|0);
  17249. $5 = HEAP32[$4>>2]|0;
  17250. $6 = ($5|0)==(0|0);
  17251. if (!($6)) {
  17252. _free($5);
  17253. }
  17254. $7 = ((($0)) + 20|0);
  17255. $8 = HEAP32[$7>>2]|0;
  17256. $9 = ($8|0)==(0|0);
  17257. if (!($9)) {
  17258. _free($8);
  17259. }
  17260. $10 = ((($0)) + 28|0);
  17261. $11 = HEAP32[$10>>2]|0;
  17262. $12 = ($11|0)==(0|0);
  17263. if (!($12)) {
  17264. _free($11);
  17265. }
  17266. $13 = ((($0)) + 24|0);
  17267. $14 = HEAP32[$13>>2]|0;
  17268. $15 = ($14|0)==(0|0);
  17269. if (!($15)) {
  17270. _free($14);
  17271. }
  17272. $16 = ((($0)) + 16|0);
  17273. $17 = HEAP32[$16>>2]|0;
  17274. $18 = ($17|0)==(0|0);
  17275. if (!($18)) {
  17276. _free($17);
  17277. }
  17278. $19 = ((($0)) + 32|0);
  17279. $20 = HEAP32[$19>>2]|0;
  17280. $21 = ($20|0)==(0|0);
  17281. if (!($21)) {
  17282. _free($20);
  17283. }
  17284. $22 = ((($0)) + 40|0);
  17285. $23 = HEAP32[$22>>2]|0;
  17286. _rlDeleteBuffers($23);
  17287. $24 = ((($0)) + 44|0);
  17288. $25 = HEAP32[$24>>2]|0;
  17289. _rlDeleteBuffers($25);
  17290. $26 = ((($0)) + 48|0);
  17291. $27 = HEAP32[$26>>2]|0;
  17292. _rlDeleteBuffers($27);
  17293. $28 = ((($0)) + 52|0);
  17294. $29 = HEAP32[$28>>2]|0;
  17295. _rlDeleteBuffers($29);
  17296. $30 = ((($0)) + 56|0);
  17297. $31 = HEAP32[$30>>2]|0;
  17298. _rlDeleteBuffers($31);
  17299. $32 = ((($0)) + 60|0);
  17300. $33 = HEAP32[$32>>2]|0;
  17301. _rlDeleteBuffers($33);
  17302. $34 = ((($0)) + 64|0);
  17303. $35 = HEAP32[$34>>2]|0;
  17304. _rlDeleteBuffers($35);
  17305. $36 = ((($0)) + 36|0);
  17306. $37 = HEAP32[$36>>2]|0;
  17307. _rlDeleteVertexArrays($37);
  17308. return;
  17309. }
  17310. function _GetDefaultTexture($0) {
  17311. $0 = $0|0;
  17312. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $$sroa$6$0$$sroa_idx6 = 0, $$sroa$7$0$$sroa_idx8 = 0, $1 = 0, label = 0, sp = 0;
  17313. sp = STACKTOP;
  17314. $1 = HEAP32[4798]|0;
  17315. HEAP32[$0>>2] = $1;
  17316. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  17317. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 1;
  17318. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  17319. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = 1;
  17320. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  17321. HEAP32[$$sroa$6$0$$sroa_idx6>>2] = 1;
  17322. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  17323. HEAP32[$$sroa$7$0$$sroa_idx8>>2] = 7;
  17324. return;
  17325. }
  17326. function _LoadText($0) {
  17327. $0 = $0|0;
  17328. var $$0 = 0, $$1 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  17329. sp = STACKTOP;
  17330. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17331. $vararg_buffer = sp;
  17332. $1 = ($0|0)==(0|0);
  17333. if ($1) {
  17334. $$1 = 0;
  17335. STACKTOP = sp;return ($$1|0);
  17336. }
  17337. $2 = (_fopen($0,12060)|0);
  17338. $3 = ($2|0)==(0|0);
  17339. if ($3) {
  17340. HEAP32[$vararg_buffer>>2] = $0;
  17341. _TraceLog(2,9759,$vararg_buffer);
  17342. $$1 = 0;
  17343. STACKTOP = sp;return ($$1|0);
  17344. }
  17345. (_fseek($2,0,2)|0);
  17346. $4 = (_ftell($2)|0);
  17347. _rewind($2);
  17348. $5 = ($4|0)>(0);
  17349. if ($5) {
  17350. $6 = (($4) + 1)|0;
  17351. $7 = (_malloc($6)|0);
  17352. $8 = (_fread($7,1,$4,$2)|0);
  17353. $9 = (($7) + ($8)|0);
  17354. HEAP8[$9>>0] = 0;
  17355. $$0 = $7;
  17356. } else {
  17357. $$0 = 0;
  17358. }
  17359. (_fclose($2)|0);
  17360. $$1 = $$0;
  17361. STACKTOP = sp;return ($$1|0);
  17362. }
  17363. function _LoadShader($0,$1,$2) {
  17364. $0 = $0|0;
  17365. $1 = $1|0;
  17366. $2 = $2|0;
  17367. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $vararg_buffer = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  17368. sp = STACKTOP;
  17369. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  17370. $vararg_buffer = sp;
  17371. $3 = sp + 8|0;
  17372. dest=$3; stop=dest+56|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  17373. $4 = (_LoadText($1)|0);
  17374. $5 = (_LoadText($2)|0);
  17375. $6 = ($4|0)!=(0|0);
  17376. $7 = ($5|0)!=(0|0);
  17377. $or$cond = $6 & $7;
  17378. if ($or$cond) {
  17379. $8 = (_LoadShaderProgram($4,$5)|0);
  17380. HEAP32[$3>>2] = $8;
  17381. $9 = ($8|0)==(0);
  17382. if (!($9)) {
  17383. _LoadDefaultShaderLocations($3);
  17384. }
  17385. _free($4);
  17386. _free($5);
  17387. }
  17388. $10 = HEAP32[$3>>2]|0;
  17389. $11 = ($10|0)==(0);
  17390. if ($11) {
  17391. _TraceLog(2,9794,$vararg_buffer);
  17392. dest=$3; src=19196; 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));
  17393. }
  17394. dest=$0; src=$3; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17395. STACKTOP = sp;return;
  17396. }
  17397. function _UnloadShader($0) {
  17398. $0 = $0|0;
  17399. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  17400. sp = STACKTOP;
  17401. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17402. $vararg_buffer = sp;
  17403. $1 = HEAP32[$0>>2]|0;
  17404. $2 = ($1|0)==(0);
  17405. if ($2) {
  17406. STACKTOP = sp;return;
  17407. }
  17408. _rlDeleteShader($1);
  17409. $3 = HEAP32[$0>>2]|0;
  17410. HEAP32[$vararg_buffer>>2] = $3;
  17411. _TraceLog(0,9828,$vararg_buffer);
  17412. STACKTOP = sp;return;
  17413. }
  17414. function _GetDefaultShader($0) {
  17415. $0 = $0|0;
  17416. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  17417. sp = STACKTOP;
  17418. dest=$0; src=19196; 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));
  17419. return;
  17420. }
  17421. function _stbi__err($0) {
  17422. $0 = $0|0;
  17423. var label = 0, sp = 0;
  17424. sp = STACKTOP;
  17425. HEAP32[5269] = $0;
  17426. return;
  17427. }
  17428. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  17429. $0 = $0|0;
  17430. $1 = $1|0;
  17431. $2 = $2|0;
  17432. $3 = $3|0;
  17433. $4 = $4|0;
  17434. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17435. sp = STACKTOP;
  17436. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  17437. $5 = sp;
  17438. _stbi__start_file($5,$0);
  17439. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  17440. $7 = ($6|0)==(0|0);
  17441. if ($7) {
  17442. STACKTOP = sp;return ($6|0);
  17443. }
  17444. $8 = ((($5)) + 172|0);
  17445. $9 = HEAP32[$8>>2]|0;
  17446. $10 = ((($5)) + 168|0);
  17447. $11 = HEAP32[$10>>2]|0;
  17448. $12 = (($11) - ($9))|0;
  17449. (_fseek($0,$12,1)|0);
  17450. STACKTOP = sp;return ($6|0);
  17451. }
  17452. function _stbi__start_file($0,$1) {
  17453. $0 = $0|0;
  17454. $1 = $1|0;
  17455. var label = 0, sp = 0;
  17456. sp = STACKTOP;
  17457. _stbi__start_callbacks($0,3172,$1);
  17458. return;
  17459. }
  17460. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  17461. $0 = $0|0;
  17462. $1 = $1|0;
  17463. $2 = $2|0;
  17464. $3 = $3|0;
  17465. $4 = $4|0;
  17466. 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;
  17467. 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;
  17468. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  17469. sp = STACKTOP;
  17470. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17471. $5 = sp;
  17472. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  17473. $7 = ($6|0)==(0|0);
  17474. if ($7) {
  17475. $$0 = 0;
  17476. STACKTOP = sp;return ($$0|0);
  17477. }
  17478. $8 = HEAP32[$5>>2]|0;
  17479. switch ($8|0) {
  17480. case 8: {
  17481. $$070 = $6;
  17482. break;
  17483. }
  17484. case 16: {
  17485. label = 4;
  17486. break;
  17487. }
  17488. default: {
  17489. ___assert_fail((9870|0),(9896|0),1041,(9919|0));
  17490. // unreachable;
  17491. }
  17492. }
  17493. if ((label|0) == 4) {
  17494. $9 = HEAP32[$1>>2]|0;
  17495. $10 = HEAP32[$2>>2]|0;
  17496. $11 = ($4|0)==(0);
  17497. if ($11) {
  17498. $12 = HEAP32[$3>>2]|0;
  17499. $13 = $12;
  17500. } else {
  17501. $13 = $4;
  17502. }
  17503. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  17504. HEAP32[$5>>2] = 8;
  17505. $$070 = $14;
  17506. }
  17507. $15 = HEAP32[5270]|0;
  17508. $16 = ($15|0)==(0);
  17509. if ($16) {
  17510. $$0 = $$070;
  17511. STACKTOP = sp;return ($$0|0);
  17512. }
  17513. $17 = HEAP32[$1>>2]|0;
  17514. $18 = HEAP32[$2>>2]|0;
  17515. $19 = ($4|0)==(0);
  17516. if ($19) {
  17517. $20 = HEAP32[$3>>2]|0;
  17518. $25 = $20;
  17519. } else {
  17520. $25 = $4;
  17521. }
  17522. $21 = $18 >> 1;
  17523. $22 = ($21|0)>(0);
  17524. if (!($22)) {
  17525. $$0 = $$070;
  17526. STACKTOP = sp;return ($$0|0);
  17527. }
  17528. $23 = ($17|0)>(0);
  17529. $24 = ($25|0)>(0);
  17530. $26 = (($18) + -1)|0;
  17531. $$07378 = 0;
  17532. while(1) {
  17533. if ($23) {
  17534. $27 = Math_imul($$07378, $17)|0;
  17535. $28 = (($26) - ($$07378))|0;
  17536. $29 = Math_imul($28, $17)|0;
  17537. $$07276 = 0;
  17538. while(1) {
  17539. if ($24) {
  17540. $30 = (($$07276) + ($27))|0;
  17541. $31 = Math_imul($30, $25)|0;
  17542. $32 = (($$07276) + ($29))|0;
  17543. $33 = Math_imul($32, $25)|0;
  17544. $$07175 = 0;
  17545. while(1) {
  17546. $34 = (($$07175) + ($31))|0;
  17547. $35 = (($$070) + ($34)|0);
  17548. $36 = HEAP8[$35>>0]|0;
  17549. $37 = (($$07175) + ($33))|0;
  17550. $38 = (($$070) + ($37)|0);
  17551. $39 = HEAP8[$38>>0]|0;
  17552. HEAP8[$35>>0] = $39;
  17553. HEAP8[$38>>0] = $36;
  17554. $40 = (($$07175) + 1)|0;
  17555. $exitcond = ($40|0)==($25|0);
  17556. if ($exitcond) {
  17557. break;
  17558. } else {
  17559. $$07175 = $40;
  17560. }
  17561. }
  17562. }
  17563. $41 = (($$07276) + 1)|0;
  17564. $exitcond79 = ($41|0)==($17|0);
  17565. if ($exitcond79) {
  17566. break;
  17567. } else {
  17568. $$07276 = $41;
  17569. }
  17570. }
  17571. }
  17572. $42 = (($$07378) + 1)|0;
  17573. $exitcond80 = ($42|0)==($21|0);
  17574. if ($exitcond80) {
  17575. $$0 = $$070;
  17576. break;
  17577. } else {
  17578. $$07378 = $42;
  17579. }
  17580. }
  17581. STACKTOP = sp;return ($$0|0);
  17582. }
  17583. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  17584. $0 = $0|0;
  17585. $1 = $1|0;
  17586. $2 = $2|0;
  17587. $3 = $3|0;
  17588. $4 = $4|0;
  17589. $5 = $5|0;
  17590. var $$0 = 0, $10 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17591. sp = STACKTOP;
  17592. HEAP32[$5>>2] = 8;
  17593. $6 = ((($5)) + 8|0);
  17594. HEAP32[$6>>2] = 0;
  17595. $7 = ((($5)) + 4|0);
  17596. HEAP32[$7>>2] = 0;
  17597. $8 = (_stbi__png_test($0)|0);
  17598. $9 = ($8|0)==(0);
  17599. if ($9) {
  17600. _stbi__err(9960);
  17601. $$0 = 0;
  17602. return ($$0|0);
  17603. } else {
  17604. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  17605. $$0 = $10;
  17606. return ($$0|0);
  17607. }
  17608. return (0)|0;
  17609. }
  17610. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  17611. $0 = $0|0;
  17612. $1 = $1|0;
  17613. $2 = $2|0;
  17614. $3 = $3|0;
  17615. 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;
  17616. sp = STACKTOP;
  17617. $4 = Math_imul($2, $1)|0;
  17618. $5 = Math_imul($4, $3)|0;
  17619. $6 = (_stbi__malloc($5)|0);
  17620. $7 = ($6|0)==(0|0);
  17621. if ($7) {
  17622. _stbi__err(9951);
  17623. $$0 = 0;
  17624. return ($$0|0);
  17625. }
  17626. $8 = ($5|0)>(0);
  17627. if ($8) {
  17628. $$01819 = 0;
  17629. while(1) {
  17630. $9 = (($0) + ($$01819<<1)|0);
  17631. $10 = HEAP16[$9>>1]|0;
  17632. $11 = ($10&65535) >>> 8;
  17633. $12 = $11&255;
  17634. $13 = (($6) + ($$01819)|0);
  17635. HEAP8[$13>>0] = $12;
  17636. $14 = (($$01819) + 1)|0;
  17637. $exitcond = ($14|0)==($5|0);
  17638. if ($exitcond) {
  17639. break;
  17640. } else {
  17641. $$01819 = $14;
  17642. }
  17643. }
  17644. }
  17645. _free($0);
  17646. $$0 = $6;
  17647. return ($$0|0);
  17648. }
  17649. function _stbi__malloc($0) {
  17650. $0 = $0|0;
  17651. var $1 = 0, label = 0, sp = 0;
  17652. sp = STACKTOP;
  17653. $1 = (_malloc($0)|0);
  17654. return ($1|0);
  17655. }
  17656. function _stbi__png_test($0) {
  17657. $0 = $0|0;
  17658. var $1 = 0, label = 0, sp = 0;
  17659. sp = STACKTOP;
  17660. $1 = (_stbi__check_png_header($0)|0);
  17661. _stbi__rewind($0);
  17662. return ($1|0);
  17663. }
  17664. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  17665. $0 = $0|0;
  17666. $1 = $1|0;
  17667. $2 = $2|0;
  17668. $3 = $3|0;
  17669. $4 = $4|0;
  17670. $5 = $5|0;
  17671. var $6 = 0, $7 = 0, label = 0, sp = 0;
  17672. sp = STACKTOP;
  17673. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  17674. $6 = sp;
  17675. HEAP32[$6>>2] = $0;
  17676. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  17677. STACKTOP = sp;return ($7|0);
  17678. }
  17679. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  17680. $0 = $0|0;
  17681. $1 = $1|0;
  17682. $2 = $2|0;
  17683. $3 = $3|0;
  17684. $4 = $4|0;
  17685. $5 = $5|0;
  17686. 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;
  17687. 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;
  17688. var $9 = 0, label = 0, sp = 0;
  17689. sp = STACKTOP;
  17690. $6 = ($4>>>0)>(4);
  17691. if ($6) {
  17692. _stbi__err(9979);
  17693. $$045 = 0;
  17694. return ($$045|0);
  17695. }
  17696. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  17697. $8 = ($7|0)==(0);
  17698. if ($8) {
  17699. $$2 = 0;
  17700. } else {
  17701. $9 = ((($0)) + 16|0);
  17702. $10 = HEAP32[$9>>2]|0;
  17703. $11 = ($10|0)>(8);
  17704. $$ = $11 ? $10 : 8;
  17705. HEAP32[$5>>2] = $$;
  17706. $12 = ((($0)) + 12|0);
  17707. $13 = HEAP32[$12>>2]|0;
  17708. HEAP32[$12>>2] = 0;
  17709. $14 = ($4|0)==(0);
  17710. if ($14) {
  17711. $$1 = $13;
  17712. } else {
  17713. $15 = HEAP32[$0>>2]|0;
  17714. $16 = ((($15)) + 12|0);
  17715. $17 = HEAP32[$16>>2]|0;
  17716. $18 = ($17|0)==($4|0);
  17717. if ($18) {
  17718. $$1 = $13;
  17719. } else {
  17720. $19 = HEAP32[$5>>2]|0;
  17721. $20 = ($19|0)==(8);
  17722. $21 = ((($15)) + 4|0);
  17723. $22 = HEAP32[$21>>2]|0;
  17724. $23 = HEAP32[$15>>2]|0;
  17725. if ($20) {
  17726. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  17727. $$0 = $24;
  17728. } else {
  17729. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  17730. $$0 = $25;
  17731. }
  17732. $26 = HEAP32[$0>>2]|0;
  17733. $27 = ((($26)) + 12|0);
  17734. HEAP32[$27>>2] = $4;
  17735. $28 = ($$0|0)==(0|0);
  17736. if ($28) {
  17737. $$045 = 0;
  17738. return ($$045|0);
  17739. } else {
  17740. $$1 = $$0;
  17741. }
  17742. }
  17743. }
  17744. $29 = HEAP32[$0>>2]|0;
  17745. $30 = HEAP32[$29>>2]|0;
  17746. HEAP32[$1>>2] = $30;
  17747. $31 = ((($29)) + 4|0);
  17748. $32 = HEAP32[$31>>2]|0;
  17749. HEAP32[$2>>2] = $32;
  17750. $33 = ($3|0)==(0|0);
  17751. if ($33) {
  17752. $$2 = $$1;
  17753. } else {
  17754. $34 = ((($29)) + 8|0);
  17755. $35 = HEAP32[$34>>2]|0;
  17756. HEAP32[$3>>2] = $35;
  17757. $$2 = $$1;
  17758. }
  17759. }
  17760. $36 = ((($0)) + 12|0);
  17761. $37 = HEAP32[$36>>2]|0;
  17762. _free($37);
  17763. HEAP32[$36>>2] = 0;
  17764. $38 = ((($0)) + 8|0);
  17765. $39 = HEAP32[$38>>2]|0;
  17766. _free($39);
  17767. HEAP32[$38>>2] = 0;
  17768. $40 = ((($0)) + 4|0);
  17769. $41 = HEAP32[$40>>2]|0;
  17770. _free($41);
  17771. HEAP32[$40>>2] = 0;
  17772. $$045 = $$2;
  17773. return ($$045|0);
  17774. }
  17775. function _stbi__parse_png_file($0,$1,$2) {
  17776. $0 = $0|0;
  17777. $1 = $1|0;
  17778. $2 = $2|0;
  17779. 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;
  17780. 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;
  17781. 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;
  17782. 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;
  17783. 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;
  17784. 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;
  17785. 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;
  17786. 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;
  17787. 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;
  17788. 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;
  17789. 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;
  17790. 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;
  17791. 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;
  17792. sp = STACKTOP;
  17793. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  17794. $3 = sp + 32|0;
  17795. $4 = sp + 22|0;
  17796. $5 = sp + 16|0;
  17797. $6 = sp + 8|0;
  17798. $7 = sp;
  17799. $8 = HEAP32[$0>>2]|0;
  17800. $9 = ((($0)) + 8|0);
  17801. HEAP32[$9>>2] = 0;
  17802. $10 = ((($0)) + 4|0);
  17803. HEAP32[$10>>2] = 0;
  17804. $11 = ((($0)) + 12|0);
  17805. HEAP32[$11>>2] = 0;
  17806. $12 = (_stbi__check_png_header($8)|0);
  17807. $13 = ($12|0)==(0);
  17808. if ($13) {
  17809. $$7 = 0;
  17810. STACKTOP = sp;return ($$7|0);
  17811. }
  17812. $14 = ($1|0)==(1);
  17813. if ($14) {
  17814. $$7 = 1;
  17815. STACKTOP = sp;return ($$7|0);
  17816. }
  17817. $15 = ((($6)) + 4|0);
  17818. $16 = ((($8)) + 4|0);
  17819. $17 = ((($0)) + 16|0);
  17820. $18 = ((($8)) + 8|0);
  17821. $19 = ($1|0)==(2);
  17822. $20 = ((($8)) + 8|0);
  17823. $21 = ((($8)) + 8|0);
  17824. $22 = ((($0)) + 16|0);
  17825. $23 = ($1|0)==(2);
  17826. $24 = ($1|0)==(2);
  17827. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  17828. L7: while(1) {
  17829. _stbi__get_chunk_header($6,$8);
  17830. $25 = HEAP32[$15>>2]|0;
  17831. $switch$split2D = ($25|0)<(1229472850);
  17832. L9: do {
  17833. if ($switch$split2D) {
  17834. $switch$split52D = ($25|0)<(1229209940);
  17835. if ($switch$split52D) {
  17836. switch ($25|0) {
  17837. case 1130840649: {
  17838. break;
  17839. }
  17840. default: {
  17841. label = 103;
  17842. break L9;
  17843. }
  17844. }
  17845. $26 = HEAP32[$6>>2]|0;
  17846. _stbi__skip($8,$26);
  17847. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  17848. break;
  17849. }
  17850. $switch$split112D = ($25|0)<(1229278788);
  17851. if (!($switch$split112D)) {
  17852. switch ($25|0) {
  17853. case 1229278788: {
  17854. label = 85;
  17855. break L7;
  17856. break;
  17857. }
  17858. default: {
  17859. label = 103;
  17860. break L9;
  17861. }
  17862. }
  17863. }
  17864. switch ($25|0) {
  17865. case 1229209940: {
  17866. break;
  17867. }
  17868. default: {
  17869. label = 103;
  17870. break L9;
  17871. }
  17872. }
  17873. $130 = ($$0241|0)==(0);
  17874. if (!($130)) {
  17875. label = 70;
  17876. break L7;
  17877. }
  17878. $131 = ($$0206<<24>>24)==(0);
  17879. $132 = ($$0245|0)!=(0);
  17880. $or$cond = $132 | $131;
  17881. if (!($or$cond)) {
  17882. label = 72;
  17883. break L7;
  17884. }
  17885. if ($24) {
  17886. label = 74;
  17887. break L7;
  17888. }
  17889. $135 = HEAP32[$6>>2]|0;
  17890. $136 = (($135) + ($$0214))|0;
  17891. $137 = ($136|0)<($$0214|0);
  17892. if ($137) {
  17893. $$6$ph = 0;
  17894. break L7;
  17895. }
  17896. $138 = ($136>>>0)>($$0217>>>0);
  17897. if ($138) {
  17898. $139 = ($$0217|0)==(0);
  17899. $140 = ($135>>>0)>(4096);
  17900. $141 = $140 ? $135 : 4096;
  17901. $$$0217 = $139 ? $141 : $$0217;
  17902. $142 = HEAP32[$6>>2]|0;
  17903. $143 = (($142) + ($$0214))|0;
  17904. $$1218 = $$$0217;
  17905. while(1) {
  17906. $144 = ($143>>>0)>($$1218>>>0);
  17907. $145 = $$1218 << 1;
  17908. if ($144) {
  17909. $$1218 = $145;
  17910. } else {
  17911. break;
  17912. }
  17913. }
  17914. $146 = HEAP32[$10>>2]|0;
  17915. $147 = (_realloc($146,$$1218)|0);
  17916. $148 = ($147|0)==(0|0);
  17917. if ($148) {
  17918. label = 81;
  17919. break L7;
  17920. }
  17921. HEAP32[$10>>2] = $147;
  17922. $$2219 = $$1218;
  17923. } else {
  17924. $$2219 = $$0217;
  17925. }
  17926. $149 = HEAP32[$10>>2]|0;
  17927. $150 = (($149) + ($$0214)|0);
  17928. $151 = HEAP32[$6>>2]|0;
  17929. $152 = (_stbi__getn($8,$150,$151)|0);
  17930. $153 = ($152|0)==(0);
  17931. if ($153) {
  17932. label = 83;
  17933. break L7;
  17934. }
  17935. $154 = HEAP32[$6>>2]|0;
  17936. $155 = (($154) + ($$0214))|0;
  17937. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  17938. } else {
  17939. $switch$split82D = ($25|0)<(1347179589);
  17940. if ($switch$split82D) {
  17941. switch ($25|0) {
  17942. case 1229472850: {
  17943. break;
  17944. }
  17945. default: {
  17946. label = 103;
  17947. break L9;
  17948. }
  17949. }
  17950. $27 = ($$0241|0)==(0);
  17951. if ($27) {
  17952. label = 7;
  17953. break L7;
  17954. }
  17955. $28 = HEAP32[$6>>2]|0;
  17956. $29 = ($28|0)==(13);
  17957. if (!($29)) {
  17958. label = 9;
  17959. break L7;
  17960. }
  17961. $30 = (_stbi__get32be($8)|0);
  17962. HEAP32[$8>>2] = $30;
  17963. $31 = ($30>>>0)>(16777216);
  17964. if ($31) {
  17965. label = 11;
  17966. break L7;
  17967. }
  17968. $32 = (_stbi__get32be($8)|0);
  17969. HEAP32[$16>>2] = $32;
  17970. $33 = ($32>>>0)>(16777216);
  17971. if ($33) {
  17972. label = 13;
  17973. break L7;
  17974. }
  17975. $34 = (_stbi__get8($8)|0);
  17976. $35 = $34&255;
  17977. HEAP32[$17>>2] = $35;
  17978. switch ($34<<24>>24) {
  17979. case 16: case 8: case 4: case 2: case 1: {
  17980. break;
  17981. }
  17982. default: {
  17983. label = 15;
  17984. break L7;
  17985. }
  17986. }
  17987. $36 = (_stbi__get8($8)|0);
  17988. $37 = $36&255;
  17989. $38 = ($36&255)>(6);
  17990. if ($38) {
  17991. label = 17;
  17992. break L7;
  17993. }
  17994. $39 = ($36<<24>>24)==(3);
  17995. if ($39) {
  17996. $40 = HEAP32[$17>>2]|0;
  17997. $41 = ($40|0)==(16);
  17998. if ($41) {
  17999. label = 20;
  18000. break L7;
  18001. } else {
  18002. $$1207 = 3;
  18003. }
  18004. } else {
  18005. $42 = $37 & 1;
  18006. $43 = ($42|0)==(0);
  18007. if ($43) {
  18008. $$1207 = $$0206;
  18009. } else {
  18010. label = 22;
  18011. break L7;
  18012. }
  18013. }
  18014. $44 = (_stbi__get8($8)|0);
  18015. $45 = ($44<<24>>24)==(0);
  18016. if (!($45)) {
  18017. label = 24;
  18018. break L7;
  18019. }
  18020. $46 = (_stbi__get8($8)|0);
  18021. $47 = ($46<<24>>24)==(0);
  18022. if (!($47)) {
  18023. label = 26;
  18024. break L7;
  18025. }
  18026. $48 = (_stbi__get8($8)|0);
  18027. $49 = $48&255;
  18028. $50 = ($48&255)>(1);
  18029. if ($50) {
  18030. label = 28;
  18031. break L7;
  18032. }
  18033. $51 = HEAP32[$8>>2]|0;
  18034. $52 = ($51|0)==(0);
  18035. if ($52) {
  18036. label = 31;
  18037. break L7;
  18038. }
  18039. $53 = HEAP32[$16>>2]|0;
  18040. $54 = ($53|0)==(0);
  18041. if ($54) {
  18042. label = 31;
  18043. break L7;
  18044. }
  18045. $55 = ($$1207<<24>>24)==(0);
  18046. $56 = (1073741824 / ($51>>>0))&-1;
  18047. if (!($55)) {
  18048. HEAP32[$20>>2] = 1;
  18049. $63 = $56 >>> 2;
  18050. $64 = ($63>>>0)<($53>>>0);
  18051. if ($64) {
  18052. label = 37;
  18053. break L7;
  18054. } else {
  18055. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  18056. break;
  18057. }
  18058. }
  18059. $57 = $37 & 2;
  18060. $58 = $57 | 1;
  18061. $59 = $37 >>> 2;
  18062. $$lobit = $59 & 1;
  18063. $60 = (($58) + ($$lobit))|0;
  18064. HEAP32[$18>>2] = $60;
  18065. $61 = (($56>>>0) / ($60>>>0))&-1;
  18066. $62 = ($61>>>0)<($53>>>0);
  18067. if ($62) {
  18068. label = 34;
  18069. break L7;
  18070. }
  18071. if ($19) {
  18072. $$6$ph = 1;
  18073. break L7;
  18074. } else {
  18075. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18076. break;
  18077. }
  18078. }
  18079. $switch$split142D = ($25|0)<(1951551059);
  18080. if ($switch$split142D) {
  18081. switch ($25|0) {
  18082. case 1347179589: {
  18083. break;
  18084. }
  18085. default: {
  18086. label = 103;
  18087. break L9;
  18088. }
  18089. }
  18090. $65 = ($$0241|0)==(0);
  18091. if (!($65)) {
  18092. label = 39;
  18093. break L7;
  18094. }
  18095. $66 = HEAP32[$6>>2]|0;
  18096. $67 = ($66>>>0)>(768);
  18097. if ($67) {
  18098. label = 41;
  18099. break L7;
  18100. }
  18101. $68 = (($66>>>0) / 3)&-1;
  18102. $69 = ($68*3)|0;
  18103. $70 = ($69|0)==($66|0);
  18104. if (!($70)) {
  18105. label = 44;
  18106. break L7;
  18107. }
  18108. $71 = ($66>>>0)>(2);
  18109. if ($71) {
  18110. $$0226593 = 0;
  18111. } else {
  18112. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18113. break;
  18114. }
  18115. while(1) {
  18116. $72 = (_stbi__get8($8)|0);
  18117. $73 = $$0226593 << 2;
  18118. $74 = (($3) + ($73)|0);
  18119. HEAP8[$74>>0] = $72;
  18120. $75 = (_stbi__get8($8)|0);
  18121. $76 = $73 | 1;
  18122. $77 = (($3) + ($76)|0);
  18123. HEAP8[$77>>0] = $75;
  18124. $78 = (_stbi__get8($8)|0);
  18125. $79 = $73 | 2;
  18126. $80 = (($3) + ($79)|0);
  18127. HEAP8[$80>>0] = $78;
  18128. $81 = $73 | 3;
  18129. $82 = (($3) + ($81)|0);
  18130. HEAP8[$82>>0] = -1;
  18131. $83 = (($$0226593) + 1)|0;
  18132. $84 = ($83>>>0)<($68>>>0);
  18133. if ($84) {
  18134. $$0226593 = $83;
  18135. } else {
  18136. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18137. break L9;
  18138. }
  18139. }
  18140. }
  18141. switch ($25|0) {
  18142. case 1951551059: {
  18143. break;
  18144. }
  18145. default: {
  18146. label = 103;
  18147. break L9;
  18148. }
  18149. }
  18150. $85 = ($$0241|0)==(0);
  18151. if (!($85)) {
  18152. label = 47;
  18153. break L7;
  18154. }
  18155. $86 = HEAP32[$10>>2]|0;
  18156. $87 = ($86|0)==(0|0);
  18157. if (!($87)) {
  18158. label = 49;
  18159. break L7;
  18160. }
  18161. $88 = ($$0206<<24>>24)==(0);
  18162. if (!($88)) {
  18163. if ($23) {
  18164. label = 52;
  18165. break L7;
  18166. }
  18167. $90 = ($$0245|0)==(0);
  18168. if ($90) {
  18169. label = 54;
  18170. break L7;
  18171. }
  18172. $91 = HEAP32[$6>>2]|0;
  18173. $92 = ($91>>>0)>($$0245>>>0);
  18174. if ($92) {
  18175. label = 58;
  18176. break L7;
  18177. }
  18178. $93 = HEAP32[$6>>2]|0;
  18179. $94 = ($93|0)==(0);
  18180. if ($94) {
  18181. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  18182. break;
  18183. }
  18184. $95 = HEAP32[$6>>2]|0;
  18185. $$1227588 = 0;
  18186. while(1) {
  18187. $96 = (_stbi__get8($8)|0);
  18188. $97 = $$1227588 << 2;
  18189. $98 = $97 | 3;
  18190. $99 = (($3) + ($98)|0);
  18191. HEAP8[$99>>0] = $96;
  18192. $100 = (($$1227588) + 1)|0;
  18193. $101 = ($100>>>0)<($95>>>0);
  18194. if ($101) {
  18195. $$1227588 = $100;
  18196. } else {
  18197. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  18198. break L9;
  18199. }
  18200. }
  18201. }
  18202. $102 = HEAP32[$21>>2]|0;
  18203. $103 = $102 & 1;
  18204. $104 = ($103|0)==(0);
  18205. if ($104) {
  18206. label = 61;
  18207. break L7;
  18208. }
  18209. $105 = HEAP32[$6>>2]|0;
  18210. $106 = $102 << 1;
  18211. $107 = ($105|0)==($106|0);
  18212. if (!($107)) {
  18213. label = 63;
  18214. break L7;
  18215. }
  18216. $108 = HEAP32[$22>>2]|0;
  18217. $109 = ($108|0)==(16);
  18218. $110 = HEAP32[$21>>2]|0;
  18219. $111 = ($110|0)>(0);
  18220. if ($109) {
  18221. if ($111) {
  18222. $$0239591 = 0;
  18223. } else {
  18224. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18225. break;
  18226. }
  18227. while(1) {
  18228. $112 = (_stbi__get16be($8)|0);
  18229. $113 = $112&65535;
  18230. $114 = (($5) + ($$0239591<<1)|0);
  18231. HEAP16[$114>>1] = $113;
  18232. $115 = (($$0239591) + 1)|0;
  18233. $116 = HEAP32[$21>>2]|0;
  18234. $117 = ($115|0)<($116|0);
  18235. if ($117) {
  18236. $$0239591 = $115;
  18237. } else {
  18238. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18239. break;
  18240. }
  18241. }
  18242. } else {
  18243. if ($111) {
  18244. $$1240589 = 0;
  18245. } else {
  18246. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18247. break;
  18248. }
  18249. while(1) {
  18250. $118 = (_stbi__get16be($8)|0);
  18251. $119 = $118 & 255;
  18252. $120 = HEAP32[$22>>2]|0;
  18253. $121 = (10295 + ($120)|0);
  18254. $122 = HEAP8[$121>>0]|0;
  18255. $123 = $122&255;
  18256. $124 = Math_imul($123, $119)|0;
  18257. $125 = $124&255;
  18258. $126 = (($4) + ($$1240589)|0);
  18259. HEAP8[$126>>0] = $125;
  18260. $127 = (($$1240589) + 1)|0;
  18261. $128 = HEAP32[$21>>2]|0;
  18262. $129 = ($127|0)<($128|0);
  18263. if ($129) {
  18264. $$1240589 = $127;
  18265. } else {
  18266. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18267. break;
  18268. }
  18269. }
  18270. }
  18271. }
  18272. } while(0);
  18273. if ((label|0) == 103) {
  18274. label = 0;
  18275. $202 = ($$0241|0)==(0);
  18276. if (!($202)) {
  18277. label = 104;
  18278. break;
  18279. }
  18280. $203 = $25 & 536870912;
  18281. $204 = ($203|0)==(0);
  18282. if ($204) {
  18283. label = 106;
  18284. break;
  18285. }
  18286. $213 = HEAP32[$6>>2]|0;
  18287. _stbi__skip($8,$213);
  18288. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18289. }
  18290. (_stbi__get32be($8)|0);
  18291. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  18292. }
  18293. switch (label|0) {
  18294. case 7: {
  18295. _stbi__err(10069);
  18296. $$6$ph = 0;
  18297. break;
  18298. }
  18299. case 9: {
  18300. _stbi__err(10083);
  18301. $$6$ph = 0;
  18302. break;
  18303. }
  18304. case 11: {
  18305. _stbi__err(10096);
  18306. $$6$ph = 0;
  18307. break;
  18308. }
  18309. case 13: {
  18310. _stbi__err(10096);
  18311. $$6$ph = 0;
  18312. break;
  18313. }
  18314. case 15: {
  18315. _stbi__err(10106);
  18316. $$6$ph = 0;
  18317. break;
  18318. }
  18319. case 17: {
  18320. _stbi__err(10126);
  18321. $$6$ph = 0;
  18322. break;
  18323. }
  18324. case 20: {
  18325. _stbi__err(10126);
  18326. $$6$ph = 0;
  18327. break;
  18328. }
  18329. case 22: {
  18330. _stbi__err(10126);
  18331. $$6$ph = 0;
  18332. break;
  18333. }
  18334. case 24: {
  18335. _stbi__err(10136);
  18336. $$6$ph = 0;
  18337. break;
  18338. }
  18339. case 26: {
  18340. _stbi__err(10152);
  18341. $$6$ph = 0;
  18342. break;
  18343. }
  18344. case 28: {
  18345. _stbi__err(10170);
  18346. $$6$ph = 0;
  18347. break;
  18348. }
  18349. case 31: {
  18350. _stbi__err(10191);
  18351. $$6$ph = 0;
  18352. break;
  18353. }
  18354. case 34: {
  18355. _stbi__err(10096);
  18356. $$6$ph = 0;
  18357. break;
  18358. }
  18359. case 37: {
  18360. _stbi__err(10096);
  18361. $$6$ph = 0;
  18362. break;
  18363. }
  18364. case 39: {
  18365. _stbi__err(10205);
  18366. $$6$ph = 0;
  18367. break;
  18368. }
  18369. case 41: {
  18370. _stbi__err(10220);
  18371. $$6$ph = 0;
  18372. break;
  18373. }
  18374. case 44: {
  18375. _stbi__err(10220);
  18376. $$6$ph = 0;
  18377. break;
  18378. }
  18379. case 47: {
  18380. _stbi__err(10205);
  18381. $$6$ph = 0;
  18382. break;
  18383. }
  18384. case 49: {
  18385. _stbi__err(10233);
  18386. $$6$ph = 0;
  18387. break;
  18388. }
  18389. case 52: {
  18390. $89 = ((($8)) + 8|0);
  18391. HEAP32[$89>>2] = 4;
  18392. $$6$ph = 1;
  18393. break;
  18394. }
  18395. case 54: {
  18396. _stbi__err(10249);
  18397. $$6$ph = 0;
  18398. break;
  18399. }
  18400. case 58: {
  18401. _stbi__err(10266);
  18402. $$6$ph = 0;
  18403. break;
  18404. }
  18405. case 61: {
  18406. _stbi__err(10279);
  18407. $$6$ph = 0;
  18408. break;
  18409. }
  18410. case 63: {
  18411. _stbi__err(10266);
  18412. $$6$ph = 0;
  18413. break;
  18414. }
  18415. case 70: {
  18416. _stbi__err(10205);
  18417. $$6$ph = 0;
  18418. break;
  18419. }
  18420. case 72: {
  18421. _stbi__err(10304);
  18422. $$6$ph = 0;
  18423. break;
  18424. }
  18425. case 74: {
  18426. $133 = $$0206&255;
  18427. $134 = ((($8)) + 8|0);
  18428. HEAP32[$134>>2] = $133;
  18429. $$6$ph = 1;
  18430. break;
  18431. }
  18432. case 81: {
  18433. _stbi__err(9951);
  18434. $$6$ph = 0;
  18435. break;
  18436. }
  18437. case 83: {
  18438. _stbi__err(10312);
  18439. $$6$ph = 0;
  18440. break;
  18441. }
  18442. case 85: {
  18443. $156 = ($$0241|0)==(0);
  18444. do {
  18445. if ($156) {
  18446. $157 = ($1|0)==(0);
  18447. if ($157) {
  18448. $158 = HEAP32[$10>>2]|0;
  18449. $159 = ($158|0)==(0|0);
  18450. if ($159) {
  18451. _stbi__err(10322);
  18452. $$4 = 0;
  18453. break;
  18454. }
  18455. $160 = HEAP32[$8>>2]|0;
  18456. $161 = ((($0)) + 16|0);
  18457. $162 = HEAP32[$161>>2]|0;
  18458. $163 = Math_imul($162, $160)|0;
  18459. $164 = (($163) + 7)|0;
  18460. $165 = $164 >>> 3;
  18461. $166 = ((($8)) + 4|0);
  18462. $167 = HEAP32[$166>>2]|0;
  18463. $168 = ((($8)) + 8|0);
  18464. $169 = HEAP32[$168>>2]|0;
  18465. $170 = Math_imul($169, $167)|0;
  18466. $171 = Math_imul($170, $165)|0;
  18467. $172 = (($171) + ($167))|0;
  18468. HEAP32[$7>>2] = $172;
  18469. $173 = ($$0228|0)!=(0);
  18470. $174 = $173 ^ 1;
  18471. $175 = $174&1;
  18472. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  18473. HEAP32[$9>>2] = $176;
  18474. $177 = ($176|0)==(0|0);
  18475. if ($177) {
  18476. $$4 = 0;
  18477. } else {
  18478. $178 = HEAP32[$10>>2]|0;
  18479. _free($178);
  18480. HEAP32[$10>>2] = 0;
  18481. $179 = HEAP32[$168>>2]|0;
  18482. $180 = (($179) + 1)|0;
  18483. $notlhs = ($180|0)!=($2|0);
  18484. $notrhs = ($2|0)==(3);
  18485. $or$cond5$not = $notrhs | $notlhs;
  18486. $181 = ($$0206<<24>>24)!=(0);
  18487. $or$cond7 = $181 | $or$cond5$not;
  18488. $182 = ($$0211<<24>>24)==(0);
  18489. $or$cond248 = $182 & $or$cond7;
  18490. $$254 = $or$cond248 ? $179 : $180;
  18491. $183 = ((($8)) + 12|0);
  18492. HEAP32[$183>>2] = $$254;
  18493. $184 = HEAP32[$9>>2]|0;
  18494. $185 = HEAP32[$7>>2]|0;
  18495. $186 = HEAP32[$161>>2]|0;
  18496. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  18497. $188 = ($187|0)==(0);
  18498. if ($188) {
  18499. $$4 = 0;
  18500. } else {
  18501. do {
  18502. if (!($182)) {
  18503. $189 = HEAP32[$161>>2]|0;
  18504. $190 = ($189|0)==(16);
  18505. if ($190) {
  18506. $191 = HEAP32[$183>>2]|0;
  18507. _stbi__compute_transparency16($0,$5,$191);
  18508. break;
  18509. } else {
  18510. $192 = HEAP32[$183>>2]|0;
  18511. _stbi__compute_transparency($0,$4,$192);
  18512. break;
  18513. }
  18514. }
  18515. } while(0);
  18516. $193 = HEAP32[5271]|0;
  18517. $194 = ($193|0)!=(0);
  18518. $or$cond11 = $173 & $194;
  18519. if ($or$cond11) {
  18520. $195 = HEAP32[$183>>2]|0;
  18521. $196 = ($195|0)>(2);
  18522. if ($196) {
  18523. _stbi__de_iphone($0);
  18524. }
  18525. }
  18526. if ($181) {
  18527. $197 = $$0206&255;
  18528. HEAP32[$168>>2] = $197;
  18529. $198 = ($2|0)>(2);
  18530. $$ = $198 ? $2 : $197;
  18531. HEAP32[$183>>2] = $$;
  18532. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  18533. $200 = ($199|0)==(0);
  18534. if ($200) {
  18535. $$4 = 0;
  18536. break;
  18537. }
  18538. }
  18539. $201 = HEAP32[$9>>2]|0;
  18540. _free($201);
  18541. HEAP32[$9>>2] = 0;
  18542. $$4 = 1;
  18543. }
  18544. }
  18545. } else {
  18546. $$4 = 1;
  18547. }
  18548. } else {
  18549. _stbi__err(10205);
  18550. $$4 = 0;
  18551. }
  18552. } while(0);
  18553. $$6$ph = $$4;
  18554. break;
  18555. }
  18556. case 104: {
  18557. _stbi__err(10205);
  18558. $$6$ph = 0;
  18559. break;
  18560. }
  18561. case 106: {
  18562. $205 = $25 >>> 24;
  18563. $206 = $205&255;
  18564. HEAP8[10330] = $206;
  18565. $207 = HEAP32[$15>>2]|0;
  18566. $208 = $207 >>> 16;
  18567. $209 = $208&255;
  18568. HEAP8[(10331)>>0] = $209;
  18569. $210 = $207 >>> 8;
  18570. $211 = $210&255;
  18571. HEAP8[(10332)>>0] = $211;
  18572. $212 = $207&255;
  18573. HEAP8[(10333)>>0] = $212;
  18574. _stbi__err(10330);
  18575. $$6$ph = 0;
  18576. break;
  18577. }
  18578. }
  18579. $$7 = $$6$ph;
  18580. STACKTOP = sp;return ($$7|0);
  18581. }
  18582. function _stbi__convert_format($0,$1,$2,$3,$4) {
  18583. $0 = $0|0;
  18584. $1 = $1|0;
  18585. $2 = $2|0;
  18586. $3 = $3|0;
  18587. $4 = $4|0;
  18588. 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;
  18589. 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;
  18590. 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;
  18591. 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;
  18592. 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;
  18593. 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;
  18594. 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;
  18595. 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;
  18596. 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;
  18597. 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;
  18598. var sp = 0;
  18599. sp = STACKTOP;
  18600. $5 = ($2|0)==($1|0);
  18601. if ($5) {
  18602. $$0163 = $0;
  18603. return ($$0163|0);
  18604. }
  18605. $$off = (($2) + -1)|0;
  18606. $6 = ($$off>>>0)<(4);
  18607. if (!($6)) {
  18608. ___assert_fail((9992|0),(9896|0),1477,(10048|0));
  18609. // unreachable;
  18610. }
  18611. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  18612. $8 = ($7|0)==(0|0);
  18613. if ($8) {
  18614. _free($0);
  18615. _stbi__err(9951);
  18616. $$0163 = 0;
  18617. return ($$0163|0);
  18618. }
  18619. $9 = ($4|0)>(0);
  18620. L11: do {
  18621. if ($9) {
  18622. $10 = $1 << 3;
  18623. $11 = (($10) + ($2))|0;
  18624. $$0165254 = (($3) + -1)|0;
  18625. $12 = ($$0165254|0)>(-1);
  18626. $$1166249 = (($3) + -1)|0;
  18627. $13 = ($$1166249|0)>(-1);
  18628. $$2167244 = (($3) + -1)|0;
  18629. $14 = ($$2167244|0)>(-1);
  18630. $$3168239 = (($3) + -1)|0;
  18631. $15 = ($$3168239|0)>(-1);
  18632. $$4169234 = (($3) + -1)|0;
  18633. $16 = ($$4169234|0)>(-1);
  18634. $$5170229 = (($3) + -1)|0;
  18635. $17 = ($$5170229|0)>(-1);
  18636. $$6171224 = (($3) + -1)|0;
  18637. $18 = ($$6171224|0)>(-1);
  18638. $$7172219 = (($3) + -1)|0;
  18639. $19 = ($$7172219|0)>(-1);
  18640. $$8173214 = (($3) + -1)|0;
  18641. $20 = ($$8173214|0)>(-1);
  18642. $$9174209 = (($3) + -1)|0;
  18643. $21 = ($$9174209|0)>(-1);
  18644. $$10175204 = (($3) + -1)|0;
  18645. $22 = ($$10175204|0)>(-1);
  18646. $$11176200 = (($3) + -1)|0;
  18647. $23 = ($$11176200|0)>(-1);
  18648. $$0164259 = 0;
  18649. L13: while(1) {
  18650. $24 = Math_imul($$0164259, $3)|0;
  18651. $25 = Math_imul($24, $1)|0;
  18652. $26 = (($0) + ($25)|0);
  18653. $27 = Math_imul($24, $2)|0;
  18654. $28 = (($7) + ($27)|0);
  18655. do {
  18656. switch ($11|0) {
  18657. case 10: {
  18658. if ($12) {
  18659. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  18660. while(1) {
  18661. $29 = HEAP8[$$0151255>>0]|0;
  18662. HEAP8[$$0256>>0] = $29;
  18663. $30 = ((($$0256)) + 1|0);
  18664. HEAP8[$30>>0] = -1;
  18665. $31 = ((($$0151255)) + 1|0);
  18666. $32 = ((($$0256)) + 2|0);
  18667. $$0165 = (($$0165257) + -1)|0;
  18668. $33 = ($$0165|0)>(-1);
  18669. if ($33) {
  18670. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  18671. } else {
  18672. break;
  18673. }
  18674. }
  18675. }
  18676. break;
  18677. }
  18678. case 11: {
  18679. if ($13) {
  18680. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  18681. while(1) {
  18682. $34 = HEAP8[$$1152250>>0]|0;
  18683. $35 = ((($$1251)) + 2|0);
  18684. HEAP8[$35>>0] = $34;
  18685. $36 = ((($$1251)) + 1|0);
  18686. HEAP8[$36>>0] = $34;
  18687. HEAP8[$$1251>>0] = $34;
  18688. $37 = ((($$1152250)) + 1|0);
  18689. $38 = ((($$1251)) + 3|0);
  18690. $$1166 = (($$1166252) + -1)|0;
  18691. $39 = ($$1166|0)>(-1);
  18692. if ($39) {
  18693. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  18694. } else {
  18695. break;
  18696. }
  18697. }
  18698. }
  18699. break;
  18700. }
  18701. case 12: {
  18702. if ($14) {
  18703. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  18704. while(1) {
  18705. $40 = HEAP8[$$2153245>>0]|0;
  18706. $41 = ((($$2246)) + 2|0);
  18707. HEAP8[$41>>0] = $40;
  18708. $42 = ((($$2246)) + 1|0);
  18709. HEAP8[$42>>0] = $40;
  18710. HEAP8[$$2246>>0] = $40;
  18711. $43 = ((($$2246)) + 3|0);
  18712. HEAP8[$43>>0] = -1;
  18713. $44 = ((($$2153245)) + 1|0);
  18714. $45 = ((($$2246)) + 4|0);
  18715. $$2167 = (($$2167247) + -1)|0;
  18716. $46 = ($$2167|0)>(-1);
  18717. if ($46) {
  18718. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  18719. } else {
  18720. break;
  18721. }
  18722. }
  18723. }
  18724. break;
  18725. }
  18726. case 17: {
  18727. if ($15) {
  18728. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  18729. while(1) {
  18730. $47 = HEAP8[$$3154240>>0]|0;
  18731. HEAP8[$$3241>>0] = $47;
  18732. $48 = ((($$3154240)) + 2|0);
  18733. $49 = ((($$3241)) + 1|0);
  18734. $$3168 = (($$3168242) + -1)|0;
  18735. $50 = ($$3168|0)>(-1);
  18736. if ($50) {
  18737. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  18738. } else {
  18739. break;
  18740. }
  18741. }
  18742. }
  18743. break;
  18744. }
  18745. case 19: {
  18746. if ($16) {
  18747. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  18748. while(1) {
  18749. $51 = HEAP8[$$4155235>>0]|0;
  18750. $52 = ((($$4236)) + 2|0);
  18751. HEAP8[$52>>0] = $51;
  18752. $53 = ((($$4236)) + 1|0);
  18753. HEAP8[$53>>0] = $51;
  18754. HEAP8[$$4236>>0] = $51;
  18755. $54 = ((($$4155235)) + 2|0);
  18756. $55 = ((($$4236)) + 3|0);
  18757. $$4169 = (($$4169237) + -1)|0;
  18758. $56 = ($$4169|0)>(-1);
  18759. if ($56) {
  18760. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  18761. } else {
  18762. break;
  18763. }
  18764. }
  18765. }
  18766. break;
  18767. }
  18768. case 20: {
  18769. if ($17) {
  18770. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  18771. while(1) {
  18772. $57 = HEAP8[$$5156230>>0]|0;
  18773. $58 = ((($$5231)) + 2|0);
  18774. HEAP8[$58>>0] = $57;
  18775. $59 = ((($$5231)) + 1|0);
  18776. HEAP8[$59>>0] = $57;
  18777. HEAP8[$$5231>>0] = $57;
  18778. $60 = ((($$5156230)) + 1|0);
  18779. $61 = HEAP8[$60>>0]|0;
  18780. $62 = ((($$5231)) + 3|0);
  18781. HEAP8[$62>>0] = $61;
  18782. $63 = ((($$5156230)) + 2|0);
  18783. $64 = ((($$5231)) + 4|0);
  18784. $$5170 = (($$5170232) + -1)|0;
  18785. $65 = ($$5170|0)>(-1);
  18786. if ($65) {
  18787. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  18788. } else {
  18789. break;
  18790. }
  18791. }
  18792. }
  18793. break;
  18794. }
  18795. case 28: {
  18796. if ($18) {
  18797. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  18798. while(1) {
  18799. $66 = HEAP8[$$6157225>>0]|0;
  18800. HEAP8[$$6226>>0] = $66;
  18801. $67 = ((($$6157225)) + 1|0);
  18802. $68 = HEAP8[$67>>0]|0;
  18803. $69 = ((($$6226)) + 1|0);
  18804. HEAP8[$69>>0] = $68;
  18805. $70 = ((($$6157225)) + 2|0);
  18806. $71 = HEAP8[$70>>0]|0;
  18807. $72 = ((($$6226)) + 2|0);
  18808. HEAP8[$72>>0] = $71;
  18809. $73 = ((($$6226)) + 3|0);
  18810. HEAP8[$73>>0] = -1;
  18811. $74 = ((($$6157225)) + 3|0);
  18812. $75 = ((($$6226)) + 4|0);
  18813. $$6171 = (($$6171227) + -1)|0;
  18814. $76 = ($$6171|0)>(-1);
  18815. if ($76) {
  18816. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  18817. } else {
  18818. break;
  18819. }
  18820. }
  18821. }
  18822. break;
  18823. }
  18824. case 25: {
  18825. if ($19) {
  18826. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  18827. while(1) {
  18828. $77 = HEAP8[$$7158220>>0]|0;
  18829. $78 = $77&255;
  18830. $79 = ((($$7158220)) + 1|0);
  18831. $80 = HEAP8[$79>>0]|0;
  18832. $81 = $80&255;
  18833. $82 = ((($$7158220)) + 2|0);
  18834. $83 = HEAP8[$82>>0]|0;
  18835. $84 = $83&255;
  18836. $85 = (_stbi__compute_y($78,$81,$84)|0);
  18837. HEAP8[$$7221>>0] = $85;
  18838. $86 = ((($$7158220)) + 3|0);
  18839. $87 = ((($$7221)) + 1|0);
  18840. $$7172 = (($$7172222) + -1)|0;
  18841. $88 = ($$7172|0)>(-1);
  18842. if ($88) {
  18843. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  18844. } else {
  18845. break;
  18846. }
  18847. }
  18848. }
  18849. break;
  18850. }
  18851. case 26: {
  18852. if ($20) {
  18853. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  18854. while(1) {
  18855. $89 = HEAP8[$$8159215>>0]|0;
  18856. $90 = $89&255;
  18857. $91 = ((($$8159215)) + 1|0);
  18858. $92 = HEAP8[$91>>0]|0;
  18859. $93 = $92&255;
  18860. $94 = ((($$8159215)) + 2|0);
  18861. $95 = HEAP8[$94>>0]|0;
  18862. $96 = $95&255;
  18863. $97 = (_stbi__compute_y($90,$93,$96)|0);
  18864. HEAP8[$$8216>>0] = $97;
  18865. $98 = ((($$8216)) + 1|0);
  18866. HEAP8[$98>>0] = -1;
  18867. $99 = ((($$8159215)) + 3|0);
  18868. $100 = ((($$8216)) + 2|0);
  18869. $$8173 = (($$8173217) + -1)|0;
  18870. $101 = ($$8173|0)>(-1);
  18871. if ($101) {
  18872. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  18873. } else {
  18874. break;
  18875. }
  18876. }
  18877. }
  18878. break;
  18879. }
  18880. case 33: {
  18881. if ($21) {
  18882. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  18883. while(1) {
  18884. $102 = HEAP8[$$9160210>>0]|0;
  18885. $103 = $102&255;
  18886. $104 = ((($$9160210)) + 1|0);
  18887. $105 = HEAP8[$104>>0]|0;
  18888. $106 = $105&255;
  18889. $107 = ((($$9160210)) + 2|0);
  18890. $108 = HEAP8[$107>>0]|0;
  18891. $109 = $108&255;
  18892. $110 = (_stbi__compute_y($103,$106,$109)|0);
  18893. HEAP8[$$9211>>0] = $110;
  18894. $111 = ((($$9160210)) + 4|0);
  18895. $112 = ((($$9211)) + 1|0);
  18896. $$9174 = (($$9174212) + -1)|0;
  18897. $113 = ($$9174|0)>(-1);
  18898. if ($113) {
  18899. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  18900. } else {
  18901. break;
  18902. }
  18903. }
  18904. }
  18905. break;
  18906. }
  18907. case 34: {
  18908. if ($22) {
  18909. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  18910. while(1) {
  18911. $114 = HEAP8[$$10161205>>0]|0;
  18912. $115 = $114&255;
  18913. $116 = ((($$10161205)) + 1|0);
  18914. $117 = HEAP8[$116>>0]|0;
  18915. $118 = $117&255;
  18916. $119 = ((($$10161205)) + 2|0);
  18917. $120 = HEAP8[$119>>0]|0;
  18918. $121 = $120&255;
  18919. $122 = (_stbi__compute_y($115,$118,$121)|0);
  18920. HEAP8[$$10206>>0] = $122;
  18921. $123 = ((($$10161205)) + 3|0);
  18922. $124 = HEAP8[$123>>0]|0;
  18923. $125 = ((($$10206)) + 1|0);
  18924. HEAP8[$125>>0] = $124;
  18925. $126 = ((($$10161205)) + 4|0);
  18926. $127 = ((($$10206)) + 2|0);
  18927. $$10175 = (($$10175207) + -1)|0;
  18928. $128 = ($$10175|0)>(-1);
  18929. if ($128) {
  18930. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  18931. } else {
  18932. break;
  18933. }
  18934. }
  18935. }
  18936. break;
  18937. }
  18938. case 35: {
  18939. if ($23) {
  18940. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  18941. while(1) {
  18942. $129 = HEAP8[$$11162201>>0]|0;
  18943. HEAP8[$$11202>>0] = $129;
  18944. $130 = ((($$11162201)) + 1|0);
  18945. $131 = HEAP8[$130>>0]|0;
  18946. $132 = ((($$11202)) + 1|0);
  18947. HEAP8[$132>>0] = $131;
  18948. $133 = ((($$11162201)) + 2|0);
  18949. $134 = HEAP8[$133>>0]|0;
  18950. $135 = ((($$11202)) + 2|0);
  18951. HEAP8[$135>>0] = $134;
  18952. $136 = ((($$11162201)) + 4|0);
  18953. $137 = ((($$11202)) + 3|0);
  18954. $$11176 = (($$11176203) + -1)|0;
  18955. $138 = ($$11176|0)>(-1);
  18956. if ($138) {
  18957. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  18958. } else {
  18959. break;
  18960. }
  18961. }
  18962. }
  18963. break;
  18964. }
  18965. default: {
  18966. break L13;
  18967. }
  18968. }
  18969. } while(0);
  18970. $139 = (($$0164259) + 1)|0;
  18971. $140 = ($139|0)<($4|0);
  18972. if ($140) {
  18973. $$0164259 = $139;
  18974. } else {
  18975. break L11;
  18976. }
  18977. }
  18978. ___assert_fail((10046|0),(9896|0),1506,(10048|0));
  18979. // unreachable;
  18980. }
  18981. } while(0);
  18982. _free($0);
  18983. $$0163 = $7;
  18984. return ($$0163|0);
  18985. }
  18986. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  18987. $0 = $0|0;
  18988. $1 = $1|0;
  18989. $2 = $2|0;
  18990. $3 = $3|0;
  18991. $4 = $4|0;
  18992. 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;
  18993. 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;
  18994. 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;
  18995. 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;
  18996. 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;
  18997. 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;
  18998. 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;
  18999. 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;
  19000. 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;
  19001. 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;
  19002. var $98 = 0, $99 = 0, label = 0, sp = 0;
  19003. sp = STACKTOP;
  19004. $5 = ($2|0)==($1|0);
  19005. if ($5) {
  19006. $$0163 = $0;
  19007. return ($$0163|0);
  19008. }
  19009. $$off = (($2) + -1)|0;
  19010. $6 = ($$off>>>0)<(4);
  19011. if (!($6)) {
  19012. ___assert_fail((9992|0),(9896|0),1526,(10023|0));
  19013. // unreachable;
  19014. }
  19015. $7 = $2 << 1;
  19016. $8 = Math_imul($7, $3)|0;
  19017. $9 = Math_imul($8, $4)|0;
  19018. $10 = (_stbi__malloc($9)|0);
  19019. $11 = ($10|0)==(0|0);
  19020. if ($11) {
  19021. _free($0);
  19022. _stbi__err(9951);
  19023. $$0163 = 0;
  19024. return ($$0163|0);
  19025. }
  19026. $12 = ($4|0)>(0);
  19027. L11: do {
  19028. if ($12) {
  19029. $13 = $1 << 3;
  19030. $14 = (($13) + ($2))|0;
  19031. $$0165254 = (($3) + -1)|0;
  19032. $15 = ($$0165254|0)>(-1);
  19033. $$1166249 = (($3) + -1)|0;
  19034. $16 = ($$1166249|0)>(-1);
  19035. $$2167244 = (($3) + -1)|0;
  19036. $17 = ($$2167244|0)>(-1);
  19037. $$3168239 = (($3) + -1)|0;
  19038. $18 = ($$3168239|0)>(-1);
  19039. $$4169234 = (($3) + -1)|0;
  19040. $19 = ($$4169234|0)>(-1);
  19041. $$5170229 = (($3) + -1)|0;
  19042. $20 = ($$5170229|0)>(-1);
  19043. $$6171224 = (($3) + -1)|0;
  19044. $21 = ($$6171224|0)>(-1);
  19045. $$7172219 = (($3) + -1)|0;
  19046. $22 = ($$7172219|0)>(-1);
  19047. $$8173214 = (($3) + -1)|0;
  19048. $23 = ($$8173214|0)>(-1);
  19049. $$9174209 = (($3) + -1)|0;
  19050. $24 = ($$9174209|0)>(-1);
  19051. $$10175204 = (($3) + -1)|0;
  19052. $25 = ($$10175204|0)>(-1);
  19053. $$11176200 = (($3) + -1)|0;
  19054. $26 = ($$11176200|0)>(-1);
  19055. $$0164259 = 0;
  19056. L13: while(1) {
  19057. $27 = Math_imul($$0164259, $3)|0;
  19058. $28 = Math_imul($27, $1)|0;
  19059. $29 = (($0) + ($28<<1)|0);
  19060. $30 = Math_imul($27, $2)|0;
  19061. $31 = (($10) + ($30<<1)|0);
  19062. do {
  19063. switch ($14|0) {
  19064. case 10: {
  19065. if ($15) {
  19066. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  19067. while(1) {
  19068. $32 = HEAP16[$$0151255>>1]|0;
  19069. HEAP16[$$0256>>1] = $32;
  19070. $33 = ((($$0256)) + 2|0);
  19071. HEAP16[$33>>1] = -1;
  19072. $34 = ((($$0151255)) + 2|0);
  19073. $35 = ((($$0256)) + 4|0);
  19074. $$0165 = (($$0165257) + -1)|0;
  19075. $36 = ($$0165|0)>(-1);
  19076. if ($36) {
  19077. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  19078. } else {
  19079. break;
  19080. }
  19081. }
  19082. }
  19083. break;
  19084. }
  19085. case 11: {
  19086. if ($16) {
  19087. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  19088. while(1) {
  19089. $37 = HEAP16[$$1152250>>1]|0;
  19090. $38 = ((($$1251)) + 4|0);
  19091. HEAP16[$38>>1] = $37;
  19092. $39 = ((($$1251)) + 2|0);
  19093. HEAP16[$39>>1] = $37;
  19094. HEAP16[$$1251>>1] = $37;
  19095. $40 = ((($$1152250)) + 2|0);
  19096. $41 = ((($$1251)) + 6|0);
  19097. $$1166 = (($$1166252) + -1)|0;
  19098. $42 = ($$1166|0)>(-1);
  19099. if ($42) {
  19100. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  19101. } else {
  19102. break;
  19103. }
  19104. }
  19105. }
  19106. break;
  19107. }
  19108. case 12: {
  19109. if ($17) {
  19110. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  19111. while(1) {
  19112. $43 = HEAP16[$$2153245>>1]|0;
  19113. $44 = ((($$2246)) + 4|0);
  19114. HEAP16[$44>>1] = $43;
  19115. $45 = ((($$2246)) + 2|0);
  19116. HEAP16[$45>>1] = $43;
  19117. HEAP16[$$2246>>1] = $43;
  19118. $46 = ((($$2246)) + 6|0);
  19119. HEAP16[$46>>1] = -1;
  19120. $47 = ((($$2153245)) + 2|0);
  19121. $48 = ((($$2246)) + 8|0);
  19122. $$2167 = (($$2167247) + -1)|0;
  19123. $49 = ($$2167|0)>(-1);
  19124. if ($49) {
  19125. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  19126. } else {
  19127. break;
  19128. }
  19129. }
  19130. }
  19131. break;
  19132. }
  19133. case 17: {
  19134. if ($18) {
  19135. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  19136. while(1) {
  19137. $50 = HEAP16[$$3154240>>1]|0;
  19138. HEAP16[$$3241>>1] = $50;
  19139. $51 = ((($$3154240)) + 4|0);
  19140. $52 = ((($$3241)) + 2|0);
  19141. $$3168 = (($$3168242) + -1)|0;
  19142. $53 = ($$3168|0)>(-1);
  19143. if ($53) {
  19144. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  19145. } else {
  19146. break;
  19147. }
  19148. }
  19149. }
  19150. break;
  19151. }
  19152. case 19: {
  19153. if ($19) {
  19154. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  19155. while(1) {
  19156. $54 = HEAP16[$$4155235>>1]|0;
  19157. $55 = ((($$4236)) + 4|0);
  19158. HEAP16[$55>>1] = $54;
  19159. $56 = ((($$4236)) + 2|0);
  19160. HEAP16[$56>>1] = $54;
  19161. HEAP16[$$4236>>1] = $54;
  19162. $57 = ((($$4155235)) + 4|0);
  19163. $58 = ((($$4236)) + 6|0);
  19164. $$4169 = (($$4169237) + -1)|0;
  19165. $59 = ($$4169|0)>(-1);
  19166. if ($59) {
  19167. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  19168. } else {
  19169. break;
  19170. }
  19171. }
  19172. }
  19173. break;
  19174. }
  19175. case 20: {
  19176. if ($20) {
  19177. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  19178. while(1) {
  19179. $60 = HEAP16[$$5156230>>1]|0;
  19180. $61 = ((($$5231)) + 4|0);
  19181. HEAP16[$61>>1] = $60;
  19182. $62 = ((($$5231)) + 2|0);
  19183. HEAP16[$62>>1] = $60;
  19184. HEAP16[$$5231>>1] = $60;
  19185. $63 = ((($$5156230)) + 2|0);
  19186. $64 = HEAP16[$63>>1]|0;
  19187. $65 = ((($$5231)) + 6|0);
  19188. HEAP16[$65>>1] = $64;
  19189. $66 = ((($$5156230)) + 4|0);
  19190. $67 = ((($$5231)) + 8|0);
  19191. $$5170 = (($$5170232) + -1)|0;
  19192. $68 = ($$5170|0)>(-1);
  19193. if ($68) {
  19194. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  19195. } else {
  19196. break;
  19197. }
  19198. }
  19199. }
  19200. break;
  19201. }
  19202. case 28: {
  19203. if ($21) {
  19204. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  19205. while(1) {
  19206. $69 = HEAP16[$$6157225>>1]|0;
  19207. HEAP16[$$6226>>1] = $69;
  19208. $70 = ((($$6157225)) + 2|0);
  19209. $71 = HEAP16[$70>>1]|0;
  19210. $72 = ((($$6226)) + 2|0);
  19211. HEAP16[$72>>1] = $71;
  19212. $73 = ((($$6157225)) + 4|0);
  19213. $74 = HEAP16[$73>>1]|0;
  19214. $75 = ((($$6226)) + 4|0);
  19215. HEAP16[$75>>1] = $74;
  19216. $76 = ((($$6226)) + 6|0);
  19217. HEAP16[$76>>1] = -1;
  19218. $77 = ((($$6157225)) + 6|0);
  19219. $78 = ((($$6226)) + 8|0);
  19220. $$6171 = (($$6171227) + -1)|0;
  19221. $79 = ($$6171|0)>(-1);
  19222. if ($79) {
  19223. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  19224. } else {
  19225. break;
  19226. }
  19227. }
  19228. }
  19229. break;
  19230. }
  19231. case 25: {
  19232. if ($22) {
  19233. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  19234. while(1) {
  19235. $80 = HEAP16[$$7158220>>1]|0;
  19236. $81 = $80&65535;
  19237. $82 = ((($$7158220)) + 2|0);
  19238. $83 = HEAP16[$82>>1]|0;
  19239. $84 = $83&65535;
  19240. $85 = ((($$7158220)) + 4|0);
  19241. $86 = HEAP16[$85>>1]|0;
  19242. $87 = $86&65535;
  19243. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  19244. HEAP16[$$7221>>1] = $88;
  19245. $89 = ((($$7158220)) + 6|0);
  19246. $90 = ((($$7221)) + 2|0);
  19247. $$7172 = (($$7172222) + -1)|0;
  19248. $91 = ($$7172|0)>(-1);
  19249. if ($91) {
  19250. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  19251. } else {
  19252. break;
  19253. }
  19254. }
  19255. }
  19256. break;
  19257. }
  19258. case 26: {
  19259. if ($23) {
  19260. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  19261. while(1) {
  19262. $92 = HEAP16[$$8159215>>1]|0;
  19263. $93 = $92&65535;
  19264. $94 = ((($$8159215)) + 2|0);
  19265. $95 = HEAP16[$94>>1]|0;
  19266. $96 = $95&65535;
  19267. $97 = ((($$8159215)) + 4|0);
  19268. $98 = HEAP16[$97>>1]|0;
  19269. $99 = $98&65535;
  19270. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  19271. HEAP16[$$8216>>1] = $100;
  19272. $101 = ((($$8216)) + 2|0);
  19273. HEAP16[$101>>1] = -1;
  19274. $102 = ((($$8159215)) + 6|0);
  19275. $103 = ((($$8216)) + 4|0);
  19276. $$8173 = (($$8173217) + -1)|0;
  19277. $104 = ($$8173|0)>(-1);
  19278. if ($104) {
  19279. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  19280. } else {
  19281. break;
  19282. }
  19283. }
  19284. }
  19285. break;
  19286. }
  19287. case 33: {
  19288. if ($24) {
  19289. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  19290. while(1) {
  19291. $105 = HEAP16[$$9160210>>1]|0;
  19292. $106 = $105&65535;
  19293. $107 = ((($$9160210)) + 2|0);
  19294. $108 = HEAP16[$107>>1]|0;
  19295. $109 = $108&65535;
  19296. $110 = ((($$9160210)) + 4|0);
  19297. $111 = HEAP16[$110>>1]|0;
  19298. $112 = $111&65535;
  19299. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  19300. HEAP16[$$9211>>1] = $113;
  19301. $114 = ((($$9160210)) + 8|0);
  19302. $115 = ((($$9211)) + 2|0);
  19303. $$9174 = (($$9174212) + -1)|0;
  19304. $116 = ($$9174|0)>(-1);
  19305. if ($116) {
  19306. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  19307. } else {
  19308. break;
  19309. }
  19310. }
  19311. }
  19312. break;
  19313. }
  19314. case 34: {
  19315. if ($25) {
  19316. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  19317. while(1) {
  19318. $117 = HEAP16[$$10161205>>1]|0;
  19319. $118 = $117&65535;
  19320. $119 = ((($$10161205)) + 2|0);
  19321. $120 = HEAP16[$119>>1]|0;
  19322. $121 = $120&65535;
  19323. $122 = ((($$10161205)) + 4|0);
  19324. $123 = HEAP16[$122>>1]|0;
  19325. $124 = $123&65535;
  19326. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  19327. HEAP16[$$10206>>1] = $125;
  19328. $126 = ((($$10161205)) + 6|0);
  19329. $127 = HEAP16[$126>>1]|0;
  19330. $128 = ((($$10206)) + 2|0);
  19331. HEAP16[$128>>1] = $127;
  19332. $129 = ((($$10161205)) + 8|0);
  19333. $130 = ((($$10206)) + 4|0);
  19334. $$10175 = (($$10175207) + -1)|0;
  19335. $131 = ($$10175|0)>(-1);
  19336. if ($131) {
  19337. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  19338. } else {
  19339. break;
  19340. }
  19341. }
  19342. }
  19343. break;
  19344. }
  19345. case 35: {
  19346. if ($26) {
  19347. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  19348. while(1) {
  19349. $132 = HEAP16[$$11162201>>1]|0;
  19350. HEAP16[$$11202>>1] = $132;
  19351. $133 = ((($$11162201)) + 2|0);
  19352. $134 = HEAP16[$133>>1]|0;
  19353. $135 = ((($$11202)) + 2|0);
  19354. HEAP16[$135>>1] = $134;
  19355. $136 = ((($$11162201)) + 4|0);
  19356. $137 = HEAP16[$136>>1]|0;
  19357. $138 = ((($$11202)) + 4|0);
  19358. HEAP16[$138>>1] = $137;
  19359. $139 = ((($$11162201)) + 8|0);
  19360. $140 = ((($$11202)) + 6|0);
  19361. $$11176 = (($$11176203) + -1)|0;
  19362. $141 = ($$11176|0)>(-1);
  19363. if ($141) {
  19364. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  19365. } else {
  19366. break;
  19367. }
  19368. }
  19369. }
  19370. break;
  19371. }
  19372. default: {
  19373. break L13;
  19374. }
  19375. }
  19376. } while(0);
  19377. $142 = (($$0164259) + 1)|0;
  19378. $143 = ($142|0)<($4|0);
  19379. if ($143) {
  19380. $$0164259 = $142;
  19381. } else {
  19382. break L11;
  19383. }
  19384. }
  19385. ___assert_fail((10046|0),(9896|0),1555,(10023|0));
  19386. // unreachable;
  19387. }
  19388. } while(0);
  19389. _free($0);
  19390. $$0163 = $10;
  19391. return ($$0163|0);
  19392. }
  19393. function _stbi__compute_y_16($0,$1,$2) {
  19394. $0 = $0|0;
  19395. $1 = $1|0;
  19396. $2 = $2|0;
  19397. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19398. sp = STACKTOP;
  19399. $3 = ($0*77)|0;
  19400. $4 = ($1*150)|0;
  19401. $5 = (($4) + ($3))|0;
  19402. $6 = ($2*29)|0;
  19403. $7 = (($5) + ($6))|0;
  19404. $8 = $7 >>> 8;
  19405. $9 = $8&65535;
  19406. return ($9|0);
  19407. }
  19408. function _stbi__malloc_mad3($0,$1,$2) {
  19409. $0 = $0|0;
  19410. $1 = $1|0;
  19411. $2 = $2|0;
  19412. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  19413. sp = STACKTOP;
  19414. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  19415. $4 = ($3|0)==(0);
  19416. if ($4) {
  19417. $$0 = 0;
  19418. return ($$0|0);
  19419. }
  19420. $5 = Math_imul($1, $0)|0;
  19421. $6 = Math_imul($5, $2)|0;
  19422. $7 = (_stbi__malloc($6)|0);
  19423. $$0 = $7;
  19424. return ($$0|0);
  19425. }
  19426. function _stbi__compute_y($0,$1,$2) {
  19427. $0 = $0|0;
  19428. $1 = $1|0;
  19429. $2 = $2|0;
  19430. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19431. sp = STACKTOP;
  19432. $3 = ($0*77)|0;
  19433. $4 = ($1*150)|0;
  19434. $5 = (($4) + ($3))|0;
  19435. $6 = ($2*29)|0;
  19436. $7 = (($5) + ($6))|0;
  19437. $8 = $7 >>> 8;
  19438. $9 = $8&255;
  19439. return ($9|0);
  19440. }
  19441. function _stbi__mad3sizes_valid($0,$1,$2) {
  19442. $0 = $0|0;
  19443. $1 = $1|0;
  19444. $2 = $2|0;
  19445. 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;
  19446. sp = STACKTOP;
  19447. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  19448. $4 = ($3|0)==(0);
  19449. if ($4) {
  19450. $12 = 0;
  19451. } else {
  19452. $5 = Math_imul($1, $0)|0;
  19453. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  19454. $7 = ($6|0)==(0);
  19455. if ($7) {
  19456. $12 = 0;
  19457. } else {
  19458. $8 = Math_imul($5, $2)|0;
  19459. $9 = (_stbi__addsizes_valid($8)|0);
  19460. $10 = ($9|0)!=(0);
  19461. $12 = $10;
  19462. }
  19463. }
  19464. $11 = $12&1;
  19465. return ($11|0);
  19466. }
  19467. function _stbi__mul2sizes_valid($0,$1) {
  19468. $0 = $0|0;
  19469. $1 = $1|0;
  19470. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  19471. sp = STACKTOP;
  19472. $2 = $1 | $0;
  19473. $3 = ($2|0)<(0);
  19474. if ($3) {
  19475. $$0 = 0;
  19476. } else {
  19477. $4 = ($1|0)==(0);
  19478. if ($4) {
  19479. $$0 = 1;
  19480. } else {
  19481. $5 = (2147483647 / ($1|0))&-1;
  19482. $6 = ($5|0)>=($0|0);
  19483. $7 = $6&1;
  19484. $$0 = $7;
  19485. }
  19486. }
  19487. return ($$0|0);
  19488. }
  19489. function _stbi__addsizes_valid($0) {
  19490. $0 = $0|0;
  19491. var label = 0, sp = 0;
  19492. sp = STACKTOP;
  19493. return 1;
  19494. }
  19495. function _stbi__check_png_header($0) {
  19496. $0 = $0|0;
  19497. 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;
  19498. sp = STACKTOP;
  19499. $1 = (_stbi__get8($0)|0);
  19500. $2 = ($1<<24>>24)==(-119);
  19501. if ($2) {
  19502. $3 = (_stbi__get8($0)|0);
  19503. $4 = ($3<<24>>24)==(80);
  19504. if ($4) {
  19505. $5 = (_stbi__get8($0)|0);
  19506. $6 = ($5<<24>>24)==(78);
  19507. if ($6) {
  19508. $7 = (_stbi__get8($0)|0);
  19509. $8 = ($7<<24>>24)==(71);
  19510. if ($8) {
  19511. $9 = (_stbi__get8($0)|0);
  19512. $10 = ($9<<24>>24)==(13);
  19513. if ($10) {
  19514. $11 = (_stbi__get8($0)|0);
  19515. $12 = ($11<<24>>24)==(10);
  19516. if ($12) {
  19517. $13 = (_stbi__get8($0)|0);
  19518. $14 = ($13<<24>>24)==(26);
  19519. if ($14) {
  19520. $15 = (_stbi__get8($0)|0);
  19521. $16 = ($15<<24>>24)==(10);
  19522. if ($16) {
  19523. $$05 = 1;
  19524. return ($$05|0);
  19525. }
  19526. }
  19527. }
  19528. }
  19529. }
  19530. }
  19531. }
  19532. }
  19533. _stbi__err(11307);
  19534. $$05 = 0;
  19535. return ($$05|0);
  19536. }
  19537. function _stbi__get_chunk_header($0,$1) {
  19538. $0 = $0|0;
  19539. $1 = $1|0;
  19540. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  19541. sp = STACKTOP;
  19542. $2 = (_stbi__get32be($1)|0);
  19543. $3 = (_stbi__get32be($1)|0);
  19544. HEAP32[$0>>2] = $2;
  19545. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  19546. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  19547. return;
  19548. }
  19549. function _stbi__skip($0,$1) {
  19550. $0 = $0|0;
  19551. $1 = $1|0;
  19552. 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;
  19553. var $8 = 0, $9 = 0, label = 0, sp = 0;
  19554. sp = STACKTOP;
  19555. $2 = ($1|0)<(0);
  19556. if ($2) {
  19557. $3 = ((($0)) + 172|0);
  19558. $4 = HEAP32[$3>>2]|0;
  19559. $5 = ((($0)) + 168|0);
  19560. HEAP32[$5>>2] = $4;
  19561. return;
  19562. }
  19563. $6 = ((($0)) + 16|0);
  19564. $7 = HEAP32[$6>>2]|0;
  19565. $8 = ($7|0)==(0|0);
  19566. if (!($8)) {
  19567. $9 = ((($0)) + 172|0);
  19568. $10 = HEAP32[$9>>2]|0;
  19569. $11 = ((($0)) + 168|0);
  19570. $12 = HEAP32[$11>>2]|0;
  19571. $13 = $10;
  19572. $14 = (($13) - ($12))|0;
  19573. $15 = ($14|0)<($1|0);
  19574. if ($15) {
  19575. HEAP32[$11>>2] = $10;
  19576. $16 = ((($0)) + 20|0);
  19577. $17 = HEAP32[$16>>2]|0;
  19578. $18 = ((($0)) + 28|0);
  19579. $19 = HEAP32[$18>>2]|0;
  19580. $20 = (($1) - ($14))|0;
  19581. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  19582. return;
  19583. }
  19584. }
  19585. $21 = ((($0)) + 168|0);
  19586. $22 = HEAP32[$21>>2]|0;
  19587. $23 = (($22) + ($1)|0);
  19588. HEAP32[$21>>2] = $23;
  19589. return;
  19590. }
  19591. function _stbi__get32be($0) {
  19592. $0 = $0|0;
  19593. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  19594. sp = STACKTOP;
  19595. $1 = (_stbi__get16be($0)|0);
  19596. $2 = $1 << 16;
  19597. $3 = (_stbi__get16be($0)|0);
  19598. $4 = (($2) + ($3))|0;
  19599. return ($4|0);
  19600. }
  19601. function _stbi__get8($0) {
  19602. $0 = $0|0;
  19603. 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;
  19604. sp = STACKTOP;
  19605. $1 = ((($0)) + 168|0);
  19606. $2 = HEAP32[$1>>2]|0;
  19607. $3 = ((($0)) + 172|0);
  19608. $4 = HEAP32[$3>>2]|0;
  19609. $5 = ($2>>>0)<($4>>>0);
  19610. do {
  19611. if ($5) {
  19612. $$sink6 = $2;
  19613. } else {
  19614. $6 = ((($0)) + 32|0);
  19615. $7 = HEAP32[$6>>2]|0;
  19616. $8 = ($7|0)==(0);
  19617. if ($8) {
  19618. $$0 = 0;
  19619. return ($$0|0);
  19620. } else {
  19621. _stbi__refill_buffer($0);
  19622. $9 = HEAP32[$1>>2]|0;
  19623. $$sink6 = $9;
  19624. break;
  19625. }
  19626. }
  19627. } while(0);
  19628. $10 = ((($$sink6)) + 1|0);
  19629. HEAP32[$1>>2] = $10;
  19630. $11 = HEAP8[$$sink6>>0]|0;
  19631. $$0 = $11;
  19632. return ($$0|0);
  19633. }
  19634. function _stbi__get16be($0) {
  19635. $0 = $0|0;
  19636. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  19637. sp = STACKTOP;
  19638. $1 = (_stbi__get8($0)|0);
  19639. $2 = $1&255;
  19640. $3 = $2 << 8;
  19641. $4 = (_stbi__get8($0)|0);
  19642. $5 = $4&255;
  19643. $6 = $3 | $5;
  19644. return ($6|0);
  19645. }
  19646. function _stbi__getn($0,$1,$2) {
  19647. $0 = $0|0;
  19648. $1 = $1|0;
  19649. $2 = $2|0;
  19650. 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;
  19651. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19652. sp = STACKTOP;
  19653. $3 = ((($0)) + 16|0);
  19654. $4 = HEAP32[$3>>2]|0;
  19655. $5 = ($4|0)==(0|0);
  19656. if (!($5)) {
  19657. $6 = ((($0)) + 172|0);
  19658. $7 = HEAP32[$6>>2]|0;
  19659. $8 = ((($0)) + 168|0);
  19660. $9 = HEAP32[$8>>2]|0;
  19661. $10 = $9;
  19662. $11 = (($7) - ($10))|0;
  19663. $12 = ($11|0)<($2|0);
  19664. if ($12) {
  19665. _memcpy(($1|0),($9|0),($11|0))|0;
  19666. $13 = HEAP32[$3>>2]|0;
  19667. $14 = ((($0)) + 28|0);
  19668. $15 = HEAP32[$14>>2]|0;
  19669. $16 = (($1) + ($11)|0);
  19670. $17 = (($2) - ($11))|0;
  19671. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  19672. $19 = ($18|0)==($17|0);
  19673. $20 = $19&1;
  19674. $21 = HEAP32[$6>>2]|0;
  19675. HEAP32[$8>>2] = $21;
  19676. $$1 = $20;
  19677. return ($$1|0);
  19678. }
  19679. }
  19680. $22 = ((($0)) + 168|0);
  19681. $23 = HEAP32[$22>>2]|0;
  19682. $24 = (($23) + ($2)|0);
  19683. $25 = ((($0)) + 172|0);
  19684. $26 = HEAP32[$25>>2]|0;
  19685. $27 = ($24>>>0)>($26>>>0);
  19686. if ($27) {
  19687. $$1 = 0;
  19688. return ($$1|0);
  19689. }
  19690. _memcpy(($1|0),($23|0),($2|0))|0;
  19691. $28 = HEAP32[$22>>2]|0;
  19692. $29 = (($28) + ($2)|0);
  19693. HEAP32[$22>>2] = $29;
  19694. $$1 = 1;
  19695. return ($$1|0);
  19696. }
  19697. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  19698. $0 = $0|0;
  19699. $1 = $1|0;
  19700. $2 = $2|0;
  19701. $3 = $3|0;
  19702. $4 = $4|0;
  19703. 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;
  19704. sp = STACKTOP;
  19705. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  19706. $5 = sp;
  19707. $6 = (_stbi__malloc($2)|0);
  19708. $7 = ($6|0)==(0|0);
  19709. do {
  19710. if ($7) {
  19711. $$0 = 0;
  19712. } else {
  19713. HEAP32[$5>>2] = $0;
  19714. $8 = (($0) + ($1)|0);
  19715. $9 = ((($5)) + 4|0);
  19716. HEAP32[$9>>2] = $8;
  19717. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  19718. $11 = ($10|0)==(0);
  19719. $12 = ((($5)) + 20|0);
  19720. $13 = HEAP32[$12>>2]|0;
  19721. if ($11) {
  19722. _free($13);
  19723. $$0 = 0;
  19724. break;
  19725. }
  19726. $14 = ($3|0)==(0|0);
  19727. if ($14) {
  19728. $$0 = $13;
  19729. } else {
  19730. $15 = ((($5)) + 16|0);
  19731. $16 = HEAP32[$15>>2]|0;
  19732. $17 = $13;
  19733. $18 = (($16) - ($17))|0;
  19734. HEAP32[$3>>2] = $18;
  19735. $$0 = $13;
  19736. }
  19737. }
  19738. } while(0);
  19739. STACKTOP = sp;return ($$0|0);
  19740. }
  19741. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  19742. $0 = $0|0;
  19743. $1 = $1|0;
  19744. $2 = $2|0;
  19745. $3 = $3|0;
  19746. $4 = $4|0;
  19747. $5 = $5|0;
  19748. $6 = $6|0;
  19749. 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;
  19750. 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;
  19751. 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;
  19752. 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;
  19753. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  19754. sp = STACKTOP;
  19755. $7 = ($4|0)==(16);
  19756. $8 = $7 ? 2 : 1;
  19757. $9 = Math_imul($8, $3)|0;
  19758. $10 = ($6|0)==(0);
  19759. $11 = HEAP32[$0>>2]|0;
  19760. $12 = HEAP32[$11>>2]|0;
  19761. $13 = ((($11)) + 4|0);
  19762. $14 = HEAP32[$13>>2]|0;
  19763. if ($10) {
  19764. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  19765. $$4 = $15;
  19766. return ($$4|0);
  19767. }
  19768. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  19769. $17 = ((($0)) + 12|0);
  19770. $18 = ((($0)) + 12|0);
  19771. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  19772. while(1) {
  19773. $19 = HEAP32[$0>>2]|0;
  19774. $20 = HEAP32[$19>>2]|0;
  19775. $21 = (3060 + ($$0103117<<2)|0);
  19776. $22 = HEAP32[$21>>2]|0;
  19777. $23 = (3088 + ($$0103117<<2)|0);
  19778. $24 = HEAP32[$23>>2]|0;
  19779. $25 = (($20) + -1)|0;
  19780. $26 = (($25) - ($22))|0;
  19781. $27 = (($26) + ($24))|0;
  19782. $28 = (($27>>>0) / ($24>>>0))&-1;
  19783. $29 = ((($19)) + 4|0);
  19784. $30 = HEAP32[$29>>2]|0;
  19785. $31 = (3116 + ($$0103117<<2)|0);
  19786. $32 = HEAP32[$31>>2]|0;
  19787. $33 = (3144 + ($$0103117<<2)|0);
  19788. $34 = HEAP32[$33>>2]|0;
  19789. $35 = (($30) + -1)|0;
  19790. $36 = (($35) - ($32))|0;
  19791. $37 = (($36) + ($34))|0;
  19792. $38 = (($37>>>0) / ($34>>>0))&-1;
  19793. $39 = ($24>>>0)<=($27>>>0);
  19794. $40 = ($34>>>0)<=($37>>>0);
  19795. $or$cond = $39 & $40;
  19796. if ($or$cond) {
  19797. $41 = ((($19)) + 8|0);
  19798. $42 = HEAP32[$41>>2]|0;
  19799. $43 = Math_imul($28, $4)|0;
  19800. $44 = Math_imul($43, $42)|0;
  19801. $45 = (($44) + 7)|0;
  19802. $46 = $45 >> 3;
  19803. $47 = (($46) + 1)|0;
  19804. $48 = Math_imul($47, $38)|0;
  19805. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  19806. $50 = ($49|0)==(0);
  19807. if ($50) {
  19808. label = 13;
  19809. break;
  19810. }
  19811. $51 = ($38|0)>(0);
  19812. if ($51) {
  19813. $52 = ($28|0)>(0);
  19814. $$0106116 = 0;
  19815. while(1) {
  19816. if ($52) {
  19817. $53 = HEAP32[$33>>2]|0;
  19818. $54 = Math_imul($53, $$0106116)|0;
  19819. $55 = HEAP32[$31>>2]|0;
  19820. $56 = (($54) + ($55))|0;
  19821. $57 = HEAP32[$23>>2]|0;
  19822. $58 = HEAP32[$21>>2]|0;
  19823. $59 = Math_imul($56, $9)|0;
  19824. $60 = Math_imul($$0106116, $28)|0;
  19825. $$0107115 = 0;
  19826. while(1) {
  19827. $61 = Math_imul($57, $$0107115)|0;
  19828. $62 = (($61) + ($58))|0;
  19829. $63 = HEAP32[$0>>2]|0;
  19830. $64 = HEAP32[$63>>2]|0;
  19831. $65 = Math_imul($59, $64)|0;
  19832. $66 = (($16) + ($65)|0);
  19833. $67 = Math_imul($62, $9)|0;
  19834. $68 = (($66) + ($67)|0);
  19835. $69 = HEAP32[$18>>2]|0;
  19836. $70 = (($$0107115) + ($60))|0;
  19837. $71 = Math_imul($70, $9)|0;
  19838. $72 = (($69) + ($71)|0);
  19839. _memcpy(($68|0),($72|0),($9|0))|0;
  19840. $73 = (($$0107115) + 1)|0;
  19841. $74 = ($73|0)<($28|0);
  19842. if ($74) {
  19843. $$0107115 = $73;
  19844. } else {
  19845. break;
  19846. }
  19847. }
  19848. }
  19849. $75 = (($$0106116) + 1)|0;
  19850. $76 = ($75|0)<($38|0);
  19851. if ($76) {
  19852. $$0106116 = $75;
  19853. } else {
  19854. break;
  19855. }
  19856. }
  19857. }
  19858. $77 = HEAP32[$17>>2]|0;
  19859. _free($77);
  19860. $78 = (($$095119) + ($48)|0);
  19861. $79 = (($$099118) - ($48))|0;
  19862. $$3102$ph = $79;$$398$ph = $78;
  19863. } else {
  19864. $$3102$ph = $$099118;$$398$ph = $$095119;
  19865. }
  19866. $80 = (($$0103117) + 1)|0;
  19867. $81 = ($80|0)<(7);
  19868. if ($81) {
  19869. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  19870. } else {
  19871. label = 15;
  19872. break;
  19873. }
  19874. }
  19875. if ((label|0) == 13) {
  19876. _free($16);
  19877. $$4 = 0;
  19878. return ($$4|0);
  19879. }
  19880. else if ((label|0) == 15) {
  19881. $82 = ((($0)) + 12|0);
  19882. HEAP32[$82>>2] = $16;
  19883. $$4 = 1;
  19884. return ($$4|0);
  19885. }
  19886. return (0)|0;
  19887. }
  19888. function _stbi__compute_transparency16($0,$1,$2) {
  19889. $0 = $0|0;
  19890. $1 = $1|0;
  19891. $2 = $2|0;
  19892. 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;
  19893. 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;
  19894. sp = STACKTOP;
  19895. $3 = HEAP32[$0>>2]|0;
  19896. $4 = HEAP32[$3>>2]|0;
  19897. $5 = ((($3)) + 4|0);
  19898. $6 = HEAP32[$5>>2]|0;
  19899. $7 = Math_imul($6, $4)|0;
  19900. $8 = ((($0)) + 12|0);
  19901. $9 = HEAP32[$8>>2]|0;
  19902. switch ($2|0) {
  19903. case 2: {
  19904. $13 = ($7|0)==(0);
  19905. if ($13) {
  19906. return;
  19907. } else {
  19908. $$0323 = 0;$$04 = $9;
  19909. }
  19910. while(1) {
  19911. $14 = HEAP16[$$04>>1]|0;
  19912. $15 = HEAP16[$1>>1]|0;
  19913. $not$ = ($14<<16>>16)!=($15<<16>>16);
  19914. $16 = $not$ << 31 >> 31;
  19915. $17 = ((($$04)) + 2|0);
  19916. HEAP16[$17>>1] = $16;
  19917. $18 = ((($$04)) + 4|0);
  19918. $19 = (($$0323) + 1)|0;
  19919. $exitcond = ($19|0)==($7|0);
  19920. if ($exitcond) {
  19921. break;
  19922. } else {
  19923. $$0323 = $19;$$04 = $18;
  19924. }
  19925. }
  19926. return;
  19927. break;
  19928. }
  19929. case 4: {
  19930. $10 = ($7|0)==(0);
  19931. if ($10) {
  19932. return;
  19933. }
  19934. $11 = ((($1)) + 2|0);
  19935. $12 = ((($1)) + 4|0);
  19936. $$1335 = 0;$$16 = $9;
  19937. while(1) {
  19938. $20 = HEAP16[$$16>>1]|0;
  19939. $21 = HEAP16[$1>>1]|0;
  19940. $22 = ($20<<16>>16)==($21<<16>>16);
  19941. if ($22) {
  19942. $23 = ((($$16)) + 2|0);
  19943. $24 = HEAP16[$23>>1]|0;
  19944. $25 = HEAP16[$11>>1]|0;
  19945. $26 = ($24<<16>>16)==($25<<16>>16);
  19946. if ($26) {
  19947. $27 = ((($$16)) + 4|0);
  19948. $28 = HEAP16[$27>>1]|0;
  19949. $29 = HEAP16[$12>>1]|0;
  19950. $30 = ($28<<16>>16)==($29<<16>>16);
  19951. if ($30) {
  19952. $31 = ((($$16)) + 6|0);
  19953. HEAP16[$31>>1] = 0;
  19954. }
  19955. }
  19956. }
  19957. $32 = ((($$16)) + 8|0);
  19958. $33 = (($$1335) + 1)|0;
  19959. $exitcond9 = ($33|0)==($7|0);
  19960. if ($exitcond9) {
  19961. break;
  19962. } else {
  19963. $$1335 = $33;$$16 = $32;
  19964. }
  19965. }
  19966. return;
  19967. break;
  19968. }
  19969. default: {
  19970. ___assert_fail((10389|0),(9896|0),4569,(10441|0));
  19971. // unreachable;
  19972. }
  19973. }
  19974. }
  19975. function _stbi__compute_transparency($0,$1,$2) {
  19976. $0 = $0|0;
  19977. $1 = $1|0;
  19978. $2 = $2|0;
  19979. 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;
  19980. 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;
  19981. sp = STACKTOP;
  19982. $3 = HEAP32[$0>>2]|0;
  19983. $4 = HEAP32[$3>>2]|0;
  19984. $5 = ((($3)) + 4|0);
  19985. $6 = HEAP32[$5>>2]|0;
  19986. $7 = Math_imul($6, $4)|0;
  19987. $8 = ((($0)) + 12|0);
  19988. $9 = HEAP32[$8>>2]|0;
  19989. switch ($2|0) {
  19990. case 2: {
  19991. $13 = ($7|0)==(0);
  19992. if ($13) {
  19993. return;
  19994. } else {
  19995. $$0323 = 0;$$04 = $9;
  19996. }
  19997. while(1) {
  19998. $14 = HEAP8[$$04>>0]|0;
  19999. $15 = HEAP8[$1>>0]|0;
  20000. $not$ = ($14<<24>>24)!=($15<<24>>24);
  20001. $16 = $not$ << 31 >> 31;
  20002. $17 = ((($$04)) + 1|0);
  20003. HEAP8[$17>>0] = $16;
  20004. $18 = ((($$04)) + 2|0);
  20005. $19 = (($$0323) + 1)|0;
  20006. $exitcond = ($19|0)==($7|0);
  20007. if ($exitcond) {
  20008. break;
  20009. } else {
  20010. $$0323 = $19;$$04 = $18;
  20011. }
  20012. }
  20013. return;
  20014. break;
  20015. }
  20016. case 4: {
  20017. $10 = ($7|0)==(0);
  20018. if ($10) {
  20019. return;
  20020. }
  20021. $11 = ((($1)) + 1|0);
  20022. $12 = ((($1)) + 2|0);
  20023. $$1335 = 0;$$16 = $9;
  20024. while(1) {
  20025. $20 = HEAP8[$$16>>0]|0;
  20026. $21 = HEAP8[$1>>0]|0;
  20027. $22 = ($20<<24>>24)==($21<<24>>24);
  20028. if ($22) {
  20029. $23 = ((($$16)) + 1|0);
  20030. $24 = HEAP8[$23>>0]|0;
  20031. $25 = HEAP8[$11>>0]|0;
  20032. $26 = ($24<<24>>24)==($25<<24>>24);
  20033. if ($26) {
  20034. $27 = ((($$16)) + 2|0);
  20035. $28 = HEAP8[$27>>0]|0;
  20036. $29 = HEAP8[$12>>0]|0;
  20037. $30 = ($28<<24>>24)==($29<<24>>24);
  20038. if ($30) {
  20039. $31 = ((($$16)) + 3|0);
  20040. HEAP8[$31>>0] = 0;
  20041. }
  20042. }
  20043. }
  20044. $32 = ((($$16)) + 4|0);
  20045. $33 = (($$1335) + 1)|0;
  20046. $exitcond9 = ($33|0)==($7|0);
  20047. if ($exitcond9) {
  20048. break;
  20049. } else {
  20050. $$1335 = $33;$$16 = $32;
  20051. }
  20052. }
  20053. return;
  20054. break;
  20055. }
  20056. default: {
  20057. ___assert_fail((10389|0),(9896|0),4544,(10414|0));
  20058. // unreachable;
  20059. }
  20060. }
  20061. }
  20062. function _stbi__de_iphone($0) {
  20063. $0 = $0|0;
  20064. 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;
  20065. 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;
  20066. 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;
  20067. sp = STACKTOP;
  20068. $1 = HEAP32[$0>>2]|0;
  20069. $2 = HEAP32[$1>>2]|0;
  20070. $3 = ((($1)) + 4|0);
  20071. $4 = HEAP32[$3>>2]|0;
  20072. $5 = Math_imul($4, $2)|0;
  20073. $6 = ((($0)) + 12|0);
  20074. $7 = HEAP32[$6>>2]|0;
  20075. $8 = ((($1)) + 12|0);
  20076. $9 = HEAP32[$8>>2]|0;
  20077. switch ($9|0) {
  20078. case 3: {
  20079. $10 = ($5|0)==(0);
  20080. if ($10) {
  20081. return;
  20082. } else {
  20083. $$05158 = $7;$$059 = 0;
  20084. }
  20085. while(1) {
  20086. $11 = HEAP8[$$05158>>0]|0;
  20087. $12 = ((($$05158)) + 2|0);
  20088. $13 = HEAP8[$12>>0]|0;
  20089. HEAP8[$$05158>>0] = $13;
  20090. HEAP8[$12>>0] = $11;
  20091. $14 = ((($$05158)) + 3|0);
  20092. $15 = (($$059) + 1)|0;
  20093. $exitcond = ($15|0)==($5|0);
  20094. if ($exitcond) {
  20095. break;
  20096. } else {
  20097. $$05158 = $14;$$059 = $15;
  20098. }
  20099. }
  20100. return;
  20101. break;
  20102. }
  20103. case 4: {
  20104. $16 = HEAP32[5272]|0;
  20105. $17 = ($16|0)==(0);
  20106. $18 = ($5|0)!=(0);
  20107. if ($17) {
  20108. if ($18) {
  20109. $$25360 = $7;$$261 = 0;
  20110. } else {
  20111. return;
  20112. }
  20113. while(1) {
  20114. $42 = HEAP8[$$25360>>0]|0;
  20115. $43 = ((($$25360)) + 2|0);
  20116. $44 = HEAP8[$43>>0]|0;
  20117. HEAP8[$$25360>>0] = $44;
  20118. HEAP8[$43>>0] = $42;
  20119. $45 = ((($$25360)) + 4|0);
  20120. $46 = (($$261) + 1)|0;
  20121. $exitcond68 = ($46|0)==($5|0);
  20122. if ($exitcond68) {
  20123. break;
  20124. } else {
  20125. $$25360 = $45;$$261 = $46;
  20126. }
  20127. }
  20128. return;
  20129. }
  20130. if ($18) {
  20131. $$15263 = $7;$$164 = 0;
  20132. } else {
  20133. return;
  20134. }
  20135. while(1) {
  20136. $19 = ((($$15263)) + 3|0);
  20137. $20 = HEAP8[$19>>0]|0;
  20138. $21 = HEAP8[$$15263>>0]|0;
  20139. $22 = ($20<<24>>24)==(0);
  20140. $23 = ((($$15263)) + 2|0);
  20141. $24 = HEAP8[$23>>0]|0;
  20142. if ($22) {
  20143. HEAP8[$$15263>>0] = $24;
  20144. $$sink = $21;
  20145. } else {
  20146. $25 = $24&255;
  20147. $26 = ($25*255)|0;
  20148. $27 = $20&255;
  20149. $28 = (($26>>>0) / ($27>>>0))&-1;
  20150. $29 = $28&255;
  20151. HEAP8[$$15263>>0] = $29;
  20152. $30 = ((($$15263)) + 1|0);
  20153. $31 = HEAP8[$30>>0]|0;
  20154. $32 = $31&255;
  20155. $33 = ($32*255)|0;
  20156. $34 = (($33>>>0) / ($27>>>0))&-1;
  20157. $35 = $34&255;
  20158. HEAP8[$30>>0] = $35;
  20159. $36 = $21&255;
  20160. $37 = ($36*255)|0;
  20161. $38 = (($37>>>0) / ($27>>>0))&-1;
  20162. $39 = $38&255;
  20163. $$sink = $39;
  20164. }
  20165. HEAP8[$23>>0] = $$sink;
  20166. $40 = ((($$15263)) + 4|0);
  20167. $41 = (($$164) + 1)|0;
  20168. $exitcond69 = ($41|0)==($5|0);
  20169. if ($exitcond69) {
  20170. break;
  20171. } else {
  20172. $$15263 = $40;$$164 = $41;
  20173. }
  20174. }
  20175. return;
  20176. break;
  20177. }
  20178. default: {
  20179. ___assert_fail((10355|0),(9896|0),4650,(10373|0));
  20180. // unreachable;
  20181. }
  20182. }
  20183. }
  20184. function _stbi__expand_png_palette($0,$1,$2) {
  20185. $0 = $0|0;
  20186. $1 = $1|0;
  20187. $2 = $2|0;
  20188. 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;
  20189. 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;
  20190. 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;
  20191. sp = STACKTOP;
  20192. $3 = HEAP32[$0>>2]|0;
  20193. $4 = HEAP32[$3>>2]|0;
  20194. $5 = ((($3)) + 4|0);
  20195. $6 = HEAP32[$5>>2]|0;
  20196. $7 = Math_imul($6, $4)|0;
  20197. $8 = ((($0)) + 12|0);
  20198. $9 = HEAP32[$8>>2]|0;
  20199. $10 = (_stbi__malloc_mad2($7,$2)|0);
  20200. $11 = ($10|0)==(0|0);
  20201. if ($11) {
  20202. _stbi__err(9951);
  20203. $$0 = 0;
  20204. return ($$0|0);
  20205. }
  20206. $12 = ($2|0)==(3);
  20207. $13 = ($7|0)!=(0);
  20208. if ($12) {
  20209. if ($13) {
  20210. $$0574 = 0;$$0583 = $10;
  20211. while(1) {
  20212. $14 = (($9) + ($$0574)|0);
  20213. $15 = HEAP8[$14>>0]|0;
  20214. $16 = $15&255;
  20215. $17 = $16 << 2;
  20216. $18 = (($1) + ($17)|0);
  20217. $19 = HEAP8[$18>>0]|0;
  20218. HEAP8[$$0583>>0] = $19;
  20219. $20 = $17 | 1;
  20220. $21 = (($1) + ($20)|0);
  20221. $22 = HEAP8[$21>>0]|0;
  20222. $23 = ((($$0583)) + 1|0);
  20223. HEAP8[$23>>0] = $22;
  20224. $24 = $17 | 2;
  20225. $25 = (($1) + ($24)|0);
  20226. $26 = HEAP8[$25>>0]|0;
  20227. $27 = ((($$0583)) + 2|0);
  20228. HEAP8[$27>>0] = $26;
  20229. $28 = ((($$0583)) + 3|0);
  20230. $29 = (($$0574) + 1)|0;
  20231. $exitcond = ($29|0)==($7|0);
  20232. if ($exitcond) {
  20233. break;
  20234. } else {
  20235. $$0574 = $29;$$0583 = $28;
  20236. }
  20237. }
  20238. }
  20239. } else {
  20240. if ($13) {
  20241. $$1595 = $10;$$16 = 0;
  20242. while(1) {
  20243. $30 = (($9) + ($$16)|0);
  20244. $31 = HEAP8[$30>>0]|0;
  20245. $32 = $31&255;
  20246. $33 = $32 << 2;
  20247. $34 = (($1) + ($33)|0);
  20248. $35 = HEAP8[$34>>0]|0;
  20249. HEAP8[$$1595>>0] = $35;
  20250. $36 = $33 | 1;
  20251. $37 = (($1) + ($36)|0);
  20252. $38 = HEAP8[$37>>0]|0;
  20253. $39 = ((($$1595)) + 1|0);
  20254. HEAP8[$39>>0] = $38;
  20255. $40 = $33 | 2;
  20256. $41 = (($1) + ($40)|0);
  20257. $42 = HEAP8[$41>>0]|0;
  20258. $43 = ((($$1595)) + 2|0);
  20259. HEAP8[$43>>0] = $42;
  20260. $44 = $33 | 3;
  20261. $45 = (($1) + ($44)|0);
  20262. $46 = HEAP8[$45>>0]|0;
  20263. $47 = ((($$1595)) + 3|0);
  20264. HEAP8[$47>>0] = $46;
  20265. $48 = ((($$1595)) + 4|0);
  20266. $49 = (($$16) + 1)|0;
  20267. $exitcond9 = ($49|0)==($7|0);
  20268. if ($exitcond9) {
  20269. break;
  20270. } else {
  20271. $$1595 = $48;$$16 = $49;
  20272. }
  20273. }
  20274. }
  20275. }
  20276. $50 = HEAP32[$8>>2]|0;
  20277. _free($50);
  20278. HEAP32[$8>>2] = $10;
  20279. $$0 = 1;
  20280. return ($$0|0);
  20281. }
  20282. function _stbi__malloc_mad2($0,$1) {
  20283. $0 = $0|0;
  20284. $1 = $1|0;
  20285. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20286. sp = STACKTOP;
  20287. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  20288. $3 = ($2|0)==(0);
  20289. if ($3) {
  20290. $$0 = 0;
  20291. return ($$0|0);
  20292. }
  20293. $4 = Math_imul($1, $0)|0;
  20294. $5 = (_stbi__malloc($4)|0);
  20295. $$0 = $5;
  20296. return ($$0|0);
  20297. }
  20298. function _stbi__mad2sizes_valid($0,$1) {
  20299. $0 = $0|0;
  20300. $1 = $1|0;
  20301. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  20302. sp = STACKTOP;
  20303. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  20304. $3 = ($2|0)==(0);
  20305. if ($3) {
  20306. $8 = 0;
  20307. $7 = $8&1;
  20308. return ($7|0);
  20309. }
  20310. $4 = Math_imul($1, $0)|0;
  20311. $5 = (_stbi__addsizes_valid($4)|0);
  20312. $6 = ($5|0)!=(0);
  20313. $8 = $6;
  20314. $7 = $8&1;
  20315. return ($7|0);
  20316. }
  20317. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  20318. $0 = $0|0;
  20319. $1 = $1|0;
  20320. $2 = $2|0;
  20321. $3 = $3|0;
  20322. $4 = $4|0;
  20323. $5 = $5|0;
  20324. $6 = $6|0;
  20325. $7 = $7|0;
  20326. 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;
  20327. 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;
  20328. 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;
  20329. 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;
  20330. 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;
  20331. 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;
  20332. 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;
  20333. 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;
  20334. 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;
  20335. 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;
  20336. 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;
  20337. 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;
  20338. 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;
  20339. 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;
  20340. 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;
  20341. 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;
  20342. 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;
  20343. 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;
  20344. 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;
  20345. 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;
  20346. 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;
  20347. 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;
  20348. 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;
  20349. 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;
  20350. 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;
  20351. 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;
  20352. 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;
  20353. 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;
  20354. 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;
  20355. 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;
  20356. 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;
  20357. 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;
  20358. 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;
  20359. 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;
  20360. 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;
  20361. 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;
  20362. 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;
  20363. 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;
  20364. sp = STACKTOP;
  20365. $8 = ($6|0)==(16);
  20366. $9 = $8 ? 2 : 1;
  20367. $10 = HEAP32[$0>>2]|0;
  20368. $11 = Math_imul($4, $3)|0;
  20369. $12 = Math_imul($9, $11)|0;
  20370. $13 = ((($10)) + 8|0);
  20371. $14 = HEAP32[$13>>2]|0;
  20372. $15 = Math_imul($9, $3)|0;
  20373. $16 = Math_imul($14, $9)|0;
  20374. $17 = ($14|0)==($3|0);
  20375. $18 = (($14) + 1)|0;
  20376. $19 = ($18|0)==($3|0);
  20377. $or$cond = $17 | $19;
  20378. if (!($or$cond)) {
  20379. ___assert_fail((10470|0),(9896|0),4294,(10511|0));
  20380. // unreachable;
  20381. }
  20382. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  20383. $21 = ((($0)) + 12|0);
  20384. HEAP32[$21>>2] = $20;
  20385. $22 = ($20|0)==(0|0);
  20386. if ($22) {
  20387. _stbi__err(9951);
  20388. $$2 = 0;
  20389. return ($$2|0);
  20390. }
  20391. $23 = Math_imul($14, $4)|0;
  20392. $24 = Math_imul($23, $6)|0;
  20393. $25 = (($24) + 7)|0;
  20394. $26 = $25 >>> 3;
  20395. $27 = (($26) + 1)|0;
  20396. $28 = Math_imul($27, $5)|0;
  20397. $29 = HEAP32[$10>>2]|0;
  20398. $30 = ($29|0)==($4|0);
  20399. if ($30) {
  20400. $31 = ((($10)) + 4|0);
  20401. $32 = HEAP32[$31>>2]|0;
  20402. $33 = ($32|0)==($5|0);
  20403. if ($33) {
  20404. $34 = ($28|0)==($2|0);
  20405. if (!($34)) {
  20406. _stbi__err(10538);
  20407. $$2 = 0;
  20408. return ($$2|0);
  20409. }
  20410. } else {
  20411. label = 9;
  20412. }
  20413. } else {
  20414. label = 9;
  20415. }
  20416. if ((label|0) == 9) {
  20417. $35 = ($28>>>0)>($2>>>0);
  20418. if ($35) {
  20419. _stbi__err(10538);
  20420. $$2 = 0;
  20421. return ($$2|0);
  20422. }
  20423. }
  20424. $36 = ($5|0)==(0);
  20425. L18: do {
  20426. if (!($36)) {
  20427. $37 = ($6|0)<(8);
  20428. $38 = ($26>>>0)>($4>>>0);
  20429. $39 = (($11) - ($26))|0;
  20430. $40 = (0 - ($12))|0;
  20431. $41 = ($6|0)==(8);
  20432. $brmerge = $37 | $17;
  20433. $42 = ($4|0)==(0);
  20434. $$0614793 = (($4) + -1)|0;
  20435. $43 = ($$0614793|0)==(0);
  20436. $$1615785 = (($4) + -1)|0;
  20437. $44 = ($$1615785|0)==(0);
  20438. $$2616776 = (($4) + -1)|0;
  20439. $45 = ($$2616776|0)==(0);
  20440. $$3617767 = (($4) + -1)|0;
  20441. $46 = ($$3617767|0)==(0);
  20442. $$4618758 = (($4) + -1)|0;
  20443. $47 = ($$4618758|0)==(0);
  20444. $$5619750 = (($4) + -1)|0;
  20445. $48 = ($$5619750|0)==(0);
  20446. $$6620742 = (($4) + -1)|0;
  20447. $49 = ($$6620742|0)==(0);
  20448. $$not = $8 ^ 1;
  20449. $brmerge894 = $42 | $$not;
  20450. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  20451. while(1) {
  20452. $50 = HEAP32[$21>>2]|0;
  20453. $51 = Math_imul($$0623814, $12)|0;
  20454. $52 = (($50) + ($51)|0);
  20455. $53 = ((($$0577817)) + 1|0);
  20456. $54 = HEAP8[$$0577817>>0]|0;
  20457. $55 = $54&255;
  20458. $56 = ($54&255)>(4);
  20459. if ($56) {
  20460. label = 105;
  20461. break;
  20462. }
  20463. if ($37) {
  20464. if ($38) {
  20465. label = 16;
  20466. break;
  20467. }
  20468. $57 = (($52) + ($39)|0);
  20469. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  20470. } else {
  20471. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  20472. }
  20473. $58 = (($$0597) + ($40)|0);
  20474. $59 = ($$0623814|0)==(0);
  20475. if ($59) {
  20476. $60 = (10577 + ($55)|0);
  20477. $61 = HEAP8[$60>>0]|0;
  20478. $62 = $61&255;
  20479. $$0588 = $62;
  20480. } else {
  20481. $$0588 = $55;
  20482. }
  20483. $63 = ($$1612|0)>(0);
  20484. L30: do {
  20485. if ($63) {
  20486. $trunc638 = $$0588&255;
  20487. $$0625734 = 0;
  20488. while(1) {
  20489. switch ($trunc638<<24>>24) {
  20490. case 0: {
  20491. $64 = (($53) + ($$0625734)|0);
  20492. $65 = HEAP8[$64>>0]|0;
  20493. $$sink = $65;
  20494. label = 30;
  20495. break;
  20496. }
  20497. case 1: {
  20498. $66 = (($53) + ($$0625734)|0);
  20499. $67 = HEAP8[$66>>0]|0;
  20500. $$sink = $67;
  20501. label = 30;
  20502. break;
  20503. }
  20504. case 2: {
  20505. $68 = (($53) + ($$0625734)|0);
  20506. $69 = HEAP8[$68>>0]|0;
  20507. $70 = $69&255;
  20508. $71 = (($58) + ($$0625734)|0);
  20509. $72 = HEAP8[$71>>0]|0;
  20510. $73 = $72&255;
  20511. $74 = (($73) + ($70))|0;
  20512. $75 = $74&255;
  20513. $$sink = $75;
  20514. label = 30;
  20515. break;
  20516. }
  20517. case 3: {
  20518. $76 = (($53) + ($$0625734)|0);
  20519. $77 = HEAP8[$76>>0]|0;
  20520. $78 = $77&255;
  20521. $79 = (($58) + ($$0625734)|0);
  20522. $80 = HEAP8[$79>>0]|0;
  20523. $81 = $80&255;
  20524. $82 = $81 >>> 1;
  20525. $83 = (($82) + ($78))|0;
  20526. $84 = $83&255;
  20527. $$sink = $84;
  20528. label = 30;
  20529. break;
  20530. }
  20531. case 4: {
  20532. $85 = (($53) + ($$0625734)|0);
  20533. $86 = HEAP8[$85>>0]|0;
  20534. $87 = $86&255;
  20535. $88 = (($58) + ($$0625734)|0);
  20536. $89 = HEAP8[$88>>0]|0;
  20537. $90 = $89&255;
  20538. $91 = (_stbi__paeth(0,$90,0)|0);
  20539. $92 = (($91) + ($87))|0;
  20540. $93 = $92&255;
  20541. $$sink = $93;
  20542. label = 30;
  20543. break;
  20544. }
  20545. case 5: {
  20546. $94 = (($53) + ($$0625734)|0);
  20547. $95 = HEAP8[$94>>0]|0;
  20548. $$sink = $95;
  20549. label = 30;
  20550. break;
  20551. }
  20552. case 6: {
  20553. $96 = (($53) + ($$0625734)|0);
  20554. $97 = HEAP8[$96>>0]|0;
  20555. $$sink = $97;
  20556. label = 30;
  20557. break;
  20558. }
  20559. default: {
  20560. }
  20561. }
  20562. if ((label|0) == 30) {
  20563. label = 0;
  20564. $$sink1 = (($$0597) + ($$0625734)|0);
  20565. HEAP8[$$sink1>>0] = $$sink;
  20566. }
  20567. $98 = (($$0625734) + 1)|0;
  20568. $exitcond864 = ($98|0)==($$1612|0);
  20569. if ($exitcond864) {
  20570. break L30;
  20571. } else {
  20572. $$0625734 = $98;
  20573. }
  20574. }
  20575. }
  20576. } while(0);
  20577. do {
  20578. if ($41) {
  20579. if (!($17)) {
  20580. $99 = (($$0597) + ($14)|0);
  20581. HEAP8[$99>>0] = -1;
  20582. }
  20583. $100 = (($53) + ($14)|0);
  20584. $$1578 = $100;$$sink641 = $3;
  20585. } else {
  20586. if (!($8)) {
  20587. $105 = ((($$0577817)) + 2|0);
  20588. $$1578 = $105;$$sink641 = 1;
  20589. break;
  20590. }
  20591. if (!($17)) {
  20592. $101 = (($$1612) + 1)|0;
  20593. $102 = (($$0597) + ($101)|0);
  20594. $103 = (($$0597) + ($$1612)|0);
  20595. HEAP8[$103>>0] = -1;
  20596. HEAP8[$102>>0] = -1;
  20597. }
  20598. $104 = (($53) + ($$1612)|0);
  20599. $$1578 = $104;$$sink641 = $15;
  20600. }
  20601. } while(0);
  20602. $106 = (($$0597) + ($$sink641)|0);
  20603. $107 = (($58) + ($$sink641)|0);
  20604. if ($brmerge) {
  20605. $108 = (($$1609) + -1)|0;
  20606. $109 = Math_imul($108, $$1612)|0;
  20607. $trunc637 = $$0588&255;
  20608. switch ($trunc637<<24>>24) {
  20609. case 0: {
  20610. _memcpy(($106|0),($$1578|0),($109|0))|0;
  20611. break;
  20612. }
  20613. case 1: {
  20614. $115 = ($109|0)>(0);
  20615. if ($115) {
  20616. $$1626812 = 0;
  20617. while(1) {
  20618. $116 = (($$1578) + ($$1626812)|0);
  20619. $117 = HEAP8[$116>>0]|0;
  20620. $118 = $117&255;
  20621. $119 = (($$1626812) - ($$1612))|0;
  20622. $120 = (($106) + ($119)|0);
  20623. $121 = HEAP8[$120>>0]|0;
  20624. $122 = $121&255;
  20625. $123 = (($122) + ($118))|0;
  20626. $124 = $123&255;
  20627. $125 = (($106) + ($$1626812)|0);
  20628. HEAP8[$125>>0] = $124;
  20629. $126 = (($$1626812) + 1)|0;
  20630. $exitcond886 = ($126|0)==($109|0);
  20631. if ($exitcond886) {
  20632. break;
  20633. } else {
  20634. $$1626812 = $126;
  20635. }
  20636. }
  20637. }
  20638. break;
  20639. }
  20640. case 2: {
  20641. $114 = ($109|0)>(0);
  20642. if ($114) {
  20643. $$2627810 = 0;
  20644. while(1) {
  20645. $127 = (($$1578) + ($$2627810)|0);
  20646. $128 = HEAP8[$127>>0]|0;
  20647. $129 = $128&255;
  20648. $130 = (($107) + ($$2627810)|0);
  20649. $131 = HEAP8[$130>>0]|0;
  20650. $132 = $131&255;
  20651. $133 = (($132) + ($129))|0;
  20652. $134 = $133&255;
  20653. $135 = (($106) + ($$2627810)|0);
  20654. HEAP8[$135>>0] = $134;
  20655. $136 = (($$2627810) + 1)|0;
  20656. $exitcond885 = ($136|0)==($109|0);
  20657. if ($exitcond885) {
  20658. break;
  20659. } else {
  20660. $$2627810 = $136;
  20661. }
  20662. }
  20663. }
  20664. break;
  20665. }
  20666. case 3: {
  20667. $113 = ($109|0)>(0);
  20668. if ($113) {
  20669. $$3628808 = 0;
  20670. while(1) {
  20671. $137 = (($$1578) + ($$3628808)|0);
  20672. $138 = HEAP8[$137>>0]|0;
  20673. $139 = $138&255;
  20674. $140 = (($107) + ($$3628808)|0);
  20675. $141 = HEAP8[$140>>0]|0;
  20676. $142 = $141&255;
  20677. $143 = (($$3628808) - ($$1612))|0;
  20678. $144 = (($106) + ($143)|0);
  20679. $145 = HEAP8[$144>>0]|0;
  20680. $146 = $145&255;
  20681. $147 = (($146) + ($142))|0;
  20682. $148 = $147 >>> 1;
  20683. $149 = (($148) + ($139))|0;
  20684. $150 = $149&255;
  20685. $151 = (($106) + ($$3628808)|0);
  20686. HEAP8[$151>>0] = $150;
  20687. $152 = (($$3628808) + 1)|0;
  20688. $exitcond884 = ($152|0)==($109|0);
  20689. if ($exitcond884) {
  20690. break;
  20691. } else {
  20692. $$3628808 = $152;
  20693. }
  20694. }
  20695. }
  20696. break;
  20697. }
  20698. case 4: {
  20699. $112 = ($109|0)>(0);
  20700. if ($112) {
  20701. $$4629806 = 0;
  20702. while(1) {
  20703. $153 = (($$1578) + ($$4629806)|0);
  20704. $154 = HEAP8[$153>>0]|0;
  20705. $155 = $154&255;
  20706. $156 = (($$4629806) - ($$1612))|0;
  20707. $157 = (($106) + ($156)|0);
  20708. $158 = HEAP8[$157>>0]|0;
  20709. $159 = $158&255;
  20710. $160 = (($107) + ($$4629806)|0);
  20711. $161 = HEAP8[$160>>0]|0;
  20712. $162 = $161&255;
  20713. $163 = (($107) + ($156)|0);
  20714. $164 = HEAP8[$163>>0]|0;
  20715. $165 = $164&255;
  20716. $166 = (_stbi__paeth($159,$162,$165)|0);
  20717. $167 = (($166) + ($155))|0;
  20718. $168 = $167&255;
  20719. $169 = (($106) + ($$4629806)|0);
  20720. HEAP8[$169>>0] = $168;
  20721. $170 = (($$4629806) + 1)|0;
  20722. $exitcond883 = ($170|0)==($109|0);
  20723. if ($exitcond883) {
  20724. break;
  20725. } else {
  20726. $$4629806 = $170;
  20727. }
  20728. }
  20729. }
  20730. break;
  20731. }
  20732. case 5: {
  20733. $111 = ($109|0)>(0);
  20734. if ($111) {
  20735. $$5630804 = 0;
  20736. while(1) {
  20737. $171 = (($$1578) + ($$5630804)|0);
  20738. $172 = HEAP8[$171>>0]|0;
  20739. $173 = $172&255;
  20740. $174 = (($$5630804) - ($$1612))|0;
  20741. $175 = (($106) + ($174)|0);
  20742. $176 = HEAP8[$175>>0]|0;
  20743. $177 = $176&255;
  20744. $178 = $177 >>> 1;
  20745. $179 = (($178) + ($173))|0;
  20746. $180 = $179&255;
  20747. $181 = (($106) + ($$5630804)|0);
  20748. HEAP8[$181>>0] = $180;
  20749. $182 = (($$5630804) + 1)|0;
  20750. $exitcond882 = ($182|0)==($109|0);
  20751. if ($exitcond882) {
  20752. break;
  20753. } else {
  20754. $$5630804 = $182;
  20755. }
  20756. }
  20757. }
  20758. break;
  20759. }
  20760. case 6: {
  20761. $110 = ($109|0)>(0);
  20762. if ($110) {
  20763. $$6631802 = 0;
  20764. while(1) {
  20765. $183 = (($$1578) + ($$6631802)|0);
  20766. $184 = HEAP8[$183>>0]|0;
  20767. $185 = $184&255;
  20768. $186 = (($$6631802) - ($$1612))|0;
  20769. $187 = (($106) + ($186)|0);
  20770. $188 = HEAP8[$187>>0]|0;
  20771. $189 = $188&255;
  20772. $190 = (_stbi__paeth($189,0,0)|0);
  20773. $191 = (($190) + ($185))|0;
  20774. $192 = $191&255;
  20775. $193 = (($106) + ($$6631802)|0);
  20776. HEAP8[$193>>0] = $192;
  20777. $194 = (($$6631802) + 1)|0;
  20778. $exitcond881 = ($194|0)==($109|0);
  20779. if ($exitcond881) {
  20780. break;
  20781. } else {
  20782. $$6631802 = $194;
  20783. }
  20784. }
  20785. }
  20786. break;
  20787. }
  20788. default: {
  20789. }
  20790. }
  20791. $195 = (($$1578) + ($109)|0);
  20792. $$11$ph = $195;
  20793. } else {
  20794. if (!($19)) {
  20795. label = 58;
  20796. break;
  20797. }
  20798. $trunc = $$0588&255;
  20799. switch ($trunc<<24>>24) {
  20800. case 0: {
  20801. if ($43) {
  20802. $$9586 = $$1578;
  20803. } else {
  20804. $208 = ($$1612|0)>(0);
  20805. $209 = Math_imul($$6620742, $$1612)|0;
  20806. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  20807. while(1) {
  20808. if ($208) {
  20809. $$7632790 = 0;
  20810. while(1) {
  20811. $210 = (($$2579795) + ($$7632790)|0);
  20812. $211 = HEAP8[$210>>0]|0;
  20813. $212 = (($$2599794) + ($$7632790)|0);
  20814. HEAP8[$212>>0] = $211;
  20815. $213 = (($$7632790) + 1)|0;
  20816. $exitcond877 = ($213|0)==($$1612|0);
  20817. if ($exitcond877) {
  20818. break;
  20819. } else {
  20820. $$7632790 = $213;
  20821. }
  20822. }
  20823. }
  20824. $214 = (($$2599794) + ($$1612)|0);
  20825. HEAP8[$214>>0] = -1;
  20826. $215 = (($$2579795) + ($$1612)|0);
  20827. $216 = (($$2599794) + ($15)|0);
  20828. $$0614 = (($$0614796) + -1)|0;
  20829. $217 = ($$0614|0)==(0);
  20830. if ($217) {
  20831. break;
  20832. } else {
  20833. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  20834. }
  20835. }
  20836. $scevgep879 = (($$1578) + ($209)|0);
  20837. $$9586 = $scevgep879;
  20838. }
  20839. break;
  20840. }
  20841. case 1: {
  20842. if ($44) {
  20843. $$9586 = $$1578;
  20844. } else {
  20845. $206 = ($$1612|0)>(0);
  20846. $207 = Math_imul($$6620742, $$1612)|0;
  20847. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  20848. while(1) {
  20849. if ($206) {
  20850. $$8633782 = 0;
  20851. while(1) {
  20852. $218 = (($$3580787) + ($$8633782)|0);
  20853. $219 = HEAP8[$218>>0]|0;
  20854. $220 = $219&255;
  20855. $221 = (($$8633782) - ($15))|0;
  20856. $222 = (($$3600786) + ($221)|0);
  20857. $223 = HEAP8[$222>>0]|0;
  20858. $224 = $223&255;
  20859. $225 = (($224) + ($220))|0;
  20860. $226 = $225&255;
  20861. $227 = (($$3600786) + ($$8633782)|0);
  20862. HEAP8[$227>>0] = $226;
  20863. $228 = (($$8633782) + 1)|0;
  20864. $exitcond875 = ($228|0)==($$1612|0);
  20865. if ($exitcond875) {
  20866. break;
  20867. } else {
  20868. $$8633782 = $228;
  20869. }
  20870. }
  20871. }
  20872. $229 = (($$3600786) + ($$1612)|0);
  20873. HEAP8[$229>>0] = -1;
  20874. $230 = (($$3580787) + ($$1612)|0);
  20875. $231 = (($$3600786) + ($15)|0);
  20876. $$1615 = (($$1615788) + -1)|0;
  20877. $232 = ($$1615|0)==(0);
  20878. if ($232) {
  20879. break;
  20880. } else {
  20881. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  20882. }
  20883. }
  20884. $scevgep876 = (($$1578) + ($207)|0);
  20885. $$9586 = $scevgep876;
  20886. }
  20887. break;
  20888. }
  20889. case 2: {
  20890. if ($45) {
  20891. $$9586 = $$1578;
  20892. } else {
  20893. $204 = ($$1612|0)>(0);
  20894. $205 = Math_imul($$6620742, $$1612)|0;
  20895. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  20896. while(1) {
  20897. if ($204) {
  20898. $$9634773 = 0;
  20899. while(1) {
  20900. $233 = (($$4581779) + ($$9634773)|0);
  20901. $234 = HEAP8[$233>>0]|0;
  20902. $235 = $234&255;
  20903. $236 = (($$3592778) + ($$9634773)|0);
  20904. $237 = HEAP8[$236>>0]|0;
  20905. $238 = $237&255;
  20906. $239 = (($238) + ($235))|0;
  20907. $240 = $239&255;
  20908. $241 = (($$4601777) + ($$9634773)|0);
  20909. HEAP8[$241>>0] = $240;
  20910. $242 = (($$9634773) + 1)|0;
  20911. $exitcond873 = ($242|0)==($$1612|0);
  20912. if ($exitcond873) {
  20913. break;
  20914. } else {
  20915. $$9634773 = $242;
  20916. }
  20917. }
  20918. }
  20919. $243 = (($$4601777) + ($$1612)|0);
  20920. HEAP8[$243>>0] = -1;
  20921. $244 = (($$4581779) + ($$1612)|0);
  20922. $245 = (($$4601777) + ($15)|0);
  20923. $246 = (($$3592778) + ($15)|0);
  20924. $$2616 = (($$2616780) + -1)|0;
  20925. $247 = ($$2616|0)==(0);
  20926. if ($247) {
  20927. break;
  20928. } else {
  20929. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  20930. }
  20931. }
  20932. $scevgep874 = (($$1578) + ($205)|0);
  20933. $$9586 = $scevgep874;
  20934. }
  20935. break;
  20936. }
  20937. case 3: {
  20938. if ($46) {
  20939. $$9586 = $$1578;
  20940. } else {
  20941. $202 = ($$1612|0)>(0);
  20942. $203 = Math_imul($$6620742, $$1612)|0;
  20943. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  20944. while(1) {
  20945. if ($202) {
  20946. $$10635764 = 0;
  20947. while(1) {
  20948. $248 = (($$5582770) + ($$10635764)|0);
  20949. $249 = HEAP8[$248>>0]|0;
  20950. $250 = $249&255;
  20951. $251 = (($$4593769) + ($$10635764)|0);
  20952. $252 = HEAP8[$251>>0]|0;
  20953. $253 = $252&255;
  20954. $254 = (($$10635764) - ($15))|0;
  20955. $255 = (($$5602768) + ($254)|0);
  20956. $256 = HEAP8[$255>>0]|0;
  20957. $257 = $256&255;
  20958. $258 = (($257) + ($253))|0;
  20959. $259 = $258 >>> 1;
  20960. $260 = (($259) + ($250))|0;
  20961. $261 = $260&255;
  20962. $262 = (($$5602768) + ($$10635764)|0);
  20963. HEAP8[$262>>0] = $261;
  20964. $263 = (($$10635764) + 1)|0;
  20965. $exitcond871 = ($263|0)==($$1612|0);
  20966. if ($exitcond871) {
  20967. break;
  20968. } else {
  20969. $$10635764 = $263;
  20970. }
  20971. }
  20972. }
  20973. $264 = (($$5602768) + ($$1612)|0);
  20974. HEAP8[$264>>0] = -1;
  20975. $265 = (($$5582770) + ($$1612)|0);
  20976. $266 = (($$5602768) + ($15)|0);
  20977. $267 = (($$4593769) + ($15)|0);
  20978. $$3617 = (($$3617771) + -1)|0;
  20979. $268 = ($$3617|0)==(0);
  20980. if ($268) {
  20981. break;
  20982. } else {
  20983. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  20984. }
  20985. }
  20986. $scevgep872 = (($$1578) + ($203)|0);
  20987. $$9586 = $scevgep872;
  20988. }
  20989. break;
  20990. }
  20991. case 4: {
  20992. if ($47) {
  20993. $$9586 = $$1578;
  20994. } else {
  20995. $200 = ($$1612|0)>(0);
  20996. $201 = Math_imul($$6620742, $$1612)|0;
  20997. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  20998. while(1) {
  20999. if ($200) {
  21000. $$11636755 = 0;
  21001. while(1) {
  21002. $269 = (($$6583761) + ($$11636755)|0);
  21003. $270 = HEAP8[$269>>0]|0;
  21004. $271 = $270&255;
  21005. $272 = (($$11636755) - ($15))|0;
  21006. $273 = (($$6603759) + ($272)|0);
  21007. $274 = HEAP8[$273>>0]|0;
  21008. $275 = $274&255;
  21009. $276 = (($$5594760) + ($$11636755)|0);
  21010. $277 = HEAP8[$276>>0]|0;
  21011. $278 = $277&255;
  21012. $279 = (($$5594760) + ($272)|0);
  21013. $280 = HEAP8[$279>>0]|0;
  21014. $281 = $280&255;
  21015. $282 = (_stbi__paeth($275,$278,$281)|0);
  21016. $283 = (($282) + ($271))|0;
  21017. $284 = $283&255;
  21018. $285 = (($$6603759) + ($$11636755)|0);
  21019. HEAP8[$285>>0] = $284;
  21020. $286 = (($$11636755) + 1)|0;
  21021. $exitcond869 = ($286|0)==($$1612|0);
  21022. if ($exitcond869) {
  21023. break;
  21024. } else {
  21025. $$11636755 = $286;
  21026. }
  21027. }
  21028. }
  21029. $287 = (($$6603759) + ($$1612)|0);
  21030. HEAP8[$287>>0] = -1;
  21031. $288 = (($$6583761) + ($$1612)|0);
  21032. $289 = (($$6603759) + ($15)|0);
  21033. $290 = (($$5594760) + ($15)|0);
  21034. $$4618 = (($$4618762) + -1)|0;
  21035. $291 = ($$4618|0)==(0);
  21036. if ($291) {
  21037. break;
  21038. } else {
  21039. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  21040. }
  21041. }
  21042. $scevgep870 = (($$1578) + ($201)|0);
  21043. $$9586 = $scevgep870;
  21044. }
  21045. break;
  21046. }
  21047. case 5: {
  21048. if ($48) {
  21049. $$9586 = $$1578;
  21050. } else {
  21051. $198 = ($$1612|0)>(0);
  21052. $199 = Math_imul($$6620742, $$1612)|0;
  21053. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  21054. while(1) {
  21055. if ($198) {
  21056. $$12747 = 0;
  21057. while(1) {
  21058. $292 = (($$7584752) + ($$12747)|0);
  21059. $293 = HEAP8[$292>>0]|0;
  21060. $294 = $293&255;
  21061. $295 = (($$12747) - ($15))|0;
  21062. $296 = (($$7604751) + ($295)|0);
  21063. $297 = HEAP8[$296>>0]|0;
  21064. $298 = $297&255;
  21065. $299 = $298 >>> 1;
  21066. $300 = (($299) + ($294))|0;
  21067. $301 = $300&255;
  21068. $302 = (($$7604751) + ($$12747)|0);
  21069. HEAP8[$302>>0] = $301;
  21070. $303 = (($$12747) + 1)|0;
  21071. $exitcond867 = ($303|0)==($$1612|0);
  21072. if ($exitcond867) {
  21073. break;
  21074. } else {
  21075. $$12747 = $303;
  21076. }
  21077. }
  21078. }
  21079. $304 = (($$7604751) + ($$1612)|0);
  21080. HEAP8[$304>>0] = -1;
  21081. $305 = (($$7584752) + ($$1612)|0);
  21082. $306 = (($$7604751) + ($15)|0);
  21083. $$5619 = (($$5619753) + -1)|0;
  21084. $307 = ($$5619|0)==(0);
  21085. if ($307) {
  21086. break;
  21087. } else {
  21088. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  21089. }
  21090. }
  21091. $scevgep868 = (($$1578) + ($199)|0);
  21092. $$9586 = $scevgep868;
  21093. }
  21094. break;
  21095. }
  21096. case 6: {
  21097. if ($49) {
  21098. $$9586 = $$1578;
  21099. } else {
  21100. $196 = ($$1612|0)>(0);
  21101. $197 = Math_imul($$6620742, $$1612)|0;
  21102. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  21103. while(1) {
  21104. if ($196) {
  21105. $$13739 = 0;
  21106. while(1) {
  21107. $308 = (($$8585744) + ($$13739)|0);
  21108. $309 = HEAP8[$308>>0]|0;
  21109. $310 = $309&255;
  21110. $311 = (($$13739) - ($15))|0;
  21111. $312 = (($$8605743) + ($311)|0);
  21112. $313 = HEAP8[$312>>0]|0;
  21113. $314 = $313&255;
  21114. $315 = (_stbi__paeth($314,0,0)|0);
  21115. $316 = (($315) + ($310))|0;
  21116. $317 = $316&255;
  21117. $318 = (($$8605743) + ($$13739)|0);
  21118. HEAP8[$318>>0] = $317;
  21119. $319 = (($$13739) + 1)|0;
  21120. $exitcond865 = ($319|0)==($$1612|0);
  21121. if ($exitcond865) {
  21122. break;
  21123. } else {
  21124. $$13739 = $319;
  21125. }
  21126. }
  21127. }
  21128. $320 = (($$8605743) + ($$1612)|0);
  21129. HEAP8[$320>>0] = -1;
  21130. $321 = (($$8585744) + ($$1612)|0);
  21131. $322 = (($$8605743) + ($15)|0);
  21132. $$6620 = (($$6620745) + -1)|0;
  21133. $323 = ($$6620|0)==(0);
  21134. if ($323) {
  21135. break;
  21136. } else {
  21137. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  21138. }
  21139. }
  21140. $scevgep866 = (($$1578) + ($197)|0);
  21141. $$9586 = $scevgep866;
  21142. }
  21143. break;
  21144. }
  21145. default: {
  21146. $$9586 = $$1578;
  21147. }
  21148. }
  21149. if ($brmerge894) {
  21150. $$11$ph = $$9586;
  21151. } else {
  21152. $324 = HEAP32[$21>>2]|0;
  21153. $325 = (($324) + ($51)|0);
  21154. $326 = (($$1612) + 1)|0;
  21155. $$7621798 = 0;$$9606799 = $325;
  21156. while(1) {
  21157. $327 = (($$9606799) + ($326)|0);
  21158. HEAP8[$327>>0] = -1;
  21159. $328 = (($$7621798) + 1)|0;
  21160. $329 = (($$9606799) + ($15)|0);
  21161. $exitcond880 = ($328|0)==($4|0);
  21162. if ($exitcond880) {
  21163. $$11$ph = $$9586;
  21164. break;
  21165. } else {
  21166. $$7621798 = $328;$$9606799 = $329;
  21167. }
  21168. }
  21169. }
  21170. }
  21171. $330 = (($$0623814) + 1)|0;
  21172. $331 = ($330>>>0)<($5>>>0);
  21173. if ($331) {
  21174. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  21175. } else {
  21176. break L18;
  21177. }
  21178. }
  21179. if ((label|0) == 16) {
  21180. ___assert_fail((10556|0),(9896|0),4315,(10511|0));
  21181. // unreachable;
  21182. }
  21183. else if ((label|0) == 58) {
  21184. ___assert_fail((10582|0),(9896|0),4377,(10511|0));
  21185. // unreachable;
  21186. }
  21187. else if ((label|0) == 105) {
  21188. _stbi__err(10599);
  21189. $$2 = 0;
  21190. return ($$2|0);
  21191. }
  21192. }
  21193. } while(0);
  21194. $332 = ($6|0)<(8);
  21195. if (!($332)) {
  21196. if (!($8)) {
  21197. $$2 = 1;
  21198. return ($$2|0);
  21199. }
  21200. $601 = Math_imul($4, $3)|0;
  21201. $602 = Math_imul($601, $5)|0;
  21202. $603 = ($602|0)==(0);
  21203. if ($603) {
  21204. $$2 = 1;
  21205. return ($$2|0);
  21206. }
  21207. $604 = HEAP32[$21>>2]|0;
  21208. $$0731 = $604;$$8622729 = 0;
  21209. while(1) {
  21210. $605 = HEAP8[$$0731>>0]|0;
  21211. $606 = $605&255;
  21212. $607 = $606 << 8;
  21213. $608 = ((($$0731)) + 1|0);
  21214. $609 = HEAP8[$608>>0]|0;
  21215. $610 = $609&255;
  21216. $611 = $607 | $610;
  21217. $612 = $611&65535;
  21218. HEAP16[$$0731>>1] = $612;
  21219. $613 = (($$8622729) + 1)|0;
  21220. $614 = ((($$0731)) + 2|0);
  21221. $exitcond = ($613|0)==($602|0);
  21222. if ($exitcond) {
  21223. $$2 = 1;
  21224. break;
  21225. } else {
  21226. $$0731 = $614;$$8622729 = $613;
  21227. }
  21228. }
  21229. return ($$2|0);
  21230. }
  21231. $333 = ($5|0)==(0);
  21232. if ($333) {
  21233. $$2 = 1;
  21234. return ($$2|0);
  21235. }
  21236. $334 = (0 - ($26))|0;
  21237. $335 = ($7|0)==(0);
  21238. $336 = (10295 + ($6)|0);
  21239. $$0568724 = (($4) + -1)|0;
  21240. $337 = ($$0568724|0)>(-1);
  21241. $$1721 = (($4) + -1)|0;
  21242. $338 = ($$1721|0)>(-1);
  21243. $339 = ($23|0)>(1);
  21244. $340 = ($23|0)>(3);
  21245. $341 = ($23|0)>(7);
  21246. $342 = (($23) + -8)|0;
  21247. $343 = $342 >>> 3;
  21248. $344 = $343 << 3;
  21249. $345 = (($344) + 8)|0;
  21250. $346 = (($342) - ($344))|0;
  21251. $347 = (($343) + ($11))|0;
  21252. $348 = (($347) + 1)|0;
  21253. $349 = (($348) - ($26))|0;
  21254. $350 = (($23) + -4)|0;
  21255. $351 = $350 >>> 2;
  21256. $352 = $351 << 2;
  21257. $353 = (($352) + 4)|0;
  21258. $354 = (($350) - ($352))|0;
  21259. $355 = (($351) + ($11))|0;
  21260. $356 = (($355) + 1)|0;
  21261. $357 = (($356) - ($26))|0;
  21262. $358 = (($23) + -2)|0;
  21263. $359 = $358 >>> 1;
  21264. $360 = $359 << 1;
  21265. $361 = (($360) + 2)|0;
  21266. $362 = (($358) - ($360))|0;
  21267. $363 = (($359) + ($11))|0;
  21268. $364 = (($363) + 1)|0;
  21269. $365 = (($364) - ($26))|0;
  21270. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  21271. L174: while(1) {
  21272. $366 = HEAP32[$21>>2]|0;
  21273. $367 = Math_imul($$1624727, $12)|0;
  21274. $368 = (($366) + ($367)|0);
  21275. $369 = (($368) + ($11)|0);
  21276. $370 = (($369) + ($334)|0);
  21277. if ($335) {
  21278. $371 = HEAP8[$336>>0]|0;
  21279. $372 = $371&255;
  21280. $377 = $372;
  21281. } else {
  21282. $377 = 1;
  21283. }
  21284. switch ($6|0) {
  21285. case 4: {
  21286. if ($339) {
  21287. $scevgep859 = (($366) + ($indvars$iv857)|0);
  21288. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  21289. while(1) {
  21290. $373 = HEAP8[$$0571715>>0]|0;
  21291. $374 = $373&255;
  21292. $375 = $374 >>> 4;
  21293. $376 = Math_imul($375, $377)|0;
  21294. $378 = $376&255;
  21295. $379 = ((($$0574714)) + 1|0);
  21296. HEAP8[$$0574714>>0] = $378;
  21297. $380 = HEAP8[$$0571715>>0]|0;
  21298. $381 = $380 & 15;
  21299. $382 = $381&255;
  21300. $383 = Math_imul($382, $377)|0;
  21301. $384 = $383&255;
  21302. $385 = ((($$0574714)) + 2|0);
  21303. HEAP8[$379>>0] = $384;
  21304. $386 = (($$14713) + -2)|0;
  21305. $387 = ((($$0571715)) + 1|0);
  21306. $388 = ($386|0)>(1);
  21307. if ($388) {
  21308. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  21309. } else {
  21310. break;
  21311. }
  21312. }
  21313. $scevgep862 = (($366) + ($indvars$iv860)|0);
  21314. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  21315. } else {
  21316. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  21317. }
  21318. $389 = ($$14$lcssa|0)==(1);
  21319. if ($389) {
  21320. $390 = HEAP8[$$0571$lcssa>>0]|0;
  21321. $391 = $390&255;
  21322. $392 = $391 >>> 4;
  21323. $393 = Math_imul($392, $377)|0;
  21324. $394 = $393&255;
  21325. HEAP8[$$0574$lcssa>>0] = $394;
  21326. }
  21327. break;
  21328. }
  21329. case 2: {
  21330. if ($340) {
  21331. $scevgep853 = (($366) + ($indvars$iv851)|0);
  21332. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  21333. while(1) {
  21334. $395 = HEAP8[$$1572707>>0]|0;
  21335. $396 = $395&255;
  21336. $397 = $396 >>> 6;
  21337. $398 = Math_imul($397, $377)|0;
  21338. $399 = $398&255;
  21339. $400 = ((($$1575706)) + 1|0);
  21340. HEAP8[$$1575706>>0] = $399;
  21341. $401 = HEAP8[$$1572707>>0]|0;
  21342. $402 = $401&255;
  21343. $403 = $402 >>> 4;
  21344. $404 = $403 & 3;
  21345. $405 = Math_imul($404, $377)|0;
  21346. $406 = $405&255;
  21347. $407 = ((($$1575706)) + 2|0);
  21348. HEAP8[$400>>0] = $406;
  21349. $408 = HEAP8[$$1572707>>0]|0;
  21350. $409 = $408&255;
  21351. $410 = $409 >>> 2;
  21352. $411 = $410 & 3;
  21353. $412 = Math_imul($411, $377)|0;
  21354. $413 = $412&255;
  21355. $414 = ((($$1575706)) + 3|0);
  21356. HEAP8[$407>>0] = $413;
  21357. $415 = HEAP8[$$1572707>>0]|0;
  21358. $416 = $415 & 3;
  21359. $417 = $416&255;
  21360. $418 = Math_imul($417, $377)|0;
  21361. $419 = $418&255;
  21362. $420 = ((($$1575706)) + 4|0);
  21363. HEAP8[$414>>0] = $419;
  21364. $421 = (($$15705) + -4)|0;
  21365. $422 = ((($$1572707)) + 1|0);
  21366. $423 = ($421|0)>(3);
  21367. if ($423) {
  21368. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  21369. } else {
  21370. break;
  21371. }
  21372. }
  21373. $scevgep856 = (($366) + ($indvars$iv854)|0);
  21374. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  21375. } else {
  21376. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  21377. }
  21378. $424 = ($$15$lcssa|0)>(0);
  21379. if ($424) {
  21380. $425 = HEAP8[$$1572$lcssa>>0]|0;
  21381. $426 = $425&255;
  21382. $427 = $426 >>> 6;
  21383. $428 = Math_imul($427, $377)|0;
  21384. $429 = $428&255;
  21385. HEAP8[$$1575$lcssa>>0] = $429;
  21386. $430 = ($$15$lcssa|0)==(1);
  21387. if (!($430)) {
  21388. $431 = ((($$1575$lcssa)) + 1|0);
  21389. $432 = HEAP8[$$1572$lcssa>>0]|0;
  21390. $433 = $432&255;
  21391. $434 = $433 >>> 4;
  21392. $435 = $434 & 3;
  21393. $436 = Math_imul($435, $377)|0;
  21394. $437 = $436&255;
  21395. HEAP8[$431>>0] = $437;
  21396. $438 = ($$15$lcssa|0)>(2);
  21397. if ($438) {
  21398. $439 = ((($$1575$lcssa)) + 2|0);
  21399. $440 = HEAP8[$$1572$lcssa>>0]|0;
  21400. $441 = $440&255;
  21401. $442 = $441 >>> 2;
  21402. $443 = $442 & 3;
  21403. $444 = Math_imul($443, $377)|0;
  21404. $445 = $444&255;
  21405. HEAP8[$439>>0] = $445;
  21406. }
  21407. }
  21408. }
  21409. break;
  21410. }
  21411. case 1: {
  21412. if ($341) {
  21413. $scevgep = (($366) + ($indvars$iv)|0);
  21414. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  21415. while(1) {
  21416. $446 = HEAP8[$$2573702>>0]|0;
  21417. $447 = $446&255;
  21418. $448 = $447 >>> 7;
  21419. $449 = (0 - ($448))|0;
  21420. $450 = $377 & $449;
  21421. $451 = $450&255;
  21422. $452 = ((($$4701)) + 1|0);
  21423. HEAP8[$$4701>>0] = $451;
  21424. $453 = HEAP8[$$2573702>>0]|0;
  21425. $454 = $453&255;
  21426. $455 = $454 >>> 6;
  21427. $456 = $455 & 1;
  21428. $457 = (0 - ($456))|0;
  21429. $458 = $377 & $457;
  21430. $459 = $458&255;
  21431. $460 = ((($$4701)) + 2|0);
  21432. HEAP8[$452>>0] = $459;
  21433. $461 = HEAP8[$$2573702>>0]|0;
  21434. $462 = $461&255;
  21435. $463 = $462 >>> 5;
  21436. $464 = $463 & 1;
  21437. $465 = (0 - ($464))|0;
  21438. $466 = $377 & $465;
  21439. $467 = $466&255;
  21440. $468 = ((($$4701)) + 3|0);
  21441. HEAP8[$460>>0] = $467;
  21442. $469 = HEAP8[$$2573702>>0]|0;
  21443. $470 = $469&255;
  21444. $471 = $470 >>> 4;
  21445. $472 = $471 & 1;
  21446. $473 = (0 - ($472))|0;
  21447. $474 = $377 & $473;
  21448. $475 = $474&255;
  21449. $476 = ((($$4701)) + 4|0);
  21450. HEAP8[$468>>0] = $475;
  21451. $477 = HEAP8[$$2573702>>0]|0;
  21452. $478 = $477&255;
  21453. $479 = $478 >>> 3;
  21454. $480 = $479 & 1;
  21455. $481 = (0 - ($480))|0;
  21456. $482 = $377 & $481;
  21457. $483 = $482&255;
  21458. $484 = ((($$4701)) + 5|0);
  21459. HEAP8[$476>>0] = $483;
  21460. $485 = HEAP8[$$2573702>>0]|0;
  21461. $486 = $485&255;
  21462. $487 = $486 >>> 2;
  21463. $488 = $487 & 1;
  21464. $489 = (0 - ($488))|0;
  21465. $490 = $377 & $489;
  21466. $491 = $490&255;
  21467. $492 = ((($$4701)) + 6|0);
  21468. HEAP8[$484>>0] = $491;
  21469. $493 = HEAP8[$$2573702>>0]|0;
  21470. $494 = $493&255;
  21471. $495 = $494 >>> 1;
  21472. $496 = $495 & 1;
  21473. $497 = (0 - ($496))|0;
  21474. $498 = $377 & $497;
  21475. $499 = $498&255;
  21476. $500 = ((($$4701)) + 7|0);
  21477. HEAP8[$492>>0] = $499;
  21478. $501 = HEAP8[$$2573702>>0]|0;
  21479. $502 = $501 & 1;
  21480. $503 = $502&255;
  21481. $504 = (0 - ($503))|0;
  21482. $505 = $377 & $504;
  21483. $506 = $505&255;
  21484. $507 = ((($$4701)) + 8|0);
  21485. HEAP8[$500>>0] = $506;
  21486. $508 = (($$16700) + -8)|0;
  21487. $509 = ((($$2573702)) + 1|0);
  21488. $510 = ($508|0)>(7);
  21489. if ($510) {
  21490. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  21491. } else {
  21492. break;
  21493. }
  21494. }
  21495. $scevgep850 = (($366) + ($indvars$iv848)|0);
  21496. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  21497. } else {
  21498. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  21499. }
  21500. $511 = ($$16$lcssa|0)>(0);
  21501. if ($511) {
  21502. $512 = HEAP8[$$2573$lcssa>>0]|0;
  21503. $513 = $512&255;
  21504. $514 = $513 >>> 7;
  21505. $515 = (0 - ($514))|0;
  21506. $516 = $377 & $515;
  21507. $517 = $516&255;
  21508. HEAP8[$$4$lcssa>>0] = $517;
  21509. $518 = ($$16$lcssa|0)==(1);
  21510. if (!($518)) {
  21511. $519 = ((($$4$lcssa)) + 1|0);
  21512. $520 = HEAP8[$$2573$lcssa>>0]|0;
  21513. $521 = $520&255;
  21514. $522 = $521 >>> 6;
  21515. $523 = $522 & 1;
  21516. $524 = (0 - ($523))|0;
  21517. $525 = $377 & $524;
  21518. $526 = $525&255;
  21519. HEAP8[$519>>0] = $526;
  21520. $527 = ($$16$lcssa|0)>(2);
  21521. if ($527) {
  21522. $528 = ((($$4$lcssa)) + 2|0);
  21523. $529 = HEAP8[$$2573$lcssa>>0]|0;
  21524. $530 = $529&255;
  21525. $531 = $530 >>> 5;
  21526. $532 = $531 & 1;
  21527. $533 = (0 - ($532))|0;
  21528. $534 = $377 & $533;
  21529. $535 = $534&255;
  21530. HEAP8[$528>>0] = $535;
  21531. $536 = ($$16$lcssa|0)==(3);
  21532. if (!($536)) {
  21533. $537 = ((($$4$lcssa)) + 3|0);
  21534. $538 = HEAP8[$$2573$lcssa>>0]|0;
  21535. $539 = $538&255;
  21536. $540 = $539 >>> 4;
  21537. $541 = $540 & 1;
  21538. $542 = (0 - ($541))|0;
  21539. $543 = $377 & $542;
  21540. $544 = $543&255;
  21541. HEAP8[$537>>0] = $544;
  21542. $545 = ($$16$lcssa|0)>(4);
  21543. if ($545) {
  21544. $546 = ((($$4$lcssa)) + 4|0);
  21545. $547 = HEAP8[$$2573$lcssa>>0]|0;
  21546. $548 = $547&255;
  21547. $549 = $548 >>> 3;
  21548. $550 = $549 & 1;
  21549. $551 = (0 - ($550))|0;
  21550. $552 = $377 & $551;
  21551. $553 = $552&255;
  21552. HEAP8[$546>>0] = $553;
  21553. $554 = ($$16$lcssa|0)==(5);
  21554. if (!($554)) {
  21555. $555 = ((($$4$lcssa)) + 5|0);
  21556. $556 = HEAP8[$$2573$lcssa>>0]|0;
  21557. $557 = $556&255;
  21558. $558 = $557 >>> 2;
  21559. $559 = $558 & 1;
  21560. $560 = (0 - ($559))|0;
  21561. $561 = $377 & $560;
  21562. $562 = $561&255;
  21563. HEAP8[$555>>0] = $562;
  21564. $563 = ($$16$lcssa|0)>(6);
  21565. if ($563) {
  21566. $564 = ((($$4$lcssa)) + 6|0);
  21567. $565 = HEAP8[$$2573$lcssa>>0]|0;
  21568. $566 = $565&255;
  21569. $567 = $566 >>> 1;
  21570. $568 = $567 & 1;
  21571. $569 = (0 - ($568))|0;
  21572. $570 = $377 & $569;
  21573. $571 = $570&255;
  21574. HEAP8[$564>>0] = $571;
  21575. }
  21576. }
  21577. }
  21578. }
  21579. }
  21580. }
  21581. }
  21582. break;
  21583. }
  21584. default: {
  21585. }
  21586. }
  21587. L213: do {
  21588. if (!($17)) {
  21589. $572 = HEAP32[$21>>2]|0;
  21590. $573 = (($572) + ($367)|0);
  21591. switch ($14|0) {
  21592. case 1: {
  21593. if ($337) {
  21594. $$0568725 = $$0568724;
  21595. } else {
  21596. break L213;
  21597. }
  21598. while(1) {
  21599. $574 = $$0568725 << 1;
  21600. $575 = $574 | 1;
  21601. $576 = (($573) + ($575)|0);
  21602. HEAP8[$576>>0] = -1;
  21603. $577 = (($573) + ($$0568725)|0);
  21604. $578 = HEAP8[$577>>0]|0;
  21605. $579 = (($573) + ($574)|0);
  21606. HEAP8[$579>>0] = $578;
  21607. $$0568 = (($$0568725) + -1)|0;
  21608. $580 = ($$0568|0)>(-1);
  21609. if ($580) {
  21610. $$0568725 = $$0568;
  21611. } else {
  21612. break;
  21613. }
  21614. }
  21615. break;
  21616. }
  21617. case 3: {
  21618. if ($338) {
  21619. $$1722 = $$1721;
  21620. } else {
  21621. break L213;
  21622. }
  21623. while(1) {
  21624. $581 = $$1722 << 2;
  21625. $582 = $581 | 3;
  21626. $583 = (($573) + ($582)|0);
  21627. HEAP8[$583>>0] = -1;
  21628. $584 = ($$1722*3)|0;
  21629. $585 = (($584) + 2)|0;
  21630. $586 = (($573) + ($585)|0);
  21631. $587 = HEAP8[$586>>0]|0;
  21632. $588 = $581 | 2;
  21633. $589 = (($573) + ($588)|0);
  21634. HEAP8[$589>>0] = $587;
  21635. $590 = (($584) + 1)|0;
  21636. $591 = (($573) + ($590)|0);
  21637. $592 = HEAP8[$591>>0]|0;
  21638. $593 = $581 | 1;
  21639. $594 = (($573) + ($593)|0);
  21640. HEAP8[$594>>0] = $592;
  21641. $595 = (($573) + ($584)|0);
  21642. $596 = HEAP8[$595>>0]|0;
  21643. $597 = (($573) + ($581)|0);
  21644. HEAP8[$597>>0] = $596;
  21645. $$1 = (($$1722) + -1)|0;
  21646. $598 = ($$1|0)>(-1);
  21647. if ($598) {
  21648. $$1722 = $$1;
  21649. } else {
  21650. break;
  21651. }
  21652. }
  21653. break;
  21654. }
  21655. default: {
  21656. label = 144;
  21657. break L174;
  21658. }
  21659. }
  21660. }
  21661. } while(0);
  21662. $599 = (($$1624727) + 1)|0;
  21663. $600 = ($599>>>0)<($5>>>0);
  21664. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  21665. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  21666. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  21667. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  21668. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  21669. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  21670. if ($600) {
  21671. $$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;
  21672. } else {
  21673. $$2 = 1;
  21674. label = 151;
  21675. break;
  21676. }
  21677. }
  21678. if ((label|0) == 144) {
  21679. ___assert_fail((10614|0),(9896|0),4466,(10511|0));
  21680. // unreachable;
  21681. }
  21682. else if ((label|0) == 151) {
  21683. return ($$2|0);
  21684. }
  21685. return (0)|0;
  21686. }
  21687. function _stbi__paeth($0,$1,$2) {
  21688. $0 = $0|0;
  21689. $1 = $1|0;
  21690. $2 = $2|0;
  21691. 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;
  21692. var label = 0, sp = 0;
  21693. sp = STACKTOP;
  21694. $3 = (($1) + ($0))|0;
  21695. $4 = (($3) - ($2))|0;
  21696. $5 = (($4) - ($0))|0;
  21697. $ispos = ($5|0)>(-1);
  21698. $neg = (0 - ($5))|0;
  21699. $6 = $ispos ? $5 : $neg;
  21700. $7 = (($4) - ($1))|0;
  21701. $ispos26 = ($7|0)>(-1);
  21702. $neg27 = (0 - ($7))|0;
  21703. $8 = $ispos26 ? $7 : $neg27;
  21704. $9 = (($4) - ($2))|0;
  21705. $ispos28 = ($9|0)>(-1);
  21706. $neg29 = (0 - ($9))|0;
  21707. $10 = $ispos28 ? $9 : $neg29;
  21708. $11 = ($6|0)>($8|0);
  21709. $12 = ($6|0)>($10|0);
  21710. $or$cond = $11 | $12;
  21711. $13 = ($8|0)>($10|0);
  21712. $$ = $13 ? $2 : $1;
  21713. $$0 = $or$cond ? $$ : $0;
  21714. return ($$0|0);
  21715. }
  21716. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  21717. $0 = $0|0;
  21718. $1 = $1|0;
  21719. $2 = $2|0;
  21720. $3 = $3|0;
  21721. $4 = $4|0;
  21722. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21723. sp = STACKTOP;
  21724. $5 = ((($0)) + 20|0);
  21725. HEAP32[$5>>2] = $1;
  21726. $6 = ((($0)) + 16|0);
  21727. HEAP32[$6>>2] = $1;
  21728. $7 = (($1) + ($2)|0);
  21729. $8 = ((($0)) + 24|0);
  21730. HEAP32[$8>>2] = $7;
  21731. $9 = ((($0)) + 28|0);
  21732. HEAP32[$9>>2] = $3;
  21733. $10 = (_stbi__parse_zlib($0,$4)|0);
  21734. return ($10|0);
  21735. }
  21736. function _stbi__parse_zlib($0,$1) {
  21737. $0 = $0|0;
  21738. $1 = $1|0;
  21739. 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;
  21740. var $9 = 0, label = 0, sp = 0;
  21741. sp = STACKTOP;
  21742. $2 = ($1|0)==(0);
  21743. if (!($2)) {
  21744. $3 = (_stbi__parse_zlib_header($0)|0);
  21745. $4 = ($3|0)==(0);
  21746. if ($4) {
  21747. $$0 = 0;
  21748. return ($$0|0);
  21749. }
  21750. }
  21751. $5 = ((($0)) + 8|0);
  21752. HEAP32[$5>>2] = 0;
  21753. $6 = ((($0)) + 12|0);
  21754. HEAP32[$6>>2] = 0;
  21755. $7 = ((($0)) + 32|0);
  21756. $8 = ((($0)) + 2052|0);
  21757. L5: while(1) {
  21758. $9 = (_stbi__zreceive($0,1)|0);
  21759. $10 = (_stbi__zreceive($0,2)|0);
  21760. switch ($10|0) {
  21761. case 3: {
  21762. $$0 = 0;
  21763. label = 11;
  21764. break L5;
  21765. break;
  21766. }
  21767. case 0: {
  21768. $11 = (_stbi__parse_uncompressed_block($0)|0);
  21769. $12 = ($11|0)==(0);
  21770. if ($12) {
  21771. $$0 = 0;
  21772. label = 11;
  21773. break L5;
  21774. }
  21775. break;
  21776. }
  21777. case 1: {
  21778. $13 = (_stbi__zbuild_huffman($7,10625,288)|0);
  21779. $14 = ($13|0)==(0);
  21780. if ($14) {
  21781. $$0 = 0;
  21782. label = 11;
  21783. break L5;
  21784. }
  21785. $15 = (_stbi__zbuild_huffman($8,10913,32)|0);
  21786. $16 = ($15|0)==(0);
  21787. if ($16) {
  21788. $$0 = 0;
  21789. label = 11;
  21790. break L5;
  21791. } else {
  21792. label = 9;
  21793. }
  21794. break;
  21795. }
  21796. default: {
  21797. $17 = (_stbi__compute_huffman_codes($0)|0);
  21798. $18 = ($17|0)==(0);
  21799. if ($18) {
  21800. $$0 = 0;
  21801. label = 11;
  21802. break L5;
  21803. } else {
  21804. label = 9;
  21805. }
  21806. }
  21807. }
  21808. if ((label|0) == 9) {
  21809. label = 0;
  21810. $19 = (_stbi__parse_huffman_block($0)|0);
  21811. $20 = ($19|0)==(0);
  21812. if ($20) {
  21813. $$0 = 0;
  21814. label = 11;
  21815. break;
  21816. }
  21817. }
  21818. $21 = ($9|0)==(0);
  21819. if (!($21)) {
  21820. $$0 = 1;
  21821. label = 11;
  21822. break;
  21823. }
  21824. }
  21825. if ((label|0) == 11) {
  21826. return ($$0|0);
  21827. }
  21828. return (0)|0;
  21829. }
  21830. function _stbi__parse_zlib_header($0) {
  21831. $0 = $0|0;
  21832. 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;
  21833. sp = STACKTOP;
  21834. $1 = (_stbi__zget8($0)|0);
  21835. $2 = $1&255;
  21836. $3 = $2 & 15;
  21837. $4 = (_stbi__zget8($0)|0);
  21838. $5 = $4&255;
  21839. $6 = $2 << 8;
  21840. $7 = $6 | $5;
  21841. $8 = (($7>>>0) % 31)&-1;
  21842. $9 = ($8|0)==(0);
  21843. if (!($9)) {
  21844. _stbi__err(11260);
  21845. $$0 = 0;
  21846. return ($$0|0);
  21847. }
  21848. $10 = $5 & 32;
  21849. $11 = ($10|0)==(0);
  21850. if (!($11)) {
  21851. _stbi__err(11276);
  21852. $$0 = 0;
  21853. return ($$0|0);
  21854. }
  21855. $12 = ($3|0)==(8);
  21856. if ($12) {
  21857. $$0 = 1;
  21858. return ($$0|0);
  21859. }
  21860. _stbi__err(11291);
  21861. $$0 = 0;
  21862. return ($$0|0);
  21863. }
  21864. function _stbi__zreceive($0,$1) {
  21865. $0 = $0|0;
  21866. $1 = $1|0;
  21867. 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;
  21868. sp = STACKTOP;
  21869. $2 = ((($0)) + 8|0);
  21870. $3 = HEAP32[$2>>2]|0;
  21871. $4 = ($3|0)<($1|0);
  21872. if ($4) {
  21873. _stbi__fill_bits($0);
  21874. }
  21875. $5 = ((($0)) + 12|0);
  21876. $6 = HEAP32[$5>>2]|0;
  21877. $7 = 1 << $1;
  21878. $8 = (($7) + -1)|0;
  21879. $9 = $6 & $8;
  21880. $10 = $6 >>> $1;
  21881. HEAP32[$5>>2] = $10;
  21882. $11 = HEAP32[$2>>2]|0;
  21883. $12 = (($11) - ($1))|0;
  21884. HEAP32[$2>>2] = $12;
  21885. return ($9|0);
  21886. }
  21887. function _stbi__parse_uncompressed_block($0) {
  21888. $0 = $0|0;
  21889. 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;
  21890. 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;
  21891. 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;
  21892. 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;
  21893. sp = STACKTOP;
  21894. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  21895. $1 = sp;
  21896. $2 = ((($0)) + 8|0);
  21897. $3 = HEAP32[$2>>2]|0;
  21898. $4 = $3 & 7;
  21899. $5 = ($4|0)==(0);
  21900. if ($5) {
  21901. $$ph = $3;
  21902. } else {
  21903. (_stbi__zreceive($0,$4)|0);
  21904. $$pr = HEAP32[$2>>2]|0;
  21905. $$ph = $$pr;
  21906. }
  21907. $6 = ($$ph|0)>(0);
  21908. if ($6) {
  21909. $7 = ((($0)) + 12|0);
  21910. $$promoted = HEAP32[$7>>2]|0;
  21911. $8 = $$ph ^ -1;
  21912. $9 = ($8|0)>(-9);
  21913. $smax = $9 ? $8 : -9;
  21914. $10 = (($$ph) + ($smax))|0;
  21915. $11 = (($10) + 8)|0;
  21916. $12 = $11 >>> 3;
  21917. $13 = (($12) + 1)|0;
  21918. $14 = $12 << 3;
  21919. $$037 = 0;$16 = $$promoted;
  21920. while(1) {
  21921. $15 = $16&255;
  21922. $17 = (($$037) + 1)|0;
  21923. $18 = (($1) + ($$037)|0);
  21924. HEAP8[$18>>0] = $15;
  21925. $19 = $16 >>> 8;
  21926. $exitcond47 = ($17|0)==($13|0);
  21927. if ($exitcond47) {
  21928. break;
  21929. } else {
  21930. $$037 = $17;$16 = $19;
  21931. }
  21932. }
  21933. $20 = (($$ph) + -8)|0;
  21934. $21 = (($20) - ($14))|0;
  21935. HEAP32[$7>>2] = $19;
  21936. HEAP32[$2>>2] = $21;
  21937. $$0$lcssa = $13;$$lcssa = $21;
  21938. } else {
  21939. $$0$lcssa = 0;$$lcssa = $$ph;
  21940. }
  21941. $22 = ($$lcssa|0)==(0);
  21942. if (!($22)) {
  21943. ___assert_fail((11182|0),(9896|0),4033,(11199|0));
  21944. // unreachable;
  21945. }
  21946. $23 = ($$0$lcssa|0)<(4);
  21947. if ($23) {
  21948. $$136 = $$0$lcssa;
  21949. while(1) {
  21950. $24 = (_stbi__zget8($0)|0);
  21951. $25 = (($$136) + 1)|0;
  21952. $26 = (($1) + ($$136)|0);
  21953. HEAP8[$26>>0] = $24;
  21954. $exitcond = ($25|0)==(4);
  21955. if ($exitcond) {
  21956. break;
  21957. } else {
  21958. $$136 = $25;
  21959. }
  21960. }
  21961. }
  21962. $27 = ((($1)) + 1|0);
  21963. $28 = HEAP8[$27>>0]|0;
  21964. $29 = $28&255;
  21965. $30 = $29 << 8;
  21966. $31 = HEAP8[$1>>0]|0;
  21967. $32 = $31&255;
  21968. $33 = $30 | $32;
  21969. $34 = ((($1)) + 3|0);
  21970. $35 = HEAP8[$34>>0]|0;
  21971. $36 = $35&255;
  21972. $37 = $36 << 8;
  21973. $38 = ((($1)) + 2|0);
  21974. $39 = HEAP8[$38>>0]|0;
  21975. $40 = $39&255;
  21976. $41 = $37 | $40;
  21977. $42 = $33 ^ 65535;
  21978. $43 = ($41|0)==($42|0);
  21979. if (!($43)) {
  21980. _stbi__err(11230);
  21981. $$034 = 0;
  21982. STACKTOP = sp;return ($$034|0);
  21983. }
  21984. $44 = HEAP32[$0>>2]|0;
  21985. $45 = (($44) + ($33)|0);
  21986. $46 = ((($0)) + 4|0);
  21987. $47 = HEAP32[$46>>2]|0;
  21988. $48 = ($45>>>0)>($47>>>0);
  21989. if ($48) {
  21990. _stbi__err(11243);
  21991. $$034 = 0;
  21992. STACKTOP = sp;return ($$034|0);
  21993. }
  21994. $49 = ((($0)) + 16|0);
  21995. $50 = HEAP32[$49>>2]|0;
  21996. $51 = (($50) + ($33)|0);
  21997. $52 = ((($0)) + 24|0);
  21998. $53 = HEAP32[$52>>2]|0;
  21999. $54 = ($51>>>0)>($53>>>0);
  22000. if ($54) {
  22001. $55 = (_stbi__zexpand($0,$50,$33)|0);
  22002. $56 = ($55|0)==(0);
  22003. if ($56) {
  22004. $$034 = 0;
  22005. STACKTOP = sp;return ($$034|0);
  22006. }
  22007. }
  22008. $57 = HEAP32[$49>>2]|0;
  22009. $58 = HEAP32[$0>>2]|0;
  22010. _memcpy(($57|0),($58|0),($33|0))|0;
  22011. $59 = HEAP32[$0>>2]|0;
  22012. $60 = (($59) + ($33)|0);
  22013. HEAP32[$0>>2] = $60;
  22014. $61 = HEAP32[$49>>2]|0;
  22015. $62 = (($61) + ($33)|0);
  22016. HEAP32[$49>>2] = $62;
  22017. $$034 = 1;
  22018. STACKTOP = sp;return ($$034|0);
  22019. }
  22020. function _stbi__zbuild_huffman($0,$1,$2) {
  22021. $0 = $0|0;
  22022. $1 = $1|0;
  22023. $2 = $2|0;
  22024. 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;
  22025. 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;
  22026. 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;
  22027. 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;
  22028. 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;
  22029. 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;
  22030. sp = STACKTOP;
  22031. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  22032. $3 = sp + 72|0;
  22033. $4 = sp;
  22034. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  22035. _memset(($0|0),0,1024)|0;
  22036. $5 = ($2|0)>(0);
  22037. if ($5) {
  22038. $$07688 = 0;
  22039. while(1) {
  22040. $6 = (($1) + ($$07688)|0);
  22041. $7 = HEAP8[$6>>0]|0;
  22042. $8 = $7&255;
  22043. $9 = (($4) + ($8<<2)|0);
  22044. $10 = HEAP32[$9>>2]|0;
  22045. $11 = (($10) + 1)|0;
  22046. HEAP32[$9>>2] = $11;
  22047. $12 = (($$07688) + 1)|0;
  22048. $exitcond91 = ($12|0)==($2|0);
  22049. if ($exitcond91) {
  22050. break;
  22051. } else {
  22052. $$07688 = $12;
  22053. }
  22054. }
  22055. }
  22056. HEAP32[$4>>2] = 0;
  22057. $16 = ((($4)) + 4|0);
  22058. $17 = HEAP32[$16>>2]|0;
  22059. $18 = ($17|0)>(2);
  22060. if (!($18)) {
  22061. $13 = ((($4)) + 8|0);
  22062. $14 = HEAP32[$13>>2]|0;
  22063. $15 = ($14|0)>(4);
  22064. if (!($15)) {
  22065. $69 = ((($4)) + 12|0);
  22066. $70 = HEAP32[$69>>2]|0;
  22067. $71 = ($70|0)>(8);
  22068. if (!($71)) {
  22069. $72 = ((($4)) + 16|0);
  22070. $73 = HEAP32[$72>>2]|0;
  22071. $74 = ($73|0)>(16);
  22072. if (!($74)) {
  22073. $75 = ((($4)) + 20|0);
  22074. $76 = HEAP32[$75>>2]|0;
  22075. $77 = ($76|0)>(32);
  22076. if (!($77)) {
  22077. $78 = ((($4)) + 24|0);
  22078. $79 = HEAP32[$78>>2]|0;
  22079. $80 = ($79|0)>(64);
  22080. if (!($80)) {
  22081. $81 = ((($4)) + 28|0);
  22082. $82 = HEAP32[$81>>2]|0;
  22083. $83 = ($82|0)>(128);
  22084. if (!($83)) {
  22085. $84 = ((($4)) + 32|0);
  22086. $85 = HEAP32[$84>>2]|0;
  22087. $86 = ($85|0)>(256);
  22088. if (!($86)) {
  22089. $87 = ((($4)) + 36|0);
  22090. $88 = HEAP32[$87>>2]|0;
  22091. $89 = ($88|0)>(512);
  22092. if (!($89)) {
  22093. $90 = ((($4)) + 40|0);
  22094. $91 = HEAP32[$90>>2]|0;
  22095. $92 = ($91|0)>(1024);
  22096. if (!($92)) {
  22097. $93 = ((($4)) + 44|0);
  22098. $94 = HEAP32[$93>>2]|0;
  22099. $95 = ($94|0)>(2048);
  22100. if (!($95)) {
  22101. $96 = ((($4)) + 48|0);
  22102. $97 = HEAP32[$96>>2]|0;
  22103. $98 = ($97|0)>(4096);
  22104. if (!($98)) {
  22105. $99 = ((($4)) + 52|0);
  22106. $100 = HEAP32[$99>>2]|0;
  22107. $101 = ($100|0)>(8192);
  22108. if (!($101)) {
  22109. $102 = ((($4)) + 56|0);
  22110. $103 = HEAP32[$102>>2]|0;
  22111. $104 = ($103|0)>(16384);
  22112. if (!($104)) {
  22113. $105 = ((($4)) + 60|0);
  22114. $106 = HEAP32[$105>>2]|0;
  22115. $107 = ($106|0)>(32768);
  22116. if (!($107)) {
  22117. $$07785 = 0;$$07884 = 0;$$286 = 1;
  22118. while(1) {
  22119. $19 = (($3) + ($$286<<2)|0);
  22120. HEAP32[$19>>2] = $$07884;
  22121. $20 = $$07884&65535;
  22122. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  22123. HEAP16[$21>>1] = $20;
  22124. $22 = $$07785&65535;
  22125. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  22126. HEAP16[$23>>1] = $22;
  22127. $24 = (($4) + ($$286<<2)|0);
  22128. $25 = HEAP32[$24>>2]|0;
  22129. $26 = (($25) + ($$07884))|0;
  22130. $27 = ($25|0)!=(0);
  22131. $28 = 1 << $$286;
  22132. $29 = ($26|0)>($28|0);
  22133. $or$cond = $27 & $29;
  22134. if ($or$cond) {
  22135. label = 7;
  22136. break;
  22137. }
  22138. $30 = (16 - ($$286))|0;
  22139. $31 = $26 << $30;
  22140. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  22141. HEAP32[$32>>2] = $31;
  22142. $33 = $26 << 1;
  22143. $34 = (($25) + ($$07785))|0;
  22144. $35 = (($$286) + 1)|0;
  22145. $36 = ($35|0)<(16);
  22146. if ($36) {
  22147. $$07785 = $34;$$07884 = $33;$$286 = $35;
  22148. } else {
  22149. break;
  22150. }
  22151. }
  22152. if ((label|0) == 7) {
  22153. _stbi__err(11120);
  22154. $$075 = 0;
  22155. STACKTOP = sp;return ($$075|0);
  22156. }
  22157. $37 = ((($0)) + 1120|0);
  22158. HEAP32[$37>>2] = 65536;
  22159. $38 = ($2|0)>(0);
  22160. if ($38) {
  22161. $$382 = 0;
  22162. } else {
  22163. $$075 = 1;
  22164. STACKTOP = sp;return ($$075|0);
  22165. }
  22166. while(1) {
  22167. $39 = (($1) + ($$382)|0);
  22168. $40 = HEAP8[$39>>0]|0;
  22169. $41 = $40&255;
  22170. $42 = ($40<<24>>24)==(0);
  22171. if (!($42)) {
  22172. $43 = (($3) + ($41<<2)|0);
  22173. $44 = HEAP32[$43>>2]|0;
  22174. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  22175. $46 = HEAP16[$45>>1]|0;
  22176. $47 = $46&65535;
  22177. $48 = (($44) - ($47))|0;
  22178. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  22179. $50 = HEAP16[$49>>1]|0;
  22180. $51 = $50&65535;
  22181. $52 = (($48) + ($51))|0;
  22182. $53 = $41 << 9;
  22183. $54 = $53 | $$382;
  22184. $55 = $54&65535;
  22185. $56 = (((($0)) + 1156|0) + ($52)|0);
  22186. HEAP8[$56>>0] = $40;
  22187. $57 = $$382&65535;
  22188. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  22189. HEAP16[$58>>1] = $57;
  22190. $59 = ($40&255)<(10);
  22191. do {
  22192. if ($59) {
  22193. $60 = (_stbi__bit_reverse($44,$41)|0);
  22194. $61 = ($60|0)<(512);
  22195. if (!($61)) {
  22196. break;
  22197. }
  22198. $62 = 1 << $41;
  22199. $$081 = $60;
  22200. while(1) {
  22201. $63 = (($0) + ($$081<<1)|0);
  22202. HEAP16[$63>>1] = $55;
  22203. $64 = (($$081) + ($62))|0;
  22204. $65 = ($64|0)<(512);
  22205. if ($65) {
  22206. $$081 = $64;
  22207. } else {
  22208. break;
  22209. }
  22210. }
  22211. }
  22212. } while(0);
  22213. $66 = HEAP32[$43>>2]|0;
  22214. $67 = (($66) + 1)|0;
  22215. HEAP32[$43>>2] = $67;
  22216. }
  22217. $68 = (($$382) + 1)|0;
  22218. $exitcond = ($68|0)==($2|0);
  22219. if ($exitcond) {
  22220. $$075 = 1;
  22221. break;
  22222. } else {
  22223. $$382 = $68;
  22224. }
  22225. }
  22226. STACKTOP = sp;return ($$075|0);
  22227. }
  22228. }
  22229. }
  22230. }
  22231. }
  22232. }
  22233. }
  22234. }
  22235. }
  22236. }
  22237. }
  22238. }
  22239. }
  22240. }
  22241. }
  22242. _stbi__err(11172);
  22243. $$075 = 0;
  22244. STACKTOP = sp;return ($$075|0);
  22245. }
  22246. function _stbi__compute_huffman_codes($0) {
  22247. $0 = $0|0;
  22248. 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;
  22249. 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;
  22250. 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;
  22251. var label = 0, sp = 0, stop = 0;
  22252. sp = STACKTOP;
  22253. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  22254. $1 = sp;
  22255. $2 = sp + 2039|0;
  22256. $3 = sp + 2020|0;
  22257. $4 = (_stbi__zreceive($0,5)|0);
  22258. $5 = (($4) + 257)|0;
  22259. $6 = (_stbi__zreceive($0,5)|0);
  22260. $7 = (($6) + 1)|0;
  22261. $8 = (_stbi__zreceive($0,4)|0);
  22262. $9 = (($8) + 4)|0;
  22263. $10 = (($7) + ($5))|0;
  22264. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22265. $11 = ($9|0)>(0);
  22266. if ($11) {
  22267. $$06579 = 0;
  22268. while(1) {
  22269. $12 = (_stbi__zreceive($0,3)|0);
  22270. $13 = $12&255;
  22271. $14 = (11966 + ($$06579)|0);
  22272. $15 = HEAP8[$14>>0]|0;
  22273. $16 = $15&255;
  22274. $17 = (($3) + ($16)|0);
  22275. HEAP8[$17>>0] = $13;
  22276. $18 = (($$06579) + 1)|0;
  22277. $exitcond = ($18|0)==($9|0);
  22278. if ($exitcond) {
  22279. break;
  22280. } else {
  22281. $$06579 = $18;
  22282. }
  22283. }
  22284. }
  22285. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  22286. $20 = ($19|0)==(0);
  22287. if ($20) {
  22288. $$4 = 0;
  22289. STACKTOP = sp;return ($$4|0);
  22290. }
  22291. $21 = ($10|0)>(0);
  22292. L8: do {
  22293. if ($21) {
  22294. $$06678 = 0;
  22295. L9: while(1) {
  22296. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  22297. $23 = ($22>>>0)>(18);
  22298. if ($23) {
  22299. label = 6;
  22300. break;
  22301. }
  22302. $24 = ($22|0)<(16);
  22303. if ($24) {
  22304. $25 = $22&255;
  22305. $26 = (($$06678) + 1)|0;
  22306. $27 = (($2) + ($$06678)|0);
  22307. HEAP8[$27>>0] = $25;
  22308. $$066$be = $26;
  22309. } else {
  22310. switch ($22|0) {
  22311. case 16: {
  22312. $28 = (_stbi__zreceive($0,2)|0);
  22313. $29 = ($$06678|0)==(0);
  22314. if ($29) {
  22315. label = 11;
  22316. break L9;
  22317. }
  22318. $30 = (($28) + 3)|0;
  22319. $31 = (($$06678) + -1)|0;
  22320. $32 = (($2) + ($31)|0);
  22321. $33 = HEAP8[$32>>0]|0;
  22322. $$0 = $33;$$061 = $30;
  22323. break;
  22324. }
  22325. case 17: {
  22326. $34 = (_stbi__zreceive($0,3)|0);
  22327. $35 = (($34) + 3)|0;
  22328. $$0 = 0;$$061 = $35;
  22329. break;
  22330. }
  22331. case 18: {
  22332. $36 = (_stbi__zreceive($0,7)|0);
  22333. $37 = (($36) + 11)|0;
  22334. $$0 = 0;$$061 = $37;
  22335. break;
  22336. }
  22337. default: {
  22338. label = 14;
  22339. break L9;
  22340. }
  22341. }
  22342. $38 = (($10) - ($$06678))|0;
  22343. $39 = ($38|0)<($$061|0);
  22344. if ($39) {
  22345. label = 17;
  22346. break;
  22347. }
  22348. $40 = (($2) + ($$06678)|0);
  22349. _memset(($40|0),($$0|0),($$061|0))|0;
  22350. $41 = (($$061) + ($$06678))|0;
  22351. $$066$be = $41;
  22352. }
  22353. $42 = ($10|0)>($$066$be|0);
  22354. if ($42) {
  22355. $$06678 = $$066$be;
  22356. } else {
  22357. $$066$lcssa = $$066$be;
  22358. break L8;
  22359. }
  22360. }
  22361. if ((label|0) == 6) {
  22362. _stbi__err(11120);
  22363. $$4 = 0;
  22364. STACKTOP = sp;return ($$4|0);
  22365. }
  22366. else if ((label|0) == 11) {
  22367. _stbi__err(11120);
  22368. $$4 = 0;
  22369. STACKTOP = sp;return ($$4|0);
  22370. }
  22371. else if ((label|0) == 14) {
  22372. ___assert_fail((11136|0),(9896|0),4006,(11144|0));
  22373. // unreachable;
  22374. }
  22375. else if ((label|0) == 17) {
  22376. _stbi__err(11120);
  22377. $$4 = 0;
  22378. STACKTOP = sp;return ($$4|0);
  22379. }
  22380. } else {
  22381. $$066$lcssa = 0;
  22382. }
  22383. } while(0);
  22384. $43 = ($10|0)==($$066$lcssa|0);
  22385. if (!($43)) {
  22386. _stbi__err(11120);
  22387. $$4 = 0;
  22388. STACKTOP = sp;return ($$4|0);
  22389. }
  22390. $44 = ((($0)) + 32|0);
  22391. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  22392. $46 = ($45|0)==(0);
  22393. if ($46) {
  22394. $$4 = 0;
  22395. STACKTOP = sp;return ($$4|0);
  22396. }
  22397. $47 = ((($0)) + 2052|0);
  22398. $48 = (($2) + ($5)|0);
  22399. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  22400. $not$ = ($49|0)!=(0);
  22401. $$ = $not$&1;
  22402. $$4 = $$;
  22403. STACKTOP = sp;return ($$4|0);
  22404. }
  22405. function _stbi__parse_huffman_block($0) {
  22406. $0 = $0|0;
  22407. 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;
  22408. 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;
  22409. 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;
  22410. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  22411. sp = STACKTOP;
  22412. $1 = ((($0)) + 16|0);
  22413. $2 = HEAP32[$1>>2]|0;
  22414. $3 = ((($0)) + 32|0);
  22415. $4 = ((($0)) + 24|0);
  22416. $5 = ((($0)) + 2052|0);
  22417. $6 = ((($0)) + 20|0);
  22418. $7 = ((($0)) + 24|0);
  22419. $$070 = $2;
  22420. while(1) {
  22421. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  22422. $11 = ($10|0)<(256);
  22423. if ($11) {
  22424. $12 = ($10|0)<(0);
  22425. if ($12) {
  22426. label = 6;
  22427. break;
  22428. }
  22429. $13 = HEAP32[$4>>2]|0;
  22430. $14 = ($$070>>>0)<($13>>>0);
  22431. if ($14) {
  22432. $$171 = $$070;
  22433. } else {
  22434. $15 = (_stbi__zexpand($0,$$070,1)|0);
  22435. $16 = ($15|0)==(0);
  22436. if ($16) {
  22437. $$3$ph = 0;
  22438. label = 28;
  22439. break;
  22440. }
  22441. $17 = HEAP32[$1>>2]|0;
  22442. $$171 = $17;
  22443. }
  22444. $18 = $10&255;
  22445. $19 = ((($$171)) + 1|0);
  22446. HEAP8[$$171>>0] = $18;
  22447. $$070 = $19;
  22448. continue;
  22449. }
  22450. $20 = ($10|0)==(256);
  22451. if ($20) {
  22452. label = 12;
  22453. break;
  22454. }
  22455. $21 = (($10) + -257)|0;
  22456. $22 = (3320 + ($21<<2)|0);
  22457. $23 = HEAP32[$22>>2]|0;
  22458. $24 = (($10) + -265)|0;
  22459. $25 = ($24>>>0)<(20);
  22460. if ($25) {
  22461. $26 = (3196 + ($21<<2)|0);
  22462. $27 = HEAP32[$26>>2]|0;
  22463. $28 = (_stbi__zreceive($0,$27)|0);
  22464. $29 = (($28) + ($23))|0;
  22465. $$064 = $29;
  22466. } else {
  22467. $$064 = $23;
  22468. }
  22469. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  22470. $31 = ($30|0)<(0);
  22471. if ($31) {
  22472. label = 16;
  22473. break;
  22474. }
  22475. $32 = (3572 + ($30<<2)|0);
  22476. $33 = HEAP32[$32>>2]|0;
  22477. $34 = (($30) + -4)|0;
  22478. $35 = ($34>>>0)<(26);
  22479. if ($35) {
  22480. $36 = (3444 + ($30<<2)|0);
  22481. $37 = HEAP32[$36>>2]|0;
  22482. $38 = (_stbi__zreceive($0,$37)|0);
  22483. $39 = (($38) + ($33))|0;
  22484. $$063 = $39;
  22485. } else {
  22486. $$063 = $33;
  22487. }
  22488. $40 = HEAP32[$6>>2]|0;
  22489. $41 = $$070;
  22490. $42 = (($41) - ($40))|0;
  22491. $43 = ($42|0)<($$063|0);
  22492. if ($43) {
  22493. label = 20;
  22494. break;
  22495. }
  22496. $44 = (($$070) + ($$064)|0);
  22497. $45 = HEAP32[$7>>2]|0;
  22498. $46 = ($44>>>0)>($45>>>0);
  22499. if ($46) {
  22500. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  22501. $48 = ($47|0)==(0);
  22502. if ($48) {
  22503. $$3$ph = 0;
  22504. label = 28;
  22505. break;
  22506. }
  22507. $49 = HEAP32[$1>>2]|0;
  22508. $$272 = $49;
  22509. } else {
  22510. $$272 = $$070;
  22511. }
  22512. $50 = (0 - ($$063))|0;
  22513. $9 = (($$272) + ($50)|0);
  22514. $51 = ($$063|0)==(1);
  22515. $52 = ($$064|0)!=(0);
  22516. if ($51) {
  22517. if (!($52)) {
  22518. $$070 = $$272;
  22519. continue;
  22520. }
  22521. $8 = HEAP8[$9>>0]|0;
  22522. _memset(($$272|0),($8|0),($$064|0))|0;
  22523. $scevgep92 = (($$272) + ($$064)|0);
  22524. $$070 = $scevgep92;
  22525. continue;
  22526. }
  22527. if ($52) {
  22528. $$067 = $9;$$266 = $$064;$$5 = $$272;
  22529. } else {
  22530. $$070 = $$272;
  22531. continue;
  22532. }
  22533. while(1) {
  22534. $53 = ((($$067)) + 1|0);
  22535. $54 = HEAP8[$$067>>0]|0;
  22536. $55 = ((($$5)) + 1|0);
  22537. HEAP8[$$5>>0] = $54;
  22538. $56 = (($$266) + -1)|0;
  22539. $57 = ($56|0)==(0);
  22540. if ($57) {
  22541. break;
  22542. } else {
  22543. $$067 = $53;$$266 = $56;$$5 = $55;
  22544. }
  22545. }
  22546. $scevgep = (($$272) + ($$064)|0);
  22547. $$070 = $scevgep;
  22548. }
  22549. if ((label|0) == 6) {
  22550. _stbi__err(10945);
  22551. $$3$ph = 0;
  22552. return ($$3$ph|0);
  22553. }
  22554. else if ((label|0) == 12) {
  22555. HEAP32[$1>>2] = $$070;
  22556. $$3$ph = 1;
  22557. return ($$3$ph|0);
  22558. }
  22559. else if ((label|0) == 16) {
  22560. _stbi__err(10945);
  22561. $$3$ph = 0;
  22562. return ($$3$ph|0);
  22563. }
  22564. else if ((label|0) == 20) {
  22565. _stbi__err(10962);
  22566. $$3$ph = 0;
  22567. return ($$3$ph|0);
  22568. }
  22569. else if ((label|0) == 28) {
  22570. return ($$3$ph|0);
  22571. }
  22572. return (0)|0;
  22573. }
  22574. function _stbi__zhuffman_decode($0,$1) {
  22575. $0 = $0|0;
  22576. $1 = $1|0;
  22577. 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;
  22578. sp = STACKTOP;
  22579. $2 = ((($0)) + 8|0);
  22580. $3 = HEAP32[$2>>2]|0;
  22581. $4 = ($3|0)<(16);
  22582. if ($4) {
  22583. _stbi__fill_bits($0);
  22584. }
  22585. $5 = ((($0)) + 12|0);
  22586. $6 = HEAP32[$5>>2]|0;
  22587. $7 = $6 & 511;
  22588. $8 = (($1) + ($7<<1)|0);
  22589. $9 = HEAP16[$8>>1]|0;
  22590. $10 = $9&65535;
  22591. $11 = ($9<<16>>16)==(0);
  22592. if ($11) {
  22593. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  22594. $$0 = $17;
  22595. return ($$0|0);
  22596. } else {
  22597. $12 = $10 >>> 9;
  22598. $13 = $6 >>> $12;
  22599. HEAP32[$5>>2] = $13;
  22600. $14 = HEAP32[$2>>2]|0;
  22601. $15 = (($14) - ($12))|0;
  22602. HEAP32[$2>>2] = $15;
  22603. $16 = $10 & 511;
  22604. $$0 = $16;
  22605. return ($$0|0);
  22606. }
  22607. return (0)|0;
  22608. }
  22609. function _stbi__zexpand($0,$1,$2) {
  22610. $0 = $0|0;
  22611. $1 = $1|0;
  22612. $2 = $2|0;
  22613. 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;
  22614. var $9 = 0, label = 0, sp = 0;
  22615. sp = STACKTOP;
  22616. $3 = ((($0)) + 16|0);
  22617. HEAP32[$3>>2] = $1;
  22618. $4 = ((($0)) + 28|0);
  22619. $5 = HEAP32[$4>>2]|0;
  22620. $6 = ($5|0)==(0);
  22621. if ($6) {
  22622. _stbi__err(10971);
  22623. $$0 = 0;
  22624. return ($$0|0);
  22625. }
  22626. $7 = ((($0)) + 20|0);
  22627. $8 = HEAP32[$7>>2]|0;
  22628. $9 = $1;
  22629. $10 = $8;
  22630. $11 = (($9) - ($10))|0;
  22631. $12 = ((($0)) + 24|0);
  22632. $13 = HEAP32[$12>>2]|0;
  22633. $14 = (($13) - ($10))|0;
  22634. $15 = (($11) + ($2))|0;
  22635. $$029 = $14;
  22636. while(1) {
  22637. $16 = ($15|0)>($$029|0);
  22638. $17 = $$029 << 1;
  22639. if ($16) {
  22640. $$029 = $17;
  22641. } else {
  22642. break;
  22643. }
  22644. }
  22645. $18 = (_realloc($8,$$029)|0);
  22646. $19 = ($18|0)==(0|0);
  22647. if ($19) {
  22648. _stbi__err(9951);
  22649. $$0 = 0;
  22650. return ($$0|0);
  22651. } else {
  22652. HEAP32[$7>>2] = $18;
  22653. $20 = (($18) + ($11)|0);
  22654. HEAP32[$3>>2] = $20;
  22655. $21 = (($18) + ($$029)|0);
  22656. HEAP32[$12>>2] = $21;
  22657. $$0 = 1;
  22658. return ($$0|0);
  22659. }
  22660. return (0)|0;
  22661. }
  22662. function _stbi__fill_bits($0) {
  22663. $0 = $0|0;
  22664. 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;
  22665. sp = STACKTOP;
  22666. $1 = ((($0)) + 12|0);
  22667. $2 = ((($0)) + 8|0);
  22668. while(1) {
  22669. $3 = HEAP32[$1>>2]|0;
  22670. $4 = HEAP32[$2>>2]|0;
  22671. $5 = 1 << $4;
  22672. $6 = ($3>>>0)<($5>>>0);
  22673. if (!($6)) {
  22674. label = 3;
  22675. break;
  22676. }
  22677. $7 = (_stbi__zget8($0)|0);
  22678. $8 = $7&255;
  22679. $9 = HEAP32[$2>>2]|0;
  22680. $10 = $8 << $9;
  22681. $11 = HEAP32[$1>>2]|0;
  22682. $12 = $11 | $10;
  22683. HEAP32[$1>>2] = $12;
  22684. $13 = (($9) + 8)|0;
  22685. HEAP32[$2>>2] = $13;
  22686. $14 = ($13|0)<(25);
  22687. if (!($14)) {
  22688. label = 5;
  22689. break;
  22690. }
  22691. }
  22692. if ((label|0) == 3) {
  22693. ___assert_fail((11067|0),(9896|0),3848,(11104|0));
  22694. // unreachable;
  22695. }
  22696. else if ((label|0) == 5) {
  22697. return;
  22698. }
  22699. }
  22700. function _stbi__zhuffman_decode_slowpath($0,$1) {
  22701. $0 = $0|0;
  22702. $1 = $1|0;
  22703. 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;
  22704. 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;
  22705. sp = STACKTOP;
  22706. $2 = ((($0)) + 12|0);
  22707. $3 = HEAP32[$2>>2]|0;
  22708. $4 = (_stbi__bit_reverse($3,16)|0);
  22709. $$025 = 10;
  22710. while(1) {
  22711. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  22712. $6 = HEAP32[$5>>2]|0;
  22713. $7 = ($4|0)<($6|0);
  22714. $8 = (($$025) + 1)|0;
  22715. if ($7) {
  22716. break;
  22717. } else {
  22718. $$025 = $8;
  22719. }
  22720. }
  22721. $9 = ($$025|0)==(16);
  22722. if ($9) {
  22723. $$0 = -1;
  22724. return ($$0|0);
  22725. }
  22726. $10 = (16 - ($$025))|0;
  22727. $11 = $4 >> $10;
  22728. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  22729. $13 = HEAP16[$12>>1]|0;
  22730. $14 = $13&65535;
  22731. $15 = (($11) - ($14))|0;
  22732. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  22733. $17 = HEAP16[$16>>1]|0;
  22734. $18 = $17&65535;
  22735. $19 = (($15) + ($18))|0;
  22736. $20 = (((($1)) + 1156|0) + ($19)|0);
  22737. $21 = HEAP8[$20>>0]|0;
  22738. $22 = $21&255;
  22739. $23 = ($22|0)==($$025|0);
  22740. if (!($23)) {
  22741. ___assert_fail((10991|0),(9896|0),3876,(11007|0));
  22742. // unreachable;
  22743. }
  22744. $24 = HEAP32[$2>>2]|0;
  22745. $25 = $24 >>> $$025;
  22746. HEAP32[$2>>2] = $25;
  22747. $26 = ((($0)) + 8|0);
  22748. $27 = HEAP32[$26>>2]|0;
  22749. $28 = (($27) - ($$025))|0;
  22750. HEAP32[$26>>2] = $28;
  22751. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  22752. $30 = HEAP16[$29>>1]|0;
  22753. $31 = $30&65535;
  22754. $$0 = $31;
  22755. return ($$0|0);
  22756. }
  22757. function _stbi__bit_reverse($0,$1) {
  22758. $0 = $0|0;
  22759. $1 = $1|0;
  22760. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  22761. sp = STACKTOP;
  22762. $2 = ($1|0)<(17);
  22763. if ($2) {
  22764. $3 = (_stbi__bitreverse16($0)|0);
  22765. $4 = (16 - ($1))|0;
  22766. $5 = $3 >> $4;
  22767. return ($5|0);
  22768. } else {
  22769. ___assert_fail((11038|0),(9896|0),3766,(11049|0));
  22770. // unreachable;
  22771. }
  22772. return (0)|0;
  22773. }
  22774. function _stbi__bitreverse16($0) {
  22775. $0 = $0|0;
  22776. 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;
  22777. var sp = 0;
  22778. sp = STACKTOP;
  22779. $1 = $0 >>> 1;
  22780. $2 = $1 & 21845;
  22781. $3 = $0 << 1;
  22782. $4 = $3 & 43690;
  22783. $5 = $2 | $4;
  22784. $6 = $5 >>> 2;
  22785. $7 = $6 & 13107;
  22786. $8 = $5 << 2;
  22787. $9 = $8 & 52428;
  22788. $10 = $7 | $9;
  22789. $11 = $10 >>> 4;
  22790. $12 = $11 & 3855;
  22791. $13 = $10 << 4;
  22792. $14 = $13 & 61680;
  22793. $15 = $12 | $14;
  22794. $16 = $15 >>> 8;
  22795. $17 = $15 << 8;
  22796. $18 = $17 & 65280;
  22797. $19 = $18 | $16;
  22798. return ($19|0);
  22799. }
  22800. function _stbi__zget8($0) {
  22801. $0 = $0|0;
  22802. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  22803. sp = STACKTOP;
  22804. $1 = HEAP32[$0>>2]|0;
  22805. $2 = ((($0)) + 4|0);
  22806. $3 = HEAP32[$2>>2]|0;
  22807. $4 = ($1>>>0)<($3>>>0);
  22808. if (!($4)) {
  22809. $$0 = 0;
  22810. return ($$0|0);
  22811. }
  22812. $5 = ((($1)) + 1|0);
  22813. HEAP32[$0>>2] = $5;
  22814. $6 = HEAP8[$1>>0]|0;
  22815. $$0 = $6;
  22816. return ($$0|0);
  22817. }
  22818. function _stbi__refill_buffer($0) {
  22819. $0 = $0|0;
  22820. 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;
  22821. sp = STACKTOP;
  22822. $1 = ((($0)) + 16|0);
  22823. $2 = HEAP32[$1>>2]|0;
  22824. $3 = ((($0)) + 28|0);
  22825. $4 = HEAP32[$3>>2]|0;
  22826. $5 = ((($0)) + 40|0);
  22827. $6 = ((($0)) + 36|0);
  22828. $7 = HEAP32[$6>>2]|0;
  22829. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  22830. $9 = ($8|0)==(0);
  22831. if ($9) {
  22832. $10 = ((($0)) + 32|0);
  22833. HEAP32[$10>>2] = 0;
  22834. $11 = ((($0)) + 168|0);
  22835. HEAP32[$11>>2] = $5;
  22836. $12 = ((($0)) + 41|0);
  22837. $13 = ((($0)) + 172|0);
  22838. HEAP32[$13>>2] = $12;
  22839. HEAP8[$5>>0] = 0;
  22840. return;
  22841. } else {
  22842. $14 = ((($0)) + 168|0);
  22843. HEAP32[$14>>2] = $5;
  22844. $15 = (((($0)) + 40|0) + ($8)|0);
  22845. $16 = ((($0)) + 172|0);
  22846. HEAP32[$16>>2] = $15;
  22847. return;
  22848. }
  22849. }
  22850. function _stbi__rewind($0) {
  22851. $0 = $0|0;
  22852. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  22853. sp = STACKTOP;
  22854. $1 = ((($0)) + 176|0);
  22855. $2 = HEAP32[$1>>2]|0;
  22856. $3 = ((($0)) + 168|0);
  22857. HEAP32[$3>>2] = $2;
  22858. $4 = ((($0)) + 180|0);
  22859. $5 = HEAP32[$4>>2]|0;
  22860. $6 = ((($0)) + 172|0);
  22861. HEAP32[$6>>2] = $5;
  22862. return;
  22863. }
  22864. function _stbi__start_callbacks($0,$1,$2) {
  22865. $0 = $0|0;
  22866. $1 = $1|0;
  22867. $2 = $2|0;
  22868. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  22869. sp = STACKTOP;
  22870. $3 = ((($0)) + 16|0);
  22871. ;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;
  22872. $4 = ((($0)) + 28|0);
  22873. HEAP32[$4>>2] = $2;
  22874. $5 = ((($0)) + 36|0);
  22875. HEAP32[$5>>2] = 128;
  22876. $6 = ((($0)) + 32|0);
  22877. HEAP32[$6>>2] = 1;
  22878. $7 = ((($0)) + 40|0);
  22879. $8 = ((($0)) + 176|0);
  22880. HEAP32[$8>>2] = $7;
  22881. _stbi__refill_buffer($0);
  22882. $9 = ((($0)) + 172|0);
  22883. $10 = HEAP32[$9>>2]|0;
  22884. $11 = ((($0)) + 180|0);
  22885. HEAP32[$11>>2] = $10;
  22886. return;
  22887. }
  22888. function _stbi__stdio_read($0,$1,$2) {
  22889. $0 = $0|0;
  22890. $1 = $1|0;
  22891. $2 = $2|0;
  22892. var $3 = 0, label = 0, sp = 0;
  22893. sp = STACKTOP;
  22894. $3 = (_fread($1,1,$2,$0)|0);
  22895. return ($3|0);
  22896. }
  22897. function _stbi__stdio_skip($0,$1) {
  22898. $0 = $0|0;
  22899. $1 = $1|0;
  22900. var label = 0, sp = 0;
  22901. sp = STACKTOP;
  22902. (_fseek($0,$1,1)|0);
  22903. return;
  22904. }
  22905. function _stbi__stdio_eof($0) {
  22906. $0 = $0|0;
  22907. var $1 = 0, label = 0, sp = 0;
  22908. sp = STACKTOP;
  22909. $1 = (_feof($0)|0);
  22910. return ($1|0);
  22911. }
  22912. function _LoadImage($0,$1) {
  22913. $0 = $0|0;
  22914. $1 = $1|0;
  22915. 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;
  22916. 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;
  22917. 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;
  22918. var $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, label = 0, sp = 0;
  22919. sp = STACKTOP;
  22920. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  22921. $vararg_buffer9 = sp + 32|0;
  22922. $vararg_buffer4 = sp + 16|0;
  22923. $vararg_buffer1 = sp + 8|0;
  22924. $vararg_buffer = sp;
  22925. $2 = sp + 48|0;
  22926. $3 = sp + 44|0;
  22927. $4 = sp + 40|0;
  22928. $5 = sp + 36|0;
  22929. $6 = (_IsFileExtension($1,11319)|0);
  22930. $7 = ($6|0)==(0);
  22931. do {
  22932. if ($7) {
  22933. $19 = (_IsFileExtension($1,11372)|0);
  22934. $20 = ($19|0)==(0);
  22935. if ($20) {
  22936. HEAP32[$vararg_buffer1>>2] = $1;
  22937. _TraceLog(2,11377,$vararg_buffer1);
  22938. $$sroa$10$141 = 0;$$sroa$13$147 = 0;$$sroa$15$249 = 0;$$sroa$7$143 = 0;
  22939. break;
  22940. }
  22941. HEAP32[$3>>2] = 0;
  22942. HEAP32[$4>>2] = 0;
  22943. HEAP32[$5>>2] = 0;
  22944. $21 = (_fopen($1,11511)|0);
  22945. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  22946. (_fclose($21)|0);
  22947. $23 = HEAP32[$3>>2]|0;
  22948. $24 = HEAP32[$4>>2]|0;
  22949. $25 = HEAP32[$5>>2]|0;
  22950. switch ($25|0) {
  22951. case 1: {
  22952. $$sink = 1;
  22953. label = 11;
  22954. break;
  22955. }
  22956. case 2: {
  22957. $$sink = 2;
  22958. label = 11;
  22959. break;
  22960. }
  22961. case 3: {
  22962. $$sink = 4;
  22963. label = 11;
  22964. break;
  22965. }
  22966. case 4: {
  22967. $$sink = 7;
  22968. label = 11;
  22969. break;
  22970. }
  22971. default: {
  22972. $$sroa$15$1 = 0;
  22973. }
  22974. }
  22975. if ((label|0) == 11) {
  22976. $$sroa$15$1 = $$sink;
  22977. }
  22978. $$sroa$0$1 = $22;$$sroa$10$1 = $24;$$sroa$13$1 = 1;$$sroa$15$2 = $$sroa$15$1;$$sroa$7$1 = $23;
  22979. label = 14;
  22980. } else {
  22981. $8 = (_LoadResource($1,0)|0);
  22982. $9 = HEAP32[$8>>2]|0;
  22983. $10 = ($9|0)==(1);
  22984. if ($10) {
  22985. $11 = ((($8)) + 20|0);
  22986. $12 = HEAP32[$11>>2]|0;
  22987. $13 = ((($8)) + 4|0);
  22988. $14 = HEAP32[$13>>2]|0;
  22989. $15 = ((($8)) + 8|0);
  22990. $16 = HEAP32[$15>>2]|0;
  22991. $17 = ((($8)) + 12|0);
  22992. $18 = HEAP32[$17>>2]|0;
  22993. _LoadImagePro($2,$12,$14,$16,$18);
  22994. $$sroa$0$0$copyload = HEAP32[$2>>2]|0;
  22995. $$sroa$7$0$$sroa_idx15 = ((($2)) + 4|0);
  22996. $$sroa$7$0$copyload = HEAP32[$$sroa$7$0$$sroa_idx15>>2]|0;
  22997. $$sroa$10$0$$sroa_idx19 = ((($2)) + 8|0);
  22998. $$sroa$10$0$copyload = HEAP32[$$sroa$10$0$$sroa_idx19>>2]|0;
  22999. $$sroa$13$0$$sroa_idx23 = ((($2)) + 12|0);
  23000. $$sroa$13$0$copyload = HEAP32[$$sroa$13$0$$sroa_idx23>>2]|0;
  23001. $$sroa$15$0$$sroa_idx27 = ((($2)) + 16|0);
  23002. $$sroa$15$0$copyload = HEAP32[$$sroa$15$0$$sroa_idx27>>2]|0;
  23003. $$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;
  23004. } else {
  23005. HEAP32[$vararg_buffer>>2] = $1;
  23006. _TraceLog(2,11325,$vararg_buffer);
  23007. $$sroa$0$0 = 0;$$sroa$10$0 = 0;$$sroa$13$0 = 0;$$sroa$15$0 = 0;$$sroa$7$0 = 0;
  23008. }
  23009. _UnloadResource($8);
  23010. $$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;
  23011. label = 14;
  23012. }
  23013. } while(0);
  23014. if ((label|0) == 14) {
  23015. $26 = ($$sroa$0$1|0)==(0|0);
  23016. if ($26) {
  23017. $$sroa$10$141 = $$sroa$10$1;$$sroa$13$147 = $$sroa$13$1;$$sroa$15$249 = $$sroa$15$2;$$sroa$7$143 = $$sroa$7$1;
  23018. } else {
  23019. HEAP32[$vararg_buffer4>>2] = $1;
  23020. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23021. HEAP32[$vararg_ptr7>>2] = $$sroa$7$1;
  23022. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  23023. HEAP32[$vararg_ptr8>>2] = $$sroa$10$1;
  23024. _TraceLog(0,11413,$vararg_buffer4);
  23025. $$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;
  23026. HEAP32[$0>>2] = $$sroa$0$144;
  23027. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23028. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23029. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23030. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23031. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23032. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23033. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23034. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23035. STACKTOP = sp;return;
  23036. }
  23037. }
  23038. HEAP32[$vararg_buffer9>>2] = $1;
  23039. _TraceLog(2,11452,$vararg_buffer9);
  23040. $$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;
  23041. HEAP32[$0>>2] = $$sroa$0$144;
  23042. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23043. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23044. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23045. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23046. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23047. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23048. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23049. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23050. STACKTOP = sp;return;
  23051. }
  23052. function _LoadResource($0,$1) {
  23053. $0 = $0|0;
  23054. $1 = $1|0;
  23055. 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;
  23056. 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;
  23057. 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;
  23058. 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;
  23059. 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;
  23060. sp = STACKTOP;
  23061. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  23062. $vararg_buffer8 = sp + 24|0;
  23063. $vararg_buffer4 = sp + 16|0;
  23064. $vararg_buffer1 = sp + 8|0;
  23065. $vararg_buffer = sp;
  23066. $2 = sp + 64|0;
  23067. $3 = sp + 32|0;
  23068. $4 = (_fopen($0,11511)|0);
  23069. $5 = ($4|0)==(0|0);
  23070. if ($5) {
  23071. HEAP32[$vararg_buffer>>2] = $0;
  23072. _TraceLog(2,11514,$vararg_buffer);
  23073. $$2 = 0;
  23074. STACKTOP = sp;return ($$2|0);
  23075. }
  23076. (_fread($2,1,1,$4)|0);
  23077. $6 = ((($2)) + 1|0);
  23078. (_fread($6,1,1,$4)|0);
  23079. $7 = ((($2)) + 2|0);
  23080. (_fread($7,1,1,$4)|0);
  23081. $8 = ((($2)) + 3|0);
  23082. (_fread($8,1,1,$4)|0);
  23083. $9 = ((($2)) + 4|0);
  23084. (_fread($9,2,1,$4)|0);
  23085. $10 = ((($2)) + 6|0);
  23086. (_fread($10,2,1,$4)|0);
  23087. $11 = HEAP8[$2>>0]|0;
  23088. $12 = ($11<<24>>24)==(114);
  23089. $13 = HEAP8[$6>>0]|0;
  23090. $14 = ($13<<24>>24)==(82);
  23091. $or$cond = $12 | $14;
  23092. $15 = HEAP8[$7>>0]|0;
  23093. $16 = ($15<<24>>24)==(69);
  23094. $or$cond60 = $or$cond | $16;
  23095. $17 = HEAP8[$8>>0]|0;
  23096. $18 = ($17<<24>>24)==(83);
  23097. $or$cond62 = $or$cond60 | $18;
  23098. if ($or$cond62) {
  23099. $19 = HEAP16[$10>>1]|0;
  23100. $20 = ($19<<16>>16)==(0);
  23101. if ($20) {
  23102. $$0$lcssa = 0;
  23103. } else {
  23104. $21 = ((($3)) + 7|0);
  23105. $22 = HEAP16[$10>>1]|0;
  23106. $23 = $22&65535;
  23107. $24 = ((($3)) + 8|0);
  23108. $25 = ((($3)) + 4|0);
  23109. $26 = ((($3)) + 16|0);
  23110. $27 = ((($3)) + 20|0);
  23111. $28 = ((($3)) + 24|0);
  23112. $29 = ((($3)) + 28|0);
  23113. $30 = ((($3)) + 8|0);
  23114. $31 = ((($3)) + 5|0);
  23115. $32 = ((($3)) + 12|0);
  23116. $$05665 = 0;
  23117. while(1) {
  23118. (_fread($3,32,1,$4)|0);
  23119. $36 = HEAP8[$21>>0]|0;
  23120. $37 = $36&255;
  23121. $38 = ($37*24)|0;
  23122. $39 = (_malloc($38)|0);
  23123. $40 = HEAP32[$3>>2]|0;
  23124. $41 = ($40|0)==($1|0);
  23125. if ($41) {
  23126. $42 = HEAP8[$21>>0]|0;
  23127. $43 = ($42<<24>>24)==(0);
  23128. if (!($43)) {
  23129. $$05764 = 0;
  23130. while(1) {
  23131. $44 = HEAP8[$25>>0]|0;
  23132. $45 = $44&255;
  23133. $46 = (($39) + (($$05764*24)|0)|0);
  23134. HEAP32[$46>>2] = $45;
  23135. $47 = HEAP32[$26>>2]|0;
  23136. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  23137. HEAP32[$48>>2] = $47;
  23138. $49 = HEAP32[$27>>2]|0;
  23139. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  23140. HEAP32[$50>>2] = $49;
  23141. $51 = HEAP32[$28>>2]|0;
  23142. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  23143. HEAP32[$52>>2] = $51;
  23144. $53 = HEAP32[$29>>2]|0;
  23145. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  23146. HEAP32[$54>>2] = $53;
  23147. $55 = HEAP32[$30>>2]|0;
  23148. $56 = (_malloc($55)|0);
  23149. (_fread($56,$55,1,$4)|0);
  23150. $57 = HEAP8[$31>>0]|0;
  23151. $58 = ($57<<24>>24)==(1);
  23152. if ($58) {
  23153. $59 = HEAP32[$30>>2]|0;
  23154. $60 = HEAP32[$32>>2]|0;
  23155. $61 = (_DecompressData($56,$59,$60)|0);
  23156. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23157. HEAP32[$62>>2] = $61;
  23158. _free($56);
  23159. } else {
  23160. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23161. HEAP32[$63>>2] = $56;
  23162. }
  23163. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23164. $65 = HEAP32[$64>>2]|0;
  23165. $66 = ($65|0)==(0|0);
  23166. if (!($66)) {
  23167. $67 = HEAP32[$3>>2]|0;
  23168. HEAP32[$vararg_buffer4>>2] = $0;
  23169. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23170. HEAP32[$vararg_ptr7>>2] = $67;
  23171. _TraceLog(0,11611,$vararg_buffer4);
  23172. }
  23173. (_fread($3,32,1,$4)|0);
  23174. $68 = (($$05764) + 1)|0;
  23175. $69 = HEAP8[$21>>0]|0;
  23176. $70 = $69&255;
  23177. $71 = ($68|0)<($70|0);
  23178. if ($71) {
  23179. $$05764 = $68;
  23180. } else {
  23181. break;
  23182. }
  23183. }
  23184. }
  23185. } else {
  23186. $72 = HEAP32[$24>>2]|0;
  23187. (_fseek($4,$72,1)|0);
  23188. }
  23189. $73 = (($$05665) + 1)|0;
  23190. $74 = ($73|0)<($23|0);
  23191. if ($74) {
  23192. $$05665 = $73;
  23193. } else {
  23194. $$0$lcssa = $39;
  23195. break;
  23196. }
  23197. }
  23198. }
  23199. $33 = ((($$0$lcssa)) + 20|0);
  23200. $34 = HEAP32[$33>>2]|0;
  23201. $35 = ($34|0)==(0|0);
  23202. if ($35) {
  23203. HEAP32[$vararg_buffer8>>2] = $0;
  23204. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  23205. HEAP32[$vararg_ptr11>>2] = $1;
  23206. _TraceLog(2,11657,$vararg_buffer8);
  23207. $$1 = $$0$lcssa;
  23208. } else {
  23209. $$1 = $$0$lcssa;
  23210. }
  23211. } else {
  23212. HEAP32[$vararg_buffer1>>2] = $0;
  23213. _TraceLog(2,11565,$vararg_buffer1);
  23214. $$1 = 0;
  23215. }
  23216. (_fclose($4)|0);
  23217. $$2 = $$1;
  23218. STACKTOP = sp;return ($$2|0);
  23219. }
  23220. function _LoadImagePro($0,$1,$2,$3,$4) {
  23221. $0 = $0|0;
  23222. $1 = $1|0;
  23223. $2 = $2|0;
  23224. $3 = $3|0;
  23225. $4 = $4|0;
  23226. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23227. sp = STACKTOP;
  23228. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23229. $$byval_copy = sp + 20|0;
  23230. $5 = sp;
  23231. HEAP32[$5>>2] = $1;
  23232. $6 = ((($5)) + 4|0);
  23233. HEAP32[$6>>2] = $2;
  23234. $7 = ((($5)) + 8|0);
  23235. HEAP32[$7>>2] = $3;
  23236. $8 = ((($5)) + 12|0);
  23237. HEAP32[$8>>2] = 1;
  23238. $9 = ((($5)) + 16|0);
  23239. HEAP32[$9>>2] = $4;
  23240. ;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;
  23241. _ImageCopy($0,$$byval_copy);
  23242. STACKTOP = sp;return;
  23243. }
  23244. function _UnloadResource($0) {
  23245. $0 = $0|0;
  23246. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  23247. sp = STACKTOP;
  23248. $1 = ((($0)) + 20|0);
  23249. $2 = HEAP32[$1>>2]|0;
  23250. $3 = ($2|0)==(0|0);
  23251. if ($3) {
  23252. return;
  23253. }
  23254. _free($2);
  23255. return;
  23256. }
  23257. function _ImageCopy($0,$1) {
  23258. $0 = $0|0;
  23259. $1 = $1|0;
  23260. 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;
  23261. 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;
  23262. sp = STACKTOP;
  23263. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  23264. $vararg_buffer = sp;
  23265. $2 = ((($1)) + 4|0);
  23266. $3 = HEAP32[$2>>2]|0;
  23267. $4 = ((($1)) + 8|0);
  23268. $5 = HEAP32[$4>>2]|0;
  23269. $6 = Math_imul($5, $3)|0;
  23270. $7 = ((($1)) + 16|0);
  23271. $8 = HEAP32[$7>>2]|0;
  23272. switch ($8|0) {
  23273. case 17: case 14: case 11: case 10: case 1: {
  23274. $$0 = $6;
  23275. break;
  23276. }
  23277. case 6: case 5: case 3: case 2: {
  23278. $9 = $6 << 1;
  23279. $$0 = $9;
  23280. break;
  23281. }
  23282. case 4: {
  23283. $10 = ($6*3)|0;
  23284. $$0 = $10;
  23285. break;
  23286. }
  23287. case 7: {
  23288. $11 = $6 << 2;
  23289. $$0 = $11;
  23290. break;
  23291. }
  23292. case 16: case 15: case 13: case 12: case 9: case 8: {
  23293. $12 = (($6|0) / 2)&-1;
  23294. $$0 = $12;
  23295. break;
  23296. }
  23297. case 18: {
  23298. $13 = (($6|0) / 4)&-1;
  23299. $$0 = $13;
  23300. break;
  23301. }
  23302. default: {
  23303. _TraceLog(2,11483,$vararg_buffer);
  23304. $$0 = $6;
  23305. }
  23306. }
  23307. $14 = (_malloc($$0)|0);
  23308. $15 = ($14|0)==(0|0);
  23309. if ($15) {
  23310. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  23311. } else {
  23312. $16 = HEAP32[$1>>2]|0;
  23313. _memcpy(($14|0),($16|0),($$0|0))|0;
  23314. $17 = HEAP32[$2>>2]|0;
  23315. $18 = HEAP32[$4>>2]|0;
  23316. $19 = ((($1)) + 12|0);
  23317. $20 = HEAP32[$19>>2]|0;
  23318. $21 = HEAP32[$7>>2]|0;
  23319. $$sroa$6$0 = $17;$$sroa$7$0 = $18;$$sroa$8$0 = $20;$$sroa$9$0 = $21;
  23320. }
  23321. HEAP32[$0>>2] = $14;
  23322. $$sroa$6$0$$sroa_idx10 = ((($0)) + 4|0);
  23323. HEAP32[$$sroa$6$0$$sroa_idx10>>2] = $$sroa$6$0;
  23324. $$sroa$7$0$$sroa_idx12 = ((($0)) + 8|0);
  23325. HEAP32[$$sroa$7$0$$sroa_idx12>>2] = $$sroa$7$0;
  23326. $$sroa$8$0$$sroa_idx14 = ((($0)) + 12|0);
  23327. HEAP32[$$sroa$8$0$$sroa_idx14>>2] = $$sroa$8$0;
  23328. $$sroa$9$0$$sroa_idx16 = ((($0)) + 16|0);
  23329. HEAP32[$$sroa$9$0$$sroa_idx16>>2] = $$sroa$9$0;
  23330. STACKTOP = sp;return;
  23331. }
  23332. function _DecompressData($0,$1,$2) {
  23333. $0 = $0|0;
  23334. $1 = $1|0;
  23335. $2 = $2|0;
  23336. 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;
  23337. sp = STACKTOP;
  23338. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23339. $vararg_buffer10 = sp + 40|0;
  23340. $vararg_buffer7 = sp + 32|0;
  23341. $vararg_buffer5 = sp + 24|0;
  23342. $vararg_buffer3 = sp + 16|0;
  23343. $vararg_buffer1 = sp + 8|0;
  23344. $vararg_buffer = sp;
  23345. $3 = (_malloc($2)|0);
  23346. $4 = ($3|0)==(0|0);
  23347. if ($4) {
  23348. _TraceLog(2,11707,$vararg_buffer);
  23349. STACKTOP = sp;return ($3|0);
  23350. }
  23351. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  23352. $6 = ($5|0)==(-1);
  23353. if ($6) {
  23354. _TraceLog(2,11746,$vararg_buffer1);
  23355. _free($3);
  23356. }
  23357. $7 = ($5|0)==($2|0);
  23358. if (!($7)) {
  23359. _TraceLog(2,11772,$vararg_buffer3);
  23360. HEAP32[$vararg_buffer5>>2] = $2;
  23361. _TraceLog(2,11835,$vararg_buffer5);
  23362. HEAP32[$vararg_buffer7>>2] = $5;
  23363. _TraceLog(2,11870,$vararg_buffer7);
  23364. }
  23365. HEAP32[$vararg_buffer10>>2] = $1;
  23366. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  23367. HEAP32[$vararg_ptr13>>2] = $5;
  23368. _TraceLog(0,11905,$vararg_buffer10);
  23369. STACKTOP = sp;return ($3|0);
  23370. }
  23371. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  23372. $0 = $0|0;
  23373. $1 = $1|0;
  23374. $2 = $2|0;
  23375. $3 = $3|0;
  23376. $4 = $4|0;
  23377. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23378. sp = STACKTOP;
  23379. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  23380. $5 = sp + 11000|0;
  23381. $6 = sp;
  23382. $7 = sp + 8|0;
  23383. HEAP32[$5>>2] = $1;
  23384. HEAP32[$6>>2] = $3;
  23385. HEAP32[$7>>2] = 0;
  23386. $8 = $4 & -7;
  23387. $9 = $8 | 4;
  23388. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  23389. $11 = ($10|0)!=(0);
  23390. $12 = HEAP32[$5>>2]|0;
  23391. $13 = $11 ? -1 : $12;
  23392. STACKTOP = sp;return ($13|0);
  23393. }
  23394. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  23395. $0 = $0|0;
  23396. $1 = $1|0;
  23397. $2 = $2|0;
  23398. $3 = $3|0;
  23399. $4 = $4|0;
  23400. $5 = $5|0;
  23401. $6 = $6|0;
  23402. 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;
  23403. 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;
  23404. 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;
  23405. 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;
  23406. 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;
  23407. 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;
  23408. 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;
  23409. 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;
  23410. 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;
  23411. 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;
  23412. 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;
  23413. 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;
  23414. 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;
  23415. 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;
  23416. 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;
  23417. 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;
  23418. 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;
  23419. 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;
  23420. 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;
  23421. 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;
  23422. 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;
  23423. 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;
  23424. 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;
  23425. 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;
  23426. 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;
  23427. 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;
  23428. 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;
  23429. 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;
  23430. 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;
  23431. 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;
  23432. 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;
  23433. 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;
  23434. 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;
  23435. 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;
  23436. 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;
  23437. 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;
  23438. 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;
  23439. 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;
  23440. 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;
  23441. 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;
  23442. 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;
  23443. 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;
  23444. 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;
  23445. 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;
  23446. 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;
  23447. 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;
  23448. 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;
  23449. 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;
  23450. 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;
  23451. 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;
  23452. 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;
  23453. 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;
  23454. 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;
  23455. 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;
  23456. 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;
  23457. 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;
  23458. 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;
  23459. 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;
  23460. 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;
  23461. 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;
  23462. 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;
  23463. 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;
  23464. 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;
  23465. 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;
  23466. 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;
  23467. 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;
  23468. 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;
  23469. 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;
  23470. 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;
  23471. 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;
  23472. 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;
  23473. 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;
  23474. 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;
  23475. 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;
  23476. 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;
  23477. 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;
  23478. 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;
  23479. 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;
  23480. 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;
  23481. 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;
  23482. 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;
  23483. 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;
  23484. 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;
  23485. 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;
  23486. 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;
  23487. 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;
  23488. 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;
  23489. 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;
  23490. 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;
  23491. 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;
  23492. 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;
  23493. 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;
  23494. 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;
  23495. 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;
  23496. 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;
  23497. 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;
  23498. 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;
  23499. sp = STACKTOP;
  23500. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  23501. $7 = sp + 64|0;
  23502. $8 = sp;
  23503. $9 = HEAP32[$2>>2]|0;
  23504. $10 = (($1) + ($9)|0);
  23505. $11 = HEAP32[$5>>2]|0;
  23506. $12 = (($4) + ($11)|0);
  23507. $13 = $6 & 4;
  23508. $14 = ($13|0)!=(0);
  23509. $15 = $4;
  23510. $16 = $3;
  23511. $17 = $16 ^ -1;
  23512. $18 = (($15) + ($17))|0;
  23513. $19 = (($18) + ($11))|0;
  23514. $$1753 = $14 ? -1 : $19;
  23515. $20 = (($$1753) + 1)|0;
  23516. $21 = $20 & $$1753;
  23517. $22 = ($21|0)!=(0);
  23518. $23 = ($4>>>0)<($3>>>0);
  23519. $or$cond1702 = $23 | $22;
  23520. if ($or$cond1702) {
  23521. HEAP32[$5>>2] = 0;
  23522. HEAP32[$2>>2] = 0;
  23523. $$0951 = -3;
  23524. STACKTOP = sp;return ($$0951|0);
  23525. }
  23526. $24 = ((($0)) + 4|0);
  23527. $25 = HEAP32[$24>>2]|0;
  23528. $26 = ((($0)) + 56|0);
  23529. $27 = HEAP32[$26>>2]|0;
  23530. $28 = ((($0)) + 32|0);
  23531. $29 = HEAP32[$28>>2]|0;
  23532. $30 = ((($0)) + 36|0);
  23533. $31 = HEAP32[$30>>2]|0;
  23534. $32 = ((($0)) + 40|0);
  23535. $33 = HEAP32[$32>>2]|0;
  23536. $34 = ((($0)) + 60|0);
  23537. $35 = HEAP32[$34>>2]|0;
  23538. $36 = HEAP32[$0>>2]|0;
  23539. L5: do {
  23540. switch ($36|0) {
  23541. case 0: {
  23542. $37 = ((($0)) + 12|0);
  23543. HEAP32[$37>>2] = 0;
  23544. $38 = ((($0)) + 8|0);
  23545. HEAP32[$38>>2] = 0;
  23546. $39 = ((($0)) + 28|0);
  23547. HEAP32[$39>>2] = 1;
  23548. $40 = ((($0)) + 16|0);
  23549. HEAP32[$40>>2] = 1;
  23550. $41 = $6 & 1;
  23551. $42 = ($41|0)==(0);
  23552. if ($42) {
  23553. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  23554. label = 14;
  23555. } else {
  23556. $43 = ($9|0)<(1);
  23557. if ($43) {
  23558. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  23559. label = 6;
  23560. } else {
  23561. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  23562. label = 8;
  23563. }
  23564. }
  23565. break;
  23566. }
  23567. case 1: {
  23568. $46 = ($9|0)>(0);
  23569. if ($46) {
  23570. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  23571. label = 8;
  23572. } else {
  23573. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  23574. label = 6;
  23575. }
  23576. break;
  23577. }
  23578. case 2: {
  23579. $53 = ($9|0)>(0);
  23580. if ($53) {
  23581. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  23582. label = 12;
  23583. } else {
  23584. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  23585. label = 10;
  23586. }
  23587. break;
  23588. }
  23589. case 36: {
  23590. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  23591. label = 243;
  23592. break;
  23593. }
  23594. case 3: {
  23595. $75 = ($9|0)>(0);
  23596. if ($75) {
  23597. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  23598. label = 18;
  23599. } else {
  23600. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  23601. label = 16;
  23602. }
  23603. break;
  23604. }
  23605. case 5: {
  23606. $90 = ($9|0)>(0);
  23607. if ($90) {
  23608. $91 = ((($1)) + 1|0);
  23609. $92 = HEAP8[$1>>0]|0;
  23610. $93 = $92&255;
  23611. $$01412 = $93;$$111518 = $91;
  23612. } else {
  23613. $88 = $6 & 2;
  23614. $89 = ($88|0)==(0);
  23615. if ($89) {
  23616. $$01412 = 0;$$111518 = $1;
  23617. } else {
  23618. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  23619. label = 243;
  23620. break L5;
  23621. }
  23622. }
  23623. $94 = $$01412 << $25;
  23624. $95 = $94 | $27;
  23625. $96 = (($25) + 8)|0;
  23626. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  23627. label = 25;
  23628. break;
  23629. }
  23630. case 6: {
  23631. $106 = ($9|0)>(0);
  23632. if ($106) {
  23633. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  23634. label = 32;
  23635. } else {
  23636. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  23637. label = 30;
  23638. }
  23639. break;
  23640. }
  23641. case 7: {
  23642. $120 = ($9|0)>(0);
  23643. if ($120) {
  23644. $121 = ((($1)) + 1|0);
  23645. $122 = HEAP8[$1>>0]|0;
  23646. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  23647. label = 39;
  23648. } else {
  23649. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  23650. label = 36;
  23651. }
  23652. break;
  23653. }
  23654. case 39: {
  23655. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  23656. label = 43;
  23657. break;
  23658. }
  23659. case 51: {
  23660. $152 = ($9|0)>(0);
  23661. if ($152) {
  23662. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  23663. label = 49;
  23664. } else {
  23665. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  23666. label = 47;
  23667. }
  23668. break;
  23669. }
  23670. case 52: {
  23671. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  23672. label = 52;
  23673. break;
  23674. }
  23675. case 9: {
  23676. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  23677. label = 55;
  23678. break;
  23679. }
  23680. case 38: {
  23681. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  23682. label = 56;
  23683. break;
  23684. }
  23685. case 40: {
  23686. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  23687. label = 58;
  23688. break;
  23689. }
  23690. case 10: {
  23691. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  23692. label = 60;
  23693. break;
  23694. }
  23695. case 11: {
  23696. $193 = ($9|0)>(0);
  23697. if ($193) {
  23698. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  23699. label = 66;
  23700. } else {
  23701. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  23702. label = 64;
  23703. }
  23704. break;
  23705. }
  23706. case 14: {
  23707. $224 = ($9|0)>(0);
  23708. if ($224) {
  23709. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  23710. label = 75;
  23711. } else {
  23712. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  23713. label = 73;
  23714. }
  23715. break;
  23716. }
  23717. case 35: {
  23718. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  23719. label = 86;
  23720. break;
  23721. }
  23722. case 16: {
  23723. $452 = ($9|0)>(0);
  23724. if ($452) {
  23725. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  23726. label = 116;
  23727. } else {
  23728. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  23729. label = 114;
  23730. }
  23731. break;
  23732. }
  23733. case 17: {
  23734. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  23735. label = 125;
  23736. break;
  23737. }
  23738. case 18: {
  23739. $503 = ($9|0)>(0);
  23740. if ($503) {
  23741. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  23742. label = 130;
  23743. } else {
  23744. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  23745. label = 128;
  23746. }
  23747. break;
  23748. }
  23749. case 21: {
  23750. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  23751. label = 136;
  23752. break;
  23753. }
  23754. case 23: {
  23755. $572 = ($9|0)>(0);
  23756. if ($572) {
  23757. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  23758. label = 153;
  23759. } else {
  23760. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  23761. label = 151;
  23762. }
  23763. break;
  23764. }
  23765. case 24: {
  23766. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  23767. label = 160;
  23768. break;
  23769. }
  23770. case 25: {
  23771. $696 = ($9|0)>(0);
  23772. if ($696) {
  23773. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  23774. label = 182;
  23775. } else {
  23776. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  23777. label = 180;
  23778. }
  23779. break;
  23780. }
  23781. case 26: {
  23782. $737 = ($9|0)>(0);
  23783. if ($737) {
  23784. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  23785. label = 195;
  23786. } else {
  23787. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  23788. label = 193;
  23789. }
  23790. break;
  23791. }
  23792. case 27: {
  23793. $784 = ($9|0)>(0);
  23794. if ($784) {
  23795. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  23796. label = 206;
  23797. } else {
  23798. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  23799. label = 204;
  23800. }
  23801. break;
  23802. }
  23803. case 37: {
  23804. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  23805. label = 210;
  23806. break;
  23807. }
  23808. case 53: {
  23809. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  23810. label = 213;
  23811. break;
  23812. }
  23813. case 32: {
  23814. $842 = ($9|0)>(0);
  23815. if ($842) {
  23816. $843 = ((($1)) + 1|0);
  23817. $844 = HEAP8[$1>>0]|0;
  23818. $845 = $844&255;
  23819. $$0949 = $845;$$881595 = $843;
  23820. } else {
  23821. $840 = $6 & 2;
  23822. $841 = ($840|0)==(0);
  23823. if ($841) {
  23824. $$0949 = 0;$$881595 = $1;
  23825. } else {
  23826. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  23827. label = 243;
  23828. break L5;
  23829. }
  23830. }
  23831. $846 = $$0949 << $25;
  23832. $847 = $846 | $27;
  23833. $848 = (($25) + 8)|0;
  23834. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  23835. label = 226;
  23836. break;
  23837. }
  23838. case 41: {
  23839. $858 = ($9|0)>(0);
  23840. if ($858) {
  23841. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  23842. label = 233;
  23843. } else {
  23844. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  23845. label = 231;
  23846. }
  23847. break;
  23848. }
  23849. case 42: {
  23850. $871 = ($9|0)>(0);
  23851. if ($871) {
  23852. $872 = ((($1)) + 1|0);
  23853. $873 = HEAP8[$1>>0]|0;
  23854. $874 = $873&255;
  23855. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  23856. label = 241;
  23857. } else {
  23858. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  23859. label = 237;
  23860. }
  23861. break;
  23862. }
  23863. case 34: {
  23864. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  23865. label = 242;
  23866. break;
  23867. }
  23868. default: {
  23869. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  23870. label = 244;
  23871. }
  23872. }
  23873. } while(0);
  23874. if ((label|0) == 6) {
  23875. $44 = $6 & 2;
  23876. $45 = ($44|0)==(0);
  23877. if ($45) {
  23878. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  23879. label = 9;
  23880. } else {
  23881. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  23882. label = 243;
  23883. }
  23884. }
  23885. else if ((label|0) == 8) {
  23886. $47 = ((($1)) + 1|0);
  23887. $48 = HEAP8[$1>>0]|0;
  23888. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  23889. label = 9;
  23890. }
  23891. if ((label|0) == 9) {
  23892. $$sink3 = $$sink3$shrunk&255;
  23893. $49 = ((($0)) + 8|0);
  23894. HEAP32[$49>>2] = $$sink3;
  23895. $50 = ($$01507>>>0)<($10>>>0);
  23896. if ($50) {
  23897. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  23898. label = 12;
  23899. } else {
  23900. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  23901. label = 10;
  23902. }
  23903. }
  23904. if ((label|0) == 10) {
  23905. $51 = $6 & 2;
  23906. $52 = ($51|0)==(0);
  23907. if ($52) {
  23908. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  23909. label = 13;
  23910. } else {
  23911. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  23912. label = 243;
  23913. }
  23914. }
  23915. else if ((label|0) == 12) {
  23916. $54 = ((($$sink1705)) + 1|0);
  23917. $55 = HEAP8[$$sink1705>>0]|0;
  23918. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  23919. label = 13;
  23920. }
  23921. if ((label|0) == 13) {
  23922. $$sink9 = $$sink9$shrunk&255;
  23923. $56 = ((($0)) + 12|0);
  23924. HEAP32[$56>>2] = $$sink9;
  23925. $57 = ((($0)) + 8|0);
  23926. $58 = HEAP32[$57>>2]|0;
  23927. $59 = $58 << 8;
  23928. $60 = $59 | $$sink9;
  23929. $61 = (($60>>>0) % 31)&-1;
  23930. $62 = $$sink9 & 32;
  23931. $63 = $61 | $62;
  23932. $64 = $58 & 15;
  23933. $65 = ($64|0)!=(8);
  23934. $not$ = ($63|0)!=(0);
  23935. $$1754 = $65 | $not$;
  23936. $66 = $58 >>> 4;
  23937. $67 = 256 << $66;
  23938. $68 = ($67>>>0)>(32768);
  23939. $69 = ($20>>>0)<($67>>>0);
  23940. $$ = $68 | $69;
  23941. $not$1755 = $14 ^ 1;
  23942. $70 = $$ & $not$1755;
  23943. $$31100$v = $70 | $$1754;
  23944. if ($$31100$v) {
  23945. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  23946. label = 243;
  23947. } else {
  23948. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  23949. label = 14;
  23950. }
  23951. }
  23952. L46: while(1) {
  23953. switch (label|0) {
  23954. case 14: {
  23955. label = 0;
  23956. $71 = ($$5>>>0)<(3);
  23957. if ($71) {
  23958. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  23959. label = 15;
  23960. } else {
  23961. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  23962. label = 20;
  23963. }
  23964. break;
  23965. }
  23966. case 16: {
  23967. label = 0;
  23968. $73 = $6 & 2;
  23969. $74 = ($73|0)==(0);
  23970. if ($74) {
  23971. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  23972. label = 19;
  23973. } else {
  23974. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  23975. label = 243;
  23976. continue L46;
  23977. }
  23978. break;
  23979. }
  23980. case 18: {
  23981. label = 0;
  23982. $76 = ((($$sink1710)) + 1|0);
  23983. $77 = HEAP8[$$sink1710>>0]|0;
  23984. $$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;
  23985. label = 19;
  23986. break;
  23987. }
  23988. case 25: {
  23989. label = 0;
  23990. $97 = $$13 & 7;
  23991. $98 = $$131322 >>> $97;
  23992. $99 = (($$13) - ($97))|0;
  23993. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  23994. label = 26;
  23995. break;
  23996. }
  23997. case 30: {
  23998. label = 0;
  23999. $104 = $6 & 2;
  24000. $105 = ($104|0)==(0);
  24001. if ($105) {
  24002. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  24003. label = 33;
  24004. } else {
  24005. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  24006. label = 243;
  24007. continue L46;
  24008. }
  24009. break;
  24010. }
  24011. case 32: {
  24012. label = 0;
  24013. $107 = ((($$sink1713)) + 1|0);
  24014. $108 = HEAP8[$$sink1713>>0]|0;
  24015. $$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;
  24016. label = 33;
  24017. break;
  24018. }
  24019. case 36: {
  24020. label = 0;
  24021. $118 = $6 & 2;
  24022. $119 = ($118|0)==(0);
  24023. if ($119) {
  24024. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  24025. label = 39;
  24026. continue L46;
  24027. } else {
  24028. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  24029. label = 243;
  24030. continue L46;
  24031. }
  24032. break;
  24033. }
  24034. case 39: {
  24035. label = 0;
  24036. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  24037. HEAP8[$$sink13>>0] = $$sink12;
  24038. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  24039. label = 41;
  24040. break;
  24041. }
  24042. case 43: {
  24043. label = 0;
  24044. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  24045. label = 243;
  24046. continue L46;
  24047. break;
  24048. }
  24049. case 47: {
  24050. label = 0;
  24051. $150 = $6 & 2;
  24052. $151 = ($150|0)==(0);
  24053. if ($151) {
  24054. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  24055. label = 50;
  24056. } else {
  24057. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  24058. label = 243;
  24059. continue L46;
  24060. }
  24061. break;
  24062. }
  24063. case 49: {
  24064. label = 0;
  24065. $153 = ((($$sink1716)) + 1|0);
  24066. $154 = HEAP8[$$sink1716>>0]|0;
  24067. $$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;
  24068. label = 50;
  24069. break;
  24070. }
  24071. case 52: {
  24072. label = 0;
  24073. $162 = ($$231630>>>0)<($12>>>0);
  24074. if (!($162)) {
  24075. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  24076. label = 243;
  24077. continue L46;
  24078. }
  24079. $163 = $$271018&255;
  24080. $164 = ((($$231630)) + 1|0);
  24081. HEAP8[$$231630>>0] = $163;
  24082. $165 = (($$271124) + -1)|0;
  24083. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  24084. label = 44;
  24085. break;
  24086. }
  24087. case 55: {
  24088. label = 0;
  24089. $167 = ($$251632>>>0)<($12>>>0);
  24090. if ($167) {
  24091. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  24092. label = 56;
  24093. continue L46;
  24094. } else {
  24095. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  24096. label = 243;
  24097. continue L46;
  24098. }
  24099. break;
  24100. }
  24101. case 56: {
  24102. label = 0;
  24103. $168 = ($$301537>>>0)<($10>>>0);
  24104. if ($168) {
  24105. $171 = $12;
  24106. $172 = $$261633;
  24107. $173 = (($171) - ($172))|0;
  24108. $174 = $10;
  24109. $175 = $$301537;
  24110. $176 = (($174) - ($175))|0;
  24111. $177 = ($173>>>0)<($176>>>0);
  24112. $$sink17 = $177 ? $12 : $10;
  24113. $$sink16 = $177 ? $$261633 : $$301537;
  24114. $178 = $$sink17;
  24115. $179 = $$sink16;
  24116. $180 = (($178) - ($179))|0;
  24117. $181 = ($180>>>0)<($$301127>>>0);
  24118. $$$301127 = $181 ? $180 : $$301127;
  24119. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  24120. $182 = (($$301537) + ($$$301127)|0);
  24121. $183 = (($$261633) + ($$$301127)|0);
  24122. $184 = (($$301127) - ($$$301127))|0;
  24123. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  24124. label = 54;
  24125. break;
  24126. } else {
  24127. $169 = $6 & 2;
  24128. $170 = ($169|0)==(0);
  24129. if ($170) {
  24130. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  24131. label = 58;
  24132. continue L46;
  24133. } else {
  24134. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  24135. label = 243;
  24136. continue L46;
  24137. }
  24138. }
  24139. break;
  24140. }
  24141. case 58: {
  24142. label = 0;
  24143. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  24144. label = 243;
  24145. continue L46;
  24146. break;
  24147. }
  24148. case 60: {
  24149. label = 0;
  24150. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  24151. label = 243;
  24152. continue L46;
  24153. break;
  24154. }
  24155. case 64: {
  24156. label = 0;
  24157. $191 = $6 & 2;
  24158. $192 = ($191|0)==(0);
  24159. if ($192) {
  24160. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  24161. label = 67;
  24162. } else {
  24163. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  24164. label = 243;
  24165. continue L46;
  24166. }
  24167. break;
  24168. }
  24169. case 66: {
  24170. label = 0;
  24171. $194 = ((($$sink1719)) + 1|0);
  24172. $195 = HEAP8[$$sink1719>>0]|0;
  24173. $$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;
  24174. label = 67;
  24175. break;
  24176. }
  24177. case 73: {
  24178. label = 0;
  24179. $222 = $6 & 2;
  24180. $223 = ($222|0)==(0);
  24181. if ($223) {
  24182. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  24183. label = 76;
  24184. } else {
  24185. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  24186. label = 243;
  24187. continue L46;
  24188. }
  24189. break;
  24190. }
  24191. case 75: {
  24192. label = 0;
  24193. $225 = ((($$sink1722)) + 1|0);
  24194. $226 = HEAP8[$$sink1722>>0]|0;
  24195. $$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;
  24196. label = 76;
  24197. break;
  24198. }
  24199. case 86: {
  24200. label = 0;
  24201. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  24202. label = 243;
  24203. continue L46;
  24204. break;
  24205. }
  24206. case 114: {
  24207. label = 0;
  24208. $450 = $6 & 2;
  24209. $451 = ($450|0)==(0);
  24210. if ($451) {
  24211. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  24212. label = 117;
  24213. } else {
  24214. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  24215. label = 243;
  24216. continue L46;
  24217. }
  24218. break;
  24219. }
  24220. case 116: {
  24221. label = 0;
  24222. $453 = ((($$sink1729)) + 1|0);
  24223. $454 = HEAP8[$$sink1729>>0]|0;
  24224. $$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;
  24225. label = 117;
  24226. break;
  24227. }
  24228. case 125: {
  24229. label = 0;
  24230. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  24231. label = 243;
  24232. continue L46;
  24233. break;
  24234. }
  24235. case 128: {
  24236. label = 0;
  24237. $501 = $6 & 2;
  24238. $502 = ($501|0)==(0);
  24239. if ($502) {
  24240. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  24241. label = 131;
  24242. } else {
  24243. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  24244. label = 243;
  24245. continue L46;
  24246. }
  24247. break;
  24248. }
  24249. case 130: {
  24250. label = 0;
  24251. $504 = ((($$sink1732)) + 1|0);
  24252. $505 = HEAP8[$$sink1732>>0]|0;
  24253. $$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;
  24254. label = 131;
  24255. break;
  24256. }
  24257. case 136: {
  24258. label = 0;
  24259. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  24260. label = 243;
  24261. continue L46;
  24262. break;
  24263. }
  24264. case 151: {
  24265. label = 0;
  24266. $570 = $6 & 2;
  24267. $571 = ($570|0)==(0);
  24268. if ($571) {
  24269. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  24270. label = 154;
  24271. } else {
  24272. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  24273. label = 243;
  24274. continue L46;
  24275. }
  24276. break;
  24277. }
  24278. case 153: {
  24279. label = 0;
  24280. $573 = ((($$sink1736)) + 1|0);
  24281. $574 = HEAP8[$$sink1736>>0]|0;
  24282. $$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;
  24283. label = 154;
  24284. break;
  24285. }
  24286. case 160: {
  24287. label = 0;
  24288. $610 = ($$591666>>>0)<($12>>>0);
  24289. if (!($610)) {
  24290. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  24291. label = 243;
  24292. continue L46;
  24293. }
  24294. $611 = $$621159&255;
  24295. $612 = ((($$591666)) + 1|0);
  24296. HEAP8[$$591666>>0] = $611;
  24297. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  24298. label = 140;
  24299. break;
  24300. }
  24301. case 180: {
  24302. label = 0;
  24303. $694 = $6 & 2;
  24304. $695 = ($694|0)==(0);
  24305. if ($695) {
  24306. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  24307. label = 183;
  24308. } else {
  24309. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  24310. label = 243;
  24311. continue L46;
  24312. }
  24313. break;
  24314. }
  24315. case 182: {
  24316. label = 0;
  24317. $697 = ((($$sink1739)) + 1|0);
  24318. $698 = HEAP8[$$sink1739>>0]|0;
  24319. $$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;
  24320. label = 183;
  24321. break;
  24322. }
  24323. case 193: {
  24324. label = 0;
  24325. $735 = $6 & 2;
  24326. $736 = ($735|0)==(0);
  24327. if ($736) {
  24328. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  24329. label = 196;
  24330. } else {
  24331. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  24332. label = 243;
  24333. continue L46;
  24334. }
  24335. break;
  24336. }
  24337. case 195: {
  24338. label = 0;
  24339. $738 = ((($$sink1743)) + 1|0);
  24340. $739 = HEAP8[$$sink1743>>0]|0;
  24341. $$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;
  24342. label = 196;
  24343. break;
  24344. }
  24345. case 204: {
  24346. label = 0;
  24347. $782 = $6 & 2;
  24348. $783 = ($782|0)==(0);
  24349. if ($783) {
  24350. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  24351. label = 207;
  24352. } else {
  24353. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  24354. label = 243;
  24355. continue L46;
  24356. }
  24357. break;
  24358. }
  24359. case 206: {
  24360. label = 0;
  24361. $785 = ((($$sink1746)) + 1|0);
  24362. $786 = HEAP8[$$sink1746>>0]|0;
  24363. $$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;
  24364. label = 207;
  24365. break;
  24366. }
  24367. case 210: {
  24368. label = 0;
  24369. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  24370. label = 243;
  24371. continue L46;
  24372. break;
  24373. }
  24374. case 213: {
  24375. label = 0;
  24376. $809 = ($$781685>>>0)<($12>>>0);
  24377. if (!($809)) {
  24378. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  24379. label = 243;
  24380. continue L46;
  24381. }
  24382. $810 = (($$751491) + 1)|0;
  24383. $811 = (($$751491) - ($$791070))|0;
  24384. $812 = $811 & $$1753;
  24385. $813 = (($3) + ($812)|0);
  24386. $814 = HEAP8[$813>>0]|0;
  24387. $815 = ((($$781685)) + 1|0);
  24388. HEAP8[$$781685>>0] = $814;
  24389. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  24390. label = 212;
  24391. break;
  24392. }
  24393. case 226: {
  24394. label = 0;
  24395. $849 = $$90 & 7;
  24396. $850 = $$901399 >>> $849;
  24397. $851 = (($$90) - ($849))|0;
  24398. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  24399. label = 227;
  24400. break;
  24401. }
  24402. case 231: {
  24403. label = 0;
  24404. $856 = $6 & 2;
  24405. $857 = ($856|0)==(0);
  24406. if ($857) {
  24407. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  24408. label = 234;
  24409. } else {
  24410. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  24411. label = 243;
  24412. continue L46;
  24413. }
  24414. break;
  24415. }
  24416. case 233: {
  24417. label = 0;
  24418. $859 = ((($$sink1750)) + 1|0);
  24419. $860 = HEAP8[$$sink1750>>0]|0;
  24420. $$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;
  24421. label = 234;
  24422. break;
  24423. }
  24424. case 237: {
  24425. label = 0;
  24426. $869 = $6 & 2;
  24427. $870 = ($869|0)==(0);
  24428. if ($870) {
  24429. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  24430. label = 241;
  24431. continue L46;
  24432. } else {
  24433. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  24434. label = 243;
  24435. continue L46;
  24436. }
  24437. break;
  24438. }
  24439. case 241: {
  24440. label = 0;
  24441. $878 = ((($0)) + 16|0);
  24442. $879 = HEAP32[$878>>2]|0;
  24443. $880 = $879 << 8;
  24444. $881 = $880 | $$0948;
  24445. HEAP32[$878>>2] = $881;
  24446. $882 = (($$931190) + 1)|0;
  24447. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  24448. label = 227;
  24449. break;
  24450. }
  24451. case 242: {
  24452. label = 0;
  24453. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  24454. label = 243;
  24455. continue L46;
  24456. break;
  24457. }
  24458. case 243: {
  24459. label = 0;
  24460. HEAP32[$0>>2] = $$sink30;
  24461. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  24462. label = 244;
  24463. continue L46;
  24464. break;
  24465. }
  24466. case 244: {
  24467. label = 0;
  24468. HEAP32[$24>>2] = $$100;
  24469. HEAP32[$26>>2] = $$1001409;
  24470. HEAP32[$28>>2] = $$941085;
  24471. HEAP32[$30>>2] = $$961193;
  24472. HEAP32[$32>>2] = $$961299;
  24473. HEAP32[$34>>2] = $$901506;
  24474. $883 = $$991606;
  24475. $884 = $1;
  24476. $885 = (($883) - ($884))|0;
  24477. HEAP32[$2>>2] = $885;
  24478. $886 = $$941701;
  24479. $887 = $4;
  24480. $888 = (($886) - ($887))|0;
  24481. HEAP32[$5>>2] = $888;
  24482. $889 = $6 & 9;
  24483. $890 = ($889|0)!=(0);
  24484. $891 = ($$1961|0)>(-1);
  24485. $or$cond29 = $890 & $891;
  24486. if ($or$cond29) {
  24487. break L46;
  24488. } else {
  24489. $$0951 = $$1961;
  24490. label = 258;
  24491. break L46;
  24492. }
  24493. break;
  24494. }
  24495. }
  24496. switch (label|0) {
  24497. case 19: {
  24498. label = 0;
  24499. $$01413 = $$01413$shrunk&255;
  24500. $78 = $$01413 << $$8;
  24501. $79 = $78 | $$81317;
  24502. $80 = (($$8) + 8)|0;
  24503. $81 = ($80>>>0)<(3);
  24504. if ($81) {
  24505. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  24506. label = 15;
  24507. } else {
  24508. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  24509. label = 20;
  24510. }
  24511. break;
  24512. }
  24513. case 33: {
  24514. label = 0;
  24515. $$01411 = $$01411$shrunk&255;
  24516. $109 = $$01411 << $$17;
  24517. $110 = $109 | $$171326;
  24518. $111 = (($$17) + 8)|0;
  24519. $112 = ($$17>>>0)>(4294967287);
  24520. if ($112) {
  24521. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  24522. label = 29;
  24523. } else {
  24524. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  24525. label = 34;
  24526. }
  24527. break;
  24528. }
  24529. case 50: {
  24530. label = 0;
  24531. $$01410 = $$01410$shrunk&255;
  24532. $155 = $$01410 << $$26;
  24533. $156 = $155 | $$261335;
  24534. $157 = (($$26) + 8)|0;
  24535. $158 = ($$26>>>0)>(4294967287);
  24536. if ($158) {
  24537. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  24538. label = 46;
  24539. } else {
  24540. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  24541. label = 51;
  24542. }
  24543. break;
  24544. }
  24545. case 67: {
  24546. label = 0;
  24547. $$01300 = $$01300$shrunk&255;
  24548. $196 = $$01300 << $$37;
  24549. $197 = $196 | $$371346;
  24550. $198 = (($$37) + 8)|0;
  24551. $199 = (11962 + ($$361133)|0);
  24552. $200 = HEAP8[$199>>0]|0;
  24553. $201 = $200 << 24 >> 24;
  24554. $202 = ($198>>>0)<($201>>>0);
  24555. if ($202) {
  24556. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  24557. label = 63;
  24558. } else {
  24559. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  24560. label = 68;
  24561. }
  24562. break;
  24563. }
  24564. case 76: {
  24565. label = 0;
  24566. $$01202 = $$01202$shrunk&255;
  24567. $227 = $$01202 << $$42;
  24568. $228 = $227 | $$421351;
  24569. $229 = (($$42) + 8)|0;
  24570. $230 = ($229>>>0)<(3);
  24571. if ($230) {
  24572. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  24573. label = 72;
  24574. } else {
  24575. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  24576. label = 77;
  24577. }
  24578. break;
  24579. }
  24580. case 117: {
  24581. label = 0;
  24582. $$0980 = $$0980$shrunk&255;
  24583. $455 = $$0980 << $$49;
  24584. $456 = $455 | $$491358;
  24585. $457 = (($$49) + 8)|0;
  24586. $458 = ($457>>>0)<(15);
  24587. if ($458) {
  24588. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  24589. label = 108;
  24590. } else {
  24591. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  24592. label = 119;
  24593. }
  24594. break;
  24595. }
  24596. case 131: {
  24597. label = 0;
  24598. $$0979 = $$0979$shrunk&255;
  24599. $506 = $$0979 << $$54;
  24600. $507 = $506 | $$541363;
  24601. $508 = (($$54) + 8)|0;
  24602. $509 = ($508>>>0)<($$541257>>>0);
  24603. if ($509) {
  24604. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  24605. label = 127;
  24606. } else {
  24607. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  24608. label = 132;
  24609. }
  24610. break;
  24611. }
  24612. case 154: {
  24613. label = 0;
  24614. $$0971 = $$0971$shrunk&255;
  24615. $575 = $$0971 << $$62;
  24616. $576 = $575 | $$621371;
  24617. $577 = (($$62) + 8)|0;
  24618. $578 = ($577>>>0)<(15);
  24619. if ($578) {
  24620. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  24621. label = 145;
  24622. } else {
  24623. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  24624. label = 156;
  24625. }
  24626. break;
  24627. }
  24628. case 183: {
  24629. label = 0;
  24630. $$0959 = $$0959$shrunk&255;
  24631. $699 = $$0959 << $$71;
  24632. $700 = $699 | $$711380;
  24633. $701 = (($$71) + 8)|0;
  24634. $702 = ($701>>>0)<($$681271>>>0);
  24635. if ($702) {
  24636. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  24637. label = 179;
  24638. } else {
  24639. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  24640. label = 184;
  24641. }
  24642. break;
  24643. }
  24644. case 196: {
  24645. label = 0;
  24646. $$0952 = $$0952$shrunk&255;
  24647. $740 = $$0952 << $$76;
  24648. $741 = $740 | $$761385;
  24649. $742 = (($$76) + 8)|0;
  24650. $743 = ($742>>>0)<(15);
  24651. if ($743) {
  24652. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  24653. label = 187;
  24654. } else {
  24655. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  24656. label = 198;
  24657. }
  24658. break;
  24659. }
  24660. case 207: {
  24661. label = 0;
  24662. $$0950 = $$0950$shrunk&255;
  24663. $787 = $$0950 << $$80;
  24664. $788 = $787 | $$801389;
  24665. $789 = (($$80) + 8)|0;
  24666. $790 = ($789>>>0)<($$761279>>>0);
  24667. if ($790) {
  24668. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  24669. label = 203;
  24670. } else {
  24671. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  24672. label = 208;
  24673. }
  24674. break;
  24675. }
  24676. case 227: {
  24677. label = 0;
  24678. $852 = ($$871184>>>0)<(4);
  24679. if (!($852)) {
  24680. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  24681. label = 242;
  24682. continue L46;
  24683. }
  24684. $853 = ($$91|0)==(0);
  24685. if (!($853)) {
  24686. $854 = ($$91>>>0)<(8);
  24687. if ($854) {
  24688. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  24689. label = 230;
  24690. break;
  24691. } else {
  24692. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  24693. label = 235;
  24694. break;
  24695. }
  24696. }
  24697. $868 = ($$901597>>>0)<($10>>>0);
  24698. if (!($868)) {
  24699. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  24700. label = 237;
  24701. continue L46;
  24702. }
  24703. $875 = ((($$901597)) + 1|0);
  24704. $876 = HEAP8[$$901597>>0]|0;
  24705. $877 = $876&255;
  24706. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  24707. label = 241;
  24708. continue L46;
  24709. break;
  24710. }
  24711. case 234: {
  24712. label = 0;
  24713. $$0947 = $$0947$shrunk&255;
  24714. $861 = $$0947 << $$94;
  24715. $862 = $861 | $$941403;
  24716. $863 = (($$94) + 8)|0;
  24717. $864 = ($$94>>>0)>(4294967287);
  24718. if ($864) {
  24719. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  24720. label = 230;
  24721. } else {
  24722. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  24723. label = 235;
  24724. }
  24725. break;
  24726. }
  24727. }
  24728. L119: do {
  24729. if ((label|0) == 15) {
  24730. label = 0;
  24731. $72 = ($$51512>>>0)<($10>>>0);
  24732. if ($72) {
  24733. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  24734. label = 18;
  24735. continue L46;
  24736. } else {
  24737. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  24738. label = 16;
  24739. continue L46;
  24740. }
  24741. }
  24742. else if ((label|0) == 20) {
  24743. label = 0;
  24744. $82 = $$91318 & 7;
  24745. $83 = ((($0)) + 20|0);
  24746. HEAP32[$83>>2] = $82;
  24747. $84 = $$91318 >>> 3;
  24748. $85 = (($$9) + -3)|0;
  24749. $86 = $82 >>> 1;
  24750. $87 = ((($0)) + 24|0);
  24751. HEAP32[$87>>2] = $86;
  24752. $trunc = $86&255;
  24753. $trunc$clear = $trunc & 3;
  24754. switch ($trunc$clear<<24>>24) {
  24755. case 0: {
  24756. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  24757. label = 25;
  24758. continue L46;
  24759. break;
  24760. }
  24761. case 3: {
  24762. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  24763. label = 60;
  24764. continue L46;
  24765. break;
  24766. }
  24767. case 1: {
  24768. break;
  24769. }
  24770. default: {
  24771. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  24772. label = 61;
  24773. break L119;
  24774. }
  24775. }
  24776. $240 = ((($0)) + 44|0);
  24777. HEAP32[$240>>2] = 288;
  24778. $241 = ((($0)) + 48|0);
  24779. HEAP32[$241>>2] = 32;
  24780. $242 = ((($0)) + 3552|0);
  24781. ;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;
  24782. $scevgep19611962 = ((($0)) + 64|0);
  24783. _memset(($scevgep19611962|0),8,144)|0;
  24784. $scevgep1959 = ((($0)) + 208|0);
  24785. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  24786. $scevgep1957 = ((($0)) + 320|0);
  24787. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  24788. $scevgep1955 = ((($0)) + 344|0);
  24789. $243 = $scevgep1955;
  24790. $244 = $243;
  24791. 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;
  24792. $245 = (($243) + 4)|0;
  24793. $246 = $245;
  24794. 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;
  24795. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  24796. label = 80;
  24797. }
  24798. else if ((label|0) == 230) {
  24799. label = 0;
  24800. $855 = ($$911598>>>0)<($10>>>0);
  24801. if ($855) {
  24802. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  24803. label = 233;
  24804. continue L46;
  24805. } else {
  24806. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  24807. label = 231;
  24808. continue L46;
  24809. }
  24810. }
  24811. else if ((label|0) == 235) {
  24812. label = 0;
  24813. $865 = $$951404 & 255;
  24814. $866 = $$951404 >>> 8;
  24815. $867 = (($$95) + -8)|0;
  24816. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  24817. label = 241;
  24818. continue L46;
  24819. }
  24820. } while(0);
  24821. L125: while(1) {
  24822. L126: switch (label|0) {
  24823. case 26: {
  24824. label = 0;
  24825. $100 = ($$131110>>>0)<(4);
  24826. if (!($100)) {
  24827. $127 = ((($0)) + 10528|0);
  24828. $128 = HEAP8[$127>>0]|0;
  24829. $129 = $128&255;
  24830. $130 = ((($0)) + 10529|0);
  24831. $131 = HEAP8[$130>>0]|0;
  24832. $132 = $131&255;
  24833. $133 = $132 << 8;
  24834. $134 = $133 | $129;
  24835. $135 = ((($0)) + 10530|0);
  24836. $136 = HEAP8[$135>>0]|0;
  24837. $137 = $136&255;
  24838. $138 = ((($0)) + 10531|0);
  24839. $139 = HEAP8[$138>>0]|0;
  24840. $140 = $139&255;
  24841. $141 = $140 << 8;
  24842. $142 = $141 | $137;
  24843. $143 = $142 ^ 65535;
  24844. $144 = ($134|0)==($143|0);
  24845. if ($144) {
  24846. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  24847. label = 44;
  24848. continue L125;
  24849. } else {
  24850. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  24851. label = 43;
  24852. continue L46;
  24853. }
  24854. }
  24855. $101 = ($$14|0)==(0);
  24856. if (!($101)) {
  24857. $102 = ($$14>>>0)<(8);
  24858. if ($102) {
  24859. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  24860. label = 29;
  24861. continue L125;
  24862. } else {
  24863. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  24864. label = 34;
  24865. continue L125;
  24866. }
  24867. }
  24868. $117 = ($$131520>>>0)<($10>>>0);
  24869. if (!($117)) {
  24870. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  24871. label = 36;
  24872. continue L46;
  24873. }
  24874. $123 = ((($$131520)) + 1|0);
  24875. $124 = HEAP8[$$131520>>0]|0;
  24876. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  24877. HEAP8[$125>>0] = $124;
  24878. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  24879. label = 41;
  24880. continue L125;
  24881. break;
  24882. }
  24883. case 29: {
  24884. label = 0;
  24885. $103 = ($$141521>>>0)<($10>>>0);
  24886. if ($103) {
  24887. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  24888. label = 32;
  24889. continue L46;
  24890. } else {
  24891. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  24892. label = 30;
  24893. continue L46;
  24894. }
  24895. break;
  24896. }
  24897. case 34: {
  24898. label = 0;
  24899. $113 = $$181327&255;
  24900. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  24901. HEAP8[$114>>0] = $113;
  24902. $115 = $$181327 >>> 8;
  24903. $116 = (($$18) + -8)|0;
  24904. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  24905. label = 41;
  24906. continue L125;
  24907. break;
  24908. }
  24909. case 41: {
  24910. label = 0;
  24911. $126 = (($$201117) + 1)|0;
  24912. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  24913. label = 26;
  24914. continue L125;
  24915. break;
  24916. }
  24917. case 44: {
  24918. label = 0;
  24919. $145 = ($$221119|0)!=(0);
  24920. $146 = ($$23|0)!=(0);
  24921. $147 = $145 & $146;
  24922. if (!($147)) {
  24923. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  24924. label = 54;
  24925. continue L125;
  24926. }
  24927. $148 = ($$23>>>0)<(8);
  24928. if ($148) {
  24929. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  24930. label = 46;
  24931. continue L125;
  24932. } else {
  24933. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  24934. label = 51;
  24935. continue L125;
  24936. }
  24937. break;
  24938. }
  24939. case 46: {
  24940. label = 0;
  24941. $149 = ($$231530>>>0)<($10>>>0);
  24942. if ($149) {
  24943. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  24944. label = 49;
  24945. continue L46;
  24946. } else {
  24947. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  24948. label = 47;
  24949. continue L46;
  24950. }
  24951. break;
  24952. }
  24953. case 51: {
  24954. label = 0;
  24955. $159 = $$271336 & 255;
  24956. $160 = $$271336 >>> 8;
  24957. $161 = (($$27) + -8)|0;
  24958. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  24959. label = 52;
  24960. continue L46;
  24961. break;
  24962. }
  24963. case 54: {
  24964. label = 0;
  24965. $166 = ($$281125|0)==(0);
  24966. if ($166) {
  24967. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  24968. label = 220;
  24969. break L125;
  24970. } else {
  24971. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  24972. label = 55;
  24973. continue L46;
  24974. }
  24975. break;
  24976. }
  24977. case 61: {
  24978. label = 0;
  24979. $185 = ($$331130>>>0)<(3);
  24980. if ($185) {
  24981. $186 = (11962 + ($$331130)|0);
  24982. $187 = HEAP8[$186>>0]|0;
  24983. $188 = $187 << 24 >> 24;
  24984. $189 = ($$34>>>0)<($188>>>0);
  24985. if ($189) {
  24986. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  24987. label = 63;
  24988. continue L125;
  24989. } else {
  24990. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  24991. label = 68;
  24992. continue L125;
  24993. }
  24994. } else {
  24995. $216 = ((($0)) + 7040|0);
  24996. _memset(($216|0),0,288)|0;
  24997. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  24998. label = 70;
  24999. break;
  25000. }
  25001. break;
  25002. }
  25003. case 63: {
  25004. label = 0;
  25005. $190 = ($$341541>>>0)<($10>>>0);
  25006. if ($190) {
  25007. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  25008. label = 66;
  25009. continue L46;
  25010. } else {
  25011. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  25012. label = 64;
  25013. continue L46;
  25014. }
  25015. break;
  25016. }
  25017. case 68: {
  25018. label = 0;
  25019. $203 = (11962 + ($$371134)|0);
  25020. $204 = HEAP8[$203>>0]|0;
  25021. $205 = $204 << 24 >> 24;
  25022. $206 = 1 << $205;
  25023. $207 = (($206) + -1)|0;
  25024. $208 = $207 & $$381347;
  25025. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  25026. $210 = $$381347 >>> $205;
  25027. $211 = (($$38) - ($205))|0;
  25028. $212 = (3184 + ($$371134<<2)|0);
  25029. $213 = HEAP32[$212>>2]|0;
  25030. $214 = (($208) + ($213))|0;
  25031. HEAP32[$209>>2] = $214;
  25032. $215 = (($$371134) + 1)|0;
  25033. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  25034. label = 61;
  25035. continue L125;
  25036. break;
  25037. }
  25038. case 72: {
  25039. label = 0;
  25040. $221 = ($$391546>>>0)<($10>>>0);
  25041. if ($221) {
  25042. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  25043. label = 75;
  25044. continue L46;
  25045. } else {
  25046. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  25047. label = 73;
  25048. continue L46;
  25049. }
  25050. break;
  25051. }
  25052. case 77: {
  25053. label = 0;
  25054. $231 = $$431352 & 7;
  25055. $232 = $$431352 >>> 3;
  25056. $233 = (($$43) + -3)|0;
  25057. $234 = $231&255;
  25058. $235 = (11966 + ($$421139)|0);
  25059. $236 = HEAP8[$235>>0]|0;
  25060. $237 = $236&255;
  25061. $238 = (((($0)) + 7040|0) + ($237)|0);
  25062. HEAP8[$238>>0] = $234;
  25063. $239 = (($$421139) + 1)|0;
  25064. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  25065. label = 70;
  25066. break;
  25067. }
  25068. case 80: {
  25069. label = 0;
  25070. $247 = ((($0)) + 24|0);
  25071. $248 = HEAP32[$247>>2]|0;
  25072. $249 = ($248|0)>(-1);
  25073. if ($249) {
  25074. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  25075. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  25076. _memset(($250|0),0,3200)|0;
  25077. $251 = HEAP32[$247>>2]|0;
  25078. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  25079. $253 = HEAP32[$252>>2]|0;
  25080. $254 = ($253|0)==(0);
  25081. if (!($254)) {
  25082. $255 = HEAP32[$247>>2]|0;
  25083. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  25084. $257 = HEAP32[$256>>2]|0;
  25085. $$010951864 = 0;
  25086. while(1) {
  25087. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  25088. $259 = HEAP8[$258>>0]|0;
  25089. $260 = $259&255;
  25090. $261 = (($8) + ($260<<2)|0);
  25091. $262 = HEAP32[$261>>2]|0;
  25092. $263 = (($262) + 1)|0;
  25093. HEAP32[$261>>2] = $263;
  25094. $264 = (($$010951864) + 1)|0;
  25095. $265 = ($264>>>0)<($257>>>0);
  25096. if ($265) {
  25097. $$010951864 = $264;
  25098. } else {
  25099. break;
  25100. }
  25101. }
  25102. }
  25103. $266 = ((($7)) + 4|0);
  25104. HEAP32[$266>>2] = 0;
  25105. HEAP32[$7>>2] = 0;
  25106. $267 = ((($8)) + 4|0);
  25107. $268 = HEAP32[$267>>2]|0;
  25108. $269 = $268 << 1;
  25109. $270 = ((($7)) + 8|0);
  25110. HEAP32[$270>>2] = $269;
  25111. $271 = ((($8)) + 8|0);
  25112. $272 = HEAP32[$271>>2]|0;
  25113. $273 = (($272) + ($268))|0;
  25114. $274 = (($272) + ($269))|0;
  25115. $275 = $274 << 1;
  25116. $276 = ((($7)) + 12|0);
  25117. HEAP32[$276>>2] = $275;
  25118. $277 = ((($8)) + 12|0);
  25119. $278 = HEAP32[$277>>2]|0;
  25120. $279 = (($278) + ($273))|0;
  25121. $280 = (($278) + ($275))|0;
  25122. $281 = $280 << 1;
  25123. $282 = ((($7)) + 16|0);
  25124. HEAP32[$282>>2] = $281;
  25125. $283 = ((($8)) + 16|0);
  25126. $284 = HEAP32[$283>>2]|0;
  25127. $285 = (($284) + ($279))|0;
  25128. $286 = (($284) + ($281))|0;
  25129. $287 = $286 << 1;
  25130. $288 = ((($7)) + 20|0);
  25131. HEAP32[$288>>2] = $287;
  25132. $289 = ((($8)) + 20|0);
  25133. $290 = HEAP32[$289>>2]|0;
  25134. $291 = (($290) + ($285))|0;
  25135. $292 = (($290) + ($287))|0;
  25136. $293 = $292 << 1;
  25137. $294 = ((($7)) + 24|0);
  25138. HEAP32[$294>>2] = $293;
  25139. $295 = ((($8)) + 24|0);
  25140. $296 = HEAP32[$295>>2]|0;
  25141. $297 = (($296) + ($291))|0;
  25142. $298 = (($296) + ($293))|0;
  25143. $299 = $298 << 1;
  25144. $300 = ((($7)) + 28|0);
  25145. HEAP32[$300>>2] = $299;
  25146. $301 = ((($8)) + 28|0);
  25147. $302 = HEAP32[$301>>2]|0;
  25148. $303 = (($302) + ($297))|0;
  25149. $304 = (($302) + ($299))|0;
  25150. $305 = $304 << 1;
  25151. $306 = ((($7)) + 32|0);
  25152. HEAP32[$306>>2] = $305;
  25153. $307 = ((($8)) + 32|0);
  25154. $308 = HEAP32[$307>>2]|0;
  25155. $309 = (($308) + ($303))|0;
  25156. $310 = (($308) + ($305))|0;
  25157. $311 = $310 << 1;
  25158. $312 = ((($7)) + 36|0);
  25159. HEAP32[$312>>2] = $311;
  25160. $313 = ((($8)) + 36|0);
  25161. $314 = HEAP32[$313>>2]|0;
  25162. $315 = (($314) + ($309))|0;
  25163. $316 = (($314) + ($311))|0;
  25164. $317 = $316 << 1;
  25165. $318 = ((($7)) + 40|0);
  25166. HEAP32[$318>>2] = $317;
  25167. $319 = ((($8)) + 40|0);
  25168. $320 = HEAP32[$319>>2]|0;
  25169. $321 = (($320) + ($315))|0;
  25170. $322 = (($320) + ($317))|0;
  25171. $323 = $322 << 1;
  25172. $324 = ((($7)) + 44|0);
  25173. HEAP32[$324>>2] = $323;
  25174. $325 = ((($8)) + 44|0);
  25175. $326 = HEAP32[$325>>2]|0;
  25176. $327 = (($326) + ($321))|0;
  25177. $328 = (($326) + ($323))|0;
  25178. $329 = $328 << 1;
  25179. $330 = ((($7)) + 48|0);
  25180. HEAP32[$330>>2] = $329;
  25181. $331 = ((($8)) + 48|0);
  25182. $332 = HEAP32[$331>>2]|0;
  25183. $333 = (($332) + ($327))|0;
  25184. $334 = (($332) + ($329))|0;
  25185. $335 = $334 << 1;
  25186. $336 = ((($7)) + 52|0);
  25187. HEAP32[$336>>2] = $335;
  25188. $337 = ((($8)) + 52|0);
  25189. $338 = HEAP32[$337>>2]|0;
  25190. $339 = (($338) + ($333))|0;
  25191. $340 = (($338) + ($335))|0;
  25192. $341 = $340 << 1;
  25193. $342 = ((($7)) + 56|0);
  25194. HEAP32[$342>>2] = $341;
  25195. $343 = ((($8)) + 56|0);
  25196. $344 = HEAP32[$343>>2]|0;
  25197. $345 = (($344) + ($339))|0;
  25198. $346 = (($344) + ($341))|0;
  25199. $347 = $346 << 1;
  25200. $348 = ((($7)) + 60|0);
  25201. HEAP32[$348>>2] = $347;
  25202. $349 = ((($8)) + 60|0);
  25203. $350 = HEAP32[$349>>2]|0;
  25204. $351 = (($350) + ($345))|0;
  25205. $352 = (($350) + ($347))|0;
  25206. $353 = $352 << 1;
  25207. $354 = ((($7)) + 64|0);
  25208. HEAP32[$354>>2] = $353;
  25209. $355 = ($353|0)!=(65536);
  25210. $356 = ($351>>>0)>(1);
  25211. $or$cond = $355 & $356;
  25212. if ($or$cond) {
  25213. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  25214. label = 86;
  25215. continue L46;
  25216. }
  25217. $357 = HEAP32[$247>>2]|0;
  25218. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  25219. $359 = HEAP32[$358>>2]|0;
  25220. $360 = ($359|0)==(0);
  25221. if ($360) {
  25222. $$lcssa1779 = $357;
  25223. } else {
  25224. $$010911856 = 0;$$011971855 = -1;
  25225. while(1) {
  25226. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  25227. $362 = HEAP8[$361>>0]|0;
  25228. $363 = $362&255;
  25229. $364 = ($362<<24>>24)==(0);
  25230. L142: do {
  25231. if ($364) {
  25232. $$41201 = $$011971855;
  25233. } else {
  25234. $365 = (($7) + ($363<<2)|0);
  25235. $366 = HEAP32[$365>>2]|0;
  25236. $367 = (($366) + 1)|0;
  25237. HEAP32[$365>>2] = $367;
  25238. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  25239. while(1) {
  25240. $368 = $$010881838 << 1;
  25241. $369 = $$010861840 & 1;
  25242. $370 = $369 | $368;
  25243. $371 = (($$010871839) + -1)|0;
  25244. $372 = $$010861840 >>> 1;
  25245. $373 = ($371|0)==(0);
  25246. if ($373) {
  25247. break;
  25248. } else {
  25249. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  25250. }
  25251. }
  25252. $374 = ($362&255)<(11);
  25253. if ($374) {
  25254. $375 = $363 << 9;
  25255. $376 = $375 | $$010911856;
  25256. $377 = $376&65535;
  25257. $378 = ($370>>>0)<(1024);
  25258. if (!($378)) {
  25259. $$41201 = $$011971855;
  25260. break;
  25261. }
  25262. $379 = 1 << $363;
  25263. $$110891852 = $370;
  25264. while(1) {
  25265. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  25266. HEAP16[$380>>1] = $377;
  25267. $381 = (($$110891852) + ($379))|0;
  25268. $382 = ($381>>>0)<(1024);
  25269. if ($382) {
  25270. $$110891852 = $381;
  25271. } else {
  25272. $$41201 = $$011971855;
  25273. break L142;
  25274. }
  25275. }
  25276. }
  25277. $383 = $370 & 1023;
  25278. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  25279. $385 = HEAP16[$384>>1]|0;
  25280. $386 = $385 << 16 >> 16;
  25281. $387 = ($385<<16>>16)==(0);
  25282. if ($387) {
  25283. $388 = (($$011971855) + -2)|0;
  25284. $389 = $$011971855&65535;
  25285. HEAP16[$384>>1] = $389;
  25286. $$01194 = $$011971855;$$11198 = $388;
  25287. } else {
  25288. $$01194 = $386;$$11198 = $$011971855;
  25289. }
  25290. $390 = $$010881838 >>> 9;
  25291. $391 = ($362&255)>(11);
  25292. $392 = $390 & 1;
  25293. $393 = (($392) - ($$01194))|0;
  25294. $394 = (($393) + -1)|0;
  25295. if ($391) {
  25296. $395 = $390 & 4194303;
  25297. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  25298. while(1) {
  25299. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  25300. $398 = HEAP16[$396>>1]|0;
  25301. $399 = ($398<<16>>16)==(0);
  25302. if ($399) {
  25303. $400 = $$211991845&65535;
  25304. HEAP16[$396>>1] = $400;
  25305. $401 = (($$211991845) + -2)|0;
  25306. $$21196 = $$211991845;$$31200 = $401;
  25307. } else {
  25308. $402 = $398 << 16 >> 16;
  25309. $$21196 = $402;$$31200 = $$211991845;
  25310. }
  25311. $403 = (($$010941846) + -1)|0;
  25312. $404 = ($403>>>0)>(11);
  25313. $405 = $406 >>> 1;
  25314. $407 = $405 & 1;
  25315. $408 = (($407) - ($$21196))|0;
  25316. $409 = (($408) + -1)|0;
  25317. if ($404) {
  25318. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  25319. } else {
  25320. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  25321. break;
  25322. }
  25323. }
  25324. } else {
  25325. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  25326. }
  25327. $410 = $$010911856&65535;
  25328. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  25329. HEAP16[$411>>1] = $410;
  25330. $$41201 = $$21199$lcssa;
  25331. }
  25332. } while(0);
  25333. $412 = (($$010911856) + 1)|0;
  25334. $413 = HEAP32[$247>>2]|0;
  25335. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  25336. $415 = HEAP32[$414>>2]|0;
  25337. $416 = ($412>>>0)<($415>>>0);
  25338. if ($416) {
  25339. $$010911856 = $412;$$011971855 = $$41201;
  25340. } else {
  25341. $$lcssa1779 = $413;
  25342. break;
  25343. }
  25344. }
  25345. }
  25346. $417 = ($$lcssa1779|0)==(2);
  25347. if ($417) {
  25348. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  25349. label = 105;
  25350. } else {
  25351. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  25352. label = 138;
  25353. }
  25354. } else {
  25355. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  25356. label = 139;
  25357. }
  25358. break;
  25359. }
  25360. case 108: {
  25361. label = 0;
  25362. $429 = $$471356 & 1023;
  25363. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  25364. $431 = HEAP16[$430>>1]|0;
  25365. $432 = $431 << 16 >> 16;
  25366. $433 = ($431<<16>>16)>(-1);
  25367. if ($433) {
  25368. $434 = $432 >> 9;
  25369. $435 = (($434) + -1)|0;
  25370. $436 = ($435>>>0)<($$47>>>0);
  25371. if ($436) {
  25372. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  25373. label = 119;
  25374. continue L125;
  25375. } else {
  25376. label = 113;
  25377. break L125;
  25378. }
  25379. }
  25380. $437 = ($$47>>>0)>(10);
  25381. if ($437) {
  25382. $$0981 = 10;$$0984 = $432;
  25383. } else {
  25384. label = 113;
  25385. break L125;
  25386. }
  25387. while(1) {
  25388. $438 = $$0984 ^ -1;
  25389. $439 = $$471356 >>> $$0981;
  25390. $440 = $439 & 1;
  25391. $441 = (($440) + ($438))|0;
  25392. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  25393. $443 = HEAP16[$442>>1]|0;
  25394. $444 = ($443<<16>>16)<(0);
  25395. if (!($444)) {
  25396. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  25397. label = 119;
  25398. continue L125;
  25399. }
  25400. $445 = (($$0981) + 1)|0;
  25401. $446 = $443 << 16 >> 16;
  25402. $447 = (($$0981) + 2)|0;
  25403. $448 = ($$47>>>0)<($447>>>0);
  25404. if ($448) {
  25405. label = 113;
  25406. break L125;
  25407. } else {
  25408. $$0981 = $445;$$0984 = $446;
  25409. }
  25410. }
  25411. break;
  25412. }
  25413. case 119: {
  25414. label = 0;
  25415. $471 = $$501359 & 1023;
  25416. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  25417. $473 = HEAP16[$472>>1]|0;
  25418. $474 = $473 << 16 >> 16;
  25419. $475 = ($473<<16>>16)>(-1);
  25420. if ($475) {
  25421. $476 = $474 >> 9;
  25422. $477 = $474 & 511;
  25423. $$2983 = $476;$$2986 = $477;
  25424. } else {
  25425. $$1982 = 10;$$1985 = $474;
  25426. while(1) {
  25427. $478 = $$1985 ^ -1;
  25428. $479 = (($$1982) + 1)|0;
  25429. $480 = $$501359 >>> $$1982;
  25430. $481 = $480 & 1;
  25431. $482 = (($481) + ($478))|0;
  25432. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  25433. $484 = HEAP16[$483>>1]|0;
  25434. $485 = $484 << 16 >> 16;
  25435. $486 = ($484<<16>>16)<(0);
  25436. if ($486) {
  25437. $$1982 = $479;$$1985 = $485;
  25438. } else {
  25439. $$2983 = $479;$$2986 = $485;
  25440. break;
  25441. }
  25442. }
  25443. }
  25444. $487 = $$501359 >>> $$2983;
  25445. $488 = (($$50) - ($$2983))|0;
  25446. $489 = ($$2986>>>0)<(16);
  25447. if ($489) {
  25448. $490 = $$2986&255;
  25449. $491 = (($$491146) + 1)|0;
  25450. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  25451. HEAP8[$492>>0] = $490;
  25452. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  25453. label = 105;
  25454. break;
  25455. }
  25456. $493 = ($$2986|0)!=(16);
  25457. $494 = ($$491146|0)!=(0);
  25458. $or$cond24 = $494 | $493;
  25459. if (!($or$cond24)) {
  25460. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  25461. label = 125;
  25462. continue L46;
  25463. }
  25464. $495 = (($$2986) + -16)|0;
  25465. $496 = (11985 + ($495)|0);
  25466. $497 = HEAP8[$496>>0]|0;
  25467. $498 = $497 << 24 >> 24;
  25468. $499 = ($488>>>0)<($498>>>0);
  25469. if ($499) {
  25470. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  25471. label = 127;
  25472. continue L125;
  25473. } else {
  25474. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  25475. label = 132;
  25476. continue L125;
  25477. }
  25478. break;
  25479. }
  25480. case 127: {
  25481. label = 0;
  25482. $500 = ($$511558>>>0)<($10>>>0);
  25483. if ($500) {
  25484. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  25485. label = 130;
  25486. continue L46;
  25487. } else {
  25488. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  25489. label = 128;
  25490. continue L46;
  25491. }
  25492. break;
  25493. }
  25494. case 132: {
  25495. label = 0;
  25496. $510 = 1 << $$551258;
  25497. $511 = (($510) + -1)|0;
  25498. $512 = $511 & $$551364;
  25499. $513 = $$551364 >>> $$551258;
  25500. $514 = (($$55) - ($$551258))|0;
  25501. $515 = (($$531044) + -16)|0;
  25502. $516 = (11989 + ($515)|0);
  25503. $517 = HEAP8[$516>>0]|0;
  25504. $518 = $517 << 24 >> 24;
  25505. $519 = (($518) + ($512))|0;
  25506. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  25507. $521 = ($$531044|0)==(16);
  25508. if ($521) {
  25509. $522 = (($$541151) + -1)|0;
  25510. $523 = (((($0)) + 10532|0) + ($522)|0);
  25511. $524 = HEAP8[$523>>0]|0;
  25512. $525 = $524&255;
  25513. $527 = $525;
  25514. } else {
  25515. $527 = 0;
  25516. }
  25517. $526 = $527&255;
  25518. _memset(($520|0),($526|0),($519|0))|0;
  25519. $528 = (($519) + ($$541151))|0;
  25520. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  25521. label = 105;
  25522. break;
  25523. }
  25524. case 140: {
  25525. label = 0;
  25526. $539 = $10;
  25527. $540 = $$581565$ph;
  25528. $541 = (($539) - ($540))|0;
  25529. $542 = ($541|0)<(4);
  25530. $543 = ($$59$ph>>>0)<(15);
  25531. L241: do {
  25532. if ($542) {
  25533. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  25534. } else {
  25535. $544 = $12;
  25536. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  25537. while(1) {
  25538. $545 = $$5416611868;
  25539. $546 = (($544) - ($545))|0;
  25540. $547 = ($546|0)<(2);
  25541. if ($547) {
  25542. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  25543. break L241;
  25544. }
  25545. if ($965) {
  25546. $613 = HEAP8[$$5815651869>>0]|0;
  25547. $614 = $613&255;
  25548. $615 = ((($$5815651869)) + 1|0);
  25549. $616 = HEAP8[$615>>0]|0;
  25550. $617 = $616&255;
  25551. $618 = $617 << 8;
  25552. $619 = $618 | $614;
  25553. $620 = $619 << $$591872;
  25554. $621 = $620 | $$5913681870;
  25555. $622 = ((($$5815651869)) + 2|0);
  25556. $623 = (($$591872) + 16)|0;
  25557. $$641571 = $622;$$65 = $623;$$651374 = $621;
  25558. } else {
  25559. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  25560. }
  25561. $624 = $$651374 & 1023;
  25562. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  25563. $626 = HEAP16[$625>>1]|0;
  25564. $627 = $626 << 16 >> 16;
  25565. $628 = ($626<<16>>16)>(-1);
  25566. if ($628) {
  25567. $629 = $627 >> 9;
  25568. $$1964 = $629;$$1968 = $627;
  25569. } else {
  25570. $$0963 = 10;$$0967 = $627;
  25571. while(1) {
  25572. $630 = $$0967 ^ -1;
  25573. $631 = (($$0963) + 1)|0;
  25574. $632 = $$651374 >>> $$0963;
  25575. $633 = $632 & 1;
  25576. $634 = (($633) + ($630))|0;
  25577. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  25578. $636 = HEAP16[$635>>1]|0;
  25579. $637 = $636 << 16 >> 16;
  25580. $638 = ($636<<16>>16)<(0);
  25581. if ($638) {
  25582. $$0963 = $631;$$0967 = $637;
  25583. } else {
  25584. $$1964 = $631;$$1968 = $637;
  25585. break;
  25586. }
  25587. }
  25588. }
  25589. $639 = $$651374 >>> $$1964;
  25590. $640 = (($$65) - ($$1964))|0;
  25591. $641 = $$1968 & 256;
  25592. $642 = ($641|0)==(0);
  25593. if (!($642)) {
  25594. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  25595. label = 176;
  25596. break L126;
  25597. }
  25598. $643 = ($640>>>0)<(15);
  25599. if ($643) {
  25600. $644 = HEAP8[$$641571>>0]|0;
  25601. $645 = $644&255;
  25602. $646 = ((($$641571)) + 1|0);
  25603. $647 = HEAP8[$646>>0]|0;
  25604. $648 = $647&255;
  25605. $649 = $648 << 8;
  25606. $650 = $649 | $645;
  25607. $651 = $650 << $640;
  25608. $652 = $651 | $639;
  25609. $653 = ((($$641571)) + 2|0);
  25610. $654 = (($640) + 16)|0;
  25611. $$651572 = $653;$$66 = $654;$$661375 = $652;
  25612. } else {
  25613. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  25614. }
  25615. $655 = $$661375 & 1023;
  25616. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  25617. $657 = HEAP16[$656>>1]|0;
  25618. $658 = $657 << 16 >> 16;
  25619. $659 = ($657<<16>>16)>(-1);
  25620. if ($659) {
  25621. $660 = $658 >> 9;
  25622. $$3966 = $660;$$3970 = $658;
  25623. } else {
  25624. $$2965 = 10;$$2969 = $658;
  25625. while(1) {
  25626. $661 = $$2969 ^ -1;
  25627. $662 = (($$2965) + 1)|0;
  25628. $663 = $$661375 >>> $$2965;
  25629. $664 = $663 & 1;
  25630. $665 = (($664) + ($661))|0;
  25631. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  25632. $667 = HEAP16[$666>>1]|0;
  25633. $668 = $667 << 16 >> 16;
  25634. $669 = ($667<<16>>16)<(0);
  25635. if ($669) {
  25636. $$2965 = $662;$$2969 = $668;
  25637. } else {
  25638. $$3966 = $662;$$3970 = $668;
  25639. break;
  25640. }
  25641. }
  25642. }
  25643. $670 = $$661375 >>> $$3966;
  25644. $671 = (($$66) - ($$3966))|0;
  25645. $672 = $$1968&255;
  25646. HEAP8[$$5416611868>>0] = $672;
  25647. $673 = $$3970 & 256;
  25648. $674 = ($673|0)==(0);
  25649. if (!($674)) {
  25650. break;
  25651. }
  25652. $676 = $$3970&255;
  25653. $677 = ((($$5416611868)) + 1|0);
  25654. HEAP8[$677>>0] = $676;
  25655. $678 = ((($$5416611868)) + 2|0);
  25656. $679 = $$651572;
  25657. $680 = (($539) - ($679))|0;
  25658. $681 = ($680|0)<(4);
  25659. $682 = ($671>>>0)<(15);
  25660. if ($681) {
  25661. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  25662. break L241;
  25663. } else {
  25664. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  25665. }
  25666. }
  25667. $675 = ((($$5416611868)) + 1|0);
  25668. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  25669. label = 176;
  25670. break L126;
  25671. }
  25672. } while(0);
  25673. if (!($$lcssa1799)) {
  25674. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  25675. label = 156;
  25676. continue L125;
  25677. }
  25678. $548 = ($$lcssa1802|0)<(2);
  25679. if ($548) {
  25680. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  25681. label = 145;
  25682. continue L125;
  25683. }
  25684. $579 = HEAP8[$$581565$lcssa>>0]|0;
  25685. $580 = $579&255;
  25686. $581 = $580 << $$59$lcssa;
  25687. $582 = ((($$581565$lcssa)) + 1|0);
  25688. $583 = HEAP8[$582>>0]|0;
  25689. $584 = $583&255;
  25690. $585 = (($$59$lcssa) + 8)|0;
  25691. $586 = $584 << $585;
  25692. $587 = $581 | $$591368$lcssa;
  25693. $588 = $587 | $586;
  25694. $589 = ((($$581565$lcssa)) + 2|0);
  25695. $590 = (($$59$lcssa) + 16)|0;
  25696. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  25697. label = 156;
  25698. continue L125;
  25699. break;
  25700. }
  25701. case 145: {
  25702. label = 0;
  25703. $549 = $$601369 & 1023;
  25704. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  25705. $551 = HEAP16[$550>>1]|0;
  25706. $552 = $551 << 16 >> 16;
  25707. $553 = ($551<<16>>16)>(-1);
  25708. if ($553) {
  25709. $554 = $552 >> 9;
  25710. $555 = (($554) + -1)|0;
  25711. $556 = ($555>>>0)<($$60>>>0);
  25712. if ($556) {
  25713. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  25714. label = 156;
  25715. continue L125;
  25716. } else {
  25717. label = 150;
  25718. break L125;
  25719. }
  25720. }
  25721. $557 = ($$60>>>0)>(10);
  25722. if ($557) {
  25723. $$0972 = 10;$$0975 = $552;
  25724. } else {
  25725. label = 150;
  25726. break L125;
  25727. }
  25728. while(1) {
  25729. $558 = $$0975 ^ -1;
  25730. $559 = $$601369 >>> $$0972;
  25731. $560 = $559 & 1;
  25732. $561 = (($560) + ($558))|0;
  25733. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  25734. $563 = HEAP16[$562>>1]|0;
  25735. $564 = ($563<<16>>16)<(0);
  25736. if (!($564)) {
  25737. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  25738. label = 156;
  25739. continue L125;
  25740. }
  25741. $565 = (($$0972) + 1)|0;
  25742. $566 = $563 << 16 >> 16;
  25743. $567 = (($$0972) + 2)|0;
  25744. $568 = ($$60>>>0)<($567>>>0);
  25745. if ($568) {
  25746. label = 150;
  25747. break L125;
  25748. } else {
  25749. $$0972 = $565;$$0975 = $566;
  25750. }
  25751. }
  25752. break;
  25753. }
  25754. case 156: {
  25755. label = 0;
  25756. $591 = $$631372 & 1023;
  25757. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  25758. $593 = HEAP16[$592>>1]|0;
  25759. $594 = $593 << 16 >> 16;
  25760. $595 = ($593<<16>>16)>(-1);
  25761. if ($595) {
  25762. $596 = $594 >> 9;
  25763. $597 = $594 & 511;
  25764. $$2974 = $596;$$2977 = $597;
  25765. } else {
  25766. $$1973 = 10;$$1976 = $594;
  25767. while(1) {
  25768. $598 = $$1976 ^ -1;
  25769. $599 = (($$1973) + 1)|0;
  25770. $600 = $$631372 >>> $$1973;
  25771. $601 = $600 & 1;
  25772. $602 = (($601) + ($598))|0;
  25773. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  25774. $604 = HEAP16[$603>>1]|0;
  25775. $605 = $604 << 16 >> 16;
  25776. $606 = ($604<<16>>16)<(0);
  25777. if ($606) {
  25778. $$1973 = $599;$$1976 = $605;
  25779. } else {
  25780. $$2974 = $599;$$2977 = $605;
  25781. break;
  25782. }
  25783. }
  25784. }
  25785. $607 = $$631372 >>> $$2974;
  25786. $608 = (($$63) - ($$2974))|0;
  25787. $609 = ($$2977>>>0)>(255);
  25788. if ($609) {
  25789. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  25790. label = 176;
  25791. } else {
  25792. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  25793. label = 160;
  25794. continue L46;
  25795. }
  25796. break;
  25797. }
  25798. case 179: {
  25799. label = 0;
  25800. $693 = ($$681575>>>0)<($10>>>0);
  25801. if ($693) {
  25802. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  25803. label = 182;
  25804. continue L46;
  25805. } else {
  25806. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  25807. label = 180;
  25808. continue L46;
  25809. }
  25810. break;
  25811. }
  25812. case 184: {
  25813. label = 0;
  25814. $703 = 1 << $$691272;
  25815. $704 = (($703) + -1)|0;
  25816. $705 = $704 & $$721381;
  25817. $706 = $$721381 >>> $$691272;
  25818. $707 = (($$72) - ($$691272))|0;
  25819. $708 = (($705) + ($$681165))|0;
  25820. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  25821. label = 185;
  25822. break;
  25823. }
  25824. case 187: {
  25825. label = 0;
  25826. $714 = $$741383 & 1023;
  25827. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  25828. $716 = HEAP16[$715>>1]|0;
  25829. $717 = $716 << 16 >> 16;
  25830. $718 = ($716<<16>>16)>(-1);
  25831. if ($718) {
  25832. $719 = $717 >> 9;
  25833. $720 = (($719) + -1)|0;
  25834. $721 = ($720>>>0)<($$74>>>0);
  25835. if ($721) {
  25836. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  25837. label = 198;
  25838. continue L125;
  25839. } else {
  25840. label = 192;
  25841. break L125;
  25842. }
  25843. }
  25844. $722 = ($$74>>>0)>(10);
  25845. if ($722) {
  25846. $$0953 = 10;$$0956 = $717;
  25847. } else {
  25848. label = 192;
  25849. break L125;
  25850. }
  25851. while(1) {
  25852. $723 = $$0956 ^ -1;
  25853. $724 = $$741383 >>> $$0953;
  25854. $725 = $724 & 1;
  25855. $726 = (($725) + ($723))|0;
  25856. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  25857. $728 = HEAP16[$727>>1]|0;
  25858. $729 = ($728<<16>>16)<(0);
  25859. if (!($729)) {
  25860. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  25861. label = 198;
  25862. continue L125;
  25863. }
  25864. $730 = (($$0953) + 1)|0;
  25865. $731 = $728 << 16 >> 16;
  25866. $732 = (($$0953) + 2)|0;
  25867. $733 = ($$74>>>0)<($732>>>0);
  25868. if ($733) {
  25869. label = 192;
  25870. break L125;
  25871. } else {
  25872. $$0953 = $730;$$0956 = $731;
  25873. }
  25874. }
  25875. break;
  25876. }
  25877. case 198: {
  25878. label = 0;
  25879. $756 = $$771386 & 1023;
  25880. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  25881. $758 = HEAP16[$757>>1]|0;
  25882. $759 = $758 << 16 >> 16;
  25883. $760 = ($758<<16>>16)>(-1);
  25884. if ($760) {
  25885. $761 = $759 >> 9;
  25886. $762 = $759 & 511;
  25887. $$2955 = $761;$$2958 = $762;
  25888. } else {
  25889. $$1954 = 10;$$1957 = $759;
  25890. while(1) {
  25891. $763 = $$1957 ^ -1;
  25892. $764 = (($$1954) + 1)|0;
  25893. $765 = $$771386 >>> $$1954;
  25894. $766 = $765 & 1;
  25895. $767 = (($766) + ($763))|0;
  25896. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  25897. $769 = HEAP16[$768>>1]|0;
  25898. $770 = $769 << 16 >> 16;
  25899. $771 = ($769<<16>>16)<(0);
  25900. if ($771) {
  25901. $$1954 = $764;$$1957 = $770;
  25902. } else {
  25903. $$2955 = $764;$$2958 = $770;
  25904. break;
  25905. }
  25906. }
  25907. }
  25908. $772 = $$771386 >>> $$2955;
  25909. $773 = (($$77) - ($$2955))|0;
  25910. $774 = (3444 + ($$2958<<2)|0);
  25911. $775 = HEAP32[$774>>2]|0;
  25912. $776 = (3572 + ($$2958<<2)|0);
  25913. $777 = HEAP32[$776>>2]|0;
  25914. $778 = (($$2958) + -4)|0;
  25915. $779 = ($778>>>0)<(26);
  25916. if ($779) {
  25917. $780 = ($773>>>0)<($775>>>0);
  25918. if ($780) {
  25919. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  25920. label = 203;
  25921. continue L125;
  25922. } else {
  25923. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  25924. label = 208;
  25925. continue L125;
  25926. }
  25927. } else {
  25928. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  25929. label = 209;
  25930. }
  25931. break;
  25932. }
  25933. case 203: {
  25934. label = 0;
  25935. $781 = ($$771584>>>0)<($10>>>0);
  25936. if ($781) {
  25937. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  25938. label = 206;
  25939. continue L46;
  25940. } else {
  25941. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  25942. label = 204;
  25943. continue L46;
  25944. }
  25945. break;
  25946. }
  25947. case 208: {
  25948. label = 0;
  25949. $791 = 1 << $$771280;
  25950. $792 = (($791) + -1)|0;
  25951. $793 = $792 & $$811390;
  25952. $794 = $$811390 >>> $$771280;
  25953. $795 = (($$81) - ($$771280))|0;
  25954. $796 = (($793) + ($$751066))|0;
  25955. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  25956. label = 209;
  25957. break;
  25958. }
  25959. case 212: {
  25960. label = 0;
  25961. $807 = (($$801177) + -1)|0;
  25962. $808 = ($$801177|0)==(0);
  25963. if ($808) {
  25964. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  25965. label = 139;
  25966. } else {
  25967. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  25968. label = 213;
  25969. continue L46;
  25970. }
  25971. break;
  25972. }
  25973. }
  25974. do {
  25975. if ((label|0) == 70) {
  25976. label = 0;
  25977. $217 = ((($0)) + 52|0);
  25978. $218 = HEAP32[$217>>2]|0;
  25979. $219 = ($$381135>>>0)<($218>>>0);
  25980. if ($219) {
  25981. $220 = ($$39>>>0)<(3);
  25982. if ($220) {
  25983. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  25984. label = 72;
  25985. continue L125;
  25986. } else {
  25987. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  25988. label = 77;
  25989. continue L125;
  25990. }
  25991. } else {
  25992. HEAP32[$217>>2] = 19;
  25993. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  25994. label = 80;
  25995. continue L125;
  25996. }
  25997. }
  25998. else if ((label|0) == 105) {
  25999. label = 0;
  26000. $418 = ((($0)) + 44|0);
  26001. $419 = HEAP32[$418>>2]|0;
  26002. $420 = ((($0)) + 48|0);
  26003. $421 = HEAP32[$420>>2]|0;
  26004. $422 = (($421) + ($419))|0;
  26005. $423 = ($$451142>>>0)<($422>>>0);
  26006. if (!($423)) {
  26007. $529 = ($422|0)==($$451142|0);
  26008. if (!($529)) {
  26009. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  26010. label = 136;
  26011. continue L46;
  26012. }
  26013. $530 = ((($0)) + 64|0);
  26014. $531 = ((($0)) + 10532|0);
  26015. _memcpy(($530|0),($531|0),($419|0))|0;
  26016. $532 = ((($0)) + 3552|0);
  26017. $533 = HEAP32[$418>>2]|0;
  26018. $534 = (((($0)) + 10532|0) + ($533)|0);
  26019. $535 = HEAP32[$420>>2]|0;
  26020. _memcpy(($532|0),($534|0),($535|0))|0;
  26021. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  26022. label = 138;
  26023. break;
  26024. }
  26025. $424 = ($$46>>>0)<(15);
  26026. if (!($424)) {
  26027. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  26028. label = 119;
  26029. continue L125;
  26030. }
  26031. $425 = $10;
  26032. $426 = $$451552;
  26033. $427 = (($425) - ($426))|0;
  26034. $428 = ($427|0)<(2);
  26035. if ($428) {
  26036. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  26037. label = 108;
  26038. continue L125;
  26039. }
  26040. $459 = HEAP8[$$451552>>0]|0;
  26041. $460 = $459&255;
  26042. $461 = $460 << $$46;
  26043. $462 = ((($$451552)) + 1|0);
  26044. $463 = HEAP8[$462>>0]|0;
  26045. $464 = $463&255;
  26046. $465 = (($$46) + 8)|0;
  26047. $466 = $464 << $465;
  26048. $467 = $461 | $$461355;
  26049. $468 = $467 | $466;
  26050. $469 = ((($$451552)) + 2|0);
  26051. $470 = (($$46) + 16)|0;
  26052. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  26053. label = 119;
  26054. continue L125;
  26055. }
  26056. else if ((label|0) == 176) {
  26057. label = 0;
  26058. $683 = $$641161 & 511;
  26059. $684 = ($683|0)==(256);
  26060. if ($684) {
  26061. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  26062. label = 220;
  26063. break L125;
  26064. }
  26065. $685 = (($683) + -257)|0;
  26066. $686 = (3196 + ($685<<2)|0);
  26067. $687 = HEAP32[$686>>2]|0;
  26068. $688 = (3320 + ($685<<2)|0);
  26069. $689 = HEAP32[$688>>2]|0;
  26070. $690 = (($683) + -265)|0;
  26071. $691 = ($690>>>0)<(20);
  26072. if ($691) {
  26073. $692 = ($$68>>>0)<($687>>>0);
  26074. if ($692) {
  26075. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  26076. label = 179;
  26077. continue L125;
  26078. } else {
  26079. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  26080. label = 184;
  26081. continue L125;
  26082. }
  26083. } else {
  26084. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  26085. label = 185;
  26086. }
  26087. }
  26088. else if ((label|0) == 209) {
  26089. label = 0;
  26090. $797 = $$751682;
  26091. $798 = $3;
  26092. $799 = (($797) - ($798))|0;
  26093. $$not = ($799>>>0)>=($$761067>>>0);
  26094. $$not1747 = $14 ^ 1;
  26095. $brmerge = $$not | $$not1747;
  26096. if (!($brmerge)) {
  26097. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  26098. label = 210;
  26099. continue L46;
  26100. }
  26101. $800 = (($799) - ($$761067))|0;
  26102. $801 = $800 & $$1753;
  26103. $802 = (($3) + ($801)|0);
  26104. $803 = ($$751682>>>0)>($802>>>0);
  26105. $804 = $803 ? $$751682 : $802;
  26106. $805 = (($804) + ($$781175)|0);
  26107. $806 = ($805>>>0)>($12>>>0);
  26108. if ($806) {
  26109. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  26110. label = 212;
  26111. continue L125;
  26112. } else {
  26113. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  26114. }
  26115. while(1) {
  26116. $816 = HEAP8[$$0978>>0]|0;
  26117. HEAP8[$$791686>>0] = $816;
  26118. $817 = ((($$0978)) + 1|0);
  26119. $818 = HEAP8[$817>>0]|0;
  26120. $819 = ((($$791686)) + 1|0);
  26121. HEAP8[$819>>0] = $818;
  26122. $820 = ((($$0978)) + 2|0);
  26123. $821 = HEAP8[$820>>0]|0;
  26124. $822 = ((($$791686)) + 2|0);
  26125. HEAP8[$822>>0] = $821;
  26126. $823 = ((($$791686)) + 3|0);
  26127. $824 = ((($$0978)) + 3|0);
  26128. $825 = (($$821179) + -3)|0;
  26129. $826 = ($825|0)>(2);
  26130. if ($826) {
  26131. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  26132. } else {
  26133. break;
  26134. }
  26135. }
  26136. $827 = ($825|0)>(0);
  26137. if ($827) {
  26138. $828 = HEAP8[$824>>0]|0;
  26139. HEAP8[$823>>0] = $828;
  26140. $829 = ($825|0)==(1);
  26141. if (!($829)) {
  26142. $830 = ((($$0978)) + 4|0);
  26143. $831 = HEAP8[$830>>0]|0;
  26144. $832 = ((($$791686)) + 4|0);
  26145. HEAP8[$832>>0] = $831;
  26146. }
  26147. $833 = (($823) + ($825)|0);
  26148. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26149. label = 139;
  26150. } else {
  26151. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26152. label = 139;
  26153. }
  26154. }
  26155. } while(0);
  26156. if ((label|0) == 138) {
  26157. label = 0;
  26158. $536 = ((($0)) + 24|0);
  26159. $537 = HEAP32[$536>>2]|0;
  26160. $538 = (($537) + -1)|0;
  26161. HEAP32[$536>>2] = $538;
  26162. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  26163. label = 80;
  26164. continue;
  26165. }
  26166. else if ((label|0) == 139) {
  26167. label = 0;
  26168. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  26169. label = 140;
  26170. continue;
  26171. }
  26172. else if ((label|0) == 185) {
  26173. label = 0;
  26174. $709 = ($$73>>>0)<(15);
  26175. if (!($709)) {
  26176. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  26177. label = 198;
  26178. continue;
  26179. }
  26180. $710 = $10;
  26181. $711 = $$721579;
  26182. $712 = (($710) - ($711))|0;
  26183. $713 = ($712|0)<(2);
  26184. if ($713) {
  26185. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  26186. label = 187;
  26187. continue;
  26188. }
  26189. $744 = HEAP8[$$721579>>0]|0;
  26190. $745 = $744&255;
  26191. $746 = $745 << $$73;
  26192. $747 = ((($$721579)) + 1|0);
  26193. $748 = HEAP8[$747>>0]|0;
  26194. $749 = $748&255;
  26195. $750 = (($$73) + 8)|0;
  26196. $751 = $749 << $750;
  26197. $752 = $746 | $$731382;
  26198. $753 = $752 | $751;
  26199. $754 = ((($$721579)) + 2|0);
  26200. $755 = (($$73) + 16)|0;
  26201. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  26202. label = 198;
  26203. continue;
  26204. }
  26205. }
  26206. if ((label|0) == 113) {
  26207. label = 0;
  26208. $449 = ($$461553>>>0)<($10>>>0);
  26209. if ($449) {
  26210. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  26211. label = 116;
  26212. continue;
  26213. } else {
  26214. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  26215. label = 114;
  26216. continue;
  26217. }
  26218. }
  26219. else if ((label|0) == 150) {
  26220. label = 0;
  26221. $569 = ($$591566>>>0)<($10>>>0);
  26222. if ($569) {
  26223. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  26224. label = 153;
  26225. continue;
  26226. } else {
  26227. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  26228. label = 151;
  26229. continue;
  26230. }
  26231. }
  26232. else if ((label|0) == 192) {
  26233. label = 0;
  26234. $734 = ($$731580>>>0)<($10>>>0);
  26235. if ($734) {
  26236. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  26237. label = 195;
  26238. continue;
  26239. } else {
  26240. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  26241. label = 193;
  26242. continue;
  26243. }
  26244. }
  26245. else if ((label|0) == 220) {
  26246. label = 0;
  26247. $834 = ((($0)) + 20|0);
  26248. $835 = HEAP32[$834>>2]|0;
  26249. $836 = $835 & 1;
  26250. $837 = ($836|0)==(0);
  26251. if ($837) {
  26252. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  26253. label = 14;
  26254. continue;
  26255. }
  26256. $838 = $6 & 1;
  26257. $839 = ($838|0)==(0);
  26258. if ($839) {
  26259. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  26260. label = 242;
  26261. continue;
  26262. } else {
  26263. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  26264. label = 226;
  26265. continue;
  26266. }
  26267. }
  26268. }
  26269. if ((label|0) == 258) {
  26270. STACKTOP = sp;return ($$0951|0);
  26271. }
  26272. $892 = ((($0)) + 28|0);
  26273. $893 = HEAP32[$892>>2]|0;
  26274. $894 = $893 & 65535;
  26275. $895 = $893 >>> 16;
  26276. $896 = ($888|0)==(0);
  26277. if ($896) {
  26278. $$0937$lcssa = $895;$$0938$lcssa = $894;
  26279. } else {
  26280. $897 = (($888>>>0) % 5552)&-1;
  26281. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  26282. while(1) {
  26283. $898 = ($$01834>>>0)>(7);
  26284. if ($898) {
  26285. $899 = (($$01834) + -8)|0;
  26286. $900 = $899 & -8;
  26287. $scevgep = ((($$09441830)) + 8|0);
  26288. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  26289. while(1) {
  26290. $904 = HEAP8[$$19451815>>0]|0;
  26291. $905 = $904&255;
  26292. $906 = (($905) + ($$19391817))|0;
  26293. $907 = (($906) + ($$11818))|0;
  26294. $908 = ((($$19451815)) + 1|0);
  26295. $909 = HEAP8[$908>>0]|0;
  26296. $910 = $909&255;
  26297. $911 = (($906) + ($910))|0;
  26298. $912 = (($907) + ($911))|0;
  26299. $913 = ((($$19451815)) + 2|0);
  26300. $914 = HEAP8[$913>>0]|0;
  26301. $915 = $914&255;
  26302. $916 = (($911) + ($915))|0;
  26303. $917 = (($912) + ($916))|0;
  26304. $918 = ((($$19451815)) + 3|0);
  26305. $919 = HEAP8[$918>>0]|0;
  26306. $920 = $919&255;
  26307. $921 = (($916) + ($920))|0;
  26308. $922 = (($917) + ($921))|0;
  26309. $923 = ((($$19451815)) + 4|0);
  26310. $924 = HEAP8[$923>>0]|0;
  26311. $925 = $924&255;
  26312. $926 = (($921) + ($925))|0;
  26313. $927 = (($922) + ($926))|0;
  26314. $928 = ((($$19451815)) + 5|0);
  26315. $929 = HEAP8[$928>>0]|0;
  26316. $930 = $929&255;
  26317. $931 = (($926) + ($930))|0;
  26318. $932 = (($927) + ($931))|0;
  26319. $933 = ((($$19451815)) + 6|0);
  26320. $934 = HEAP8[$933>>0]|0;
  26321. $935 = $934&255;
  26322. $936 = (($931) + ($935))|0;
  26323. $937 = (($932) + ($936))|0;
  26324. $938 = ((($$19451815)) + 7|0);
  26325. $939 = HEAP8[$938>>0]|0;
  26326. $940 = $939&255;
  26327. $941 = (($936) + ($940))|0;
  26328. $942 = (($937) + ($941))|0;
  26329. $943 = (($$09411816) + 8)|0;
  26330. $944 = ((($$19451815)) + 8|0);
  26331. $945 = $943 | 7;
  26332. $946 = ($945>>>0)<($$01834>>>0);
  26333. if ($946) {
  26334. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  26335. } else {
  26336. break;
  26337. }
  26338. }
  26339. $901 = (($900) + 8)|0;
  26340. $scevgep1947 = (($scevgep) + ($900)|0);
  26341. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  26342. } else {
  26343. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  26344. }
  26345. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  26346. if ($902) {
  26347. $903 = (($$01834) - ($$0941$lcssa))|0;
  26348. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  26349. while(1) {
  26350. $947 = ((($$29461822)) + 1|0);
  26351. $948 = HEAP8[$$29461822>>0]|0;
  26352. $949 = $948&255;
  26353. $950 = (($949) + ($$29401824))|0;
  26354. $951 = (($950) + ($$21825))|0;
  26355. $952 = (($$19421823) + 1)|0;
  26356. $exitcond = ($952|0)==($$01834|0);
  26357. if ($exitcond) {
  26358. break;
  26359. } else {
  26360. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  26361. }
  26362. }
  26363. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  26364. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  26365. } else {
  26366. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  26367. }
  26368. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  26369. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  26370. $955 = (($$09431831) - ($$01834))|0;
  26371. $956 = ($955|0)==(0);
  26372. if ($956) {
  26373. $$0937$lcssa = $954;$$0938$lcssa = $953;
  26374. break;
  26375. } else {
  26376. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  26377. }
  26378. }
  26379. }
  26380. $957 = $$0937$lcssa << 16;
  26381. $958 = $957 | $$0938$lcssa;
  26382. HEAP32[$892>>2] = $958;
  26383. $959 = ($$1961|0)!=(0);
  26384. $960 = $6 & 1;
  26385. $961 = ($960|0)==(0);
  26386. $or$cond1752 = $961 | $959;
  26387. if ($or$cond1752) {
  26388. $$0951 = $$1961;
  26389. STACKTOP = sp;return ($$0951|0);
  26390. } else {
  26391. $962 = ((($0)) + 16|0);
  26392. $963 = HEAP32[$962>>2]|0;
  26393. $964 = ($958|0)==($963|0);
  26394. $$1961$ = $964 ? $$1961 : -2;
  26395. STACKTOP = sp;return ($$1961$|0);
  26396. }
  26397. return (0)|0;
  26398. }
  26399. function _LoadTexture($0,$1) {
  26400. $0 = $0|0;
  26401. $1 = $1|0;
  26402. var $$byval_copy1 = 0, $$sroa$0$0 = 0, $$sroa$0$0$copyload = 0, $$sroa$5 = 0, $$sroa$5$0$$sroa_idx = 0, $$sroa$5$0$$sroa_idx5 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  26403. sp = STACKTOP;
  26404. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  26405. $$byval_copy1 = sp + 60|0;
  26406. $vararg_buffer = sp + 16|0;
  26407. $$sroa$5 = sp;
  26408. $2 = sp + 20|0;
  26409. $3 = sp + 40|0;
  26410. _LoadImage($2,$1);
  26411. $4 = HEAP32[$2>>2]|0;
  26412. $5 = ($4|0)==(0|0);
  26413. if ($5) {
  26414. _TraceLog(2,11993,$vararg_buffer);
  26415. $$sroa$0$0 = 0;
  26416. } else {
  26417. ;HEAP32[$$byval_copy1>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$2+16>>2]|0;
  26418. _LoadTextureFromImage($3,$$byval_copy1);
  26419. $$sroa$0$0$copyload = HEAP32[$3>>2]|0;
  26420. $$sroa$5$0$$sroa_idx = ((($3)) + 4|0);
  26421. ;HEAP32[$$sroa$5>>2]=HEAP32[$$sroa$5$0$$sroa_idx>>2]|0;HEAP32[$$sroa$5+4>>2]=HEAP32[$$sroa$5$0$$sroa_idx+4>>2]|0;HEAP32[$$sroa$5+8>>2]=HEAP32[$$sroa$5$0$$sroa_idx+8>>2]|0;HEAP32[$$sroa$5+12>>2]=HEAP32[$$sroa$5$0$$sroa_idx+12>>2]|0;
  26422. ;HEAP32[$$byval_copy1>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$2+16>>2]|0;
  26423. _UnloadImage($$byval_copy1);
  26424. $$sroa$0$0 = $$sroa$0$0$copyload;
  26425. }
  26426. HEAP32[$0>>2] = $$sroa$0$0;
  26427. $$sroa$5$0$$sroa_idx5 = ((($0)) + 4|0);
  26428. ;HEAP32[$$sroa$5$0$$sroa_idx5>>2]=HEAP32[$$sroa$5>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+4>>2]=HEAP32[$$sroa$5+4>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+8>>2]=HEAP32[$$sroa$5+8>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+12>>2]=HEAP32[$$sroa$5+12>>2]|0;
  26429. STACKTOP = sp;return;
  26430. }
  26431. function _GetDefaultFont($0) {
  26432. $0 = $0|0;
  26433. var label = 0, sp = 0;
  26434. sp = STACKTOP;
  26435. ;HEAP32[$0>>2]=HEAP32[18880>>2]|0;HEAP32[$0+4>>2]=HEAP32[18880+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[18880+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[18880+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[18880+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[18880+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[18880+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[18880+28>>2]|0;
  26436. return;
  26437. }
  26438. function _GetCharIndex($0,$1) {
  26439. $0 = $0|0;
  26440. $1 = $1|0;
  26441. 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;
  26442. sp = STACKTOP;
  26443. $2 = ((($0)) + 24|0);
  26444. $3 = HEAP32[$2>>2]|0;
  26445. $4 = ($3|0)>(0);
  26446. if (!($4)) {
  26447. $$08 = 0;
  26448. return ($$08|0);
  26449. }
  26450. $5 = ((($0)) + 28|0);
  26451. $6 = HEAP32[$5>>2]|0;
  26452. $$09 = 0;
  26453. while(1) {
  26454. $7 = (($6) + ($$09<<5)|0);
  26455. $8 = HEAP32[$7>>2]|0;
  26456. $9 = ($8|0)==($1|0);
  26457. if ($9) {
  26458. $$08 = $$09;
  26459. label = 5;
  26460. break;
  26461. }
  26462. $10 = (($$09) + 1)|0;
  26463. $11 = HEAP32[$2>>2]|0;
  26464. $12 = ($10|0)<($11|0);
  26465. if ($12) {
  26466. $$09 = $10;
  26467. } else {
  26468. $$08 = 0;
  26469. label = 5;
  26470. break;
  26471. }
  26472. }
  26473. if ((label|0) == 5) {
  26474. return ($$08|0);
  26475. }
  26476. return (0)|0;
  26477. }
  26478. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  26479. $0 = $0|0;
  26480. $1 = $1|0;
  26481. $2 = $2|0;
  26482. $3 = $3|0;
  26483. $4 = +$4;
  26484. $5 = $5|0;
  26485. 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;
  26486. 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;
  26487. 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;
  26488. 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;
  26489. 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;
  26490. sp = STACKTOP;
  26491. $6 = HEAP32[$0>>2]|0;
  26492. $7 = ($6|0)==(0);
  26493. if ($7) {
  26494. return;
  26495. }
  26496. $8 = ((($1)) + 8|0);
  26497. $9 = HEAP32[$8>>2]|0;
  26498. $10 = ($9|0)<(0);
  26499. if ($10) {
  26500. $11 = HEAP32[$1>>2]|0;
  26501. $12 = (($11) - ($9))|0;
  26502. HEAP32[$1>>2] = $12;
  26503. }
  26504. $13 = ((($1)) + 12|0);
  26505. $14 = HEAP32[$13>>2]|0;
  26506. $15 = ($14|0)<(0);
  26507. if ($15) {
  26508. $16 = ((($1)) + 4|0);
  26509. $17 = HEAP32[$16>>2]|0;
  26510. $18 = (($17) - ($14))|0;
  26511. HEAP32[$16>>2] = $18;
  26512. }
  26513. $19 = HEAP32[$0>>2]|0;
  26514. _rlEnableTexture($19);
  26515. _rlPushMatrix();
  26516. $20 = HEAP32[$2>>2]|0;
  26517. $21 = (+($20|0));
  26518. $22 = ((($2)) + 4|0);
  26519. $23 = HEAP32[$22>>2]|0;
  26520. $24 = (+($23|0));
  26521. _rlTranslatef($21,$24,0.0);
  26522. _rlRotatef($4,0.0,0.0,1.0);
  26523. $25 = +HEAPF32[$3>>2];
  26524. $26 = -$25;
  26525. $27 = ((($3)) + 4|0);
  26526. $28 = +HEAPF32[$27>>2];
  26527. $29 = -$28;
  26528. _rlTranslatef($26,$29,0.0);
  26529. _rlBegin(7);
  26530. $30 = HEAP8[$5>>0]|0;
  26531. $31 = ((($5)) + 1|0);
  26532. $32 = HEAP8[$31>>0]|0;
  26533. $33 = ((($5)) + 2|0);
  26534. $34 = HEAP8[$33>>0]|0;
  26535. $35 = ((($5)) + 3|0);
  26536. $36 = HEAP8[$35>>0]|0;
  26537. _rlColor4ub($30,$32,$34,$36);
  26538. $37 = HEAP32[$1>>2]|0;
  26539. $38 = (+($37|0));
  26540. $39 = ((($0)) + 4|0);
  26541. $40 = HEAP32[$39>>2]|0;
  26542. $41 = (+($40|0));
  26543. $42 = $38 / $41;
  26544. $43 = ((($1)) + 4|0);
  26545. $44 = HEAP32[$43>>2]|0;
  26546. $45 = (+($44|0));
  26547. $46 = ((($0)) + 8|0);
  26548. $47 = HEAP32[$46>>2]|0;
  26549. $48 = (+($47|0));
  26550. $49 = $45 / $48;
  26551. _rlTexCoord2f($42,$49);
  26552. _rlVertex2f(0.0,0.0);
  26553. $50 = HEAP32[$1>>2]|0;
  26554. $51 = (+($50|0));
  26555. $52 = HEAP32[$39>>2]|0;
  26556. $53 = (+($52|0));
  26557. $54 = $51 / $53;
  26558. $55 = HEAP32[$43>>2]|0;
  26559. $56 = HEAP32[$13>>2]|0;
  26560. $57 = (($56) + ($55))|0;
  26561. $58 = (+($57|0));
  26562. $59 = HEAP32[$46>>2]|0;
  26563. $60 = (+($59|0));
  26564. $61 = $58 / $60;
  26565. _rlTexCoord2f($54,$61);
  26566. $62 = ((($2)) + 12|0);
  26567. $63 = HEAP32[$62>>2]|0;
  26568. $64 = (+($63|0));
  26569. _rlVertex2f(0.0,$64);
  26570. $65 = HEAP32[$1>>2]|0;
  26571. $66 = HEAP32[$8>>2]|0;
  26572. $67 = (($66) + ($65))|0;
  26573. $68 = (+($67|0));
  26574. $69 = HEAP32[$39>>2]|0;
  26575. $70 = (+($69|0));
  26576. $71 = $68 / $70;
  26577. $72 = HEAP32[$43>>2]|0;
  26578. $73 = HEAP32[$13>>2]|0;
  26579. $74 = (($73) + ($72))|0;
  26580. $75 = (+($74|0));
  26581. $76 = HEAP32[$46>>2]|0;
  26582. $77 = (+($76|0));
  26583. $78 = $75 / $77;
  26584. _rlTexCoord2f($71,$78);
  26585. $79 = ((($2)) + 8|0);
  26586. $80 = HEAP32[$79>>2]|0;
  26587. $81 = (+($80|0));
  26588. $82 = HEAP32[$62>>2]|0;
  26589. $83 = (+($82|0));
  26590. _rlVertex2f($81,$83);
  26591. $84 = HEAP32[$1>>2]|0;
  26592. $85 = HEAP32[$8>>2]|0;
  26593. $86 = (($85) + ($84))|0;
  26594. $87 = (+($86|0));
  26595. $88 = HEAP32[$39>>2]|0;
  26596. $89 = (+($88|0));
  26597. $90 = $87 / $89;
  26598. $91 = HEAP32[$43>>2]|0;
  26599. $92 = (+($91|0));
  26600. $93 = HEAP32[$46>>2]|0;
  26601. $94 = (+($93|0));
  26602. $95 = $92 / $94;
  26603. _rlTexCoord2f($90,$95);
  26604. $96 = HEAP32[$79>>2]|0;
  26605. $97 = (+($96|0));
  26606. _rlVertex2f($97,0.0);
  26607. _rlEnd();
  26608. _rlPopMatrix();
  26609. _rlDisableTexture();
  26610. return;
  26611. }
  26612. function _DrawText($0,$1,$2,$3,$4) {
  26613. $0 = $0|0;
  26614. $1 = $1|0;
  26615. $2 = $2|0;
  26616. $3 = $3|0;
  26617. $4 = $4|0;
  26618. var $$ = 0, $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0, $15 = 0.0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26619. sp = STACKTOP;
  26620. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  26621. $$byval_copy2 = sp + 112|0;
  26622. $$byval_copy1 = sp + 104|0;
  26623. $$byval_copy = sp + 72|0;
  26624. $5 = sp + 32|0;
  26625. $6 = sp + 64|0;
  26626. $7 = sp;
  26627. _GetDefaultFont($5);
  26628. $8 = HEAP32[$5>>2]|0;
  26629. $9 = ($8|0)==(0);
  26630. if ($9) {
  26631. STACKTOP = sp;return;
  26632. }
  26633. $10 = (+($1|0));
  26634. HEAPF32[$6>>2] = $10;
  26635. $11 = ((($6)) + 4|0);
  26636. $12 = (+($2|0));
  26637. HEAPF32[$11>>2] = $12;
  26638. $13 = ($3|0)>(10);
  26639. $$ = $13 ? $3 : 10;
  26640. $14 = (($$>>>0) / 10)&-1;
  26641. _GetDefaultFont($7);
  26642. $15 = (+($$|0));
  26643. ;HEAP32[$$byval_copy>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$7+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$7+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$7+16>>2]|0;HEAP32[$$byval_copy+20>>2]=HEAP32[$7+20>>2]|0;HEAP32[$$byval_copy+24>>2]=HEAP32[$7+24>>2]|0;HEAP32[$$byval_copy+28>>2]=HEAP32[$7+28>>2]|0;
  26644. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  26645. ;HEAP8[$$byval_copy2>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy2+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy2+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy2+3>>0]=HEAP8[$4+3>>0]|0;
  26646. _DrawTextEx($$byval_copy,$0,$$byval_copy1,$15,$14,$$byval_copy2);
  26647. STACKTOP = sp;return;
  26648. }
  26649. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  26650. $0 = $0|0;
  26651. $1 = $1|0;
  26652. $2 = $2|0;
  26653. $3 = +$3;
  26654. $4 = $4|0;
  26655. $5 = $5|0;
  26656. 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;
  26657. 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;
  26658. 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;
  26659. 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;
  26660. 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;
  26661. sp = STACKTOP;
  26662. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  26663. $$byval_copy5 = sp + 88|0;
  26664. $$byval_copy4 = sp + 80|0;
  26665. $$byval_copy3 = sp + 64|0;
  26666. $$byval_copy2 = sp + 48|0;
  26667. $$byval_copy1 = sp + 24|0;
  26668. $6 = sp + 8|0;
  26669. $7 = sp;
  26670. $8 = (_strlen($1)|0);
  26671. $9 = ((($0)) + 20|0);
  26672. $10 = HEAP32[$9>>2]|0;
  26673. $11 = (+($10|0));
  26674. $12 = $3 / $11;
  26675. $13 = ($8|0)>(0);
  26676. if (!($13)) {
  26677. STACKTOP = sp;return;
  26678. }
  26679. $14 = ((($0)) + 28|0);
  26680. $15 = +HEAPF32[$2>>2];
  26681. $16 = ((($6)) + 4|0);
  26682. $17 = ((($2)) + 4|0);
  26683. $18 = ((($6)) + 8|0);
  26684. $19 = ((($6)) + 12|0);
  26685. $20 = ((($7)) + 4|0);
  26686. $21 = (+($4|0));
  26687. $$04954 = 0;$$05153 = 0;$$055 = 0;
  26688. while(1) {
  26689. $22 = (($1) + ($$055)|0);
  26690. $23 = HEAP8[$22>>0]|0;
  26691. switch ($23<<24>>24) {
  26692. case 10: {
  26693. $24 = HEAP32[$9>>2]|0;
  26694. $25 = (($24|0) / 2)&-1;
  26695. $26 = (($25) + ($24))|0;
  26696. $27 = (+($26|0));
  26697. $28 = $12 * $27;
  26698. $29 = (~~(($28)));
  26699. $30 = (($29) + ($$05153))|0;
  26700. $$150 = 0;$$152 = $30;$$2 = $$055;
  26701. break;
  26702. }
  26703. case -62: {
  26704. $31 = (($$055) + 1)|0;
  26705. $32 = (($1) + ($31)|0);
  26706. $33 = HEAP8[$32>>0]|0;
  26707. $34 = $33&255;
  26708. $$1 = $31;$$sink = $34;
  26709. label = 9;
  26710. break;
  26711. }
  26712. case -61: {
  26713. $35 = (($$055) + 1)|0;
  26714. $36 = (($1) + ($35)|0);
  26715. $37 = HEAP8[$36>>0]|0;
  26716. $38 = $37&255;
  26717. $39 = (($38) + 64)|0;
  26718. $$1 = $35;$$sink = $39;
  26719. label = 9;
  26720. break;
  26721. }
  26722. default: {
  26723. $40 = $23 << 24 >> 24;
  26724. $$1 = $$055;$$sink = $40;
  26725. label = 9;
  26726. }
  26727. }
  26728. do {
  26729. if ((label|0) == 9) {
  26730. label = 0;
  26731. ;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;
  26732. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  26733. $42 = HEAP32[$14>>2]|0;
  26734. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  26735. $44 = (+($$04954|0));
  26736. $45 = $44 + $15;
  26737. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  26738. $47 = HEAP32[$46>>2]|0;
  26739. $48 = (+($47|0));
  26740. $49 = $12 * $48;
  26741. $50 = $45 + $49;
  26742. $51 = (~~(($50)));
  26743. HEAP32[$6>>2] = $51;
  26744. $52 = +HEAPF32[$17>>2];
  26745. $53 = (+($$05153|0));
  26746. $54 = $53 + $52;
  26747. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  26748. $56 = HEAP32[$55>>2]|0;
  26749. $57 = (+($56|0));
  26750. $58 = $12 * $57;
  26751. $59 = $54 + $58;
  26752. $60 = (~~(($59)));
  26753. HEAP32[$16>>2] = $60;
  26754. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  26755. $62 = HEAP32[$61>>2]|0;
  26756. $63 = (+($62|0));
  26757. $64 = $12 * $63;
  26758. $65 = (~~(($64)));
  26759. HEAP32[$18>>2] = $65;
  26760. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  26761. $67 = HEAP32[$66>>2]|0;
  26762. $68 = (+($67|0));
  26763. $69 = $12 * $68;
  26764. $70 = (~~(($69)));
  26765. HEAP32[$19>>2] = $70;
  26766. HEAPF32[$7>>2] = 0.0;
  26767. HEAPF32[$20>>2] = 0.0;
  26768. ;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;
  26769. ;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;
  26770. ;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;
  26771. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  26772. ;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;
  26773. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  26774. $71 = HEAP32[$14>>2]|0;
  26775. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  26776. $73 = HEAP32[$72>>2]|0;
  26777. $74 = ($73|0)==(0);
  26778. if ($74) {
  26779. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  26780. $76 = HEAP32[$75>>2]|0;
  26781. $77 = (+($76|0));
  26782. $78 = $12 * $77;
  26783. $79 = $21 + $78;
  26784. $80 = (~~(($79)));
  26785. $81 = (($80) + ($$04954))|0;
  26786. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  26787. break;
  26788. } else {
  26789. $82 = (+($73|0));
  26790. $83 = $12 * $82;
  26791. $84 = $21 + $83;
  26792. $85 = (~~(($84)));
  26793. $86 = (($85) + ($$04954))|0;
  26794. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  26795. break;
  26796. }
  26797. }
  26798. } while(0);
  26799. $87 = (($$2) + 1)|0;
  26800. $88 = ($87|0)<($8|0);
  26801. if ($88) {
  26802. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  26803. } else {
  26804. break;
  26805. }
  26806. }
  26807. STACKTOP = sp;return;
  26808. }
  26809. function _FormatText($0,$varargs) {
  26810. $0 = $0|0;
  26811. $varargs = $varargs|0;
  26812. var $1 = 0, label = 0, sp = 0;
  26813. sp = STACKTOP;
  26814. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26815. $1 = sp;
  26816. HEAP32[$1>>2] = $varargs;
  26817. (_vsprintf(22967,$0,$1)|0);
  26818. STACKTOP = sp;return (22967|0);
  26819. }
  26820. function _DrawFPS($0,$1) {
  26821. $0 = $0|0;
  26822. $1 = $1|0;
  26823. var $$byval_copy = 0, $$sink = 0, $10 = 0, $11 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26824. sp = STACKTOP;
  26825. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26826. $$byval_copy = sp;
  26827. $2 = sp + 4|0;
  26828. $3 = HEAP32[5273]|0;
  26829. $4 = HEAP32[925]|0;
  26830. $5 = ($3|0)<($4|0);
  26831. if ($5) {
  26832. $6 = (($3) + 1)|0;
  26833. $$sink = $6;
  26834. } else {
  26835. $7 = (_GetFPS()|0);
  26836. HEAP32[5274] = $7;
  26837. HEAP32[925] = $7;
  26838. $$sink = 0;
  26839. }
  26840. HEAP32[5273] = $$sink;
  26841. $8 = HEAP32[5274]|0;
  26842. HEAP32[$$byval_copy>>2] = $8;
  26843. (_FormatText(12022,$$byval_copy)|0);
  26844. HEAP8[$2>>0] = 0;
  26845. $9 = ((($2)) + 1|0);
  26846. HEAP8[$9>>0] = -98;
  26847. $10 = ((($2)) + 2|0);
  26848. HEAP8[$10>>0] = 47;
  26849. $11 = ((($2)) + 3|0);
  26850. HEAP8[$11>>0] = -1;
  26851. ;HEAP8[$$byval_copy>>0]=HEAP8[$2>>0]|0;HEAP8[$$byval_copy+1>>0]=HEAP8[$2+1>>0]|0;HEAP8[$$byval_copy+2>>0]=HEAP8[$2+2>>0]|0;HEAP8[$$byval_copy+3>>0]=HEAP8[$2+3>>0]|0;
  26852. _DrawText(22967,$0,$1,20,$$byval_copy);
  26853. STACKTOP = sp;return;
  26854. }
  26855. function _DrawGrid($0,$1) {
  26856. $0 = $0|0;
  26857. $1 = +$1;
  26858. var $$024 = 0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  26859. sp = STACKTOP;
  26860. $2 = (($0|0) / 2)&-1;
  26861. _rlBegin(1);
  26862. $3 = (0 - ($2))|0;
  26863. $4 = ($2|0)<($3|0);
  26864. if ($4) {
  26865. _rlEnd();
  26866. return;
  26867. }
  26868. $5 = (+($3|0));
  26869. $6 = $5 * $1;
  26870. $7 = (+($2|0));
  26871. $8 = $7 * $1;
  26872. $$024 = $3;
  26873. while(1) {
  26874. $9 = ($$024|0)==(0);
  26875. if ($9) {
  26876. _rlColor3f(0.5,0.5,0.5);
  26877. _rlColor3f(0.5,0.5,0.5);
  26878. _rlColor3f(0.5,0.5,0.5);
  26879. _rlColor3f(0.5,0.5,0.5);
  26880. } else {
  26881. _rlColor3f(0.75,0.75,0.75);
  26882. _rlColor3f(0.75,0.75,0.75);
  26883. _rlColor3f(0.75,0.75,0.75);
  26884. _rlColor3f(0.75,0.75,0.75);
  26885. }
  26886. $10 = (+($$024|0));
  26887. $11 = $10 * $1;
  26888. _rlVertex3f($11,0.0,$6);
  26889. _rlVertex3f($11,0.0,$8);
  26890. _rlVertex3f($6,0.0,$11);
  26891. _rlVertex3f($8,0.0,$11);
  26892. $12 = (($$024) + 1)|0;
  26893. $13 = ($$024|0)<($2|0);
  26894. if ($13) {
  26895. $$024 = $12;
  26896. } else {
  26897. break;
  26898. }
  26899. }
  26900. _rlEnd();
  26901. return;
  26902. }
  26903. function _LoadMesh($0,$1) {
  26904. $0 = $0|0;
  26905. $1 = $1|0;
  26906. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $vararg_buffer = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  26907. sp = STACKTOP;
  26908. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  26909. $vararg_buffer = sp;
  26910. $2 = sp + 72|0;
  26911. $3 = sp + 4|0;
  26912. dest=$2; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  26913. $4 = (_IsFileExtension($1,12030)|0);
  26914. $5 = ($4|0)==(0);
  26915. if (!($5)) {
  26916. _LoadOBJ($3,$1);
  26917. dest=$2; src=$3; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  26918. }
  26919. $6 = HEAP32[$2>>2]|0;
  26920. $7 = ($6|0)==(0);
  26921. if ($7) {
  26922. _TraceLog(2,12035,$vararg_buffer);
  26923. } else {
  26924. _rlglLoadMesh($2,0);
  26925. }
  26926. dest=$0; src=$2; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  26927. STACKTOP = sp;return;
  26928. }
  26929. function _LoadOBJ($0,$1) {
  26930. $0 = $0|0;
  26931. $1 = $1|0;
  26932. var $$0$ph374433 = 0, $$0$ph377422 = 0, $$0$ph379$lcssa386 = 0, $$0$ph379412 = 0, $$0$ph445 = 0, $$0344$ph373432 = 0, $$0344$ph376$lcssa388 = 0, $$0344$ph376421 = 0, $$0344$ph444 = 0, $$0345$ph372$lcssa389 = 0, $$0345$ph372431 = 0, $$0345$ph443 = 0, $$0346$ph$lcssa = 0, $$0346$ph442 = 0, $$0347392 = 0, $$0348391 = 0, $$0350$ph = 0, $$0350$ph$ph = 0, $$0351$ph$ph = 0, $$0352$ph = 0;
  26933. var $$0352$ph$ph = 0, $$0353$ph365399 = 0, $$0353$ph367397 = 0, $$0353$ph402 = 0, $$0354$ph364398 = 0, $$0354$ph401 = 0, $$0355$ph400 = 0, $$0356 = 0, $$0357 = 0, $$1 = 0, $$byval_copy102 = 0, $$byval_copy103 = 0, $$sroa$12$0$$sroa_idx244 = 0, $$sroa$12247$0$$sroa_idx249 = 0, $$sroa$31$0$$sroa_idx270 = 0, $$sroa$45$0$$sroa_idx286 = 0, $$sroa$45289$0$$sroa_idx291 = 0, $$sroa$64$0 = 0, $$sroa$64$0$$sroa_idx312 = 0, $$sroa$74$0$$sroa_idx324 = 0;
  26934. var $$sroa$75 = 0, $$sroa$75$0$$sroa_idx = 0, $$sroa$75$0$$sroa_idx328 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0;
  26935. 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;
  26936. var $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0;
  26937. var $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0;
  26938. var $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0;
  26939. var $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0;
  26940. var $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0;
  26941. var $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0.0, $238 = 0.0, $239 = 0, $24 = 0, $240 = 0;
  26942. var $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0.0, $249 = 0.0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0.0;
  26943. var $26 = 0, $260 = 0.0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0;
  26944. var $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0;
  26945. var $296 = 0, $297 = 0, $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0.0, $312 = 0;
  26946. var $313 = 0, $314 = 0.0, $315 = 0, $316 = 0, $317 = 0.0, $318 = 0, $319 = 0, $32 = 0, $320 = 0.0, $321 = 0, $322 = 0, $323 = 0.0, $324 = 0, $325 = 0, $326 = 0.0, $327 = 0.0, $328 = 0.0, $329 = 0.0, $33 = 0, $330 = 0.0;
  26947. var $331 = 0.0, $332 = 0.0, $333 = 0.0, $334 = 0.0, $335 = 0.0, $336 = 0.0, $337 = 0.0, $338 = 0.0, $339 = 0.0, $34 = 0, $340 = 0.0, $341 = 0.0, $342 = 0.0, $343 = 0.0, $344 = 0.0, $345 = 0.0, $346 = 0.0, $347 = 0, $348 = 0, $349 = 0;
  26948. var $35 = 0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0, $357 = 0, $358 = 0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0, $367 = 0;
  26949. var $368 = 0, $369 = 0, $37 = 0, $370 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0;
  26950. 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;
  26951. 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;
  26952. var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer11 = 0, $vararg_buffer23 = 0, $vararg_buffer26 = 0, $vararg_buffer29 = 0, $vararg_buffer33 = 0, $vararg_buffer36 = 0;
  26953. var $vararg_buffer4 = 0, $vararg_buffer41 = 0, $vararg_buffer44 = 0, $vararg_buffer49 = 0, $vararg_buffer52 = 0, $vararg_buffer55 = 0, $vararg_buffer58 = 0, $vararg_buffer63 = 0, $vararg_buffer7 = 0, $vararg_buffer71 = 0, $vararg_buffer79 = 0, $vararg_buffer90 = 0, $vararg_ptr10 = 0, $vararg_ptr14 = 0, $vararg_ptr18 = 0, $vararg_ptr22 = 0, $vararg_ptr32 = 0, $vararg_ptr39 = 0, $vararg_ptr40 = 0, $vararg_ptr47 = 0;
  26954. var $vararg_ptr48 = 0, $vararg_ptr61 = 0, $vararg_ptr62 = 0, $vararg_ptr66 = 0, $vararg_ptr67 = 0, $vararg_ptr68 = 0, $vararg_ptr69 = 0, $vararg_ptr70 = 0, $vararg_ptr74 = 0, $vararg_ptr75 = 0, $vararg_ptr76 = 0, $vararg_ptr77 = 0, $vararg_ptr78 = 0, $vararg_ptr82 = 0, $vararg_ptr83 = 0, $vararg_ptr84 = 0, $vararg_ptr85 = 0, $vararg_ptr86 = 0, $vararg_ptr87 = 0, $vararg_ptr88 = 0;
  26955. var $vararg_ptr89 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  26956. sp = STACKTOP;
  26957. STACKTOP = STACKTOP + 672|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(672|0);
  26958. $$byval_copy103 = sp + 320|0;
  26959. $$byval_copy102 = sp + 304|0;
  26960. $vararg_buffer90 = sp + 296|0;
  26961. $vararg_buffer79 = sp + 256|0;
  26962. $vararg_buffer71 = sp + 232|0;
  26963. $vararg_buffer63 = sp + 208|0;
  26964. $vararg_buffer58 = sp + 192|0;
  26965. $vararg_buffer55 = sp + 184|0;
  26966. $vararg_buffer52 = sp + 176|0;
  26967. $vararg_buffer49 = sp + 168|0;
  26968. $vararg_buffer44 = sp + 152|0;
  26969. $vararg_buffer41 = sp + 144|0;
  26970. $vararg_buffer36 = sp + 128|0;
  26971. $vararg_buffer33 = sp + 120|0;
  26972. $vararg_buffer29 = sp + 112|0;
  26973. $vararg_buffer26 = sp + 104|0;
  26974. $vararg_buffer23 = sp + 96|0;
  26975. $vararg_buffer11 = sp + 80|0;
  26976. $vararg_buffer7 = sp + 64|0;
  26977. $vararg_buffer4 = sp + 56|0;
  26978. $vararg_buffer1 = sp + 48|0;
  26979. $vararg_buffer = sp + 40|0;
  26980. $$sroa$75 = sp;
  26981. $2 = sp + 664|0;
  26982. $3 = sp + 464|0;
  26983. $4 = sp + 428|0;
  26984. $5 = sp + 416|0;
  26985. $6 = sp + 452|0;
  26986. $7 = sp + 440|0;
  26987. $8 = sp + 404|0;
  26988. $9 = sp + 392|0;
  26989. $10 = sp + 380|0;
  26990. $11 = sp + 368|0;
  26991. $12 = sp + 356|0;
  26992. $13 = sp + 344|0;
  26993. $14 = sp + 332|0;
  26994. dest=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  26995. $15 = (_fopen($1,12060)|0);
  26996. $16 = ($15|0)==(0|0);
  26997. if ($16) {
  26998. HEAP32[$vararg_buffer>>2] = $1;
  26999. _TraceLog(2,12063,$vararg_buffer);
  27000. $$sroa$75$0$$sroa_idx = ((($0)) + 32|0);
  27001. ;HEAP32[$0>>2]=0|0;HEAP32[$0+4>>2]=0|0;HEAP32[$0+8>>2]=0|0;HEAP32[$0+12>>2]=0|0;HEAP32[$0+16>>2]=0|0;HEAP32[$0+20>>2]=0|0;HEAP32[$0+24>>2]=0|0;HEAP32[$0+28>>2]=0|0;
  27002. dest=$$sroa$75$0$$sroa_idx; src=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27003. STACKTOP = sp;return;
  27004. }
  27005. $17 = (_feof($15)|0);
  27006. $18 = ($17|0)==(0);
  27007. L5: do {
  27008. if ($18) {
  27009. $$0$ph445 = 0;$$0344$ph444 = 0;$$0345$ph443 = 0;$$0346$ph442 = 0;
  27010. while(1) {
  27011. $$0$ph374433 = $$0$ph445;$$0344$ph373432 = $$0344$ph444;$$0345$ph372431 = $$0345$ph443;
  27012. L8: while(1) {
  27013. $$0$ph377422 = $$0$ph374433;$$0344$ph376421 = $$0344$ph373432;
  27014. L10: while(1) {
  27015. $$0$ph379412 = $$0$ph377422;
  27016. L12: while(1) {
  27017. L14: while(1) {
  27018. HEAP32[$vararg_buffer1>>2] = $2;
  27019. (_fscanf($15,12097,$vararg_buffer1)|0);
  27020. $19 = HEAP8[$2>>0]|0;
  27021. $20 = $19 << 24 >> 24;
  27022. switch ($20|0) {
  27023. case 102: {
  27024. break L8;
  27025. break;
  27026. }
  27027. case 118: {
  27028. break L14;
  27029. break;
  27030. }
  27031. case 117: case 109: case 115: case 103: case 111: case 35: {
  27032. (_fgets($3,200,$15)|0);
  27033. break;
  27034. }
  27035. default: {
  27036. }
  27037. }
  27038. $21 = (_feof($15)|0);
  27039. $22 = ($21|0)==(0);
  27040. if (!($22)) {
  27041. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27042. break L5;
  27043. }
  27044. }
  27045. HEAP32[$vararg_buffer4>>2] = $2;
  27046. (_fscanf($15,12097,$vararg_buffer4)|0);
  27047. $23 = HEAP8[$2>>0]|0;
  27048. switch ($23<<24>>24) {
  27049. case 116: {
  27050. break L10;
  27051. break;
  27052. }
  27053. case 110: {
  27054. break L12;
  27055. break;
  27056. }
  27057. default: {
  27058. }
  27059. }
  27060. $30 = (($$0$ph379412) + 1)|0;
  27061. (_fgets($3,200,$15)|0);
  27062. $31 = (_feof($15)|0);
  27063. $32 = ($31|0)==(0);
  27064. if ($32) {
  27065. $$0$ph379412 = $30;
  27066. } else {
  27067. $$0$ph379$lcssa386 = $30;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27068. break L5;
  27069. }
  27070. }
  27071. $27 = (($$0344$ph376421) + 1)|0;
  27072. (_fgets($3,200,$15)|0);
  27073. $28 = (_feof($15)|0);
  27074. $29 = ($28|0)==(0);
  27075. if ($29) {
  27076. $$0$ph377422 = $$0$ph379412;$$0344$ph376421 = $27;
  27077. } else {
  27078. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $27;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27079. break L5;
  27080. }
  27081. }
  27082. $24 = (($$0345$ph372431) + 1)|0;
  27083. (_fgets($3,200,$15)|0);
  27084. $25 = (_feof($15)|0);
  27085. $26 = ($25|0)==(0);
  27086. if ($26) {
  27087. $$0$ph374433 = $$0$ph379412;$$0344$ph373432 = $$0344$ph376421;$$0345$ph372431 = $24;
  27088. } else {
  27089. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $24;$$0346$ph$lcssa = $$0346$ph442;
  27090. break L5;
  27091. }
  27092. }
  27093. $33 = (($$0346$ph442) + 1)|0;
  27094. (_fgets($3,200,$15)|0);
  27095. $34 = (_feof($15)|0);
  27096. $35 = ($34|0)==(0);
  27097. if ($35) {
  27098. $$0$ph445 = $$0$ph379412;$$0344$ph444 = $$0344$ph376421;$$0345$ph443 = $$0345$ph372431;$$0346$ph442 = $33;
  27099. } else {
  27100. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $33;
  27101. break;
  27102. }
  27103. }
  27104. } else {
  27105. $$0$ph379$lcssa386 = 0;$$0344$ph376$lcssa388 = 0;$$0345$ph372$lcssa389 = 0;$$0346$ph$lcssa = 0;
  27106. }
  27107. } while(0);
  27108. HEAP32[$vararg_buffer7>>2] = $1;
  27109. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  27110. HEAP32[$vararg_ptr10>>2] = $$0$ph379$lcssa386;
  27111. _TraceLog(3,12100,$vararg_buffer7);
  27112. HEAP32[$vararg_buffer11>>2] = $1;
  27113. $vararg_ptr14 = ((($vararg_buffer11)) + 4|0);
  27114. HEAP32[$vararg_ptr14>>2] = $$0345$ph372$lcssa389;
  27115. _TraceLog(3,12128,$vararg_buffer11);
  27116. HEAP32[$$byval_copy102>>2] = $1;
  27117. $vararg_ptr18 = ((($$byval_copy102)) + 4|0);
  27118. HEAP32[$vararg_ptr18>>2] = $$0344$ph376$lcssa388;
  27119. _TraceLog(3,12157,$$byval_copy102);
  27120. HEAP32[$$byval_copy103>>2] = $1;
  27121. $vararg_ptr22 = ((($$byval_copy103)) + 4|0);
  27122. HEAP32[$vararg_ptr22>>2] = $$0346$ph$lcssa;
  27123. _TraceLog(3,12184,$$byval_copy103);
  27124. $36 = ($$0$ph379$lcssa386*12)|0;
  27125. $37 = (_malloc($36)|0);
  27126. $38 = ($$0344$ph376$lcssa388|0)>(0);
  27127. if ($38) {
  27128. $39 = ($$0344$ph376$lcssa388*12)|0;
  27129. $40 = (_malloc($39)|0);
  27130. $$0357 = $40;$369 = $40;
  27131. } else {
  27132. $$0357 = 0;$369 = 0;
  27133. }
  27134. $41 = ($$0345$ph372$lcssa389|0)>(0);
  27135. if ($41) {
  27136. $42 = $$0345$ph372$lcssa389 << 3;
  27137. $43 = (_malloc($42)|0);
  27138. $$0356 = $43;$370 = $43;
  27139. } else {
  27140. $$0356 = 0;$370 = 0;
  27141. }
  27142. _rewind($15);
  27143. $44 = (_feof($15)|0);
  27144. $45 = ($44|0)==(0);
  27145. L31: do {
  27146. if ($45) {
  27147. $$0353$ph402 = 0;$$0354$ph401 = 0;$$0355$ph400 = 0;
  27148. while(1) {
  27149. $$0353$ph365399 = $$0353$ph402;$$0354$ph364398 = $$0354$ph401;
  27150. L34: while(1) {
  27151. $$0353$ph367397 = $$0353$ph365399;
  27152. L36: while(1) {
  27153. L38: while(1) {
  27154. HEAP32[$vararg_buffer23>>2] = $2;
  27155. (_fscanf($15,12097,$vararg_buffer23)|0);
  27156. $46 = HEAP8[$2>>0]|0;
  27157. $47 = $46 << 24 >> 24;
  27158. switch ($47|0) {
  27159. case 118: {
  27160. break L38;
  27161. break;
  27162. }
  27163. case 102: case 117: case 109: case 115: case 103: case 111: case 35: {
  27164. (_fgets($3,200,$15)|0);
  27165. break;
  27166. }
  27167. default: {
  27168. }
  27169. }
  27170. $48 = (_feof($15)|0);
  27171. $49 = ($48|0)==(0);
  27172. if (!($49)) {
  27173. break L31;
  27174. }
  27175. }
  27176. HEAP32[$vararg_buffer26>>2] = $2;
  27177. (_fscanf($15,12097,$vararg_buffer26)|0);
  27178. $50 = HEAP8[$2>>0]|0;
  27179. switch ($50<<24>>24) {
  27180. case 110: {
  27181. break L36;
  27182. break;
  27183. }
  27184. case 116: {
  27185. break;
  27186. }
  27187. default: {
  27188. break L34;
  27189. }
  27190. }
  27191. $51 = (($$0356) + ($$0353$ph367397<<3)|0);
  27192. $52 = (((($$0356) + ($$0353$ph367397<<3)|0)) + 4|0);
  27193. HEAP32[$vararg_buffer29>>2] = $51;
  27194. $vararg_ptr32 = ((($vararg_buffer29)) + 4|0);
  27195. HEAP32[$vararg_ptr32>>2] = $52;
  27196. (_fscanf($15,12213,$vararg_buffer29)|0);
  27197. $53 = (($$0353$ph367397) + 1)|0;
  27198. HEAP32[$vararg_buffer33>>2] = $2;
  27199. (_fscanf($15,12097,$vararg_buffer33)|0);
  27200. $54 = (_feof($15)|0);
  27201. $55 = ($54|0)==(0);
  27202. if ($55) {
  27203. $$0353$ph367397 = $53;
  27204. } else {
  27205. break L31;
  27206. }
  27207. }
  27208. $56 = (($$0357) + (($$0354$ph364398*12)|0)|0);
  27209. $57 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 4|0);
  27210. $58 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 8|0);
  27211. HEAP32[$vararg_buffer36>>2] = $56;
  27212. $vararg_ptr39 = ((($vararg_buffer36)) + 4|0);
  27213. HEAP32[$vararg_ptr39>>2] = $57;
  27214. $vararg_ptr40 = ((($vararg_buffer36)) + 8|0);
  27215. HEAP32[$vararg_ptr40>>2] = $58;
  27216. (_fscanf($15,12227,$vararg_buffer36)|0);
  27217. $59 = (($$0354$ph364398) + 1)|0;
  27218. HEAP32[$vararg_buffer41>>2] = $2;
  27219. (_fscanf($15,12097,$vararg_buffer41)|0);
  27220. $60 = (_feof($15)|0);
  27221. $61 = ($60|0)==(0);
  27222. if ($61) {
  27223. $$0353$ph365399 = $$0353$ph367397;$$0354$ph364398 = $59;
  27224. } else {
  27225. break L31;
  27226. }
  27227. }
  27228. $62 = (($37) + (($$0355$ph400*12)|0)|0);
  27229. $63 = (((($37) + (($$0355$ph400*12)|0)|0)) + 4|0);
  27230. $64 = (((($37) + (($$0355$ph400*12)|0)|0)) + 8|0);
  27231. HEAP32[$vararg_buffer44>>2] = $62;
  27232. $vararg_ptr47 = ((($vararg_buffer44)) + 4|0);
  27233. HEAP32[$vararg_ptr47>>2] = $63;
  27234. $vararg_ptr48 = ((($vararg_buffer44)) + 8|0);
  27235. HEAP32[$vararg_ptr48>>2] = $64;
  27236. (_fscanf($15,12227,$vararg_buffer44)|0);
  27237. $65 = (($$0355$ph400) + 1)|0;
  27238. HEAP32[$vararg_buffer49>>2] = $2;
  27239. (_fscanf($15,12097,$vararg_buffer49)|0);
  27240. $66 = (_feof($15)|0);
  27241. $67 = ($66|0)==(0);
  27242. if ($67) {
  27243. $$0353$ph402 = $$0353$ph367397;$$0354$ph401 = $$0354$ph364398;$$0355$ph400 = $65;
  27244. } else {
  27245. break;
  27246. }
  27247. }
  27248. }
  27249. } while(0);
  27250. $68 = ($$0346$ph$lcssa*3)|0;
  27251. $69 = ($$0346$ph$lcssa*9)|0;
  27252. $70 = ($$0346$ph$lcssa*36)|0;
  27253. $71 = (_malloc($70)|0);
  27254. $72 = ($$0346$ph$lcssa*6)|0;
  27255. $73 = ($$0346$ph$lcssa*24)|0;
  27256. $74 = (_malloc($73)|0);
  27257. $75 = (_malloc($70)|0);
  27258. _rewind($15);
  27259. $76 = ($$0344$ph376$lcssa388|0)==(0);
  27260. if ($76) {
  27261. HEAP32[$vararg_buffer52>>2] = $1;
  27262. _TraceLog(0,12236,$vararg_buffer52);
  27263. }
  27264. $77 = ($$0345$ph372$lcssa389|0)==(0);
  27265. $78 = $$0344$ph376$lcssa388 | $$0345$ph372$lcssa389;
  27266. $79 = ($78|0)==(0);
  27267. $80 = ((($vararg_buffer11)) + 4|0);
  27268. $81 = ((($vararg_buffer11)) + 8|0);
  27269. $82 = ((($vararg_buffer11)) + 4|0);
  27270. $83 = ((($vararg_buffer11)) + 8|0);
  27271. $84 = ((($4)) + 4|0);
  27272. $85 = ((($4)) + 8|0);
  27273. $86 = ((($5)) + 4|0);
  27274. $87 = ((($5)) + 8|0);
  27275. $88 = ((($vararg_buffer11)) + 4|0);
  27276. $89 = ((($vararg_buffer7)) + 4|0);
  27277. $90 = ((($vararg_buffer11)) + 8|0);
  27278. $91 = ((($vararg_buffer7)) + 8|0);
  27279. $92 = ((($vararg_buffer11)) + 4|0);
  27280. $93 = ((($4)) + 4|0);
  27281. $94 = ((($vararg_buffer11)) + 8|0);
  27282. $95 = ((($4)) + 8|0);
  27283. $96 = ((($vararg_buffer11)) + 4|0);
  27284. $97 = ((($vararg_buffer7)) + 4|0);
  27285. $98 = ((($4)) + 4|0);
  27286. $99 = ((($vararg_buffer11)) + 8|0);
  27287. $100 = ((($vararg_buffer7)) + 8|0);
  27288. $101 = ((($4)) + 8|0);
  27289. $102 = ((($vararg_buffer7)) + 4|0);
  27290. $103 = ((($vararg_buffer7)) + 8|0);
  27291. $$0350$ph$ph = 0;$$0351$ph$ph = 0;$$0352$ph$ph = 0;
  27292. L51: while(1) {
  27293. $$0350$ph = $$0350$ph$ph;$$0352$ph = $$0352$ph$ph;
  27294. while(1) {
  27295. $104 = (_feof($15)|0);
  27296. $105 = ($104|0)==(0);
  27297. if (!($105)) {
  27298. break L51;
  27299. }
  27300. L55: while(1) {
  27301. HEAP32[$vararg_buffer55>>2] = $2;
  27302. (_fscanf($15,12097,$vararg_buffer55)|0);
  27303. $106 = HEAP8[$2>>0]|0;
  27304. $107 = $106 << 24 >> 24;
  27305. switch ($107|0) {
  27306. case 102: {
  27307. break L55;
  27308. break;
  27309. }
  27310. case 118: case 117: case 109: case 115: case 103: case 111: case 35: {
  27311. (_fgets($3,200,$15)|0);
  27312. break;
  27313. }
  27314. default: {
  27315. }
  27316. }
  27317. $108 = (_feof($15)|0);
  27318. $109 = ($108|0)==(0);
  27319. if (!($109)) {
  27320. break L51;
  27321. }
  27322. }
  27323. do {
  27324. if ($79) {
  27325. HEAP32[$vararg_buffer58>>2] = $vararg_buffer11;
  27326. $vararg_ptr61 = ((($vararg_buffer58)) + 4|0);
  27327. HEAP32[$vararg_ptr61>>2] = $80;
  27328. $vararg_ptr62 = ((($vararg_buffer58)) + 8|0);
  27329. HEAP32[$vararg_ptr62>>2] = $81;
  27330. (_fscanf($15,12307,$vararg_buffer58)|0);
  27331. } else {
  27332. if ($76) {
  27333. HEAP32[$vararg_buffer63>>2] = $vararg_buffer11;
  27334. $vararg_ptr66 = ((($vararg_buffer63)) + 4|0);
  27335. HEAP32[$vararg_ptr66>>2] = $vararg_buffer7;
  27336. $vararg_ptr67 = ((($vararg_buffer63)) + 8|0);
  27337. HEAP32[$vararg_ptr67>>2] = $88;
  27338. $vararg_ptr68 = ((($vararg_buffer63)) + 12|0);
  27339. HEAP32[$vararg_ptr68>>2] = $89;
  27340. $vararg_ptr69 = ((($vararg_buffer63)) + 16|0);
  27341. HEAP32[$vararg_ptr69>>2] = $90;
  27342. $vararg_ptr70 = ((($vararg_buffer63)) + 20|0);
  27343. HEAP32[$vararg_ptr70>>2] = $91;
  27344. (_fscanf($15,12316,$vararg_buffer63)|0);
  27345. break;
  27346. }
  27347. if ($77) {
  27348. HEAP32[$vararg_buffer71>>2] = $vararg_buffer11;
  27349. $vararg_ptr74 = ((($vararg_buffer71)) + 4|0);
  27350. HEAP32[$vararg_ptr74>>2] = $4;
  27351. $vararg_ptr75 = ((($vararg_buffer71)) + 8|0);
  27352. HEAP32[$vararg_ptr75>>2] = $92;
  27353. $vararg_ptr76 = ((($vararg_buffer71)) + 12|0);
  27354. HEAP32[$vararg_ptr76>>2] = $93;
  27355. $vararg_ptr77 = ((($vararg_buffer71)) + 16|0);
  27356. HEAP32[$vararg_ptr77>>2] = $94;
  27357. $vararg_ptr78 = ((($vararg_buffer71)) + 20|0);
  27358. HEAP32[$vararg_ptr78>>2] = $95;
  27359. (_fscanf($15,12334,$vararg_buffer71)|0);
  27360. break;
  27361. } else {
  27362. HEAP32[$vararg_buffer79>>2] = $vararg_buffer11;
  27363. $vararg_ptr82 = ((($vararg_buffer79)) + 4|0);
  27364. HEAP32[$vararg_ptr82>>2] = $vararg_buffer7;
  27365. $vararg_ptr83 = ((($vararg_buffer79)) + 8|0);
  27366. HEAP32[$vararg_ptr83>>2] = $4;
  27367. $vararg_ptr84 = ((($vararg_buffer79)) + 12|0);
  27368. HEAP32[$vararg_ptr84>>2] = $96;
  27369. $vararg_ptr85 = ((($vararg_buffer79)) + 16|0);
  27370. HEAP32[$vararg_ptr85>>2] = $97;
  27371. $vararg_ptr86 = ((($vararg_buffer79)) + 20|0);
  27372. HEAP32[$vararg_ptr86>>2] = $98;
  27373. $vararg_ptr87 = ((($vararg_buffer79)) + 24|0);
  27374. HEAP32[$vararg_ptr87>>2] = $99;
  27375. $vararg_ptr88 = ((($vararg_buffer79)) + 28|0);
  27376. HEAP32[$vararg_ptr88>>2] = $100;
  27377. $vararg_ptr89 = ((($vararg_buffer79)) + 32|0);
  27378. HEAP32[$vararg_ptr89>>2] = $101;
  27379. (_fscanf($15,12355,$vararg_buffer79)|0);
  27380. break;
  27381. }
  27382. }
  27383. } while(0);
  27384. $110 = HEAP32[$vararg_buffer11>>2]|0;
  27385. $111 = (($110) + -1)|0;
  27386. $112 = (($37) + (($111*12)|0)|0);
  27387. $113 = HEAP32[$112>>2]|0;
  27388. $114 = (($71) + ($$0352$ph<<2)|0);
  27389. HEAP32[$114>>2] = $113;
  27390. $115 = (((($37) + (($111*12)|0)|0)) + 4|0);
  27391. $116 = HEAP32[$115>>2]|0;
  27392. $117 = (($$0352$ph) + 1)|0;
  27393. $118 = (($71) + ($117<<2)|0);
  27394. HEAP32[$118>>2] = $116;
  27395. $119 = (((($37) + (($111*12)|0)|0)) + 8|0);
  27396. $120 = HEAP32[$119>>2]|0;
  27397. $121 = (($$0352$ph) + 2)|0;
  27398. $122 = (($71) + ($121<<2)|0);
  27399. HEAP32[$122>>2] = $120;
  27400. $123 = (($$0352$ph) + 3)|0;
  27401. $124 = HEAP32[$82>>2]|0;
  27402. $125 = (($124) + -1)|0;
  27403. $126 = (($37) + (($125*12)|0)|0);
  27404. $127 = HEAP32[$126>>2]|0;
  27405. $128 = (($71) + ($123<<2)|0);
  27406. HEAP32[$128>>2] = $127;
  27407. $129 = (((($37) + (($125*12)|0)|0)) + 4|0);
  27408. $130 = HEAP32[$129>>2]|0;
  27409. $131 = (($$0352$ph) + 4)|0;
  27410. $132 = (($71) + ($131<<2)|0);
  27411. HEAP32[$132>>2] = $130;
  27412. $133 = (((($37) + (($125*12)|0)|0)) + 8|0);
  27413. $134 = HEAP32[$133>>2]|0;
  27414. $135 = (($$0352$ph) + 5)|0;
  27415. $136 = (($71) + ($135<<2)|0);
  27416. HEAP32[$136>>2] = $134;
  27417. $137 = (($$0352$ph) + 6)|0;
  27418. $138 = HEAP32[$83>>2]|0;
  27419. $139 = (($138) + -1)|0;
  27420. $140 = (($37) + (($139*12)|0)|0);
  27421. $141 = HEAP32[$140>>2]|0;
  27422. $142 = (($71) + ($137<<2)|0);
  27423. HEAP32[$142>>2] = $141;
  27424. $143 = (((($37) + (($139*12)|0)|0)) + 4|0);
  27425. $144 = HEAP32[$143>>2]|0;
  27426. $145 = (($$0352$ph) + 7)|0;
  27427. $146 = (($71) + ($145<<2)|0);
  27428. HEAP32[$146>>2] = $144;
  27429. $147 = (((($37) + (($139*12)|0)|0)) + 8|0);
  27430. $148 = HEAP32[$147>>2]|0;
  27431. $149 = (($$0352$ph) + 8)|0;
  27432. $150 = (($71) + ($149<<2)|0);
  27433. HEAP32[$150>>2] = $148;
  27434. $151 = (($$0352$ph) + 9)|0;
  27435. if ($38) {
  27436. $152 = HEAP32[$4>>2]|0;
  27437. $153 = (($152) + -1)|0;
  27438. $154 = (($$0357) + (($153*12)|0)|0);
  27439. $155 = HEAP32[$154>>2]|0;
  27440. $156 = (($75) + ($$0350$ph<<2)|0);
  27441. HEAP32[$156>>2] = $155;
  27442. $157 = (((($$0357) + (($153*12)|0)|0)) + 4|0);
  27443. $158 = HEAP32[$157>>2]|0;
  27444. $159 = (($$0350$ph) + 1)|0;
  27445. $160 = (($75) + ($159<<2)|0);
  27446. HEAP32[$160>>2] = $158;
  27447. $161 = (((($$0357) + (($153*12)|0)|0)) + 8|0);
  27448. $162 = HEAP32[$161>>2]|0;
  27449. $163 = (($$0350$ph) + 2)|0;
  27450. $164 = (($75) + ($163<<2)|0);
  27451. HEAP32[$164>>2] = $162;
  27452. $165 = (($$0350$ph) + 3)|0;
  27453. $166 = HEAP32[$84>>2]|0;
  27454. $167 = (($166) + -1)|0;
  27455. $168 = (($$0357) + (($167*12)|0)|0);
  27456. $169 = HEAP32[$168>>2]|0;
  27457. $170 = (($75) + ($165<<2)|0);
  27458. HEAP32[$170>>2] = $169;
  27459. $171 = (((($$0357) + (($167*12)|0)|0)) + 4|0);
  27460. $172 = HEAP32[$171>>2]|0;
  27461. $173 = (($$0350$ph) + 4)|0;
  27462. $174 = (($75) + ($173<<2)|0);
  27463. HEAP32[$174>>2] = $172;
  27464. $175 = (((($$0357) + (($167*12)|0)|0)) + 8|0);
  27465. $176 = HEAP32[$175>>2]|0;
  27466. $177 = (($$0350$ph) + 5)|0;
  27467. $178 = (($75) + ($177<<2)|0);
  27468. HEAP32[$178>>2] = $176;
  27469. $179 = (($$0350$ph) + 6)|0;
  27470. $180 = HEAP32[$85>>2]|0;
  27471. $181 = (($180) + -1)|0;
  27472. $182 = (($$0357) + (($181*12)|0)|0);
  27473. $183 = HEAP32[$182>>2]|0;
  27474. $184 = (($75) + ($179<<2)|0);
  27475. HEAP32[$184>>2] = $183;
  27476. $185 = (((($$0357) + (($181*12)|0)|0)) + 4|0);
  27477. $186 = HEAP32[$185>>2]|0;
  27478. $187 = (($$0350$ph) + 7)|0;
  27479. $188 = (($75) + ($187<<2)|0);
  27480. HEAP32[$188>>2] = $186;
  27481. $189 = (((($$0357) + (($181*12)|0)|0)) + 8|0);
  27482. $190 = HEAP32[$189>>2]|0;
  27483. $191 = (($$0350$ph) + 8)|0;
  27484. $192 = (($75) + ($191<<2)|0);
  27485. HEAP32[$192>>2] = $190;
  27486. } else {
  27487. $193 = HEAP32[$82>>2]|0;
  27488. $194 = (($193) + -1)|0;
  27489. $195 = (($37) + (($194*12)|0)|0);
  27490. $196 = HEAP32[$vararg_buffer11>>2]|0;
  27491. $197 = (($196) + -1)|0;
  27492. $198 = (($37) + (($197*12)|0)|0);
  27493. ;HEAP32[$$byval_copy102>>2]=HEAP32[$195>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$195+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$195+8>>2]|0;
  27494. ;HEAP32[$$byval_copy103>>2]=HEAP32[$198>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$198+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$198+8>>2]|0;
  27495. _VectorSubtract($6,$$byval_copy102,$$byval_copy103);
  27496. $199 = HEAP32[$83>>2]|0;
  27497. $200 = (($199) + -1)|0;
  27498. $201 = (($37) + (($200*12)|0)|0);
  27499. $202 = HEAP32[$vararg_buffer11>>2]|0;
  27500. $203 = (($202) + -1)|0;
  27501. $204 = (($37) + (($203*12)|0)|0);
  27502. ;HEAP32[$$byval_copy102>>2]=HEAP32[$201>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$201+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$201+8>>2]|0;
  27503. ;HEAP32[$$byval_copy103>>2]=HEAP32[$204>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$204+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$204+8>>2]|0;
  27504. _VectorSubtract($7,$$byval_copy102,$$byval_copy103);
  27505. ;HEAP32[$$byval_copy102>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$6+8>>2]|0;
  27506. ;HEAP32[$$byval_copy103>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$7+8>>2]|0;
  27507. _VectorCrossProduct($5,$$byval_copy102,$$byval_copy103);
  27508. _VectorNormalize($5);
  27509. $205 = HEAP32[$5>>2]|0;
  27510. $206 = (($75) + ($$0350$ph<<2)|0);
  27511. HEAP32[$206>>2] = $205;
  27512. $207 = HEAP32[$86>>2]|0;
  27513. $208 = (($$0350$ph) + 1)|0;
  27514. $209 = (($75) + ($208<<2)|0);
  27515. HEAP32[$209>>2] = $207;
  27516. $210 = HEAP32[$87>>2]|0;
  27517. $211 = (($$0350$ph) + 2)|0;
  27518. $212 = (($75) + ($211<<2)|0);
  27519. HEAP32[$212>>2] = $210;
  27520. $213 = (($$0350$ph) + 3)|0;
  27521. $214 = HEAP32[$5>>2]|0;
  27522. $215 = (($75) + ($213<<2)|0);
  27523. HEAP32[$215>>2] = $214;
  27524. $216 = HEAP32[$86>>2]|0;
  27525. $217 = (($$0350$ph) + 4)|0;
  27526. $218 = (($75) + ($217<<2)|0);
  27527. HEAP32[$218>>2] = $216;
  27528. $219 = HEAP32[$87>>2]|0;
  27529. $220 = (($$0350$ph) + 5)|0;
  27530. $221 = (($75) + ($220<<2)|0);
  27531. HEAP32[$221>>2] = $219;
  27532. $222 = (($$0350$ph) + 6)|0;
  27533. $223 = HEAP32[$5>>2]|0;
  27534. $224 = (($75) + ($222<<2)|0);
  27535. HEAP32[$224>>2] = $223;
  27536. $225 = HEAP32[$86>>2]|0;
  27537. $226 = (($$0350$ph) + 7)|0;
  27538. $227 = (($75) + ($226<<2)|0);
  27539. HEAP32[$227>>2] = $225;
  27540. $228 = HEAP32[$87>>2]|0;
  27541. $229 = (($$0350$ph) + 8)|0;
  27542. $230 = (($75) + ($229<<2)|0);
  27543. HEAP32[$230>>2] = $228;
  27544. }
  27545. $$1 = (($$0350$ph) + 9)|0;
  27546. if ($41) {
  27547. break;
  27548. } else {
  27549. $$0350$ph = $$1;$$0352$ph = $151;
  27550. }
  27551. }
  27552. $231 = HEAP32[$vararg_buffer7>>2]|0;
  27553. $232 = (($231) + -1)|0;
  27554. $233 = (($$0356) + ($232<<3)|0);
  27555. $234 = HEAP32[$233>>2]|0;
  27556. $235 = (($74) + ($$0351$ph$ph<<2)|0);
  27557. HEAP32[$235>>2] = $234;
  27558. $236 = (((($$0356) + ($232<<3)|0)) + 4|0);
  27559. $237 = +HEAPF32[$236>>2];
  27560. $238 = 1.0 - $237;
  27561. $239 = $$0351$ph$ph | 1;
  27562. $240 = (($74) + ($239<<2)|0);
  27563. HEAPF32[$240>>2] = $238;
  27564. $241 = (($$0351$ph$ph) + 2)|0;
  27565. $242 = HEAP32[$102>>2]|0;
  27566. $243 = (($242) + -1)|0;
  27567. $244 = (($$0356) + ($243<<3)|0);
  27568. $245 = HEAP32[$244>>2]|0;
  27569. $246 = (($74) + ($241<<2)|0);
  27570. HEAP32[$246>>2] = $245;
  27571. $247 = (((($$0356) + ($243<<3)|0)) + 4|0);
  27572. $248 = +HEAPF32[$247>>2];
  27573. $249 = 1.0 - $248;
  27574. $250 = (($$0351$ph$ph) + 3)|0;
  27575. $251 = (($74) + ($250<<2)|0);
  27576. HEAPF32[$251>>2] = $249;
  27577. $252 = (($$0351$ph$ph) + 4)|0;
  27578. $253 = HEAP32[$103>>2]|0;
  27579. $254 = (($253) + -1)|0;
  27580. $255 = (($$0356) + ($254<<3)|0);
  27581. $256 = HEAP32[$255>>2]|0;
  27582. $257 = (($74) + ($252<<2)|0);
  27583. HEAP32[$257>>2] = $256;
  27584. $258 = (((($$0356) + ($254<<3)|0)) + 4|0);
  27585. $259 = +HEAPF32[$258>>2];
  27586. $260 = 1.0 - $259;
  27587. $261 = (($$0351$ph$ph) + 5)|0;
  27588. $262 = (($74) + ($261<<2)|0);
  27589. HEAPF32[$262>>2] = $260;
  27590. $263 = (($$0351$ph$ph) + 6)|0;
  27591. $$0350$ph$ph = $$1;$$0351$ph$ph = $263;$$0352$ph$ph = $151;
  27592. }
  27593. (_fclose($15)|0);
  27594. $264 = ($$0345$ph372$lcssa389|0)==(0);
  27595. if ($264) {
  27596. $265 = ($72|0)>(0);
  27597. if ($265) {
  27598. $368 = ($$0346$ph$lcssa*24)|0;
  27599. _memset(($74|0),0,($368|0))|0;
  27600. $$sroa$64$0 = 0;
  27601. } else {
  27602. $$sroa$64$0 = 0;
  27603. }
  27604. } else {
  27605. $266 = (_malloc($70)|0);
  27606. $267 = ($69|0)>(0);
  27607. if ($267) {
  27608. $268 = ((($5)) + 4|0);
  27609. $269 = ((($5)) + 8|0);
  27610. $270 = ((($8)) + 4|0);
  27611. $271 = ((($8)) + 8|0);
  27612. $272 = ((($9)) + 4|0);
  27613. $273 = ((($9)) + 8|0);
  27614. $274 = ((($12)) + 4|0);
  27615. $275 = ((($10)) + 4|0);
  27616. $276 = ((($12)) + 8|0);
  27617. $277 = ((($10)) + 8|0);
  27618. $278 = ((($13)) + 4|0);
  27619. $279 = ((($11)) + 4|0);
  27620. $280 = ((($13)) + 8|0);
  27621. $281 = ((($11)) + 8|0);
  27622. $282 = ((($14)) + 4|0);
  27623. $283 = ((($14)) + 8|0);
  27624. $$0347392 = 0;$$0348391 = 0;
  27625. while(1) {
  27626. $284 = (($71) + ($$0348391<<2)|0);
  27627. $285 = HEAP32[$284>>2]|0;
  27628. HEAP32[$5>>2] = $285;
  27629. $286 = (($$0348391) + 1)|0;
  27630. $287 = (($71) + ($286<<2)|0);
  27631. $288 = HEAP32[$287>>2]|0;
  27632. HEAP32[$268>>2] = $288;
  27633. $289 = (($$0348391) + 2)|0;
  27634. $290 = (($71) + ($289<<2)|0);
  27635. $291 = HEAP32[$290>>2]|0;
  27636. HEAP32[$269>>2] = $291;
  27637. $292 = (($$0348391) + 3)|0;
  27638. $293 = (($71) + ($292<<2)|0);
  27639. $294 = HEAP32[$293>>2]|0;
  27640. HEAP32[$8>>2] = $294;
  27641. $295 = (($$0348391) + 4)|0;
  27642. $296 = (($71) + ($295<<2)|0);
  27643. $297 = HEAP32[$296>>2]|0;
  27644. HEAP32[$270>>2] = $297;
  27645. $298 = (($$0348391) + 5)|0;
  27646. $299 = (($71) + ($298<<2)|0);
  27647. $300 = HEAP32[$299>>2]|0;
  27648. HEAP32[$271>>2] = $300;
  27649. $301 = (($$0348391) + 6)|0;
  27650. $302 = (($71) + ($301<<2)|0);
  27651. $303 = HEAP32[$302>>2]|0;
  27652. HEAP32[$9>>2] = $303;
  27653. $304 = (($$0348391) + 7)|0;
  27654. $305 = (($71) + ($304<<2)|0);
  27655. $306 = HEAP32[$305>>2]|0;
  27656. HEAP32[$272>>2] = $306;
  27657. $307 = (($$0348391) + 8)|0;
  27658. $308 = (($71) + ($307<<2)|0);
  27659. $309 = HEAP32[$308>>2]|0;
  27660. HEAP32[$273>>2] = $309;
  27661. $310 = (($74) + ($$0347392<<2)|0);
  27662. $311 = +HEAPF32[$310>>2];
  27663. $312 = $$0347392 | 1;
  27664. $313 = (($74) + ($312<<2)|0);
  27665. $314 = +HEAPF32[$313>>2];
  27666. $315 = (($$0347392) + 2)|0;
  27667. $316 = (($74) + ($315<<2)|0);
  27668. $317 = +HEAPF32[$316>>2];
  27669. $318 = (($$0347392) + 3)|0;
  27670. $319 = (($74) + ($318<<2)|0);
  27671. $320 = +HEAPF32[$319>>2];
  27672. $321 = (($$0347392) + 4)|0;
  27673. $322 = (($74) + ($321<<2)|0);
  27674. $323 = +HEAPF32[$322>>2];
  27675. $324 = (($$0347392) + 5)|0;
  27676. $325 = (($74) + ($324<<2)|0);
  27677. $326 = +HEAPF32[$325>>2];
  27678. ;HEAP32[$$byval_copy102>>2]=HEAP32[$8>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$8+8>>2]|0;
  27679. ;HEAP32[$$byval_copy103>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$5+8>>2]|0;
  27680. _VectorSubtract($10,$$byval_copy102,$$byval_copy103);
  27681. ;HEAP32[$$byval_copy102>>2]=HEAP32[$9>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$9+8>>2]|0;
  27682. ;HEAP32[$$byval_copy103>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$5+8>>2]|0;
  27683. _VectorSubtract($11,$$byval_copy102,$$byval_copy103);
  27684. $327 = $317 - $311;
  27685. $328 = $320 - $314;
  27686. $329 = $323 - $311;
  27687. $330 = $326 - $314;
  27688. $331 = $327 * $330;
  27689. $332 = $328 * $329;
  27690. $333 = $331 - $332;
  27691. $334 = 1.0 / $333;
  27692. $335 = +HEAPF32[$10>>2];
  27693. $336 = $330 * $335;
  27694. HEAPF32[$12>>2] = $336;
  27695. $337 = +HEAPF32[$275>>2];
  27696. $338 = $330 * $337;
  27697. HEAPF32[$274>>2] = $338;
  27698. $339 = +HEAPF32[$277>>2];
  27699. $340 = $330 * $339;
  27700. HEAPF32[$276>>2] = $340;
  27701. $341 = +HEAPF32[$11>>2];
  27702. $342 = $328 * $341;
  27703. HEAPF32[$13>>2] = $342;
  27704. $343 = +HEAPF32[$279>>2];
  27705. $344 = $328 * $343;
  27706. HEAPF32[$278>>2] = $344;
  27707. $345 = +HEAPF32[$281>>2];
  27708. $346 = $328 * $345;
  27709. HEAPF32[$280>>2] = $346;
  27710. ;HEAP32[$$byval_copy102>>2]=HEAP32[$12>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$12+8>>2]|0;
  27711. ;HEAP32[$$byval_copy103>>2]=HEAP32[$13>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$13+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$13+8>>2]|0;
  27712. _VectorSubtract($14,$$byval_copy102,$$byval_copy103);
  27713. _VectorScale($14,$334);
  27714. $347 = HEAP32[$14>>2]|0;
  27715. $348 = (($266) + ($$0348391<<2)|0);
  27716. HEAP32[$348>>2] = $347;
  27717. $349 = HEAP32[$282>>2]|0;
  27718. $350 = (($266) + ($286<<2)|0);
  27719. HEAP32[$350>>2] = $349;
  27720. $351 = HEAP32[$283>>2]|0;
  27721. $352 = (($266) + ($289<<2)|0);
  27722. HEAP32[$352>>2] = $351;
  27723. $353 = HEAP32[$14>>2]|0;
  27724. $354 = (($266) + ($292<<2)|0);
  27725. HEAP32[$354>>2] = $353;
  27726. $355 = HEAP32[$282>>2]|0;
  27727. $356 = (($266) + ($295<<2)|0);
  27728. HEAP32[$356>>2] = $355;
  27729. $357 = HEAP32[$283>>2]|0;
  27730. $358 = (($266) + ($298<<2)|0);
  27731. HEAP32[$358>>2] = $357;
  27732. $359 = HEAP32[$14>>2]|0;
  27733. $360 = (($266) + ($301<<2)|0);
  27734. HEAP32[$360>>2] = $359;
  27735. $361 = HEAP32[$282>>2]|0;
  27736. $362 = (($266) + ($304<<2)|0);
  27737. HEAP32[$362>>2] = $361;
  27738. $363 = HEAP32[$283>>2]|0;
  27739. $364 = (($266) + ($307<<2)|0);
  27740. HEAP32[$364>>2] = $363;
  27741. $365 = (($$0348391) + 9)|0;
  27742. $366 = (($$0347392) + 6)|0;
  27743. $367 = ($365|0)<($69|0);
  27744. if ($367) {
  27745. $$0347392 = $366;$$0348391 = $365;
  27746. } else {
  27747. $$sroa$64$0 = $266;
  27748. break;
  27749. }
  27750. }
  27751. } else {
  27752. $$sroa$64$0 = $266;
  27753. }
  27754. }
  27755. _free($37);
  27756. _free($369);
  27757. _free($370);
  27758. HEAP32[$vararg_buffer90>>2] = $1;
  27759. _TraceLog(0,12382,$vararg_buffer90);
  27760. HEAP32[$0>>2] = $68;
  27761. $$sroa$12$0$$sroa_idx244 = ((($0)) + 4|0);
  27762. HEAP32[$$sroa$12$0$$sroa_idx244>>2] = 0;
  27763. $$sroa$12247$0$$sroa_idx249 = ((($0)) + 8|0);
  27764. HEAP32[$$sroa$12247$0$$sroa_idx249>>2] = $71;
  27765. $$sroa$31$0$$sroa_idx270 = ((($0)) + 12|0);
  27766. HEAP32[$$sroa$31$0$$sroa_idx270>>2] = $74;
  27767. $$sroa$45$0$$sroa_idx286 = ((($0)) + 16|0);
  27768. HEAP32[$$sroa$45$0$$sroa_idx286>>2] = 0;
  27769. $$sroa$45289$0$$sroa_idx291 = ((($0)) + 20|0);
  27770. HEAP32[$$sroa$45289$0$$sroa_idx291>>2] = $75;
  27771. $$sroa$64$0$$sroa_idx312 = ((($0)) + 24|0);
  27772. HEAP32[$$sroa$64$0$$sroa_idx312>>2] = $$sroa$64$0;
  27773. $$sroa$74$0$$sroa_idx324 = ((($0)) + 28|0);
  27774. HEAP32[$$sroa$74$0$$sroa_idx324>>2] = 0;
  27775. $$sroa$75$0$$sroa_idx328 = ((($0)) + 32|0);
  27776. dest=$$sroa$75$0$$sroa_idx328; src=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27777. STACKTOP = sp;return;
  27778. }
  27779. function _LoadModel($0,$1) {
  27780. $0 = $0|0;
  27781. $1 = $1|0;
  27782. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27783. sp = STACKTOP;
  27784. STACKTOP = STACKTOP + 464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(464|0);
  27785. $2 = sp + 200|0;
  27786. $3 = sp + 136|0;
  27787. $4 = sp;
  27788. _memset(($2|0),0,264)|0;
  27789. _LoadMesh($2,$1);
  27790. $5 = ((($2)) + 68|0);
  27791. _MatrixIdentity($3);
  27792. dest=$5; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27793. $6 = ((($2)) + 132|0);
  27794. _LoadDefaultMaterial($4);
  27795. _memcpy(($6|0),($4|0),132)|0;
  27796. _memcpy(($0|0),($2|0),264)|0;
  27797. STACKTOP = sp;return;
  27798. }
  27799. function _LoadDefaultMaterial($0) {
  27800. $0 = $0|0;
  27801. var $$sroa$09 = 0, $$sroa$09$56$sroa_idx = 0, $$sroa$18$0$$sroa_idx15 = 0, $$sroa$6$0$$sroa_idx = 0, $1 = 0, $2 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27802. sp = STACKTOP;
  27803. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  27804. $$sroa$09 = sp;
  27805. $1 = sp + 136|0;
  27806. $2 = sp + 116|0;
  27807. dest=$$sroa$09; stop=dest+116|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  27808. _GetDefaultShader($1);
  27809. dest=$$sroa$09; src=$1; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27810. _GetDefaultTexture($2);
  27811. $$sroa$09$56$sroa_idx = ((($$sroa$09)) + 56|0);
  27812. ;HEAP32[$$sroa$09$56$sroa_idx>>2]=HEAP32[$2>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+16>>2]=HEAP32[$2+16>>2]|0;
  27813. dest=$0; src=$$sroa$09; stop=dest+116|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27814. $$sroa$6$0$$sroa_idx = ((($0)) + 116|0);
  27815. $$sroa$18$0$$sroa_idx15 = ((($0)) + 128|0);
  27816. ;HEAP32[$$sroa$6$0$$sroa_idx>>2]=4294967295|0;HEAP32[$$sroa$6$0$$sroa_idx+4>>2]=4294967295|0;HEAP32[$$sroa$6$0$$sroa_idx+8>>2]=4294967295|0;
  27817. HEAPF32[$$sroa$18$0$$sroa_idx15>>2] = 100.0;
  27818. STACKTOP = sp;return;
  27819. }
  27820. function _UnloadMesh($0) {
  27821. $0 = $0|0;
  27822. var label = 0, sp = 0;
  27823. sp = STACKTOP;
  27824. _rlglUnloadMesh($0);
  27825. return;
  27826. }
  27827. function _UnloadModel($0) {
  27828. $0 = $0|0;
  27829. var $$byval_copy = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  27830. sp = STACKTOP;
  27831. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  27832. $$byval_copy = sp + 4|0;
  27833. $vararg_buffer = sp;
  27834. _UnloadMesh($0);
  27835. $1 = ((($0)) + 132|0);
  27836. _memcpy(($$byval_copy|0),($1|0),132)|0;
  27837. _UnloadMaterial($$byval_copy);
  27838. _TraceLog(0,12426,$vararg_buffer);
  27839. STACKTOP = sp;return;
  27840. }
  27841. function _UnloadMaterial($0) {
  27842. $0 = $0|0;
  27843. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  27844. sp = STACKTOP;
  27845. $1 = ((($0)) + 56|0);
  27846. $2 = HEAP32[$1>>2]|0;
  27847. _rlDeleteTextures($2);
  27848. $3 = ((($0)) + 76|0);
  27849. $4 = HEAP32[$3>>2]|0;
  27850. _rlDeleteTextures($4);
  27851. $5 = ((($0)) + 96|0);
  27852. $6 = HEAP32[$5>>2]|0;
  27853. _rlDeleteTextures($6);
  27854. return;
  27855. }
  27856. function _DrawModel($0,$1,$2,$3) {
  27857. $0 = $0|0;
  27858. $1 = $1|0;
  27859. $2 = +$2;
  27860. $3 = $3|0;
  27861. var $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $$byval_copy4 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  27862. sp = STACKTOP;
  27863. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  27864. $$byval_copy4 = sp + 324|0;
  27865. $$byval_copy3 = sp + 312|0;
  27866. $$byval_copy2 = sp + 300|0;
  27867. $$byval_copy1 = sp + 288|0;
  27868. $$byval_copy = sp + 24|0;
  27869. $4 = sp + 12|0;
  27870. $5 = sp;
  27871. HEAPF32[$4>>2] = $2;
  27872. $6 = ((($4)) + 4|0);
  27873. HEAPF32[$6>>2] = $2;
  27874. $7 = ((($4)) + 8|0);
  27875. HEAPF32[$7>>2] = $2;
  27876. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  27877. _memcpy(($$byval_copy|0),($0|0),264)|0;
  27878. ;HEAP32[$$byval_copy1>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$1+8>>2]|0;
  27879. ;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;
  27880. ;HEAP32[$$byval_copy3>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$4+8>>2]|0;
  27881. ;HEAP8[$$byval_copy4>>0]=HEAP8[$3>>0]|0;HEAP8[$$byval_copy4+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$$byval_copy4+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$$byval_copy4+3>>0]=HEAP8[$3+3>>0]|0;
  27882. _DrawModelEx($$byval_copy,$$byval_copy1,$$byval_copy2,0.0,$$byval_copy3,$$byval_copy4);
  27883. STACKTOP = sp;return;
  27884. }
  27885. function _DrawModelEx($0,$1,$2,$3,$4,$5) {
  27886. $0 = $0|0;
  27887. $1 = $1|0;
  27888. $2 = $2|0;
  27889. $3 = +$3;
  27890. $4 = $4|0;
  27891. $5 = $5|0;
  27892. var $$byval_copy5 = 0, $$byval_copy6 = 0, $$byval_copy7 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0.0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $6 = 0;
  27893. var $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27894. sp = STACKTOP;
  27895. STACKTOP = STACKTOP + 592|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(592|0);
  27896. $$byval_copy7 = sp + 520|0;
  27897. $$byval_copy6 = sp + 388|0;
  27898. $$byval_copy5 = sp + 320|0;
  27899. $6 = sp + 128|0;
  27900. $7 = sp + 64|0;
  27901. $8 = sp;
  27902. $9 = sp + 256|0;
  27903. $10 = sp + 192|0;
  27904. $11 = $3 * 0.01745329238474369;
  27905. ;HEAP32[$$byval_copy7>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy7+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy7+8>>2]=HEAP32[$2+8>>2]|0;
  27906. _MatrixRotate($6,$$byval_copy7,$11);
  27907. $12 = +HEAPF32[$4>>2];
  27908. $13 = ((($4)) + 4|0);
  27909. $14 = +HEAPF32[$13>>2];
  27910. $15 = ((($4)) + 8|0);
  27911. $16 = +HEAPF32[$15>>2];
  27912. _MatrixScale($7,$12,$14,$16);
  27913. $17 = +HEAPF32[$1>>2];
  27914. $18 = ((($1)) + 4|0);
  27915. $19 = +HEAPF32[$18>>2];
  27916. $20 = ((($1)) + 8|0);
  27917. $21 = +HEAPF32[$20>>2];
  27918. _MatrixTranslate($8,$17,$19,$21);
  27919. $22 = ((($0)) + 68|0);
  27920. dest=$$byval_copy6; src=$7; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27921. dest=$$byval_copy7; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27922. _MatrixMultiply($9,$$byval_copy6,$$byval_copy7);
  27923. dest=$$byval_copy6; src=$9; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27924. dest=$$byval_copy7; src=$8; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27925. _MatrixMultiply($10,$$byval_copy6,$$byval_copy7);
  27926. dest=$22; src=$10; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27927. $23 = ((($0)) + 132|0);
  27928. $24 = ((($0)) + 248|0);
  27929. $25 = HEAPU8[$5>>0]|(HEAPU8[$5+1>>0]<<8)|(HEAPU8[$5+2>>0]<<16)|(HEAPU8[$5+3>>0]<<24);
  27930. HEAP32[$24>>2] = $25;
  27931. dest=$$byval_copy5; src=$0; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27932. _memcpy(($$byval_copy6|0),($23|0),132)|0;
  27933. dest=$$byval_copy7; src=$10; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27934. _rlglDrawMesh($$byval_copy5,$$byval_copy6,$$byval_copy7);
  27935. STACKTOP = sp;return;
  27936. }
  27937. function _emscripten_GetProcAddress($0) {
  27938. $0 = $0|0;
  27939. 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;
  27940. 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;
  27941. 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;
  27942. 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;
  27943. 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;
  27944. 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;
  27945. 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;
  27946. 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;
  27947. 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;
  27948. 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;
  27949. 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;
  27950. 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;
  27951. 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;
  27952. 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;
  27953. 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;
  27954. 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;
  27955. 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;
  27956. 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;
  27957. 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;
  27958. 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;
  27959. 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;
  27960. 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;
  27961. 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;
  27962. 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;
  27963. 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;
  27964. 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;
  27965. 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;
  27966. 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;
  27967. sp = STACKTOP;
  27968. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27969. $1 = sp + 12|0;
  27970. $2 = sp + 8|0;
  27971. $3 = sp + 4|0;
  27972. $4 = sp;
  27973. HEAP32[$2>>2] = $0;
  27974. $5 = HEAP32[$2>>2]|0;
  27975. $6 = (_strlen($5)|0);
  27976. $7 = (($6) + 1)|0;
  27977. $8 = (_malloc($7)|0);
  27978. HEAP32[$3>>2] = $8;
  27979. $9 = HEAP32[$3>>2]|0;
  27980. $10 = HEAP32[$2>>2]|0;
  27981. (_strcpy($9,$10)|0);
  27982. $11 = HEAP32[$3>>2]|0;
  27983. $12 = (_strstr($11,12484)|0);
  27984. HEAP32[$4>>2] = $12;
  27985. $13 = HEAP32[$4>>2]|0;
  27986. $14 = ($13|0)!=(0|0);
  27987. if ($14) {
  27988. $15 = HEAP32[$4>>2]|0;
  27989. HEAP8[$15>>0] = 0;
  27990. }
  27991. $16 = HEAP32[$3>>2]|0;
  27992. $17 = (_strstr($16,12488)|0);
  27993. HEAP32[$4>>2] = $17;
  27994. $18 = HEAP32[$4>>2]|0;
  27995. $19 = ($18|0)!=(0|0);
  27996. if ($19) {
  27997. $20 = HEAP32[$4>>2]|0;
  27998. HEAP8[$20>>0] = 0;
  27999. }
  28000. $21 = HEAP32[$3>>2]|0;
  28001. $22 = (_strstr($21,12492)|0);
  28002. HEAP32[$4>>2] = $22;
  28003. $23 = HEAP32[$4>>2]|0;
  28004. $24 = ($23|0)!=(0|0);
  28005. if ($24) {
  28006. $25 = HEAP32[$4>>2]|0;
  28007. HEAP8[$25>>0] = 0;
  28008. }
  28009. $26 = HEAP32[$3>>2]|0;
  28010. $27 = (_strstr($26,12496)|0);
  28011. HEAP32[$4>>2] = $27;
  28012. $28 = HEAP32[$4>>2]|0;
  28013. $29 = ($28|0)!=(0|0);
  28014. if ($29) {
  28015. $30 = HEAP32[$4>>2]|0;
  28016. HEAP8[$30>>0] = 0;
  28017. }
  28018. $31 = HEAP32[$3>>2]|0;
  28019. $32 = (_strcmp($31,12502)|0);
  28020. $33 = ($32|0)!=(0);
  28021. do {
  28022. if ($33) {
  28023. $34 = HEAP32[$3>>2]|0;
  28024. $35 = (_strcmp($34,12540)|0);
  28025. $36 = ($35|0)!=(0);
  28026. if (!($36)) {
  28027. HEAP32[$3>>2] = 12559;
  28028. break;
  28029. }
  28030. $37 = HEAP32[$3>>2]|0;
  28031. $38 = (_strcmp($37,12572)|0);
  28032. $39 = ($38|0)!=(0);
  28033. if (!($39)) {
  28034. HEAP32[$3>>2] = 12593;
  28035. break;
  28036. }
  28037. $40 = HEAP32[$3>>2]|0;
  28038. $41 = (_strcmp($40,12608)|0);
  28039. $42 = ($41|0)!=(0);
  28040. if (!($42)) {
  28041. HEAP32[$3>>2] = 12623;
  28042. break;
  28043. }
  28044. $43 = HEAP32[$3>>2]|0;
  28045. $44 = (_strcmp($43,12638)|0);
  28046. $45 = ($44|0)!=(0);
  28047. if (!($45)) {
  28048. HEAP32[$3>>2] = 12653;
  28049. }
  28050. } else {
  28051. HEAP32[$3>>2] = 12524;
  28052. }
  28053. } while(0);
  28054. $46 = HEAP32[$3>>2]|0;
  28055. $47 = (_strcmp($46,12668)|0);
  28056. $48 = ($47|0)!=(0);
  28057. do {
  28058. if ($48) {
  28059. $49 = HEAP32[$3>>2]|0;
  28060. $50 = (_strcmp($49,12682)|0);
  28061. $51 = ($50|0)!=(0);
  28062. if (!($51)) {
  28063. HEAP32[$1>>2] = 3;
  28064. break;
  28065. }
  28066. $52 = HEAP32[$3>>2]|0;
  28067. $53 = (_strcmp($52,12694)|0);
  28068. $54 = ($53|0)!=(0);
  28069. if (!($54)) {
  28070. HEAP32[$1>>2] = 7;
  28071. break;
  28072. }
  28073. $55 = HEAP32[$3>>2]|0;
  28074. $56 = (_strcmp($55,12708)|0);
  28075. $57 = ($56|0)!=(0);
  28076. if (!($57)) {
  28077. HEAP32[$1>>2] = 8;
  28078. break;
  28079. }
  28080. $58 = HEAP32[$3>>2]|0;
  28081. $59 = (_strcmp($58,12720)|0);
  28082. $60 = ($59|0)!=(0);
  28083. if (!($60)) {
  28084. HEAP32[$1>>2] = 9;
  28085. break;
  28086. }
  28087. $61 = HEAP32[$3>>2]|0;
  28088. $62 = (_strcmp($61,12734)|0);
  28089. $63 = ($62|0)!=(0);
  28090. if (!($63)) {
  28091. HEAP32[$1>>2] = 10;
  28092. break;
  28093. }
  28094. $64 = HEAP32[$3>>2]|0;
  28095. $65 = (_strcmp($64,12748)|0);
  28096. $66 = ($65|0)!=(0);
  28097. if (!($66)) {
  28098. HEAP32[$1>>2] = 11;
  28099. break;
  28100. }
  28101. $67 = HEAP32[$3>>2]|0;
  28102. $68 = (_strcmp($67,12765)|0);
  28103. $69 = ($68|0)!=(0);
  28104. if (!($69)) {
  28105. HEAP32[$1>>2] = 1;
  28106. break;
  28107. }
  28108. $70 = HEAP32[$3>>2]|0;
  28109. $71 = (_strcmp($70,12788)|0);
  28110. $72 = ($71|0)!=(0);
  28111. if (!($72)) {
  28112. HEAP32[$1>>2] = 1;
  28113. break;
  28114. }
  28115. $73 = HEAP32[$3>>2]|0;
  28116. $74 = (_strcmp($73,12814)|0);
  28117. $75 = ($74|0)!=(0);
  28118. if (!($75)) {
  28119. HEAP32[$1>>2] = 2;
  28120. break;
  28121. }
  28122. $76 = HEAP32[$3>>2]|0;
  28123. $77 = (_strcmp($76,12827)|0);
  28124. $78 = ($77|0)!=(0);
  28125. if (!($78)) {
  28126. HEAP32[$1>>2] = 3;
  28127. break;
  28128. }
  28129. $79 = HEAP32[$3>>2]|0;
  28130. $80 = (_strcmp($79,12843)|0);
  28131. $81 = ($80|0)!=(0);
  28132. if (!($81)) {
  28133. HEAP32[$1>>2] = 1;
  28134. break;
  28135. }
  28136. $82 = HEAP32[$3>>2]|0;
  28137. $83 = (_strcmp($82,12856)|0);
  28138. $84 = ($83|0)!=(0);
  28139. if (!($84)) {
  28140. HEAP32[$1>>2] = 12;
  28141. break;
  28142. }
  28143. $85 = HEAP32[$3>>2]|0;
  28144. $86 = (_strcmp($85,12870)|0);
  28145. $87 = ($86|0)!=(0);
  28146. if (!($87)) {
  28147. HEAP32[$1>>2] = 2;
  28148. break;
  28149. }
  28150. $88 = HEAP32[$3>>2]|0;
  28151. $89 = (_strcmp($88,12890)|0);
  28152. $90 = ($89|0)!=(0);
  28153. if (!($90)) {
  28154. HEAP32[$1>>2] = 3;
  28155. break;
  28156. }
  28157. $91 = HEAP32[$3>>2]|0;
  28158. $92 = (_strcmp($91,12910)|0);
  28159. $93 = ($92|0)!=(0);
  28160. if (!($93)) {
  28161. HEAP32[$1>>2] = 4;
  28162. break;
  28163. }
  28164. $94 = HEAP32[$3>>2]|0;
  28165. $95 = (_strcmp($94,12927)|0);
  28166. $96 = ($95|0)!=(0);
  28167. if (!($96)) {
  28168. HEAP32[$1>>2] = 5;
  28169. break;
  28170. }
  28171. $97 = HEAP32[$3>>2]|0;
  28172. $98 = (_strcmp($97,12944)|0);
  28173. $99 = ($98|0)!=(0);
  28174. if (!($99)) {
  28175. HEAP32[$1>>2] = 4;
  28176. break;
  28177. }
  28178. $100 = HEAP32[$3>>2]|0;
  28179. $101 = (_strcmp($100,12956)|0);
  28180. $102 = ($101|0)!=(0);
  28181. if (!($102)) {
  28182. HEAP32[$1>>2] = 13;
  28183. break;
  28184. }
  28185. $103 = HEAP32[$3>>2]|0;
  28186. $104 = (_strcmp($103,12969)|0);
  28187. $105 = ($104|0)!=(0);
  28188. if (!($105)) {
  28189. HEAP32[$1>>2] = 14;
  28190. break;
  28191. }
  28192. $106 = HEAP32[$3>>2]|0;
  28193. $107 = (_strcmp($106,12985)|0);
  28194. $108 = ($107|0)!=(0);
  28195. if (!($108)) {
  28196. HEAP32[$1>>2] = 6;
  28197. break;
  28198. }
  28199. $109 = HEAP32[$3>>2]|0;
  28200. $110 = (_strcmp($109,13008)|0);
  28201. $111 = ($110|0)!=(0);
  28202. if (!($111)) {
  28203. HEAP32[$1>>2] = 2;
  28204. break;
  28205. }
  28206. $112 = HEAP32[$3>>2]|0;
  28207. $113 = (_strcmp($112,13021)|0);
  28208. $114 = ($113|0)!=(0);
  28209. if (!($114)) {
  28210. HEAP32[$1>>2] = 3;
  28211. break;
  28212. }
  28213. $115 = HEAP32[$3>>2]|0;
  28214. $116 = (_strcmp($115,13037)|0);
  28215. $117 = ($116|0)!=(0);
  28216. if (!($117)) {
  28217. HEAP32[$1>>2] = 5;
  28218. break;
  28219. }
  28220. $118 = HEAP32[$3>>2]|0;
  28221. $119 = (_strcmp($118,13048)|0);
  28222. $120 = ($119|0)!=(0);
  28223. if (!($120)) {
  28224. HEAP32[$1>>2] = 15;
  28225. break;
  28226. }
  28227. $121 = HEAP32[$3>>2]|0;
  28228. $122 = (_strcmp($121,13067)|0);
  28229. $123 = ($122|0)!=(0);
  28230. if (!($123)) {
  28231. HEAP32[$1>>2] = 16;
  28232. break;
  28233. }
  28234. $124 = HEAP32[$3>>2]|0;
  28235. $125 = (_strcmp($124,13089)|0);
  28236. $126 = ($125|0)!=(0);
  28237. if (!($126)) {
  28238. HEAP32[$1>>2] = 17;
  28239. break;
  28240. }
  28241. $127 = HEAP32[$3>>2]|0;
  28242. $128 = (_strcmp($127,13108)|0);
  28243. $129 = ($128|0)!=(0);
  28244. if (!($129)) {
  28245. HEAP32[$1>>2] = 7;
  28246. break;
  28247. }
  28248. $130 = HEAP32[$3>>2]|0;
  28249. $131 = (_strcmp($130,13137)|0);
  28250. $132 = ($131|0)!=(0);
  28251. if (!($132)) {
  28252. HEAP32[$1>>2] = 6;
  28253. break;
  28254. }
  28255. $133 = HEAP32[$3>>2]|0;
  28256. $134 = (_strcmp($133,13154)|0);
  28257. $135 = ($134|0)!=(0);
  28258. if (!($135)) {
  28259. HEAP32[$1>>2] = 8;
  28260. break;
  28261. }
  28262. $136 = HEAP32[$3>>2]|0;
  28263. $137 = (_strcmp($136,13169)|0);
  28264. $138 = ($137|0)!=(0);
  28265. if (!($138)) {
  28266. HEAP32[$1>>2] = 9;
  28267. break;
  28268. }
  28269. $139 = HEAP32[$3>>2]|0;
  28270. $140 = (_strcmp($139,13184)|0);
  28271. $141 = ($140|0)!=(0);
  28272. if (!($141)) {
  28273. HEAP32[$1>>2] = 1;
  28274. break;
  28275. }
  28276. $142 = HEAP32[$3>>2]|0;
  28277. $143 = (_strcmp($142,13205)|0);
  28278. $144 = ($143|0)!=(0);
  28279. if (!($144)) {
  28280. HEAP32[$1>>2] = 10;
  28281. break;
  28282. }
  28283. $145 = HEAP32[$3>>2]|0;
  28284. $146 = (_strcmp($145,13225)|0);
  28285. $147 = ($146|0)!=(0);
  28286. if (!($147)) {
  28287. HEAP32[$1>>2] = 11;
  28288. break;
  28289. }
  28290. $148 = HEAP32[$3>>2]|0;
  28291. $149 = (_strcmp($148,13245)|0);
  28292. $150 = ($149|0)!=(0);
  28293. if (!($150)) {
  28294. HEAP32[$1>>2] = 12;
  28295. break;
  28296. }
  28297. $151 = HEAP32[$3>>2]|0;
  28298. $152 = (_strcmp($151,13271)|0);
  28299. $153 = ($152|0)!=(0);
  28300. if (!($153)) {
  28301. HEAP32[$1>>2] = 2;
  28302. break;
  28303. }
  28304. $154 = HEAP32[$3>>2]|0;
  28305. $155 = (_strcmp($154,13290)|0);
  28306. $156 = ($155|0)!=(0);
  28307. if (!($156)) {
  28308. HEAP32[$1>>2] = 1;
  28309. break;
  28310. }
  28311. $157 = HEAP32[$3>>2]|0;
  28312. $158 = (_strcmp($157,13302)|0);
  28313. $159 = ($158|0)!=(0);
  28314. if (!($159)) {
  28315. HEAP32[$1>>2] = 3;
  28316. break;
  28317. }
  28318. $160 = HEAP32[$3>>2]|0;
  28319. $161 = (_strcmp($160,13314)|0);
  28320. $162 = ($161|0)!=(0);
  28321. if (!($162)) {
  28322. HEAP32[$1>>2] = 1;
  28323. break;
  28324. }
  28325. $163 = HEAP32[$3>>2]|0;
  28326. $164 = (_strcmp($163,13326)|0);
  28327. $165 = ($164|0)!=(0);
  28328. if (!($165)) {
  28329. HEAP32[$1>>2] = 1;
  28330. break;
  28331. }
  28332. $166 = HEAP32[$3>>2]|0;
  28333. $167 = (_strcmp($166,13338)|0);
  28334. $168 = ($167|0)!=(0);
  28335. if (!($168)) {
  28336. HEAP32[$1>>2] = 18;
  28337. break;
  28338. }
  28339. $169 = HEAP32[$3>>2]|0;
  28340. $170 = (_strcmp($169,13350)|0);
  28341. $171 = ($170|0)!=(0);
  28342. if (!($171)) {
  28343. HEAP32[$1>>2] = 13;
  28344. break;
  28345. }
  28346. $172 = HEAP32[$3>>2]|0;
  28347. $173 = (_strcmp($172,13362)|0);
  28348. $174 = ($173|0)!=(0);
  28349. if (!($174)) {
  28350. HEAP32[$1>>2] = 4;
  28351. break;
  28352. }
  28353. $175 = HEAP32[$3>>2]|0;
  28354. $176 = (_strcmp($175,13374)|0);
  28355. $177 = ($176|0)!=(0);
  28356. if (!($177)) {
  28357. HEAP32[$1>>2] = 2;
  28358. break;
  28359. }
  28360. $178 = HEAP32[$3>>2]|0;
  28361. $179 = (_strcmp($178,13386)|0);
  28362. $180 = ($179|0)!=(0);
  28363. if (!($180)) {
  28364. HEAP32[$1>>2] = 14;
  28365. break;
  28366. }
  28367. $181 = HEAP32[$3>>2]|0;
  28368. $182 = (_strcmp($181,13399)|0);
  28369. $183 = ($182|0)!=(0);
  28370. if (!($183)) {
  28371. HEAP32[$1>>2] = 15;
  28372. break;
  28373. }
  28374. $184 = HEAP32[$3>>2]|0;
  28375. $185 = (_strcmp($184,13412)|0);
  28376. $186 = ($185|0)!=(0);
  28377. if (!($186)) {
  28378. HEAP32[$1>>2] = 16;
  28379. break;
  28380. }
  28381. $187 = HEAP32[$3>>2]|0;
  28382. $188 = (_strcmp($187,13425)|0);
  28383. $189 = ($188|0)!=(0);
  28384. if (!($189)) {
  28385. HEAP32[$1>>2] = 17;
  28386. break;
  28387. }
  28388. $190 = HEAP32[$3>>2]|0;
  28389. $191 = (_strcmp($190,13438)|0);
  28390. $192 = ($191|0)!=(0);
  28391. if (!($192)) {
  28392. HEAP32[$1>>2] = 18;
  28393. break;
  28394. }
  28395. $193 = HEAP32[$3>>2]|0;
  28396. $194 = (_strcmp($193,13451)|0);
  28397. $195 = ($194|0)!=(0);
  28398. if (!($195)) {
  28399. HEAP32[$1>>2] = 19;
  28400. break;
  28401. }
  28402. $196 = HEAP32[$3>>2]|0;
  28403. $197 = (_strcmp($196,13464)|0);
  28404. $198 = ($197|0)!=(0);
  28405. if (!($198)) {
  28406. HEAP32[$1>>2] = 20;
  28407. break;
  28408. }
  28409. $199 = HEAP32[$3>>2]|0;
  28410. $200 = (_strcmp($199,13477)|0);
  28411. $201 = ($200|0)!=(0);
  28412. if (!($201)) {
  28413. HEAP32[$1>>2] = 21;
  28414. break;
  28415. }
  28416. $202 = HEAP32[$3>>2]|0;
  28417. $203 = (_strcmp($202,13490)|0);
  28418. $204 = ($203|0)!=(0);
  28419. if (!($204)) {
  28420. HEAP32[$1>>2] = 5;
  28421. break;
  28422. }
  28423. $205 = HEAP32[$3>>2]|0;
  28424. $206 = (_strcmp($205,13509)|0);
  28425. $207 = ($206|0)!=(0);
  28426. if (!($207)) {
  28427. HEAP32[$1>>2] = 6;
  28428. break;
  28429. }
  28430. $208 = HEAP32[$3>>2]|0;
  28431. $209 = (_strcmp($208,13528)|0);
  28432. $210 = ($209|0)!=(0);
  28433. if (!($210)) {
  28434. HEAP32[$1>>2] = 7;
  28435. break;
  28436. }
  28437. $211 = HEAP32[$3>>2]|0;
  28438. $212 = (_strcmp($211,13547)|0);
  28439. $213 = ($212|0)!=(0);
  28440. if (!($213)) {
  28441. HEAP32[$1>>2] = 19;
  28442. break;
  28443. }
  28444. $214 = HEAP32[$3>>2]|0;
  28445. $215 = (_strcmp($214,13560)|0);
  28446. $216 = ($215|0)!=(0);
  28447. if (!($216)) {
  28448. HEAP32[$1>>2] = 20;
  28449. break;
  28450. }
  28451. $217 = HEAP32[$3>>2]|0;
  28452. $218 = (_strcmp($217,13578)|0);
  28453. $219 = ($218|0)!=(0);
  28454. if (!($219)) {
  28455. HEAP32[$1>>2] = 21;
  28456. break;
  28457. }
  28458. $220 = HEAP32[$3>>2]|0;
  28459. $221 = (_strcmp($220,13596)|0);
  28460. $222 = ($221|0)!=(0);
  28461. if (!($222)) {
  28462. HEAP32[$1>>2] = 22;
  28463. break;
  28464. }
  28465. $223 = HEAP32[$3>>2]|0;
  28466. $224 = (_strcmp($223,13614)|0);
  28467. $225 = ($224|0)!=(0);
  28468. if (!($225)) {
  28469. HEAP32[$1>>2] = 23;
  28470. break;
  28471. }
  28472. $226 = HEAP32[$3>>2]|0;
  28473. $227 = (_strcmp($226,13632)|0);
  28474. $228 = ($227|0)!=(0);
  28475. if (!($228)) {
  28476. HEAP32[$1>>2] = 2;
  28477. break;
  28478. }
  28479. $229 = HEAP32[$3>>2]|0;
  28480. $230 = (_strcmp($229,13652)|0);
  28481. $231 = ($230|0)!=(0);
  28482. if (!($231)) {
  28483. HEAP32[$1>>2] = 3;
  28484. break;
  28485. }
  28486. $232 = HEAP32[$3>>2]|0;
  28487. $233 = (_strcmp($232,12593)|0);
  28488. $234 = ($233|0)!=(0);
  28489. if (!($234)) {
  28490. HEAP32[$1>>2] = 7;
  28491. break;
  28492. }
  28493. $235 = HEAP32[$3>>2]|0;
  28494. $236 = (_strcmp($235,13670)|0);
  28495. $237 = ($236|0)!=(0);
  28496. if (!($237)) {
  28497. HEAP32[$1>>2] = 1;
  28498. break;
  28499. }
  28500. $238 = HEAP32[$3>>2]|0;
  28501. $239 = (_strcmp($238,13685)|0);
  28502. $240 = ($239|0)!=(0);
  28503. if (!($240)) {
  28504. HEAP32[$1>>2] = 8;
  28505. break;
  28506. }
  28507. $241 = HEAP32[$3>>2]|0;
  28508. $242 = (_strcmp($241,13706)|0);
  28509. $243 = ($242|0)!=(0);
  28510. if (!($243)) {
  28511. HEAP32[$1>>2] = 9;
  28512. break;
  28513. }
  28514. $244 = HEAP32[$3>>2]|0;
  28515. $245 = (_strcmp($244,13721)|0);
  28516. $246 = ($245|0)!=(0);
  28517. if (!($246)) {
  28518. HEAP32[$1>>2] = 10;
  28519. break;
  28520. }
  28521. $247 = HEAP32[$3>>2]|0;
  28522. $248 = (_strcmp($247,13739)|0);
  28523. $249 = ($248|0)!=(0);
  28524. if (!($249)) {
  28525. HEAP32[$1>>2] = 2;
  28526. break;
  28527. }
  28528. $250 = HEAP32[$3>>2]|0;
  28529. $251 = (_strcmp($250,13755)|0);
  28530. $252 = ($251|0)!=(0);
  28531. if (!($252)) {
  28532. HEAP32[$1>>2] = 11;
  28533. break;
  28534. }
  28535. $253 = HEAP32[$3>>2]|0;
  28536. $254 = (_strcmp($253,13774)|0);
  28537. $255 = ($254|0)!=(0);
  28538. if (!($255)) {
  28539. HEAP32[$1>>2] = 22;
  28540. break;
  28541. }
  28542. $256 = HEAP32[$3>>2]|0;
  28543. $257 = (_strcmp($256,13788)|0);
  28544. $258 = ($257|0)!=(0);
  28545. if (!($258)) {
  28546. HEAP32[$1>>2] = 23;
  28547. break;
  28548. }
  28549. $259 = HEAP32[$3>>2]|0;
  28550. $260 = (_strcmp($259,13803)|0);
  28551. $261 = ($260|0)!=(0);
  28552. if (!($261)) {
  28553. HEAP32[$1>>2] = 8;
  28554. break;
  28555. }
  28556. $262 = HEAP32[$3>>2]|0;
  28557. $263 = (_strcmp($262,12524)|0);
  28558. $264 = ($263|0)!=(0);
  28559. if (!($264)) {
  28560. HEAP32[$1>>2] = 1;
  28561. break;
  28562. }
  28563. $265 = HEAP32[$3>>2]|0;
  28564. $266 = (_strcmp($265,13814)|0);
  28565. $267 = ($266|0)!=(0);
  28566. if (!($267)) {
  28567. HEAP32[$1>>2] = 3;
  28568. break;
  28569. }
  28570. $268 = HEAP32[$3>>2]|0;
  28571. $269 = (_strcmp($268,12623)|0);
  28572. $270 = ($269|0)!=(0);
  28573. if (!($270)) {
  28574. HEAP32[$1>>2] = 24;
  28575. break;
  28576. }
  28577. $271 = HEAP32[$3>>2]|0;
  28578. $272 = (_strcmp($271,12653)|0);
  28579. $273 = ($272|0)!=(0);
  28580. if (!($273)) {
  28581. HEAP32[$1>>2] = 25;
  28582. break;
  28583. }
  28584. $274 = HEAP32[$3>>2]|0;
  28585. $275 = (_strcmp($274,13830)|0);
  28586. $276 = ($275|0)!=(0);
  28587. if (!($276)) {
  28588. HEAP32[$1>>2] = 12;
  28589. break;
  28590. }
  28591. $277 = HEAP32[$3>>2]|0;
  28592. $278 = (_strcmp($277,13857)|0);
  28593. $279 = ($278|0)!=(0);
  28594. if (!($279)) {
  28595. HEAP32[$1>>2] = 4;
  28596. break;
  28597. }
  28598. $280 = HEAP32[$3>>2]|0;
  28599. $281 = (_strcmp($280,13871)|0);
  28600. $282 = ($281|0)!=(0);
  28601. if (!($282)) {
  28602. HEAP32[$1>>2] = 13;
  28603. break;
  28604. }
  28605. $283 = HEAP32[$3>>2]|0;
  28606. $284 = (_strcmp($283,12559)|0);
  28607. $285 = ($284|0)!=(0);
  28608. if (!($285)) {
  28609. HEAP32[$1>>2] = 5;
  28610. break;
  28611. }
  28612. $286 = HEAP32[$3>>2]|0;
  28613. $287 = (_strcmp($286,13891)|0);
  28614. $288 = ($287|0)!=(0);
  28615. if (!($288)) {
  28616. HEAP32[$1>>2] = 6;
  28617. break;
  28618. }
  28619. $289 = HEAP32[$3>>2]|0;
  28620. $290 = (_strcmp($289,13909)|0);
  28621. $291 = ($290|0)!=(0);
  28622. if (!($291)) {
  28623. HEAP32[$1>>2] = 9;
  28624. break;
  28625. }
  28626. $292 = HEAP32[$3>>2]|0;
  28627. $293 = (_strcmp($292,13921)|0);
  28628. $294 = ($293|0)!=(0);
  28629. if (!($294)) {
  28630. HEAP32[$1>>2] = 24;
  28631. break;
  28632. }
  28633. $295 = HEAP32[$3>>2]|0;
  28634. $296 = (_strcmp($295,13942)|0);
  28635. $297 = ($296|0)!=(0);
  28636. if (!($297)) {
  28637. HEAP32[$1>>2] = 26;
  28638. break;
  28639. }
  28640. $298 = HEAP32[$3>>2]|0;
  28641. $299 = (_strcmp($298,13960)|0);
  28642. $300 = ($299|0)!=(0);
  28643. if (!($300)) {
  28644. HEAP32[$1>>2] = 27;
  28645. break;
  28646. }
  28647. $301 = HEAP32[$3>>2]|0;
  28648. $302 = (_strcmp($301,13978)|0);
  28649. $303 = ($302|0)!=(0);
  28650. if (!($303)) {
  28651. HEAP32[$1>>2] = 28;
  28652. break;
  28653. }
  28654. $304 = HEAP32[$3>>2]|0;
  28655. $305 = (_strcmp($304,13999)|0);
  28656. $306 = ($305|0)!=(0);
  28657. if (!($306)) {
  28658. HEAP32[$1>>2] = 14;
  28659. break;
  28660. }
  28661. $307 = HEAP32[$3>>2]|0;
  28662. $308 = (_strcmp($307,14025)|0);
  28663. $309 = ($308|0)!=(0);
  28664. if (!($309)) {
  28665. HEAP32[$1>>2] = 3;
  28666. break;
  28667. }
  28668. $310 = HEAP32[$3>>2]|0;
  28669. $311 = (_strcmp($310,14048)|0);
  28670. $312 = ($311|0)!=(0);
  28671. if (!($312)) {
  28672. HEAP32[$1>>2] = 15;
  28673. break;
  28674. }
  28675. $313 = HEAP32[$3>>2]|0;
  28676. $314 = (_strcmp($313,14086)|0);
  28677. $315 = ($314|0)!=(0);
  28678. if (!($315)) {
  28679. HEAP32[$1>>2] = 10;
  28680. break;
  28681. }
  28682. $316 = HEAP32[$3>>2]|0;
  28683. $317 = (_strcmp($316,14102)|0);
  28684. $318 = ($317|0)!=(0);
  28685. if (!($318)) {
  28686. HEAP32[$1>>2] = 7;
  28687. break;
  28688. }
  28689. $319 = HEAP32[$3>>2]|0;
  28690. $320 = (_strcmp($319,14117)|0);
  28691. $321 = ($320|0)!=(0);
  28692. if (!($321)) {
  28693. HEAP32[$1>>2] = 25;
  28694. break;
  28695. }
  28696. $322 = HEAP32[$3>>2]|0;
  28697. $323 = (_strcmp($322,14140)|0);
  28698. $324 = ($323|0)!=(0);
  28699. if (!($324)) {
  28700. HEAP32[$1>>2] = 16;
  28701. break;
  28702. }
  28703. $325 = HEAP32[$3>>2]|0;
  28704. $326 = (_strcmp($325,14153)|0);
  28705. $327 = ($326|0)!=(0);
  28706. if (!($327)) {
  28707. HEAP32[$1>>2] = 29;
  28708. break;
  28709. }
  28710. $328 = HEAP32[$3>>2]|0;
  28711. $329 = (_strcmp($328,14167)|0);
  28712. $330 = ($329|0)!=(0);
  28713. if (!($330)) {
  28714. HEAP32[$1>>2] = 30;
  28715. break;
  28716. }
  28717. $331 = HEAP32[$3>>2]|0;
  28718. $332 = (_strcmp($331,14181)|0);
  28719. $333 = ($332|0)!=(0);
  28720. if (!($333)) {
  28721. HEAP32[$1>>2] = 1;
  28722. break;
  28723. }
  28724. $334 = HEAP32[$3>>2]|0;
  28725. $335 = (_strcmp($334,14201)|0);
  28726. $336 = ($335|0)!=(0);
  28727. if (!($336)) {
  28728. HEAP32[$1>>2] = 8;
  28729. break;
  28730. }
  28731. $337 = HEAP32[$3>>2]|0;
  28732. $338 = (_strcmp($337,14221)|0);
  28733. $339 = ($338|0)!=(0);
  28734. if (!($339)) {
  28735. HEAP32[$1>>2] = 17;
  28736. break;
  28737. }
  28738. $340 = HEAP32[$3>>2]|0;
  28739. $341 = (_strcmp($340,14237)|0);
  28740. $342 = ($341|0)!=(0);
  28741. if (!($342)) {
  28742. HEAP32[$1>>2] = 18;
  28743. break;
  28744. }
  28745. $343 = HEAP32[$3>>2]|0;
  28746. $344 = (_strcmp($343,14255)|0);
  28747. $345 = ($344|0)!=(0);
  28748. if (!($345)) {
  28749. HEAP32[$1>>2] = 26;
  28750. break;
  28751. }
  28752. $346 = HEAP32[$3>>2]|0;
  28753. $347 = (_strcmp($346,14271)|0);
  28754. $348 = ($347|0)!=(0);
  28755. if (!($348)) {
  28756. HEAP32[$1>>2] = 19;
  28757. break;
  28758. }
  28759. $349 = HEAP32[$3>>2]|0;
  28760. $350 = (_strcmp($349,14286)|0);
  28761. $351 = ($350|0)!=(0);
  28762. if (!($351)) {
  28763. HEAP32[$1>>2] = 9;
  28764. break;
  28765. }
  28766. $352 = HEAP32[$3>>2]|0;
  28767. $353 = (_strcmp($352,14308)|0);
  28768. $354 = ($353|0)!=(0);
  28769. if (!($354)) {
  28770. HEAP32[$1>>2] = 31;
  28771. break;
  28772. }
  28773. $355 = HEAP32[$3>>2]|0;
  28774. $356 = (_strcmp($355,14326)|0);
  28775. $357 = ($356|0)!=(0);
  28776. if (!($357)) {
  28777. HEAP32[$1>>2] = 32;
  28778. break;
  28779. }
  28780. $358 = HEAP32[$3>>2]|0;
  28781. $359 = (_strcmp($358,14347)|0);
  28782. $360 = ($359|0)!=(0);
  28783. if (!($360)) {
  28784. HEAP32[$1>>2] = 10;
  28785. break;
  28786. }
  28787. $361 = HEAP32[$3>>2]|0;
  28788. $362 = (_strcmp($361,14365)|0);
  28789. $363 = ($362|0)!=(0);
  28790. if (!($363)) {
  28791. HEAP32[$1>>2] = 11;
  28792. break;
  28793. }
  28794. $364 = HEAP32[$3>>2]|0;
  28795. $365 = (_strcmp($364,14378)|0);
  28796. $366 = ($365|0)!=(0);
  28797. if (!($366)) {
  28798. HEAP32[$1>>2] = 2;
  28799. break;
  28800. }
  28801. $367 = HEAP32[$3>>2]|0;
  28802. $368 = (_strcmp($367,14393)|0);
  28803. $369 = ($368|0)!=(0);
  28804. if (!($369)) {
  28805. HEAP32[$1>>2] = 12;
  28806. break;
  28807. }
  28808. $370 = HEAP32[$3>>2]|0;
  28809. $371 = (_strcmp($370,14407)|0);
  28810. $372 = ($371|0)!=(0);
  28811. if (!($372)) {
  28812. HEAP32[$1>>2] = 1;
  28813. break;
  28814. }
  28815. $373 = HEAP32[$3>>2]|0;
  28816. $374 = (_strcmp($373,14417)|0);
  28817. $375 = ($374|0)!=(0);
  28818. if (!($375)) {
  28819. HEAP32[$1>>2] = 1;
  28820. break;
  28821. }
  28822. $376 = HEAP32[$3>>2]|0;
  28823. $377 = (_strcmp($376,14427)|0);
  28824. $378 = ($377|0)!=(0);
  28825. if (!($378)) {
  28826. HEAP32[$1>>2] = 2;
  28827. break;
  28828. }
  28829. $379 = HEAP32[$3>>2]|0;
  28830. $380 = (_strcmp($379,14449)|0);
  28831. $381 = ($380|0)!=(0);
  28832. if (!($381)) {
  28833. HEAP32[$1>>2] = 13;
  28834. break;
  28835. }
  28836. $382 = HEAP32[$3>>2]|0;
  28837. $383 = (_strcmp($382,14475)|0);
  28838. $384 = ($383|0)!=(0);
  28839. if (!($384)) {
  28840. HEAP32[$1>>2] = 14;
  28841. break;
  28842. }
  28843. $385 = HEAP32[$3>>2]|0;
  28844. $386 = (_strcmp($385,14502)|0);
  28845. $387 = ($386|0)!=(0);
  28846. if (!($387)) {
  28847. HEAP32[$1>>2] = 27;
  28848. break;
  28849. }
  28850. $388 = HEAP32[$3>>2]|0;
  28851. $389 = (_strcmp($388,14515)|0);
  28852. $390 = ($389|0)!=(0);
  28853. if (!($390)) {
  28854. HEAP32[$1>>2] = 20;
  28855. break;
  28856. }
  28857. $391 = HEAP32[$3>>2]|0;
  28858. $392 = (_strcmp($391,14530)|0);
  28859. $393 = ($392|0)!=(0);
  28860. if (!($393)) {
  28861. HEAP32[$1>>2] = 4;
  28862. break;
  28863. }
  28864. $394 = HEAP32[$3>>2]|0;
  28865. $395 = (_strcmp($394,14545)|0);
  28866. $396 = ($395|0)!=(0);
  28867. if (!($396)) {
  28868. HEAP32[$1>>2] = 3;
  28869. break;
  28870. }
  28871. $397 = HEAP32[$3>>2]|0;
  28872. $398 = (_strcmp($397,14569)|0);
  28873. $399 = ($398|0)!=(0);
  28874. if (!($399)) {
  28875. HEAP32[$1>>2] = 2;
  28876. break;
  28877. }
  28878. $400 = HEAP32[$3>>2]|0;
  28879. $401 = (_strcmp($400,14580)|0);
  28880. $402 = ($401|0)!=(0);
  28881. if (!($402)) {
  28882. HEAP32[$1>>2] = 33;
  28883. break;
  28884. }
  28885. $403 = HEAP32[$3>>2]|0;
  28886. $404 = (_strcmp($403,14602)|0);
  28887. $405 = ($404|0)!=(0);
  28888. if (!($405)) {
  28889. HEAP32[$1>>2] = 21;
  28890. break;
  28891. }
  28892. $406 = HEAP32[$3>>2]|0;
  28893. $407 = (_strcmp($406,14624)|0);
  28894. $408 = ($407|0)!=(0);
  28895. if (!($408)) {
  28896. HEAP32[$1>>2] = 5;
  28897. break;
  28898. }
  28899. $409 = HEAP32[$3>>2]|0;
  28900. $410 = (_strcmp($409,14648)|0);
  28901. $411 = ($410|0)!=(0);
  28902. if (!($411)) {
  28903. HEAP32[$1>>2] = 4;
  28904. break;
  28905. }
  28906. $412 = HEAP32[$3>>2]|0;
  28907. $413 = (_strcmp($412,14657)|0);
  28908. $414 = ($413|0)!=(0);
  28909. if (!($414)) {
  28910. HEAP32[$1>>2] = 5;
  28911. break;
  28912. }
  28913. $415 = HEAP32[$3>>2]|0;
  28914. $416 = (_strcmp($415,14665)|0);
  28915. $417 = ($416|0)!=(0);
  28916. if (!($417)) {
  28917. HEAP32[$1>>2] = 1;
  28918. break;
  28919. }
  28920. $418 = HEAP32[$3>>2]|0;
  28921. $419 = (_strcmp($418,14678)|0);
  28922. $420 = ($419|0)!=(0);
  28923. if (!($420)) {
  28924. HEAP32[$1>>2] = 2;
  28925. break;
  28926. }
  28927. $421 = HEAP32[$3>>2]|0;
  28928. $422 = (_strcmp($421,14692)|0);
  28929. $423 = ($422|0)!=(0);
  28930. if (!($423)) {
  28931. HEAP32[$1>>2] = 15;
  28932. break;
  28933. }
  28934. $424 = HEAP32[$3>>2]|0;
  28935. $425 = (_strcmp($424,14704)|0);
  28936. $426 = ($425|0)!=(0);
  28937. if (!($426)) {
  28938. HEAP32[$1>>2] = 16;
  28939. break;
  28940. }
  28941. $427 = HEAP32[$3>>2]|0;
  28942. $428 = (_strcmp($427,14713)|0);
  28943. $429 = ($428|0)!=(0);
  28944. if (!($429)) {
  28945. HEAP32[$1>>2] = 17;
  28946. break;
  28947. }
  28948. $430 = HEAP32[$3>>2]|0;
  28949. $431 = (_strcmp($430,14723)|0);
  28950. $432 = ($431|0)!=(0);
  28951. if (!($432)) {
  28952. HEAP32[$1>>2] = 18;
  28953. break;
  28954. }
  28955. $433 = HEAP32[$3>>2]|0;
  28956. $434 = (_strcmp($433,14735)|0);
  28957. $435 = ($434|0)!=(0);
  28958. if (!($435)) {
  28959. HEAP32[$1>>2] = 19;
  28960. break;
  28961. }
  28962. $436 = HEAP32[$3>>2]|0;
  28963. $437 = (_strcmp($436,14746)|0);
  28964. $438 = ($437|0)!=(0);
  28965. if (!($438)) {
  28966. HEAP32[$1>>2] = 20;
  28967. break;
  28968. }
  28969. $439 = HEAP32[$3>>2]|0;
  28970. $440 = (_strcmp($439,14754)|0);
  28971. $441 = ($440|0)!=(0);
  28972. if (!($441)) {
  28973. HEAP32[$1>>2] = 3;
  28974. break;
  28975. }
  28976. $442 = HEAP32[$3>>2]|0;
  28977. $443 = (_strcmp($442,14766)|0);
  28978. $444 = ($443|0)!=(0);
  28979. if (!($444)) {
  28980. HEAP32[$1>>2] = 21;
  28981. break;
  28982. }
  28983. $445 = HEAP32[$3>>2]|0;
  28984. $446 = (_strcmp($445,14781)|0);
  28985. $447 = ($446|0)!=(0);
  28986. if (!($447)) {
  28987. HEAP32[$1>>2] = 22;
  28988. break;
  28989. }
  28990. $448 = HEAP32[$3>>2]|0;
  28991. $449 = (_strcmp($448,14793)|0);
  28992. $450 = ($449|0)!=(0);
  28993. if (!($450)) {
  28994. HEAP32[$1>>2] = 23;
  28995. break;
  28996. }
  28997. $451 = HEAP32[$3>>2]|0;
  28998. $452 = (_strcmp($451,14807)|0);
  28999. $453 = ($452|0)!=(0);
  29000. if (!($453)) {
  29001. HEAP32[$1>>2] = 11;
  29002. break;
  29003. }
  29004. $454 = HEAP32[$3>>2]|0;
  29005. $455 = (_strcmp($454,14832)|0);
  29006. $456 = ($455|0)!=(0);
  29007. if (!($456)) {
  29008. HEAP32[$1>>2] = 24;
  29009. break;
  29010. }
  29011. $457 = HEAP32[$3>>2]|0;
  29012. $458 = (_strcmp($457,14849)|0);
  29013. $459 = ($458|0)!=(0);
  29014. if (!($459)) {
  29015. HEAP32[$1>>2] = 25;
  29016. break;
  29017. }
  29018. $460 = HEAP32[$3>>2]|0;
  29019. $461 = (_strcmp($460,14865)|0);
  29020. $462 = ($461|0)!=(0);
  29021. if (!($462)) {
  29022. HEAP32[$1>>2] = 26;
  29023. break;
  29024. }
  29025. $463 = HEAP32[$3>>2]|0;
  29026. $464 = (_strcmp($463,14881)|0);
  29027. $465 = ($464|0)!=(0);
  29028. if (!($465)) {
  29029. HEAP32[$1>>2] = 12;
  29030. break;
  29031. }
  29032. $466 = HEAP32[$3>>2]|0;
  29033. $467 = (_strcmp($466,14893)|0);
  29034. $468 = ($467|0)!=(0);
  29035. if (!($468)) {
  29036. HEAP32[$1>>2] = 34;
  29037. break;
  29038. }
  29039. $469 = HEAP32[$3>>2]|0;
  29040. $470 = (_strcmp($469,14905)|0);
  29041. $471 = ($470|0)!=(0);
  29042. if (!($471)) {
  29043. HEAP32[$1>>2] = 35;
  29044. break;
  29045. }
  29046. $472 = HEAP32[$3>>2]|0;
  29047. $473 = (_strcmp($472,14929)|0);
  29048. $474 = ($473|0)!=(0);
  29049. if (!($474)) {
  29050. HEAP32[$1>>2] = 1;
  29051. break;
  29052. }
  29053. $475 = HEAP32[$3>>2]|0;
  29054. $476 = (_strcmp($475,14942)|0);
  29055. $477 = ($476|0)!=(0);
  29056. if (!($477)) {
  29057. HEAP32[$1>>2] = 2;
  29058. break;
  29059. }
  29060. $478 = HEAP32[$3>>2]|0;
  29061. $479 = (_strcmp($478,14956)|0);
  29062. $480 = ($479|0)!=(0);
  29063. if (!($480)) {
  29064. HEAP32[$1>>2] = 36;
  29065. break;
  29066. }
  29067. $481 = HEAP32[$3>>2]|0;
  29068. $482 = (_strcmp($481,14978)|0);
  29069. $483 = ($482|0)!=(0);
  29070. if (!($483)) {
  29071. HEAP32[$1>>2] = 37;
  29072. break;
  29073. }
  29074. $484 = HEAP32[$3>>2]|0;
  29075. $485 = (_strcmp($484,14985)|0);
  29076. $486 = ($485|0)!=(0);
  29077. if (!($486)) {
  29078. HEAP32[$1>>2] = 3;
  29079. break;
  29080. }
  29081. $487 = HEAP32[$3>>2]|0;
  29082. $488 = (_strcmp($487,15001)|0);
  29083. $489 = ($488|0)!=(0);
  29084. if (!($489)) {
  29085. HEAP32[$1>>2] = 2;
  29086. break;
  29087. }
  29088. $490 = HEAP32[$3>>2]|0;
  29089. $491 = (_strcmp($490,15018)|0);
  29090. $492 = ($491|0)!=(0);
  29091. if (!($492)) {
  29092. HEAP32[$1>>2] = 1;
  29093. break;
  29094. }
  29095. $493 = HEAP32[$3>>2]|0;
  29096. $494 = (_strcmp($493,15035)|0);
  29097. $495 = ($494|0)!=(0);
  29098. if (!($495)) {
  29099. HEAP32[$1>>2] = 28;
  29100. break;
  29101. }
  29102. $496 = HEAP32[$3>>2]|0;
  29103. $497 = (_strcmp($496,15051)|0);
  29104. $498 = ($497|0)!=(0);
  29105. if (!($498)) {
  29106. HEAP32[$1>>2] = 1;
  29107. break;
  29108. }
  29109. $499 = HEAP32[$3>>2]|0;
  29110. $500 = (_strcmp($499,15067)|0);
  29111. $501 = ($500|0)!=(0);
  29112. if (!($501)) {
  29113. HEAP32[$1>>2] = 4;
  29114. break;
  29115. }
  29116. $502 = HEAP32[$3>>2]|0;
  29117. $503 = (_strcmp($502,15084)|0);
  29118. $504 = ($503|0)!=(0);
  29119. if (!($504)) {
  29120. HEAP32[$1>>2] = 29;
  29121. break;
  29122. }
  29123. $505 = HEAP32[$3>>2]|0;
  29124. $506 = (_strcmp($505,15098)|0);
  29125. $507 = ($506|0)!=(0);
  29126. if (!($507)) {
  29127. HEAP32[$1>>2] = 30;
  29128. break;
  29129. }
  29130. $508 = HEAP32[$3>>2]|0;
  29131. $509 = (_strcmp($508,15110)|0);
  29132. $510 = ($509|0)!=(0);
  29133. if (!($510)) {
  29134. HEAP32[$1>>2] = 22;
  29135. break;
  29136. }
  29137. $511 = HEAP32[$3>>2]|0;
  29138. $512 = (_strcmp($511,15121)|0);
  29139. $513 = ($512|0)!=(0);
  29140. if (!($513)) {
  29141. HEAP32[$1>>2] = 2;
  29142. break;
  29143. }
  29144. $514 = HEAP32[$3>>2]|0;
  29145. $515 = (_strcmp($514,15134)|0);
  29146. $516 = ($515|0)!=(0);
  29147. if (!($516)) {
  29148. HEAP32[$1>>2] = 23;
  29149. break;
  29150. }
  29151. $517 = HEAP32[$3>>2]|0;
  29152. $518 = (_strcmp($517,15144)|0);
  29153. $519 = ($518|0)!=(0);
  29154. if (!($519)) {
  29155. HEAP32[$1>>2] = 2;
  29156. break;
  29157. }
  29158. $520 = HEAP32[$3>>2]|0;
  29159. $521 = (_strcmp($520,15161)|0);
  29160. $522 = ($521|0)!=(0);
  29161. if (!($522)) {
  29162. HEAP32[$1>>2] = 24;
  29163. break;
  29164. }
  29165. $523 = HEAP32[$3>>2]|0;
  29166. $524 = (_strcmp($523,15173)|0);
  29167. $525 = ($524|0)!=(0);
  29168. if (!($525)) {
  29169. HEAP32[$1>>2] = 25;
  29170. break;
  29171. }
  29172. $526 = HEAP32[$3>>2]|0;
  29173. $527 = (_strcmp($526,15195)|0);
  29174. $528 = ($527|0)!=(0);
  29175. if (!($528)) {
  29176. HEAP32[$1>>2] = 26;
  29177. break;
  29178. }
  29179. $529 = HEAP32[$3>>2]|0;
  29180. $530 = (_strcmp($529,15215)|0);
  29181. $531 = ($530|0)!=(0);
  29182. if (!($531)) {
  29183. HEAP32[$1>>2] = 3;
  29184. break;
  29185. }
  29186. $532 = HEAP32[$3>>2]|0;
  29187. $533 = (_strcmp($532,15228)|0);
  29188. $534 = ($533|0)!=(0);
  29189. if (!($534)) {
  29190. HEAP32[$1>>2] = 27;
  29191. break;
  29192. }
  29193. $535 = HEAP32[$3>>2]|0;
  29194. $536 = (_strcmp($535,15250)|0);
  29195. $537 = ($536|0)!=(0);
  29196. if (!($537)) {
  29197. HEAP32[$1>>2] = 28;
  29198. break;
  29199. }
  29200. $538 = HEAP32[$3>>2]|0;
  29201. $539 = (_strcmp($538,15270)|0);
  29202. $540 = ($539|0)!=(0);
  29203. if (!($540)) {
  29204. HEAP32[$1>>2] = 2;
  29205. break;
  29206. }
  29207. $541 = HEAP32[$3>>2]|0;
  29208. $542 = (_strcmp($541,15287)|0);
  29209. $543 = ($542|0)!=(0);
  29210. if (!($543)) {
  29211. HEAP32[$1>>2] = 2;
  29212. break;
  29213. }
  29214. $544 = HEAP32[$3>>2]|0;
  29215. $545 = (_strcmp($544,15304)|0);
  29216. $546 = ($545|0)!=(0);
  29217. if (!($546)) {
  29218. HEAP32[$1>>2] = 3;
  29219. break;
  29220. }
  29221. $547 = HEAP32[$3>>2]|0;
  29222. $548 = (_strcmp($547,15324)|0);
  29223. $549 = ($548|0)!=(0);
  29224. if ($549) {
  29225. $550 = HEAP32[$2>>2]|0;
  29226. $551 = HEAP32[$3>>2]|0;
  29227. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  29228. HEAP32[$1>>2] = 0;
  29229. break;
  29230. } else {
  29231. HEAP32[$1>>2] = 38;
  29232. break;
  29233. }
  29234. } else {
  29235. HEAP32[$1>>2] = 6;
  29236. }
  29237. } while(0);
  29238. $553 = HEAP32[$1>>2]|0;
  29239. STACKTOP = sp;return ($553|0);
  29240. }
  29241. function _emscripten_get_global_libc() {
  29242. var label = 0, sp = 0;
  29243. sp = STACKTOP;
  29244. return (21100|0);
  29245. }
  29246. function ___stdio_close($0) {
  29247. $0 = $0|0;
  29248. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  29249. sp = STACKTOP;
  29250. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29251. $vararg_buffer = sp;
  29252. $1 = ((($0)) + 60|0);
  29253. $2 = HEAP32[$1>>2]|0;
  29254. $3 = (_dummy_738($2)|0);
  29255. HEAP32[$vararg_buffer>>2] = $3;
  29256. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  29257. $5 = (___syscall_ret($4)|0);
  29258. STACKTOP = sp;return ($5|0);
  29259. }
  29260. function ___stdio_write($0,$1,$2) {
  29261. $0 = $0|0;
  29262. $1 = $1|0;
  29263. $2 = $2|0;
  29264. 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;
  29265. 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;
  29266. 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;
  29267. var $vararg_ptr7 = 0, label = 0, sp = 0;
  29268. sp = STACKTOP;
  29269. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  29270. $vararg_buffer3 = sp + 16|0;
  29271. $vararg_buffer = sp;
  29272. $3 = sp + 32|0;
  29273. $4 = ((($0)) + 28|0);
  29274. $5 = HEAP32[$4>>2]|0;
  29275. HEAP32[$3>>2] = $5;
  29276. $6 = ((($3)) + 4|0);
  29277. $7 = ((($0)) + 20|0);
  29278. $8 = HEAP32[$7>>2]|0;
  29279. $9 = (($8) - ($5))|0;
  29280. HEAP32[$6>>2] = $9;
  29281. $10 = ((($3)) + 8|0);
  29282. HEAP32[$10>>2] = $1;
  29283. $11 = ((($3)) + 12|0);
  29284. HEAP32[$11>>2] = $2;
  29285. $12 = (($9) + ($2))|0;
  29286. $13 = ((($0)) + 60|0);
  29287. $14 = HEAP32[$13>>2]|0;
  29288. $15 = $3;
  29289. HEAP32[$vararg_buffer>>2] = $14;
  29290. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29291. HEAP32[$vararg_ptr1>>2] = $15;
  29292. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29293. HEAP32[$vararg_ptr2>>2] = 2;
  29294. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  29295. $17 = (___syscall_ret($16)|0);
  29296. $18 = ($12|0)==($17|0);
  29297. L1: do {
  29298. if ($18) {
  29299. label = 3;
  29300. } else {
  29301. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  29302. while(1) {
  29303. $25 = ($26|0)<(0);
  29304. if ($25) {
  29305. break;
  29306. }
  29307. $34 = (($$04855) - ($26))|0;
  29308. $35 = ((($$04954)) + 4|0);
  29309. $36 = HEAP32[$35>>2]|0;
  29310. $37 = ($26>>>0)>($36>>>0);
  29311. $38 = ((($$04954)) + 8|0);
  29312. $$150 = $37 ? $38 : $$04954;
  29313. $39 = $37 << 31 >> 31;
  29314. $$1 = (($39) + ($$04756))|0;
  29315. $40 = $37 ? $36 : 0;
  29316. $$0 = (($26) - ($40))|0;
  29317. $41 = HEAP32[$$150>>2]|0;
  29318. $42 = (($41) + ($$0)|0);
  29319. HEAP32[$$150>>2] = $42;
  29320. $43 = ((($$150)) + 4|0);
  29321. $44 = HEAP32[$43>>2]|0;
  29322. $45 = (($44) - ($$0))|0;
  29323. HEAP32[$43>>2] = $45;
  29324. $46 = HEAP32[$13>>2]|0;
  29325. $47 = $$150;
  29326. HEAP32[$vararg_buffer3>>2] = $46;
  29327. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  29328. HEAP32[$vararg_ptr6>>2] = $47;
  29329. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  29330. HEAP32[$vararg_ptr7>>2] = $$1;
  29331. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  29332. $49 = (___syscall_ret($48)|0);
  29333. $50 = ($34|0)==($49|0);
  29334. if ($50) {
  29335. label = 3;
  29336. break L1;
  29337. } else {
  29338. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  29339. }
  29340. }
  29341. $27 = ((($0)) + 16|0);
  29342. HEAP32[$27>>2] = 0;
  29343. HEAP32[$4>>2] = 0;
  29344. HEAP32[$7>>2] = 0;
  29345. $28 = HEAP32[$0>>2]|0;
  29346. $29 = $28 | 32;
  29347. HEAP32[$0>>2] = $29;
  29348. $30 = ($$04756|0)==(2);
  29349. if ($30) {
  29350. $$051 = 0;
  29351. } else {
  29352. $31 = ((($$04954)) + 4|0);
  29353. $32 = HEAP32[$31>>2]|0;
  29354. $33 = (($2) - ($32))|0;
  29355. $$051 = $33;
  29356. }
  29357. }
  29358. } while(0);
  29359. if ((label|0) == 3) {
  29360. $19 = ((($0)) + 44|0);
  29361. $20 = HEAP32[$19>>2]|0;
  29362. $21 = ((($0)) + 48|0);
  29363. $22 = HEAP32[$21>>2]|0;
  29364. $23 = (($20) + ($22)|0);
  29365. $24 = ((($0)) + 16|0);
  29366. HEAP32[$24>>2] = $23;
  29367. HEAP32[$4>>2] = $20;
  29368. HEAP32[$7>>2] = $20;
  29369. $$051 = $2;
  29370. }
  29371. STACKTOP = sp;return ($$051|0);
  29372. }
  29373. function ___stdio_seek($0,$1,$2) {
  29374. $0 = $0|0;
  29375. $1 = $1|0;
  29376. $2 = $2|0;
  29377. 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;
  29378. sp = STACKTOP;
  29379. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29380. $vararg_buffer = sp;
  29381. $3 = sp + 20|0;
  29382. $4 = ((($0)) + 60|0);
  29383. $5 = HEAP32[$4>>2]|0;
  29384. $6 = $3;
  29385. HEAP32[$vararg_buffer>>2] = $5;
  29386. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29387. HEAP32[$vararg_ptr1>>2] = 0;
  29388. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29389. HEAP32[$vararg_ptr2>>2] = $1;
  29390. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  29391. HEAP32[$vararg_ptr3>>2] = $6;
  29392. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  29393. HEAP32[$vararg_ptr4>>2] = $2;
  29394. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  29395. $8 = (___syscall_ret($7)|0);
  29396. $9 = ($8|0)<(0);
  29397. if ($9) {
  29398. HEAP32[$3>>2] = -1;
  29399. $10 = -1;
  29400. } else {
  29401. $$pre = HEAP32[$3>>2]|0;
  29402. $10 = $$pre;
  29403. }
  29404. STACKTOP = sp;return ($10|0);
  29405. }
  29406. function ___syscall_ret($0) {
  29407. $0 = $0|0;
  29408. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  29409. sp = STACKTOP;
  29410. $1 = ($0>>>0)>(4294963200);
  29411. if ($1) {
  29412. $2 = (0 - ($0))|0;
  29413. $3 = (___errno_location()|0);
  29414. HEAP32[$3>>2] = $2;
  29415. $$0 = -1;
  29416. } else {
  29417. $$0 = $0;
  29418. }
  29419. return ($$0|0);
  29420. }
  29421. function ___errno_location() {
  29422. var $0 = 0, $1 = 0, label = 0, sp = 0;
  29423. sp = STACKTOP;
  29424. $0 = (___pthread_self_108()|0);
  29425. $1 = ((($0)) + 64|0);
  29426. return ($1|0);
  29427. }
  29428. function ___pthread_self_108() {
  29429. var $0 = 0, label = 0, sp = 0;
  29430. sp = STACKTOP;
  29431. $0 = (_pthread_self()|0);
  29432. return ($0|0);
  29433. }
  29434. function _pthread_self() {
  29435. var label = 0, sp = 0;
  29436. sp = STACKTOP;
  29437. return (3908|0);
  29438. }
  29439. function _dummy_738($0) {
  29440. $0 = $0|0;
  29441. var label = 0, sp = 0;
  29442. sp = STACKTOP;
  29443. return ($0|0);
  29444. }
  29445. function ___stdio_read($0,$1,$2) {
  29446. $0 = $0|0;
  29447. $1 = $1|0;
  29448. $2 = $2|0;
  29449. 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;
  29450. 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;
  29451. sp = STACKTOP;
  29452. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29453. $vararg_buffer = sp;
  29454. $3 = sp + 16|0;
  29455. HEAP32[$3>>2] = $1;
  29456. $4 = ((($3)) + 4|0);
  29457. $5 = ((($0)) + 48|0);
  29458. $6 = HEAP32[$5>>2]|0;
  29459. $7 = ($6|0)!=(0);
  29460. $8 = $7&1;
  29461. $9 = (($2) - ($8))|0;
  29462. HEAP32[$4>>2] = $9;
  29463. $10 = ((($3)) + 8|0);
  29464. $11 = ((($0)) + 44|0);
  29465. $12 = HEAP32[$11>>2]|0;
  29466. HEAP32[$10>>2] = $12;
  29467. $13 = ((($3)) + 12|0);
  29468. HEAP32[$13>>2] = $6;
  29469. $14 = ((($0)) + 60|0);
  29470. $15 = HEAP32[$14>>2]|0;
  29471. $16 = $3;
  29472. HEAP32[$vararg_buffer>>2] = $15;
  29473. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29474. HEAP32[$vararg_ptr1>>2] = $16;
  29475. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29476. HEAP32[$vararg_ptr2>>2] = 2;
  29477. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  29478. $18 = (___syscall_ret($17)|0);
  29479. $19 = ($18|0)<(1);
  29480. if ($19) {
  29481. $20 = $18 & 48;
  29482. $21 = $20 ^ 16;
  29483. $22 = HEAP32[$0>>2]|0;
  29484. $23 = $22 | $21;
  29485. HEAP32[$0>>2] = $23;
  29486. $$0 = $18;
  29487. } else {
  29488. $24 = HEAP32[$4>>2]|0;
  29489. $25 = ($18>>>0)>($24>>>0);
  29490. if ($25) {
  29491. $26 = (($18) - ($24))|0;
  29492. $27 = HEAP32[$11>>2]|0;
  29493. $28 = ((($0)) + 4|0);
  29494. HEAP32[$28>>2] = $27;
  29495. $29 = (($27) + ($26)|0);
  29496. $30 = ((($0)) + 8|0);
  29497. HEAP32[$30>>2] = $29;
  29498. $31 = HEAP32[$5>>2]|0;
  29499. $32 = ($31|0)==(0);
  29500. if ($32) {
  29501. $$0 = $2;
  29502. } else {
  29503. $33 = ((($27)) + 1|0);
  29504. HEAP32[$28>>2] = $33;
  29505. $34 = HEAP8[$27>>0]|0;
  29506. $35 = (($2) + -1)|0;
  29507. $36 = (($1) + ($35)|0);
  29508. HEAP8[$36>>0] = $34;
  29509. $$0 = $2;
  29510. }
  29511. } else {
  29512. $$0 = $18;
  29513. }
  29514. }
  29515. STACKTOP = sp;return ($$0|0);
  29516. }
  29517. function ___stdout_write($0,$1,$2) {
  29518. $0 = $0|0;
  29519. $1 = $1|0;
  29520. $2 = $2|0;
  29521. 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;
  29522. sp = STACKTOP;
  29523. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29524. $vararg_buffer = sp;
  29525. $3 = sp + 16|0;
  29526. $4 = ((($0)) + 36|0);
  29527. HEAP32[$4>>2] = 10;
  29528. $5 = HEAP32[$0>>2]|0;
  29529. $6 = $5 & 64;
  29530. $7 = ($6|0)==(0);
  29531. if ($7) {
  29532. $8 = ((($0)) + 60|0);
  29533. $9 = HEAP32[$8>>2]|0;
  29534. $10 = $3;
  29535. HEAP32[$vararg_buffer>>2] = $9;
  29536. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29537. HEAP32[$vararg_ptr1>>2] = 21523;
  29538. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29539. HEAP32[$vararg_ptr2>>2] = $10;
  29540. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  29541. $12 = ($11|0)==(0);
  29542. if (!($12)) {
  29543. $13 = ((($0)) + 75|0);
  29544. HEAP8[$13>>0] = -1;
  29545. }
  29546. }
  29547. $14 = (___stdio_write($0,$1,$2)|0);
  29548. STACKTOP = sp;return ($14|0);
  29549. }
  29550. function ___shlim($0,$1) {
  29551. $0 = $0|0;
  29552. $1 = $1|0;
  29553. 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;
  29554. sp = STACKTOP;
  29555. $2 = ((($0)) + 104|0);
  29556. HEAP32[$2>>2] = $1;
  29557. $3 = ((($0)) + 8|0);
  29558. $4 = HEAP32[$3>>2]|0;
  29559. $5 = ((($0)) + 4|0);
  29560. $6 = HEAP32[$5>>2]|0;
  29561. $7 = $4;
  29562. $8 = $6;
  29563. $9 = (($7) - ($8))|0;
  29564. $10 = ((($0)) + 108|0);
  29565. HEAP32[$10>>2] = $9;
  29566. $11 = ($1|0)!=(0);
  29567. $12 = ($9|0)>($1|0);
  29568. $or$cond = $11 & $12;
  29569. $13 = (($6) + ($1)|0);
  29570. $$sink = $or$cond ? $13 : $4;
  29571. $14 = ((($0)) + 100|0);
  29572. HEAP32[$14>>2] = $$sink;
  29573. return;
  29574. }
  29575. function ___intscan($0,$1,$2,$3,$4) {
  29576. $0 = $0|0;
  29577. $1 = $1|0;
  29578. $2 = $2|0;
  29579. $3 = $3|0;
  29580. $4 = $4|0;
  29581. 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;
  29582. 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;
  29583. 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;
  29584. 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;
  29585. 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;
  29586. 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;
  29587. 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;
  29588. 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;
  29589. 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;
  29590. 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;
  29591. 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;
  29592. 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;
  29593. 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;
  29594. 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;
  29595. 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;
  29596. 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;
  29597. var $or$cond187 = 0, $or$cond5 = 0, $or$cond7 = 0, label = 0, sp = 0;
  29598. sp = STACKTOP;
  29599. $5 = ($1>>>0)>(36);
  29600. L1: do {
  29601. if ($5) {
  29602. $8 = (___errno_location()|0);
  29603. HEAP32[$8>>2] = 22;
  29604. $289 = 0;$290 = 0;
  29605. } else {
  29606. $6 = ((($0)) + 4|0);
  29607. $7 = ((($0)) + 100|0);
  29608. while(1) {
  29609. $9 = HEAP32[$6>>2]|0;
  29610. $10 = HEAP32[$7>>2]|0;
  29611. $11 = ($9>>>0)<($10>>>0);
  29612. if ($11) {
  29613. $12 = ((($9)) + 1|0);
  29614. HEAP32[$6>>2] = $12;
  29615. $13 = HEAP8[$9>>0]|0;
  29616. $14 = $13&255;
  29617. $16 = $14;
  29618. } else {
  29619. $15 = (___shgetc($0)|0);
  29620. $16 = $15;
  29621. }
  29622. $17 = (_isspace($16)|0);
  29623. $18 = ($17|0)==(0);
  29624. if ($18) {
  29625. break;
  29626. }
  29627. }
  29628. L11: do {
  29629. switch ($16|0) {
  29630. case 43: case 45: {
  29631. $19 = ($16|0)==(45);
  29632. $20 = $19 << 31 >> 31;
  29633. $21 = HEAP32[$6>>2]|0;
  29634. $22 = HEAP32[$7>>2]|0;
  29635. $23 = ($21>>>0)<($22>>>0);
  29636. if ($23) {
  29637. $24 = ((($21)) + 1|0);
  29638. HEAP32[$6>>2] = $24;
  29639. $25 = HEAP8[$21>>0]|0;
  29640. $26 = $25&255;
  29641. $$0157 = $20;$$0159 = $26;
  29642. break L11;
  29643. } else {
  29644. $27 = (___shgetc($0)|0);
  29645. $$0157 = $20;$$0159 = $27;
  29646. break L11;
  29647. }
  29648. break;
  29649. }
  29650. default: {
  29651. $$0157 = 0;$$0159 = $16;
  29652. }
  29653. }
  29654. } while(0);
  29655. $28 = ($1|0)==(0);
  29656. $29 = $1 | 16;
  29657. $30 = ($29|0)==(16);
  29658. $31 = ($$0159|0)==(48);
  29659. $or$cond5 = $30 & $31;
  29660. do {
  29661. if ($or$cond5) {
  29662. $32 = HEAP32[$6>>2]|0;
  29663. $33 = HEAP32[$7>>2]|0;
  29664. $34 = ($32>>>0)<($33>>>0);
  29665. if ($34) {
  29666. $35 = ((($32)) + 1|0);
  29667. HEAP32[$6>>2] = $35;
  29668. $36 = HEAP8[$32>>0]|0;
  29669. $37 = $36&255;
  29670. $40 = $37;
  29671. } else {
  29672. $38 = (___shgetc($0)|0);
  29673. $40 = $38;
  29674. }
  29675. $39 = $40 | 32;
  29676. $41 = ($39|0)==(120);
  29677. if (!($41)) {
  29678. if ($28) {
  29679. $$1160169 = $40;$$1165168 = 8;
  29680. label = 46;
  29681. break;
  29682. } else {
  29683. $$1160 = $40;$$1165 = $1;
  29684. label = 32;
  29685. break;
  29686. }
  29687. }
  29688. $42 = HEAP32[$6>>2]|0;
  29689. $43 = HEAP32[$7>>2]|0;
  29690. $44 = ($42>>>0)<($43>>>0);
  29691. if ($44) {
  29692. $45 = ((($42)) + 1|0);
  29693. HEAP32[$6>>2] = $45;
  29694. $46 = HEAP8[$42>>0]|0;
  29695. $47 = $46&255;
  29696. $50 = $47;
  29697. } else {
  29698. $48 = (___shgetc($0)|0);
  29699. $50 = $48;
  29700. }
  29701. $49 = ((15441) + ($50)|0);
  29702. $51 = HEAP8[$49>>0]|0;
  29703. $52 = ($51&255)>(15);
  29704. if ($52) {
  29705. $53 = HEAP32[$7>>2]|0;
  29706. $54 = ($53|0)!=(0|0);
  29707. if ($54) {
  29708. $55 = HEAP32[$6>>2]|0;
  29709. $56 = ((($55)) + -1|0);
  29710. HEAP32[$6>>2] = $56;
  29711. }
  29712. $57 = ($2|0)==(0);
  29713. if ($57) {
  29714. ___shlim($0,0);
  29715. $289 = 0;$290 = 0;
  29716. break L1;
  29717. }
  29718. if (!($54)) {
  29719. $289 = 0;$290 = 0;
  29720. break L1;
  29721. }
  29722. $58 = HEAP32[$6>>2]|0;
  29723. $59 = ((($58)) + -1|0);
  29724. HEAP32[$6>>2] = $59;
  29725. $289 = 0;$290 = 0;
  29726. break L1;
  29727. } else {
  29728. $$1160169 = $50;$$1165168 = 16;
  29729. label = 46;
  29730. }
  29731. } else {
  29732. $$166 = $28 ? 10 : $1;
  29733. $60 = ((15441) + ($$0159)|0);
  29734. $61 = HEAP8[$60>>0]|0;
  29735. $62 = $61&255;
  29736. $63 = ($62>>>0)<($$166>>>0);
  29737. if ($63) {
  29738. $$1160 = $$0159;$$1165 = $$166;
  29739. label = 32;
  29740. } else {
  29741. $64 = HEAP32[$7>>2]|0;
  29742. $65 = ($64|0)==(0|0);
  29743. if (!($65)) {
  29744. $66 = HEAP32[$6>>2]|0;
  29745. $67 = ((($66)) + -1|0);
  29746. HEAP32[$6>>2] = $67;
  29747. }
  29748. ___shlim($0,0);
  29749. $68 = (___errno_location()|0);
  29750. HEAP32[$68>>2] = 22;
  29751. $289 = 0;$290 = 0;
  29752. break L1;
  29753. }
  29754. }
  29755. } while(0);
  29756. L43: do {
  29757. if ((label|0) == 32) {
  29758. $69 = ($$1165|0)==(10);
  29759. if ($69) {
  29760. $70 = (($$1160) + -48)|0;
  29761. $71 = ($70>>>0)<(10);
  29762. if ($71) {
  29763. $$0154222 = 0;$74 = $70;
  29764. while(1) {
  29765. $72 = ($$0154222*10)|0;
  29766. $73 = (($72) + ($74))|0;
  29767. $75 = HEAP32[$6>>2]|0;
  29768. $76 = HEAP32[$7>>2]|0;
  29769. $77 = ($75>>>0)<($76>>>0);
  29770. if ($77) {
  29771. $78 = ((($75)) + 1|0);
  29772. HEAP32[$6>>2] = $78;
  29773. $79 = HEAP8[$75>>0]|0;
  29774. $80 = $79&255;
  29775. $$2161$be = $80;
  29776. } else {
  29777. $81 = (___shgetc($0)|0);
  29778. $$2161$be = $81;
  29779. }
  29780. $82 = (($$2161$be) + -48)|0;
  29781. $83 = ($82>>>0)<(10);
  29782. $84 = ($73>>>0)<(429496729);
  29783. $85 = $83 & $84;
  29784. if ($85) {
  29785. $$0154222 = $73;$74 = $82;
  29786. } else {
  29787. break;
  29788. }
  29789. }
  29790. $$2161$lcssa = $$2161$be;$291 = $73;$292 = 0;
  29791. } else {
  29792. $$2161$lcssa = $$1160;$291 = 0;$292 = 0;
  29793. }
  29794. $86 = (($$2161$lcssa) + -48)|0;
  29795. $87 = ($86>>>0)<(10);
  29796. if ($87) {
  29797. $$3162215 = $$2161$lcssa;$88 = $291;$89 = $292;$93 = $86;
  29798. while(1) {
  29799. $90 = (___muldi3(($88|0),($89|0),10,0)|0);
  29800. $91 = tempRet0;
  29801. $92 = ($93|0)<(0);
  29802. $94 = $92 << 31 >> 31;
  29803. $95 = $93 ^ -1;
  29804. $96 = $94 ^ -1;
  29805. $97 = ($91>>>0)>($96>>>0);
  29806. $98 = ($90>>>0)>($95>>>0);
  29807. $99 = ($91|0)==($96|0);
  29808. $100 = $99 & $98;
  29809. $101 = $97 | $100;
  29810. if ($101) {
  29811. $$1165167 = 10;$$8 = $$3162215;$293 = $88;$294 = $89;
  29812. label = 72;
  29813. break L43;
  29814. }
  29815. $102 = (_i64Add(($90|0),($91|0),($93|0),($94|0))|0);
  29816. $103 = tempRet0;
  29817. $104 = HEAP32[$6>>2]|0;
  29818. $105 = HEAP32[$7>>2]|0;
  29819. $106 = ($104>>>0)<($105>>>0);
  29820. if ($106) {
  29821. $107 = ((($104)) + 1|0);
  29822. HEAP32[$6>>2] = $107;
  29823. $108 = HEAP8[$104>>0]|0;
  29824. $109 = $108&255;
  29825. $$3162$be = $109;
  29826. } else {
  29827. $110 = (___shgetc($0)|0);
  29828. $$3162$be = $110;
  29829. }
  29830. $111 = (($$3162$be) + -48)|0;
  29831. $112 = ($111>>>0)<(10);
  29832. $113 = ($103>>>0)<(429496729);
  29833. $114 = ($102>>>0)<(2576980378);
  29834. $115 = ($103|0)==(429496729);
  29835. $116 = $115 & $114;
  29836. $117 = $113 | $116;
  29837. $or$cond7 = $112 & $117;
  29838. if ($or$cond7) {
  29839. $$3162215 = $$3162$be;$88 = $102;$89 = $103;$93 = $111;
  29840. } else {
  29841. break;
  29842. }
  29843. }
  29844. $118 = ($111>>>0)>(9);
  29845. if ($118) {
  29846. $$1158 = $$0157;$263 = $103;$265 = $102;
  29847. } else {
  29848. $$1165167 = 10;$$8 = $$3162$be;$293 = $102;$294 = $103;
  29849. label = 72;
  29850. }
  29851. } else {
  29852. $$1158 = $$0157;$263 = $292;$265 = $291;
  29853. }
  29854. } else {
  29855. $$1160169 = $$1160;$$1165168 = $$1165;
  29856. label = 46;
  29857. }
  29858. }
  29859. } while(0);
  29860. L63: do {
  29861. if ((label|0) == 46) {
  29862. $119 = (($$1165168) + -1)|0;
  29863. $120 = $119 & $$1165168;
  29864. $121 = ($120|0)==(0);
  29865. if ($121) {
  29866. $126 = ($$1165168*23)|0;
  29867. $127 = $126 >>> 5;
  29868. $128 = $127 & 7;
  29869. $129 = (15697 + ($128)|0);
  29870. $130 = HEAP8[$129>>0]|0;
  29871. $131 = $130 << 24 >> 24;
  29872. $132 = ((15441) + ($$1160169)|0);
  29873. $133 = HEAP8[$132>>0]|0;
  29874. $134 = $133&255;
  29875. $135 = ($134>>>0)<($$1165168>>>0);
  29876. if ($135) {
  29877. $$1155192 = 0;$138 = $134;
  29878. while(1) {
  29879. $136 = $$1155192 << $131;
  29880. $137 = $138 | $136;
  29881. $139 = HEAP32[$6>>2]|0;
  29882. $140 = HEAP32[$7>>2]|0;
  29883. $141 = ($139>>>0)<($140>>>0);
  29884. if ($141) {
  29885. $142 = ((($139)) + 1|0);
  29886. HEAP32[$6>>2] = $142;
  29887. $143 = HEAP8[$139>>0]|0;
  29888. $144 = $143&255;
  29889. $$4163$be = $144;
  29890. } else {
  29891. $145 = (___shgetc($0)|0);
  29892. $$4163$be = $145;
  29893. }
  29894. $146 = ((15441) + ($$4163$be)|0);
  29895. $147 = HEAP8[$146>>0]|0;
  29896. $148 = $147&255;
  29897. $149 = ($148>>>0)<($$1165168>>>0);
  29898. $150 = ($137>>>0)<(134217728);
  29899. $151 = $150 & $149;
  29900. if ($151) {
  29901. $$1155192 = $137;$138 = $148;
  29902. } else {
  29903. break;
  29904. }
  29905. }
  29906. $$4163$lcssa = $$4163$be;$155 = $147;$158 = 0;$160 = $137;
  29907. } else {
  29908. $$4163$lcssa = $$1160169;$155 = $133;$158 = 0;$160 = 0;
  29909. }
  29910. $152 = (_bitshift64Lshr(-1,-1,($131|0))|0);
  29911. $153 = tempRet0;
  29912. $154 = $155&255;
  29913. $156 = ($154>>>0)>=($$1165168>>>0);
  29914. $157 = ($158>>>0)>($153>>>0);
  29915. $159 = ($160>>>0)>($152>>>0);
  29916. $161 = ($158|0)==($153|0);
  29917. $162 = $161 & $159;
  29918. $163 = $157 | $162;
  29919. $or$cond187 = $156 | $163;
  29920. if ($or$cond187) {
  29921. $$1165167 = $$1165168;$$8 = $$4163$lcssa;$293 = $160;$294 = $158;
  29922. label = 72;
  29923. break;
  29924. } else {
  29925. $164 = $160;$165 = $158;$169 = $155;
  29926. }
  29927. while(1) {
  29928. $166 = (_bitshift64Shl(($164|0),($165|0),($131|0))|0);
  29929. $167 = tempRet0;
  29930. $168 = $169&255;
  29931. $170 = $168 | $166;
  29932. $171 = HEAP32[$6>>2]|0;
  29933. $172 = HEAP32[$7>>2]|0;
  29934. $173 = ($171>>>0)<($172>>>0);
  29935. if ($173) {
  29936. $174 = ((($171)) + 1|0);
  29937. HEAP32[$6>>2] = $174;
  29938. $175 = HEAP8[$171>>0]|0;
  29939. $176 = $175&255;
  29940. $$5$be = $176;
  29941. } else {
  29942. $177 = (___shgetc($0)|0);
  29943. $$5$be = $177;
  29944. }
  29945. $178 = ((15441) + ($$5$be)|0);
  29946. $179 = HEAP8[$178>>0]|0;
  29947. $180 = $179&255;
  29948. $181 = ($180>>>0)>=($$1165168>>>0);
  29949. $182 = ($167>>>0)>($153>>>0);
  29950. $183 = ($170>>>0)>($152>>>0);
  29951. $184 = ($167|0)==($153|0);
  29952. $185 = $184 & $183;
  29953. $186 = $182 | $185;
  29954. $or$cond = $181 | $186;
  29955. if ($or$cond) {
  29956. $$1165167 = $$1165168;$$8 = $$5$be;$293 = $170;$294 = $167;
  29957. label = 72;
  29958. break L63;
  29959. } else {
  29960. $164 = $170;$165 = $167;$169 = $179;
  29961. }
  29962. }
  29963. }
  29964. $122 = ((15441) + ($$1160169)|0);
  29965. $123 = HEAP8[$122>>0]|0;
  29966. $124 = $123&255;
  29967. $125 = ($124>>>0)<($$1165168>>>0);
  29968. if ($125) {
  29969. $$2156210 = 0;$189 = $124;
  29970. while(1) {
  29971. $187 = Math_imul($$2156210, $$1165168)|0;
  29972. $188 = (($189) + ($187))|0;
  29973. $190 = HEAP32[$6>>2]|0;
  29974. $191 = HEAP32[$7>>2]|0;
  29975. $192 = ($190>>>0)<($191>>>0);
  29976. if ($192) {
  29977. $193 = ((($190)) + 1|0);
  29978. HEAP32[$6>>2] = $193;
  29979. $194 = HEAP8[$190>>0]|0;
  29980. $195 = $194&255;
  29981. $$6$be = $195;
  29982. } else {
  29983. $196 = (___shgetc($0)|0);
  29984. $$6$be = $196;
  29985. }
  29986. $197 = ((15441) + ($$6$be)|0);
  29987. $198 = HEAP8[$197>>0]|0;
  29988. $199 = $198&255;
  29989. $200 = ($199>>>0)<($$1165168>>>0);
  29990. $201 = ($188>>>0)<(119304647);
  29991. $202 = $201 & $200;
  29992. if ($202) {
  29993. $$2156210 = $188;$189 = $199;
  29994. } else {
  29995. break;
  29996. }
  29997. }
  29998. $$6$lcssa = $$6$be;$204 = $198;$295 = $188;$296 = 0;
  29999. } else {
  30000. $$6$lcssa = $$1160169;$204 = $123;$295 = 0;$296 = 0;
  30001. }
  30002. $203 = $204&255;
  30003. $205 = ($203>>>0)<($$1165168>>>0);
  30004. if ($205) {
  30005. $206 = (___udivdi3(-1,-1,($$1165168|0),0)|0);
  30006. $207 = tempRet0;
  30007. $$7198 = $$6$lcssa;$209 = $296;$211 = $295;$218 = $204;
  30008. while(1) {
  30009. $208 = ($209>>>0)>($207>>>0);
  30010. $210 = ($211>>>0)>($206>>>0);
  30011. $212 = ($209|0)==($207|0);
  30012. $213 = $212 & $210;
  30013. $214 = $208 | $213;
  30014. if ($214) {
  30015. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  30016. label = 72;
  30017. break L63;
  30018. }
  30019. $215 = (___muldi3(($211|0),($209|0),($$1165168|0),0)|0);
  30020. $216 = tempRet0;
  30021. $217 = $218&255;
  30022. $219 = $217 ^ -1;
  30023. $220 = ($216>>>0)>(4294967295);
  30024. $221 = ($215>>>0)>($219>>>0);
  30025. $222 = ($216|0)==(-1);
  30026. $223 = $222 & $221;
  30027. $224 = $220 | $223;
  30028. if ($224) {
  30029. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  30030. label = 72;
  30031. break L63;
  30032. }
  30033. $225 = (_i64Add(($217|0),0,($215|0),($216|0))|0);
  30034. $226 = tempRet0;
  30035. $227 = HEAP32[$6>>2]|0;
  30036. $228 = HEAP32[$7>>2]|0;
  30037. $229 = ($227>>>0)<($228>>>0);
  30038. if ($229) {
  30039. $230 = ((($227)) + 1|0);
  30040. HEAP32[$6>>2] = $230;
  30041. $231 = HEAP8[$227>>0]|0;
  30042. $232 = $231&255;
  30043. $$7$be = $232;
  30044. } else {
  30045. $233 = (___shgetc($0)|0);
  30046. $$7$be = $233;
  30047. }
  30048. $234 = ((15441) + ($$7$be)|0);
  30049. $235 = HEAP8[$234>>0]|0;
  30050. $236 = $235&255;
  30051. $237 = ($236>>>0)<($$1165168>>>0);
  30052. if ($237) {
  30053. $$7198 = $$7$be;$209 = $226;$211 = $225;$218 = $235;
  30054. } else {
  30055. $$1165167 = $$1165168;$$8 = $$7$be;$293 = $225;$294 = $226;
  30056. label = 72;
  30057. break;
  30058. }
  30059. }
  30060. } else {
  30061. $$1165167 = $$1165168;$$8 = $$6$lcssa;$293 = $295;$294 = $296;
  30062. label = 72;
  30063. }
  30064. }
  30065. } while(0);
  30066. if ((label|0) == 72) {
  30067. $238 = ((15441) + ($$8)|0);
  30068. $239 = HEAP8[$238>>0]|0;
  30069. $240 = $239&255;
  30070. $241 = ($240>>>0)<($$1165167>>>0);
  30071. if ($241) {
  30072. while(1) {
  30073. $242 = HEAP32[$6>>2]|0;
  30074. $243 = HEAP32[$7>>2]|0;
  30075. $244 = ($242>>>0)<($243>>>0);
  30076. if ($244) {
  30077. $245 = ((($242)) + 1|0);
  30078. HEAP32[$6>>2] = $245;
  30079. $246 = HEAP8[$242>>0]|0;
  30080. $247 = $246&255;
  30081. $$9$be = $247;
  30082. } else {
  30083. $248 = (___shgetc($0)|0);
  30084. $$9$be = $248;
  30085. }
  30086. $249 = ((15441) + ($$9$be)|0);
  30087. $250 = HEAP8[$249>>0]|0;
  30088. $251 = $250&255;
  30089. $252 = ($251>>>0)<($$1165167>>>0);
  30090. if (!($252)) {
  30091. break;
  30092. }
  30093. }
  30094. $253 = (___errno_location()|0);
  30095. HEAP32[$253>>2] = 34;
  30096. $254 = $3 & 1;
  30097. $255 = ($254|0)==(0);
  30098. $256 = (0)==(0);
  30099. $257 = $255 & $256;
  30100. $$0157$ = $257 ? $$0157 : 0;
  30101. $$1158 = $$0157$;$263 = $4;$265 = $3;
  30102. } else {
  30103. $$1158 = $$0157;$263 = $294;$265 = $293;
  30104. }
  30105. }
  30106. $258 = HEAP32[$7>>2]|0;
  30107. $259 = ($258|0)==(0|0);
  30108. if (!($259)) {
  30109. $260 = HEAP32[$6>>2]|0;
  30110. $261 = ((($260)) + -1|0);
  30111. HEAP32[$6>>2] = $261;
  30112. }
  30113. $262 = ($263>>>0)<($4>>>0);
  30114. $264 = ($265>>>0)<($3>>>0);
  30115. $266 = ($263|0)==($4|0);
  30116. $267 = $266 & $264;
  30117. $268 = $262 | $267;
  30118. if (!($268)) {
  30119. $269 = $3 & 1;
  30120. $270 = ($269|0)!=(0);
  30121. $271 = (0)!=(0);
  30122. $272 = $270 | $271;
  30123. $273 = ($$1158|0)!=(0);
  30124. $or$cond12 = $272 | $273;
  30125. if (!($or$cond12)) {
  30126. $274 = (___errno_location()|0);
  30127. HEAP32[$274>>2] = 34;
  30128. $275 = (_i64Add(($3|0),($4|0),-1,-1)|0);
  30129. $276 = tempRet0;
  30130. $289 = $276;$290 = $275;
  30131. break;
  30132. }
  30133. $277 = ($263>>>0)>($4>>>0);
  30134. $278 = ($265>>>0)>($3>>>0);
  30135. $279 = ($263|0)==($4|0);
  30136. $280 = $279 & $278;
  30137. $281 = $277 | $280;
  30138. if ($281) {
  30139. $282 = (___errno_location()|0);
  30140. HEAP32[$282>>2] = 34;
  30141. $289 = $4;$290 = $3;
  30142. break;
  30143. }
  30144. }
  30145. $283 = ($$1158|0)<(0);
  30146. $284 = $283 << 31 >> 31;
  30147. $285 = $265 ^ $$1158;
  30148. $286 = $263 ^ $284;
  30149. $287 = (_i64Subtract(($285|0),($286|0),($$1158|0),($284|0))|0);
  30150. $288 = tempRet0;
  30151. $289 = $288;$290 = $287;
  30152. }
  30153. } while(0);
  30154. tempRet0 = ($289);
  30155. return ($290|0);
  30156. }
  30157. function ___shgetc($0) {
  30158. $0 = $0|0;
  30159. 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;
  30160. 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;
  30161. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  30162. sp = STACKTOP;
  30163. $1 = ((($0)) + 104|0);
  30164. $2 = HEAP32[$1>>2]|0;
  30165. $3 = ($2|0)==(0);
  30166. if ($3) {
  30167. label = 3;
  30168. } else {
  30169. $4 = ((($0)) + 108|0);
  30170. $5 = HEAP32[$4>>2]|0;
  30171. $6 = ($5|0)<($2|0);
  30172. if ($6) {
  30173. label = 3;
  30174. } else {
  30175. label = 4;
  30176. }
  30177. }
  30178. if ((label|0) == 3) {
  30179. $7 = (___uflow($0)|0);
  30180. $8 = ($7|0)<(0);
  30181. if ($8) {
  30182. label = 4;
  30183. } else {
  30184. $10 = HEAP32[$1>>2]|0;
  30185. $11 = ($10|0)==(0);
  30186. $$phi$trans$insert = ((($0)) + 8|0);
  30187. if ($11) {
  30188. $$pre = HEAP32[$$phi$trans$insert>>2]|0;
  30189. $$phi$trans$insert28$phi$trans$insert = ((($0)) + 4|0);
  30190. $$pre29$pre = HEAP32[$$phi$trans$insert28$phi$trans$insert>>2]|0;
  30191. $$pre35 = ((($0)) + 108|0);
  30192. $$pre$phi34Z2D = $$pre35;$$sink = $$pre;$26 = $$pre;$29 = $$pre29$pre;
  30193. } else {
  30194. $12 = HEAP32[$$phi$trans$insert>>2]|0;
  30195. $13 = ((($0)) + 4|0);
  30196. $14 = HEAP32[$13>>2]|0;
  30197. $15 = $14;
  30198. $16 = (($12) - ($15))|0;
  30199. $17 = ((($0)) + 108|0);
  30200. $18 = HEAP32[$17>>2]|0;
  30201. $19 = (($10) - ($18))|0;
  30202. $20 = ($16|0)<($19|0);
  30203. $21 = $12;
  30204. if ($20) {
  30205. $$pre$phi34Z2D = $17;$$sink = $21;$26 = $21;$29 = $14;
  30206. } else {
  30207. $22 = (($19) + -1)|0;
  30208. $23 = (($14) + ($22)|0);
  30209. $$pre$phi34Z2D = $17;$$sink = $23;$26 = $21;$29 = $14;
  30210. }
  30211. }
  30212. $24 = ((($0)) + 100|0);
  30213. HEAP32[$24>>2] = $$sink;
  30214. $25 = ($26|0)==(0|0);
  30215. if (!($25)) {
  30216. $27 = $26;
  30217. $28 = $29;
  30218. $30 = HEAP32[$$pre$phi34Z2D>>2]|0;
  30219. $31 = (($27) + 1)|0;
  30220. $32 = (($31) - ($28))|0;
  30221. $33 = (($32) + ($30))|0;
  30222. HEAP32[$$pre$phi34Z2D>>2] = $33;
  30223. }
  30224. $34 = ((($29)) + -1|0);
  30225. $35 = HEAP8[$34>>0]|0;
  30226. $36 = $35&255;
  30227. $37 = ($36|0)==($7|0);
  30228. if ($37) {
  30229. $$0 = $7;
  30230. } else {
  30231. $38 = $7&255;
  30232. HEAP8[$34>>0] = $38;
  30233. $$0 = $7;
  30234. }
  30235. }
  30236. }
  30237. if ((label|0) == 4) {
  30238. $9 = ((($0)) + 100|0);
  30239. HEAP32[$9>>2] = 0;
  30240. $$0 = -1;
  30241. }
  30242. return ($$0|0);
  30243. }
  30244. function _isspace($0) {
  30245. $0 = $0|0;
  30246. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  30247. sp = STACKTOP;
  30248. $1 = ($0|0)==(32);
  30249. $2 = (($0) + -9)|0;
  30250. $3 = ($2>>>0)<(5);
  30251. $4 = $1 | $3;
  30252. $5 = $4&1;
  30253. return ($5|0);
  30254. }
  30255. function ___uflow($0) {
  30256. $0 = $0|0;
  30257. 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;
  30258. sp = STACKTOP;
  30259. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  30260. $1 = sp;
  30261. $2 = (___toread($0)|0);
  30262. $3 = ($2|0)==(0);
  30263. if ($3) {
  30264. $4 = ((($0)) + 32|0);
  30265. $5 = HEAP32[$4>>2]|0;
  30266. $6 = (FUNCTION_TABLE_iiii[$5 & 15]($0,$1,1)|0);
  30267. $7 = ($6|0)==(1);
  30268. if ($7) {
  30269. $8 = HEAP8[$1>>0]|0;
  30270. $9 = $8&255;
  30271. $$0 = $9;
  30272. } else {
  30273. $$0 = -1;
  30274. }
  30275. } else {
  30276. $$0 = -1;
  30277. }
  30278. STACKTOP = sp;return ($$0|0);
  30279. }
  30280. function ___toread($0) {
  30281. $0 = $0|0;
  30282. 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;
  30283. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  30284. sp = STACKTOP;
  30285. $1 = ((($0)) + 74|0);
  30286. $2 = HEAP8[$1>>0]|0;
  30287. $3 = $2 << 24 >> 24;
  30288. $4 = (($3) + 255)|0;
  30289. $5 = $4 | $3;
  30290. $6 = $5&255;
  30291. HEAP8[$1>>0] = $6;
  30292. $7 = ((($0)) + 20|0);
  30293. $8 = HEAP32[$7>>2]|0;
  30294. $9 = ((($0)) + 28|0);
  30295. $10 = HEAP32[$9>>2]|0;
  30296. $11 = ($8>>>0)>($10>>>0);
  30297. if ($11) {
  30298. $12 = ((($0)) + 36|0);
  30299. $13 = HEAP32[$12>>2]|0;
  30300. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  30301. }
  30302. $14 = ((($0)) + 16|0);
  30303. HEAP32[$14>>2] = 0;
  30304. HEAP32[$9>>2] = 0;
  30305. HEAP32[$7>>2] = 0;
  30306. $15 = HEAP32[$0>>2]|0;
  30307. $16 = $15 & 4;
  30308. $17 = ($16|0)==(0);
  30309. if ($17) {
  30310. $19 = ((($0)) + 44|0);
  30311. $20 = HEAP32[$19>>2]|0;
  30312. $21 = ((($0)) + 48|0);
  30313. $22 = HEAP32[$21>>2]|0;
  30314. $23 = (($20) + ($22)|0);
  30315. $24 = ((($0)) + 8|0);
  30316. HEAP32[$24>>2] = $23;
  30317. $25 = ((($0)) + 4|0);
  30318. HEAP32[$25>>2] = $23;
  30319. $26 = $15 << 27;
  30320. $sext = $26 >> 31;
  30321. $$0 = $sext;
  30322. } else {
  30323. $18 = $15 | 32;
  30324. HEAP32[$0>>2] = $18;
  30325. $$0 = -1;
  30326. }
  30327. return ($$0|0);
  30328. }
  30329. function _copysign($0,$1) {
  30330. $0 = +$0;
  30331. $1 = +$1;
  30332. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  30333. sp = STACKTOP;
  30334. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  30335. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  30336. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  30337. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  30338. $6 = $3 & 2147483647;
  30339. $7 = $5 & -2147483648;
  30340. $8 = $7 | $6;
  30341. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $8;$9 = +HEAPF64[tempDoublePtr>>3];
  30342. return (+$9);
  30343. }
  30344. function _strcmp($0,$1) {
  30345. $0 = $0|0;
  30346. $1 = $1|0;
  30347. 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;
  30348. var sp = 0;
  30349. sp = STACKTOP;
  30350. $2 = HEAP8[$0>>0]|0;
  30351. $3 = HEAP8[$1>>0]|0;
  30352. $4 = ($2<<24>>24)!=($3<<24>>24);
  30353. $5 = ($2<<24>>24)==(0);
  30354. $or$cond9 = $5 | $4;
  30355. if ($or$cond9) {
  30356. $$lcssa = $3;$$lcssa8 = $2;
  30357. } else {
  30358. $$011 = $1;$$0710 = $0;
  30359. while(1) {
  30360. $6 = ((($$0710)) + 1|0);
  30361. $7 = ((($$011)) + 1|0);
  30362. $8 = HEAP8[$6>>0]|0;
  30363. $9 = HEAP8[$7>>0]|0;
  30364. $10 = ($8<<24>>24)!=($9<<24>>24);
  30365. $11 = ($8<<24>>24)==(0);
  30366. $or$cond = $11 | $10;
  30367. if ($or$cond) {
  30368. $$lcssa = $9;$$lcssa8 = $8;
  30369. break;
  30370. } else {
  30371. $$011 = $7;$$0710 = $6;
  30372. }
  30373. }
  30374. }
  30375. $12 = $$lcssa8&255;
  30376. $13 = $$lcssa&255;
  30377. $14 = (($12) - ($13))|0;
  30378. return ($14|0);
  30379. }
  30380. function _memcmp($0,$1,$2) {
  30381. $0 = $0|0;
  30382. $1 = $1|0;
  30383. $2 = $2|0;
  30384. 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;
  30385. sp = STACKTOP;
  30386. $3 = ($2|0)==(0);
  30387. L1: do {
  30388. if ($3) {
  30389. $14 = 0;
  30390. } else {
  30391. $$01318 = $0;$$01417 = $2;$$019 = $1;
  30392. while(1) {
  30393. $4 = HEAP8[$$01318>>0]|0;
  30394. $5 = HEAP8[$$019>>0]|0;
  30395. $6 = ($4<<24>>24)==($5<<24>>24);
  30396. if (!($6)) {
  30397. break;
  30398. }
  30399. $7 = (($$01417) + -1)|0;
  30400. $8 = ((($$01318)) + 1|0);
  30401. $9 = ((($$019)) + 1|0);
  30402. $10 = ($7|0)==(0);
  30403. if ($10) {
  30404. $14 = 0;
  30405. break L1;
  30406. } else {
  30407. $$01318 = $8;$$01417 = $7;$$019 = $9;
  30408. }
  30409. }
  30410. $11 = $4&255;
  30411. $12 = $5&255;
  30412. $13 = (($11) - ($12))|0;
  30413. $14 = $13;
  30414. }
  30415. } while(0);
  30416. return ($14|0);
  30417. }
  30418. function _vsprintf($0,$1,$2) {
  30419. $0 = $0|0;
  30420. $1 = $1|0;
  30421. $2 = $2|0;
  30422. var $3 = 0, label = 0, sp = 0;
  30423. sp = STACKTOP;
  30424. $3 = (_vsnprintf($0,2147483647,$1,$2)|0);
  30425. return ($3|0);
  30426. }
  30427. function _vsnprintf($0,$1,$2,$3) {
  30428. $0 = $0|0;
  30429. $1 = $1|0;
  30430. $2 = $2|0;
  30431. $3 = $3|0;
  30432. var $$$015 = 0, $$0 = 0, $$014 = 0, $$015 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  30433. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  30434. sp = STACKTOP;
  30435. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  30436. $4 = sp + 124|0;
  30437. $5 = sp;
  30438. dest=$5; src=4284; stop=dest+124|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  30439. $6 = (($1) + -1)|0;
  30440. $7 = ($6>>>0)>(2147483646);
  30441. if ($7) {
  30442. $8 = ($1|0)==(0);
  30443. if ($8) {
  30444. $$014 = $4;$$015 = 1;
  30445. label = 4;
  30446. } else {
  30447. $9 = (___errno_location()|0);
  30448. HEAP32[$9>>2] = 75;
  30449. $$0 = -1;
  30450. }
  30451. } else {
  30452. $$014 = $0;$$015 = $1;
  30453. label = 4;
  30454. }
  30455. if ((label|0) == 4) {
  30456. $10 = $$014;
  30457. $11 = (-2 - ($10))|0;
  30458. $12 = ($$015>>>0)>($11>>>0);
  30459. $$$015 = $12 ? $11 : $$015;
  30460. $13 = ((($5)) + 48|0);
  30461. HEAP32[$13>>2] = $$$015;
  30462. $14 = ((($5)) + 20|0);
  30463. HEAP32[$14>>2] = $$014;
  30464. $15 = ((($5)) + 44|0);
  30465. HEAP32[$15>>2] = $$014;
  30466. $16 = (($$014) + ($$$015)|0);
  30467. $17 = ((($5)) + 16|0);
  30468. HEAP32[$17>>2] = $16;
  30469. $18 = ((($5)) + 28|0);
  30470. HEAP32[$18>>2] = $16;
  30471. $19 = (_vfprintf($5,$2,$3)|0);
  30472. $20 = ($$$015|0)==(0);
  30473. if ($20) {
  30474. $$0 = $19;
  30475. } else {
  30476. $21 = HEAP32[$14>>2]|0;
  30477. $22 = HEAP32[$17>>2]|0;
  30478. $23 = ($21|0)==($22|0);
  30479. $24 = $23 << 31 >> 31;
  30480. $25 = (($21) + ($24)|0);
  30481. HEAP8[$25>>0] = 0;
  30482. $$0 = $19;
  30483. }
  30484. }
  30485. STACKTOP = sp;return ($$0|0);
  30486. }
  30487. function _vfprintf($0,$1,$2) {
  30488. $0 = $0|0;
  30489. $1 = $1|0;
  30490. $2 = $2|0;
  30491. 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;
  30492. 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;
  30493. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  30494. sp = STACKTOP;
  30495. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  30496. $3 = sp + 120|0;
  30497. $4 = sp + 80|0;
  30498. $5 = sp;
  30499. $6 = sp + 136|0;
  30500. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30501. $vacopy_currentptr = HEAP32[$2>>2]|0;
  30502. HEAP32[$3>>2] = $vacopy_currentptr;
  30503. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  30504. $8 = ($7|0)<(0);
  30505. if ($8) {
  30506. $$0 = -1;
  30507. } else {
  30508. $9 = ((($0)) + 76|0);
  30509. $10 = HEAP32[$9>>2]|0;
  30510. $11 = ($10|0)>(-1);
  30511. if ($11) {
  30512. $12 = (___lockfile($0)|0);
  30513. $40 = $12;
  30514. } else {
  30515. $40 = 0;
  30516. }
  30517. $13 = HEAP32[$0>>2]|0;
  30518. $14 = $13 & 32;
  30519. $15 = ((($0)) + 74|0);
  30520. $16 = HEAP8[$15>>0]|0;
  30521. $17 = ($16<<24>>24)<(1);
  30522. if ($17) {
  30523. $18 = $13 & -33;
  30524. HEAP32[$0>>2] = $18;
  30525. }
  30526. $19 = ((($0)) + 48|0);
  30527. $20 = HEAP32[$19>>2]|0;
  30528. $21 = ($20|0)==(0);
  30529. if ($21) {
  30530. $23 = ((($0)) + 44|0);
  30531. $24 = HEAP32[$23>>2]|0;
  30532. HEAP32[$23>>2] = $6;
  30533. $25 = ((($0)) + 28|0);
  30534. HEAP32[$25>>2] = $6;
  30535. $26 = ((($0)) + 20|0);
  30536. HEAP32[$26>>2] = $6;
  30537. HEAP32[$19>>2] = 80;
  30538. $27 = ((($6)) + 80|0);
  30539. $28 = ((($0)) + 16|0);
  30540. HEAP32[$28>>2] = $27;
  30541. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  30542. $30 = ($24|0)==(0|0);
  30543. if ($30) {
  30544. $$1 = $29;
  30545. } else {
  30546. $31 = ((($0)) + 36|0);
  30547. $32 = HEAP32[$31>>2]|0;
  30548. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  30549. $33 = HEAP32[$26>>2]|0;
  30550. $34 = ($33|0)==(0|0);
  30551. $$ = $34 ? -1 : $29;
  30552. HEAP32[$23>>2] = $24;
  30553. HEAP32[$19>>2] = 0;
  30554. HEAP32[$28>>2] = 0;
  30555. HEAP32[$25>>2] = 0;
  30556. HEAP32[$26>>2] = 0;
  30557. $$1 = $$;
  30558. }
  30559. } else {
  30560. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  30561. $$1 = $22;
  30562. }
  30563. $35 = HEAP32[$0>>2]|0;
  30564. $36 = $35 & 32;
  30565. $37 = ($36|0)==(0);
  30566. $$1$ = $37 ? $$1 : -1;
  30567. $38 = $35 | $14;
  30568. HEAP32[$0>>2] = $38;
  30569. $39 = ($40|0)==(0);
  30570. if (!($39)) {
  30571. ___unlockfile($0);
  30572. }
  30573. $$0 = $$1$;
  30574. }
  30575. STACKTOP = sp;return ($$0|0);
  30576. }
  30577. function _printf_core($0,$1,$2,$3,$4) {
  30578. $0 = $0|0;
  30579. $1 = $1|0;
  30580. $2 = $2|0;
  30581. $3 = $3|0;
  30582. $4 = $4|0;
  30583. 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;
  30584. 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;
  30585. 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;
  30586. 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;
  30587. 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;
  30588. 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;
  30589. 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;
  30590. 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;
  30591. 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;
  30592. 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;
  30593. 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;
  30594. 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;
  30595. 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;
  30596. 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;
  30597. 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;
  30598. 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;
  30599. 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;
  30600. 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;
  30601. 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;
  30602. 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;
  30603. 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;
  30604. 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;
  30605. sp = STACKTOP;
  30606. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  30607. $5 = sp + 16|0;
  30608. $6 = sp;
  30609. $7 = sp + 24|0;
  30610. $8 = sp + 8|0;
  30611. $9 = sp + 20|0;
  30612. HEAP32[$5>>2] = $1;
  30613. $10 = ($0|0)!=(0|0);
  30614. $11 = ((($7)) + 40|0);
  30615. $12 = $11;
  30616. $13 = ((($7)) + 39|0);
  30617. $14 = ((($8)) + 4|0);
  30618. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  30619. L1: while(1) {
  30620. $15 = ($$0247|0)>(-1);
  30621. do {
  30622. if ($15) {
  30623. $16 = (2147483647 - ($$0247))|0;
  30624. $17 = ($$0243|0)>($16|0);
  30625. if ($17) {
  30626. $18 = (___errno_location()|0);
  30627. HEAP32[$18>>2] = 75;
  30628. $$1248 = -1;
  30629. break;
  30630. } else {
  30631. $19 = (($$0243) + ($$0247))|0;
  30632. $$1248 = $19;
  30633. break;
  30634. }
  30635. } else {
  30636. $$1248 = $$0247;
  30637. }
  30638. } while(0);
  30639. $20 = HEAP8[$21>>0]|0;
  30640. $22 = ($20<<24>>24)==(0);
  30641. if ($22) {
  30642. label = 87;
  30643. break;
  30644. } else {
  30645. $23 = $20;$25 = $21;
  30646. }
  30647. L9: while(1) {
  30648. switch ($23<<24>>24) {
  30649. case 37: {
  30650. $$0249306 = $25;$27 = $25;
  30651. label = 9;
  30652. break L9;
  30653. break;
  30654. }
  30655. case 0: {
  30656. $$0249$lcssa = $25;$39 = $25;
  30657. break L9;
  30658. break;
  30659. }
  30660. default: {
  30661. }
  30662. }
  30663. $24 = ((($25)) + 1|0);
  30664. HEAP32[$5>>2] = $24;
  30665. $$pre = HEAP8[$24>>0]|0;
  30666. $23 = $$pre;$25 = $24;
  30667. }
  30668. L12: do {
  30669. if ((label|0) == 9) {
  30670. while(1) {
  30671. label = 0;
  30672. $26 = ((($27)) + 1|0);
  30673. $28 = HEAP8[$26>>0]|0;
  30674. $29 = ($28<<24>>24)==(37);
  30675. if (!($29)) {
  30676. $$0249$lcssa = $$0249306;$39 = $27;
  30677. break L12;
  30678. }
  30679. $30 = ((($$0249306)) + 1|0);
  30680. $31 = ((($27)) + 2|0);
  30681. HEAP32[$5>>2] = $31;
  30682. $32 = HEAP8[$31>>0]|0;
  30683. $33 = ($32<<24>>24)==(37);
  30684. if ($33) {
  30685. $$0249306 = $30;$27 = $31;
  30686. label = 9;
  30687. } else {
  30688. $$0249$lcssa = $30;$39 = $31;
  30689. break;
  30690. }
  30691. }
  30692. }
  30693. } while(0);
  30694. $34 = $$0249$lcssa;
  30695. $35 = $21;
  30696. $36 = (($34) - ($35))|0;
  30697. if ($10) {
  30698. _out($0,$21,$36);
  30699. }
  30700. $37 = ($36|0)==(0);
  30701. if (!($37)) {
  30702. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  30703. continue;
  30704. }
  30705. $38 = ((($39)) + 1|0);
  30706. $40 = HEAP8[$38>>0]|0;
  30707. $41 = $40 << 24 >> 24;
  30708. $isdigittmp = (($41) + -48)|0;
  30709. $isdigit = ($isdigittmp>>>0)<(10);
  30710. if ($isdigit) {
  30711. $42 = ((($39)) + 2|0);
  30712. $43 = HEAP8[$42>>0]|0;
  30713. $44 = ($43<<24>>24)==(36);
  30714. $45 = ((($39)) + 3|0);
  30715. $$377 = $44 ? $45 : $38;
  30716. $$$0269 = $44 ? 1 : $$0269;
  30717. $isdigittmp$ = $44 ? $isdigittmp : -1;
  30718. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  30719. } else {
  30720. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  30721. }
  30722. HEAP32[$5>>2] = $storemerge;
  30723. $46 = HEAP8[$storemerge>>0]|0;
  30724. $47 = $46 << 24 >> 24;
  30725. $48 = (($47) + -32)|0;
  30726. $49 = ($48>>>0)<(32);
  30727. L24: do {
  30728. if ($49) {
  30729. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  30730. while(1) {
  30731. $50 = 1 << $51;
  30732. $52 = $50 & 75913;
  30733. $53 = ($52|0)==(0);
  30734. if ($53) {
  30735. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  30736. break L24;
  30737. }
  30738. $54 = $50 | $$0262311;
  30739. $55 = ((($storemerge273310)) + 1|0);
  30740. HEAP32[$5>>2] = $55;
  30741. $56 = HEAP8[$55>>0]|0;
  30742. $57 = $56 << 24 >> 24;
  30743. $58 = (($57) + -32)|0;
  30744. $59 = ($58>>>0)<(32);
  30745. if ($59) {
  30746. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  30747. } else {
  30748. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  30749. break;
  30750. }
  30751. }
  30752. } else {
  30753. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  30754. }
  30755. } while(0);
  30756. $60 = ($$lcssa295<<24>>24)==(42);
  30757. if ($60) {
  30758. $61 = ((($62)) + 1|0);
  30759. $63 = HEAP8[$61>>0]|0;
  30760. $64 = $63 << 24 >> 24;
  30761. $isdigittmp276 = (($64) + -48)|0;
  30762. $isdigit277 = ($isdigittmp276>>>0)<(10);
  30763. if ($isdigit277) {
  30764. $65 = ((($62)) + 2|0);
  30765. $66 = HEAP8[$65>>0]|0;
  30766. $67 = ($66<<24>>24)==(36);
  30767. if ($67) {
  30768. $68 = (($4) + ($isdigittmp276<<2)|0);
  30769. HEAP32[$68>>2] = 10;
  30770. $69 = HEAP8[$61>>0]|0;
  30771. $70 = $69 << 24 >> 24;
  30772. $71 = (($70) + -48)|0;
  30773. $72 = (($3) + ($71<<3)|0);
  30774. $73 = $72;
  30775. $74 = $73;
  30776. $75 = HEAP32[$74>>2]|0;
  30777. $76 = (($73) + 4)|0;
  30778. $77 = $76;
  30779. $78 = HEAP32[$77>>2]|0;
  30780. $79 = ((($62)) + 3|0);
  30781. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  30782. } else {
  30783. label = 23;
  30784. }
  30785. } else {
  30786. label = 23;
  30787. }
  30788. if ((label|0) == 23) {
  30789. label = 0;
  30790. $80 = ($$1270|0)==(0);
  30791. if (!($80)) {
  30792. $$0 = -1;
  30793. break;
  30794. }
  30795. if ($10) {
  30796. $arglist_current = HEAP32[$2>>2]|0;
  30797. $81 = $arglist_current;
  30798. $82 = ((0) + 4|0);
  30799. $expanded4 = $82;
  30800. $expanded = (($expanded4) - 1)|0;
  30801. $83 = (($81) + ($expanded))|0;
  30802. $84 = ((0) + 4|0);
  30803. $expanded8 = $84;
  30804. $expanded7 = (($expanded8) - 1)|0;
  30805. $expanded6 = $expanded7 ^ -1;
  30806. $85 = $83 & $expanded6;
  30807. $86 = $85;
  30808. $87 = HEAP32[$86>>2]|0;
  30809. $arglist_next = ((($86)) + 4|0);
  30810. HEAP32[$2>>2] = $arglist_next;
  30811. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  30812. } else {
  30813. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  30814. }
  30815. }
  30816. HEAP32[$5>>2] = $storemerge278;
  30817. $88 = ($$0259|0)<(0);
  30818. $89 = $$0262$lcssa | 8192;
  30819. $90 = (0 - ($$0259))|0;
  30820. $$$0262 = $88 ? $89 : $$0262$lcssa;
  30821. $$$0259 = $88 ? $90 : $$0259;
  30822. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  30823. } else {
  30824. $91 = (_getint($5)|0);
  30825. $92 = ($91|0)<(0);
  30826. if ($92) {
  30827. $$0 = -1;
  30828. break;
  30829. }
  30830. $$pre346 = HEAP32[$5>>2]|0;
  30831. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  30832. }
  30833. $93 = HEAP8[$94>>0]|0;
  30834. $95 = ($93<<24>>24)==(46);
  30835. do {
  30836. if ($95) {
  30837. $96 = ((($94)) + 1|0);
  30838. $97 = HEAP8[$96>>0]|0;
  30839. $98 = ($97<<24>>24)==(42);
  30840. if (!($98)) {
  30841. $125 = ((($94)) + 1|0);
  30842. HEAP32[$5>>2] = $125;
  30843. $126 = (_getint($5)|0);
  30844. $$pre347$pre = HEAP32[$5>>2]|0;
  30845. $$0254 = $126;$$pre347 = $$pre347$pre;
  30846. break;
  30847. }
  30848. $99 = ((($94)) + 2|0);
  30849. $100 = HEAP8[$99>>0]|0;
  30850. $101 = $100 << 24 >> 24;
  30851. $isdigittmp274 = (($101) + -48)|0;
  30852. $isdigit275 = ($isdigittmp274>>>0)<(10);
  30853. if ($isdigit275) {
  30854. $102 = ((($94)) + 3|0);
  30855. $103 = HEAP8[$102>>0]|0;
  30856. $104 = ($103<<24>>24)==(36);
  30857. if ($104) {
  30858. $105 = (($4) + ($isdigittmp274<<2)|0);
  30859. HEAP32[$105>>2] = 10;
  30860. $106 = HEAP8[$99>>0]|0;
  30861. $107 = $106 << 24 >> 24;
  30862. $108 = (($107) + -48)|0;
  30863. $109 = (($3) + ($108<<3)|0);
  30864. $110 = $109;
  30865. $111 = $110;
  30866. $112 = HEAP32[$111>>2]|0;
  30867. $113 = (($110) + 4)|0;
  30868. $114 = $113;
  30869. $115 = HEAP32[$114>>2]|0;
  30870. $116 = ((($94)) + 4|0);
  30871. HEAP32[$5>>2] = $116;
  30872. $$0254 = $112;$$pre347 = $116;
  30873. break;
  30874. }
  30875. }
  30876. $117 = ($$3272|0)==(0);
  30877. if (!($117)) {
  30878. $$0 = -1;
  30879. break L1;
  30880. }
  30881. if ($10) {
  30882. $arglist_current2 = HEAP32[$2>>2]|0;
  30883. $118 = $arglist_current2;
  30884. $119 = ((0) + 4|0);
  30885. $expanded11 = $119;
  30886. $expanded10 = (($expanded11) - 1)|0;
  30887. $120 = (($118) + ($expanded10))|0;
  30888. $121 = ((0) + 4|0);
  30889. $expanded15 = $121;
  30890. $expanded14 = (($expanded15) - 1)|0;
  30891. $expanded13 = $expanded14 ^ -1;
  30892. $122 = $120 & $expanded13;
  30893. $123 = $122;
  30894. $124 = HEAP32[$123>>2]|0;
  30895. $arglist_next3 = ((($123)) + 4|0);
  30896. HEAP32[$2>>2] = $arglist_next3;
  30897. $330 = $124;
  30898. } else {
  30899. $330 = 0;
  30900. }
  30901. HEAP32[$5>>2] = $99;
  30902. $$0254 = $330;$$pre347 = $99;
  30903. } else {
  30904. $$0254 = -1;$$pre347 = $94;
  30905. }
  30906. } while(0);
  30907. $$0252 = 0;$128 = $$pre347;
  30908. while(1) {
  30909. $127 = HEAP8[$128>>0]|0;
  30910. $129 = $127 << 24 >> 24;
  30911. $130 = (($129) + -65)|0;
  30912. $131 = ($130>>>0)>(57);
  30913. if ($131) {
  30914. $$0 = -1;
  30915. break L1;
  30916. }
  30917. $132 = ((($128)) + 1|0);
  30918. HEAP32[$5>>2] = $132;
  30919. $133 = HEAP8[$128>>0]|0;
  30920. $134 = $133 << 24 >> 24;
  30921. $135 = (($134) + -65)|0;
  30922. $136 = ((15706 + (($$0252*58)|0)|0) + ($135)|0);
  30923. $137 = HEAP8[$136>>0]|0;
  30924. $138 = $137&255;
  30925. $139 = (($138) + -1)|0;
  30926. $140 = ($139>>>0)<(8);
  30927. if ($140) {
  30928. $$0252 = $138;$128 = $132;
  30929. } else {
  30930. break;
  30931. }
  30932. }
  30933. $141 = ($137<<24>>24)==(0);
  30934. if ($141) {
  30935. $$0 = -1;
  30936. break;
  30937. }
  30938. $142 = ($137<<24>>24)==(19);
  30939. $143 = ($$0253|0)>(-1);
  30940. do {
  30941. if ($142) {
  30942. if ($143) {
  30943. $$0 = -1;
  30944. break L1;
  30945. } else {
  30946. label = 49;
  30947. }
  30948. } else {
  30949. if ($143) {
  30950. $144 = (($4) + ($$0253<<2)|0);
  30951. HEAP32[$144>>2] = $138;
  30952. $145 = (($3) + ($$0253<<3)|0);
  30953. $146 = $145;
  30954. $147 = $146;
  30955. $148 = HEAP32[$147>>2]|0;
  30956. $149 = (($146) + 4)|0;
  30957. $150 = $149;
  30958. $151 = HEAP32[$150>>2]|0;
  30959. $152 = $6;
  30960. $153 = $152;
  30961. HEAP32[$153>>2] = $148;
  30962. $154 = (($152) + 4)|0;
  30963. $155 = $154;
  30964. HEAP32[$155>>2] = $151;
  30965. label = 49;
  30966. break;
  30967. }
  30968. if (!($10)) {
  30969. $$0 = 0;
  30970. break L1;
  30971. }
  30972. _pop_arg($6,$138,$2);
  30973. }
  30974. } while(0);
  30975. if ((label|0) == 49) {
  30976. label = 0;
  30977. if (!($10)) {
  30978. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  30979. continue;
  30980. }
  30981. }
  30982. $156 = HEAP8[$128>>0]|0;
  30983. $157 = $156 << 24 >> 24;
  30984. $158 = ($$0252|0)!=(0);
  30985. $159 = $157 & 15;
  30986. $160 = ($159|0)==(3);
  30987. $or$cond281 = $158 & $160;
  30988. $161 = $157 & -33;
  30989. $$0235 = $or$cond281 ? $161 : $157;
  30990. $162 = $$1263 & 8192;
  30991. $163 = ($162|0)==(0);
  30992. $164 = $$1263 & -65537;
  30993. $$1263$ = $163 ? $$1263 : $164;
  30994. L71: do {
  30995. switch ($$0235|0) {
  30996. case 110: {
  30997. $trunc = $$0252&255;
  30998. switch ($trunc<<24>>24) {
  30999. case 0: {
  31000. $171 = HEAP32[$6>>2]|0;
  31001. HEAP32[$171>>2] = $$1248;
  31002. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31003. continue L1;
  31004. break;
  31005. }
  31006. case 1: {
  31007. $172 = HEAP32[$6>>2]|0;
  31008. HEAP32[$172>>2] = $$1248;
  31009. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31010. continue L1;
  31011. break;
  31012. }
  31013. case 2: {
  31014. $173 = ($$1248|0)<(0);
  31015. $174 = $173 << 31 >> 31;
  31016. $175 = HEAP32[$6>>2]|0;
  31017. $176 = $175;
  31018. $177 = $176;
  31019. HEAP32[$177>>2] = $$1248;
  31020. $178 = (($176) + 4)|0;
  31021. $179 = $178;
  31022. HEAP32[$179>>2] = $174;
  31023. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31024. continue L1;
  31025. break;
  31026. }
  31027. case 3: {
  31028. $180 = $$1248&65535;
  31029. $181 = HEAP32[$6>>2]|0;
  31030. HEAP16[$181>>1] = $180;
  31031. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31032. continue L1;
  31033. break;
  31034. }
  31035. case 4: {
  31036. $182 = $$1248&255;
  31037. $183 = HEAP32[$6>>2]|0;
  31038. HEAP8[$183>>0] = $182;
  31039. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31040. continue L1;
  31041. break;
  31042. }
  31043. case 6: {
  31044. $184 = HEAP32[$6>>2]|0;
  31045. HEAP32[$184>>2] = $$1248;
  31046. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31047. continue L1;
  31048. break;
  31049. }
  31050. case 7: {
  31051. $185 = ($$1248|0)<(0);
  31052. $186 = $185 << 31 >> 31;
  31053. $187 = HEAP32[$6>>2]|0;
  31054. $188 = $187;
  31055. $189 = $188;
  31056. HEAP32[$189>>2] = $$1248;
  31057. $190 = (($188) + 4)|0;
  31058. $191 = $190;
  31059. HEAP32[$191>>2] = $186;
  31060. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31061. continue L1;
  31062. break;
  31063. }
  31064. default: {
  31065. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31066. continue L1;
  31067. }
  31068. }
  31069. break;
  31070. }
  31071. case 112: {
  31072. $192 = ($$0254>>>0)>(8);
  31073. $193 = $192 ? $$0254 : 8;
  31074. $194 = $$1263$ | 8;
  31075. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  31076. label = 61;
  31077. break;
  31078. }
  31079. case 88: case 120: {
  31080. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  31081. label = 61;
  31082. break;
  31083. }
  31084. case 111: {
  31085. $210 = $6;
  31086. $211 = $210;
  31087. $212 = HEAP32[$211>>2]|0;
  31088. $213 = (($210) + 4)|0;
  31089. $214 = $213;
  31090. $215 = HEAP32[$214>>2]|0;
  31091. $216 = (_fmt_o($212,$215,$11)|0);
  31092. $217 = $$1263$ & 8;
  31093. $218 = ($217|0)==(0);
  31094. $219 = $216;
  31095. $220 = (($12) - ($219))|0;
  31096. $221 = ($$0254|0)>($220|0);
  31097. $222 = (($220) + 1)|0;
  31098. $223 = $218 | $221;
  31099. $$0254$$0254$ = $223 ? $$0254 : $222;
  31100. $$0228 = $216;$$1233 = 0;$$1238 = 16170;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  31101. label = 67;
  31102. break;
  31103. }
  31104. case 105: case 100: {
  31105. $224 = $6;
  31106. $225 = $224;
  31107. $226 = HEAP32[$225>>2]|0;
  31108. $227 = (($224) + 4)|0;
  31109. $228 = $227;
  31110. $229 = HEAP32[$228>>2]|0;
  31111. $230 = ($229|0)<(0);
  31112. if ($230) {
  31113. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  31114. $232 = tempRet0;
  31115. $233 = $6;
  31116. $234 = $233;
  31117. HEAP32[$234>>2] = $231;
  31118. $235 = (($233) + 4)|0;
  31119. $236 = $235;
  31120. HEAP32[$236>>2] = $232;
  31121. $$0232 = 1;$$0237 = 16170;$242 = $231;$243 = $232;
  31122. label = 66;
  31123. break L71;
  31124. } else {
  31125. $237 = $$1263$ & 2048;
  31126. $238 = ($237|0)==(0);
  31127. $239 = $$1263$ & 1;
  31128. $240 = ($239|0)==(0);
  31129. $$ = $240 ? 16170 : (16172);
  31130. $$$ = $238 ? $$ : (16171);
  31131. $241 = $$1263$ & 2049;
  31132. $narrow = ($241|0)!=(0);
  31133. $$284$ = $narrow&1;
  31134. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  31135. label = 66;
  31136. break L71;
  31137. }
  31138. break;
  31139. }
  31140. case 117: {
  31141. $165 = $6;
  31142. $166 = $165;
  31143. $167 = HEAP32[$166>>2]|0;
  31144. $168 = (($165) + 4)|0;
  31145. $169 = $168;
  31146. $170 = HEAP32[$169>>2]|0;
  31147. $$0232 = 0;$$0237 = 16170;$242 = $167;$243 = $170;
  31148. label = 66;
  31149. break;
  31150. }
  31151. case 99: {
  31152. $259 = $6;
  31153. $260 = $259;
  31154. $261 = HEAP32[$260>>2]|0;
  31155. $262 = (($259) + 4)|0;
  31156. $263 = $262;
  31157. $264 = HEAP32[$263>>2]|0;
  31158. $265 = $261&255;
  31159. HEAP8[$13>>0] = $265;
  31160. $$2 = $13;$$2234 = 0;$$2239 = 16170;$$2251 = $11;$$5 = 1;$$6268 = $164;
  31161. break;
  31162. }
  31163. case 109: {
  31164. $266 = (___errno_location()|0);
  31165. $267 = HEAP32[$266>>2]|0;
  31166. $268 = (_strerror($267)|0);
  31167. $$1 = $268;
  31168. label = 71;
  31169. break;
  31170. }
  31171. case 115: {
  31172. $269 = HEAP32[$6>>2]|0;
  31173. $270 = ($269|0)!=(0|0);
  31174. $271 = $270 ? $269 : 16180;
  31175. $$1 = $271;
  31176. label = 71;
  31177. break;
  31178. }
  31179. case 67: {
  31180. $278 = $6;
  31181. $279 = $278;
  31182. $280 = HEAP32[$279>>2]|0;
  31183. $281 = (($278) + 4)|0;
  31184. $282 = $281;
  31185. $283 = HEAP32[$282>>2]|0;
  31186. HEAP32[$8>>2] = $280;
  31187. HEAP32[$14>>2] = 0;
  31188. HEAP32[$6>>2] = $8;
  31189. $$4258355 = -1;$331 = $8;
  31190. label = 75;
  31191. break;
  31192. }
  31193. case 83: {
  31194. $$pre349 = HEAP32[$6>>2]|0;
  31195. $284 = ($$0254|0)==(0);
  31196. if ($284) {
  31197. _pad_674($0,32,$$1260,0,$$1263$);
  31198. $$0240$lcssa357 = 0;
  31199. label = 84;
  31200. } else {
  31201. $$4258355 = $$0254;$331 = $$pre349;
  31202. label = 75;
  31203. }
  31204. break;
  31205. }
  31206. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  31207. $306 = +HEAPF64[$6>>3];
  31208. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  31209. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31210. continue L1;
  31211. break;
  31212. }
  31213. default: {
  31214. $$2 = $21;$$2234 = 0;$$2239 = 16170;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  31215. }
  31216. }
  31217. } while(0);
  31218. L95: do {
  31219. if ((label|0) == 61) {
  31220. label = 0;
  31221. $195 = $6;
  31222. $196 = $195;
  31223. $197 = HEAP32[$196>>2]|0;
  31224. $198 = (($195) + 4)|0;
  31225. $199 = $198;
  31226. $200 = HEAP32[$199>>2]|0;
  31227. $201 = $$1236 & 32;
  31228. $202 = (_fmt_x($197,$200,$11,$201)|0);
  31229. $203 = ($197|0)==(0);
  31230. $204 = ($200|0)==(0);
  31231. $205 = $203 & $204;
  31232. $206 = $$3265 & 8;
  31233. $207 = ($206|0)==(0);
  31234. $or$cond283 = $207 | $205;
  31235. $208 = $$1236 >> 4;
  31236. $209 = (16170 + ($208)|0);
  31237. $$289 = $or$cond283 ? 16170 : $209;
  31238. $$290 = $or$cond283 ? 0 : 2;
  31239. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  31240. label = 67;
  31241. }
  31242. else if ((label|0) == 66) {
  31243. label = 0;
  31244. $244 = (_fmt_u($242,$243,$11)|0);
  31245. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  31246. label = 67;
  31247. }
  31248. else if ((label|0) == 71) {
  31249. label = 0;
  31250. $272 = (_memchr($$1,0,$$0254)|0);
  31251. $273 = ($272|0)==(0|0);
  31252. $274 = $272;
  31253. $275 = $$1;
  31254. $276 = (($274) - ($275))|0;
  31255. $277 = (($$1) + ($$0254)|0);
  31256. $$3257 = $273 ? $$0254 : $276;
  31257. $$1250 = $273 ? $277 : $272;
  31258. $$2 = $$1;$$2234 = 0;$$2239 = 16170;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  31259. }
  31260. else if ((label|0) == 75) {
  31261. label = 0;
  31262. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  31263. while(1) {
  31264. $285 = HEAP32[$$0229322>>2]|0;
  31265. $286 = ($285|0)==(0);
  31266. if ($286) {
  31267. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  31268. break;
  31269. }
  31270. $287 = (_wctomb($9,$285)|0);
  31271. $288 = ($287|0)<(0);
  31272. $289 = (($$4258355) - ($$0240321))|0;
  31273. $290 = ($287>>>0)>($289>>>0);
  31274. $or$cond286 = $288 | $290;
  31275. if ($or$cond286) {
  31276. $$0240$lcssa = $$0240321;$$2245 = $287;
  31277. break;
  31278. }
  31279. $291 = ((($$0229322)) + 4|0);
  31280. $292 = (($287) + ($$0240321))|0;
  31281. $293 = ($$4258355>>>0)>($292>>>0);
  31282. if ($293) {
  31283. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  31284. } else {
  31285. $$0240$lcssa = $292;$$2245 = $287;
  31286. break;
  31287. }
  31288. }
  31289. $294 = ($$2245|0)<(0);
  31290. if ($294) {
  31291. $$0 = -1;
  31292. break L1;
  31293. }
  31294. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  31295. $295 = ($$0240$lcssa|0)==(0);
  31296. if ($295) {
  31297. $$0240$lcssa357 = 0;
  31298. label = 84;
  31299. } else {
  31300. $$1230333 = $331;$$1241332 = 0;
  31301. while(1) {
  31302. $296 = HEAP32[$$1230333>>2]|0;
  31303. $297 = ($296|0)==(0);
  31304. if ($297) {
  31305. $$0240$lcssa357 = $$0240$lcssa;
  31306. label = 84;
  31307. break L95;
  31308. }
  31309. $298 = (_wctomb($9,$296)|0);
  31310. $299 = (($298) + ($$1241332))|0;
  31311. $300 = ($299|0)>($$0240$lcssa|0);
  31312. if ($300) {
  31313. $$0240$lcssa357 = $$0240$lcssa;
  31314. label = 84;
  31315. break L95;
  31316. }
  31317. $301 = ((($$1230333)) + 4|0);
  31318. _out($0,$9,$298);
  31319. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  31320. if ($302) {
  31321. $$1230333 = $301;$$1241332 = $299;
  31322. } else {
  31323. $$0240$lcssa357 = $$0240$lcssa;
  31324. label = 84;
  31325. break;
  31326. }
  31327. }
  31328. }
  31329. }
  31330. } while(0);
  31331. if ((label|0) == 67) {
  31332. label = 0;
  31333. $245 = ($$2256|0)>(-1);
  31334. $246 = $$4266 & -65537;
  31335. $$$4266 = $245 ? $246 : $$4266;
  31336. $247 = ($248|0)!=(0);
  31337. $249 = ($250|0)!=(0);
  31338. $251 = $247 | $249;
  31339. $252 = ($$2256|0)!=(0);
  31340. $or$cond = $252 | $251;
  31341. $253 = $$0228;
  31342. $254 = (($12) - ($253))|0;
  31343. $255 = $251 ^ 1;
  31344. $256 = $255&1;
  31345. $257 = (($256) + ($254))|0;
  31346. $258 = ($$2256|0)>($257|0);
  31347. $$2256$ = $258 ? $$2256 : $257;
  31348. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  31349. $$0228$ = $or$cond ? $$0228 : $11;
  31350. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  31351. }
  31352. else if ((label|0) == 84) {
  31353. label = 0;
  31354. $303 = $$1263$ ^ 8192;
  31355. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  31356. $304 = ($$1260|0)>($$0240$lcssa357|0);
  31357. $305 = $304 ? $$1260 : $$0240$lcssa357;
  31358. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31359. continue;
  31360. }
  31361. $308 = $$2251;
  31362. $309 = $$2;
  31363. $310 = (($308) - ($309))|0;
  31364. $311 = ($$5|0)<($310|0);
  31365. $$$5 = $311 ? $310 : $$5;
  31366. $312 = (($$$5) + ($$2234))|0;
  31367. $313 = ($$1260|0)<($312|0);
  31368. $$2261 = $313 ? $312 : $$1260;
  31369. _pad_674($0,32,$$2261,$312,$$6268);
  31370. _out($0,$$2239,$$2234);
  31371. $314 = $$6268 ^ 65536;
  31372. _pad_674($0,48,$$2261,$312,$314);
  31373. _pad_674($0,48,$$$5,$310,0);
  31374. _out($0,$$2,$310);
  31375. $315 = $$6268 ^ 8192;
  31376. _pad_674($0,32,$$2261,$312,$315);
  31377. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31378. }
  31379. L114: do {
  31380. if ((label|0) == 87) {
  31381. $316 = ($0|0)==(0|0);
  31382. if ($316) {
  31383. $317 = ($$0269|0)==(0);
  31384. if ($317) {
  31385. $$0 = 0;
  31386. } else {
  31387. $$2242305 = 1;
  31388. while(1) {
  31389. $318 = (($4) + ($$2242305<<2)|0);
  31390. $319 = HEAP32[$318>>2]|0;
  31391. $320 = ($319|0)==(0);
  31392. if ($320) {
  31393. $$3303 = $$2242305;
  31394. break;
  31395. }
  31396. $321 = (($3) + ($$2242305<<3)|0);
  31397. _pop_arg($321,$319,$2);
  31398. $322 = (($$2242305) + 1)|0;
  31399. $323 = ($322|0)<(10);
  31400. if ($323) {
  31401. $$2242305 = $322;
  31402. } else {
  31403. $$0 = 1;
  31404. break L114;
  31405. }
  31406. }
  31407. while(1) {
  31408. $326 = (($4) + ($$3303<<2)|0);
  31409. $327 = HEAP32[$326>>2]|0;
  31410. $328 = ($327|0)==(0);
  31411. $325 = (($$3303) + 1)|0;
  31412. if (!($328)) {
  31413. $$0 = -1;
  31414. break L114;
  31415. }
  31416. $324 = ($325|0)<(10);
  31417. if ($324) {
  31418. $$3303 = $325;
  31419. } else {
  31420. $$0 = 1;
  31421. break;
  31422. }
  31423. }
  31424. }
  31425. } else {
  31426. $$0 = $$1248;
  31427. }
  31428. }
  31429. } while(0);
  31430. STACKTOP = sp;return ($$0|0);
  31431. }
  31432. function ___lockfile($0) {
  31433. $0 = $0|0;
  31434. var label = 0, sp = 0;
  31435. sp = STACKTOP;
  31436. return 0;
  31437. }
  31438. function ___unlockfile($0) {
  31439. $0 = $0|0;
  31440. var label = 0, sp = 0;
  31441. sp = STACKTOP;
  31442. return;
  31443. }
  31444. function _out($0,$1,$2) {
  31445. $0 = $0|0;
  31446. $1 = $1|0;
  31447. $2 = $2|0;
  31448. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  31449. sp = STACKTOP;
  31450. $3 = HEAP32[$0>>2]|0;
  31451. $4 = $3 & 32;
  31452. $5 = ($4|0)==(0);
  31453. if ($5) {
  31454. (___fwritex($1,$2,$0)|0);
  31455. }
  31456. return;
  31457. }
  31458. function _getint($0) {
  31459. $0 = $0|0;
  31460. 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;
  31461. sp = STACKTOP;
  31462. $1 = HEAP32[$0>>2]|0;
  31463. $2 = HEAP8[$1>>0]|0;
  31464. $3 = $2 << 24 >> 24;
  31465. $isdigittmp4 = (($3) + -48)|0;
  31466. $isdigit5 = ($isdigittmp4>>>0)<(10);
  31467. if ($isdigit5) {
  31468. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  31469. while(1) {
  31470. $4 = ($$06*10)|0;
  31471. $5 = (($isdigittmp7) + ($4))|0;
  31472. $6 = ((($7)) + 1|0);
  31473. HEAP32[$0>>2] = $6;
  31474. $8 = HEAP8[$6>>0]|0;
  31475. $9 = $8 << 24 >> 24;
  31476. $isdigittmp = (($9) + -48)|0;
  31477. $isdigit = ($isdigittmp>>>0)<(10);
  31478. if ($isdigit) {
  31479. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  31480. } else {
  31481. $$0$lcssa = $5;
  31482. break;
  31483. }
  31484. }
  31485. } else {
  31486. $$0$lcssa = 0;
  31487. }
  31488. return ($$0$lcssa|0);
  31489. }
  31490. function _pop_arg($0,$1,$2) {
  31491. $0 = $0|0;
  31492. $1 = $1|0;
  31493. $2 = $2|0;
  31494. 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;
  31495. 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;
  31496. 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;
  31497. 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;
  31498. 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;
  31499. 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;
  31500. 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;
  31501. 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;
  31502. 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;
  31503. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  31504. sp = STACKTOP;
  31505. $3 = ($1>>>0)>(20);
  31506. L1: do {
  31507. if (!($3)) {
  31508. do {
  31509. switch ($1|0) {
  31510. case 9: {
  31511. $arglist_current = HEAP32[$2>>2]|0;
  31512. $4 = $arglist_current;
  31513. $5 = ((0) + 4|0);
  31514. $expanded28 = $5;
  31515. $expanded = (($expanded28) - 1)|0;
  31516. $6 = (($4) + ($expanded))|0;
  31517. $7 = ((0) + 4|0);
  31518. $expanded32 = $7;
  31519. $expanded31 = (($expanded32) - 1)|0;
  31520. $expanded30 = $expanded31 ^ -1;
  31521. $8 = $6 & $expanded30;
  31522. $9 = $8;
  31523. $10 = HEAP32[$9>>2]|0;
  31524. $arglist_next = ((($9)) + 4|0);
  31525. HEAP32[$2>>2] = $arglist_next;
  31526. HEAP32[$0>>2] = $10;
  31527. break L1;
  31528. break;
  31529. }
  31530. case 10: {
  31531. $arglist_current2 = HEAP32[$2>>2]|0;
  31532. $11 = $arglist_current2;
  31533. $12 = ((0) + 4|0);
  31534. $expanded35 = $12;
  31535. $expanded34 = (($expanded35) - 1)|0;
  31536. $13 = (($11) + ($expanded34))|0;
  31537. $14 = ((0) + 4|0);
  31538. $expanded39 = $14;
  31539. $expanded38 = (($expanded39) - 1)|0;
  31540. $expanded37 = $expanded38 ^ -1;
  31541. $15 = $13 & $expanded37;
  31542. $16 = $15;
  31543. $17 = HEAP32[$16>>2]|0;
  31544. $arglist_next3 = ((($16)) + 4|0);
  31545. HEAP32[$2>>2] = $arglist_next3;
  31546. $18 = ($17|0)<(0);
  31547. $19 = $18 << 31 >> 31;
  31548. $20 = $0;
  31549. $21 = $20;
  31550. HEAP32[$21>>2] = $17;
  31551. $22 = (($20) + 4)|0;
  31552. $23 = $22;
  31553. HEAP32[$23>>2] = $19;
  31554. break L1;
  31555. break;
  31556. }
  31557. case 11: {
  31558. $arglist_current5 = HEAP32[$2>>2]|0;
  31559. $24 = $arglist_current5;
  31560. $25 = ((0) + 4|0);
  31561. $expanded42 = $25;
  31562. $expanded41 = (($expanded42) - 1)|0;
  31563. $26 = (($24) + ($expanded41))|0;
  31564. $27 = ((0) + 4|0);
  31565. $expanded46 = $27;
  31566. $expanded45 = (($expanded46) - 1)|0;
  31567. $expanded44 = $expanded45 ^ -1;
  31568. $28 = $26 & $expanded44;
  31569. $29 = $28;
  31570. $30 = HEAP32[$29>>2]|0;
  31571. $arglist_next6 = ((($29)) + 4|0);
  31572. HEAP32[$2>>2] = $arglist_next6;
  31573. $31 = $0;
  31574. $32 = $31;
  31575. HEAP32[$32>>2] = $30;
  31576. $33 = (($31) + 4)|0;
  31577. $34 = $33;
  31578. HEAP32[$34>>2] = 0;
  31579. break L1;
  31580. break;
  31581. }
  31582. case 12: {
  31583. $arglist_current8 = HEAP32[$2>>2]|0;
  31584. $35 = $arglist_current8;
  31585. $36 = ((0) + 8|0);
  31586. $expanded49 = $36;
  31587. $expanded48 = (($expanded49) - 1)|0;
  31588. $37 = (($35) + ($expanded48))|0;
  31589. $38 = ((0) + 8|0);
  31590. $expanded53 = $38;
  31591. $expanded52 = (($expanded53) - 1)|0;
  31592. $expanded51 = $expanded52 ^ -1;
  31593. $39 = $37 & $expanded51;
  31594. $40 = $39;
  31595. $41 = $40;
  31596. $42 = $41;
  31597. $43 = HEAP32[$42>>2]|0;
  31598. $44 = (($41) + 4)|0;
  31599. $45 = $44;
  31600. $46 = HEAP32[$45>>2]|0;
  31601. $arglist_next9 = ((($40)) + 8|0);
  31602. HEAP32[$2>>2] = $arglist_next9;
  31603. $47 = $0;
  31604. $48 = $47;
  31605. HEAP32[$48>>2] = $43;
  31606. $49 = (($47) + 4)|0;
  31607. $50 = $49;
  31608. HEAP32[$50>>2] = $46;
  31609. break L1;
  31610. break;
  31611. }
  31612. case 13: {
  31613. $arglist_current11 = HEAP32[$2>>2]|0;
  31614. $51 = $arglist_current11;
  31615. $52 = ((0) + 4|0);
  31616. $expanded56 = $52;
  31617. $expanded55 = (($expanded56) - 1)|0;
  31618. $53 = (($51) + ($expanded55))|0;
  31619. $54 = ((0) + 4|0);
  31620. $expanded60 = $54;
  31621. $expanded59 = (($expanded60) - 1)|0;
  31622. $expanded58 = $expanded59 ^ -1;
  31623. $55 = $53 & $expanded58;
  31624. $56 = $55;
  31625. $57 = HEAP32[$56>>2]|0;
  31626. $arglist_next12 = ((($56)) + 4|0);
  31627. HEAP32[$2>>2] = $arglist_next12;
  31628. $58 = $57&65535;
  31629. $59 = $58 << 16 >> 16;
  31630. $60 = ($59|0)<(0);
  31631. $61 = $60 << 31 >> 31;
  31632. $62 = $0;
  31633. $63 = $62;
  31634. HEAP32[$63>>2] = $59;
  31635. $64 = (($62) + 4)|0;
  31636. $65 = $64;
  31637. HEAP32[$65>>2] = $61;
  31638. break L1;
  31639. break;
  31640. }
  31641. case 14: {
  31642. $arglist_current14 = HEAP32[$2>>2]|0;
  31643. $66 = $arglist_current14;
  31644. $67 = ((0) + 4|0);
  31645. $expanded63 = $67;
  31646. $expanded62 = (($expanded63) - 1)|0;
  31647. $68 = (($66) + ($expanded62))|0;
  31648. $69 = ((0) + 4|0);
  31649. $expanded67 = $69;
  31650. $expanded66 = (($expanded67) - 1)|0;
  31651. $expanded65 = $expanded66 ^ -1;
  31652. $70 = $68 & $expanded65;
  31653. $71 = $70;
  31654. $72 = HEAP32[$71>>2]|0;
  31655. $arglist_next15 = ((($71)) + 4|0);
  31656. HEAP32[$2>>2] = $arglist_next15;
  31657. $$mask31 = $72 & 65535;
  31658. $73 = $0;
  31659. $74 = $73;
  31660. HEAP32[$74>>2] = $$mask31;
  31661. $75 = (($73) + 4)|0;
  31662. $76 = $75;
  31663. HEAP32[$76>>2] = 0;
  31664. break L1;
  31665. break;
  31666. }
  31667. case 15: {
  31668. $arglist_current17 = HEAP32[$2>>2]|0;
  31669. $77 = $arglist_current17;
  31670. $78 = ((0) + 4|0);
  31671. $expanded70 = $78;
  31672. $expanded69 = (($expanded70) - 1)|0;
  31673. $79 = (($77) + ($expanded69))|0;
  31674. $80 = ((0) + 4|0);
  31675. $expanded74 = $80;
  31676. $expanded73 = (($expanded74) - 1)|0;
  31677. $expanded72 = $expanded73 ^ -1;
  31678. $81 = $79 & $expanded72;
  31679. $82 = $81;
  31680. $83 = HEAP32[$82>>2]|0;
  31681. $arglist_next18 = ((($82)) + 4|0);
  31682. HEAP32[$2>>2] = $arglist_next18;
  31683. $84 = $83&255;
  31684. $85 = $84 << 24 >> 24;
  31685. $86 = ($85|0)<(0);
  31686. $87 = $86 << 31 >> 31;
  31687. $88 = $0;
  31688. $89 = $88;
  31689. HEAP32[$89>>2] = $85;
  31690. $90 = (($88) + 4)|0;
  31691. $91 = $90;
  31692. HEAP32[$91>>2] = $87;
  31693. break L1;
  31694. break;
  31695. }
  31696. case 16: {
  31697. $arglist_current20 = HEAP32[$2>>2]|0;
  31698. $92 = $arglist_current20;
  31699. $93 = ((0) + 4|0);
  31700. $expanded77 = $93;
  31701. $expanded76 = (($expanded77) - 1)|0;
  31702. $94 = (($92) + ($expanded76))|0;
  31703. $95 = ((0) + 4|0);
  31704. $expanded81 = $95;
  31705. $expanded80 = (($expanded81) - 1)|0;
  31706. $expanded79 = $expanded80 ^ -1;
  31707. $96 = $94 & $expanded79;
  31708. $97 = $96;
  31709. $98 = HEAP32[$97>>2]|0;
  31710. $arglist_next21 = ((($97)) + 4|0);
  31711. HEAP32[$2>>2] = $arglist_next21;
  31712. $$mask = $98 & 255;
  31713. $99 = $0;
  31714. $100 = $99;
  31715. HEAP32[$100>>2] = $$mask;
  31716. $101 = (($99) + 4)|0;
  31717. $102 = $101;
  31718. HEAP32[$102>>2] = 0;
  31719. break L1;
  31720. break;
  31721. }
  31722. case 17: {
  31723. $arglist_current23 = HEAP32[$2>>2]|0;
  31724. $103 = $arglist_current23;
  31725. $104 = ((0) + 8|0);
  31726. $expanded84 = $104;
  31727. $expanded83 = (($expanded84) - 1)|0;
  31728. $105 = (($103) + ($expanded83))|0;
  31729. $106 = ((0) + 8|0);
  31730. $expanded88 = $106;
  31731. $expanded87 = (($expanded88) - 1)|0;
  31732. $expanded86 = $expanded87 ^ -1;
  31733. $107 = $105 & $expanded86;
  31734. $108 = $107;
  31735. $109 = +HEAPF64[$108>>3];
  31736. $arglist_next24 = ((($108)) + 8|0);
  31737. HEAP32[$2>>2] = $arglist_next24;
  31738. HEAPF64[$0>>3] = $109;
  31739. break L1;
  31740. break;
  31741. }
  31742. case 18: {
  31743. $arglist_current26 = HEAP32[$2>>2]|0;
  31744. $110 = $arglist_current26;
  31745. $111 = ((0) + 8|0);
  31746. $expanded91 = $111;
  31747. $expanded90 = (($expanded91) - 1)|0;
  31748. $112 = (($110) + ($expanded90))|0;
  31749. $113 = ((0) + 8|0);
  31750. $expanded95 = $113;
  31751. $expanded94 = (($expanded95) - 1)|0;
  31752. $expanded93 = $expanded94 ^ -1;
  31753. $114 = $112 & $expanded93;
  31754. $115 = $114;
  31755. $116 = +HEAPF64[$115>>3];
  31756. $arglist_next27 = ((($115)) + 8|0);
  31757. HEAP32[$2>>2] = $arglist_next27;
  31758. HEAPF64[$0>>3] = $116;
  31759. break L1;
  31760. break;
  31761. }
  31762. default: {
  31763. break L1;
  31764. }
  31765. }
  31766. } while(0);
  31767. }
  31768. } while(0);
  31769. return;
  31770. }
  31771. function _fmt_x($0,$1,$2,$3) {
  31772. $0 = $0|0;
  31773. $1 = $1|0;
  31774. $2 = $2|0;
  31775. $3 = $3|0;
  31776. 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;
  31777. var sp = 0;
  31778. sp = STACKTOP;
  31779. $4 = ($0|0)==(0);
  31780. $5 = ($1|0)==(0);
  31781. $6 = $4 & $5;
  31782. if ($6) {
  31783. $$05$lcssa = $2;
  31784. } else {
  31785. $$056 = $2;$15 = $1;$8 = $0;
  31786. while(1) {
  31787. $7 = $8 & 15;
  31788. $9 = (16218 + ($7)|0);
  31789. $10 = HEAP8[$9>>0]|0;
  31790. $11 = $10&255;
  31791. $12 = $11 | $3;
  31792. $13 = $12&255;
  31793. $14 = ((($$056)) + -1|0);
  31794. HEAP8[$14>>0] = $13;
  31795. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  31796. $17 = tempRet0;
  31797. $18 = ($16|0)==(0);
  31798. $19 = ($17|0)==(0);
  31799. $20 = $18 & $19;
  31800. if ($20) {
  31801. $$05$lcssa = $14;
  31802. break;
  31803. } else {
  31804. $$056 = $14;$15 = $17;$8 = $16;
  31805. }
  31806. }
  31807. }
  31808. return ($$05$lcssa|0);
  31809. }
  31810. function _fmt_o($0,$1,$2) {
  31811. $0 = $0|0;
  31812. $1 = $1|0;
  31813. $2 = $2|0;
  31814. 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;
  31815. sp = STACKTOP;
  31816. $3 = ($0|0)==(0);
  31817. $4 = ($1|0)==(0);
  31818. $5 = $3 & $4;
  31819. if ($5) {
  31820. $$0$lcssa = $2;
  31821. } else {
  31822. $$06 = $2;$11 = $1;$7 = $0;
  31823. while(1) {
  31824. $6 = $7&255;
  31825. $8 = $6 & 7;
  31826. $9 = $8 | 48;
  31827. $10 = ((($$06)) + -1|0);
  31828. HEAP8[$10>>0] = $9;
  31829. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  31830. $13 = tempRet0;
  31831. $14 = ($12|0)==(0);
  31832. $15 = ($13|0)==(0);
  31833. $16 = $14 & $15;
  31834. if ($16) {
  31835. $$0$lcssa = $10;
  31836. break;
  31837. } else {
  31838. $$06 = $10;$11 = $13;$7 = $12;
  31839. }
  31840. }
  31841. }
  31842. return ($$0$lcssa|0);
  31843. }
  31844. function _fmt_u($0,$1,$2) {
  31845. $0 = $0|0;
  31846. $1 = $1|0;
  31847. $2 = $2|0;
  31848. 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;
  31849. 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;
  31850. sp = STACKTOP;
  31851. $3 = ($1>>>0)>(0);
  31852. $4 = ($0>>>0)>(4294967295);
  31853. $5 = ($1|0)==(0);
  31854. $6 = $5 & $4;
  31855. $7 = $3 | $6;
  31856. if ($7) {
  31857. $$0914 = $2;$8 = $0;$9 = $1;
  31858. while(1) {
  31859. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  31860. $11 = tempRet0;
  31861. $12 = $10&255;
  31862. $13 = $12 | 48;
  31863. $14 = ((($$0914)) + -1|0);
  31864. HEAP8[$14>>0] = $13;
  31865. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  31866. $16 = tempRet0;
  31867. $17 = ($9>>>0)>(9);
  31868. $18 = ($8>>>0)>(4294967295);
  31869. $19 = ($9|0)==(9);
  31870. $20 = $19 & $18;
  31871. $21 = $17 | $20;
  31872. if ($21) {
  31873. $$0914 = $14;$8 = $15;$9 = $16;
  31874. } else {
  31875. break;
  31876. }
  31877. }
  31878. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  31879. } else {
  31880. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  31881. }
  31882. $22 = ($$010$lcssa$off0|0)==(0);
  31883. if ($22) {
  31884. $$1$lcssa = $$09$lcssa;
  31885. } else {
  31886. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  31887. while(1) {
  31888. $23 = (($$012>>>0) % 10)&-1;
  31889. $24 = $23 | 48;
  31890. $25 = $24&255;
  31891. $26 = ((($$111)) + -1|0);
  31892. HEAP8[$26>>0] = $25;
  31893. $27 = (($$012>>>0) / 10)&-1;
  31894. $28 = ($$012>>>0)<(10);
  31895. if ($28) {
  31896. $$1$lcssa = $26;
  31897. break;
  31898. } else {
  31899. $$012 = $27;$$111 = $26;
  31900. }
  31901. }
  31902. }
  31903. return ($$1$lcssa|0);
  31904. }
  31905. function _strerror($0) {
  31906. $0 = $0|0;
  31907. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  31908. sp = STACKTOP;
  31909. $1 = (___pthread_self_105()|0);
  31910. $2 = ((($1)) + 188|0);
  31911. $3 = HEAP32[$2>>2]|0;
  31912. $4 = (___strerror_l($0,$3)|0);
  31913. return ($4|0);
  31914. }
  31915. function _memchr($0,$1,$2) {
  31916. $0 = $0|0;
  31917. $1 = $1|0;
  31918. $2 = $2|0;
  31919. 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;
  31920. 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;
  31921. 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;
  31922. sp = STACKTOP;
  31923. $3 = $1 & 255;
  31924. $4 = $0;
  31925. $5 = $4 & 3;
  31926. $6 = ($5|0)!=(0);
  31927. $7 = ($2|0)!=(0);
  31928. $or$cond53 = $7 & $6;
  31929. L1: do {
  31930. if ($or$cond53) {
  31931. $8 = $1&255;
  31932. $$03555 = $0;$$03654 = $2;
  31933. while(1) {
  31934. $9 = HEAP8[$$03555>>0]|0;
  31935. $10 = ($9<<24>>24)==($8<<24>>24);
  31936. if ($10) {
  31937. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  31938. label = 6;
  31939. break L1;
  31940. }
  31941. $11 = ((($$03555)) + 1|0);
  31942. $12 = (($$03654) + -1)|0;
  31943. $13 = $11;
  31944. $14 = $13 & 3;
  31945. $15 = ($14|0)!=(0);
  31946. $16 = ($12|0)!=(0);
  31947. $or$cond = $16 & $15;
  31948. if ($or$cond) {
  31949. $$03555 = $11;$$03654 = $12;
  31950. } else {
  31951. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  31952. label = 5;
  31953. break;
  31954. }
  31955. }
  31956. } else {
  31957. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  31958. label = 5;
  31959. }
  31960. } while(0);
  31961. if ((label|0) == 5) {
  31962. if ($$lcssa) {
  31963. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  31964. label = 6;
  31965. } else {
  31966. $$2 = $$035$lcssa;$$3 = 0;
  31967. }
  31968. }
  31969. L8: do {
  31970. if ((label|0) == 6) {
  31971. $17 = HEAP8[$$035$lcssa65>>0]|0;
  31972. $18 = $1&255;
  31973. $19 = ($17<<24>>24)==($18<<24>>24);
  31974. if ($19) {
  31975. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  31976. } else {
  31977. $20 = Math_imul($3, 16843009)|0;
  31978. $21 = ($$036$lcssa64>>>0)>(3);
  31979. L11: do {
  31980. if ($21) {
  31981. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  31982. while(1) {
  31983. $22 = HEAP32[$$046>>2]|0;
  31984. $23 = $22 ^ $20;
  31985. $24 = (($23) + -16843009)|0;
  31986. $25 = $23 & -2139062144;
  31987. $26 = $25 ^ -2139062144;
  31988. $27 = $26 & $24;
  31989. $28 = ($27|0)==(0);
  31990. if (!($28)) {
  31991. break;
  31992. }
  31993. $29 = ((($$046)) + 4|0);
  31994. $30 = (($$13745) + -4)|0;
  31995. $31 = ($30>>>0)>(3);
  31996. if ($31) {
  31997. $$046 = $29;$$13745 = $30;
  31998. } else {
  31999. $$0$lcssa = $29;$$137$lcssa = $30;
  32000. label = 11;
  32001. break L11;
  32002. }
  32003. }
  32004. $$140 = $$046;$$23839 = $$13745;
  32005. } else {
  32006. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  32007. label = 11;
  32008. }
  32009. } while(0);
  32010. if ((label|0) == 11) {
  32011. $32 = ($$137$lcssa|0)==(0);
  32012. if ($32) {
  32013. $$2 = $$0$lcssa;$$3 = 0;
  32014. break;
  32015. } else {
  32016. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  32017. }
  32018. }
  32019. while(1) {
  32020. $33 = HEAP8[$$140>>0]|0;
  32021. $34 = ($33<<24>>24)==($18<<24>>24);
  32022. if ($34) {
  32023. $$2 = $$140;$$3 = $$23839;
  32024. break L8;
  32025. }
  32026. $35 = ((($$140)) + 1|0);
  32027. $36 = (($$23839) + -1)|0;
  32028. $37 = ($36|0)==(0);
  32029. if ($37) {
  32030. $$2 = $35;$$3 = 0;
  32031. break;
  32032. } else {
  32033. $$140 = $35;$$23839 = $36;
  32034. }
  32035. }
  32036. }
  32037. }
  32038. } while(0);
  32039. $38 = ($$3|0)!=(0);
  32040. $39 = $38 ? $$2 : 0;
  32041. return ($39|0);
  32042. }
  32043. function _pad_674($0,$1,$2,$3,$4) {
  32044. $0 = $0|0;
  32045. $1 = $1|0;
  32046. $2 = $2|0;
  32047. $3 = $3|0;
  32048. $4 = $4|0;
  32049. 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;
  32050. sp = STACKTOP;
  32051. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  32052. $5 = sp;
  32053. $6 = $4 & 73728;
  32054. $7 = ($6|0)==(0);
  32055. $8 = ($2|0)>($3|0);
  32056. $or$cond = $8 & $7;
  32057. if ($or$cond) {
  32058. $9 = (($2) - ($3))|0;
  32059. $10 = ($9>>>0)<(256);
  32060. $11 = $10 ? $9 : 256;
  32061. _memset(($5|0),($1|0),($11|0))|0;
  32062. $12 = ($9>>>0)>(255);
  32063. if ($12) {
  32064. $13 = (($2) - ($3))|0;
  32065. $$011 = $9;
  32066. while(1) {
  32067. _out($0,$5,256);
  32068. $14 = (($$011) + -256)|0;
  32069. $15 = ($14>>>0)>(255);
  32070. if ($15) {
  32071. $$011 = $14;
  32072. } else {
  32073. break;
  32074. }
  32075. }
  32076. $16 = $13 & 255;
  32077. $$0$lcssa = $16;
  32078. } else {
  32079. $$0$lcssa = $9;
  32080. }
  32081. _out($0,$5,$$0$lcssa);
  32082. }
  32083. STACKTOP = sp;return;
  32084. }
  32085. function _wctomb($0,$1) {
  32086. $0 = $0|0;
  32087. $1 = $1|0;
  32088. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  32089. sp = STACKTOP;
  32090. $2 = ($0|0)==(0|0);
  32091. if ($2) {
  32092. $$0 = 0;
  32093. } else {
  32094. $3 = (_wcrtomb($0,$1,0)|0);
  32095. $$0 = $3;
  32096. }
  32097. return ($$0|0);
  32098. }
  32099. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  32100. $0 = $0|0;
  32101. $1 = +$1;
  32102. $2 = $2|0;
  32103. $3 = $3|0;
  32104. $4 = $4|0;
  32105. $5 = $5|0;
  32106. 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;
  32107. 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;
  32108. 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;
  32109. 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;
  32110. 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;
  32111. 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;
  32112. 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;
  32113. 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;
  32114. 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;
  32115. 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;
  32116. 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;
  32117. 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;
  32118. 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;
  32119. 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;
  32120. 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;
  32121. 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;
  32122. 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;
  32123. 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;
  32124. 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;
  32125. 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;
  32126. 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;
  32127. 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;
  32128. 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;
  32129. 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;
  32130. 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;
  32131. 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;
  32132. sp = STACKTOP;
  32133. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  32134. $6 = sp + 8|0;
  32135. $7 = sp;
  32136. $8 = sp + 524|0;
  32137. $9 = $8;
  32138. $10 = sp + 512|0;
  32139. HEAP32[$7>>2] = 0;
  32140. $11 = ((($10)) + 12|0);
  32141. (___DOUBLE_BITS_675($1)|0);
  32142. $12 = tempRet0;
  32143. $13 = ($12|0)<(0);
  32144. if ($13) {
  32145. $14 = -$1;
  32146. $$0471 = $14;$$0520 = 1;$$0521 = 16187;
  32147. } else {
  32148. $15 = $4 & 2048;
  32149. $16 = ($15|0)==(0);
  32150. $17 = $4 & 1;
  32151. $18 = ($17|0)==(0);
  32152. $$ = $18 ? (16188) : (16193);
  32153. $$$ = $16 ? $$ : (16190);
  32154. $19 = $4 & 2049;
  32155. $narrow = ($19|0)!=(0);
  32156. $$534$ = $narrow&1;
  32157. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  32158. }
  32159. (___DOUBLE_BITS_675($$0471)|0);
  32160. $20 = tempRet0;
  32161. $21 = $20 & 2146435072;
  32162. $22 = ($21>>>0)<(2146435072);
  32163. $23 = (0)<(0);
  32164. $24 = ($21|0)==(2146435072);
  32165. $25 = $24 & $23;
  32166. $26 = $22 | $25;
  32167. do {
  32168. if ($26) {
  32169. $35 = (+_frexpl($$0471,$7));
  32170. $36 = $35 * 2.0;
  32171. $37 = $36 != 0.0;
  32172. if ($37) {
  32173. $38 = HEAP32[$7>>2]|0;
  32174. $39 = (($38) + -1)|0;
  32175. HEAP32[$7>>2] = $39;
  32176. }
  32177. $40 = $5 | 32;
  32178. $41 = ($40|0)==(97);
  32179. if ($41) {
  32180. $42 = $5 & 32;
  32181. $43 = ($42|0)==(0);
  32182. $44 = ((($$0521)) + 9|0);
  32183. $$0521$ = $43 ? $$0521 : $44;
  32184. $45 = $$0520 | 2;
  32185. $46 = ($3>>>0)>(11);
  32186. $47 = (12 - ($3))|0;
  32187. $48 = ($47|0)==(0);
  32188. $49 = $46 | $48;
  32189. do {
  32190. if ($49) {
  32191. $$1472 = $36;
  32192. } else {
  32193. $$0509582 = 8.0;$$1508583 = $47;
  32194. while(1) {
  32195. $50 = (($$1508583) + -1)|0;
  32196. $51 = $$0509582 * 16.0;
  32197. $52 = ($50|0)==(0);
  32198. if ($52) {
  32199. break;
  32200. } else {
  32201. $$0509582 = $51;$$1508583 = $50;
  32202. }
  32203. }
  32204. $53 = HEAP8[$$0521$>>0]|0;
  32205. $54 = ($53<<24>>24)==(45);
  32206. if ($54) {
  32207. $55 = -$36;
  32208. $56 = $55 - $51;
  32209. $57 = $51 + $56;
  32210. $58 = -$57;
  32211. $$1472 = $58;
  32212. break;
  32213. } else {
  32214. $59 = $36 + $51;
  32215. $60 = $59 - $51;
  32216. $$1472 = $60;
  32217. break;
  32218. }
  32219. }
  32220. } while(0);
  32221. $61 = HEAP32[$7>>2]|0;
  32222. $62 = ($61|0)<(0);
  32223. $63 = (0 - ($61))|0;
  32224. $64 = $62 ? $63 : $61;
  32225. $65 = ($64|0)<(0);
  32226. $66 = $65 << 31 >> 31;
  32227. $67 = (_fmt_u($64,$66,$11)|0);
  32228. $68 = ($67|0)==($11|0);
  32229. if ($68) {
  32230. $69 = ((($10)) + 11|0);
  32231. HEAP8[$69>>0] = 48;
  32232. $$0511 = $69;
  32233. } else {
  32234. $$0511 = $67;
  32235. }
  32236. $70 = $61 >> 31;
  32237. $71 = $70 & 2;
  32238. $72 = (($71) + 43)|0;
  32239. $73 = $72&255;
  32240. $74 = ((($$0511)) + -1|0);
  32241. HEAP8[$74>>0] = $73;
  32242. $75 = (($5) + 15)|0;
  32243. $76 = $75&255;
  32244. $77 = ((($$0511)) + -2|0);
  32245. HEAP8[$77>>0] = $76;
  32246. $notrhs = ($3|0)<(1);
  32247. $78 = $4 & 8;
  32248. $79 = ($78|0)==(0);
  32249. $$0523 = $8;$$2473 = $$1472;
  32250. while(1) {
  32251. $80 = (~~(($$2473)));
  32252. $81 = (16218 + ($80)|0);
  32253. $82 = HEAP8[$81>>0]|0;
  32254. $83 = $82&255;
  32255. $84 = $83 | $42;
  32256. $85 = $84&255;
  32257. $86 = ((($$0523)) + 1|0);
  32258. HEAP8[$$0523>>0] = $85;
  32259. $87 = (+($80|0));
  32260. $88 = $$2473 - $87;
  32261. $89 = $88 * 16.0;
  32262. $90 = $86;
  32263. $91 = (($90) - ($9))|0;
  32264. $92 = ($91|0)==(1);
  32265. if ($92) {
  32266. $notlhs = $89 == 0.0;
  32267. $or$cond3$not = $notrhs & $notlhs;
  32268. $or$cond = $79 & $or$cond3$not;
  32269. if ($or$cond) {
  32270. $$1524 = $86;
  32271. } else {
  32272. $93 = ((($$0523)) + 2|0);
  32273. HEAP8[$86>>0] = 46;
  32274. $$1524 = $93;
  32275. }
  32276. } else {
  32277. $$1524 = $86;
  32278. }
  32279. $94 = $89 != 0.0;
  32280. if ($94) {
  32281. $$0523 = $$1524;$$2473 = $89;
  32282. } else {
  32283. break;
  32284. }
  32285. }
  32286. $95 = ($3|0)!=(0);
  32287. $96 = $77;
  32288. $97 = $11;
  32289. $98 = $$1524;
  32290. $99 = (($98) - ($9))|0;
  32291. $100 = (($97) - ($96))|0;
  32292. $101 = (($99) + -2)|0;
  32293. $102 = ($101|0)<($3|0);
  32294. $or$cond537 = $95 & $102;
  32295. $103 = (($3) + 2)|0;
  32296. $$pn = $or$cond537 ? $103 : $99;
  32297. $$0525 = (($100) + ($45))|0;
  32298. $104 = (($$0525) + ($$pn))|0;
  32299. _pad_674($0,32,$2,$104,$4);
  32300. _out($0,$$0521$,$45);
  32301. $105 = $4 ^ 65536;
  32302. _pad_674($0,48,$2,$104,$105);
  32303. _out($0,$8,$99);
  32304. $106 = (($$pn) - ($99))|0;
  32305. _pad_674($0,48,$106,0,0);
  32306. _out($0,$77,$100);
  32307. $107 = $4 ^ 8192;
  32308. _pad_674($0,32,$2,$104,$107);
  32309. $$sink562 = $104;
  32310. break;
  32311. }
  32312. $108 = ($3|0)<(0);
  32313. $$539 = $108 ? 6 : $3;
  32314. if ($37) {
  32315. $109 = $36 * 268435456.0;
  32316. $110 = HEAP32[$7>>2]|0;
  32317. $111 = (($110) + -28)|0;
  32318. HEAP32[$7>>2] = $111;
  32319. $$3 = $109;$$pr = $111;
  32320. } else {
  32321. $$pre = HEAP32[$7>>2]|0;
  32322. $$3 = $36;$$pr = $$pre;
  32323. }
  32324. $112 = ($$pr|0)<(0);
  32325. $113 = ((($6)) + 288|0);
  32326. $$556 = $112 ? $6 : $113;
  32327. $$0498 = $$556;$$4 = $$3;
  32328. while(1) {
  32329. $114 = (~~(($$4))>>>0);
  32330. HEAP32[$$0498>>2] = $114;
  32331. $115 = ((($$0498)) + 4|0);
  32332. $116 = (+($114>>>0));
  32333. $117 = $$4 - $116;
  32334. $118 = $117 * 1.0E+9;
  32335. $119 = $118 != 0.0;
  32336. if ($119) {
  32337. $$0498 = $115;$$4 = $118;
  32338. } else {
  32339. break;
  32340. }
  32341. }
  32342. $120 = ($$pr|0)>(0);
  32343. if ($120) {
  32344. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  32345. while(1) {
  32346. $121 = ($122|0)<(29);
  32347. $123 = $121 ? $122 : 29;
  32348. $$0488653 = ((($$1499660)) + -4|0);
  32349. $124 = ($$0488653>>>0)<($$1482661>>>0);
  32350. if ($124) {
  32351. $$2483$ph = $$1482661;
  32352. } else {
  32353. $$0488655 = $$0488653;$$0497654 = 0;
  32354. while(1) {
  32355. $125 = HEAP32[$$0488655>>2]|0;
  32356. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  32357. $127 = tempRet0;
  32358. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  32359. $129 = tempRet0;
  32360. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  32361. $131 = tempRet0;
  32362. HEAP32[$$0488655>>2] = $130;
  32363. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  32364. $133 = tempRet0;
  32365. $$0488 = ((($$0488655)) + -4|0);
  32366. $134 = ($$0488>>>0)<($$1482661>>>0);
  32367. if ($134) {
  32368. break;
  32369. } else {
  32370. $$0488655 = $$0488;$$0497654 = $132;
  32371. }
  32372. }
  32373. $135 = ($132|0)==(0);
  32374. if ($135) {
  32375. $$2483$ph = $$1482661;
  32376. } else {
  32377. $136 = ((($$1482661)) + -4|0);
  32378. HEAP32[$136>>2] = $132;
  32379. $$2483$ph = $136;
  32380. }
  32381. }
  32382. $$2500 = $$1499660;
  32383. while(1) {
  32384. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  32385. if (!($137)) {
  32386. break;
  32387. }
  32388. $138 = ((($$2500)) + -4|0);
  32389. $139 = HEAP32[$138>>2]|0;
  32390. $140 = ($139|0)==(0);
  32391. if ($140) {
  32392. $$2500 = $138;
  32393. } else {
  32394. break;
  32395. }
  32396. }
  32397. $141 = HEAP32[$7>>2]|0;
  32398. $142 = (($141) - ($123))|0;
  32399. HEAP32[$7>>2] = $142;
  32400. $143 = ($142|0)>(0);
  32401. if ($143) {
  32402. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  32403. } else {
  32404. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  32405. break;
  32406. }
  32407. }
  32408. } else {
  32409. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  32410. }
  32411. $144 = ($$pr564|0)<(0);
  32412. if ($144) {
  32413. $145 = (($$539) + 25)|0;
  32414. $146 = (($145|0) / 9)&-1;
  32415. $147 = (($146) + 1)|0;
  32416. $148 = ($40|0)==(102);
  32417. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  32418. while(1) {
  32419. $149 = (0 - ($150))|0;
  32420. $151 = ($149|0)<(9);
  32421. $152 = $151 ? $149 : 9;
  32422. $153 = ($$3484648>>>0)<($$3501647>>>0);
  32423. if ($153) {
  32424. $157 = 1 << $152;
  32425. $158 = (($157) + -1)|0;
  32426. $159 = 1000000000 >>> $152;
  32427. $$0487642 = 0;$$1489641 = $$3484648;
  32428. while(1) {
  32429. $160 = HEAP32[$$1489641>>2]|0;
  32430. $161 = $160 & $158;
  32431. $162 = $160 >>> $152;
  32432. $163 = (($162) + ($$0487642))|0;
  32433. HEAP32[$$1489641>>2] = $163;
  32434. $164 = Math_imul($161, $159)|0;
  32435. $165 = ((($$1489641)) + 4|0);
  32436. $166 = ($165>>>0)<($$3501647>>>0);
  32437. if ($166) {
  32438. $$0487642 = $164;$$1489641 = $165;
  32439. } else {
  32440. break;
  32441. }
  32442. }
  32443. $167 = HEAP32[$$3484648>>2]|0;
  32444. $168 = ($167|0)==(0);
  32445. $169 = ((($$3484648)) + 4|0);
  32446. $$$3484 = $168 ? $169 : $$3484648;
  32447. $170 = ($164|0)==(0);
  32448. if ($170) {
  32449. $$$3484692 = $$$3484;$$4502 = $$3501647;
  32450. } else {
  32451. $171 = ((($$3501647)) + 4|0);
  32452. HEAP32[$$3501647>>2] = $164;
  32453. $$$3484692 = $$$3484;$$4502 = $171;
  32454. }
  32455. } else {
  32456. $154 = HEAP32[$$3484648>>2]|0;
  32457. $155 = ($154|0)==(0);
  32458. $156 = ((($$3484648)) + 4|0);
  32459. $$$3484691 = $155 ? $156 : $$3484648;
  32460. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  32461. }
  32462. $172 = $148 ? $$556 : $$$3484692;
  32463. $173 = $$4502;
  32464. $174 = $172;
  32465. $175 = (($173) - ($174))|0;
  32466. $176 = $175 >> 2;
  32467. $177 = ($176|0)>($147|0);
  32468. $178 = (($172) + ($147<<2)|0);
  32469. $$$4502 = $177 ? $178 : $$4502;
  32470. $179 = HEAP32[$7>>2]|0;
  32471. $180 = (($179) + ($152))|0;
  32472. HEAP32[$7>>2] = $180;
  32473. $181 = ($180|0)<(0);
  32474. if ($181) {
  32475. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  32476. } else {
  32477. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  32478. break;
  32479. }
  32480. }
  32481. } else {
  32482. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  32483. }
  32484. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  32485. $183 = $$556;
  32486. if ($182) {
  32487. $184 = $$3484$lcssa;
  32488. $185 = (($183) - ($184))|0;
  32489. $186 = $185 >> 2;
  32490. $187 = ($186*9)|0;
  32491. $188 = HEAP32[$$3484$lcssa>>2]|0;
  32492. $189 = ($188>>>0)<(10);
  32493. if ($189) {
  32494. $$1515 = $187;
  32495. } else {
  32496. $$0514637 = $187;$$0530636 = 10;
  32497. while(1) {
  32498. $190 = ($$0530636*10)|0;
  32499. $191 = (($$0514637) + 1)|0;
  32500. $192 = ($188>>>0)<($190>>>0);
  32501. if ($192) {
  32502. $$1515 = $191;
  32503. break;
  32504. } else {
  32505. $$0514637 = $191;$$0530636 = $190;
  32506. }
  32507. }
  32508. }
  32509. } else {
  32510. $$1515 = 0;
  32511. }
  32512. $193 = ($40|0)!=(102);
  32513. $194 = $193 ? $$1515 : 0;
  32514. $195 = (($$539) - ($194))|0;
  32515. $196 = ($40|0)==(103);
  32516. $197 = ($$539|0)!=(0);
  32517. $198 = $197 & $196;
  32518. $$neg = $198 << 31 >> 31;
  32519. $199 = (($195) + ($$neg))|0;
  32520. $200 = $$3501$lcssa;
  32521. $201 = (($200) - ($183))|0;
  32522. $202 = $201 >> 2;
  32523. $203 = ($202*9)|0;
  32524. $204 = (($203) + -9)|0;
  32525. $205 = ($199|0)<($204|0);
  32526. if ($205) {
  32527. $206 = ((($$556)) + 4|0);
  32528. $207 = (($199) + 9216)|0;
  32529. $208 = (($207|0) / 9)&-1;
  32530. $209 = (($208) + -1024)|0;
  32531. $210 = (($206) + ($209<<2)|0);
  32532. $211 = (($207|0) % 9)&-1;
  32533. $$0527629 = (($211) + 1)|0;
  32534. $212 = ($$0527629|0)<(9);
  32535. if ($212) {
  32536. $$0527631 = $$0527629;$$1531630 = 10;
  32537. while(1) {
  32538. $213 = ($$1531630*10)|0;
  32539. $$0527 = (($$0527631) + 1)|0;
  32540. $exitcond = ($$0527|0)==(9);
  32541. if ($exitcond) {
  32542. $$1531$lcssa = $213;
  32543. break;
  32544. } else {
  32545. $$0527631 = $$0527;$$1531630 = $213;
  32546. }
  32547. }
  32548. } else {
  32549. $$1531$lcssa = 10;
  32550. }
  32551. $214 = HEAP32[$210>>2]|0;
  32552. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  32553. $216 = ($215|0)==(0);
  32554. $217 = ((($210)) + 4|0);
  32555. $218 = ($217|0)==($$3501$lcssa|0);
  32556. $or$cond541 = $218 & $216;
  32557. if ($or$cond541) {
  32558. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  32559. } else {
  32560. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  32561. $220 = $219 & 1;
  32562. $221 = ($220|0)==(0);
  32563. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  32564. $222 = (($$1531$lcssa|0) / 2)&-1;
  32565. $223 = ($215>>>0)<($222>>>0);
  32566. $224 = ($215|0)==($222|0);
  32567. $or$cond544 = $218 & $224;
  32568. $$559 = $or$cond544 ? 1.0 : 1.5;
  32569. $$$559 = $223 ? 0.5 : $$559;
  32570. $225 = ($$0520|0)==(0);
  32571. if ($225) {
  32572. $$1467 = $$$559;$$1469 = $$542;
  32573. } else {
  32574. $226 = HEAP8[$$0521>>0]|0;
  32575. $227 = ($226<<24>>24)==(45);
  32576. $228 = -$$542;
  32577. $229 = -$$$559;
  32578. $$$542 = $227 ? $228 : $$542;
  32579. $$$$559 = $227 ? $229 : $$$559;
  32580. $$1467 = $$$$559;$$1469 = $$$542;
  32581. }
  32582. $230 = (($214) - ($215))|0;
  32583. HEAP32[$210>>2] = $230;
  32584. $231 = $$1469 + $$1467;
  32585. $232 = $231 != $$1469;
  32586. if ($232) {
  32587. $233 = (($230) + ($$1531$lcssa))|0;
  32588. HEAP32[$210>>2] = $233;
  32589. $234 = ($233>>>0)>(999999999);
  32590. if ($234) {
  32591. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  32592. while(1) {
  32593. $235 = ((($$sink545622)) + -4|0);
  32594. HEAP32[$$sink545622>>2] = 0;
  32595. $236 = ($235>>>0)<($$5486623>>>0);
  32596. if ($236) {
  32597. $237 = ((($$5486623)) + -4|0);
  32598. HEAP32[$237>>2] = 0;
  32599. $$6 = $237;
  32600. } else {
  32601. $$6 = $$5486623;
  32602. }
  32603. $238 = HEAP32[$235>>2]|0;
  32604. $239 = (($238) + 1)|0;
  32605. HEAP32[$235>>2] = $239;
  32606. $240 = ($239>>>0)>(999999999);
  32607. if ($240) {
  32608. $$5486623 = $$6;$$sink545622 = $235;
  32609. } else {
  32610. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  32611. break;
  32612. }
  32613. }
  32614. } else {
  32615. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  32616. }
  32617. $241 = $$5486$lcssa;
  32618. $242 = (($183) - ($241))|0;
  32619. $243 = $242 >> 2;
  32620. $244 = ($243*9)|0;
  32621. $245 = HEAP32[$$5486$lcssa>>2]|0;
  32622. $246 = ($245>>>0)<(10);
  32623. if ($246) {
  32624. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  32625. } else {
  32626. $$2516618 = $244;$$2532617 = 10;
  32627. while(1) {
  32628. $247 = ($$2532617*10)|0;
  32629. $248 = (($$2516618) + 1)|0;
  32630. $249 = ($245>>>0)<($247>>>0);
  32631. if ($249) {
  32632. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  32633. break;
  32634. } else {
  32635. $$2516618 = $248;$$2532617 = $247;
  32636. }
  32637. }
  32638. }
  32639. } else {
  32640. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  32641. }
  32642. }
  32643. $250 = ((($$4492)) + 4|0);
  32644. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  32645. $$$3501 = $251 ? $250 : $$3501$lcssa;
  32646. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  32647. } else {
  32648. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  32649. }
  32650. $$7505 = $$7505$ph;
  32651. while(1) {
  32652. $252 = ($$7505>>>0)>($$9$ph>>>0);
  32653. if (!($252)) {
  32654. $$lcssa673 = 0;
  32655. break;
  32656. }
  32657. $253 = ((($$7505)) + -4|0);
  32658. $254 = HEAP32[$253>>2]|0;
  32659. $255 = ($254|0)==(0);
  32660. if ($255) {
  32661. $$7505 = $253;
  32662. } else {
  32663. $$lcssa673 = 1;
  32664. break;
  32665. }
  32666. }
  32667. $256 = (0 - ($$5519$ph))|0;
  32668. do {
  32669. if ($196) {
  32670. $not$ = $197 ^ 1;
  32671. $257 = $not$&1;
  32672. $$539$ = (($257) + ($$539))|0;
  32673. $258 = ($$539$|0)>($$5519$ph|0);
  32674. $259 = ($$5519$ph|0)>(-5);
  32675. $or$cond6 = $258 & $259;
  32676. if ($or$cond6) {
  32677. $260 = (($5) + -1)|0;
  32678. $$neg567 = (($$539$) + -1)|0;
  32679. $261 = (($$neg567) - ($$5519$ph))|0;
  32680. $$0479 = $260;$$2476 = $261;
  32681. } else {
  32682. $262 = (($5) + -2)|0;
  32683. $263 = (($$539$) + -1)|0;
  32684. $$0479 = $262;$$2476 = $263;
  32685. }
  32686. $264 = $4 & 8;
  32687. $265 = ($264|0)==(0);
  32688. if ($265) {
  32689. if ($$lcssa673) {
  32690. $266 = ((($$7505)) + -4|0);
  32691. $267 = HEAP32[$266>>2]|0;
  32692. $268 = ($267|0)==(0);
  32693. if ($268) {
  32694. $$2529 = 9;
  32695. } else {
  32696. $269 = (($267>>>0) % 10)&-1;
  32697. $270 = ($269|0)==(0);
  32698. if ($270) {
  32699. $$1528614 = 0;$$3533613 = 10;
  32700. while(1) {
  32701. $271 = ($$3533613*10)|0;
  32702. $272 = (($$1528614) + 1)|0;
  32703. $273 = (($267>>>0) % ($271>>>0))&-1;
  32704. $274 = ($273|0)==(0);
  32705. if ($274) {
  32706. $$1528614 = $272;$$3533613 = $271;
  32707. } else {
  32708. $$2529 = $272;
  32709. break;
  32710. }
  32711. }
  32712. } else {
  32713. $$2529 = 0;
  32714. }
  32715. }
  32716. } else {
  32717. $$2529 = 9;
  32718. }
  32719. $275 = $$0479 | 32;
  32720. $276 = ($275|0)==(102);
  32721. $277 = $$7505;
  32722. $278 = (($277) - ($183))|0;
  32723. $279 = $278 >> 2;
  32724. $280 = ($279*9)|0;
  32725. $281 = (($280) + -9)|0;
  32726. if ($276) {
  32727. $282 = (($281) - ($$2529))|0;
  32728. $283 = ($282|0)>(0);
  32729. $$546 = $283 ? $282 : 0;
  32730. $284 = ($$2476|0)<($$546|0);
  32731. $$2476$$547 = $284 ? $$2476 : $$546;
  32732. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  32733. break;
  32734. } else {
  32735. $285 = (($281) + ($$5519$ph))|0;
  32736. $286 = (($285) - ($$2529))|0;
  32737. $287 = ($286|0)>(0);
  32738. $$548 = $287 ? $286 : 0;
  32739. $288 = ($$2476|0)<($$548|0);
  32740. $$2476$$549 = $288 ? $$2476 : $$548;
  32741. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  32742. break;
  32743. }
  32744. } else {
  32745. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  32746. }
  32747. } else {
  32748. $$pre689 = $4 & 8;
  32749. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  32750. }
  32751. } while(0);
  32752. $289 = $$3477 | $$pre$phi690Z2D;
  32753. $290 = ($289|0)!=(0);
  32754. $291 = $290&1;
  32755. $292 = $$1480 | 32;
  32756. $293 = ($292|0)==(102);
  32757. if ($293) {
  32758. $294 = ($$5519$ph|0)>(0);
  32759. $295 = $294 ? $$5519$ph : 0;
  32760. $$2513 = 0;$$pn566 = $295;
  32761. } else {
  32762. $296 = ($$5519$ph|0)<(0);
  32763. $297 = $296 ? $256 : $$5519$ph;
  32764. $298 = ($297|0)<(0);
  32765. $299 = $298 << 31 >> 31;
  32766. $300 = (_fmt_u($297,$299,$11)|0);
  32767. $301 = $11;
  32768. $302 = $300;
  32769. $303 = (($301) - ($302))|0;
  32770. $304 = ($303|0)<(2);
  32771. if ($304) {
  32772. $$1512607 = $300;
  32773. while(1) {
  32774. $305 = ((($$1512607)) + -1|0);
  32775. HEAP8[$305>>0] = 48;
  32776. $306 = $305;
  32777. $307 = (($301) - ($306))|0;
  32778. $308 = ($307|0)<(2);
  32779. if ($308) {
  32780. $$1512607 = $305;
  32781. } else {
  32782. $$1512$lcssa = $305;
  32783. break;
  32784. }
  32785. }
  32786. } else {
  32787. $$1512$lcssa = $300;
  32788. }
  32789. $309 = $$5519$ph >> 31;
  32790. $310 = $309 & 2;
  32791. $311 = (($310) + 43)|0;
  32792. $312 = $311&255;
  32793. $313 = ((($$1512$lcssa)) + -1|0);
  32794. HEAP8[$313>>0] = $312;
  32795. $314 = $$1480&255;
  32796. $315 = ((($$1512$lcssa)) + -2|0);
  32797. HEAP8[$315>>0] = $314;
  32798. $316 = $315;
  32799. $317 = (($301) - ($316))|0;
  32800. $$2513 = $315;$$pn566 = $317;
  32801. }
  32802. $318 = (($$0520) + 1)|0;
  32803. $319 = (($318) + ($$3477))|0;
  32804. $$1526 = (($319) + ($291))|0;
  32805. $320 = (($$1526) + ($$pn566))|0;
  32806. _pad_674($0,32,$2,$320,$4);
  32807. _out($0,$$0521,$$0520);
  32808. $321 = $4 ^ 65536;
  32809. _pad_674($0,48,$2,$320,$321);
  32810. if ($293) {
  32811. $322 = ($$9$ph>>>0)>($$556>>>0);
  32812. $$0496$$9 = $322 ? $$556 : $$9$ph;
  32813. $323 = ((($8)) + 9|0);
  32814. $324 = $323;
  32815. $325 = ((($8)) + 8|0);
  32816. $$5493597 = $$0496$$9;
  32817. while(1) {
  32818. $326 = HEAP32[$$5493597>>2]|0;
  32819. $327 = (_fmt_u($326,0,$323)|0);
  32820. $328 = ($$5493597|0)==($$0496$$9|0);
  32821. if ($328) {
  32822. $334 = ($327|0)==($323|0);
  32823. if ($334) {
  32824. HEAP8[$325>>0] = 48;
  32825. $$1465 = $325;
  32826. } else {
  32827. $$1465 = $327;
  32828. }
  32829. } else {
  32830. $329 = ($327>>>0)>($8>>>0);
  32831. if ($329) {
  32832. $330 = $327;
  32833. $331 = (($330) - ($9))|0;
  32834. _memset(($8|0),48,($331|0))|0;
  32835. $$0464594 = $327;
  32836. while(1) {
  32837. $332 = ((($$0464594)) + -1|0);
  32838. $333 = ($332>>>0)>($8>>>0);
  32839. if ($333) {
  32840. $$0464594 = $332;
  32841. } else {
  32842. $$1465 = $332;
  32843. break;
  32844. }
  32845. }
  32846. } else {
  32847. $$1465 = $327;
  32848. }
  32849. }
  32850. $335 = $$1465;
  32851. $336 = (($324) - ($335))|0;
  32852. _out($0,$$1465,$336);
  32853. $337 = ((($$5493597)) + 4|0);
  32854. $338 = ($337>>>0)>($$556>>>0);
  32855. if ($338) {
  32856. break;
  32857. } else {
  32858. $$5493597 = $337;
  32859. }
  32860. }
  32861. $339 = ($289|0)==(0);
  32862. if (!($339)) {
  32863. _out($0,16234,1);
  32864. }
  32865. $340 = ($337>>>0)<($$7505>>>0);
  32866. $341 = ($$3477|0)>(0);
  32867. $342 = $340 & $341;
  32868. if ($342) {
  32869. $$4478590 = $$3477;$$6494589 = $337;
  32870. while(1) {
  32871. $343 = HEAP32[$$6494589>>2]|0;
  32872. $344 = (_fmt_u($343,0,$323)|0);
  32873. $345 = ($344>>>0)>($8>>>0);
  32874. if ($345) {
  32875. $346 = $344;
  32876. $347 = (($346) - ($9))|0;
  32877. _memset(($8|0),48,($347|0))|0;
  32878. $$0463584 = $344;
  32879. while(1) {
  32880. $348 = ((($$0463584)) + -1|0);
  32881. $349 = ($348>>>0)>($8>>>0);
  32882. if ($349) {
  32883. $$0463584 = $348;
  32884. } else {
  32885. $$0463$lcssa = $348;
  32886. break;
  32887. }
  32888. }
  32889. } else {
  32890. $$0463$lcssa = $344;
  32891. }
  32892. $350 = ($$4478590|0)<(9);
  32893. $351 = $350 ? $$4478590 : 9;
  32894. _out($0,$$0463$lcssa,$351);
  32895. $352 = ((($$6494589)) + 4|0);
  32896. $353 = (($$4478590) + -9)|0;
  32897. $354 = ($352>>>0)<($$7505>>>0);
  32898. $355 = ($$4478590|0)>(9);
  32899. $356 = $354 & $355;
  32900. if ($356) {
  32901. $$4478590 = $353;$$6494589 = $352;
  32902. } else {
  32903. $$4478$lcssa = $353;
  32904. break;
  32905. }
  32906. }
  32907. } else {
  32908. $$4478$lcssa = $$3477;
  32909. }
  32910. $357 = (($$4478$lcssa) + 9)|0;
  32911. _pad_674($0,48,$357,9,0);
  32912. } else {
  32913. $358 = ((($$9$ph)) + 4|0);
  32914. $$7505$ = $$lcssa673 ? $$7505 : $358;
  32915. $359 = ($$3477|0)>(-1);
  32916. if ($359) {
  32917. $360 = ((($8)) + 9|0);
  32918. $361 = ($$pre$phi690Z2D|0)==(0);
  32919. $362 = $360;
  32920. $363 = (0 - ($9))|0;
  32921. $364 = ((($8)) + 8|0);
  32922. $$5602 = $$3477;$$7495601 = $$9$ph;
  32923. while(1) {
  32924. $365 = HEAP32[$$7495601>>2]|0;
  32925. $366 = (_fmt_u($365,0,$360)|0);
  32926. $367 = ($366|0)==($360|0);
  32927. if ($367) {
  32928. HEAP8[$364>>0] = 48;
  32929. $$0 = $364;
  32930. } else {
  32931. $$0 = $366;
  32932. }
  32933. $368 = ($$7495601|0)==($$9$ph|0);
  32934. do {
  32935. if ($368) {
  32936. $372 = ((($$0)) + 1|0);
  32937. _out($0,$$0,1);
  32938. $373 = ($$5602|0)<(1);
  32939. $or$cond554 = $361 & $373;
  32940. if ($or$cond554) {
  32941. $$2 = $372;
  32942. break;
  32943. }
  32944. _out($0,16234,1);
  32945. $$2 = $372;
  32946. } else {
  32947. $369 = ($$0>>>0)>($8>>>0);
  32948. if (!($369)) {
  32949. $$2 = $$0;
  32950. break;
  32951. }
  32952. $scevgep684 = (($$0) + ($363)|0);
  32953. $scevgep684685 = $scevgep684;
  32954. _memset(($8|0),48,($scevgep684685|0))|0;
  32955. $$1598 = $$0;
  32956. while(1) {
  32957. $370 = ((($$1598)) + -1|0);
  32958. $371 = ($370>>>0)>($8>>>0);
  32959. if ($371) {
  32960. $$1598 = $370;
  32961. } else {
  32962. $$2 = $370;
  32963. break;
  32964. }
  32965. }
  32966. }
  32967. } while(0);
  32968. $374 = $$2;
  32969. $375 = (($362) - ($374))|0;
  32970. $376 = ($$5602|0)>($375|0);
  32971. $377 = $376 ? $375 : $$5602;
  32972. _out($0,$$2,$377);
  32973. $378 = (($$5602) - ($375))|0;
  32974. $379 = ((($$7495601)) + 4|0);
  32975. $380 = ($379>>>0)<($$7505$>>>0);
  32976. $381 = ($378|0)>(-1);
  32977. $382 = $380 & $381;
  32978. if ($382) {
  32979. $$5602 = $378;$$7495601 = $379;
  32980. } else {
  32981. $$5$lcssa = $378;
  32982. break;
  32983. }
  32984. }
  32985. } else {
  32986. $$5$lcssa = $$3477;
  32987. }
  32988. $383 = (($$5$lcssa) + 18)|0;
  32989. _pad_674($0,48,$383,18,0);
  32990. $384 = $11;
  32991. $385 = $$2513;
  32992. $386 = (($384) - ($385))|0;
  32993. _out($0,$$2513,$386);
  32994. }
  32995. $387 = $4 ^ 8192;
  32996. _pad_674($0,32,$2,$320,$387);
  32997. $$sink562 = $320;
  32998. } else {
  32999. $27 = $5 & 32;
  33000. $28 = ($27|0)!=(0);
  33001. $29 = $28 ? 16206 : 16210;
  33002. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  33003. $31 = $28 ? 18137 : 16214;
  33004. $$0510 = $30 ? $31 : $29;
  33005. $32 = (($$0520) + 3)|0;
  33006. $33 = $4 & -65537;
  33007. _pad_674($0,32,$2,$32,$33);
  33008. _out($0,$$0521,$$0520);
  33009. _out($0,$$0510,3);
  33010. $34 = $4 ^ 8192;
  33011. _pad_674($0,32,$2,$32,$34);
  33012. $$sink562 = $32;
  33013. }
  33014. } while(0);
  33015. $388 = ($$sink562|0)<($2|0);
  33016. $$555 = $388 ? $2 : $$sink562;
  33017. STACKTOP = sp;return ($$555|0);
  33018. }
  33019. function ___DOUBLE_BITS_675($0) {
  33020. $0 = +$0;
  33021. var $1 = 0, $2 = 0, label = 0, sp = 0;
  33022. sp = STACKTOP;
  33023. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  33024. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  33025. tempRet0 = ($2);
  33026. return ($1|0);
  33027. }
  33028. function _frexpl($0,$1) {
  33029. $0 = +$0;
  33030. $1 = $1|0;
  33031. var $2 = 0.0, label = 0, sp = 0;
  33032. sp = STACKTOP;
  33033. $2 = (+_frexp($0,$1));
  33034. return (+$2);
  33035. }
  33036. function _frexp($0,$1) {
  33037. $0 = +$0;
  33038. $1 = $1|0;
  33039. 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;
  33040. var sp = 0;
  33041. sp = STACKTOP;
  33042. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  33043. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  33044. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  33045. $5 = tempRet0;
  33046. $6 = $4&65535;
  33047. $trunc$clear = $6 & 2047;
  33048. switch ($trunc$clear<<16>>16) {
  33049. case 0: {
  33050. $7 = $0 != 0.0;
  33051. if ($7) {
  33052. $8 = $0 * 1.8446744073709552E+19;
  33053. $9 = (+_frexp($8,$1));
  33054. $10 = HEAP32[$1>>2]|0;
  33055. $11 = (($10) + -64)|0;
  33056. $$016 = $9;$storemerge = $11;
  33057. } else {
  33058. $$016 = $0;$storemerge = 0;
  33059. }
  33060. HEAP32[$1>>2] = $storemerge;
  33061. $$0 = $$016;
  33062. break;
  33063. }
  33064. case 2047: {
  33065. $$0 = $0;
  33066. break;
  33067. }
  33068. default: {
  33069. $12 = $4 & 2047;
  33070. $13 = (($12) + -1022)|0;
  33071. HEAP32[$1>>2] = $13;
  33072. $14 = $3 & -2146435073;
  33073. $15 = $14 | 1071644672;
  33074. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  33075. $$0 = $16;
  33076. }
  33077. }
  33078. return (+$$0);
  33079. }
  33080. function _wcrtomb($0,$1,$2) {
  33081. $0 = $0|0;
  33082. $1 = $1|0;
  33083. $2 = $2|0;
  33084. 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;
  33085. 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;
  33086. 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;
  33087. sp = STACKTOP;
  33088. $3 = ($0|0)==(0|0);
  33089. do {
  33090. if ($3) {
  33091. $$0 = 1;
  33092. } else {
  33093. $4 = ($1>>>0)<(128);
  33094. if ($4) {
  33095. $5 = $1&255;
  33096. HEAP8[$0>>0] = $5;
  33097. $$0 = 1;
  33098. break;
  33099. }
  33100. $6 = (___pthread_self_448()|0);
  33101. $7 = ((($6)) + 188|0);
  33102. $8 = HEAP32[$7>>2]|0;
  33103. $9 = HEAP32[$8>>2]|0;
  33104. $not$ = ($9|0)==(0|0);
  33105. if ($not$) {
  33106. $10 = $1 & -128;
  33107. $11 = ($10|0)==(57216);
  33108. if ($11) {
  33109. $13 = $1&255;
  33110. HEAP8[$0>>0] = $13;
  33111. $$0 = 1;
  33112. break;
  33113. } else {
  33114. $12 = (___errno_location()|0);
  33115. HEAP32[$12>>2] = 84;
  33116. $$0 = -1;
  33117. break;
  33118. }
  33119. }
  33120. $14 = ($1>>>0)<(2048);
  33121. if ($14) {
  33122. $15 = $1 >>> 6;
  33123. $16 = $15 | 192;
  33124. $17 = $16&255;
  33125. $18 = ((($0)) + 1|0);
  33126. HEAP8[$0>>0] = $17;
  33127. $19 = $1 & 63;
  33128. $20 = $19 | 128;
  33129. $21 = $20&255;
  33130. HEAP8[$18>>0] = $21;
  33131. $$0 = 2;
  33132. break;
  33133. }
  33134. $22 = ($1>>>0)<(55296);
  33135. $23 = $1 & -8192;
  33136. $24 = ($23|0)==(57344);
  33137. $or$cond = $22 | $24;
  33138. if ($or$cond) {
  33139. $25 = $1 >>> 12;
  33140. $26 = $25 | 224;
  33141. $27 = $26&255;
  33142. $28 = ((($0)) + 1|0);
  33143. HEAP8[$0>>0] = $27;
  33144. $29 = $1 >>> 6;
  33145. $30 = $29 & 63;
  33146. $31 = $30 | 128;
  33147. $32 = $31&255;
  33148. $33 = ((($0)) + 2|0);
  33149. HEAP8[$28>>0] = $32;
  33150. $34 = $1 & 63;
  33151. $35 = $34 | 128;
  33152. $36 = $35&255;
  33153. HEAP8[$33>>0] = $36;
  33154. $$0 = 3;
  33155. break;
  33156. }
  33157. $37 = (($1) + -65536)|0;
  33158. $38 = ($37>>>0)<(1048576);
  33159. if ($38) {
  33160. $39 = $1 >>> 18;
  33161. $40 = $39 | 240;
  33162. $41 = $40&255;
  33163. $42 = ((($0)) + 1|0);
  33164. HEAP8[$0>>0] = $41;
  33165. $43 = $1 >>> 12;
  33166. $44 = $43 & 63;
  33167. $45 = $44 | 128;
  33168. $46 = $45&255;
  33169. $47 = ((($0)) + 2|0);
  33170. HEAP8[$42>>0] = $46;
  33171. $48 = $1 >>> 6;
  33172. $49 = $48 & 63;
  33173. $50 = $49 | 128;
  33174. $51 = $50&255;
  33175. $52 = ((($0)) + 3|0);
  33176. HEAP8[$47>>0] = $51;
  33177. $53 = $1 & 63;
  33178. $54 = $53 | 128;
  33179. $55 = $54&255;
  33180. HEAP8[$52>>0] = $55;
  33181. $$0 = 4;
  33182. break;
  33183. } else {
  33184. $56 = (___errno_location()|0);
  33185. HEAP32[$56>>2] = 84;
  33186. $$0 = -1;
  33187. break;
  33188. }
  33189. }
  33190. } while(0);
  33191. return ($$0|0);
  33192. }
  33193. function ___pthread_self_448() {
  33194. var $0 = 0, label = 0, sp = 0;
  33195. sp = STACKTOP;
  33196. $0 = (_pthread_self()|0);
  33197. return ($0|0);
  33198. }
  33199. function ___pthread_self_105() {
  33200. var $0 = 0, label = 0, sp = 0;
  33201. sp = STACKTOP;
  33202. $0 = (_pthread_self()|0);
  33203. return ($0|0);
  33204. }
  33205. function ___strerror_l($0,$1) {
  33206. $0 = $0|0;
  33207. $1 = $1|0;
  33208. 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;
  33209. var label = 0, sp = 0;
  33210. sp = STACKTOP;
  33211. $$016 = 0;
  33212. while(1) {
  33213. $3 = (16236 + ($$016)|0);
  33214. $4 = HEAP8[$3>>0]|0;
  33215. $5 = $4&255;
  33216. $6 = ($5|0)==($0|0);
  33217. if ($6) {
  33218. label = 2;
  33219. break;
  33220. }
  33221. $7 = (($$016) + 1)|0;
  33222. $8 = ($7|0)==(87);
  33223. if ($8) {
  33224. $$01214 = 16324;$$115 = 87;
  33225. label = 5;
  33226. break;
  33227. } else {
  33228. $$016 = $7;
  33229. }
  33230. }
  33231. if ((label|0) == 2) {
  33232. $2 = ($$016|0)==(0);
  33233. if ($2) {
  33234. $$012$lcssa = 16324;
  33235. } else {
  33236. $$01214 = 16324;$$115 = $$016;
  33237. label = 5;
  33238. }
  33239. }
  33240. if ((label|0) == 5) {
  33241. while(1) {
  33242. label = 0;
  33243. $$113 = $$01214;
  33244. while(1) {
  33245. $9 = HEAP8[$$113>>0]|0;
  33246. $10 = ($9<<24>>24)==(0);
  33247. $11 = ((($$113)) + 1|0);
  33248. if ($10) {
  33249. break;
  33250. } else {
  33251. $$113 = $11;
  33252. }
  33253. }
  33254. $12 = (($$115) + -1)|0;
  33255. $13 = ($12|0)==(0);
  33256. if ($13) {
  33257. $$012$lcssa = $11;
  33258. break;
  33259. } else {
  33260. $$01214 = $11;$$115 = $12;
  33261. label = 5;
  33262. }
  33263. }
  33264. }
  33265. $14 = ((($1)) + 20|0);
  33266. $15 = HEAP32[$14>>2]|0;
  33267. $16 = (___lctrans($$012$lcssa,$15)|0);
  33268. return ($16|0);
  33269. }
  33270. function ___lctrans($0,$1) {
  33271. $0 = $0|0;
  33272. $1 = $1|0;
  33273. var $2 = 0, label = 0, sp = 0;
  33274. sp = STACKTOP;
  33275. $2 = (___lctrans_impl($0,$1)|0);
  33276. return ($2|0);
  33277. }
  33278. function ___lctrans_impl($0,$1) {
  33279. $0 = $0|0;
  33280. $1 = $1|0;
  33281. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  33282. sp = STACKTOP;
  33283. $2 = ($1|0)==(0|0);
  33284. if ($2) {
  33285. $$0 = 0;
  33286. } else {
  33287. $3 = HEAP32[$1>>2]|0;
  33288. $4 = ((($1)) + 4|0);
  33289. $5 = HEAP32[$4>>2]|0;
  33290. $6 = (___mo_lookup($3,$5,$0)|0);
  33291. $$0 = $6;
  33292. }
  33293. $7 = ($$0|0)!=(0|0);
  33294. $8 = $7 ? $$0 : $0;
  33295. return ($8|0);
  33296. }
  33297. function ___mo_lookup($0,$1,$2) {
  33298. $0 = $0|0;
  33299. $1 = $1|0;
  33300. $2 = $2|0;
  33301. 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;
  33302. 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;
  33303. 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;
  33304. 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;
  33305. sp = STACKTOP;
  33306. $3 = HEAP32[$0>>2]|0;
  33307. $4 = (($3) + 1794895138)|0;
  33308. $5 = ((($0)) + 8|0);
  33309. $6 = HEAP32[$5>>2]|0;
  33310. $7 = (_swapc($6,$4)|0);
  33311. $8 = ((($0)) + 12|0);
  33312. $9 = HEAP32[$8>>2]|0;
  33313. $10 = (_swapc($9,$4)|0);
  33314. $11 = ((($0)) + 16|0);
  33315. $12 = HEAP32[$11>>2]|0;
  33316. $13 = (_swapc($12,$4)|0);
  33317. $14 = $1 >>> 2;
  33318. $15 = ($7>>>0)<($14>>>0);
  33319. L1: do {
  33320. if ($15) {
  33321. $16 = $7 << 2;
  33322. $17 = (($1) - ($16))|0;
  33323. $18 = ($10>>>0)<($17>>>0);
  33324. $19 = ($13>>>0)<($17>>>0);
  33325. $or$cond = $18 & $19;
  33326. if ($or$cond) {
  33327. $20 = $13 | $10;
  33328. $21 = $20 & 3;
  33329. $22 = ($21|0)==(0);
  33330. if ($22) {
  33331. $23 = $10 >>> 2;
  33332. $24 = $13 >>> 2;
  33333. $$090 = 0;$$094 = $7;
  33334. while(1) {
  33335. $25 = $$094 >>> 1;
  33336. $26 = (($$090) + ($25))|0;
  33337. $27 = $26 << 1;
  33338. $28 = (($27) + ($23))|0;
  33339. $29 = (($0) + ($28<<2)|0);
  33340. $30 = HEAP32[$29>>2]|0;
  33341. $31 = (_swapc($30,$4)|0);
  33342. $32 = (($28) + 1)|0;
  33343. $33 = (($0) + ($32<<2)|0);
  33344. $34 = HEAP32[$33>>2]|0;
  33345. $35 = (_swapc($34,$4)|0);
  33346. $36 = ($35>>>0)<($1>>>0);
  33347. $37 = (($1) - ($35))|0;
  33348. $38 = ($31>>>0)<($37>>>0);
  33349. $or$cond102 = $36 & $38;
  33350. if (!($or$cond102)) {
  33351. $$4 = 0;
  33352. break L1;
  33353. }
  33354. $39 = (($35) + ($31))|0;
  33355. $40 = (($0) + ($39)|0);
  33356. $41 = HEAP8[$40>>0]|0;
  33357. $42 = ($41<<24>>24)==(0);
  33358. if (!($42)) {
  33359. $$4 = 0;
  33360. break L1;
  33361. }
  33362. $43 = (($0) + ($35)|0);
  33363. $44 = (_strcmp($2,$43)|0);
  33364. $45 = ($44|0)==(0);
  33365. if ($45) {
  33366. break;
  33367. }
  33368. $62 = ($$094|0)==(1);
  33369. $63 = ($44|0)<(0);
  33370. $64 = (($$094) - ($25))|0;
  33371. $$195 = $63 ? $25 : $64;
  33372. $$191 = $63 ? $$090 : $26;
  33373. if ($62) {
  33374. $$4 = 0;
  33375. break L1;
  33376. } else {
  33377. $$090 = $$191;$$094 = $$195;
  33378. }
  33379. }
  33380. $46 = (($27) + ($24))|0;
  33381. $47 = (($0) + ($46<<2)|0);
  33382. $48 = HEAP32[$47>>2]|0;
  33383. $49 = (_swapc($48,$4)|0);
  33384. $50 = (($46) + 1)|0;
  33385. $51 = (($0) + ($50<<2)|0);
  33386. $52 = HEAP32[$51>>2]|0;
  33387. $53 = (_swapc($52,$4)|0);
  33388. $54 = ($53>>>0)<($1>>>0);
  33389. $55 = (($1) - ($53))|0;
  33390. $56 = ($49>>>0)<($55>>>0);
  33391. $or$cond104 = $54 & $56;
  33392. if ($or$cond104) {
  33393. $57 = (($0) + ($53)|0);
  33394. $58 = (($53) + ($49))|0;
  33395. $59 = (($0) + ($58)|0);
  33396. $60 = HEAP8[$59>>0]|0;
  33397. $61 = ($60<<24>>24)==(0);
  33398. $$ = $61 ? $57 : 0;
  33399. $$4 = $$;
  33400. } else {
  33401. $$4 = 0;
  33402. }
  33403. } else {
  33404. $$4 = 0;
  33405. }
  33406. } else {
  33407. $$4 = 0;
  33408. }
  33409. } else {
  33410. $$4 = 0;
  33411. }
  33412. } while(0);
  33413. return ($$4|0);
  33414. }
  33415. function _swapc($0,$1) {
  33416. $0 = $0|0;
  33417. $1 = $1|0;
  33418. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  33419. sp = STACKTOP;
  33420. $2 = ($1|0)==(0);
  33421. $3 = (_llvm_bswap_i32(($0|0))|0);
  33422. $$ = $2 ? $0 : $3;
  33423. return ($$|0);
  33424. }
  33425. function ___fwritex($0,$1,$2) {
  33426. $0 = $0|0;
  33427. $1 = $1|0;
  33428. $2 = $2|0;
  33429. 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;
  33430. 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;
  33431. var label = 0, sp = 0;
  33432. sp = STACKTOP;
  33433. $3 = ((($2)) + 16|0);
  33434. $4 = HEAP32[$3>>2]|0;
  33435. $5 = ($4|0)==(0|0);
  33436. if ($5) {
  33437. $7 = (___towrite($2)|0);
  33438. $8 = ($7|0)==(0);
  33439. if ($8) {
  33440. $$pre = HEAP32[$3>>2]|0;
  33441. $12 = $$pre;
  33442. label = 5;
  33443. } else {
  33444. $$1 = 0;
  33445. }
  33446. } else {
  33447. $6 = $4;
  33448. $12 = $6;
  33449. label = 5;
  33450. }
  33451. L5: do {
  33452. if ((label|0) == 5) {
  33453. $9 = ((($2)) + 20|0);
  33454. $10 = HEAP32[$9>>2]|0;
  33455. $11 = (($12) - ($10))|0;
  33456. $13 = ($11>>>0)<($1>>>0);
  33457. $14 = $10;
  33458. if ($13) {
  33459. $15 = ((($2)) + 36|0);
  33460. $16 = HEAP32[$15>>2]|0;
  33461. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  33462. $$1 = $17;
  33463. break;
  33464. }
  33465. $18 = ((($2)) + 75|0);
  33466. $19 = HEAP8[$18>>0]|0;
  33467. $20 = ($19<<24>>24)>(-1);
  33468. L10: do {
  33469. if ($20) {
  33470. $$038 = $1;
  33471. while(1) {
  33472. $21 = ($$038|0)==(0);
  33473. if ($21) {
  33474. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  33475. break L10;
  33476. }
  33477. $22 = (($$038) + -1)|0;
  33478. $23 = (($0) + ($22)|0);
  33479. $24 = HEAP8[$23>>0]|0;
  33480. $25 = ($24<<24>>24)==(10);
  33481. if ($25) {
  33482. break;
  33483. } else {
  33484. $$038 = $22;
  33485. }
  33486. }
  33487. $26 = ((($2)) + 36|0);
  33488. $27 = HEAP32[$26>>2]|0;
  33489. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  33490. $29 = ($28>>>0)<($$038>>>0);
  33491. if ($29) {
  33492. $$1 = $28;
  33493. break L5;
  33494. }
  33495. $30 = (($0) + ($$038)|0);
  33496. $$042 = (($1) - ($$038))|0;
  33497. $$pre47 = HEAP32[$9>>2]|0;
  33498. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  33499. } else {
  33500. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  33501. }
  33502. } while(0);
  33503. _memcpy(($31|0),($$141|0),($$143|0))|0;
  33504. $32 = HEAP32[$9>>2]|0;
  33505. $33 = (($32) + ($$143)|0);
  33506. HEAP32[$9>>2] = $33;
  33507. $34 = (($$139) + ($$143))|0;
  33508. $$1 = $34;
  33509. }
  33510. } while(0);
  33511. return ($$1|0);
  33512. }
  33513. function ___towrite($0) {
  33514. $0 = $0|0;
  33515. 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;
  33516. var $9 = 0, label = 0, sp = 0;
  33517. sp = STACKTOP;
  33518. $1 = ((($0)) + 74|0);
  33519. $2 = HEAP8[$1>>0]|0;
  33520. $3 = $2 << 24 >> 24;
  33521. $4 = (($3) + 255)|0;
  33522. $5 = $4 | $3;
  33523. $6 = $5&255;
  33524. HEAP8[$1>>0] = $6;
  33525. $7 = HEAP32[$0>>2]|0;
  33526. $8 = $7 & 8;
  33527. $9 = ($8|0)==(0);
  33528. if ($9) {
  33529. $11 = ((($0)) + 8|0);
  33530. HEAP32[$11>>2] = 0;
  33531. $12 = ((($0)) + 4|0);
  33532. HEAP32[$12>>2] = 0;
  33533. $13 = ((($0)) + 44|0);
  33534. $14 = HEAP32[$13>>2]|0;
  33535. $15 = ((($0)) + 28|0);
  33536. HEAP32[$15>>2] = $14;
  33537. $16 = ((($0)) + 20|0);
  33538. HEAP32[$16>>2] = $14;
  33539. $17 = ((($0)) + 48|0);
  33540. $18 = HEAP32[$17>>2]|0;
  33541. $19 = (($14) + ($18)|0);
  33542. $20 = ((($0)) + 16|0);
  33543. HEAP32[$20>>2] = $19;
  33544. $$0 = 0;
  33545. } else {
  33546. $10 = $7 | 32;
  33547. HEAP32[$0>>2] = $10;
  33548. $$0 = -1;
  33549. }
  33550. return ($$0|0);
  33551. }
  33552. function _sn_write($0,$1,$2) {
  33553. $0 = $0|0;
  33554. $1 = $1|0;
  33555. $2 = $2|0;
  33556. var $$ = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33557. sp = STACKTOP;
  33558. $3 = ((($0)) + 16|0);
  33559. $4 = HEAP32[$3>>2]|0;
  33560. $5 = ((($0)) + 20|0);
  33561. $6 = HEAP32[$5>>2]|0;
  33562. $7 = $6;
  33563. $8 = (($4) - ($7))|0;
  33564. $9 = ($8>>>0)>($2>>>0);
  33565. $$ = $9 ? $2 : $8;
  33566. _memcpy(($6|0),($1|0),($$|0))|0;
  33567. $10 = HEAP32[$5>>2]|0;
  33568. $11 = (($10) + ($$)|0);
  33569. HEAP32[$5>>2] = $11;
  33570. return ($2|0);
  33571. }
  33572. function ___floatscan($0,$1,$2) {
  33573. $0 = $0|0;
  33574. $1 = $1|0;
  33575. $2 = $2|0;
  33576. 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;
  33577. 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;
  33578. 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;
  33579. 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;
  33580. 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;
  33581. 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;
  33582. 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;
  33583. 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;
  33584. sp = STACKTOP;
  33585. switch ($1|0) {
  33586. case 0: {
  33587. $$0105$ph = -149;$$0106$ph = 24;
  33588. label = 4;
  33589. break;
  33590. }
  33591. case 1: {
  33592. $$0105$ph = -1074;$$0106$ph = 53;
  33593. label = 4;
  33594. break;
  33595. }
  33596. case 2: {
  33597. $$0105$ph = -1074;$$0106$ph = 53;
  33598. label = 4;
  33599. break;
  33600. }
  33601. default: {
  33602. $$0114 = 0.0;
  33603. }
  33604. }
  33605. L4: do {
  33606. if ((label|0) == 4) {
  33607. $3 = ((($0)) + 4|0);
  33608. $4 = ((($0)) + 100|0);
  33609. while(1) {
  33610. $5 = HEAP32[$3>>2]|0;
  33611. $6 = HEAP32[$4>>2]|0;
  33612. $7 = ($5>>>0)<($6>>>0);
  33613. if ($7) {
  33614. $8 = ((($5)) + 1|0);
  33615. HEAP32[$3>>2] = $8;
  33616. $9 = HEAP8[$5>>0]|0;
  33617. $10 = $9&255;
  33618. $12 = $10;
  33619. } else {
  33620. $11 = (___shgetc($0)|0);
  33621. $12 = $11;
  33622. }
  33623. $13 = (_isspace($12)|0);
  33624. $14 = ($13|0)==(0);
  33625. if ($14) {
  33626. break;
  33627. }
  33628. }
  33629. L13: do {
  33630. switch ($12|0) {
  33631. case 43: case 45: {
  33632. $15 = ($12|0)==(45);
  33633. $16 = $15&1;
  33634. $17 = $16 << 1;
  33635. $18 = (1 - ($17))|0;
  33636. $19 = HEAP32[$3>>2]|0;
  33637. $20 = HEAP32[$4>>2]|0;
  33638. $21 = ($19>>>0)<($20>>>0);
  33639. if ($21) {
  33640. $22 = ((($19)) + 1|0);
  33641. HEAP32[$3>>2] = $22;
  33642. $23 = HEAP8[$19>>0]|0;
  33643. $24 = $23&255;
  33644. $$0 = $24;$$0113 = $18;
  33645. break L13;
  33646. } else {
  33647. $25 = (___shgetc($0)|0);
  33648. $$0 = $25;$$0113 = $18;
  33649. break L13;
  33650. }
  33651. break;
  33652. }
  33653. default: {
  33654. $$0 = $12;$$0113 = 1;
  33655. }
  33656. }
  33657. } while(0);
  33658. $$0107127 = 0;$$1128 = $$0;
  33659. while(1) {
  33660. $26 = $$1128 | 32;
  33661. $27 = (18128 + ($$0107127)|0);
  33662. $28 = HEAP8[$27>>0]|0;
  33663. $29 = $28 << 24 >> 24;
  33664. $30 = ($26|0)==($29|0);
  33665. if (!($30)) {
  33666. $$0107$lcssa = $$0107127;$$1$lcssa = $$1128;
  33667. break;
  33668. }
  33669. $31 = ($$0107127>>>0)<(7);
  33670. do {
  33671. if ($31) {
  33672. $32 = HEAP32[$3>>2]|0;
  33673. $33 = HEAP32[$4>>2]|0;
  33674. $34 = ($32>>>0)<($33>>>0);
  33675. if ($34) {
  33676. $35 = ((($32)) + 1|0);
  33677. HEAP32[$3>>2] = $35;
  33678. $36 = HEAP8[$32>>0]|0;
  33679. $37 = $36&255;
  33680. $$2 = $37;
  33681. break;
  33682. } else {
  33683. $38 = (___shgetc($0)|0);
  33684. $$2 = $38;
  33685. break;
  33686. }
  33687. } else {
  33688. $$2 = $$1128;
  33689. }
  33690. } while(0);
  33691. $39 = (($$0107127) + 1)|0;
  33692. $40 = ($39>>>0)<(8);
  33693. if ($40) {
  33694. $$0107127 = $39;$$1128 = $$2;
  33695. } else {
  33696. $$0107$lcssa = $39;$$1$lcssa = $$2;
  33697. break;
  33698. }
  33699. }
  33700. L29: do {
  33701. switch ($$0107$lcssa|0) {
  33702. case 8: {
  33703. break;
  33704. }
  33705. case 3: {
  33706. label = 23;
  33707. break;
  33708. }
  33709. default: {
  33710. $41 = ($$0107$lcssa>>>0)>(3);
  33711. $42 = ($2|0)!=(0);
  33712. $or$cond5 = $42 & $41;
  33713. if ($or$cond5) {
  33714. $43 = ($$0107$lcssa|0)==(8);
  33715. if ($43) {
  33716. break L29;
  33717. } else {
  33718. label = 23;
  33719. break L29;
  33720. }
  33721. }
  33722. $56 = ($$0107$lcssa|0)==(0);
  33723. L34: do {
  33724. if ($56) {
  33725. $$2109125 = 0;$$3126 = $$1$lcssa;
  33726. while(1) {
  33727. $57 = $$3126 | 32;
  33728. $58 = (18137 + ($$2109125)|0);
  33729. $59 = HEAP8[$58>>0]|0;
  33730. $60 = $59 << 24 >> 24;
  33731. $61 = ($57|0)==($60|0);
  33732. if (!($61)) {
  33733. $$3110 = $$2109125;$$5 = $$3126;
  33734. break L34;
  33735. }
  33736. $62 = ($$2109125>>>0)<(2);
  33737. do {
  33738. if ($62) {
  33739. $63 = HEAP32[$3>>2]|0;
  33740. $64 = HEAP32[$4>>2]|0;
  33741. $65 = ($63>>>0)<($64>>>0);
  33742. if ($65) {
  33743. $66 = ((($63)) + 1|0);
  33744. HEAP32[$3>>2] = $66;
  33745. $67 = HEAP8[$63>>0]|0;
  33746. $68 = $67&255;
  33747. $$4 = $68;
  33748. break;
  33749. } else {
  33750. $69 = (___shgetc($0)|0);
  33751. $$4 = $69;
  33752. break;
  33753. }
  33754. } else {
  33755. $$4 = $$3126;
  33756. }
  33757. } while(0);
  33758. $70 = (($$2109125) + 1)|0;
  33759. $71 = ($70>>>0)<(3);
  33760. if ($71) {
  33761. $$2109125 = $70;$$3126 = $$4;
  33762. } else {
  33763. $$3110 = $70;$$5 = $$4;
  33764. break;
  33765. }
  33766. }
  33767. } else {
  33768. $$3110 = $$0107$lcssa;$$5 = $$1$lcssa;
  33769. }
  33770. } while(0);
  33771. switch ($$3110|0) {
  33772. case 3: {
  33773. $72 = HEAP32[$3>>2]|0;
  33774. $73 = HEAP32[$4>>2]|0;
  33775. $74 = ($72>>>0)<($73>>>0);
  33776. if ($74) {
  33777. $75 = ((($72)) + 1|0);
  33778. HEAP32[$3>>2] = $75;
  33779. $76 = HEAP8[$72>>0]|0;
  33780. $77 = $76&255;
  33781. $80 = $77;
  33782. } else {
  33783. $78 = (___shgetc($0)|0);
  33784. $80 = $78;
  33785. }
  33786. $79 = ($80|0)==(40);
  33787. if ($79) {
  33788. $$4111 = 1;
  33789. } else {
  33790. $81 = HEAP32[$4>>2]|0;
  33791. $82 = ($81|0)==(0|0);
  33792. if ($82) {
  33793. $$0114 = nan;
  33794. break L4;
  33795. }
  33796. $83 = HEAP32[$3>>2]|0;
  33797. $84 = ((($83)) + -1|0);
  33798. HEAP32[$3>>2] = $84;
  33799. $$0114 = nan;
  33800. break L4;
  33801. }
  33802. while(1) {
  33803. $85 = HEAP32[$3>>2]|0;
  33804. $86 = HEAP32[$4>>2]|0;
  33805. $87 = ($85>>>0)<($86>>>0);
  33806. if ($87) {
  33807. $88 = ((($85)) + 1|0);
  33808. HEAP32[$3>>2] = $88;
  33809. $89 = HEAP8[$85>>0]|0;
  33810. $90 = $89&255;
  33811. $93 = $90;
  33812. } else {
  33813. $91 = (___shgetc($0)|0);
  33814. $93 = $91;
  33815. }
  33816. $92 = (($93) + -48)|0;
  33817. $94 = ($92>>>0)<(10);
  33818. $95 = (($93) + -65)|0;
  33819. $96 = ($95>>>0)<(26);
  33820. $or$cond = $94 | $96;
  33821. if (!($or$cond)) {
  33822. $97 = (($93) + -97)|0;
  33823. $98 = ($97>>>0)<(26);
  33824. $99 = ($93|0)==(95);
  33825. $or$cond7 = $99 | $98;
  33826. if (!($or$cond7)) {
  33827. break;
  33828. }
  33829. }
  33830. $111 = (($$4111) + 1)|0;
  33831. $$4111 = $111;
  33832. }
  33833. $100 = ($93|0)==(41);
  33834. if ($100) {
  33835. $$0114 = nan;
  33836. break L4;
  33837. }
  33838. $101 = HEAP32[$4>>2]|0;
  33839. $102 = ($101|0)==(0|0);
  33840. if (!($102)) {
  33841. $103 = HEAP32[$3>>2]|0;
  33842. $104 = ((($103)) + -1|0);
  33843. HEAP32[$3>>2] = $104;
  33844. }
  33845. if (!($42)) {
  33846. $106 = (___errno_location()|0);
  33847. HEAP32[$106>>2] = 22;
  33848. ___shlim($0,0);
  33849. $$0114 = 0.0;
  33850. break L4;
  33851. }
  33852. $105 = ($$4111|0)==(0);
  33853. if ($105) {
  33854. $$0114 = nan;
  33855. break L4;
  33856. } else {
  33857. $$in = $$4111;
  33858. }
  33859. while(1) {
  33860. $107 = (($$in) + -1)|0;
  33861. if (!($102)) {
  33862. $108 = HEAP32[$3>>2]|0;
  33863. $109 = ((($108)) + -1|0);
  33864. HEAP32[$3>>2] = $109;
  33865. }
  33866. $110 = ($107|0)==(0);
  33867. if ($110) {
  33868. $$0114 = nan;
  33869. break L4;
  33870. } else {
  33871. $$in = $107;
  33872. }
  33873. }
  33874. break;
  33875. }
  33876. case 0: {
  33877. $117 = ($$5|0)==(48);
  33878. if ($117) {
  33879. $118 = HEAP32[$3>>2]|0;
  33880. $119 = HEAP32[$4>>2]|0;
  33881. $120 = ($118>>>0)<($119>>>0);
  33882. if ($120) {
  33883. $121 = ((($118)) + 1|0);
  33884. HEAP32[$3>>2] = $121;
  33885. $122 = HEAP8[$118>>0]|0;
  33886. $123 = $122&255;
  33887. $126 = $123;
  33888. } else {
  33889. $124 = (___shgetc($0)|0);
  33890. $126 = $124;
  33891. }
  33892. $125 = $126 | 32;
  33893. $127 = ($125|0)==(120);
  33894. if ($127) {
  33895. $128 = (+_hexfloat($0,$$0106$ph,$$0105$ph,$$0113,$2));
  33896. $$0114 = $128;
  33897. break L4;
  33898. }
  33899. $129 = HEAP32[$4>>2]|0;
  33900. $130 = ($129|0)==(0|0);
  33901. if ($130) {
  33902. $$6 = 48;
  33903. } else {
  33904. $131 = HEAP32[$3>>2]|0;
  33905. $132 = ((($131)) + -1|0);
  33906. HEAP32[$3>>2] = $132;
  33907. $$6 = 48;
  33908. }
  33909. } else {
  33910. $$6 = $$5;
  33911. }
  33912. $133 = (+_decfloat($0,$$6,$$0106$ph,$$0105$ph,$$0113,$2));
  33913. $$0114 = $133;
  33914. break L4;
  33915. break;
  33916. }
  33917. default: {
  33918. $112 = HEAP32[$4>>2]|0;
  33919. $113 = ($112|0)==(0|0);
  33920. if (!($113)) {
  33921. $114 = HEAP32[$3>>2]|0;
  33922. $115 = ((($114)) + -1|0);
  33923. HEAP32[$3>>2] = $115;
  33924. }
  33925. $116 = (___errno_location()|0);
  33926. HEAP32[$116>>2] = 22;
  33927. ___shlim($0,0);
  33928. $$0114 = 0.0;
  33929. break L4;
  33930. }
  33931. }
  33932. }
  33933. }
  33934. } while(0);
  33935. if ((label|0) == 23) {
  33936. $44 = HEAP32[$4>>2]|0;
  33937. $45 = ($44|0)==(0|0);
  33938. if (!($45)) {
  33939. $46 = HEAP32[$3>>2]|0;
  33940. $47 = ((($46)) + -1|0);
  33941. HEAP32[$3>>2] = $47;
  33942. }
  33943. $48 = ($2|0)!=(0);
  33944. $49 = ($$0107$lcssa>>>0)>(3);
  33945. $or$cond9 = $48 & $49;
  33946. if ($or$cond9) {
  33947. $$1108 = $$0107$lcssa;
  33948. while(1) {
  33949. if (!($45)) {
  33950. $50 = HEAP32[$3>>2]|0;
  33951. $51 = ((($50)) + -1|0);
  33952. HEAP32[$3>>2] = $51;
  33953. }
  33954. $52 = (($$1108) + -1)|0;
  33955. $$old8 = ($52>>>0)>(3);
  33956. if ($$old8) {
  33957. $$1108 = $52;
  33958. } else {
  33959. break;
  33960. }
  33961. }
  33962. }
  33963. }
  33964. $53 = (+($$0113|0));
  33965. $54 = $53 * inf;
  33966. $55 = $54;
  33967. $$0114 = $55;
  33968. }
  33969. } while(0);
  33970. return (+$$0114);
  33971. }
  33972. function _hexfloat($0,$1,$2,$3,$4) {
  33973. $0 = $0|0;
  33974. $1 = $1|0;
  33975. $2 = $2|0;
  33976. $3 = $3|0;
  33977. $4 = $4|0;
  33978. 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;
  33979. 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;
  33980. 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;
  33981. 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;
  33982. 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;
  33983. 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;
  33984. 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;
  33985. 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;
  33986. 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;
  33987. 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;
  33988. 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;
  33989. 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;
  33990. 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;
  33991. var $or$cond6 = 0, label = 0, sp = 0;
  33992. sp = STACKTOP;
  33993. $5 = ((($0)) + 4|0);
  33994. $6 = HEAP32[$5>>2]|0;
  33995. $7 = ((($0)) + 100|0);
  33996. $8 = HEAP32[$7>>2]|0;
  33997. $9 = ($6>>>0)<($8>>>0);
  33998. if ($9) {
  33999. $10 = ((($6)) + 1|0);
  34000. HEAP32[$5>>2] = $10;
  34001. $11 = HEAP8[$6>>0]|0;
  34002. $12 = $11&255;
  34003. $$0 = $12;$$0142 = 0;
  34004. } else {
  34005. $13 = (___shgetc($0)|0);
  34006. $$0 = $13;$$0142 = 0;
  34007. }
  34008. L4: while(1) {
  34009. switch ($$0|0) {
  34010. case 46: {
  34011. label = 8;
  34012. break L4;
  34013. break;
  34014. }
  34015. case 48: {
  34016. break;
  34017. }
  34018. default: {
  34019. $$0146 = 0;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$0;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  34020. break L4;
  34021. }
  34022. }
  34023. $14 = HEAP32[$5>>2]|0;
  34024. $15 = HEAP32[$7>>2]|0;
  34025. $16 = ($14>>>0)<($15>>>0);
  34026. if ($16) {
  34027. $17 = ((($14)) + 1|0);
  34028. HEAP32[$5>>2] = $17;
  34029. $18 = HEAP8[$14>>0]|0;
  34030. $19 = $18&255;
  34031. $$0 = $19;$$0142 = 1;
  34032. continue;
  34033. } else {
  34034. $20 = (___shgetc($0)|0);
  34035. $$0 = $20;$$0142 = 1;
  34036. continue;
  34037. }
  34038. }
  34039. if ((label|0) == 8) {
  34040. $21 = HEAP32[$5>>2]|0;
  34041. $22 = HEAP32[$7>>2]|0;
  34042. $23 = ($21>>>0)<($22>>>0);
  34043. if ($23) {
  34044. $24 = ((($21)) + 1|0);
  34045. HEAP32[$5>>2] = $24;
  34046. $25 = HEAP8[$21>>0]|0;
  34047. $26 = $25&255;
  34048. $$1$ph = $26;
  34049. } else {
  34050. $27 = (___shgetc($0)|0);
  34051. $$1$ph = $27;
  34052. }
  34053. $28 = ($$1$ph|0)==(48);
  34054. if ($28) {
  34055. $36 = 0;$37 = 0;
  34056. while(1) {
  34057. $29 = HEAP32[$5>>2]|0;
  34058. $30 = HEAP32[$7>>2]|0;
  34059. $31 = ($29>>>0)<($30>>>0);
  34060. if ($31) {
  34061. $32 = ((($29)) + 1|0);
  34062. HEAP32[$5>>2] = $32;
  34063. $33 = HEAP8[$29>>0]|0;
  34064. $34 = $33&255;
  34065. $41 = $34;
  34066. } else {
  34067. $35 = (___shgetc($0)|0);
  34068. $41 = $35;
  34069. }
  34070. $38 = (_i64Add(($36|0),($37|0),-1,-1)|0);
  34071. $39 = tempRet0;
  34072. $40 = ($41|0)==(48);
  34073. if ($40) {
  34074. $36 = $38;$37 = $39;
  34075. } else {
  34076. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $41;$$2144 = 1;$101 = $39;$53 = 0;$55 = 0;$99 = $38;
  34077. break;
  34078. }
  34079. }
  34080. } else {
  34081. $$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;
  34082. }
  34083. }
  34084. while(1) {
  34085. $42 = (($$2) + -48)|0;
  34086. $43 = ($42>>>0)<(10);
  34087. $44 = ($$2|0)==(46);
  34088. if (!($43)) {
  34089. $45 = $$2 | 32;
  34090. $46 = (($45) + -97)|0;
  34091. $47 = ($46>>>0)<(6);
  34092. $or$cond6 = $44 | $47;
  34093. if (!($or$cond6)) {
  34094. $$2$lcssa = $$2;
  34095. break;
  34096. }
  34097. }
  34098. if ($44) {
  34099. $48 = ($$0146|0)==(0);
  34100. if ($48) {
  34101. $$1147 = 1;$$2150 = $$0148;$$2154 = $$0152;$$2157 = $$0155;$$2161 = $$0159;$$3145 = $$2144;$214 = $55;$215 = $53;$216 = $55;$217 = $53;
  34102. } else {
  34103. $$2$lcssa = 46;
  34104. break;
  34105. }
  34106. } else {
  34107. $49 = ($$2|0)>(57);
  34108. $50 = $$2 | 32;
  34109. $51 = (($50) + -87)|0;
  34110. $$0133 = $49 ? $51 : $42;
  34111. $52 = ($53|0)<(0);
  34112. $54 = ($55>>>0)<(8);
  34113. $56 = ($53|0)==(0);
  34114. $57 = $56 & $54;
  34115. $58 = $52 | $57;
  34116. do {
  34117. if ($58) {
  34118. $59 = $$0159 << 4;
  34119. $60 = (($$0133) + ($59))|0;
  34120. $$1149 = $$0148;$$1153 = $$0152;$$1156 = $$0155;$$1160 = $60;
  34121. } else {
  34122. $61 = ($53|0)<(0);
  34123. $62 = ($55>>>0)<(14);
  34124. $63 = ($53|0)==(0);
  34125. $64 = $63 & $62;
  34126. $65 = $61 | $64;
  34127. if ($65) {
  34128. $66 = (+($$0133|0));
  34129. $67 = $$0152 * 0.0625;
  34130. $68 = $67 * $66;
  34131. $69 = $$0155 + $68;
  34132. $$1149 = $$0148;$$1153 = $67;$$1156 = $69;$$1160 = $$0159;
  34133. break;
  34134. } else {
  34135. $70 = ($$0133|0)==(0);
  34136. $71 = ($$0148|0)!=(0);
  34137. $or$cond = $71 | $70;
  34138. $72 = $$0152 * 0.5;
  34139. $73 = $$0155 + $72;
  34140. $$0155$ = $or$cond ? $$0155 : $73;
  34141. $$0148$ = $or$cond ? $$0148 : 1;
  34142. $$1149 = $$0148$;$$1153 = $$0152;$$1156 = $$0155$;$$1160 = $$0159;
  34143. break;
  34144. }
  34145. }
  34146. } while(0);
  34147. $74 = (_i64Add(($55|0),($53|0),1,0)|0);
  34148. $75 = tempRet0;
  34149. $$1147 = $$0146;$$2150 = $$1149;$$2154 = $$1153;$$2157 = $$1156;$$2161 = $$1160;$$3145 = 1;$214 = $99;$215 = $101;$216 = $74;$217 = $75;
  34150. }
  34151. $76 = HEAP32[$5>>2]|0;
  34152. $77 = HEAP32[$7>>2]|0;
  34153. $78 = ($76>>>0)<($77>>>0);
  34154. if ($78) {
  34155. $79 = ((($76)) + 1|0);
  34156. HEAP32[$5>>2] = $79;
  34157. $80 = HEAP8[$76>>0]|0;
  34158. $81 = $80&255;
  34159. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $81;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  34160. continue;
  34161. } else {
  34162. $82 = (___shgetc($0)|0);
  34163. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $82;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  34164. continue;
  34165. }
  34166. }
  34167. $83 = ($$2144|0)==(0);
  34168. do {
  34169. if ($83) {
  34170. $84 = HEAP32[$7>>2]|0;
  34171. $85 = ($84|0)!=(0|0);
  34172. if ($85) {
  34173. $86 = HEAP32[$5>>2]|0;
  34174. $87 = ((($86)) + -1|0);
  34175. HEAP32[$5>>2] = $87;
  34176. }
  34177. $88 = ($4|0)==(0);
  34178. if ($88) {
  34179. ___shlim($0,0);
  34180. } else {
  34181. if ($85) {
  34182. $89 = HEAP32[$5>>2]|0;
  34183. $90 = ((($89)) + -1|0);
  34184. HEAP32[$5>>2] = $90;
  34185. }
  34186. $91 = ($$0146|0)==(0);
  34187. $92 = ($84|0)==(0|0);
  34188. $or$cond206 = $91 | $92;
  34189. if (!($or$cond206)) {
  34190. $93 = HEAP32[$5>>2]|0;
  34191. $94 = ((($93)) + -1|0);
  34192. HEAP32[$5>>2] = $94;
  34193. }
  34194. }
  34195. $95 = (+($3|0));
  34196. $96 = $95 * 0.0;
  34197. $$0165 = $96;
  34198. } else {
  34199. $97 = ($$0146|0)==(0);
  34200. $98 = $97 ? $55 : $99;
  34201. $100 = $97 ? $53 : $101;
  34202. $102 = ($53|0)<(0);
  34203. $103 = ($55>>>0)<(8);
  34204. $104 = ($53|0)==(0);
  34205. $105 = $104 & $103;
  34206. $106 = $102 | $105;
  34207. if ($106) {
  34208. $$3162183 = $$0159;$108 = $55;$109 = $53;
  34209. while(1) {
  34210. $107 = $$3162183 << 4;
  34211. $110 = (_i64Add(($108|0),($109|0),1,0)|0);
  34212. $111 = tempRet0;
  34213. $112 = ($111|0)<(0);
  34214. $113 = ($110>>>0)<(8);
  34215. $114 = ($111|0)==(0);
  34216. $115 = $114 & $113;
  34217. $116 = $112 | $115;
  34218. if ($116) {
  34219. $$3162183 = $107;$108 = $110;$109 = $111;
  34220. } else {
  34221. $$3162$lcssa = $107;
  34222. break;
  34223. }
  34224. }
  34225. } else {
  34226. $$3162$lcssa = $$0159;
  34227. }
  34228. $117 = $$2$lcssa | 32;
  34229. $118 = ($117|0)==(112);
  34230. if ($118) {
  34231. $119 = (_scanexp($0,$4)|0);
  34232. $120 = tempRet0;
  34233. $121 = ($119|0)==(0);
  34234. $122 = ($120|0)==(-2147483648);
  34235. $123 = $121 & $122;
  34236. if ($123) {
  34237. $124 = ($4|0)==(0);
  34238. if ($124) {
  34239. ___shlim($0,0);
  34240. $$0165 = 0.0;
  34241. break;
  34242. }
  34243. $125 = HEAP32[$7>>2]|0;
  34244. $126 = ($125|0)==(0|0);
  34245. if ($126) {
  34246. $137 = 0;$138 = 0;
  34247. } else {
  34248. $127 = HEAP32[$5>>2]|0;
  34249. $128 = ((($127)) + -1|0);
  34250. HEAP32[$5>>2] = $128;
  34251. $137 = 0;$138 = 0;
  34252. }
  34253. } else {
  34254. $137 = $119;$138 = $120;
  34255. }
  34256. } else {
  34257. $129 = HEAP32[$7>>2]|0;
  34258. $130 = ($129|0)==(0|0);
  34259. if ($130) {
  34260. $137 = 0;$138 = 0;
  34261. } else {
  34262. $131 = HEAP32[$5>>2]|0;
  34263. $132 = ((($131)) + -1|0);
  34264. HEAP32[$5>>2] = $132;
  34265. $137 = 0;$138 = 0;
  34266. }
  34267. }
  34268. $133 = (_bitshift64Shl(($98|0),($100|0),2)|0);
  34269. $134 = tempRet0;
  34270. $135 = (_i64Add(($133|0),($134|0),-32,-1)|0);
  34271. $136 = tempRet0;
  34272. $139 = (_i64Add(($135|0),($136|0),($137|0),($138|0))|0);
  34273. $140 = tempRet0;
  34274. $141 = ($$3162$lcssa|0)==(0);
  34275. if ($141) {
  34276. $142 = (+($3|0));
  34277. $143 = $142 * 0.0;
  34278. $$0165 = $143;
  34279. break;
  34280. }
  34281. $144 = (0 - ($2))|0;
  34282. $145 = ($144|0)<(0);
  34283. $146 = $145 << 31 >> 31;
  34284. $147 = ($140|0)>($146|0);
  34285. $148 = ($139>>>0)>($144>>>0);
  34286. $149 = ($140|0)==($146|0);
  34287. $150 = $149 & $148;
  34288. $151 = $147 | $150;
  34289. if ($151) {
  34290. $152 = (___errno_location()|0);
  34291. HEAP32[$152>>2] = 34;
  34292. $153 = (+($3|0));
  34293. $154 = $153 * 1.7976931348623157E+308;
  34294. $155 = $154 * 1.7976931348623157E+308;
  34295. $$0165 = $155;
  34296. break;
  34297. }
  34298. $156 = (($2) + -106)|0;
  34299. $157 = ($156|0)<(0);
  34300. $158 = $157 << 31 >> 31;
  34301. $159 = ($140|0)<($158|0);
  34302. $160 = ($139>>>0)<($156>>>0);
  34303. $161 = ($140|0)==($158|0);
  34304. $162 = $161 & $160;
  34305. $163 = $159 | $162;
  34306. if ($163) {
  34307. $165 = (___errno_location()|0);
  34308. HEAP32[$165>>2] = 34;
  34309. $166 = (+($3|0));
  34310. $167 = $166 * 2.2250738585072014E-308;
  34311. $168 = $167 * 2.2250738585072014E-308;
  34312. $$0165 = $168;
  34313. break;
  34314. }
  34315. $164 = ($$3162$lcssa|0)>(-1);
  34316. if ($164) {
  34317. $$3158179 = $$0155;$$4163178 = $$3162$lcssa;$173 = $139;$174 = $140;
  34318. while(1) {
  34319. $169 = !($$3158179 >= 0.5);
  34320. $170 = $$4163178 << 1;
  34321. $171 = $$3158179 + -1.0;
  34322. $not$ = $169 ^ 1;
  34323. $172 = $not$&1;
  34324. $$5164 = $170 | $172;
  34325. $$pn = $169 ? $$3158179 : $171;
  34326. $$4 = $$3158179 + $$pn;
  34327. $175 = (_i64Add(($173|0),($174|0),-1,-1)|0);
  34328. $176 = tempRet0;
  34329. $177 = ($$5164|0)>(-1);
  34330. if ($177) {
  34331. $$3158179 = $$4;$$4163178 = $$5164;$173 = $175;$174 = $176;
  34332. } else {
  34333. $$3158$lcssa = $$4;$$4163$lcssa = $$5164;$184 = $175;$185 = $176;
  34334. break;
  34335. }
  34336. }
  34337. } else {
  34338. $$3158$lcssa = $$0155;$$4163$lcssa = $$3162$lcssa;$184 = $139;$185 = $140;
  34339. }
  34340. $178 = ($1|0)<(0);
  34341. $179 = $178 << 31 >> 31;
  34342. $180 = ($2|0)<(0);
  34343. $181 = $180 << 31 >> 31;
  34344. $182 = (_i64Subtract(32,0,($2|0),($181|0))|0);
  34345. $183 = tempRet0;
  34346. $186 = (_i64Add(($182|0),($183|0),($184|0),($185|0))|0);
  34347. $187 = tempRet0;
  34348. $188 = ($179|0)>($187|0);
  34349. $189 = ($1>>>0)>($186>>>0);
  34350. $190 = ($179|0)==($187|0);
  34351. $191 = $190 & $189;
  34352. $192 = $188 | $191;
  34353. if ($192) {
  34354. $193 = ($186|0)>(0);
  34355. if ($193) {
  34356. $$0166 = $186;
  34357. label = 59;
  34358. } else {
  34359. $$0166170 = 0;$197 = 84;
  34360. label = 61;
  34361. }
  34362. } else {
  34363. $$0166 = $1;
  34364. label = 59;
  34365. }
  34366. if ((label|0) == 59) {
  34367. $194 = ($$0166|0)<(53);
  34368. $195 = (84 - ($$0166))|0;
  34369. if ($194) {
  34370. $$0166170 = $$0166;$197 = $195;
  34371. label = 61;
  34372. } else {
  34373. $$pre = (+($3|0));
  34374. $$0151 = 0.0;$$0166169 = $$0166;$$pre$phiZ2D = $$pre;
  34375. }
  34376. }
  34377. if ((label|0) == 61) {
  34378. $196 = (+($3|0));
  34379. $198 = (+_scalbn(1.0,$197));
  34380. $199 = (+_copysignl($198,$196));
  34381. $$0151 = $199;$$0166169 = $$0166170;$$pre$phiZ2D = $196;
  34382. }
  34383. $200 = ($$0166169|0)<(32);
  34384. $201 = $$3158$lcssa != 0.0;
  34385. $or$cond4 = $201 & $200;
  34386. $202 = $$4163$lcssa & 1;
  34387. $203 = ($202|0)==(0);
  34388. $or$cond168 = $203 & $or$cond4;
  34389. $204 = $or$cond168&1;
  34390. $$6 = (($204) + ($$4163$lcssa))|0;
  34391. $$5 = $or$cond168 ? 0.0 : $$3158$lcssa;
  34392. $205 = (+($$6>>>0));
  34393. $206 = $$pre$phiZ2D * $205;
  34394. $207 = $$0151 + $206;
  34395. $208 = $$pre$phiZ2D * $$5;
  34396. $209 = $208 + $207;
  34397. $210 = $209 - $$0151;
  34398. $211 = $210 != 0.0;
  34399. if (!($211)) {
  34400. $212 = (___errno_location()|0);
  34401. HEAP32[$212>>2] = 34;
  34402. }
  34403. $213 = (+_scalbnl($210,$184));
  34404. $$0165 = $213;
  34405. }
  34406. } while(0);
  34407. return (+$$0165);
  34408. }
  34409. function _decfloat($0,$1,$2,$3,$4,$5) {
  34410. $0 = $0|0;
  34411. $1 = $1|0;
  34412. $2 = $2|0;
  34413. $3 = $3|0;
  34414. $4 = $4|0;
  34415. $5 = $5|0;
  34416. 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;
  34417. 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;
  34418. 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;
  34419. 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;
  34420. 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;
  34421. 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;
  34422. 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;
  34423. 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;
  34424. 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;
  34425. 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;
  34426. 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;
  34427. 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;
  34428. 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;
  34429. 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;
  34430. 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;
  34431. 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;
  34432. 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;
  34433. 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;
  34434. 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;
  34435. 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;
  34436. 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;
  34437. 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;
  34438. 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;
  34439. 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;
  34440. 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;
  34441. var label = 0, sp = 0;
  34442. sp = STACKTOP;
  34443. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  34444. $6 = sp;
  34445. $sum = (($3) + ($2))|0;
  34446. $7 = (0 - ($sum))|0;
  34447. $8 = ((($0)) + 4|0);
  34448. $9 = ((($0)) + 100|0);
  34449. $$0329 = $1;$$0396 = 0;
  34450. L1: while(1) {
  34451. switch ($$0329|0) {
  34452. case 46: {
  34453. label = 6;
  34454. break L1;
  34455. break;
  34456. }
  34457. case 48: {
  34458. break;
  34459. }
  34460. default: {
  34461. $$0393 = 0;$$2 = $$0329;$$2398 = $$0396;$366 = 0;$367 = 0;
  34462. break L1;
  34463. }
  34464. }
  34465. $10 = HEAP32[$8>>2]|0;
  34466. $11 = HEAP32[$9>>2]|0;
  34467. $12 = ($10>>>0)<($11>>>0);
  34468. if ($12) {
  34469. $13 = ((($10)) + 1|0);
  34470. HEAP32[$8>>2] = $13;
  34471. $14 = HEAP8[$10>>0]|0;
  34472. $15 = $14&255;
  34473. $$0329 = $15;$$0396 = 1;
  34474. continue;
  34475. } else {
  34476. $16 = (___shgetc($0)|0);
  34477. $$0329 = $16;$$0396 = 1;
  34478. continue;
  34479. }
  34480. }
  34481. if ((label|0) == 6) {
  34482. $17 = HEAP32[$8>>2]|0;
  34483. $18 = HEAP32[$9>>2]|0;
  34484. $19 = ($17>>>0)<($18>>>0);
  34485. if ($19) {
  34486. $20 = ((($17)) + 1|0);
  34487. HEAP32[$8>>2] = $20;
  34488. $21 = HEAP8[$17>>0]|0;
  34489. $22 = $21&255;
  34490. $$1330$ph = $22;
  34491. } else {
  34492. $23 = (___shgetc($0)|0);
  34493. $$1330$ph = $23;
  34494. }
  34495. $24 = ($$1330$ph|0)==(48);
  34496. if ($24) {
  34497. $25 = 0;$26 = 0;
  34498. while(1) {
  34499. $27 = (_i64Add(($25|0),($26|0),-1,-1)|0);
  34500. $28 = tempRet0;
  34501. $29 = HEAP32[$8>>2]|0;
  34502. $30 = HEAP32[$9>>2]|0;
  34503. $31 = ($29>>>0)<($30>>>0);
  34504. if ($31) {
  34505. $32 = ((($29)) + 1|0);
  34506. HEAP32[$8>>2] = $32;
  34507. $33 = HEAP8[$29>>0]|0;
  34508. $34 = $33&255;
  34509. $$1330$be = $34;
  34510. } else {
  34511. $35 = (___shgetc($0)|0);
  34512. $$1330$be = $35;
  34513. }
  34514. $36 = ($$1330$be|0)==(48);
  34515. if ($36) {
  34516. $25 = $27;$26 = $28;
  34517. } else {
  34518. $$0393 = 1;$$2 = $$1330$be;$$2398 = 1;$366 = $27;$367 = $28;
  34519. break;
  34520. }
  34521. }
  34522. } else {
  34523. $$0393 = 1;$$2 = $$1330$ph;$$2398 = $$0396;$366 = 0;$367 = 0;
  34524. }
  34525. }
  34526. HEAP32[$6>>2] = 0;
  34527. $37 = (($$2) + -48)|0;
  34528. $38 = ($37>>>0)<(10);
  34529. $39 = ($$2|0)==(46);
  34530. $40 = $39 | $38;
  34531. L20: do {
  34532. if ($40) {
  34533. $41 = ((($6)) + 496|0);
  34534. $$0341513 = 0;$$0345512 = 0;$$0401509 = 0;$$1394511 = $$0393;$$3399510 = $$2398;$$3514 = $$2;$368 = $39;$369 = $37;$370 = $366;$371 = $367;$44 = 0;$45 = 0;
  34535. L22: while(1) {
  34536. do {
  34537. if ($368) {
  34538. $cond = ($$1394511|0)==(0);
  34539. if ($cond) {
  34540. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = 1;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $44;$373 = $45;$374 = $44;$375 = $45;
  34541. } else {
  34542. break L22;
  34543. }
  34544. } else {
  34545. $43 = ($$0345512|0)<(125);
  34546. $46 = (_i64Add(($44|0),($45|0),1,0)|0);
  34547. $47 = tempRet0;
  34548. $48 = ($$3514|0)!=(48);
  34549. if (!($43)) {
  34550. if (!($48)) {
  34551. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  34552. break;
  34553. }
  34554. $57 = HEAP32[$41>>2]|0;
  34555. $58 = $57 | 1;
  34556. HEAP32[$41>>2] = $58;
  34557. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  34558. break;
  34559. }
  34560. $$$0401 = $48 ? $46 : $$0401509;
  34561. $49 = ($$0341513|0)==(0);
  34562. $$pre = (($6) + ($$0345512<<2)|0);
  34563. if ($49) {
  34564. $$sink = $369;
  34565. } else {
  34566. $50 = HEAP32[$$pre>>2]|0;
  34567. $51 = ($50*10)|0;
  34568. $52 = (($$3514) + -48)|0;
  34569. $53 = (($52) + ($51))|0;
  34570. $$sink = $53;
  34571. }
  34572. HEAP32[$$pre>>2] = $$sink;
  34573. $54 = (($$0341513) + 1)|0;
  34574. $55 = ($54|0)==(9);
  34575. $56 = $55&1;
  34576. $$$0345 = (($56) + ($$0345512))|0;
  34577. $$413 = $55 ? 0 : $54;
  34578. $$2343 = $$413;$$2347 = $$$0345;$$2395 = $$1394511;$$2403 = $$$0401;$$4400 = 1;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  34579. }
  34580. } while(0);
  34581. $59 = HEAP32[$8>>2]|0;
  34582. $60 = HEAP32[$9>>2]|0;
  34583. $61 = ($59>>>0)<($60>>>0);
  34584. if ($61) {
  34585. $62 = ((($59)) + 1|0);
  34586. HEAP32[$8>>2] = $62;
  34587. $63 = HEAP8[$59>>0]|0;
  34588. $64 = $63&255;
  34589. $$3$be = $64;
  34590. } else {
  34591. $65 = (___shgetc($0)|0);
  34592. $$3$be = $65;
  34593. }
  34594. $66 = (($$3$be) + -48)|0;
  34595. $67 = ($66>>>0)<(10);
  34596. $68 = ($$3$be|0)==(46);
  34597. $69 = $68 | $67;
  34598. if ($69) {
  34599. $$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;
  34600. } else {
  34601. $$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;
  34602. label = 29;
  34603. break L20;
  34604. }
  34605. }
  34606. $42 = ($$3399510|0)!=(0);
  34607. $$0341465 = $$0341513;$$0345469 = $$0345512;$$0401475 = $$0401509;$376 = $44;$377 = $45;$378 = $370;$379 = $371;$380 = $42;
  34608. label = 37;
  34609. } else {
  34610. $$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;
  34611. label = 29;
  34612. }
  34613. } while(0);
  34614. do {
  34615. if ((label|0) == 29) {
  34616. $70 = ($$1394$lcssa|0)==(0);
  34617. $71 = $70 ? $73 : $72;
  34618. $74 = $70 ? $76 : $75;
  34619. $77 = ($$3399$lcssa|0)!=(0);
  34620. $78 = $$3$lcssa | 32;
  34621. $79 = ($78|0)==(101);
  34622. $or$cond415 = $77 & $79;
  34623. if (!($or$cond415)) {
  34624. $94 = ($$3$lcssa|0)>(-1);
  34625. if ($94) {
  34626. $$0341465 = $$0341$lcssa;$$0345469 = $$0345$lcssa;$$0401475 = $$0401$lcssa;$376 = $73;$377 = $76;$378 = $71;$379 = $74;$380 = $77;
  34627. label = 37;
  34628. break;
  34629. } else {
  34630. $$0341464 = $$0341$lcssa;$$0345468 = $$0345$lcssa;$$0401474 = $$0401$lcssa;$381 = $73;$382 = $76;$383 = $77;$384 = $71;$385 = $74;
  34631. label = 39;
  34632. break;
  34633. }
  34634. }
  34635. $80 = (_scanexp($0,$5)|0);
  34636. $81 = tempRet0;
  34637. $82 = ($80|0)==(0);
  34638. $83 = ($81|0)==(-2147483648);
  34639. $84 = $82 & $83;
  34640. if ($84) {
  34641. $85 = ($5|0)==(0);
  34642. if ($85) {
  34643. ___shlim($0,0);
  34644. $$1 = 0.0;
  34645. break;
  34646. }
  34647. $86 = HEAP32[$9>>2]|0;
  34648. $87 = ($86|0)==(0|0);
  34649. if ($87) {
  34650. $90 = 0;$91 = 0;
  34651. } else {
  34652. $88 = HEAP32[$8>>2]|0;
  34653. $89 = ((($88)) + -1|0);
  34654. HEAP32[$8>>2] = $89;
  34655. $90 = 0;$91 = 0;
  34656. }
  34657. } else {
  34658. $90 = $80;$91 = $81;
  34659. }
  34660. $92 = (_i64Add(($90|0),($91|0),($71|0),($74|0))|0);
  34661. $93 = tempRet0;
  34662. $$0341463 = $$0341$lcssa;$$0345467 = $$0345$lcssa;$$0401473 = $$0401$lcssa;$105 = $92;$106 = $73;$108 = $93;$109 = $76;
  34663. label = 41;
  34664. }
  34665. } while(0);
  34666. if ((label|0) == 37) {
  34667. $95 = HEAP32[$9>>2]|0;
  34668. $96 = ($95|0)==(0|0);
  34669. if ($96) {
  34670. $$0341464 = $$0341465;$$0345468 = $$0345469;$$0401474 = $$0401475;$381 = $376;$382 = $377;$383 = $380;$384 = $378;$385 = $379;
  34671. label = 39;
  34672. } else {
  34673. $97 = HEAP32[$8>>2]|0;
  34674. $98 = ((($97)) + -1|0);
  34675. HEAP32[$8>>2] = $98;
  34676. if ($380) {
  34677. $$0341463 = $$0341465;$$0345467 = $$0345469;$$0401473 = $$0401475;$105 = $378;$106 = $376;$108 = $379;$109 = $377;
  34678. label = 41;
  34679. } else {
  34680. label = 40;
  34681. }
  34682. }
  34683. }
  34684. if ((label|0) == 39) {
  34685. if ($383) {
  34686. $$0341463 = $$0341464;$$0345467 = $$0345468;$$0401473 = $$0401474;$105 = $384;$106 = $381;$108 = $385;$109 = $382;
  34687. label = 41;
  34688. } else {
  34689. label = 40;
  34690. }
  34691. }
  34692. do {
  34693. if ((label|0) == 40) {
  34694. $99 = (___errno_location()|0);
  34695. HEAP32[$99>>2] = 22;
  34696. ___shlim($0,0);
  34697. $$1 = 0.0;
  34698. }
  34699. else if ((label|0) == 41) {
  34700. $100 = HEAP32[$6>>2]|0;
  34701. $101 = ($100|0)==(0);
  34702. if ($101) {
  34703. $102 = (+($4|0));
  34704. $103 = $102 * 0.0;
  34705. $$1 = $103;
  34706. break;
  34707. }
  34708. $104 = ($105|0)==($106|0);
  34709. $107 = ($108|0)==($109|0);
  34710. $110 = $104 & $107;
  34711. $111 = ($109|0)<(0);
  34712. $112 = ($106>>>0)<(10);
  34713. $113 = ($109|0)==(0);
  34714. $114 = $113 & $112;
  34715. $115 = $111 | $114;
  34716. $or$cond = $115 & $110;
  34717. if ($or$cond) {
  34718. $116 = ($2|0)>(30);
  34719. $117 = $100 >>> $2;
  34720. $118 = ($117|0)==(0);
  34721. $or$cond417 = $116 | $118;
  34722. if ($or$cond417) {
  34723. $119 = (+($4|0));
  34724. $120 = (+($100>>>0));
  34725. $121 = $119 * $120;
  34726. $$1 = $121;
  34727. break;
  34728. }
  34729. }
  34730. $122 = (($3|0) / -2)&-1;
  34731. $123 = ($122|0)<(0);
  34732. $124 = $123 << 31 >> 31;
  34733. $125 = ($108|0)>($124|0);
  34734. $126 = ($105>>>0)>($122>>>0);
  34735. $127 = ($108|0)==($124|0);
  34736. $128 = $127 & $126;
  34737. $129 = $125 | $128;
  34738. if ($129) {
  34739. $130 = (___errno_location()|0);
  34740. HEAP32[$130>>2] = 34;
  34741. $131 = (+($4|0));
  34742. $132 = $131 * 1.7976931348623157E+308;
  34743. $133 = $132 * 1.7976931348623157E+308;
  34744. $$1 = $133;
  34745. break;
  34746. }
  34747. $134 = (($3) + -106)|0;
  34748. $135 = ($134|0)<(0);
  34749. $136 = $135 << 31 >> 31;
  34750. $137 = ($108|0)<($136|0);
  34751. $138 = ($105>>>0)<($134>>>0);
  34752. $139 = ($108|0)==($136|0);
  34753. $140 = $139 & $138;
  34754. $141 = $137 | $140;
  34755. if ($141) {
  34756. $142 = (___errno_location()|0);
  34757. HEAP32[$142>>2] = 34;
  34758. $143 = (+($4|0));
  34759. $144 = $143 * 2.2250738585072014E-308;
  34760. $145 = $144 * 2.2250738585072014E-308;
  34761. $$1 = $145;
  34762. break;
  34763. }
  34764. $146 = ($$0341463|0)==(0);
  34765. if ($146) {
  34766. $$3348 = $$0345467;
  34767. } else {
  34768. $147 = ($$0341463|0)<(9);
  34769. if ($147) {
  34770. $148 = (($6) + ($$0345467<<2)|0);
  34771. $$promoted = HEAP32[$148>>2]|0;
  34772. $$3344503 = $$0341463;$150 = $$promoted;
  34773. while(1) {
  34774. $149 = ($150*10)|0;
  34775. $151 = (($$3344503) + 1)|0;
  34776. $exitcond551 = ($151|0)==(9);
  34777. if ($exitcond551) {
  34778. break;
  34779. } else {
  34780. $$3344503 = $151;$150 = $149;
  34781. }
  34782. }
  34783. HEAP32[$148>>2] = $149;
  34784. }
  34785. $152 = (($$0345467) + 1)|0;
  34786. $$3348 = $152;
  34787. }
  34788. $153 = ($$0401473|0)<(9);
  34789. if ($153) {
  34790. $154 = ($$0401473|0)<=($105|0);
  34791. $155 = ($105|0)<(18);
  34792. $or$cond5 = $154 & $155;
  34793. if ($or$cond5) {
  34794. $156 = ($105|0)==(9);
  34795. $157 = HEAP32[$6>>2]|0;
  34796. if ($156) {
  34797. $158 = (+($4|0));
  34798. $159 = (+($157>>>0));
  34799. $160 = $158 * $159;
  34800. $$1 = $160;
  34801. break;
  34802. }
  34803. $161 = ($105|0)<(9);
  34804. if ($161) {
  34805. $162 = (+($4|0));
  34806. $163 = (+($157>>>0));
  34807. $164 = $162 * $163;
  34808. $165 = (8 - ($105))|0;
  34809. $166 = (4408 + ($165<<2)|0);
  34810. $167 = HEAP32[$166>>2]|0;
  34811. $168 = (+($167|0));
  34812. $169 = $164 / $168;
  34813. $$1 = $169;
  34814. break;
  34815. }
  34816. $$neg442 = Math_imul($105, -3)|0;
  34817. $$neg443 = (($2) + 27)|0;
  34818. $170 = (($$neg443) + ($$neg442))|0;
  34819. $171 = ($170|0)>(30);
  34820. $172 = $157 >>> $170;
  34821. $173 = ($172|0)==(0);
  34822. $or$cond419 = $171 | $173;
  34823. if ($or$cond419) {
  34824. $174 = (($105) + -10)|0;
  34825. $175 = (4408 + ($174<<2)|0);
  34826. $176 = (+($4|0));
  34827. $177 = (+($157>>>0));
  34828. $178 = $176 * $177;
  34829. $179 = HEAP32[$175>>2]|0;
  34830. $180 = (+($179|0));
  34831. $181 = $178 * $180;
  34832. $$1 = $181;
  34833. break;
  34834. }
  34835. }
  34836. }
  34837. $182 = (($105|0) % 9)&-1;
  34838. $183 = ($182|0)==(0);
  34839. if ($183) {
  34840. $$0380$ph = 0;$$1373$ph448 = $$3348;$$2352$ph449 = 0;$$2387$ph447 = $105;
  34841. } else {
  34842. $184 = ($105|0)>(-1);
  34843. $185 = (($182) + 9)|0;
  34844. $186 = $184 ? $182 : $185;
  34845. $187 = (8 - ($186))|0;
  34846. $188 = (4408 + ($187<<2)|0);
  34847. $189 = HEAP32[$188>>2]|0;
  34848. $190 = ($$3348|0)==(0);
  34849. if ($190) {
  34850. $$0350$lcssa554 = 0;$$0372 = 0;$$0385$lcssa553 = $105;
  34851. } else {
  34852. $191 = (1000000000 / ($189|0))&-1;
  34853. $$0340496 = 0;$$0350494 = 0;$$0385493 = $105;$$4349495 = 0;
  34854. while(1) {
  34855. $192 = (($6) + ($$4349495<<2)|0);
  34856. $193 = HEAP32[$192>>2]|0;
  34857. $194 = (($193>>>0) % ($189>>>0))&-1;
  34858. $195 = (($193>>>0) / ($189>>>0))&-1;
  34859. $196 = (($195) + ($$0340496))|0;
  34860. HEAP32[$192>>2] = $196;
  34861. $197 = Math_imul($191, $194)|0;
  34862. $198 = ($$4349495|0)==($$0350494|0);
  34863. $199 = ($196|0)==(0);
  34864. $or$cond420 = $198 & $199;
  34865. $200 = (($$0350494) + 1)|0;
  34866. $201 = $200 & 127;
  34867. $202 = (($$0385493) + -9)|0;
  34868. $$$0385 = $or$cond420 ? $202 : $$0385493;
  34869. $$$0350 = $or$cond420 ? $201 : $$0350494;
  34870. $203 = (($$4349495) + 1)|0;
  34871. $204 = ($203|0)==($$3348|0);
  34872. if ($204) {
  34873. break;
  34874. } else {
  34875. $$0340496 = $197;$$0350494 = $$$0350;$$0385493 = $$$0385;$$4349495 = $203;
  34876. }
  34877. }
  34878. $205 = ($197|0)==(0);
  34879. if ($205) {
  34880. $$0350$lcssa554 = $$$0350;$$0372 = $$3348;$$0385$lcssa553 = $$$0385;
  34881. } else {
  34882. $206 = (($6) + ($$3348<<2)|0);
  34883. $207 = (($$3348) + 1)|0;
  34884. HEAP32[$206>>2] = $197;
  34885. $$0350$lcssa554 = $$$0350;$$0372 = $207;$$0385$lcssa553 = $$$0385;
  34886. }
  34887. }
  34888. $208 = (9 - ($186))|0;
  34889. $209 = (($208) + ($$0385$lcssa553))|0;
  34890. $$0380$ph = 0;$$1373$ph448 = $$0372;$$2352$ph449 = $$0350$lcssa554;$$2387$ph447 = $209;
  34891. }
  34892. L101: while(1) {
  34893. $210 = ($$2387$ph447|0)<(18);
  34894. $211 = ($$2387$ph447|0)==(18);
  34895. $212 = (($6) + ($$2352$ph449<<2)|0);
  34896. $$0380 = $$0380$ph;$$1373 = $$1373$ph448;
  34897. while(1) {
  34898. if (!($210)) {
  34899. if (!($211)) {
  34900. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = $$2387$ph447;$$6378$ph = $$1373;
  34901. break L101;
  34902. }
  34903. $213 = HEAP32[$212>>2]|0;
  34904. $214 = ($213>>>0)<(9007199);
  34905. if (!($214)) {
  34906. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = 18;$$6378$ph = $$1373;
  34907. break L101;
  34908. }
  34909. }
  34910. $215 = (($$1373) + 127)|0;
  34911. $$0334 = 0;$$2374 = $$1373;$$5$in = $215;
  34912. while(1) {
  34913. $$5 = $$5$in & 127;
  34914. $216 = (($6) + ($$5<<2)|0);
  34915. $217 = HEAP32[$216>>2]|0;
  34916. $218 = (_bitshift64Shl(($217|0),0,29)|0);
  34917. $219 = tempRet0;
  34918. $220 = (_i64Add(($218|0),($219|0),($$0334|0),0)|0);
  34919. $221 = tempRet0;
  34920. $222 = ($221>>>0)>(0);
  34921. $223 = ($220>>>0)>(1000000000);
  34922. $224 = ($221|0)==(0);
  34923. $225 = $224 & $223;
  34924. $226 = $222 | $225;
  34925. if ($226) {
  34926. $227 = (___udivdi3(($220|0),($221|0),1000000000,0)|0);
  34927. $228 = tempRet0;
  34928. $229 = (___uremdi3(($220|0),($221|0),1000000000,0)|0);
  34929. $230 = tempRet0;
  34930. $$1335 = $227;$$sink421$off0 = $229;
  34931. } else {
  34932. $$1335 = 0;$$sink421$off0 = $220;
  34933. }
  34934. HEAP32[$216>>2] = $$sink421$off0;
  34935. $231 = (($$2374) + 127)|0;
  34936. $232 = $231 & 127;
  34937. $233 = ($$5|0)!=($232|0);
  34938. $234 = ($$5|0)==($$2352$ph449|0);
  34939. $or$cond422 = $233 | $234;
  34940. $or$cond422$not = $or$cond422 ^ 1;
  34941. $235 = ($$sink421$off0|0)==(0);
  34942. $or$cond423 = $235 & $or$cond422$not;
  34943. $$3375 = $or$cond423 ? $$5 : $$2374;
  34944. $236 = (($$5) + -1)|0;
  34945. if ($234) {
  34946. break;
  34947. } else {
  34948. $$0334 = $$1335;$$2374 = $$3375;$$5$in = $236;
  34949. }
  34950. }
  34951. $237 = (($$0380) + -29)|0;
  34952. $238 = ($$1335|0)==(0);
  34953. if ($238) {
  34954. $$0380 = $237;$$1373 = $$3375;
  34955. } else {
  34956. break;
  34957. }
  34958. }
  34959. $239 = (($$2387$ph447) + 9)|0;
  34960. $240 = (($$2352$ph449) + 127)|0;
  34961. $241 = $240 & 127;
  34962. $242 = ($241|0)==($$3375|0);
  34963. $243 = (($$3375) + 127)|0;
  34964. $244 = $243 & 127;
  34965. $245 = (($$3375) + 126)|0;
  34966. $246 = $245 & 127;
  34967. $247 = (($6) + ($246<<2)|0);
  34968. if ($242) {
  34969. $248 = (($6) + ($244<<2)|0);
  34970. $249 = HEAP32[$248>>2]|0;
  34971. $250 = HEAP32[$247>>2]|0;
  34972. $251 = $250 | $249;
  34973. HEAP32[$247>>2] = $251;
  34974. $$4376 = $244;
  34975. } else {
  34976. $$4376 = $$3375;
  34977. }
  34978. $252 = (($6) + ($241<<2)|0);
  34979. HEAP32[$252>>2] = $$1335;
  34980. $$0380$ph = $237;$$1373$ph448 = $$4376;$$2352$ph449 = $241;$$2387$ph447 = $239;
  34981. }
  34982. L119: while(1) {
  34983. $289 = (($$6378$ph) + 1)|0;
  34984. $287 = $289 & 127;
  34985. $290 = (($$6378$ph) + 127)|0;
  34986. $291 = $290 & 127;
  34987. $292 = (($6) + ($291<<2)|0);
  34988. $$1381$ph558 = $$1381$ph;$$4354$ph559 = $$4354$ph;$$4389$ph = $$4389$ph445;
  34989. while(1) {
  34990. $265 = ($$4389$ph|0)==(18);
  34991. $293 = ($$4389$ph|0)>(27);
  34992. $$425 = $293 ? 9 : 1;
  34993. $$1381 = $$1381$ph558;$$4354 = $$4354$ph559;
  34994. while(1) {
  34995. $$0336486 = 0;
  34996. while(1) {
  34997. $253 = (($$0336486) + ($$4354))|0;
  34998. $254 = $253 & 127;
  34999. $255 = ($254|0)==($$6378$ph|0);
  35000. if ($255) {
  35001. $$1337 = 2;
  35002. label = 88;
  35003. break;
  35004. }
  35005. $256 = (($6) + ($254<<2)|0);
  35006. $257 = HEAP32[$256>>2]|0;
  35007. $258 = (4440 + ($$0336486<<2)|0);
  35008. $259 = HEAP32[$258>>2]|0;
  35009. $260 = ($257>>>0)<($259>>>0);
  35010. if ($260) {
  35011. $$1337 = 2;
  35012. label = 88;
  35013. break;
  35014. }
  35015. $261 = ($257>>>0)>($259>>>0);
  35016. if ($261) {
  35017. break;
  35018. }
  35019. $262 = (($$0336486) + 1)|0;
  35020. $263 = ($262|0)<(2);
  35021. if ($263) {
  35022. $$0336486 = $262;
  35023. } else {
  35024. $$1337 = $262;
  35025. label = 88;
  35026. break;
  35027. }
  35028. }
  35029. if ((label|0) == 88) {
  35030. label = 0;
  35031. $264 = ($$1337|0)==(2);
  35032. $or$cond11 = $265 & $264;
  35033. if ($or$cond11) {
  35034. $$0365484 = 0.0;$$4485 = 0;$$9483 = $$6378$ph;
  35035. break L119;
  35036. }
  35037. }
  35038. $266 = (($$425) + ($$1381))|0;
  35039. $267 = ($$4354|0)==($$6378$ph|0);
  35040. if ($267) {
  35041. $$1381 = $266;$$4354 = $$6378$ph;
  35042. } else {
  35043. break;
  35044. }
  35045. }
  35046. $268 = 1 << $$425;
  35047. $269 = (($268) + -1)|0;
  35048. $270 = 1000000000 >>> $$425;
  35049. $$0332490 = 0;$$5355488 = $$4354;$$5390487 = $$4389$ph;$$6489 = $$4354;
  35050. while(1) {
  35051. $271 = (($6) + ($$6489<<2)|0);
  35052. $272 = HEAP32[$271>>2]|0;
  35053. $273 = $272 & $269;
  35054. $274 = $272 >>> $$425;
  35055. $275 = (($274) + ($$0332490))|0;
  35056. HEAP32[$271>>2] = $275;
  35057. $276 = Math_imul($273, $270)|0;
  35058. $277 = ($$6489|0)==($$5355488|0);
  35059. $278 = ($275|0)==(0);
  35060. $or$cond426 = $277 & $278;
  35061. $279 = (($$5355488) + 1)|0;
  35062. $280 = $279 & 127;
  35063. $281 = (($$5390487) + -9)|0;
  35064. $$$5390 = $or$cond426 ? $281 : $$5390487;
  35065. $$$5355 = $or$cond426 ? $280 : $$5355488;
  35066. $282 = (($$6489) + 1)|0;
  35067. $283 = $282 & 127;
  35068. $284 = ($283|0)==($$6378$ph|0);
  35069. if ($284) {
  35070. break;
  35071. } else {
  35072. $$0332490 = $276;$$5355488 = $$$5355;$$5390487 = $$$5390;$$6489 = $283;
  35073. }
  35074. }
  35075. $285 = ($276|0)==(0);
  35076. if ($285) {
  35077. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  35078. continue;
  35079. }
  35080. $286 = ($287|0)==($$$5355|0);
  35081. if (!($286)) {
  35082. break;
  35083. }
  35084. $294 = HEAP32[$292>>2]|0;
  35085. $295 = $294 | 1;
  35086. HEAP32[$292>>2] = $295;
  35087. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  35088. }
  35089. $288 = (($6) + ($$6378$ph<<2)|0);
  35090. HEAP32[$288>>2] = $276;
  35091. $$1381$ph = $266;$$4354$ph = $$$5355;$$4389$ph445 = $$$5390;$$6378$ph = $287;
  35092. }
  35093. while(1) {
  35094. $296 = (($$4485) + ($$4354))|0;
  35095. $297 = $296 & 127;
  35096. $298 = ($297|0)==($$9483|0);
  35097. $299 = (($$9483) + 1)|0;
  35098. $300 = $299 & 127;
  35099. if ($298) {
  35100. $301 = (($300) + -1)|0;
  35101. $302 = (($6) + ($301<<2)|0);
  35102. HEAP32[$302>>2] = 0;
  35103. $$10 = $300;
  35104. } else {
  35105. $$10 = $$9483;
  35106. }
  35107. $303 = $$0365484 * 1.0E+9;
  35108. $304 = (($6) + ($297<<2)|0);
  35109. $305 = HEAP32[$304>>2]|0;
  35110. $306 = (+($305>>>0));
  35111. $307 = $303 + $306;
  35112. $308 = (($$4485) + 1)|0;
  35113. $exitcond = ($308|0)==(2);
  35114. if ($exitcond) {
  35115. break;
  35116. } else {
  35117. $$0365484 = $307;$$4485 = $308;$$9483 = $$10;
  35118. }
  35119. }
  35120. $309 = (+($4|0));
  35121. $310 = $309 * $307;
  35122. $311 = (($$1381) + 53)|0;
  35123. $312 = (($311) - ($3))|0;
  35124. $313 = ($312|0)<($2|0);
  35125. $314 = ($312|0)>(0);
  35126. $$ = $314 ? $312 : 0;
  35127. $$0333 = $313 ? $$ : $2;
  35128. $315 = ($$0333|0)<(53);
  35129. if ($315) {
  35130. $316 = (105 - ($$0333))|0;
  35131. $317 = (+_scalbn(1.0,$316));
  35132. $318 = (+_copysignl($317,$310));
  35133. $319 = (53 - ($$0333))|0;
  35134. $320 = (+_scalbn(1.0,$319));
  35135. $321 = (+_fmodl($310,$320));
  35136. $322 = $310 - $321;
  35137. $323 = $318 + $322;
  35138. $$0360 = $318;$$0361 = $321;$$1366 = $323;
  35139. } else {
  35140. $$0360 = 0.0;$$0361 = 0.0;$$1366 = $310;
  35141. }
  35142. $324 = (($$4354) + 2)|0;
  35143. $325 = $324 & 127;
  35144. $326 = ($325|0)==($$10|0);
  35145. if ($326) {
  35146. $$3364 = $$0361;
  35147. } else {
  35148. $327 = (($6) + ($325<<2)|0);
  35149. $328 = HEAP32[$327>>2]|0;
  35150. $329 = ($328>>>0)<(500000000);
  35151. do {
  35152. if ($329) {
  35153. $330 = ($328|0)==(0);
  35154. if ($330) {
  35155. $331 = (($$4354) + 3)|0;
  35156. $332 = $331 & 127;
  35157. $333 = ($332|0)==($$10|0);
  35158. if ($333) {
  35159. $$1362 = $$0361;
  35160. break;
  35161. }
  35162. }
  35163. $334 = $309 * 0.25;
  35164. $335 = $334 + $$0361;
  35165. $$1362 = $335;
  35166. } else {
  35167. $336 = ($328|0)==(500000000);
  35168. if (!($336)) {
  35169. $337 = $309 * 0.75;
  35170. $338 = $337 + $$0361;
  35171. $$1362 = $338;
  35172. break;
  35173. }
  35174. $339 = (($$4354) + 3)|0;
  35175. $340 = $339 & 127;
  35176. $341 = ($340|0)==($$10|0);
  35177. if ($341) {
  35178. $342 = $309 * 0.5;
  35179. $343 = $342 + $$0361;
  35180. $$1362 = $343;
  35181. break;
  35182. } else {
  35183. $344 = $309 * 0.75;
  35184. $345 = $344 + $$0361;
  35185. $$1362 = $345;
  35186. break;
  35187. }
  35188. }
  35189. } while(0);
  35190. $346 = (53 - ($$0333))|0;
  35191. $347 = ($346|0)>(1);
  35192. if ($347) {
  35193. $348 = (+_fmodl($$1362,1.0));
  35194. $349 = $348 != 0.0;
  35195. if ($349) {
  35196. $$3364 = $$1362;
  35197. } else {
  35198. $350 = $$1362 + 1.0;
  35199. $$3364 = $350;
  35200. }
  35201. } else {
  35202. $$3364 = $$1362;
  35203. }
  35204. }
  35205. $351 = $$1366 + $$3364;
  35206. $352 = $351 - $$0360;
  35207. $353 = $311 & 2147483647;
  35208. $354 = (-2 - ($sum))|0;
  35209. $355 = ($353|0)>($354|0);
  35210. do {
  35211. if ($355) {
  35212. $356 = (+Math_abs((+$352)));
  35213. $357 = !($356 >= 9007199254740992.0);
  35214. $358 = $352 * 0.5;
  35215. $not$ = $357 ^ 1;
  35216. $359 = $not$&1;
  35217. $$3383 = (($359) + ($$1381))|0;
  35218. $$2367 = $357 ? $352 : $358;
  35219. $360 = (($$3383) + 50)|0;
  35220. $361 = ($360|0)>($7|0);
  35221. if (!($361)) {
  35222. $362 = ($$0333|0)!=($312|0);
  35223. $narrow = $362 | $357;
  35224. $$2371$v = $313 & $narrow;
  35225. $363 = $$3364 != 0.0;
  35226. $or$cond14 = $363 & $$2371$v;
  35227. if (!($or$cond14)) {
  35228. $$3368 = $$2367;$$4384 = $$3383;
  35229. break;
  35230. }
  35231. }
  35232. $364 = (___errno_location()|0);
  35233. HEAP32[$364>>2] = 34;
  35234. $$3368 = $$2367;$$4384 = $$3383;
  35235. } else {
  35236. $$3368 = $352;$$4384 = $$1381;
  35237. }
  35238. } while(0);
  35239. $365 = (+_scalbnl($$3368,$$4384));
  35240. $$1 = $365;
  35241. }
  35242. } while(0);
  35243. STACKTOP = sp;return (+$$1);
  35244. }
  35245. function _scanexp($0,$1) {
  35246. $0 = $0|0;
  35247. $1 = $1|0;
  35248. 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;
  35249. 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;
  35250. 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;
  35251. 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;
  35252. 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;
  35253. 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;
  35254. sp = STACKTOP;
  35255. $2 = ((($0)) + 4|0);
  35256. $3 = HEAP32[$2>>2]|0;
  35257. $4 = ((($0)) + 100|0);
  35258. $5 = HEAP32[$4>>2]|0;
  35259. $6 = ($3>>>0)<($5>>>0);
  35260. if ($6) {
  35261. $7 = ((($3)) + 1|0);
  35262. HEAP32[$2>>2] = $7;
  35263. $8 = HEAP8[$3>>0]|0;
  35264. $9 = $8&255;
  35265. $11 = $9;
  35266. } else {
  35267. $10 = (___shgetc($0)|0);
  35268. $11 = $10;
  35269. }
  35270. switch ($11|0) {
  35271. case 43: case 45: {
  35272. $12 = ($11|0)==(45);
  35273. $13 = $12&1;
  35274. $14 = HEAP32[$2>>2]|0;
  35275. $15 = HEAP32[$4>>2]|0;
  35276. $16 = ($14>>>0)<($15>>>0);
  35277. if ($16) {
  35278. $17 = ((($14)) + 1|0);
  35279. HEAP32[$2>>2] = $17;
  35280. $18 = HEAP8[$14>>0]|0;
  35281. $19 = $18&255;
  35282. $22 = $19;
  35283. } else {
  35284. $20 = (___shgetc($0)|0);
  35285. $22 = $20;
  35286. }
  35287. $21 = (($22) + -48)|0;
  35288. $23 = ($21>>>0)>(9);
  35289. $24 = ($1|0)!=(0);
  35290. $or$cond3 = $24 & $23;
  35291. if ($or$cond3) {
  35292. $25 = HEAP32[$4>>2]|0;
  35293. $26 = ($25|0)==(0|0);
  35294. if ($26) {
  35295. $$0 = $13;$$049 = $22;
  35296. } else {
  35297. $27 = HEAP32[$2>>2]|0;
  35298. $28 = ((($27)) + -1|0);
  35299. HEAP32[$2>>2] = $28;
  35300. $$0 = $13;$$049 = $22;
  35301. }
  35302. } else {
  35303. $$0 = $13;$$049 = $22;
  35304. }
  35305. break;
  35306. }
  35307. default: {
  35308. $$0 = 0;$$049 = $11;
  35309. }
  35310. }
  35311. $29 = (($$049) + -48)|0;
  35312. $30 = ($29>>>0)>(9);
  35313. if ($30) {
  35314. $31 = HEAP32[$4>>2]|0;
  35315. $32 = ($31|0)==(0|0);
  35316. if ($32) {
  35317. $100 = -2147483648;$101 = 0;
  35318. } else {
  35319. $33 = HEAP32[$2>>2]|0;
  35320. $34 = ((($33)) + -1|0);
  35321. HEAP32[$2>>2] = $34;
  35322. $100 = -2147483648;$101 = 0;
  35323. }
  35324. } else {
  35325. $$04861 = 0;$$160 = $$049;
  35326. while(1) {
  35327. $35 = ($$04861*10)|0;
  35328. $36 = (($$160) + -48)|0;
  35329. $37 = (($36) + ($35))|0;
  35330. $38 = HEAP32[$2>>2]|0;
  35331. $39 = HEAP32[$4>>2]|0;
  35332. $40 = ($38>>>0)<($39>>>0);
  35333. if ($40) {
  35334. $41 = ((($38)) + 1|0);
  35335. HEAP32[$2>>2] = $41;
  35336. $42 = HEAP8[$38>>0]|0;
  35337. $43 = $42&255;
  35338. $$1$be = $43;
  35339. } else {
  35340. $44 = (___shgetc($0)|0);
  35341. $$1$be = $44;
  35342. }
  35343. $45 = (($$1$be) + -48)|0;
  35344. $46 = ($45>>>0)<(10);
  35345. $47 = ($37|0)<(214748364);
  35346. $48 = $46 & $47;
  35347. if ($48) {
  35348. $$04861 = $37;$$160 = $$1$be;
  35349. } else {
  35350. break;
  35351. }
  35352. }
  35353. $49 = ($37|0)<(0);
  35354. $50 = $49 << 31 >> 31;
  35355. $51 = (($$1$be) + -48)|0;
  35356. $52 = ($51>>>0)<(10);
  35357. if ($52) {
  35358. $$254 = $$1$be;$56 = $37;$57 = $50;
  35359. while(1) {
  35360. $58 = (___muldi3(($56|0),($57|0),10,0)|0);
  35361. $59 = tempRet0;
  35362. $60 = ($$254|0)<(0);
  35363. $61 = $60 << 31 >> 31;
  35364. $62 = (_i64Add(($$254|0),($61|0),-48,-1)|0);
  35365. $63 = tempRet0;
  35366. $64 = (_i64Add(($62|0),($63|0),($58|0),($59|0))|0);
  35367. $65 = tempRet0;
  35368. $66 = HEAP32[$2>>2]|0;
  35369. $67 = HEAP32[$4>>2]|0;
  35370. $68 = ($66>>>0)<($67>>>0);
  35371. if ($68) {
  35372. $69 = ((($66)) + 1|0);
  35373. HEAP32[$2>>2] = $69;
  35374. $70 = HEAP8[$66>>0]|0;
  35375. $71 = $70&255;
  35376. $$2$be = $71;
  35377. } else {
  35378. $72 = (___shgetc($0)|0);
  35379. $$2$be = $72;
  35380. }
  35381. $73 = (($$2$be) + -48)|0;
  35382. $74 = ($73>>>0)<(10);
  35383. $75 = ($65|0)<(21474836);
  35384. $76 = ($64>>>0)<(2061584302);
  35385. $77 = ($65|0)==(21474836);
  35386. $78 = $77 & $76;
  35387. $79 = $75 | $78;
  35388. $80 = $74 & $79;
  35389. if ($80) {
  35390. $$254 = $$2$be;$56 = $64;$57 = $65;
  35391. } else {
  35392. $$2$lcssa = $$2$be;$94 = $64;$95 = $65;
  35393. break;
  35394. }
  35395. }
  35396. } else {
  35397. $$2$lcssa = $$1$be;$94 = $37;$95 = $50;
  35398. }
  35399. $53 = (($$2$lcssa) + -48)|0;
  35400. $54 = ($53>>>0)<(10);
  35401. $55 = HEAP32[$4>>2]|0;
  35402. if ($54) {
  35403. $83 = $55;
  35404. while(1) {
  35405. $81 = HEAP32[$2>>2]|0;
  35406. $82 = ($81>>>0)<($83>>>0);
  35407. if ($82) {
  35408. $84 = ((($81)) + 1|0);
  35409. HEAP32[$2>>2] = $84;
  35410. $85 = HEAP8[$81>>0]|0;
  35411. $86 = $85&255;
  35412. $$3$be = $86;$102 = $83;
  35413. } else {
  35414. $87 = (___shgetc($0)|0);
  35415. $$pre = HEAP32[$4>>2]|0;
  35416. $$3$be = $87;$102 = $$pre;
  35417. }
  35418. $88 = (($$3$be) + -48)|0;
  35419. $89 = ($88>>>0)<(10);
  35420. if ($89) {
  35421. $83 = $102;
  35422. } else {
  35423. $$lcssa = $102;
  35424. break;
  35425. }
  35426. }
  35427. } else {
  35428. $$lcssa = $55;
  35429. }
  35430. $90 = ($$lcssa|0)==(0|0);
  35431. if (!($90)) {
  35432. $91 = HEAP32[$2>>2]|0;
  35433. $92 = ((($91)) + -1|0);
  35434. HEAP32[$2>>2] = $92;
  35435. }
  35436. $93 = ($$0|0)!=(0);
  35437. $96 = (_i64Subtract(0,0,($94|0),($95|0))|0);
  35438. $97 = tempRet0;
  35439. $98 = $93 ? $96 : $94;
  35440. $99 = $93 ? $97 : $95;
  35441. $100 = $99;$101 = $98;
  35442. }
  35443. tempRet0 = ($100);
  35444. return ($101|0);
  35445. }
  35446. function _scalbn($0,$1) {
  35447. $0 = +$0;
  35448. $1 = $1|0;
  35449. 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;
  35450. var $3 = 0.0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  35451. sp = STACKTOP;
  35452. $2 = ($1|0)>(1023);
  35453. if ($2) {
  35454. $3 = $0 * 8.9884656743115795E+307;
  35455. $4 = (($1) + -1023)|0;
  35456. $5 = ($4|0)>(1023);
  35457. $6 = $3 * 8.9884656743115795E+307;
  35458. $7 = (($1) + -2046)|0;
  35459. $8 = ($7|0)<(1023);
  35460. $$ = $8 ? $7 : 1023;
  35461. $$$ = $5 ? $$ : $4;
  35462. $$21 = $5 ? $6 : $3;
  35463. $$0 = $$21;$$020 = $$$;
  35464. } else {
  35465. $9 = ($1|0)<(-1022);
  35466. if ($9) {
  35467. $10 = $0 * 2.2250738585072014E-308;
  35468. $11 = (($1) + 1022)|0;
  35469. $12 = ($11|0)<(-1022);
  35470. $13 = $10 * 2.2250738585072014E-308;
  35471. $14 = (($1) + 2044)|0;
  35472. $15 = ($14|0)>(-1022);
  35473. $$1 = $15 ? $14 : -1022;
  35474. $$1$ = $12 ? $$1 : $11;
  35475. $$22 = $12 ? $13 : $10;
  35476. $$0 = $$22;$$020 = $$1$;
  35477. } else {
  35478. $$0 = $0;$$020 = $1;
  35479. }
  35480. }
  35481. $16 = (($$020) + 1023)|0;
  35482. $17 = (_bitshift64Shl(($16|0),0,52)|0);
  35483. $18 = tempRet0;
  35484. HEAP32[tempDoublePtr>>2] = $17;HEAP32[tempDoublePtr+4>>2] = $18;$19 = +HEAPF64[tempDoublePtr>>3];
  35485. $20 = $$0 * $19;
  35486. return (+$20);
  35487. }
  35488. function _copysignl($0,$1) {
  35489. $0 = +$0;
  35490. $1 = +$1;
  35491. var $2 = 0.0, label = 0, sp = 0;
  35492. sp = STACKTOP;
  35493. $2 = (+_copysign($0,$1));
  35494. return (+$2);
  35495. }
  35496. function _fmodl($0,$1) {
  35497. $0 = +$0;
  35498. $1 = +$1;
  35499. var $2 = 0.0, label = 0, sp = 0;
  35500. sp = STACKTOP;
  35501. $2 = (+_fmod($0,$1));
  35502. return (+$2);
  35503. }
  35504. function _scalbnl($0,$1) {
  35505. $0 = +$0;
  35506. $1 = $1|0;
  35507. var $2 = 0.0, label = 0, sp = 0;
  35508. sp = STACKTOP;
  35509. $2 = (+_scalbn($0,$1));
  35510. return (+$2);
  35511. }
  35512. function _fmod($0,$1) {
  35513. $0 = +$0;
  35514. $1 = +$1;
  35515. 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;
  35516. 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;
  35517. 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;
  35518. 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;
  35519. 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;
  35520. 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;
  35521. 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;
  35522. 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;
  35523. 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;
  35524. sp = STACKTOP;
  35525. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  35526. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  35527. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  35528. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  35529. $6 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  35530. $7 = tempRet0;
  35531. $8 = $6 & 2047;
  35532. $9 = (_bitshift64Lshr(($4|0),($5|0),52)|0);
  35533. $10 = tempRet0;
  35534. $11 = $9 & 2047;
  35535. $12 = $3 & -2147483648;
  35536. $13 = (_bitshift64Shl(($4|0),($5|0),1)|0);
  35537. $14 = tempRet0;
  35538. $15 = ($13|0)==(0);
  35539. $16 = ($14|0)==(0);
  35540. $17 = $15 & $16;
  35541. L1: do {
  35542. if ($17) {
  35543. label = 3;
  35544. } else {
  35545. $18 = (___DOUBLE_BITS_272($1)|0);
  35546. $19 = tempRet0;
  35547. $20 = $19 & 2147483647;
  35548. $21 = ($20>>>0)>(2146435072);
  35549. $22 = ($18>>>0)>(0);
  35550. $23 = ($20|0)==(2146435072);
  35551. $24 = $23 & $22;
  35552. $25 = $21 | $24;
  35553. $26 = ($8|0)==(2047);
  35554. $or$cond = $26 | $25;
  35555. if ($or$cond) {
  35556. label = 3;
  35557. } else {
  35558. $29 = (_bitshift64Shl(($2|0),($3|0),1)|0);
  35559. $30 = tempRet0;
  35560. $31 = ($30>>>0)>($14>>>0);
  35561. $32 = ($29>>>0)>($13>>>0);
  35562. $33 = ($30|0)==($14|0);
  35563. $34 = $33 & $32;
  35564. $35 = $31 | $34;
  35565. if (!($35)) {
  35566. $36 = ($29|0)==($13|0);
  35567. $37 = ($30|0)==($14|0);
  35568. $38 = $36 & $37;
  35569. $39 = $0 * 0.0;
  35570. $$ = $38 ? $39 : $0;
  35571. return (+$$);
  35572. }
  35573. $40 = ($8|0)==(0);
  35574. if ($40) {
  35575. $41 = (_bitshift64Shl(($2|0),($3|0),12)|0);
  35576. $42 = tempRet0;
  35577. $43 = ($42|0)>(-1);
  35578. $44 = ($41>>>0)>(4294967295);
  35579. $45 = ($42|0)==(-1);
  35580. $46 = $45 & $44;
  35581. $47 = $43 | $46;
  35582. if ($47) {
  35583. $$073100 = 0;$49 = $41;$50 = $42;
  35584. while(1) {
  35585. $48 = (($$073100) + -1)|0;
  35586. $51 = (_bitshift64Shl(($49|0),($50|0),1)|0);
  35587. $52 = tempRet0;
  35588. $53 = ($52|0)>(-1);
  35589. $54 = ($51>>>0)>(4294967295);
  35590. $55 = ($52|0)==(-1);
  35591. $56 = $55 & $54;
  35592. $57 = $53 | $56;
  35593. if ($57) {
  35594. $$073100 = $48;$49 = $51;$50 = $52;
  35595. } else {
  35596. $$073$lcssa = $48;
  35597. break;
  35598. }
  35599. }
  35600. } else {
  35601. $$073$lcssa = 0;
  35602. }
  35603. $58 = (1 - ($$073$lcssa))|0;
  35604. $59 = (_bitshift64Shl(($2|0),($3|0),($58|0))|0);
  35605. $60 = tempRet0;
  35606. $$174 = $$073$lcssa;$87 = $59;$88 = $60;
  35607. } else {
  35608. $61 = $3 & 1048575;
  35609. $62 = $61 | 1048576;
  35610. $$174 = $8;$87 = $2;$88 = $62;
  35611. }
  35612. $63 = ($11|0)==(0);
  35613. if ($63) {
  35614. $64 = (_bitshift64Shl(($4|0),($5|0),12)|0);
  35615. $65 = tempRet0;
  35616. $66 = ($65|0)>(-1);
  35617. $67 = ($64>>>0)>(4294967295);
  35618. $68 = ($65|0)==(-1);
  35619. $69 = $68 & $67;
  35620. $70 = $66 | $69;
  35621. if ($70) {
  35622. $$07194 = 0;$72 = $64;$73 = $65;
  35623. while(1) {
  35624. $71 = (($$07194) + -1)|0;
  35625. $74 = (_bitshift64Shl(($72|0),($73|0),1)|0);
  35626. $75 = tempRet0;
  35627. $76 = ($75|0)>(-1);
  35628. $77 = ($74>>>0)>(4294967295);
  35629. $78 = ($75|0)==(-1);
  35630. $79 = $78 & $77;
  35631. $80 = $76 | $79;
  35632. if ($80) {
  35633. $$07194 = $71;$72 = $74;$73 = $75;
  35634. } else {
  35635. $$071$lcssa = $71;
  35636. break;
  35637. }
  35638. }
  35639. } else {
  35640. $$071$lcssa = 0;
  35641. }
  35642. $81 = (1 - ($$071$lcssa))|0;
  35643. $82 = (_bitshift64Shl(($4|0),($5|0),($81|0))|0);
  35644. $83 = tempRet0;
  35645. $$172$ph = $$071$lcssa;$89 = $82;$90 = $83;
  35646. } else {
  35647. $84 = $5 & 1048575;
  35648. $85 = $84 | 1048576;
  35649. $$172$ph = $11;$89 = $4;$90 = $85;
  35650. }
  35651. $86 = ($$174|0)>($$172$ph|0);
  35652. $91 = (_i64Subtract(($87|0),($88|0),($89|0),($90|0))|0);
  35653. $92 = tempRet0;
  35654. $93 = ($92|0)>(-1);
  35655. $94 = ($91>>>0)>(4294967295);
  35656. $95 = ($92|0)==(-1);
  35657. $96 = $95 & $94;
  35658. $97 = $93 | $96;
  35659. L23: do {
  35660. if ($86) {
  35661. $$27586 = $$174;$101 = $92;$156 = $97;$157 = $87;$158 = $88;$99 = $91;
  35662. while(1) {
  35663. if ($156) {
  35664. $98 = ($99|0)==(0);
  35665. $100 = ($101|0)==(0);
  35666. $102 = $98 & $100;
  35667. if ($102) {
  35668. break;
  35669. } else {
  35670. $104 = $99;$105 = $101;
  35671. }
  35672. } else {
  35673. $104 = $157;$105 = $158;
  35674. }
  35675. $106 = (_bitshift64Shl(($104|0),($105|0),1)|0);
  35676. $107 = tempRet0;
  35677. $108 = (($$27586) + -1)|0;
  35678. $109 = ($108|0)>($$172$ph|0);
  35679. $110 = (_i64Subtract(($106|0),($107|0),($89|0),($90|0))|0);
  35680. $111 = tempRet0;
  35681. $112 = ($111|0)>(-1);
  35682. $113 = ($110>>>0)>(4294967295);
  35683. $114 = ($111|0)==(-1);
  35684. $115 = $114 & $113;
  35685. $116 = $112 | $115;
  35686. if ($109) {
  35687. $$27586 = $108;$101 = $111;$156 = $116;$157 = $106;$158 = $107;$99 = $110;
  35688. } else {
  35689. $$275$lcssa = $108;$$lcssa = $116;$118 = $110;$120 = $111;$159 = $106;$160 = $107;
  35690. break L23;
  35691. }
  35692. }
  35693. $103 = $0 * 0.0;
  35694. $$070 = $103;
  35695. break L1;
  35696. } else {
  35697. $$275$lcssa = $$174;$$lcssa = $97;$118 = $91;$120 = $92;$159 = $87;$160 = $88;
  35698. }
  35699. } while(0);
  35700. if ($$lcssa) {
  35701. $117 = ($118|0)==(0);
  35702. $119 = ($120|0)==(0);
  35703. $121 = $117 & $119;
  35704. if ($121) {
  35705. $129 = $0 * 0.0;
  35706. $$070 = $129;
  35707. break;
  35708. } else {
  35709. $123 = $120;$125 = $118;
  35710. }
  35711. } else {
  35712. $123 = $160;$125 = $159;
  35713. }
  35714. $122 = ($123>>>0)<(1048576);
  35715. $124 = ($125>>>0)<(0);
  35716. $126 = ($123|0)==(1048576);
  35717. $127 = $126 & $124;
  35718. $128 = $122 | $127;
  35719. if ($128) {
  35720. $$37683 = $$275$lcssa;$130 = $125;$131 = $123;
  35721. while(1) {
  35722. $132 = (_bitshift64Shl(($130|0),($131|0),1)|0);
  35723. $133 = tempRet0;
  35724. $134 = (($$37683) + -1)|0;
  35725. $135 = ($133>>>0)<(1048576);
  35726. $136 = ($132>>>0)<(0);
  35727. $137 = ($133|0)==(1048576);
  35728. $138 = $137 & $136;
  35729. $139 = $135 | $138;
  35730. if ($139) {
  35731. $$37683 = $134;$130 = $132;$131 = $133;
  35732. } else {
  35733. $$376$lcssa = $134;$141 = $132;$142 = $133;
  35734. break;
  35735. }
  35736. }
  35737. } else {
  35738. $$376$lcssa = $$275$lcssa;$141 = $125;$142 = $123;
  35739. }
  35740. $140 = ($$376$lcssa|0)>(0);
  35741. if ($140) {
  35742. $143 = (_i64Add(($141|0),($142|0),0,-1048576)|0);
  35743. $144 = tempRet0;
  35744. $145 = (_bitshift64Shl(($$376$lcssa|0),0,52)|0);
  35745. $146 = tempRet0;
  35746. $147 = $143 | $145;
  35747. $148 = $144 | $146;
  35748. $153 = $148;$155 = $147;
  35749. } else {
  35750. $149 = (1 - ($$376$lcssa))|0;
  35751. $150 = (_bitshift64Lshr(($141|0),($142|0),($149|0))|0);
  35752. $151 = tempRet0;
  35753. $153 = $151;$155 = $150;
  35754. }
  35755. $152 = $153 | $12;
  35756. HEAP32[tempDoublePtr>>2] = $155;HEAP32[tempDoublePtr+4>>2] = $152;$154 = +HEAPF64[tempDoublePtr>>3];
  35757. $$070 = $154;
  35758. }
  35759. }
  35760. } while(0);
  35761. if ((label|0) == 3) {
  35762. $27 = $0 * $1;
  35763. $28 = $27 / $27;
  35764. $$070 = $28;
  35765. }
  35766. return (+$$070);
  35767. }
  35768. function ___DOUBLE_BITS_272($0) {
  35769. $0 = +$0;
  35770. var $1 = 0, $2 = 0, label = 0, sp = 0;
  35771. sp = STACKTOP;
  35772. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  35773. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  35774. tempRet0 = ($2);
  35775. return ($1|0);
  35776. }
  35777. function _strlen($0) {
  35778. $0 = $0|0;
  35779. 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;
  35780. 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;
  35781. sp = STACKTOP;
  35782. $1 = $0;
  35783. $2 = $1 & 3;
  35784. $3 = ($2|0)==(0);
  35785. L1: do {
  35786. if ($3) {
  35787. $$015$lcssa = $0;
  35788. label = 4;
  35789. } else {
  35790. $$01519 = $0;$23 = $1;
  35791. while(1) {
  35792. $4 = HEAP8[$$01519>>0]|0;
  35793. $5 = ($4<<24>>24)==(0);
  35794. if ($5) {
  35795. $$sink = $23;
  35796. break L1;
  35797. }
  35798. $6 = ((($$01519)) + 1|0);
  35799. $7 = $6;
  35800. $8 = $7 & 3;
  35801. $9 = ($8|0)==(0);
  35802. if ($9) {
  35803. $$015$lcssa = $6;
  35804. label = 4;
  35805. break;
  35806. } else {
  35807. $$01519 = $6;$23 = $7;
  35808. }
  35809. }
  35810. }
  35811. } while(0);
  35812. if ((label|0) == 4) {
  35813. $$0 = $$015$lcssa;
  35814. while(1) {
  35815. $10 = HEAP32[$$0>>2]|0;
  35816. $11 = (($10) + -16843009)|0;
  35817. $12 = $10 & -2139062144;
  35818. $13 = $12 ^ -2139062144;
  35819. $14 = $13 & $11;
  35820. $15 = ($14|0)==(0);
  35821. $16 = ((($$0)) + 4|0);
  35822. if ($15) {
  35823. $$0 = $16;
  35824. } else {
  35825. break;
  35826. }
  35827. }
  35828. $17 = $10&255;
  35829. $18 = ($17<<24>>24)==(0);
  35830. if ($18) {
  35831. $$1$lcssa = $$0;
  35832. } else {
  35833. $$pn = $$0;
  35834. while(1) {
  35835. $19 = ((($$pn)) + 1|0);
  35836. $$pre = HEAP8[$19>>0]|0;
  35837. $20 = ($$pre<<24>>24)==(0);
  35838. if ($20) {
  35839. $$1$lcssa = $19;
  35840. break;
  35841. } else {
  35842. $$pn = $19;
  35843. }
  35844. }
  35845. }
  35846. $21 = $$1$lcssa;
  35847. $$sink = $21;
  35848. }
  35849. $22 = (($$sink) - ($1))|0;
  35850. return ($22|0);
  35851. }
  35852. function _strchr($0,$1) {
  35853. $0 = $0|0;
  35854. $1 = $1|0;
  35855. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  35856. sp = STACKTOP;
  35857. $2 = (___strchrnul($0,$1)|0);
  35858. $3 = HEAP8[$2>>0]|0;
  35859. $4 = $1&255;
  35860. $5 = ($3<<24>>24)==($4<<24>>24);
  35861. $6 = $5 ? $2 : 0;
  35862. return ($6|0);
  35863. }
  35864. function ___strchrnul($0,$1) {
  35865. $0 = $0|0;
  35866. $1 = $1|0;
  35867. 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;
  35868. 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;
  35869. 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;
  35870. sp = STACKTOP;
  35871. $2 = $1 & 255;
  35872. $3 = ($2|0)==(0);
  35873. L1: do {
  35874. if ($3) {
  35875. $8 = (_strlen($0)|0);
  35876. $9 = (($0) + ($8)|0);
  35877. $$0 = $9;
  35878. } else {
  35879. $4 = $0;
  35880. $5 = $4 & 3;
  35881. $6 = ($5|0)==(0);
  35882. if ($6) {
  35883. $$030$lcssa = $0;
  35884. } else {
  35885. $7 = $1&255;
  35886. $$03039 = $0;
  35887. while(1) {
  35888. $10 = HEAP8[$$03039>>0]|0;
  35889. $11 = ($10<<24>>24)==(0);
  35890. $12 = ($10<<24>>24)==($7<<24>>24);
  35891. $or$cond = $11 | $12;
  35892. if ($or$cond) {
  35893. $$0 = $$03039;
  35894. break L1;
  35895. }
  35896. $13 = ((($$03039)) + 1|0);
  35897. $14 = $13;
  35898. $15 = $14 & 3;
  35899. $16 = ($15|0)==(0);
  35900. if ($16) {
  35901. $$030$lcssa = $13;
  35902. break;
  35903. } else {
  35904. $$03039 = $13;
  35905. }
  35906. }
  35907. }
  35908. $17 = Math_imul($2, 16843009)|0;
  35909. $18 = HEAP32[$$030$lcssa>>2]|0;
  35910. $19 = (($18) + -16843009)|0;
  35911. $20 = $18 & -2139062144;
  35912. $21 = $20 ^ -2139062144;
  35913. $22 = $21 & $19;
  35914. $23 = ($22|0)==(0);
  35915. L10: do {
  35916. if ($23) {
  35917. $$02936 = $$030$lcssa;$25 = $18;
  35918. while(1) {
  35919. $24 = $25 ^ $17;
  35920. $26 = (($24) + -16843009)|0;
  35921. $27 = $24 & -2139062144;
  35922. $28 = $27 ^ -2139062144;
  35923. $29 = $28 & $26;
  35924. $30 = ($29|0)==(0);
  35925. if (!($30)) {
  35926. $$029$lcssa = $$02936;
  35927. break L10;
  35928. }
  35929. $31 = ((($$02936)) + 4|0);
  35930. $32 = HEAP32[$31>>2]|0;
  35931. $33 = (($32) + -16843009)|0;
  35932. $34 = $32 & -2139062144;
  35933. $35 = $34 ^ -2139062144;
  35934. $36 = $35 & $33;
  35935. $37 = ($36|0)==(0);
  35936. if ($37) {
  35937. $$02936 = $31;$25 = $32;
  35938. } else {
  35939. $$029$lcssa = $31;
  35940. break;
  35941. }
  35942. }
  35943. } else {
  35944. $$029$lcssa = $$030$lcssa;
  35945. }
  35946. } while(0);
  35947. $38 = $1&255;
  35948. $$1 = $$029$lcssa;
  35949. while(1) {
  35950. $39 = HEAP8[$$1>>0]|0;
  35951. $40 = ($39<<24>>24)==(0);
  35952. $41 = ($39<<24>>24)==($38<<24>>24);
  35953. $or$cond33 = $40 | $41;
  35954. $42 = ((($$1)) + 1|0);
  35955. if ($or$cond33) {
  35956. $$0 = $$1;
  35957. break;
  35958. } else {
  35959. $$1 = $42;
  35960. }
  35961. }
  35962. }
  35963. } while(0);
  35964. return ($$0|0);
  35965. }
  35966. function _mbrtowc($0,$1,$2,$3) {
  35967. $0 = $0|0;
  35968. $1 = $1|0;
  35969. $2 = $2|0;
  35970. $3 = $3|0;
  35971. 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;
  35972. 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;
  35973. 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;
  35974. var $not$ = 0, label = 0, sp = 0;
  35975. sp = STACKTOP;
  35976. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  35977. $4 = sp;
  35978. $5 = ($3|0)==(0|0);
  35979. $$ = $5 ? 21164 : $3;
  35980. $6 = HEAP32[$$>>2]|0;
  35981. $7 = ($1|0)==(0|0);
  35982. L1: do {
  35983. if ($7) {
  35984. $8 = ($6|0)==(0);
  35985. if ($8) {
  35986. $$0 = 0;
  35987. } else {
  35988. label = 17;
  35989. }
  35990. } else {
  35991. $9 = ($0|0)==(0|0);
  35992. $$47 = $9 ? $4 : $0;
  35993. $10 = ($2|0)==(0);
  35994. if ($10) {
  35995. $$0 = -2;
  35996. } else {
  35997. $11 = ($6|0)==(0);
  35998. if ($11) {
  35999. $12 = HEAP8[$1>>0]|0;
  36000. $13 = ($12<<24>>24)>(-1);
  36001. if ($13) {
  36002. $14 = $12&255;
  36003. HEAP32[$$47>>2] = $14;
  36004. $15 = ($12<<24>>24)!=(0);
  36005. $16 = $15&1;
  36006. $$0 = $16;
  36007. break;
  36008. }
  36009. $17 = (___pthread_self_439()|0);
  36010. $18 = ((($17)) + 188|0);
  36011. $19 = HEAP32[$18>>2]|0;
  36012. $20 = HEAP32[$19>>2]|0;
  36013. $not$ = ($20|0)==(0|0);
  36014. $21 = HEAP8[$1>>0]|0;
  36015. if ($not$) {
  36016. $22 = $21 << 24 >> 24;
  36017. $23 = $22 & 57343;
  36018. HEAP32[$$47>>2] = $23;
  36019. $$0 = 1;
  36020. break;
  36021. }
  36022. $24 = $21&255;
  36023. $25 = (($24) + -194)|0;
  36024. $26 = ($25>>>0)>(50);
  36025. if ($26) {
  36026. label = 17;
  36027. break;
  36028. }
  36029. $27 = ((($1)) + 1|0);
  36030. $28 = (3704 + ($25<<2)|0);
  36031. $29 = HEAP32[$28>>2]|0;
  36032. $30 = (($2) + -1)|0;
  36033. $31 = ($30|0)==(0);
  36034. if ($31) {
  36035. $$2 = $29;
  36036. } else {
  36037. $$03952 = $27;$$04051 = $29;$$04350 = $30;
  36038. label = 11;
  36039. }
  36040. } else {
  36041. $$03952 = $1;$$04051 = $6;$$04350 = $2;
  36042. label = 11;
  36043. }
  36044. L14: do {
  36045. if ((label|0) == 11) {
  36046. $32 = HEAP8[$$03952>>0]|0;
  36047. $33 = $32&255;
  36048. $34 = $33 >>> 3;
  36049. $35 = (($34) + -16)|0;
  36050. $36 = $$04051 >> 26;
  36051. $37 = (($34) + ($36))|0;
  36052. $38 = $35 | $37;
  36053. $39 = ($38>>>0)>(7);
  36054. if ($39) {
  36055. label = 17;
  36056. break L1;
  36057. } else {
  36058. $$1 = $$03952;$$141 = $$04051;$$144 = $$04350;$43 = $32;
  36059. }
  36060. while(1) {
  36061. $40 = $$141 << 6;
  36062. $41 = ((($$1)) + 1|0);
  36063. $42 = $43&255;
  36064. $44 = (($42) + -128)|0;
  36065. $45 = $44 | $40;
  36066. $46 = (($$144) + -1)|0;
  36067. $47 = ($45|0)<(0);
  36068. if (!($47)) {
  36069. break;
  36070. }
  36071. $49 = ($46|0)==(0);
  36072. if ($49) {
  36073. $$2 = $45;
  36074. break L14;
  36075. }
  36076. $50 = HEAP8[$41>>0]|0;
  36077. $51 = $50 & -64;
  36078. $52 = ($51<<24>>24)==(-128);
  36079. if ($52) {
  36080. $$1 = $41;$$141 = $45;$$144 = $46;$43 = $50;
  36081. } else {
  36082. label = 17;
  36083. break L1;
  36084. }
  36085. }
  36086. HEAP32[$$>>2] = 0;
  36087. HEAP32[$$47>>2] = $45;
  36088. $48 = (($2) - ($46))|0;
  36089. $$0 = $48;
  36090. break L1;
  36091. }
  36092. } while(0);
  36093. HEAP32[$$>>2] = $$2;
  36094. $$0 = -2;
  36095. }
  36096. }
  36097. } while(0);
  36098. if ((label|0) == 17) {
  36099. HEAP32[$$>>2] = 0;
  36100. $53 = (___errno_location()|0);
  36101. HEAP32[$53>>2] = 84;
  36102. $$0 = -1;
  36103. }
  36104. STACKTOP = sp;return ($$0|0);
  36105. }
  36106. function ___pthread_self_439() {
  36107. var $0 = 0, label = 0, sp = 0;
  36108. sp = STACKTOP;
  36109. $0 = (_pthread_self()|0);
  36110. return ($0|0);
  36111. }
  36112. function _strcpy($0,$1) {
  36113. $0 = $0|0;
  36114. $1 = $1|0;
  36115. var label = 0, sp = 0;
  36116. sp = STACKTOP;
  36117. (___stpcpy($0,$1)|0);
  36118. return ($0|0);
  36119. }
  36120. function ___stpcpy($0,$1) {
  36121. $0 = $0|0;
  36122. $1 = $1|0;
  36123. 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;
  36124. 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;
  36125. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  36126. sp = STACKTOP;
  36127. $2 = $1;
  36128. $3 = $0;
  36129. $4 = $2 ^ $3;
  36130. $5 = $4 & 3;
  36131. $6 = ($5|0)==(0);
  36132. L1: do {
  36133. if ($6) {
  36134. $7 = $2 & 3;
  36135. $8 = ($7|0)==(0);
  36136. if ($8) {
  36137. $$026$lcssa = $1;$$027$lcssa = $0;
  36138. } else {
  36139. $$02642 = $1;$$02741 = $0;
  36140. while(1) {
  36141. $9 = HEAP8[$$02642>>0]|0;
  36142. HEAP8[$$02741>>0] = $9;
  36143. $10 = ($9<<24>>24)==(0);
  36144. if ($10) {
  36145. $$029 = $$02741;
  36146. break L1;
  36147. }
  36148. $11 = ((($$02642)) + 1|0);
  36149. $12 = ((($$02741)) + 1|0);
  36150. $13 = $11;
  36151. $14 = $13 & 3;
  36152. $15 = ($14|0)==(0);
  36153. if ($15) {
  36154. $$026$lcssa = $11;$$027$lcssa = $12;
  36155. break;
  36156. } else {
  36157. $$02642 = $11;$$02741 = $12;
  36158. }
  36159. }
  36160. }
  36161. $16 = HEAP32[$$026$lcssa>>2]|0;
  36162. $17 = (($16) + -16843009)|0;
  36163. $18 = $16 & -2139062144;
  36164. $19 = $18 ^ -2139062144;
  36165. $20 = $19 & $17;
  36166. $21 = ($20|0)==(0);
  36167. if ($21) {
  36168. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  36169. while(1) {
  36170. $22 = ((($$037)) + 4|0);
  36171. $23 = ((($$02536)) + 4|0);
  36172. HEAP32[$$02536>>2] = $24;
  36173. $25 = HEAP32[$22>>2]|0;
  36174. $26 = (($25) + -16843009)|0;
  36175. $27 = $25 & -2139062144;
  36176. $28 = $27 ^ -2139062144;
  36177. $29 = $28 & $26;
  36178. $30 = ($29|0)==(0);
  36179. if ($30) {
  36180. $$02536 = $23;$$037 = $22;$24 = $25;
  36181. } else {
  36182. $$0$lcssa = $22;$$025$lcssa = $23;
  36183. break;
  36184. }
  36185. }
  36186. } else {
  36187. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  36188. }
  36189. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  36190. label = 8;
  36191. } else {
  36192. $$1$ph = $1;$$128$ph = $0;
  36193. label = 8;
  36194. }
  36195. } while(0);
  36196. if ((label|0) == 8) {
  36197. $31 = HEAP8[$$1$ph>>0]|0;
  36198. HEAP8[$$128$ph>>0] = $31;
  36199. $32 = ($31<<24>>24)==(0);
  36200. if ($32) {
  36201. $$029 = $$128$ph;
  36202. } else {
  36203. $$12834 = $$128$ph;$$135 = $$1$ph;
  36204. while(1) {
  36205. $33 = ((($$135)) + 1|0);
  36206. $34 = ((($$12834)) + 1|0);
  36207. $35 = HEAP8[$33>>0]|0;
  36208. HEAP8[$34>>0] = $35;
  36209. $36 = ($35<<24>>24)==(0);
  36210. if ($36) {
  36211. $$029 = $34;
  36212. break;
  36213. } else {
  36214. $$12834 = $34;$$135 = $33;
  36215. }
  36216. }
  36217. }
  36218. }
  36219. return ($$029|0);
  36220. }
  36221. function ___unlist_locked_file($0) {
  36222. $0 = $0|0;
  36223. 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;
  36224. sp = STACKTOP;
  36225. $1 = ((($0)) + 68|0);
  36226. $2 = HEAP32[$1>>2]|0;
  36227. $3 = ($2|0)==(0);
  36228. if (!($3)) {
  36229. $4 = ((($0)) + 116|0);
  36230. $5 = HEAP32[$4>>2]|0;
  36231. $6 = ($5|0)==(0|0);
  36232. $$pre = ((($0)) + 112|0);
  36233. if (!($6)) {
  36234. $7 = HEAP32[$$pre>>2]|0;
  36235. $8 = ((($5)) + 112|0);
  36236. HEAP32[$8>>2] = $7;
  36237. }
  36238. $9 = HEAP32[$$pre>>2]|0;
  36239. $10 = ($9|0)==(0|0);
  36240. if ($10) {
  36241. $12 = (___pthread_self_607()|0);
  36242. $13 = ((($12)) + 232|0);
  36243. $$sink = $13;
  36244. } else {
  36245. $11 = ((($9)) + 116|0);
  36246. $$sink = $11;
  36247. }
  36248. HEAP32[$$sink>>2] = $5;
  36249. }
  36250. return;
  36251. }
  36252. function ___pthread_self_607() {
  36253. var $0 = 0, label = 0, sp = 0;
  36254. sp = STACKTOP;
  36255. $0 = (_pthread_self()|0);
  36256. return ($0|0);
  36257. }
  36258. function _fopen($0,$1) {
  36259. $0 = $0|0;
  36260. $1 = $1|0;
  36261. 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;
  36262. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  36263. sp = STACKTOP;
  36264. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  36265. $vararg_buffer8 = sp + 32|0;
  36266. $vararg_buffer3 = sp + 16|0;
  36267. $vararg_buffer = sp;
  36268. $2 = HEAP8[$1>>0]|0;
  36269. $3 = $2 << 24 >> 24;
  36270. $memchr = (_memchr(18141,$3,4)|0);
  36271. $4 = ($memchr|0)==(0|0);
  36272. if ($4) {
  36273. $5 = (___errno_location()|0);
  36274. HEAP32[$5>>2] = 22;
  36275. $$0 = 0;
  36276. } else {
  36277. $6 = (___fmodeflags($1)|0);
  36278. $7 = $0;
  36279. $8 = $6 | 32768;
  36280. HEAP32[$vararg_buffer>>2] = $7;
  36281. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  36282. HEAP32[$vararg_ptr1>>2] = $8;
  36283. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  36284. HEAP32[$vararg_ptr2>>2] = 438;
  36285. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  36286. $10 = (___syscall_ret($9)|0);
  36287. $11 = ($10|0)<(0);
  36288. if ($11) {
  36289. $$0 = 0;
  36290. } else {
  36291. $12 = $6 & 524288;
  36292. $13 = ($12|0)==(0);
  36293. if (!($13)) {
  36294. HEAP32[$vararg_buffer3>>2] = $10;
  36295. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  36296. HEAP32[$vararg_ptr6>>2] = 2;
  36297. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  36298. HEAP32[$vararg_ptr7>>2] = 1;
  36299. (___syscall221(221,($vararg_buffer3|0))|0);
  36300. }
  36301. $14 = (___fdopen($10,$1)|0);
  36302. $15 = ($14|0)==(0|0);
  36303. if ($15) {
  36304. HEAP32[$vararg_buffer8>>2] = $10;
  36305. (___syscall6(6,($vararg_buffer8|0))|0);
  36306. $$0 = 0;
  36307. } else {
  36308. $$0 = $14;
  36309. }
  36310. }
  36311. }
  36312. STACKTOP = sp;return ($$0|0);
  36313. }
  36314. function ___fmodeflags($0) {
  36315. $0 = $0|0;
  36316. 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;
  36317. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  36318. sp = STACKTOP;
  36319. $1 = (_strchr($0,43)|0);
  36320. $2 = ($1|0)==(0|0);
  36321. $3 = HEAP8[$0>>0]|0;
  36322. $not$ = ($3<<24>>24)!=(114);
  36323. $$ = $not$&1;
  36324. $$0 = $2 ? $$ : 2;
  36325. $4 = (_strchr($0,120)|0);
  36326. $5 = ($4|0)==(0|0);
  36327. $6 = $$0 | 128;
  36328. $$0$ = $5 ? $$0 : $6;
  36329. $7 = (_strchr($0,101)|0);
  36330. $8 = ($7|0)==(0|0);
  36331. $9 = $$0$ | 524288;
  36332. $$2 = $8 ? $$0$ : $9;
  36333. $10 = ($3<<24>>24)==(114);
  36334. $11 = $$2 | 64;
  36335. $$2$ = $10 ? $$2 : $11;
  36336. $12 = ($3<<24>>24)==(119);
  36337. $13 = $$2$ | 512;
  36338. $$4 = $12 ? $13 : $$2$;
  36339. $14 = ($3<<24>>24)==(97);
  36340. $15 = $$4 | 1024;
  36341. $$$4 = $14 ? $15 : $$4;
  36342. return ($$$4|0);
  36343. }
  36344. function ___fdopen($0,$1) {
  36345. $0 = $0|0;
  36346. $1 = $1|0;
  36347. 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;
  36348. 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;
  36349. 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;
  36350. sp = STACKTOP;
  36351. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  36352. $vararg_buffer12 = sp + 40|0;
  36353. $vararg_buffer7 = sp + 24|0;
  36354. $vararg_buffer3 = sp + 16|0;
  36355. $vararg_buffer = sp;
  36356. $2 = sp + 56|0;
  36357. $3 = HEAP8[$1>>0]|0;
  36358. $4 = $3 << 24 >> 24;
  36359. $memchr = (_memchr(18141,$4,4)|0);
  36360. $5 = ($memchr|0)==(0|0);
  36361. if ($5) {
  36362. $6 = (___errno_location()|0);
  36363. HEAP32[$6>>2] = 22;
  36364. $$0 = 0;
  36365. } else {
  36366. $7 = (_malloc(1156)|0);
  36367. $8 = ($7|0)==(0|0);
  36368. if ($8) {
  36369. $$0 = 0;
  36370. } else {
  36371. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  36372. $9 = (_strchr($1,43)|0);
  36373. $10 = ($9|0)==(0|0);
  36374. if ($10) {
  36375. $11 = ($3<<24>>24)==(114);
  36376. $12 = $11 ? 8 : 4;
  36377. HEAP32[$7>>2] = $12;
  36378. }
  36379. $13 = (_strchr($1,101)|0);
  36380. $14 = ($13|0)==(0|0);
  36381. if ($14) {
  36382. $16 = $3;
  36383. } else {
  36384. HEAP32[$vararg_buffer>>2] = $0;
  36385. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  36386. HEAP32[$vararg_ptr1>>2] = 2;
  36387. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  36388. HEAP32[$vararg_ptr2>>2] = 1;
  36389. (___syscall221(221,($vararg_buffer|0))|0);
  36390. $$pre = HEAP8[$1>>0]|0;
  36391. $16 = $$pre;
  36392. }
  36393. $15 = ($16<<24>>24)==(97);
  36394. if ($15) {
  36395. HEAP32[$vararg_buffer3>>2] = $0;
  36396. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  36397. HEAP32[$vararg_ptr6>>2] = 3;
  36398. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  36399. $18 = $17 & 1024;
  36400. $19 = ($18|0)==(0);
  36401. if ($19) {
  36402. $20 = $17 | 1024;
  36403. HEAP32[$vararg_buffer7>>2] = $0;
  36404. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  36405. HEAP32[$vararg_ptr10>>2] = 4;
  36406. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  36407. HEAP32[$vararg_ptr11>>2] = $20;
  36408. (___syscall221(221,($vararg_buffer7|0))|0);
  36409. }
  36410. $21 = HEAP32[$7>>2]|0;
  36411. $22 = $21 | 128;
  36412. HEAP32[$7>>2] = $22;
  36413. $29 = $22;
  36414. } else {
  36415. $$pre31 = HEAP32[$7>>2]|0;
  36416. $29 = $$pre31;
  36417. }
  36418. $23 = ((($7)) + 60|0);
  36419. HEAP32[$23>>2] = $0;
  36420. $24 = ((($7)) + 132|0);
  36421. $25 = ((($7)) + 44|0);
  36422. HEAP32[$25>>2] = $24;
  36423. $26 = ((($7)) + 48|0);
  36424. HEAP32[$26>>2] = 1024;
  36425. $27 = ((($7)) + 75|0);
  36426. HEAP8[$27>>0] = -1;
  36427. $28 = $29 & 8;
  36428. $30 = ($28|0)==(0);
  36429. if ($30) {
  36430. $31 = $2;
  36431. HEAP32[$vararg_buffer12>>2] = $0;
  36432. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  36433. HEAP32[$vararg_ptr15>>2] = 21523;
  36434. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  36435. HEAP32[$vararg_ptr16>>2] = $31;
  36436. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  36437. $33 = ($32|0)==(0);
  36438. if ($33) {
  36439. HEAP8[$27>>0] = 10;
  36440. }
  36441. }
  36442. $34 = ((($7)) + 32|0);
  36443. HEAP32[$34>>2] = 11;
  36444. $35 = ((($7)) + 36|0);
  36445. HEAP32[$35>>2] = 10;
  36446. $36 = ((($7)) + 40|0);
  36447. HEAP32[$36>>2] = 3;
  36448. $37 = ((($7)) + 12|0);
  36449. HEAP32[$37>>2] = 2;
  36450. $38 = HEAP32[(21104)>>2]|0;
  36451. $39 = ($38|0)==(0);
  36452. if ($39) {
  36453. $40 = ((($7)) + 76|0);
  36454. HEAP32[$40>>2] = -1;
  36455. }
  36456. $41 = (___ofl_add($7)|0);
  36457. $$0 = $7;
  36458. }
  36459. }
  36460. STACKTOP = sp;return ($$0|0);
  36461. }
  36462. function ___ofl_add($0) {
  36463. $0 = $0|0;
  36464. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  36465. sp = STACKTOP;
  36466. $1 = (___ofl_lock()|0);
  36467. $2 = HEAP32[$1>>2]|0;
  36468. $3 = ((($0)) + 56|0);
  36469. HEAP32[$3>>2] = $2;
  36470. $4 = HEAP32[$1>>2]|0;
  36471. $5 = ($4|0)==(0|0);
  36472. if (!($5)) {
  36473. $6 = ((($4)) + 52|0);
  36474. HEAP32[$6>>2] = $0;
  36475. }
  36476. HEAP32[$1>>2] = $0;
  36477. ___ofl_unlock();
  36478. return ($0|0);
  36479. }
  36480. function ___ofl_lock() {
  36481. var label = 0, sp = 0;
  36482. sp = STACKTOP;
  36483. ___lock((21168|0));
  36484. return (21176|0);
  36485. }
  36486. function ___ofl_unlock() {
  36487. var label = 0, sp = 0;
  36488. sp = STACKTOP;
  36489. ___unlock((21168|0));
  36490. return;
  36491. }
  36492. function _fclose($0) {
  36493. $0 = $0|0;
  36494. 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;
  36495. 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;
  36496. sp = STACKTOP;
  36497. $1 = ((($0)) + 76|0);
  36498. $2 = HEAP32[$1>>2]|0;
  36499. $3 = ($2|0)>(-1);
  36500. if ($3) {
  36501. $4 = (___lockfile($0)|0);
  36502. $29 = $4;
  36503. } else {
  36504. $29 = 0;
  36505. }
  36506. ___unlist_locked_file($0);
  36507. $5 = HEAP32[$0>>2]|0;
  36508. $6 = $5 & 1;
  36509. $7 = ($6|0)!=(0);
  36510. if (!($7)) {
  36511. $8 = (___ofl_lock()|0);
  36512. $9 = ((($0)) + 52|0);
  36513. $10 = HEAP32[$9>>2]|0;
  36514. $11 = ($10|0)==(0|0);
  36515. $12 = $10;
  36516. $$pre = ((($0)) + 56|0);
  36517. if (!($11)) {
  36518. $13 = HEAP32[$$pre>>2]|0;
  36519. $14 = ((($10)) + 56|0);
  36520. HEAP32[$14>>2] = $13;
  36521. }
  36522. $15 = HEAP32[$$pre>>2]|0;
  36523. $16 = ($15|0)==(0|0);
  36524. if (!($16)) {
  36525. $17 = ((($15)) + 52|0);
  36526. HEAP32[$17>>2] = $12;
  36527. }
  36528. $18 = HEAP32[$8>>2]|0;
  36529. $19 = ($18|0)==($0|0);
  36530. if ($19) {
  36531. HEAP32[$8>>2] = $15;
  36532. }
  36533. ___ofl_unlock();
  36534. }
  36535. $20 = (_fflush($0)|0);
  36536. $21 = ((($0)) + 12|0);
  36537. $22 = HEAP32[$21>>2]|0;
  36538. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  36539. $24 = $23 | $20;
  36540. $25 = ((($0)) + 92|0);
  36541. $26 = HEAP32[$25>>2]|0;
  36542. $27 = ($26|0)==(0|0);
  36543. if (!($27)) {
  36544. _free($26);
  36545. }
  36546. if ($7) {
  36547. $28 = ($29|0)==(0);
  36548. if (!($28)) {
  36549. ___unlockfile($0);
  36550. }
  36551. } else {
  36552. _free($0);
  36553. }
  36554. return ($24|0);
  36555. }
  36556. function _fflush($0) {
  36557. $0 = $0|0;
  36558. 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;
  36559. 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;
  36560. sp = STACKTOP;
  36561. $1 = ($0|0)==(0|0);
  36562. do {
  36563. if ($1) {
  36564. $8 = HEAP32[1070]|0;
  36565. $9 = ($8|0)==(0|0);
  36566. if ($9) {
  36567. $29 = 0;
  36568. } else {
  36569. $10 = HEAP32[1070]|0;
  36570. $11 = (_fflush($10)|0);
  36571. $29 = $11;
  36572. }
  36573. $12 = (___ofl_lock()|0);
  36574. $$02325 = HEAP32[$12>>2]|0;
  36575. $13 = ($$02325|0)==(0|0);
  36576. if ($13) {
  36577. $$024$lcssa = $29;
  36578. } else {
  36579. $$02327 = $$02325;$$02426 = $29;
  36580. while(1) {
  36581. $14 = ((($$02327)) + 76|0);
  36582. $15 = HEAP32[$14>>2]|0;
  36583. $16 = ($15|0)>(-1);
  36584. if ($16) {
  36585. $17 = (___lockfile($$02327)|0);
  36586. $26 = $17;
  36587. } else {
  36588. $26 = 0;
  36589. }
  36590. $18 = ((($$02327)) + 20|0);
  36591. $19 = HEAP32[$18>>2]|0;
  36592. $20 = ((($$02327)) + 28|0);
  36593. $21 = HEAP32[$20>>2]|0;
  36594. $22 = ($19>>>0)>($21>>>0);
  36595. if ($22) {
  36596. $23 = (___fflush_unlocked($$02327)|0);
  36597. $24 = $23 | $$02426;
  36598. $$1 = $24;
  36599. } else {
  36600. $$1 = $$02426;
  36601. }
  36602. $25 = ($26|0)==(0);
  36603. if (!($25)) {
  36604. ___unlockfile($$02327);
  36605. }
  36606. $27 = ((($$02327)) + 56|0);
  36607. $$023 = HEAP32[$27>>2]|0;
  36608. $28 = ($$023|0)==(0|0);
  36609. if ($28) {
  36610. $$024$lcssa = $$1;
  36611. break;
  36612. } else {
  36613. $$02327 = $$023;$$02426 = $$1;
  36614. }
  36615. }
  36616. }
  36617. ___ofl_unlock();
  36618. $$0 = $$024$lcssa;
  36619. } else {
  36620. $2 = ((($0)) + 76|0);
  36621. $3 = HEAP32[$2>>2]|0;
  36622. $4 = ($3|0)>(-1);
  36623. if (!($4)) {
  36624. $5 = (___fflush_unlocked($0)|0);
  36625. $$0 = $5;
  36626. break;
  36627. }
  36628. $6 = (___lockfile($0)|0);
  36629. $phitmp = ($6|0)==(0);
  36630. $7 = (___fflush_unlocked($0)|0);
  36631. if ($phitmp) {
  36632. $$0 = $7;
  36633. } else {
  36634. ___unlockfile($0);
  36635. $$0 = $7;
  36636. }
  36637. }
  36638. } while(0);
  36639. return ($$0|0);
  36640. }
  36641. function ___fflush_unlocked($0) {
  36642. $0 = $0|0;
  36643. 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;
  36644. var $9 = 0, label = 0, sp = 0;
  36645. sp = STACKTOP;
  36646. $1 = ((($0)) + 20|0);
  36647. $2 = HEAP32[$1>>2]|0;
  36648. $3 = ((($0)) + 28|0);
  36649. $4 = HEAP32[$3>>2]|0;
  36650. $5 = ($2>>>0)>($4>>>0);
  36651. if ($5) {
  36652. $6 = ((($0)) + 36|0);
  36653. $7 = HEAP32[$6>>2]|0;
  36654. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  36655. $8 = HEAP32[$1>>2]|0;
  36656. $9 = ($8|0)==(0|0);
  36657. if ($9) {
  36658. $$0 = -1;
  36659. } else {
  36660. label = 3;
  36661. }
  36662. } else {
  36663. label = 3;
  36664. }
  36665. if ((label|0) == 3) {
  36666. $10 = ((($0)) + 4|0);
  36667. $11 = HEAP32[$10>>2]|0;
  36668. $12 = ((($0)) + 8|0);
  36669. $13 = HEAP32[$12>>2]|0;
  36670. $14 = ($11>>>0)<($13>>>0);
  36671. if ($14) {
  36672. $15 = $11;
  36673. $16 = $13;
  36674. $17 = (($15) - ($16))|0;
  36675. $18 = ((($0)) + 40|0);
  36676. $19 = HEAP32[$18>>2]|0;
  36677. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  36678. }
  36679. $20 = ((($0)) + 16|0);
  36680. HEAP32[$20>>2] = 0;
  36681. HEAP32[$3>>2] = 0;
  36682. HEAP32[$1>>2] = 0;
  36683. HEAP32[$12>>2] = 0;
  36684. HEAP32[$10>>2] = 0;
  36685. $$0 = 0;
  36686. }
  36687. return ($$0|0);
  36688. }
  36689. function _fgets($0,$1,$2) {
  36690. $0 = $0|0;
  36691. $1 = $1|0;
  36692. $2 = $2|0;
  36693. 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;
  36694. 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;
  36695. 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;
  36696. var $sext$mask = 0, label = 0, sp = 0;
  36697. sp = STACKTOP;
  36698. $3 = ((($2)) + 76|0);
  36699. $4 = HEAP32[$3>>2]|0;
  36700. $5 = ($4|0)>(-1);
  36701. if ($5) {
  36702. $6 = (___lockfile($2)|0);
  36703. $17 = $6;
  36704. } else {
  36705. $17 = 0;
  36706. }
  36707. $7 = (($1) + -1)|0;
  36708. $8 = ($1|0)<(2);
  36709. $9 = ($7|0)!=(0);
  36710. if ($8) {
  36711. $10 = ((($2)) + 74|0);
  36712. $11 = HEAP8[$10>>0]|0;
  36713. $12 = $11 << 24 >> 24;
  36714. $13 = (($12) + 255)|0;
  36715. $14 = $13 | $12;
  36716. $15 = $14&255;
  36717. HEAP8[$10>>0] = $15;
  36718. $16 = ($17|0)==(0);
  36719. if (!($16)) {
  36720. ___unlockfile($2);
  36721. }
  36722. if ($9) {
  36723. $$0 = 0;
  36724. } else {
  36725. HEAP8[$0>>0] = 0;
  36726. $$0 = $0;
  36727. }
  36728. } else {
  36729. L11: do {
  36730. if ($9) {
  36731. $18 = ((($2)) + 4|0);
  36732. $19 = ((($2)) + 8|0);
  36733. $$063 = $7;$$064 = $0;
  36734. while(1) {
  36735. $20 = HEAP32[$18>>2]|0;
  36736. $21 = HEAP32[$19>>2]|0;
  36737. $22 = $20;
  36738. $23 = (($21) - ($22))|0;
  36739. $24 = (_memchr($20,10,$23)|0);
  36740. $25 = ($24|0)==(0|0);
  36741. $26 = $24;
  36742. $27 = (1 - ($22))|0;
  36743. $28 = (($27) + ($26))|0;
  36744. $29 = $25 ? $23 : $28;
  36745. $30 = ($29>>>0)<($$063>>>0);
  36746. $31 = $30 ? $29 : $$063;
  36747. _memcpy(($$064|0),($20|0),($31|0))|0;
  36748. $32 = HEAP32[$18>>2]|0;
  36749. $33 = (($32) + ($31)|0);
  36750. HEAP32[$18>>2] = $33;
  36751. $34 = (($$064) + ($31)|0);
  36752. $35 = (($$063) - ($31))|0;
  36753. $36 = ($35|0)!=(0);
  36754. $or$cond = $25 & $36;
  36755. if (!($or$cond)) {
  36756. $$1 = $34;
  36757. label = 17;
  36758. break L11;
  36759. }
  36760. $37 = HEAP32[$19>>2]|0;
  36761. $38 = ($33>>>0)<($37>>>0);
  36762. if ($38) {
  36763. $39 = ((($33)) + 1|0);
  36764. HEAP32[$18>>2] = $39;
  36765. $40 = HEAP8[$33>>0]|0;
  36766. $41 = $40&255;
  36767. $50 = $41;
  36768. } else {
  36769. $42 = (___uflow($2)|0);
  36770. $43 = ($42|0)<(0);
  36771. if ($43) {
  36772. break;
  36773. } else {
  36774. $50 = $42;
  36775. }
  36776. }
  36777. $48 = (($35) + -1)|0;
  36778. $49 = $50&255;
  36779. $51 = ((($34)) + 1|0);
  36780. HEAP8[$34>>0] = $49;
  36781. $sext$mask = $50 & 255;
  36782. $52 = ($sext$mask|0)!=(10);
  36783. $53 = ($48|0)!=(0);
  36784. $or$cond3 = $53 & $52;
  36785. if ($or$cond3) {
  36786. $$063 = $48;$$064 = $51;
  36787. } else {
  36788. $$1 = $51;
  36789. label = 17;
  36790. break L11;
  36791. }
  36792. }
  36793. $44 = ($34|0)==($0|0);
  36794. if ($44) {
  36795. $$06266 = 0;
  36796. } else {
  36797. $45 = HEAP32[$2>>2]|0;
  36798. $46 = $45 & 16;
  36799. $47 = ($46|0)==(0);
  36800. if ($47) {
  36801. $$06266 = 0;
  36802. } else {
  36803. $$1 = $34;
  36804. label = 17;
  36805. }
  36806. }
  36807. } else {
  36808. $$1 = $0;
  36809. label = 17;
  36810. }
  36811. } while(0);
  36812. if ((label|0) == 17) {
  36813. $54 = ($0|0)==(0|0);
  36814. if ($54) {
  36815. $$06266 = 0;
  36816. } else {
  36817. HEAP8[$$1>>0] = 0;
  36818. $$06266 = $0;
  36819. }
  36820. }
  36821. $55 = ($17|0)==(0);
  36822. if ($55) {
  36823. $$0 = $$06266;
  36824. } else {
  36825. ___unlockfile($2);
  36826. $$0 = $$06266;
  36827. }
  36828. }
  36829. return ($$0|0);
  36830. }
  36831. function _feof($0) {
  36832. $0 = $0|0;
  36833. 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;
  36834. sp = STACKTOP;
  36835. $1 = ((($0)) + 76|0);
  36836. $2 = HEAP32[$1>>2]|0;
  36837. $3 = ($2|0)>(-1);
  36838. if ($3) {
  36839. $6 = (___lockfile($0)|0);
  36840. $phitmp = ($6|0)==(0);
  36841. $7 = HEAP32[$0>>2]|0;
  36842. $8 = $7 >>> 4;
  36843. $$lobit = $8 & 1;
  36844. if ($phitmp) {
  36845. $$lobit9 = $$lobit;
  36846. } else {
  36847. ___unlockfile($0);
  36848. $$lobit9 = $$lobit;
  36849. }
  36850. } else {
  36851. $4 = HEAP32[$0>>2]|0;
  36852. $5 = $4 >>> 4;
  36853. $$lobit8 = $5 & 1;
  36854. $$lobit9 = $$lobit8;
  36855. }
  36856. return ($$lobit9|0);
  36857. }
  36858. function _fscanf($0,$1,$varargs) {
  36859. $0 = $0|0;
  36860. $1 = $1|0;
  36861. $varargs = $varargs|0;
  36862. var $2 = 0, $3 = 0, label = 0, sp = 0;
  36863. sp = STACKTOP;
  36864. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  36865. $2 = sp;
  36866. HEAP32[$2>>2] = $varargs;
  36867. $3 = (_vfscanf($0,$1,$2)|0);
  36868. STACKTOP = sp;return ($3|0);
  36869. }
  36870. function _vfscanf($0,$1,$2) {
  36871. $0 = $0|0;
  36872. $1 = $1|0;
  36873. $2 = $2|0;
  36874. 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;
  36875. 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;
  36876. 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;
  36877. 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;
  36878. 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;
  36879. 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;
  36880. 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;
  36881. 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;
  36882. 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;
  36883. 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;
  36884. 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;
  36885. 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;
  36886. 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;
  36887. 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;
  36888. 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;
  36889. 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;
  36890. 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;
  36891. 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;
  36892. 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;
  36893. 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;
  36894. 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;
  36895. sp = STACKTOP;
  36896. STACKTOP = STACKTOP + 288|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(288|0);
  36897. $3 = sp + 8|0;
  36898. $4 = sp + 17|0;
  36899. $5 = sp;
  36900. $6 = sp + 16|0;
  36901. $7 = ((($0)) + 76|0);
  36902. $8 = HEAP32[$7>>2]|0;
  36903. $9 = ($8|0)>(-1);
  36904. if ($9) {
  36905. $10 = (___lockfile($0)|0);
  36906. $306 = $10;
  36907. } else {
  36908. $306 = 0;
  36909. }
  36910. $11 = HEAP8[$1>>0]|0;
  36911. $12 = ($11<<24>>24)==(0);
  36912. L4: do {
  36913. if ($12) {
  36914. $$3291 = 0;
  36915. } else {
  36916. $13 = ((($0)) + 4|0);
  36917. $14 = ((($0)) + 100|0);
  36918. $15 = ((($0)) + 108|0);
  36919. $16 = ((($0)) + 8|0);
  36920. $17 = ((($4)) + 10|0);
  36921. $18 = ((($4)) + 33|0);
  36922. $$sroa$2$0$$sroa_idx13 = ((($3)) + 4|0);
  36923. $19 = ((($4)) + 46|0);
  36924. $20 = ((($4)) + 94|0);
  36925. $21 = ((($4)) + 1|0);
  36926. $22 = ((($4)) + 1|0);
  36927. $$0273429 = $1;$$0283428 = 0;$$0288425 = 0;$$0305423 = 0;$102 = 0;$24 = $11;
  36928. L6: while(1) {
  36929. $23 = $24&255;
  36930. $25 = (_isspace($23)|0);
  36931. $26 = ($25|0)==(0);
  36932. L8: do {
  36933. if ($26) {
  36934. $53 = ($24<<24>>24)==(37);
  36935. L10: do {
  36936. if ($53) {
  36937. $54 = ((($$0273429)) + 1|0);
  36938. $55 = HEAP8[$54>>0]|0;
  36939. L12: do {
  36940. switch ($55<<24>>24) {
  36941. case 37: {
  36942. break L10;
  36943. break;
  36944. }
  36945. case 42: {
  36946. $76 = ((($$0273429)) + 2|0);
  36947. $$0293 = 0;$$2275 = $76;
  36948. break;
  36949. }
  36950. default: {
  36951. $77 = $55&255;
  36952. $isdigittmp = (($77) + -48)|0;
  36953. $isdigit = ($isdigittmp>>>0)<(10);
  36954. if ($isdigit) {
  36955. $78 = ((($$0273429)) + 2|0);
  36956. $79 = HEAP8[$78>>0]|0;
  36957. $80 = ($79<<24>>24)==(36);
  36958. if ($80) {
  36959. $81 = (_arg_n($2,$isdigittmp)|0);
  36960. $82 = ((($$0273429)) + 3|0);
  36961. $$0293 = $81;$$2275 = $82;
  36962. break L12;
  36963. }
  36964. }
  36965. $arglist_current = HEAP32[$2>>2]|0;
  36966. $83 = $arglist_current;
  36967. $84 = ((0) + 4|0);
  36968. $expanded1 = $84;
  36969. $expanded = (($expanded1) - 1)|0;
  36970. $85 = (($83) + ($expanded))|0;
  36971. $86 = ((0) + 4|0);
  36972. $expanded5 = $86;
  36973. $expanded4 = (($expanded5) - 1)|0;
  36974. $expanded3 = $expanded4 ^ -1;
  36975. $87 = $85 & $expanded3;
  36976. $88 = $87;
  36977. $89 = HEAP32[$88>>2]|0;
  36978. $arglist_next = ((($88)) + 4|0);
  36979. HEAP32[$2>>2] = $arglist_next;
  36980. $$0293 = $89;$$2275 = $54;
  36981. }
  36982. }
  36983. } while(0);
  36984. $90 = HEAP8[$$2275>>0]|0;
  36985. $91 = $90&255;
  36986. $isdigittmp315414 = (($91) + -48)|0;
  36987. $isdigit316415 = ($isdigittmp315414>>>0)<(10);
  36988. if ($isdigit316415) {
  36989. $$0266417 = 0;$$3416 = $$2275;$95 = $91;
  36990. while(1) {
  36991. $92 = ($$0266417*10)|0;
  36992. $93 = (($92) + -48)|0;
  36993. $94 = (($93) + ($95))|0;
  36994. $96 = ((($$3416)) + 1|0);
  36995. $97 = HEAP8[$96>>0]|0;
  36996. $98 = $97&255;
  36997. $isdigittmp315 = (($98) + -48)|0;
  36998. $isdigit316 = ($isdigittmp315>>>0)<(10);
  36999. if ($isdigit316) {
  37000. $$0266417 = $94;$$3416 = $96;$95 = $98;
  37001. } else {
  37002. $$0266$lcssa = $94;$$3$lcssa = $96;$$lcssa355 = $97;
  37003. break;
  37004. }
  37005. }
  37006. } else {
  37007. $$0266$lcssa = 0;$$3$lcssa = $$2275;$$lcssa355 = $90;
  37008. }
  37009. $99 = ($$lcssa355<<24>>24)==(109);
  37010. $100 = ($$0293|0)!=(0|0);
  37011. $101 = ((($$3$lcssa)) + 1|0);
  37012. $$$0305 = $99 ? 0 : $$0305423;
  37013. $$327 = $99 ? 0 : $102;
  37014. $$$3 = $99 ? $101 : $$3$lcssa;
  37015. $narrow = $100 & $99;
  37016. $103 = ((($$$3)) + 1|0);
  37017. $104 = HEAP8[$$$3>>0]|0;
  37018. switch ($104<<24>>24) {
  37019. case 104: {
  37020. $105 = HEAP8[$103>>0]|0;
  37021. $106 = ($105<<24>>24)==(104);
  37022. $107 = ((($$$3)) + 2|0);
  37023. $$319 = $106 ? $107 : $103;
  37024. $$320 = $106 ? -2 : -1;
  37025. $$0268 = $$320;$$5 = $$319;
  37026. break;
  37027. }
  37028. case 108: {
  37029. $108 = HEAP8[$103>>0]|0;
  37030. $109 = ($108<<24>>24)==(108);
  37031. $110 = ((($$$3)) + 2|0);
  37032. $$321 = $109 ? $110 : $103;
  37033. $$322 = $109 ? 3 : 1;
  37034. $$0268 = $$322;$$5 = $$321;
  37035. break;
  37036. }
  37037. case 106: {
  37038. $$0268 = 3;$$5 = $103;
  37039. break;
  37040. }
  37041. case 116: case 122: {
  37042. $$0268 = 1;$$5 = $103;
  37043. break;
  37044. }
  37045. case 76: {
  37046. $$0268 = 2;$$5 = $103;
  37047. break;
  37048. }
  37049. 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: {
  37050. $$0268 = 0;$$5 = $$$3;
  37051. break;
  37052. }
  37053. default: {
  37054. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  37055. label = 137;
  37056. break L6;
  37057. }
  37058. }
  37059. $111 = HEAP8[$$5>>0]|0;
  37060. $112 = $111&255;
  37061. $113 = $112 & 47;
  37062. $114 = ($113|0)==(3);
  37063. $115 = $112 | 32;
  37064. $$ = $114 ? $115 : $112;
  37065. $$$0268 = $114 ? 1 : $$0268;
  37066. $trunc = $$&255;
  37067. switch ($trunc<<24>>24) {
  37068. case 99: {
  37069. $116 = ($$0266$lcssa|0)>(1);
  37070. $$$0266 = $116 ? $$0266$lcssa : 1;
  37071. $$1267 = $$$0266;$$1284 = $$0283428;
  37072. break;
  37073. }
  37074. case 91: {
  37075. $$1267 = $$0266$lcssa;$$1284 = $$0283428;
  37076. break;
  37077. }
  37078. case 110: {
  37079. $117 = ($$0283428|0)<(0);
  37080. $118 = $117 << 31 >> 31;
  37081. _store_int($$0293,$$$0268,$$0283428,$118);
  37082. $$11 = $$5;$$1289 = $$0288425;$$2285 = $$0283428;$$6311 = $$$0305;$307 = $$327;
  37083. break L8;
  37084. break;
  37085. }
  37086. default: {
  37087. ___shlim($0,0);
  37088. while(1) {
  37089. $119 = HEAP32[$13>>2]|0;
  37090. $120 = HEAP32[$14>>2]|0;
  37091. $121 = ($119>>>0)<($120>>>0);
  37092. if ($121) {
  37093. $122 = ((($119)) + 1|0);
  37094. HEAP32[$13>>2] = $122;
  37095. $123 = HEAP8[$119>>0]|0;
  37096. $124 = $123&255;
  37097. $126 = $124;
  37098. } else {
  37099. $125 = (___shgetc($0)|0);
  37100. $126 = $125;
  37101. }
  37102. $127 = (_isspace($126)|0);
  37103. $128 = ($127|0)==(0);
  37104. if ($128) {
  37105. break;
  37106. }
  37107. }
  37108. $129 = HEAP32[$14>>2]|0;
  37109. $130 = ($129|0)==(0|0);
  37110. if ($130) {
  37111. $$pre507 = HEAP32[$13>>2]|0;
  37112. $138 = $$pre507;
  37113. } else {
  37114. $131 = HEAP32[$13>>2]|0;
  37115. $132 = ((($131)) + -1|0);
  37116. HEAP32[$13>>2] = $132;
  37117. $133 = $132;
  37118. $138 = $133;
  37119. }
  37120. $134 = HEAP32[$15>>2]|0;
  37121. $135 = HEAP32[$16>>2]|0;
  37122. $136 = (($134) + ($$0283428))|0;
  37123. $137 = (($136) + ($138))|0;
  37124. $139 = (($137) - ($135))|0;
  37125. $$1267 = $$0266$lcssa;$$1284 = $139;
  37126. }
  37127. }
  37128. ___shlim($0,$$1267);
  37129. $140 = HEAP32[$13>>2]|0;
  37130. $141 = HEAP32[$14>>2]|0;
  37131. $142 = ($140>>>0)<($141>>>0);
  37132. if ($142) {
  37133. $143 = ((($140)) + 1|0);
  37134. HEAP32[$13>>2] = $143;
  37135. $147 = $141;
  37136. } else {
  37137. $144 = (___shgetc($0)|0);
  37138. $145 = ($144|0)<(0);
  37139. if ($145) {
  37140. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  37141. label = 137;
  37142. break L6;
  37143. }
  37144. $$pre509 = HEAP32[$14>>2]|0;
  37145. $147 = $$pre509;
  37146. }
  37147. $146 = ($147|0)==(0|0);
  37148. if (!($146)) {
  37149. $148 = HEAP32[$13>>2]|0;
  37150. $149 = ((($148)) + -1|0);
  37151. HEAP32[$13>>2] = $149;
  37152. }
  37153. L55: do {
  37154. switch ($trunc<<24>>24) {
  37155. case 91: case 99: case 115: {
  37156. $150 = ($$|0)==(99);
  37157. $151 = $$ | 16;
  37158. $152 = ($151|0)==(115);
  37159. L57: do {
  37160. if ($152) {
  37161. $153 = ($$|0)==(115);
  37162. _memset(($21|0),-1,256)|0;
  37163. HEAP8[$4>>0] = 0;
  37164. if ($153) {
  37165. HEAP8[$18>>0] = 0;
  37166. ;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;
  37167. $$9 = $$5;
  37168. } else {
  37169. $$9 = $$5;
  37170. }
  37171. } else {
  37172. $154 = ((($$5)) + 1|0);
  37173. $155 = HEAP8[$154>>0]|0;
  37174. $156 = ($155<<24>>24)==(94);
  37175. $157 = ((($$5)) + 2|0);
  37176. $$0292 = $156&1;
  37177. $$6 = $156 ? $157 : $154;
  37178. $158 = $156&1;
  37179. _memset(($22|0),($158|0),256)|0;
  37180. HEAP8[$4>>0] = 0;
  37181. $159 = HEAP8[$$6>>0]|0;
  37182. switch ($159<<24>>24) {
  37183. case 45: {
  37184. $$sink443 = $19;
  37185. label = 64;
  37186. break;
  37187. }
  37188. case 93: {
  37189. $$sink443 = $20;
  37190. label = 64;
  37191. break;
  37192. }
  37193. default: {
  37194. $$pre514 = $$0292 ^ 1;
  37195. $$pre515 = $$pre514&255;
  37196. $$7$ph = $$6;$$pre$phi516Z2D = $$pre515;
  37197. }
  37198. }
  37199. if ((label|0) == 64) {
  37200. label = 0;
  37201. $160 = ((($$6)) + 1|0);
  37202. $161 = $$0292 ^ 1;
  37203. $162 = $161&255;
  37204. HEAP8[$$sink443>>0] = $162;
  37205. $$7$ph = $160;$$pre$phi516Z2D = $162;
  37206. }
  37207. $$7 = $$7$ph;
  37208. while(1) {
  37209. $163 = HEAP8[$$7>>0]|0;
  37210. L69: do {
  37211. switch ($163<<24>>24) {
  37212. case 0: {
  37213. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  37214. label = 137;
  37215. break L6;
  37216. break;
  37217. }
  37218. case 93: {
  37219. $$9 = $$7;
  37220. break L57;
  37221. break;
  37222. }
  37223. case 45: {
  37224. $164 = ((($$7)) + 1|0);
  37225. $165 = HEAP8[$164>>0]|0;
  37226. switch ($165<<24>>24) {
  37227. case 93: case 0: {
  37228. $$8 = $$7;$176 = 45;
  37229. break L69;
  37230. break;
  37231. }
  37232. default: {
  37233. }
  37234. }
  37235. $166 = ((($$7)) + -1|0);
  37236. $167 = HEAP8[$166>>0]|0;
  37237. $168 = ($167&255)<($165&255);
  37238. if ($168) {
  37239. $169 = $167&255;
  37240. $$0286420 = $169;
  37241. while(1) {
  37242. $170 = (($$0286420) + 1)|0;
  37243. $171 = (($4) + ($170)|0);
  37244. HEAP8[$171>>0] = $$pre$phi516Z2D;
  37245. $172 = HEAP8[$164>>0]|0;
  37246. $173 = $172&255;
  37247. $174 = ($170|0)<($173|0);
  37248. if ($174) {
  37249. $$0286420 = $170;
  37250. } else {
  37251. $$8 = $164;$176 = $172;
  37252. break;
  37253. }
  37254. }
  37255. } else {
  37256. $$8 = $164;$176 = $165;
  37257. }
  37258. break;
  37259. }
  37260. default: {
  37261. $$8 = $$7;$176 = $163;
  37262. }
  37263. }
  37264. } while(0);
  37265. $175 = $176&255;
  37266. $177 = (($175) + 1)|0;
  37267. $178 = (($4) + ($177)|0);
  37268. HEAP8[$178>>0] = $$pre$phi516Z2D;
  37269. $179 = ((($$8)) + 1|0);
  37270. $$7 = $179;
  37271. }
  37272. }
  37273. } while(0);
  37274. $180 = (($$1267) + 1)|0;
  37275. $181 = $150 ? $180 : 31;
  37276. $182 = ($$$0268|0)==(1);
  37277. L77: do {
  37278. if ($182) {
  37279. if ($narrow) {
  37280. $183 = $181 << 2;
  37281. $184 = (_malloc($183)|0);
  37282. $185 = ($184|0)==(0|0);
  37283. if ($185) {
  37284. $$7312 = 0;$309 = 0;$narrow469 = 1;
  37285. label = 137;
  37286. break L6;
  37287. } else {
  37288. $311 = $184;
  37289. }
  37290. } else {
  37291. $311 = $$0293;
  37292. }
  37293. HEAP32[$3>>2] = 0;
  37294. HEAP32[$$sroa$2$0$$sroa_idx13>>2] = 0;
  37295. $$0276$ph = $181;$$0278$ph = 0;$$ph = $311;
  37296. L82: while(1) {
  37297. $186 = ($$ph|0)==(0|0);
  37298. $$0278$ph336 = $$0278$ph;
  37299. while(1) {
  37300. L86: while(1) {
  37301. $187 = HEAP32[$13>>2]|0;
  37302. $188 = HEAP32[$14>>2]|0;
  37303. $189 = ($187>>>0)<($188>>>0);
  37304. if ($189) {
  37305. $190 = ((($187)) + 1|0);
  37306. HEAP32[$13>>2] = $190;
  37307. $191 = HEAP8[$187>>0]|0;
  37308. $192 = $191&255;
  37309. $195 = $192;
  37310. } else {
  37311. $193 = (___shgetc($0)|0);
  37312. $195 = $193;
  37313. }
  37314. $194 = (($195) + 1)|0;
  37315. $196 = (($4) + ($194)|0);
  37316. $197 = HEAP8[$196>>0]|0;
  37317. $198 = ($197<<24>>24)==(0);
  37318. if ($198) {
  37319. break L82;
  37320. }
  37321. $199 = $195&255;
  37322. HEAP8[$6>>0] = $199;
  37323. $200 = (_mbrtowc($5,$6,1,$3)|0);
  37324. switch ($200|0) {
  37325. case -1: {
  37326. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  37327. label = 137;
  37328. break L6;
  37329. break;
  37330. }
  37331. case -2: {
  37332. break;
  37333. }
  37334. default: {
  37335. break L86;
  37336. }
  37337. }
  37338. }
  37339. if ($186) {
  37340. $$1279 = $$0278$ph336;
  37341. } else {
  37342. $201 = (($$ph) + ($$0278$ph336<<2)|0);
  37343. $202 = (($$0278$ph336) + 1)|0;
  37344. $203 = HEAP32[$5>>2]|0;
  37345. HEAP32[$201>>2] = $203;
  37346. $$1279 = $202;
  37347. }
  37348. $204 = ($$1279|0)==($$0276$ph|0);
  37349. $or$cond = $narrow & $204;
  37350. if ($or$cond) {
  37351. break;
  37352. } else {
  37353. $$0278$ph336 = $$1279;
  37354. }
  37355. }
  37356. $factor331 = $$0276$ph << 1;
  37357. $205 = $factor331 | 1;
  37358. $206 = $205 << 2;
  37359. $207 = (_realloc($$ph,$206)|0);
  37360. $208 = ($207|0)==(0|0);
  37361. if ($208) {
  37362. $$7312 = 0;$309 = $$ph;$narrow469 = 1;
  37363. label = 137;
  37364. break L6;
  37365. } else {
  37366. $$0278$ph$phi = $$0276$ph;$$0276$ph = $205;$$ph = $207;$$0278$ph = $$0278$ph$phi;
  37367. }
  37368. }
  37369. $209 = (_mbsinit($3)|0);
  37370. $210 = ($209|0)==(0);
  37371. if ($210) {
  37372. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  37373. label = 137;
  37374. break L6;
  37375. } else {
  37376. $$4282 = $$0278$ph336;$$4309 = 0;$$5299 = $$ph;$312 = $$ph;
  37377. }
  37378. } else {
  37379. if ($narrow) {
  37380. $211 = (_malloc($181)|0);
  37381. $212 = ($211|0)==(0|0);
  37382. if ($212) {
  37383. $$7312 = 0;$309 = 0;$narrow469 = 1;
  37384. label = 137;
  37385. break L6;
  37386. } else {
  37387. $$1277$ph = $181;$$2280$ph = 0;$$2307$ph = $211;
  37388. }
  37389. while(1) {
  37390. $$2280 = $$2280$ph;
  37391. while(1) {
  37392. $213 = HEAP32[$13>>2]|0;
  37393. $214 = HEAP32[$14>>2]|0;
  37394. $215 = ($213>>>0)<($214>>>0);
  37395. if ($215) {
  37396. $216 = ((($213)) + 1|0);
  37397. HEAP32[$13>>2] = $216;
  37398. $217 = HEAP8[$213>>0]|0;
  37399. $218 = $217&255;
  37400. $221 = $218;
  37401. } else {
  37402. $219 = (___shgetc($0)|0);
  37403. $221 = $219;
  37404. }
  37405. $220 = (($221) + 1)|0;
  37406. $222 = (($4) + ($220)|0);
  37407. $223 = HEAP8[$222>>0]|0;
  37408. $224 = ($223<<24>>24)==(0);
  37409. if ($224) {
  37410. $$4282 = $$2280;$$4309 = $$2307$ph;$$5299 = 0;$312 = 0;
  37411. break L77;
  37412. }
  37413. $225 = $221&255;
  37414. $226 = (($$2280) + 1)|0;
  37415. $227 = (($$2307$ph) + ($$2280)|0);
  37416. HEAP8[$227>>0] = $225;
  37417. $228 = ($226|0)==($$1277$ph|0);
  37418. if ($228) {
  37419. break;
  37420. } else {
  37421. $$2280 = $226;
  37422. }
  37423. }
  37424. $factor = $$1277$ph << 1;
  37425. $229 = $factor | 1;
  37426. $230 = (_realloc($$2307$ph,$229)|0);
  37427. $231 = ($230|0)==(0|0);
  37428. if ($231) {
  37429. $$7312 = $$2307$ph;$309 = 0;$narrow469 = 1;
  37430. label = 137;
  37431. break L6;
  37432. } else {
  37433. $$2280$ph$phi = $$1277$ph;$$1277$ph = $229;$$2307$ph = $230;$$2280$ph = $$2280$ph$phi;
  37434. }
  37435. }
  37436. }
  37437. $232 = ($$0293|0)==(0|0);
  37438. if ($232) {
  37439. $250 = $147;
  37440. while(1) {
  37441. $248 = HEAP32[$13>>2]|0;
  37442. $249 = ($248>>>0)<($250>>>0);
  37443. if ($249) {
  37444. $251 = ((($248)) + 1|0);
  37445. HEAP32[$13>>2] = $251;
  37446. $252 = HEAP8[$248>>0]|0;
  37447. $253 = $252&255;
  37448. $256 = $253;
  37449. } else {
  37450. $254 = (___shgetc($0)|0);
  37451. $256 = $254;
  37452. }
  37453. $255 = (($256) + 1)|0;
  37454. $257 = (($4) + ($255)|0);
  37455. $258 = HEAP8[$257>>0]|0;
  37456. $259 = ($258<<24>>24)==(0);
  37457. if ($259) {
  37458. $$4282 = 0;$$4309 = 0;$$5299 = 0;$312 = 0;
  37459. break L77;
  37460. }
  37461. $$pre512 = HEAP32[$14>>2]|0;
  37462. $250 = $$pre512;
  37463. }
  37464. } else {
  37465. $$3281 = 0;$235 = $147;
  37466. while(1) {
  37467. $233 = HEAP32[$13>>2]|0;
  37468. $234 = ($233>>>0)<($235>>>0);
  37469. if ($234) {
  37470. $236 = ((($233)) + 1|0);
  37471. HEAP32[$13>>2] = $236;
  37472. $237 = HEAP8[$233>>0]|0;
  37473. $238 = $237&255;
  37474. $241 = $238;
  37475. } else {
  37476. $239 = (___shgetc($0)|0);
  37477. $241 = $239;
  37478. }
  37479. $240 = (($241) + 1)|0;
  37480. $242 = (($4) + ($240)|0);
  37481. $243 = HEAP8[$242>>0]|0;
  37482. $244 = ($243<<24>>24)==(0);
  37483. if ($244) {
  37484. $$4282 = $$3281;$$4309 = $$0293;$$5299 = 0;$312 = 0;
  37485. break L77;
  37486. }
  37487. $245 = $241&255;
  37488. $246 = (($$3281) + 1)|0;
  37489. $247 = (($$0293) + ($$3281)|0);
  37490. HEAP8[$247>>0] = $245;
  37491. $$pre511 = HEAP32[$14>>2]|0;
  37492. $$3281 = $246;$235 = $$pre511;
  37493. }
  37494. }
  37495. }
  37496. } while(0);
  37497. $260 = HEAP32[$14>>2]|0;
  37498. $261 = ($260|0)==(0|0);
  37499. if ($261) {
  37500. $$pre513 = HEAP32[$13>>2]|0;
  37501. $268 = $$pre513;
  37502. } else {
  37503. $262 = HEAP32[$13>>2]|0;
  37504. $263 = ((($262)) + -1|0);
  37505. HEAP32[$13>>2] = $263;
  37506. $264 = $263;
  37507. $268 = $264;
  37508. }
  37509. $265 = HEAP32[$15>>2]|0;
  37510. $266 = HEAP32[$16>>2]|0;
  37511. $267 = (($268) - ($266))|0;
  37512. $269 = (($267) + ($265))|0;
  37513. $270 = ($269|0)==(0);
  37514. if ($270) {
  37515. $$9314$ph = $$4309;$$ph353 = $312;
  37516. label = 139;
  37517. break L6;
  37518. }
  37519. $$not = $150 ^ 1;
  37520. $271 = ($269|0)==($$1267|0);
  37521. $or$cond318 = $271 | $$not;
  37522. if (!($or$cond318)) {
  37523. $$9314$ph = $$4309;$$ph353 = $312;
  37524. label = 139;
  37525. break L6;
  37526. }
  37527. do {
  37528. if ($narrow) {
  37529. if ($182) {
  37530. HEAP32[$$0293>>2] = $$5299;
  37531. break;
  37532. } else {
  37533. HEAP32[$$0293>>2] = $$4309;
  37534. break;
  37535. }
  37536. }
  37537. } while(0);
  37538. if ($150) {
  37539. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  37540. } else {
  37541. $272 = ($$5299|0)==(0|0);
  37542. if (!($272)) {
  37543. $273 = (($$5299) + ($$4282<<2)|0);
  37544. HEAP32[$273>>2] = 0;
  37545. }
  37546. $274 = ($$4309|0)==(0|0);
  37547. if ($274) {
  37548. $$10 = $$9;$$5310 = 0;$310 = $312;
  37549. break L55;
  37550. }
  37551. $275 = (($$4309) + ($$4282)|0);
  37552. HEAP8[$275>>0] = 0;
  37553. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  37554. }
  37555. break;
  37556. }
  37557. case 120: case 88: case 112: {
  37558. $$0272 = 16;
  37559. label = 125;
  37560. break;
  37561. }
  37562. case 111: {
  37563. $$0272 = 8;
  37564. label = 125;
  37565. break;
  37566. }
  37567. case 117: case 100: {
  37568. $$0272 = 10;
  37569. label = 125;
  37570. break;
  37571. }
  37572. case 105: {
  37573. $$0272 = 0;
  37574. label = 125;
  37575. break;
  37576. }
  37577. case 71: case 103: case 70: case 102: case 69: case 101: case 65: case 97: {
  37578. $285 = (+___floatscan($0,$$$0268,0));
  37579. $286 = HEAP32[$15>>2]|0;
  37580. $287 = HEAP32[$13>>2]|0;
  37581. $288 = HEAP32[$16>>2]|0;
  37582. $289 = (($288) - ($287))|0;
  37583. $290 = ($286|0)==($289|0);
  37584. if ($290) {
  37585. $$9314$ph = $$$0305;$$ph353 = $$327;
  37586. label = 139;
  37587. break L6;
  37588. }
  37589. $291 = ($$0293|0)==(0|0);
  37590. if ($291) {
  37591. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37592. } else {
  37593. switch ($$$0268|0) {
  37594. case 0: {
  37595. $292 = $285;
  37596. HEAPF32[$$0293>>2] = $292;
  37597. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37598. break L55;
  37599. break;
  37600. }
  37601. case 1: {
  37602. HEAPF64[$$0293>>3] = $285;
  37603. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37604. break L55;
  37605. break;
  37606. }
  37607. case 2: {
  37608. HEAPF64[$$0293>>3] = $285;
  37609. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37610. break L55;
  37611. break;
  37612. }
  37613. default: {
  37614. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37615. break L55;
  37616. }
  37617. }
  37618. }
  37619. break;
  37620. }
  37621. default: {
  37622. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37623. }
  37624. }
  37625. } while(0);
  37626. do {
  37627. if ((label|0) == 125) {
  37628. label = 0;
  37629. $276 = (___intscan($0,$$0272,0,-1,-1)|0);
  37630. $277 = tempRet0;
  37631. $278 = HEAP32[$15>>2]|0;
  37632. $279 = HEAP32[$13>>2]|0;
  37633. $280 = HEAP32[$16>>2]|0;
  37634. $281 = (($280) - ($279))|0;
  37635. $282 = ($278|0)==($281|0);
  37636. if ($282) {
  37637. $$9314$ph = $$$0305;$$ph353 = $$327;
  37638. label = 139;
  37639. break L6;
  37640. }
  37641. $283 = ($$|0)==(112);
  37642. $or$cond3 = $100 & $283;
  37643. if ($or$cond3) {
  37644. $284 = $276;
  37645. HEAP32[$$0293>>2] = $284;
  37646. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37647. break;
  37648. } else {
  37649. _store_int($$0293,$$$0268,$276,$277);
  37650. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  37651. break;
  37652. }
  37653. }
  37654. } while(0);
  37655. $293 = HEAP32[$15>>2]|0;
  37656. $294 = HEAP32[$13>>2]|0;
  37657. $295 = HEAP32[$16>>2]|0;
  37658. $296 = (($293) + ($$1284))|0;
  37659. $297 = (($296) + ($294))|0;
  37660. $298 = (($297) - ($295))|0;
  37661. $299 = $100&1;
  37662. $$0288$ = (($299) + ($$0288425))|0;
  37663. $$11 = $$10;$$1289 = $$0288$;$$2285 = $298;$$6311 = $$5310;$307 = $310;
  37664. break L8;
  37665. }
  37666. } while(0);
  37667. $56 = $53&1;
  37668. $57 = (($$0273429) + ($56)|0);
  37669. ___shlim($0,0);
  37670. $58 = HEAP32[$13>>2]|0;
  37671. $59 = HEAP32[$14>>2]|0;
  37672. $60 = ($58>>>0)<($59>>>0);
  37673. if ($60) {
  37674. $61 = ((($58)) + 1|0);
  37675. HEAP32[$13>>2] = $61;
  37676. $62 = HEAP8[$58>>0]|0;
  37677. $63 = $62&255;
  37678. $68 = $63;
  37679. } else {
  37680. $64 = (___shgetc($0)|0);
  37681. $68 = $64;
  37682. }
  37683. $65 = HEAP8[$57>>0]|0;
  37684. $66 = $65&255;
  37685. $67 = ($68|0)==($66|0);
  37686. if (!($67)) {
  37687. label = 22;
  37688. break L6;
  37689. }
  37690. $75 = (($$0283428) + 1)|0;
  37691. $$11 = $57;$$1289 = $$0288425;$$2285 = $75;$$6311 = $$0305423;$307 = $102;
  37692. } else {
  37693. $$1274 = $$0273429;
  37694. while(1) {
  37695. $27 = ((($$1274)) + 1|0);
  37696. $28 = HEAP8[$27>>0]|0;
  37697. $29 = $28&255;
  37698. $30 = (_isspace($29)|0);
  37699. $31 = ($30|0)==(0);
  37700. if ($31) {
  37701. break;
  37702. } else {
  37703. $$1274 = $27;
  37704. }
  37705. }
  37706. ___shlim($0,0);
  37707. while(1) {
  37708. $32 = HEAP32[$13>>2]|0;
  37709. $33 = HEAP32[$14>>2]|0;
  37710. $34 = ($32>>>0)<($33>>>0);
  37711. if ($34) {
  37712. $35 = ((($32)) + 1|0);
  37713. HEAP32[$13>>2] = $35;
  37714. $36 = HEAP8[$32>>0]|0;
  37715. $37 = $36&255;
  37716. $39 = $37;
  37717. } else {
  37718. $38 = (___shgetc($0)|0);
  37719. $39 = $38;
  37720. }
  37721. $40 = (_isspace($39)|0);
  37722. $41 = ($40|0)==(0);
  37723. if ($41) {
  37724. break;
  37725. }
  37726. }
  37727. $42 = HEAP32[$14>>2]|0;
  37728. $43 = ($42|0)==(0|0);
  37729. if ($43) {
  37730. $$pre = HEAP32[$13>>2]|0;
  37731. $51 = $$pre;
  37732. } else {
  37733. $44 = HEAP32[$13>>2]|0;
  37734. $45 = ((($44)) + -1|0);
  37735. HEAP32[$13>>2] = $45;
  37736. $46 = $45;
  37737. $51 = $46;
  37738. }
  37739. $47 = HEAP32[$15>>2]|0;
  37740. $48 = HEAP32[$16>>2]|0;
  37741. $49 = (($47) + ($$0283428))|0;
  37742. $50 = (($49) + ($51))|0;
  37743. $52 = (($50) - ($48))|0;
  37744. $$11 = $$1274;$$1289 = $$0288425;$$2285 = $52;$$6311 = $$0305423;$307 = $102;
  37745. }
  37746. } while(0);
  37747. $300 = ((($$11)) + 1|0);
  37748. $301 = HEAP8[$300>>0]|0;
  37749. $302 = ($301<<24>>24)==(0);
  37750. if ($302) {
  37751. $$3291 = $$1289;
  37752. break L4;
  37753. } else {
  37754. $$0273429 = $300;$$0283428 = $$2285;$$0288425 = $$1289;$$0305423 = $$6311;$102 = $307;$24 = $301;
  37755. }
  37756. }
  37757. if ((label|0) == 22) {
  37758. $69 = HEAP32[$14>>2]|0;
  37759. $70 = ($69|0)==(0|0);
  37760. if (!($70)) {
  37761. $71 = HEAP32[$13>>2]|0;
  37762. $72 = ((($71)) + -1|0);
  37763. HEAP32[$13>>2] = $72;
  37764. }
  37765. $73 = ($68|0)>(-1);
  37766. $74 = ($$0288425|0)!=(0);
  37767. $or$cond5 = $74 | $73;
  37768. if ($or$cond5) {
  37769. $$3291 = $$0288425;
  37770. break;
  37771. } else {
  37772. $$1271 = 0;$$8313 = $$0305423;$308 = $102;
  37773. label = 138;
  37774. }
  37775. }
  37776. else if ((label|0) == 137) {
  37777. $$328$le441 = $narrow469&1;
  37778. $$old4 = ($$0288425|0)==(0);
  37779. if ($$old4) {
  37780. $$1271 = $$328$le441;$$8313 = $$7312;$308 = $309;
  37781. label = 138;
  37782. } else {
  37783. $$2 = $$328$le441;$$2290 = $$0288425;$$9314 = $$7312;$304 = $309;
  37784. }
  37785. }
  37786. else if ((label|0) == 139) {
  37787. $$328$le439 = $narrow&1;
  37788. $$2 = $$328$le439;$$2290 = $$0288425;$$9314 = $$9314$ph;$304 = $$ph353;
  37789. }
  37790. if ((label|0) == 138) {
  37791. $$2 = $$1271;$$2290 = -1;$$9314 = $$8313;$304 = $308;
  37792. }
  37793. $303 = ($$2|0)==(0);
  37794. if ($303) {
  37795. $$3291 = $$2290;
  37796. } else {
  37797. _free($$9314);
  37798. _free($304);
  37799. $$3291 = $$2290;
  37800. }
  37801. }
  37802. } while(0);
  37803. $305 = ($306|0)==(0);
  37804. if (!($305)) {
  37805. ___unlockfile($0);
  37806. }
  37807. STACKTOP = sp;return ($$3291|0);
  37808. }
  37809. function _arg_n($0,$1) {
  37810. $0 = $0|0;
  37811. $1 = $1|0;
  37812. 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;
  37813. var sp = 0;
  37814. sp = STACKTOP;
  37815. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  37816. $2 = sp;
  37817. $vacopy_currentptr = HEAP32[$0>>2]|0;
  37818. HEAP32[$2>>2] = $vacopy_currentptr;
  37819. $$0 = $1;
  37820. while(1) {
  37821. $3 = ($$0>>>0)>(1);
  37822. $arglist_current = HEAP32[$2>>2]|0;
  37823. $4 = $arglist_current;
  37824. $5 = ((0) + 4|0);
  37825. $expanded1 = $5;
  37826. $expanded = (($expanded1) - 1)|0;
  37827. $6 = (($4) + ($expanded))|0;
  37828. $7 = ((0) + 4|0);
  37829. $expanded5 = $7;
  37830. $expanded4 = (($expanded5) - 1)|0;
  37831. $expanded3 = $expanded4 ^ -1;
  37832. $8 = $6 & $expanded3;
  37833. $9 = $8;
  37834. $10 = HEAP32[$9>>2]|0;
  37835. $arglist_next = ((($9)) + 4|0);
  37836. HEAP32[$2>>2] = $arglist_next;
  37837. $11 = (($$0) + -1)|0;
  37838. if ($3) {
  37839. $$0 = $11;
  37840. } else {
  37841. break;
  37842. }
  37843. }
  37844. STACKTOP = sp;return ($10|0);
  37845. }
  37846. function _store_int($0,$1,$2,$3) {
  37847. $0 = $0|0;
  37848. $1 = $1|0;
  37849. $2 = $2|0;
  37850. $3 = $3|0;
  37851. var $10 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37852. sp = STACKTOP;
  37853. $4 = ($0|0)==(0|0);
  37854. L1: do {
  37855. if (!($4)) {
  37856. switch ($1|0) {
  37857. case -2: {
  37858. $5 = $2&255;
  37859. HEAP8[$0>>0] = $5;
  37860. break L1;
  37861. break;
  37862. }
  37863. case -1: {
  37864. $6 = $2&65535;
  37865. HEAP16[$0>>1] = $6;
  37866. break L1;
  37867. break;
  37868. }
  37869. case 0: {
  37870. HEAP32[$0>>2] = $2;
  37871. break L1;
  37872. break;
  37873. }
  37874. case 1: {
  37875. HEAP32[$0>>2] = $2;
  37876. break L1;
  37877. break;
  37878. }
  37879. case 3: {
  37880. $7 = $0;
  37881. $8 = $7;
  37882. HEAP32[$8>>2] = $2;
  37883. $9 = (($7) + 4)|0;
  37884. $10 = $9;
  37885. HEAP32[$10>>2] = $3;
  37886. break L1;
  37887. break;
  37888. }
  37889. default: {
  37890. break L1;
  37891. }
  37892. }
  37893. }
  37894. } while(0);
  37895. return;
  37896. }
  37897. function _mbsinit($0) {
  37898. $0 = $0|0;
  37899. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  37900. sp = STACKTOP;
  37901. $1 = ($0|0)==(0|0);
  37902. if ($1) {
  37903. $5 = 1;
  37904. } else {
  37905. $2 = HEAP32[$0>>2]|0;
  37906. $3 = ($2|0)==(0);
  37907. $5 = $3;
  37908. }
  37909. $4 = $5&1;
  37910. return ($4|0);
  37911. }
  37912. function _fseek($0,$1,$2) {
  37913. $0 = $0|0;
  37914. $1 = $1|0;
  37915. $2 = $2|0;
  37916. var $3 = 0, label = 0, sp = 0;
  37917. sp = STACKTOP;
  37918. $3 = (___fseeko($0,$1,$2)|0);
  37919. return ($3|0);
  37920. }
  37921. function ___fseeko($0,$1,$2) {
  37922. $0 = $0|0;
  37923. $1 = $1|0;
  37924. $2 = $2|0;
  37925. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  37926. sp = STACKTOP;
  37927. $3 = ((($0)) + 76|0);
  37928. $4 = HEAP32[$3>>2]|0;
  37929. $5 = ($4|0)>(-1);
  37930. if ($5) {
  37931. $7 = (___lockfile($0)|0);
  37932. $phitmp = ($7|0)==(0);
  37933. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  37934. if ($phitmp) {
  37935. $9 = $8;
  37936. } else {
  37937. ___unlockfile($0);
  37938. $9 = $8;
  37939. }
  37940. } else {
  37941. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  37942. $9 = $6;
  37943. }
  37944. return ($9|0);
  37945. }
  37946. function ___fseeko_unlocked($0,$1,$2) {
  37947. $0 = $0|0;
  37948. $1 = $1|0;
  37949. $2 = $2|0;
  37950. 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;
  37951. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37952. sp = STACKTOP;
  37953. $3 = ($2|0)==(1);
  37954. if ($3) {
  37955. $4 = ((($0)) + 8|0);
  37956. $5 = HEAP32[$4>>2]|0;
  37957. $6 = ((($0)) + 4|0);
  37958. $7 = HEAP32[$6>>2]|0;
  37959. $8 = (($1) - ($5))|0;
  37960. $9 = (($8) + ($7))|0;
  37961. $$019 = $9;
  37962. } else {
  37963. $$019 = $1;
  37964. }
  37965. $10 = ((($0)) + 20|0);
  37966. $11 = HEAP32[$10>>2]|0;
  37967. $12 = ((($0)) + 28|0);
  37968. $13 = HEAP32[$12>>2]|0;
  37969. $14 = ($11>>>0)>($13>>>0);
  37970. if ($14) {
  37971. $15 = ((($0)) + 36|0);
  37972. $16 = HEAP32[$15>>2]|0;
  37973. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  37974. $17 = HEAP32[$10>>2]|0;
  37975. $18 = ($17|0)==(0|0);
  37976. if ($18) {
  37977. $$0 = -1;
  37978. } else {
  37979. label = 5;
  37980. }
  37981. } else {
  37982. label = 5;
  37983. }
  37984. if ((label|0) == 5) {
  37985. $19 = ((($0)) + 16|0);
  37986. HEAP32[$19>>2] = 0;
  37987. HEAP32[$12>>2] = 0;
  37988. HEAP32[$10>>2] = 0;
  37989. $20 = ((($0)) + 40|0);
  37990. $21 = HEAP32[$20>>2]|0;
  37991. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  37992. $23 = ($22|0)<(0);
  37993. if ($23) {
  37994. $$0 = -1;
  37995. } else {
  37996. $24 = ((($0)) + 8|0);
  37997. HEAP32[$24>>2] = 0;
  37998. $25 = ((($0)) + 4|0);
  37999. HEAP32[$25>>2] = 0;
  38000. $26 = HEAP32[$0>>2]|0;
  38001. $27 = $26 & -17;
  38002. HEAP32[$0>>2] = $27;
  38003. $$0 = 0;
  38004. }
  38005. }
  38006. return ($$0|0);
  38007. }
  38008. function _strstr($0,$1) {
  38009. $0 = $0|0;
  38010. $1 = $1|0;
  38011. 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;
  38012. 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;
  38013. sp = STACKTOP;
  38014. $2 = HEAP8[$1>>0]|0;
  38015. $3 = ($2<<24>>24)==(0);
  38016. do {
  38017. if ($3) {
  38018. $$0 = $0;
  38019. } else {
  38020. $4 = $2 << 24 >> 24;
  38021. $5 = (_strchr($0,$4)|0);
  38022. $6 = ($5|0)==(0|0);
  38023. if ($6) {
  38024. $$0 = 0;
  38025. } else {
  38026. $7 = ((($1)) + 1|0);
  38027. $8 = HEAP8[$7>>0]|0;
  38028. $9 = ($8<<24>>24)==(0);
  38029. if ($9) {
  38030. $$0 = $5;
  38031. } else {
  38032. $10 = ((($5)) + 1|0);
  38033. $11 = HEAP8[$10>>0]|0;
  38034. $12 = ($11<<24>>24)==(0);
  38035. if ($12) {
  38036. $$0 = 0;
  38037. } else {
  38038. $13 = ((($1)) + 2|0);
  38039. $14 = HEAP8[$13>>0]|0;
  38040. $15 = ($14<<24>>24)==(0);
  38041. if ($15) {
  38042. $16 = (_twobyte_strstr($5,$1)|0);
  38043. $$0 = $16;
  38044. break;
  38045. }
  38046. $17 = ((($5)) + 2|0);
  38047. $18 = HEAP8[$17>>0]|0;
  38048. $19 = ($18<<24>>24)==(0);
  38049. if ($19) {
  38050. $$0 = 0;
  38051. } else {
  38052. $20 = ((($1)) + 3|0);
  38053. $21 = HEAP8[$20>>0]|0;
  38054. $22 = ($21<<24>>24)==(0);
  38055. if ($22) {
  38056. $23 = (_threebyte_strstr($5,$1)|0);
  38057. $$0 = $23;
  38058. break;
  38059. }
  38060. $24 = ((($5)) + 3|0);
  38061. $25 = HEAP8[$24>>0]|0;
  38062. $26 = ($25<<24>>24)==(0);
  38063. if ($26) {
  38064. $$0 = 0;
  38065. } else {
  38066. $27 = ((($1)) + 4|0);
  38067. $28 = HEAP8[$27>>0]|0;
  38068. $29 = ($28<<24>>24)==(0);
  38069. if ($29) {
  38070. $30 = (_fourbyte_strstr($5,$1)|0);
  38071. $$0 = $30;
  38072. break;
  38073. } else {
  38074. $31 = (_twoway_strstr($5,$1)|0);
  38075. $$0 = $31;
  38076. break;
  38077. }
  38078. }
  38079. }
  38080. }
  38081. }
  38082. }
  38083. }
  38084. } while(0);
  38085. return ($$0|0);
  38086. }
  38087. function _twobyte_strstr($0,$1) {
  38088. $0 = $0|0;
  38089. $1 = $1|0;
  38090. 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;
  38091. var label = 0, sp = 0;
  38092. sp = STACKTOP;
  38093. $2 = HEAP8[$1>>0]|0;
  38094. $3 = $2&255;
  38095. $4 = $3 << 8;
  38096. $5 = ((($1)) + 1|0);
  38097. $6 = HEAP8[$5>>0]|0;
  38098. $7 = $6&255;
  38099. $8 = $4 | $7;
  38100. $9 = HEAP8[$0>>0]|0;
  38101. $10 = $9&255;
  38102. $$sink$in = $10;$$sink17$sink = $0;
  38103. while(1) {
  38104. $11 = ((($$sink17$sink)) + 1|0);
  38105. $12 = HEAP8[$11>>0]|0;
  38106. $13 = ($12<<24>>24)==(0);
  38107. if ($13) {
  38108. $$lcssa = 0;
  38109. break;
  38110. }
  38111. $$sink = $$sink$in << 8;
  38112. $14 = $12&255;
  38113. $$sink$masked = $$sink & 65280;
  38114. $15 = $14 | $$sink$masked;
  38115. $16 = ($15|0)==($8|0);
  38116. if ($16) {
  38117. $$lcssa = $$sink17$sink;
  38118. break;
  38119. } else {
  38120. $$sink$in = $15;$$sink17$sink = $11;
  38121. }
  38122. }
  38123. return ($$lcssa|0);
  38124. }
  38125. function _threebyte_strstr($0,$1) {
  38126. $0 = $0|0;
  38127. $1 = $1|0;
  38128. 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;
  38129. 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;
  38130. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  38131. sp = STACKTOP;
  38132. $2 = HEAP8[$1>>0]|0;
  38133. $3 = $2&255;
  38134. $4 = $3 << 24;
  38135. $5 = ((($1)) + 1|0);
  38136. $6 = HEAP8[$5>>0]|0;
  38137. $7 = $6&255;
  38138. $8 = $7 << 16;
  38139. $9 = $8 | $4;
  38140. $10 = ((($1)) + 2|0);
  38141. $11 = HEAP8[$10>>0]|0;
  38142. $12 = $11&255;
  38143. $13 = $12 << 8;
  38144. $14 = $9 | $13;
  38145. $15 = HEAP8[$0>>0]|0;
  38146. $16 = $15&255;
  38147. $17 = $16 << 24;
  38148. $18 = ((($0)) + 1|0);
  38149. $19 = HEAP8[$18>>0]|0;
  38150. $20 = $19&255;
  38151. $21 = $20 << 16;
  38152. $22 = $21 | $17;
  38153. $23 = ((($0)) + 2|0);
  38154. $24 = HEAP8[$23>>0]|0;
  38155. $25 = $24&255;
  38156. $26 = $25 << 8;
  38157. $27 = $22 | $26;
  38158. $28 = ($24<<24>>24)!=(0);
  38159. $$not17 = $28 ^ 1;
  38160. $29 = ($27|0)==($14|0);
  38161. $or$cond18 = $29 | $$not17;
  38162. if ($or$cond18) {
  38163. $$016$lcssa = $23;$$lcssa = $28;
  38164. } else {
  38165. $$01619 = $23;$$020 = $27;
  38166. while(1) {
  38167. $30 = ((($$01619)) + 1|0);
  38168. $31 = HEAP8[$30>>0]|0;
  38169. $32 = $31&255;
  38170. $33 = $32 | $$020;
  38171. $34 = $33 << 8;
  38172. $35 = ($31<<24>>24)!=(0);
  38173. $$not = $35 ^ 1;
  38174. $36 = ($34|0)==($14|0);
  38175. $or$cond = $36 | $$not;
  38176. if ($or$cond) {
  38177. $$016$lcssa = $30;$$lcssa = $35;
  38178. break;
  38179. } else {
  38180. $$01619 = $30;$$020 = $34;
  38181. }
  38182. }
  38183. }
  38184. $37 = ((($$016$lcssa)) + -2|0);
  38185. $38 = $$lcssa ? $37 : 0;
  38186. return ($38|0);
  38187. }
  38188. function _fourbyte_strstr($0,$1) {
  38189. $0 = $0|0;
  38190. $1 = $1|0;
  38191. 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;
  38192. 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;
  38193. 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;
  38194. sp = STACKTOP;
  38195. $2 = HEAP8[$1>>0]|0;
  38196. $3 = $2&255;
  38197. $4 = $3 << 24;
  38198. $5 = ((($1)) + 1|0);
  38199. $6 = HEAP8[$5>>0]|0;
  38200. $7 = $6&255;
  38201. $8 = $7 << 16;
  38202. $9 = $8 | $4;
  38203. $10 = ((($1)) + 2|0);
  38204. $11 = HEAP8[$10>>0]|0;
  38205. $12 = $11&255;
  38206. $13 = $12 << 8;
  38207. $14 = $9 | $13;
  38208. $15 = ((($1)) + 3|0);
  38209. $16 = HEAP8[$15>>0]|0;
  38210. $17 = $16&255;
  38211. $18 = $14 | $17;
  38212. $19 = HEAP8[$0>>0]|0;
  38213. $20 = $19&255;
  38214. $21 = $20 << 24;
  38215. $22 = ((($0)) + 1|0);
  38216. $23 = HEAP8[$22>>0]|0;
  38217. $24 = $23&255;
  38218. $25 = $24 << 16;
  38219. $26 = $25 | $21;
  38220. $27 = ((($0)) + 2|0);
  38221. $28 = HEAP8[$27>>0]|0;
  38222. $29 = $28&255;
  38223. $30 = $29 << 8;
  38224. $31 = $26 | $30;
  38225. $32 = ((($0)) + 3|0);
  38226. $33 = HEAP8[$32>>0]|0;
  38227. $34 = $33&255;
  38228. $35 = $34 | $31;
  38229. $36 = ($33<<24>>24)!=(0);
  38230. $$not22 = $36 ^ 1;
  38231. $37 = ($35|0)==($18|0);
  38232. $or$cond23 = $37 | $$not22;
  38233. if ($or$cond23) {
  38234. $$lcssa = $36;$$sink21$lcssa = $32;
  38235. } else {
  38236. $$sink2124 = $32;$39 = $35;
  38237. while(1) {
  38238. $38 = $39 << 8;
  38239. $40 = ((($$sink2124)) + 1|0);
  38240. $41 = HEAP8[$40>>0]|0;
  38241. $42 = $41&255;
  38242. $43 = $42 | $38;
  38243. $44 = ($41<<24>>24)!=(0);
  38244. $$not = $44 ^ 1;
  38245. $45 = ($43|0)==($18|0);
  38246. $or$cond = $45 | $$not;
  38247. if ($or$cond) {
  38248. $$lcssa = $44;$$sink21$lcssa = $40;
  38249. break;
  38250. } else {
  38251. $$sink2124 = $40;$39 = $43;
  38252. }
  38253. }
  38254. }
  38255. $46 = ((($$sink21$lcssa)) + -3|0);
  38256. $47 = $$lcssa ? $46 : 0;
  38257. return ($47|0);
  38258. }
  38259. function _twoway_strstr($0,$1) {
  38260. $0 = $0|0;
  38261. $1 = $1|0;
  38262. 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;
  38263. 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;
  38264. 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;
  38265. 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;
  38266. 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;
  38267. 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;
  38268. 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;
  38269. 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;
  38270. 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;
  38271. sp = STACKTOP;
  38272. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  38273. $2 = sp + 1024|0;
  38274. $3 = sp;
  38275. ;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;
  38276. $4 = HEAP8[$1>>0]|0;
  38277. $cond265 = ($4<<24>>24)==(0);
  38278. L1: do {
  38279. if ($cond265) {
  38280. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  38281. label = 27;
  38282. } else {
  38283. $5 = $4&255;
  38284. $$0187266 = 0;$12 = $4;$20 = $5;
  38285. while(1) {
  38286. $8 = (($0) + ($$0187266)|0);
  38287. $9 = HEAP8[$8>>0]|0;
  38288. $10 = ($9<<24>>24)==(0);
  38289. if ($10) {
  38290. $$3 = 0;
  38291. break L1;
  38292. }
  38293. $11 = $12 & 31;
  38294. $13 = $11&255;
  38295. $14 = 1 << $13;
  38296. $div188 = ($12&255) >>> 5;
  38297. $15 = $div188&255;
  38298. $16 = (($2) + ($15<<2)|0);
  38299. $17 = HEAP32[$16>>2]|0;
  38300. $18 = $17 | $14;
  38301. HEAP32[$16>>2] = $18;
  38302. $7 = (($$0187266) + 1)|0;
  38303. $19 = (($3) + ($20<<2)|0);
  38304. HEAP32[$19>>2] = $7;
  38305. $21 = (($1) + ($7)|0);
  38306. $22 = HEAP8[$21>>0]|0;
  38307. $23 = $22&255;
  38308. $cond = ($22<<24>>24)==(0);
  38309. if ($cond) {
  38310. break;
  38311. } else {
  38312. $$0187266 = $7;$12 = $22;$20 = $23;
  38313. }
  38314. }
  38315. $6 = ($7>>>0)>(1);
  38316. if ($6) {
  38317. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  38318. L7: while(1) {
  38319. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  38320. while(1) {
  38321. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  38322. L11: while(1) {
  38323. $$0179244 = 1;$31 = $131;
  38324. while(1) {
  38325. $27 = (($$0179244) + ($$0185$ph261))|0;
  38326. $28 = (($1) + ($27)|0);
  38327. $29 = HEAP8[$28>>0]|0;
  38328. $30 = (($1) + ($31)|0);
  38329. $32 = HEAP8[$30>>0]|0;
  38330. $33 = ($29<<24>>24)==($32<<24>>24);
  38331. if (!($33)) {
  38332. break L11;
  38333. }
  38334. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  38335. $25 = (($$0179244) + 1)|0;
  38336. if ($34) {
  38337. break;
  38338. }
  38339. $24 = (($25) + ($$0183$ph200250))|0;
  38340. $26 = ($24>>>0)<($7>>>0);
  38341. if ($26) {
  38342. $$0179244 = $25;$31 = $24;
  38343. } else {
  38344. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  38345. break L7;
  38346. }
  38347. }
  38348. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  38349. $36 = (($35) + 1)|0;
  38350. $37 = ($36>>>0)<($7>>>0);
  38351. if ($37) {
  38352. $$0183$ph200250 = $35;$131 = $36;
  38353. } else {
  38354. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  38355. break L7;
  38356. }
  38357. }
  38358. $38 = ($29&255)>($32&255);
  38359. $39 = (($31) - ($$0185$ph261))|0;
  38360. if (!($38)) {
  38361. break;
  38362. }
  38363. $43 = (($31) + 1)|0;
  38364. $44 = ($43>>>0)<($7>>>0);
  38365. if ($44) {
  38366. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  38367. } else {
  38368. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  38369. break L7;
  38370. }
  38371. }
  38372. $40 = (($$0183$ph200250) + 1)|0;
  38373. $41 = (($$0183$ph200250) + 2)|0;
  38374. $42 = ($41>>>0)<($7>>>0);
  38375. if ($42) {
  38376. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  38377. } else {
  38378. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  38379. break;
  38380. }
  38381. }
  38382. if ($6) {
  38383. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  38384. while(1) {
  38385. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  38386. while(1) {
  38387. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  38388. L26: while(1) {
  38389. $$1180224 = 1;$52 = $133;
  38390. while(1) {
  38391. $48 = (($$1180224) + ($$1186$ph240))|0;
  38392. $49 = (($1) + ($48)|0);
  38393. $50 = HEAP8[$49>>0]|0;
  38394. $51 = (($1) + ($52)|0);
  38395. $53 = HEAP8[$51>>0]|0;
  38396. $54 = ($50<<24>>24)==($53<<24>>24);
  38397. if (!($54)) {
  38398. break L26;
  38399. }
  38400. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  38401. $46 = (($$1180224) + 1)|0;
  38402. if ($55) {
  38403. break;
  38404. }
  38405. $45 = (($46) + ($$1184$ph196229))|0;
  38406. $47 = ($45>>>0)<($7>>>0);
  38407. if ($47) {
  38408. $$1180224 = $46;$52 = $45;
  38409. } else {
  38410. $$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;
  38411. label = 27;
  38412. break L1;
  38413. }
  38414. }
  38415. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  38416. $57 = (($56) + 1)|0;
  38417. $58 = ($57>>>0)<($7>>>0);
  38418. if ($58) {
  38419. $$1184$ph196229 = $56;$133 = $57;
  38420. } else {
  38421. $$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;
  38422. label = 27;
  38423. break L1;
  38424. }
  38425. }
  38426. $59 = ($50&255)<($53&255);
  38427. $60 = (($52) - ($$1186$ph240))|0;
  38428. if (!($59)) {
  38429. break;
  38430. }
  38431. $64 = (($52) + 1)|0;
  38432. $65 = ($64>>>0)<($7>>>0);
  38433. if ($65) {
  38434. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  38435. } else {
  38436. $$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;
  38437. label = 27;
  38438. break L1;
  38439. }
  38440. }
  38441. $61 = (($$1184$ph196229) + 1)|0;
  38442. $62 = (($$1184$ph196229) + 2)|0;
  38443. $63 = ($62>>>0)<($7>>>0);
  38444. if ($63) {
  38445. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  38446. } else {
  38447. $$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;
  38448. label = 27;
  38449. break;
  38450. }
  38451. }
  38452. } else {
  38453. $$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;
  38454. label = 27;
  38455. }
  38456. } else {
  38457. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  38458. label = 27;
  38459. }
  38460. }
  38461. } while(0);
  38462. L36: do {
  38463. if ((label|0) == 27) {
  38464. $66 = (($$1186$ph$lcssa) + 1)|0;
  38465. $67 = (($$0185$ph$lcssa322) + 1)|0;
  38466. $68 = ($66>>>0)>($67>>>0);
  38467. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  38468. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  38469. $69 = (($1) + ($$1176$$0175)|0);
  38470. $70 = (($$1186$$0185) + 1)|0;
  38471. $71 = (_memcmp($1,$69,$70)|0);
  38472. $72 = ($71|0)==(0);
  38473. if ($72) {
  38474. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  38475. $$0168 = $77;$$3178 = $$1176$$0175;
  38476. } else {
  38477. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  38478. $74 = (($73) + -1)|0;
  38479. $75 = ($$1186$$0185>>>0)>($74>>>0);
  38480. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  38481. $76 = (($$1186$$0185$) + 1)|0;
  38482. $$0168 = 0;$$3178 = $76;
  38483. }
  38484. $78 = $$0187$lcssa320321 | 63;
  38485. $79 = (($$0187$lcssa320321) + -1)|0;
  38486. $80 = ($$0168|0)!=(0);
  38487. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  38488. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  38489. while(1) {
  38490. $82 = $$0170;
  38491. $83 = $$0166;
  38492. $84 = (($82) - ($83))|0;
  38493. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  38494. do {
  38495. if ($85) {
  38496. $86 = (_memchr($$0170,0,$78)|0);
  38497. $87 = ($86|0)==(0|0);
  38498. if ($87) {
  38499. $91 = (($$0170) + ($78)|0);
  38500. $$3173 = $91;
  38501. break;
  38502. } else {
  38503. $88 = $86;
  38504. $89 = (($88) - ($83))|0;
  38505. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  38506. if ($90) {
  38507. $$3 = 0;
  38508. break L36;
  38509. } else {
  38510. $$3173 = $86;
  38511. break;
  38512. }
  38513. }
  38514. } else {
  38515. $$3173 = $$0170;
  38516. }
  38517. } while(0);
  38518. $92 = (($$0166) + ($79)|0);
  38519. $93 = HEAP8[$92>>0]|0;
  38520. $div = ($93&255) >>> 5;
  38521. $94 = $div&255;
  38522. $95 = (($2) + ($94<<2)|0);
  38523. $96 = HEAP32[$95>>2]|0;
  38524. $97 = $93 & 31;
  38525. $98 = $97&255;
  38526. $99 = 1 << $98;
  38527. $100 = $99 & $96;
  38528. $101 = ($100|0)==(0);
  38529. L50: do {
  38530. if ($101) {
  38531. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  38532. } else {
  38533. $102 = $93&255;
  38534. $103 = (($3) + ($102<<2)|0);
  38535. $104 = HEAP32[$103>>2]|0;
  38536. $105 = (($$0187$lcssa320321) - ($104))|0;
  38537. $106 = ($105|0)==(0);
  38538. if (!($106)) {
  38539. $107 = ($$0169|0)!=(0);
  38540. $or$cond = $80 & $107;
  38541. $108 = ($105>>>0)<($$3178>>>0);
  38542. $or$cond190 = $or$cond & $108;
  38543. $$2181 = $or$cond190 ? $81 : $105;
  38544. $$0169$be = 0;$$2181$sink = $$2181;
  38545. break;
  38546. }
  38547. $110 = ($70>>>0)>($$0169>>>0);
  38548. $111 = $110 ? $70 : $$0169;
  38549. $112 = (($1) + ($111)|0);
  38550. $113 = HEAP8[$112>>0]|0;
  38551. $cond191222 = ($113<<24>>24)==(0);
  38552. L55: do {
  38553. if ($cond191222) {
  38554. $$4 = $70;
  38555. } else {
  38556. $$3182223 = $111;$117 = $113;
  38557. while(1) {
  38558. $114 = (($$0166) + ($$3182223)|0);
  38559. $115 = HEAP8[$114>>0]|0;
  38560. $116 = ($117<<24>>24)==($115<<24>>24);
  38561. if (!($116)) {
  38562. break;
  38563. }
  38564. $118 = (($$3182223) + 1)|0;
  38565. $119 = (($1) + ($118)|0);
  38566. $120 = HEAP8[$119>>0]|0;
  38567. $cond191 = ($120<<24>>24)==(0);
  38568. if ($cond191) {
  38569. $$4 = $70;
  38570. break L55;
  38571. } else {
  38572. $$3182223 = $118;$117 = $120;
  38573. }
  38574. }
  38575. $121 = (($$3182223) - ($$1186$$0185))|0;
  38576. $$0169$be = 0;$$2181$sink = $121;
  38577. break L50;
  38578. }
  38579. } while(0);
  38580. while(1) {
  38581. $122 = ($$4>>>0)>($$0169>>>0);
  38582. if (!($122)) {
  38583. $$3 = $$0166;
  38584. break L36;
  38585. }
  38586. $123 = (($$4) + -1)|0;
  38587. $124 = (($1) + ($123)|0);
  38588. $125 = HEAP8[$124>>0]|0;
  38589. $126 = (($$0166) + ($123)|0);
  38590. $127 = HEAP8[$126>>0]|0;
  38591. $128 = ($125<<24>>24)==($127<<24>>24);
  38592. if ($128) {
  38593. $$4 = $123;
  38594. } else {
  38595. $$0169$be = $$0168;$$2181$sink = $$3178;
  38596. break;
  38597. }
  38598. }
  38599. }
  38600. } while(0);
  38601. $109 = (($$0166) + ($$2181$sink)|0);
  38602. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  38603. }
  38604. }
  38605. } while(0);
  38606. STACKTOP = sp;return ($$3|0);
  38607. }
  38608. function _strrchr($0,$1) {
  38609. $0 = $0|0;
  38610. $1 = $1|0;
  38611. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  38612. sp = STACKTOP;
  38613. $2 = (_strlen($0)|0);
  38614. $3 = (($2) + 1)|0;
  38615. $4 = (___memrchr($0,$1,$3)|0);
  38616. return ($4|0);
  38617. }
  38618. function ___memrchr($0,$1,$2) {
  38619. $0 = $0|0;
  38620. $1 = $1|0;
  38621. $2 = $2|0;
  38622. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  38623. sp = STACKTOP;
  38624. $3 = $1&255;
  38625. $$09 = $2;
  38626. while(1) {
  38627. $4 = (($$09) + -1)|0;
  38628. $5 = ($$09|0)==(0);
  38629. if ($5) {
  38630. $$0 = 0;
  38631. break;
  38632. }
  38633. $6 = (($0) + ($4)|0);
  38634. $7 = HEAP8[$6>>0]|0;
  38635. $8 = ($7<<24>>24)==($3<<24>>24);
  38636. if ($8) {
  38637. $$0 = $6;
  38638. break;
  38639. } else {
  38640. $$09 = $4;
  38641. }
  38642. }
  38643. return ($$0|0);
  38644. }
  38645. function _strspn($0,$1) {
  38646. $0 = $0|0;
  38647. $1 = $1|0;
  38648. 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;
  38649. 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;
  38650. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  38651. sp = STACKTOP;
  38652. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  38653. $2 = sp;
  38654. ;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;
  38655. $3 = HEAP8[$1>>0]|0;
  38656. $4 = ($3<<24>>24)==(0);
  38657. do {
  38658. if ($4) {
  38659. $$0 = 0;
  38660. } else {
  38661. $5 = ((($1)) + 1|0);
  38662. $6 = HEAP8[$5>>0]|0;
  38663. $7 = ($6<<24>>24)==(0);
  38664. if ($7) {
  38665. $$020 = $0;
  38666. while(1) {
  38667. $8 = HEAP8[$$020>>0]|0;
  38668. $9 = ($8<<24>>24)==($3<<24>>24);
  38669. $10 = ((($$020)) + 1|0);
  38670. if ($9) {
  38671. $$020 = $10;
  38672. } else {
  38673. break;
  38674. }
  38675. }
  38676. $11 = $$020;
  38677. $12 = $0;
  38678. $13 = (($11) - ($12))|0;
  38679. $$0 = $13;
  38680. break;
  38681. } else {
  38682. $$01925 = $1;$17 = $3;
  38683. }
  38684. while(1) {
  38685. $16 = $17 & 31;
  38686. $18 = $16&255;
  38687. $19 = 1 << $18;
  38688. $div21 = ($17&255) >>> 5;
  38689. $20 = $div21&255;
  38690. $21 = (($2) + ($20<<2)|0);
  38691. $22 = HEAP32[$21>>2]|0;
  38692. $23 = $22 | $19;
  38693. HEAP32[$21>>2] = $23;
  38694. $24 = ((($$01925)) + 1|0);
  38695. $25 = HEAP8[$24>>0]|0;
  38696. $26 = ($25<<24>>24)==(0);
  38697. if ($26) {
  38698. break;
  38699. } else {
  38700. $$01925 = $24;$17 = $25;
  38701. }
  38702. }
  38703. $14 = HEAP8[$0>>0]|0;
  38704. $15 = ($14<<24>>24)==(0);
  38705. L10: do {
  38706. if ($15) {
  38707. $$1$lcssa = $0;
  38708. } else {
  38709. $$123 = $0;$27 = $14;
  38710. while(1) {
  38711. $div = ($27&255) >>> 5;
  38712. $28 = $div&255;
  38713. $29 = (($2) + ($28<<2)|0);
  38714. $30 = HEAP32[$29>>2]|0;
  38715. $31 = $27 & 31;
  38716. $32 = $31&255;
  38717. $33 = 1 << $32;
  38718. $34 = $30 & $33;
  38719. $35 = ($34|0)==(0);
  38720. if ($35) {
  38721. $$1$lcssa = $$123;
  38722. break L10;
  38723. }
  38724. $36 = ((($$123)) + 1|0);
  38725. $37 = HEAP8[$36>>0]|0;
  38726. $38 = ($37<<24>>24)==(0);
  38727. if ($38) {
  38728. $$1$lcssa = $36;
  38729. break;
  38730. } else {
  38731. $$123 = $36;$27 = $37;
  38732. }
  38733. }
  38734. }
  38735. } while(0);
  38736. $39 = $$1$lcssa;
  38737. $40 = $0;
  38738. $41 = (($39) - ($40))|0;
  38739. $$0 = $41;
  38740. }
  38741. } while(0);
  38742. STACKTOP = sp;return ($$0|0);
  38743. }
  38744. function _srand($0) {
  38745. $0 = $0|0;
  38746. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  38747. sp = STACKTOP;
  38748. $1 = (($0) + -1)|0;
  38749. $2 = 18424;
  38750. $3 = $2;
  38751. HEAP32[$3>>2] = $1;
  38752. $4 = (($2) + 4)|0;
  38753. $5 = $4;
  38754. HEAP32[$5>>2] = 0;
  38755. return;
  38756. }
  38757. function ___ftello($0) {
  38758. $0 = $0|0;
  38759. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $phitmp = 0, label = 0, sp = 0;
  38760. sp = STACKTOP;
  38761. $1 = ((($0)) + 76|0);
  38762. $2 = HEAP32[$1>>2]|0;
  38763. $3 = ($2|0)>(-1);
  38764. if ($3) {
  38765. $5 = (___lockfile($0)|0);
  38766. $phitmp = ($5|0)==(0);
  38767. $6 = (___ftello_unlocked($0)|0);
  38768. if ($phitmp) {
  38769. $7 = $6;
  38770. } else {
  38771. ___unlockfile($0);
  38772. $7 = $6;
  38773. }
  38774. } else {
  38775. $4 = (___ftello_unlocked($0)|0);
  38776. $7 = $4;
  38777. }
  38778. return ($7|0);
  38779. }
  38780. function ___ftello_unlocked($0) {
  38781. $0 = $0|0;
  38782. var $$0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $3 = 0;
  38783. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  38784. sp = STACKTOP;
  38785. $1 = ((($0)) + 40|0);
  38786. $2 = HEAP32[$1>>2]|0;
  38787. $3 = HEAP32[$0>>2]|0;
  38788. $4 = $3 & 128;
  38789. $5 = ($4|0)==(0);
  38790. if ($5) {
  38791. $11 = 1;
  38792. } else {
  38793. $6 = ((($0)) + 20|0);
  38794. $7 = HEAP32[$6>>2]|0;
  38795. $8 = ((($0)) + 28|0);
  38796. $9 = HEAP32[$8>>2]|0;
  38797. $10 = ($7>>>0)>($9>>>0);
  38798. $phitmp = $10 ? 2 : 1;
  38799. $11 = $phitmp;
  38800. }
  38801. $12 = (FUNCTION_TABLE_iiii[$2 & 15]($0,0,$11)|0);
  38802. $13 = ($12|0)<(0);
  38803. if ($13) {
  38804. $$0 = $12;
  38805. } else {
  38806. $14 = ((($0)) + 8|0);
  38807. $15 = HEAP32[$14>>2]|0;
  38808. $16 = ((($0)) + 4|0);
  38809. $17 = HEAP32[$16>>2]|0;
  38810. $18 = ((($0)) + 20|0);
  38811. $19 = HEAP32[$18>>2]|0;
  38812. $20 = ((($0)) + 28|0);
  38813. $21 = HEAP32[$20>>2]|0;
  38814. $22 = (($12) - ($15))|0;
  38815. $23 = (($22) + ($17))|0;
  38816. $24 = (($23) + ($19))|0;
  38817. $25 = (($24) - ($21))|0;
  38818. $$0 = $25;
  38819. }
  38820. return ($$0|0);
  38821. }
  38822. function _fread($0,$1,$2,$3) {
  38823. $0 = $0|0;
  38824. $1 = $1|0;
  38825. $2 = $2|0;
  38826. $3 = $3|0;
  38827. 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;
  38828. 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;
  38829. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  38830. sp = STACKTOP;
  38831. $4 = Math_imul($2, $1)|0;
  38832. $5 = ($1|0)==(0);
  38833. $$ = $5 ? 0 : $2;
  38834. $6 = ((($3)) + 76|0);
  38835. $7 = HEAP32[$6>>2]|0;
  38836. $8 = ($7|0)>(-1);
  38837. if ($8) {
  38838. $9 = (___lockfile($3)|0);
  38839. $36 = $9;
  38840. } else {
  38841. $36 = 0;
  38842. }
  38843. $10 = ((($3)) + 74|0);
  38844. $11 = HEAP8[$10>>0]|0;
  38845. $12 = $11 << 24 >> 24;
  38846. $13 = (($12) + 255)|0;
  38847. $14 = $13 | $12;
  38848. $15 = $14&255;
  38849. HEAP8[$10>>0] = $15;
  38850. $16 = ((($3)) + 8|0);
  38851. $17 = HEAP32[$16>>2]|0;
  38852. $18 = ((($3)) + 4|0);
  38853. $19 = HEAP32[$18>>2]|0;
  38854. $20 = $19;
  38855. $21 = (($17) - ($20))|0;
  38856. $22 = ($21|0)>(0);
  38857. $23 = ($21>>>0)<($4>>>0);
  38858. $$57 = $23 ? $21 : $4;
  38859. if ($22) {
  38860. $24 = (($4) - ($$57))|0;
  38861. $25 = (($0) + ($$57)|0);
  38862. _memcpy(($0|0),($19|0),($$57|0))|0;
  38863. $26 = (($19) + ($$57)|0);
  38864. HEAP32[$18>>2] = $26;
  38865. $$054$ph = $24;$$056$ph = $25;
  38866. } else {
  38867. $$054$ph = $4;$$056$ph = $0;
  38868. }
  38869. $27 = ($$054$ph|0)==(0);
  38870. L7: do {
  38871. if ($27) {
  38872. label = 13;
  38873. } else {
  38874. $28 = ((($3)) + 32|0);
  38875. $$05460 = $$054$ph;$$05659 = $$056$ph;
  38876. while(1) {
  38877. $29 = (___toread($3)|0);
  38878. $30 = ($29|0)==(0);
  38879. if (!($30)) {
  38880. break;
  38881. }
  38882. $31 = HEAP32[$28>>2]|0;
  38883. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  38884. $33 = (($32) + 1)|0;
  38885. $34 = ($33>>>0)<(2);
  38886. if ($34) {
  38887. break;
  38888. }
  38889. $39 = (($$05460) - ($32))|0;
  38890. $40 = (($$05659) + ($32)|0);
  38891. $41 = ($39|0)==(0);
  38892. if ($41) {
  38893. label = 13;
  38894. break L7;
  38895. } else {
  38896. $$05460 = $39;$$05659 = $40;
  38897. }
  38898. }
  38899. $35 = ($36|0)==(0);
  38900. if (!($35)) {
  38901. ___unlockfile($3);
  38902. }
  38903. $37 = (($4) - ($$05460))|0;
  38904. $38 = (($37>>>0) / ($1>>>0))&-1;
  38905. $$0 = $38;
  38906. }
  38907. } while(0);
  38908. if ((label|0) == 13) {
  38909. $42 = ($36|0)==(0);
  38910. if ($42) {
  38911. $$0 = $$;
  38912. } else {
  38913. ___unlockfile($3);
  38914. $$0 = $$;
  38915. }
  38916. }
  38917. return ($$0|0);
  38918. }
  38919. function _ftell($0) {
  38920. $0 = $0|0;
  38921. var $1 = 0, label = 0, sp = 0;
  38922. sp = STACKTOP;
  38923. $1 = (___ftello($0)|0);
  38924. return ($1|0);
  38925. }
  38926. function _rewind($0) {
  38927. $0 = $0|0;
  38928. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $phitmp = 0, label = 0, sp = 0;
  38929. sp = STACKTOP;
  38930. $1 = ((($0)) + 76|0);
  38931. $2 = HEAP32[$1>>2]|0;
  38932. $3 = ($2|0)>(-1);
  38933. if ($3) {
  38934. $4 = (___lockfile($0)|0);
  38935. $phitmp = ($4|0)==(0);
  38936. (___fseeko_unlocked($0,0,0)|0);
  38937. $5 = HEAP32[$0>>2]|0;
  38938. $6 = $5 & -33;
  38939. HEAP32[$0>>2] = $6;
  38940. if (!($phitmp)) {
  38941. ___unlockfile($0);
  38942. }
  38943. } else {
  38944. (___fseeko_unlocked($0,0,0)|0);
  38945. $7 = HEAP32[$0>>2]|0;
  38946. $8 = $7 & -33;
  38947. HEAP32[$0>>2] = $8;
  38948. }
  38949. return;
  38950. }
  38951. function _vprintf($0,$1) {
  38952. $0 = $0|0;
  38953. $1 = $1|0;
  38954. var $2 = 0, $3 = 0, label = 0, sp = 0;
  38955. sp = STACKTOP;
  38956. $2 = HEAP32[1038]|0;
  38957. $3 = (_vfprintf($2,$0,$1)|0);
  38958. return ($3|0);
  38959. }
  38960. function _strcspn($0,$1) {
  38961. $0 = $0|0;
  38962. $1 = $1|0;
  38963. 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;
  38964. 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;
  38965. var $div20 = 0, label = 0, sp = 0;
  38966. sp = STACKTOP;
  38967. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  38968. $2 = sp;
  38969. $3 = HEAP8[$1>>0]|0;
  38970. $4 = ($3<<24>>24)==(0);
  38971. L1: do {
  38972. if ($4) {
  38973. label = 3;
  38974. } else {
  38975. $5 = ((($1)) + 1|0);
  38976. $6 = HEAP8[$5>>0]|0;
  38977. $7 = ($6<<24>>24)==(0);
  38978. if ($7) {
  38979. label = 3;
  38980. } else {
  38981. ;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;
  38982. $$01824 = $1;$13 = $3;
  38983. while(1) {
  38984. $12 = $13 & 31;
  38985. $14 = $12&255;
  38986. $15 = 1 << $14;
  38987. $div20 = ($13&255) >>> 5;
  38988. $16 = $div20&255;
  38989. $17 = (($2) + ($16<<2)|0);
  38990. $18 = HEAP32[$17>>2]|0;
  38991. $19 = $18 | $15;
  38992. HEAP32[$17>>2] = $19;
  38993. $20 = ((($$01824)) + 1|0);
  38994. $21 = HEAP8[$20>>0]|0;
  38995. $22 = ($21<<24>>24)==(0);
  38996. if ($22) {
  38997. break;
  38998. } else {
  38999. $$01824 = $20;$13 = $21;
  39000. }
  39001. }
  39002. $10 = HEAP8[$0>>0]|0;
  39003. $11 = ($10<<24>>24)==(0);
  39004. if ($11) {
  39005. $$019$sink = $0;
  39006. } else {
  39007. $$01922 = $0;$23 = $10;
  39008. while(1) {
  39009. $div = ($23&255) >>> 5;
  39010. $24 = $div&255;
  39011. $25 = (($2) + ($24<<2)|0);
  39012. $26 = HEAP32[$25>>2]|0;
  39013. $27 = $23 & 31;
  39014. $28 = $27&255;
  39015. $29 = 1 << $28;
  39016. $30 = $26 & $29;
  39017. $31 = ($30|0)==(0);
  39018. if (!($31)) {
  39019. $$019$sink = $$01922;
  39020. break L1;
  39021. }
  39022. $32 = ((($$01922)) + 1|0);
  39023. $33 = HEAP8[$32>>0]|0;
  39024. $34 = ($33<<24>>24)==(0);
  39025. if ($34) {
  39026. $$019$sink = $32;
  39027. break;
  39028. } else {
  39029. $$01922 = $32;$23 = $33;
  39030. }
  39031. }
  39032. }
  39033. }
  39034. }
  39035. } while(0);
  39036. if ((label|0) == 3) {
  39037. $8 = $3 << 24 >> 24;
  39038. $9 = (___strchrnul($0,$8)|0);
  39039. $$019$sink = $9;
  39040. }
  39041. $35 = $$019$sink;
  39042. $36 = $0;
  39043. $37 = (($35) - ($36))|0;
  39044. STACKTOP = sp;return ($37|0);
  39045. }
  39046. function _strcat($0,$1) {
  39047. $0 = $0|0;
  39048. $1 = $1|0;
  39049. var $2 = 0, $3 = 0, label = 0, sp = 0;
  39050. sp = STACKTOP;
  39051. $2 = (_strlen($0)|0);
  39052. $3 = (($0) + ($2)|0);
  39053. (_strcpy($3,$1)|0);
  39054. return ($0|0);
  39055. }
  39056. function _strtok($0,$1) {
  39057. $0 = $0|0;
  39058. $1 = $1|0;
  39059. 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;
  39060. sp = STACKTOP;
  39061. $2 = ($0|0)==(0|0);
  39062. if ($2) {
  39063. $3 = HEAP32[5295]|0;
  39064. $4 = ($3|0)==(0|0);
  39065. if ($4) {
  39066. $$0 = 0;
  39067. } else {
  39068. $$010 = $3;
  39069. label = 3;
  39070. }
  39071. } else {
  39072. $$010 = $0;
  39073. label = 3;
  39074. }
  39075. do {
  39076. if ((label|0) == 3) {
  39077. $5 = (_strspn($$010,$1)|0);
  39078. $6 = (($$010) + ($5)|0);
  39079. $7 = HEAP8[$6>>0]|0;
  39080. $8 = ($7<<24>>24)==(0);
  39081. if ($8) {
  39082. HEAP32[5295] = 0;
  39083. $$0 = 0;
  39084. break;
  39085. }
  39086. $9 = (_strcspn($6,$1)|0);
  39087. $10 = (($6) + ($9)|0);
  39088. HEAP32[5295] = $10;
  39089. $11 = HEAP8[$10>>0]|0;
  39090. $12 = ($11<<24>>24)==(0);
  39091. if ($12) {
  39092. HEAP32[5295] = 0;
  39093. $$0 = $6;
  39094. break;
  39095. } else {
  39096. $13 = ((($10)) + 1|0);
  39097. HEAP32[5295] = $13;
  39098. HEAP8[$10>>0] = 0;
  39099. $$0 = $6;
  39100. break;
  39101. }
  39102. }
  39103. } while(0);
  39104. return ($$0|0);
  39105. }
  39106. function _malloc($0) {
  39107. $0 = $0|0;
  39108. 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;
  39109. 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;
  39110. 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;
  39111. 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;
  39112. 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;
  39113. 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;
  39114. 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;
  39115. 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;
  39116. 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;
  39117. 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;
  39118. 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;
  39119. 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;
  39120. 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;
  39121. 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;
  39122. 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;
  39123. 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;
  39124. 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;
  39125. 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;
  39126. 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;
  39127. 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;
  39128. 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;
  39129. 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;
  39130. 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;
  39131. 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;
  39132. 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;
  39133. 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;
  39134. 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;
  39135. 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;
  39136. 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;
  39137. 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;
  39138. 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;
  39139. 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;
  39140. 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;
  39141. 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;
  39142. 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;
  39143. 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;
  39144. 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;
  39145. 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;
  39146. 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;
  39147. 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;
  39148. 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;
  39149. 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;
  39150. 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;
  39151. 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;
  39152. 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;
  39153. 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;
  39154. 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;
  39155. 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;
  39156. 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;
  39157. 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;
  39158. 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;
  39159. 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;
  39160. 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;
  39161. 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;
  39162. 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;
  39163. 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;
  39164. 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;
  39165. 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;
  39166. 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;
  39167. sp = STACKTOP;
  39168. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39169. $1 = sp;
  39170. $2 = ($0>>>0)<(245);
  39171. do {
  39172. if ($2) {
  39173. $3 = ($0>>>0)<(11);
  39174. $4 = (($0) + 11)|0;
  39175. $5 = $4 & -8;
  39176. $6 = $3 ? 16 : $5;
  39177. $7 = $6 >>> 3;
  39178. $8 = HEAP32[5296]|0;
  39179. $9 = $8 >>> $7;
  39180. $10 = $9 & 3;
  39181. $11 = ($10|0)==(0);
  39182. if (!($11)) {
  39183. $12 = $9 & 1;
  39184. $13 = $12 ^ 1;
  39185. $14 = (($13) + ($7))|0;
  39186. $15 = $14 << 1;
  39187. $16 = (21224 + ($15<<2)|0);
  39188. $17 = ((($16)) + 8|0);
  39189. $18 = HEAP32[$17>>2]|0;
  39190. $19 = ((($18)) + 8|0);
  39191. $20 = HEAP32[$19>>2]|0;
  39192. $21 = ($16|0)==($20|0);
  39193. do {
  39194. if ($21) {
  39195. $22 = 1 << $14;
  39196. $23 = $22 ^ -1;
  39197. $24 = $8 & $23;
  39198. HEAP32[5296] = $24;
  39199. } else {
  39200. $25 = HEAP32[(21200)>>2]|0;
  39201. $26 = ($20>>>0)<($25>>>0);
  39202. if ($26) {
  39203. _abort();
  39204. // unreachable;
  39205. }
  39206. $27 = ((($20)) + 12|0);
  39207. $28 = HEAP32[$27>>2]|0;
  39208. $29 = ($28|0)==($18|0);
  39209. if ($29) {
  39210. HEAP32[$27>>2] = $16;
  39211. HEAP32[$17>>2] = $20;
  39212. break;
  39213. } else {
  39214. _abort();
  39215. // unreachable;
  39216. }
  39217. }
  39218. } while(0);
  39219. $30 = $14 << 3;
  39220. $31 = $30 | 3;
  39221. $32 = ((($18)) + 4|0);
  39222. HEAP32[$32>>2] = $31;
  39223. $33 = (($18) + ($30)|0);
  39224. $34 = ((($33)) + 4|0);
  39225. $35 = HEAP32[$34>>2]|0;
  39226. $36 = $35 | 1;
  39227. HEAP32[$34>>2] = $36;
  39228. $$0 = $19;
  39229. STACKTOP = sp;return ($$0|0);
  39230. }
  39231. $37 = HEAP32[(21192)>>2]|0;
  39232. $38 = ($6>>>0)>($37>>>0);
  39233. if ($38) {
  39234. $39 = ($9|0)==(0);
  39235. if (!($39)) {
  39236. $40 = $9 << $7;
  39237. $41 = 2 << $7;
  39238. $42 = (0 - ($41))|0;
  39239. $43 = $41 | $42;
  39240. $44 = $40 & $43;
  39241. $45 = (0 - ($44))|0;
  39242. $46 = $44 & $45;
  39243. $47 = (($46) + -1)|0;
  39244. $48 = $47 >>> 12;
  39245. $49 = $48 & 16;
  39246. $50 = $47 >>> $49;
  39247. $51 = $50 >>> 5;
  39248. $52 = $51 & 8;
  39249. $53 = $52 | $49;
  39250. $54 = $50 >>> $52;
  39251. $55 = $54 >>> 2;
  39252. $56 = $55 & 4;
  39253. $57 = $53 | $56;
  39254. $58 = $54 >>> $56;
  39255. $59 = $58 >>> 1;
  39256. $60 = $59 & 2;
  39257. $61 = $57 | $60;
  39258. $62 = $58 >>> $60;
  39259. $63 = $62 >>> 1;
  39260. $64 = $63 & 1;
  39261. $65 = $61 | $64;
  39262. $66 = $62 >>> $64;
  39263. $67 = (($65) + ($66))|0;
  39264. $68 = $67 << 1;
  39265. $69 = (21224 + ($68<<2)|0);
  39266. $70 = ((($69)) + 8|0);
  39267. $71 = HEAP32[$70>>2]|0;
  39268. $72 = ((($71)) + 8|0);
  39269. $73 = HEAP32[$72>>2]|0;
  39270. $74 = ($69|0)==($73|0);
  39271. do {
  39272. if ($74) {
  39273. $75 = 1 << $67;
  39274. $76 = $75 ^ -1;
  39275. $77 = $8 & $76;
  39276. HEAP32[5296] = $77;
  39277. $98 = $77;
  39278. } else {
  39279. $78 = HEAP32[(21200)>>2]|0;
  39280. $79 = ($73>>>0)<($78>>>0);
  39281. if ($79) {
  39282. _abort();
  39283. // unreachable;
  39284. }
  39285. $80 = ((($73)) + 12|0);
  39286. $81 = HEAP32[$80>>2]|0;
  39287. $82 = ($81|0)==($71|0);
  39288. if ($82) {
  39289. HEAP32[$80>>2] = $69;
  39290. HEAP32[$70>>2] = $73;
  39291. $98 = $8;
  39292. break;
  39293. } else {
  39294. _abort();
  39295. // unreachable;
  39296. }
  39297. }
  39298. } while(0);
  39299. $83 = $67 << 3;
  39300. $84 = (($83) - ($6))|0;
  39301. $85 = $6 | 3;
  39302. $86 = ((($71)) + 4|0);
  39303. HEAP32[$86>>2] = $85;
  39304. $87 = (($71) + ($6)|0);
  39305. $88 = $84 | 1;
  39306. $89 = ((($87)) + 4|0);
  39307. HEAP32[$89>>2] = $88;
  39308. $90 = (($87) + ($84)|0);
  39309. HEAP32[$90>>2] = $84;
  39310. $91 = ($37|0)==(0);
  39311. if (!($91)) {
  39312. $92 = HEAP32[(21204)>>2]|0;
  39313. $93 = $37 >>> 3;
  39314. $94 = $93 << 1;
  39315. $95 = (21224 + ($94<<2)|0);
  39316. $96 = 1 << $93;
  39317. $97 = $98 & $96;
  39318. $99 = ($97|0)==(0);
  39319. if ($99) {
  39320. $100 = $98 | $96;
  39321. HEAP32[5296] = $100;
  39322. $$pre = ((($95)) + 8|0);
  39323. $$0199 = $95;$$pre$phiZ2D = $$pre;
  39324. } else {
  39325. $101 = ((($95)) + 8|0);
  39326. $102 = HEAP32[$101>>2]|0;
  39327. $103 = HEAP32[(21200)>>2]|0;
  39328. $104 = ($102>>>0)<($103>>>0);
  39329. if ($104) {
  39330. _abort();
  39331. // unreachable;
  39332. } else {
  39333. $$0199 = $102;$$pre$phiZ2D = $101;
  39334. }
  39335. }
  39336. HEAP32[$$pre$phiZ2D>>2] = $92;
  39337. $105 = ((($$0199)) + 12|0);
  39338. HEAP32[$105>>2] = $92;
  39339. $106 = ((($92)) + 8|0);
  39340. HEAP32[$106>>2] = $$0199;
  39341. $107 = ((($92)) + 12|0);
  39342. HEAP32[$107>>2] = $95;
  39343. }
  39344. HEAP32[(21192)>>2] = $84;
  39345. HEAP32[(21204)>>2] = $87;
  39346. $$0 = $72;
  39347. STACKTOP = sp;return ($$0|0);
  39348. }
  39349. $108 = HEAP32[(21188)>>2]|0;
  39350. $109 = ($108|0)==(0);
  39351. if ($109) {
  39352. $$0197 = $6;
  39353. } else {
  39354. $110 = (0 - ($108))|0;
  39355. $111 = $108 & $110;
  39356. $112 = (($111) + -1)|0;
  39357. $113 = $112 >>> 12;
  39358. $114 = $113 & 16;
  39359. $115 = $112 >>> $114;
  39360. $116 = $115 >>> 5;
  39361. $117 = $116 & 8;
  39362. $118 = $117 | $114;
  39363. $119 = $115 >>> $117;
  39364. $120 = $119 >>> 2;
  39365. $121 = $120 & 4;
  39366. $122 = $118 | $121;
  39367. $123 = $119 >>> $121;
  39368. $124 = $123 >>> 1;
  39369. $125 = $124 & 2;
  39370. $126 = $122 | $125;
  39371. $127 = $123 >>> $125;
  39372. $128 = $127 >>> 1;
  39373. $129 = $128 & 1;
  39374. $130 = $126 | $129;
  39375. $131 = $127 >>> $129;
  39376. $132 = (($130) + ($131))|0;
  39377. $133 = (21488 + ($132<<2)|0);
  39378. $134 = HEAP32[$133>>2]|0;
  39379. $135 = ((($134)) + 4|0);
  39380. $136 = HEAP32[$135>>2]|0;
  39381. $137 = $136 & -8;
  39382. $138 = (($137) - ($6))|0;
  39383. $139 = ((($134)) + 16|0);
  39384. $140 = HEAP32[$139>>2]|0;
  39385. $not$5$i = ($140|0)==(0|0);
  39386. $$sink16$i = $not$5$i&1;
  39387. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  39388. $142 = HEAP32[$141>>2]|0;
  39389. $143 = ($142|0)==(0|0);
  39390. if ($143) {
  39391. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  39392. } else {
  39393. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  39394. while(1) {
  39395. $144 = ((($145)) + 4|0);
  39396. $146 = HEAP32[$144>>2]|0;
  39397. $147 = $146 & -8;
  39398. $148 = (($147) - ($6))|0;
  39399. $149 = ($148>>>0)<($$01937$i>>>0);
  39400. $$$0193$i = $149 ? $148 : $$01937$i;
  39401. $$$0192$i = $149 ? $145 : $$01928$i;
  39402. $150 = ((($145)) + 16|0);
  39403. $151 = HEAP32[$150>>2]|0;
  39404. $not$$i = ($151|0)==(0|0);
  39405. $$sink1$i = $not$$i&1;
  39406. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  39407. $153 = HEAP32[$152>>2]|0;
  39408. $154 = ($153|0)==(0|0);
  39409. if ($154) {
  39410. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  39411. break;
  39412. } else {
  39413. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  39414. }
  39415. }
  39416. }
  39417. $155 = HEAP32[(21200)>>2]|0;
  39418. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  39419. if ($156) {
  39420. _abort();
  39421. // unreachable;
  39422. }
  39423. $157 = (($$0192$lcssa$i) + ($6)|0);
  39424. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  39425. if (!($158)) {
  39426. _abort();
  39427. // unreachable;
  39428. }
  39429. $159 = ((($$0192$lcssa$i)) + 24|0);
  39430. $160 = HEAP32[$159>>2]|0;
  39431. $161 = ((($$0192$lcssa$i)) + 12|0);
  39432. $162 = HEAP32[$161>>2]|0;
  39433. $163 = ($162|0)==($$0192$lcssa$i|0);
  39434. do {
  39435. if ($163) {
  39436. $173 = ((($$0192$lcssa$i)) + 20|0);
  39437. $174 = HEAP32[$173>>2]|0;
  39438. $175 = ($174|0)==(0|0);
  39439. if ($175) {
  39440. $176 = ((($$0192$lcssa$i)) + 16|0);
  39441. $177 = HEAP32[$176>>2]|0;
  39442. $178 = ($177|0)==(0|0);
  39443. if ($178) {
  39444. $$3$i = 0;
  39445. break;
  39446. } else {
  39447. $$1196$i = $177;$$1198$i = $176;
  39448. }
  39449. } else {
  39450. $$1196$i = $174;$$1198$i = $173;
  39451. }
  39452. while(1) {
  39453. $179 = ((($$1196$i)) + 20|0);
  39454. $180 = HEAP32[$179>>2]|0;
  39455. $181 = ($180|0)==(0|0);
  39456. if (!($181)) {
  39457. $$1196$i = $180;$$1198$i = $179;
  39458. continue;
  39459. }
  39460. $182 = ((($$1196$i)) + 16|0);
  39461. $183 = HEAP32[$182>>2]|0;
  39462. $184 = ($183|0)==(0|0);
  39463. if ($184) {
  39464. break;
  39465. } else {
  39466. $$1196$i = $183;$$1198$i = $182;
  39467. }
  39468. }
  39469. $185 = ($$1198$i>>>0)<($155>>>0);
  39470. if ($185) {
  39471. _abort();
  39472. // unreachable;
  39473. } else {
  39474. HEAP32[$$1198$i>>2] = 0;
  39475. $$3$i = $$1196$i;
  39476. break;
  39477. }
  39478. } else {
  39479. $164 = ((($$0192$lcssa$i)) + 8|0);
  39480. $165 = HEAP32[$164>>2]|0;
  39481. $166 = ($165>>>0)<($155>>>0);
  39482. if ($166) {
  39483. _abort();
  39484. // unreachable;
  39485. }
  39486. $167 = ((($165)) + 12|0);
  39487. $168 = HEAP32[$167>>2]|0;
  39488. $169 = ($168|0)==($$0192$lcssa$i|0);
  39489. if (!($169)) {
  39490. _abort();
  39491. // unreachable;
  39492. }
  39493. $170 = ((($162)) + 8|0);
  39494. $171 = HEAP32[$170>>2]|0;
  39495. $172 = ($171|0)==($$0192$lcssa$i|0);
  39496. if ($172) {
  39497. HEAP32[$167>>2] = $162;
  39498. HEAP32[$170>>2] = $165;
  39499. $$3$i = $162;
  39500. break;
  39501. } else {
  39502. _abort();
  39503. // unreachable;
  39504. }
  39505. }
  39506. } while(0);
  39507. $186 = ($160|0)==(0|0);
  39508. L73: do {
  39509. if (!($186)) {
  39510. $187 = ((($$0192$lcssa$i)) + 28|0);
  39511. $188 = HEAP32[$187>>2]|0;
  39512. $189 = (21488 + ($188<<2)|0);
  39513. $190 = HEAP32[$189>>2]|0;
  39514. $191 = ($$0192$lcssa$i|0)==($190|0);
  39515. do {
  39516. if ($191) {
  39517. HEAP32[$189>>2] = $$3$i;
  39518. $cond$i = ($$3$i|0)==(0|0);
  39519. if ($cond$i) {
  39520. $192 = 1 << $188;
  39521. $193 = $192 ^ -1;
  39522. $194 = $108 & $193;
  39523. HEAP32[(21188)>>2] = $194;
  39524. break L73;
  39525. }
  39526. } else {
  39527. $195 = HEAP32[(21200)>>2]|0;
  39528. $196 = ($160>>>0)<($195>>>0);
  39529. if ($196) {
  39530. _abort();
  39531. // unreachable;
  39532. } else {
  39533. $197 = ((($160)) + 16|0);
  39534. $198 = HEAP32[$197>>2]|0;
  39535. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  39536. $$sink2$i = $not$1$i&1;
  39537. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  39538. HEAP32[$199>>2] = $$3$i;
  39539. $200 = ($$3$i|0)==(0|0);
  39540. if ($200) {
  39541. break L73;
  39542. } else {
  39543. break;
  39544. }
  39545. }
  39546. }
  39547. } while(0);
  39548. $201 = HEAP32[(21200)>>2]|0;
  39549. $202 = ($$3$i>>>0)<($201>>>0);
  39550. if ($202) {
  39551. _abort();
  39552. // unreachable;
  39553. }
  39554. $203 = ((($$3$i)) + 24|0);
  39555. HEAP32[$203>>2] = $160;
  39556. $204 = ((($$0192$lcssa$i)) + 16|0);
  39557. $205 = HEAP32[$204>>2]|0;
  39558. $206 = ($205|0)==(0|0);
  39559. do {
  39560. if (!($206)) {
  39561. $207 = ($205>>>0)<($201>>>0);
  39562. if ($207) {
  39563. _abort();
  39564. // unreachable;
  39565. } else {
  39566. $208 = ((($$3$i)) + 16|0);
  39567. HEAP32[$208>>2] = $205;
  39568. $209 = ((($205)) + 24|0);
  39569. HEAP32[$209>>2] = $$3$i;
  39570. break;
  39571. }
  39572. }
  39573. } while(0);
  39574. $210 = ((($$0192$lcssa$i)) + 20|0);
  39575. $211 = HEAP32[$210>>2]|0;
  39576. $212 = ($211|0)==(0|0);
  39577. if (!($212)) {
  39578. $213 = HEAP32[(21200)>>2]|0;
  39579. $214 = ($211>>>0)<($213>>>0);
  39580. if ($214) {
  39581. _abort();
  39582. // unreachable;
  39583. } else {
  39584. $215 = ((($$3$i)) + 20|0);
  39585. HEAP32[$215>>2] = $211;
  39586. $216 = ((($211)) + 24|0);
  39587. HEAP32[$216>>2] = $$3$i;
  39588. break;
  39589. }
  39590. }
  39591. }
  39592. } while(0);
  39593. $217 = ($$0193$lcssa$i>>>0)<(16);
  39594. if ($217) {
  39595. $218 = (($$0193$lcssa$i) + ($6))|0;
  39596. $219 = $218 | 3;
  39597. $220 = ((($$0192$lcssa$i)) + 4|0);
  39598. HEAP32[$220>>2] = $219;
  39599. $221 = (($$0192$lcssa$i) + ($218)|0);
  39600. $222 = ((($221)) + 4|0);
  39601. $223 = HEAP32[$222>>2]|0;
  39602. $224 = $223 | 1;
  39603. HEAP32[$222>>2] = $224;
  39604. } else {
  39605. $225 = $6 | 3;
  39606. $226 = ((($$0192$lcssa$i)) + 4|0);
  39607. HEAP32[$226>>2] = $225;
  39608. $227 = $$0193$lcssa$i | 1;
  39609. $228 = ((($157)) + 4|0);
  39610. HEAP32[$228>>2] = $227;
  39611. $229 = (($157) + ($$0193$lcssa$i)|0);
  39612. HEAP32[$229>>2] = $$0193$lcssa$i;
  39613. $230 = ($37|0)==(0);
  39614. if (!($230)) {
  39615. $231 = HEAP32[(21204)>>2]|0;
  39616. $232 = $37 >>> 3;
  39617. $233 = $232 << 1;
  39618. $234 = (21224 + ($233<<2)|0);
  39619. $235 = 1 << $232;
  39620. $236 = $8 & $235;
  39621. $237 = ($236|0)==(0);
  39622. if ($237) {
  39623. $238 = $8 | $235;
  39624. HEAP32[5296] = $238;
  39625. $$pre$i = ((($234)) + 8|0);
  39626. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  39627. } else {
  39628. $239 = ((($234)) + 8|0);
  39629. $240 = HEAP32[$239>>2]|0;
  39630. $241 = HEAP32[(21200)>>2]|0;
  39631. $242 = ($240>>>0)<($241>>>0);
  39632. if ($242) {
  39633. _abort();
  39634. // unreachable;
  39635. } else {
  39636. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  39637. }
  39638. }
  39639. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  39640. $243 = ((($$0189$i)) + 12|0);
  39641. HEAP32[$243>>2] = $231;
  39642. $244 = ((($231)) + 8|0);
  39643. HEAP32[$244>>2] = $$0189$i;
  39644. $245 = ((($231)) + 12|0);
  39645. HEAP32[$245>>2] = $234;
  39646. }
  39647. HEAP32[(21192)>>2] = $$0193$lcssa$i;
  39648. HEAP32[(21204)>>2] = $157;
  39649. }
  39650. $246 = ((($$0192$lcssa$i)) + 8|0);
  39651. $$0 = $246;
  39652. STACKTOP = sp;return ($$0|0);
  39653. }
  39654. } else {
  39655. $$0197 = $6;
  39656. }
  39657. } else {
  39658. $247 = ($0>>>0)>(4294967231);
  39659. if ($247) {
  39660. $$0197 = -1;
  39661. } else {
  39662. $248 = (($0) + 11)|0;
  39663. $249 = $248 & -8;
  39664. $250 = HEAP32[(21188)>>2]|0;
  39665. $251 = ($250|0)==(0);
  39666. if ($251) {
  39667. $$0197 = $249;
  39668. } else {
  39669. $252 = (0 - ($249))|0;
  39670. $253 = $248 >>> 8;
  39671. $254 = ($253|0)==(0);
  39672. if ($254) {
  39673. $$0358$i = 0;
  39674. } else {
  39675. $255 = ($249>>>0)>(16777215);
  39676. if ($255) {
  39677. $$0358$i = 31;
  39678. } else {
  39679. $256 = (($253) + 1048320)|0;
  39680. $257 = $256 >>> 16;
  39681. $258 = $257 & 8;
  39682. $259 = $253 << $258;
  39683. $260 = (($259) + 520192)|0;
  39684. $261 = $260 >>> 16;
  39685. $262 = $261 & 4;
  39686. $263 = $262 | $258;
  39687. $264 = $259 << $262;
  39688. $265 = (($264) + 245760)|0;
  39689. $266 = $265 >>> 16;
  39690. $267 = $266 & 2;
  39691. $268 = $263 | $267;
  39692. $269 = (14 - ($268))|0;
  39693. $270 = $264 << $267;
  39694. $271 = $270 >>> 15;
  39695. $272 = (($269) + ($271))|0;
  39696. $273 = $272 << 1;
  39697. $274 = (($272) + 7)|0;
  39698. $275 = $249 >>> $274;
  39699. $276 = $275 & 1;
  39700. $277 = $276 | $273;
  39701. $$0358$i = $277;
  39702. }
  39703. }
  39704. $278 = (21488 + ($$0358$i<<2)|0);
  39705. $279 = HEAP32[$278>>2]|0;
  39706. $280 = ($279|0)==(0|0);
  39707. L117: do {
  39708. if ($280) {
  39709. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  39710. label = 81;
  39711. } else {
  39712. $281 = ($$0358$i|0)==(31);
  39713. $282 = $$0358$i >>> 1;
  39714. $283 = (25 - ($282))|0;
  39715. $284 = $281 ? 0 : $283;
  39716. $285 = $249 << $284;
  39717. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  39718. while(1) {
  39719. $286 = ((($$0353$i)) + 4|0);
  39720. $287 = HEAP32[$286>>2]|0;
  39721. $288 = $287 & -8;
  39722. $289 = (($288) - ($249))|0;
  39723. $290 = ($289>>>0)<($$0347$i>>>0);
  39724. if ($290) {
  39725. $291 = ($289|0)==(0);
  39726. if ($291) {
  39727. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  39728. label = 85;
  39729. break L117;
  39730. } else {
  39731. $$1343$i = $$0353$i;$$1348$i = $289;
  39732. }
  39733. } else {
  39734. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  39735. }
  39736. $292 = ((($$0353$i)) + 20|0);
  39737. $293 = HEAP32[$292>>2]|0;
  39738. $294 = $$0359$i >>> 31;
  39739. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  39740. $296 = HEAP32[$295>>2]|0;
  39741. $297 = ($293|0)==(0|0);
  39742. $298 = ($293|0)==($296|0);
  39743. $or$cond2$i = $297 | $298;
  39744. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  39745. $299 = ($296|0)==(0|0);
  39746. $not$8$i = $299 ^ 1;
  39747. $300 = $not$8$i&1;
  39748. $$0359$$i = $$0359$i << $300;
  39749. if ($299) {
  39750. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  39751. label = 81;
  39752. break;
  39753. } else {
  39754. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  39755. }
  39756. }
  39757. }
  39758. } while(0);
  39759. if ((label|0) == 81) {
  39760. $301 = ($$2355$i|0)==(0|0);
  39761. $302 = ($$3$i201|0)==(0|0);
  39762. $or$cond$i = $301 & $302;
  39763. if ($or$cond$i) {
  39764. $303 = 2 << $$0358$i;
  39765. $304 = (0 - ($303))|0;
  39766. $305 = $303 | $304;
  39767. $306 = $250 & $305;
  39768. $307 = ($306|0)==(0);
  39769. if ($307) {
  39770. $$0197 = $249;
  39771. break;
  39772. }
  39773. $308 = (0 - ($306))|0;
  39774. $309 = $306 & $308;
  39775. $310 = (($309) + -1)|0;
  39776. $311 = $310 >>> 12;
  39777. $312 = $311 & 16;
  39778. $313 = $310 >>> $312;
  39779. $314 = $313 >>> 5;
  39780. $315 = $314 & 8;
  39781. $316 = $315 | $312;
  39782. $317 = $313 >>> $315;
  39783. $318 = $317 >>> 2;
  39784. $319 = $318 & 4;
  39785. $320 = $316 | $319;
  39786. $321 = $317 >>> $319;
  39787. $322 = $321 >>> 1;
  39788. $323 = $322 & 2;
  39789. $324 = $320 | $323;
  39790. $325 = $321 >>> $323;
  39791. $326 = $325 >>> 1;
  39792. $327 = $326 & 1;
  39793. $328 = $324 | $327;
  39794. $329 = $325 >>> $327;
  39795. $330 = (($328) + ($329))|0;
  39796. $331 = (21488 + ($330<<2)|0);
  39797. $332 = HEAP32[$331>>2]|0;
  39798. $$4$ph$i = 0;$$4357$ph$i = $332;
  39799. } else {
  39800. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  39801. }
  39802. $333 = ($$4357$ph$i|0)==(0|0);
  39803. if ($333) {
  39804. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  39805. } else {
  39806. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  39807. label = 85;
  39808. }
  39809. }
  39810. if ((label|0) == 85) {
  39811. while(1) {
  39812. label = 0;
  39813. $334 = ((($$435713$i)) + 4|0);
  39814. $335 = HEAP32[$334>>2]|0;
  39815. $336 = $335 & -8;
  39816. $337 = (($336) - ($249))|0;
  39817. $338 = ($337>>>0)<($$435114$i>>>0);
  39818. $$$4351$i = $338 ? $337 : $$435114$i;
  39819. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  39820. $339 = ((($$435713$i)) + 16|0);
  39821. $340 = HEAP32[$339>>2]|0;
  39822. $not$1$i203 = ($340|0)==(0|0);
  39823. $$sink2$i204 = $not$1$i203&1;
  39824. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  39825. $342 = HEAP32[$341>>2]|0;
  39826. $343 = ($342|0)==(0|0);
  39827. if ($343) {
  39828. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  39829. break;
  39830. } else {
  39831. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  39832. label = 85;
  39833. }
  39834. }
  39835. }
  39836. $344 = ($$4$lcssa$i|0)==(0|0);
  39837. if ($344) {
  39838. $$0197 = $249;
  39839. } else {
  39840. $345 = HEAP32[(21192)>>2]|0;
  39841. $346 = (($345) - ($249))|0;
  39842. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  39843. if ($347) {
  39844. $348 = HEAP32[(21200)>>2]|0;
  39845. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  39846. if ($349) {
  39847. _abort();
  39848. // unreachable;
  39849. }
  39850. $350 = (($$4$lcssa$i) + ($249)|0);
  39851. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  39852. if (!($351)) {
  39853. _abort();
  39854. // unreachable;
  39855. }
  39856. $352 = ((($$4$lcssa$i)) + 24|0);
  39857. $353 = HEAP32[$352>>2]|0;
  39858. $354 = ((($$4$lcssa$i)) + 12|0);
  39859. $355 = HEAP32[$354>>2]|0;
  39860. $356 = ($355|0)==($$4$lcssa$i|0);
  39861. do {
  39862. if ($356) {
  39863. $366 = ((($$4$lcssa$i)) + 20|0);
  39864. $367 = HEAP32[$366>>2]|0;
  39865. $368 = ($367|0)==(0|0);
  39866. if ($368) {
  39867. $369 = ((($$4$lcssa$i)) + 16|0);
  39868. $370 = HEAP32[$369>>2]|0;
  39869. $371 = ($370|0)==(0|0);
  39870. if ($371) {
  39871. $$3372$i = 0;
  39872. break;
  39873. } else {
  39874. $$1370$i = $370;$$1374$i = $369;
  39875. }
  39876. } else {
  39877. $$1370$i = $367;$$1374$i = $366;
  39878. }
  39879. while(1) {
  39880. $372 = ((($$1370$i)) + 20|0);
  39881. $373 = HEAP32[$372>>2]|0;
  39882. $374 = ($373|0)==(0|0);
  39883. if (!($374)) {
  39884. $$1370$i = $373;$$1374$i = $372;
  39885. continue;
  39886. }
  39887. $375 = ((($$1370$i)) + 16|0);
  39888. $376 = HEAP32[$375>>2]|0;
  39889. $377 = ($376|0)==(0|0);
  39890. if ($377) {
  39891. break;
  39892. } else {
  39893. $$1370$i = $376;$$1374$i = $375;
  39894. }
  39895. }
  39896. $378 = ($$1374$i>>>0)<($348>>>0);
  39897. if ($378) {
  39898. _abort();
  39899. // unreachable;
  39900. } else {
  39901. HEAP32[$$1374$i>>2] = 0;
  39902. $$3372$i = $$1370$i;
  39903. break;
  39904. }
  39905. } else {
  39906. $357 = ((($$4$lcssa$i)) + 8|0);
  39907. $358 = HEAP32[$357>>2]|0;
  39908. $359 = ($358>>>0)<($348>>>0);
  39909. if ($359) {
  39910. _abort();
  39911. // unreachable;
  39912. }
  39913. $360 = ((($358)) + 12|0);
  39914. $361 = HEAP32[$360>>2]|0;
  39915. $362 = ($361|0)==($$4$lcssa$i|0);
  39916. if (!($362)) {
  39917. _abort();
  39918. // unreachable;
  39919. }
  39920. $363 = ((($355)) + 8|0);
  39921. $364 = HEAP32[$363>>2]|0;
  39922. $365 = ($364|0)==($$4$lcssa$i|0);
  39923. if ($365) {
  39924. HEAP32[$360>>2] = $355;
  39925. HEAP32[$363>>2] = $358;
  39926. $$3372$i = $355;
  39927. break;
  39928. } else {
  39929. _abort();
  39930. // unreachable;
  39931. }
  39932. }
  39933. } while(0);
  39934. $379 = ($353|0)==(0|0);
  39935. L164: do {
  39936. if ($379) {
  39937. $470 = $250;
  39938. } else {
  39939. $380 = ((($$4$lcssa$i)) + 28|0);
  39940. $381 = HEAP32[$380>>2]|0;
  39941. $382 = (21488 + ($381<<2)|0);
  39942. $383 = HEAP32[$382>>2]|0;
  39943. $384 = ($$4$lcssa$i|0)==($383|0);
  39944. do {
  39945. if ($384) {
  39946. HEAP32[$382>>2] = $$3372$i;
  39947. $cond$i208 = ($$3372$i|0)==(0|0);
  39948. if ($cond$i208) {
  39949. $385 = 1 << $381;
  39950. $386 = $385 ^ -1;
  39951. $387 = $250 & $386;
  39952. HEAP32[(21188)>>2] = $387;
  39953. $470 = $387;
  39954. break L164;
  39955. }
  39956. } else {
  39957. $388 = HEAP32[(21200)>>2]|0;
  39958. $389 = ($353>>>0)<($388>>>0);
  39959. if ($389) {
  39960. _abort();
  39961. // unreachable;
  39962. } else {
  39963. $390 = ((($353)) + 16|0);
  39964. $391 = HEAP32[$390>>2]|0;
  39965. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  39966. $$sink3$i = $not$$i209&1;
  39967. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  39968. HEAP32[$392>>2] = $$3372$i;
  39969. $393 = ($$3372$i|0)==(0|0);
  39970. if ($393) {
  39971. $470 = $250;
  39972. break L164;
  39973. } else {
  39974. break;
  39975. }
  39976. }
  39977. }
  39978. } while(0);
  39979. $394 = HEAP32[(21200)>>2]|0;
  39980. $395 = ($$3372$i>>>0)<($394>>>0);
  39981. if ($395) {
  39982. _abort();
  39983. // unreachable;
  39984. }
  39985. $396 = ((($$3372$i)) + 24|0);
  39986. HEAP32[$396>>2] = $353;
  39987. $397 = ((($$4$lcssa$i)) + 16|0);
  39988. $398 = HEAP32[$397>>2]|0;
  39989. $399 = ($398|0)==(0|0);
  39990. do {
  39991. if (!($399)) {
  39992. $400 = ($398>>>0)<($394>>>0);
  39993. if ($400) {
  39994. _abort();
  39995. // unreachable;
  39996. } else {
  39997. $401 = ((($$3372$i)) + 16|0);
  39998. HEAP32[$401>>2] = $398;
  39999. $402 = ((($398)) + 24|0);
  40000. HEAP32[$402>>2] = $$3372$i;
  40001. break;
  40002. }
  40003. }
  40004. } while(0);
  40005. $403 = ((($$4$lcssa$i)) + 20|0);
  40006. $404 = HEAP32[$403>>2]|0;
  40007. $405 = ($404|0)==(0|0);
  40008. if ($405) {
  40009. $470 = $250;
  40010. } else {
  40011. $406 = HEAP32[(21200)>>2]|0;
  40012. $407 = ($404>>>0)<($406>>>0);
  40013. if ($407) {
  40014. _abort();
  40015. // unreachable;
  40016. } else {
  40017. $408 = ((($$3372$i)) + 20|0);
  40018. HEAP32[$408>>2] = $404;
  40019. $409 = ((($404)) + 24|0);
  40020. HEAP32[$409>>2] = $$3372$i;
  40021. $470 = $250;
  40022. break;
  40023. }
  40024. }
  40025. }
  40026. } while(0);
  40027. $410 = ($$4351$lcssa$i>>>0)<(16);
  40028. do {
  40029. if ($410) {
  40030. $411 = (($$4351$lcssa$i) + ($249))|0;
  40031. $412 = $411 | 3;
  40032. $413 = ((($$4$lcssa$i)) + 4|0);
  40033. HEAP32[$413>>2] = $412;
  40034. $414 = (($$4$lcssa$i) + ($411)|0);
  40035. $415 = ((($414)) + 4|0);
  40036. $416 = HEAP32[$415>>2]|0;
  40037. $417 = $416 | 1;
  40038. HEAP32[$415>>2] = $417;
  40039. } else {
  40040. $418 = $249 | 3;
  40041. $419 = ((($$4$lcssa$i)) + 4|0);
  40042. HEAP32[$419>>2] = $418;
  40043. $420 = $$4351$lcssa$i | 1;
  40044. $421 = ((($350)) + 4|0);
  40045. HEAP32[$421>>2] = $420;
  40046. $422 = (($350) + ($$4351$lcssa$i)|0);
  40047. HEAP32[$422>>2] = $$4351$lcssa$i;
  40048. $423 = $$4351$lcssa$i >>> 3;
  40049. $424 = ($$4351$lcssa$i>>>0)<(256);
  40050. if ($424) {
  40051. $425 = $423 << 1;
  40052. $426 = (21224 + ($425<<2)|0);
  40053. $427 = HEAP32[5296]|0;
  40054. $428 = 1 << $423;
  40055. $429 = $427 & $428;
  40056. $430 = ($429|0)==(0);
  40057. if ($430) {
  40058. $431 = $427 | $428;
  40059. HEAP32[5296] = $431;
  40060. $$pre$i210 = ((($426)) + 8|0);
  40061. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  40062. } else {
  40063. $432 = ((($426)) + 8|0);
  40064. $433 = HEAP32[$432>>2]|0;
  40065. $434 = HEAP32[(21200)>>2]|0;
  40066. $435 = ($433>>>0)<($434>>>0);
  40067. if ($435) {
  40068. _abort();
  40069. // unreachable;
  40070. } else {
  40071. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  40072. }
  40073. }
  40074. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  40075. $436 = ((($$0368$i)) + 12|0);
  40076. HEAP32[$436>>2] = $350;
  40077. $437 = ((($350)) + 8|0);
  40078. HEAP32[$437>>2] = $$0368$i;
  40079. $438 = ((($350)) + 12|0);
  40080. HEAP32[$438>>2] = $426;
  40081. break;
  40082. }
  40083. $439 = $$4351$lcssa$i >>> 8;
  40084. $440 = ($439|0)==(0);
  40085. if ($440) {
  40086. $$0361$i = 0;
  40087. } else {
  40088. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  40089. if ($441) {
  40090. $$0361$i = 31;
  40091. } else {
  40092. $442 = (($439) + 1048320)|0;
  40093. $443 = $442 >>> 16;
  40094. $444 = $443 & 8;
  40095. $445 = $439 << $444;
  40096. $446 = (($445) + 520192)|0;
  40097. $447 = $446 >>> 16;
  40098. $448 = $447 & 4;
  40099. $449 = $448 | $444;
  40100. $450 = $445 << $448;
  40101. $451 = (($450) + 245760)|0;
  40102. $452 = $451 >>> 16;
  40103. $453 = $452 & 2;
  40104. $454 = $449 | $453;
  40105. $455 = (14 - ($454))|0;
  40106. $456 = $450 << $453;
  40107. $457 = $456 >>> 15;
  40108. $458 = (($455) + ($457))|0;
  40109. $459 = $458 << 1;
  40110. $460 = (($458) + 7)|0;
  40111. $461 = $$4351$lcssa$i >>> $460;
  40112. $462 = $461 & 1;
  40113. $463 = $462 | $459;
  40114. $$0361$i = $463;
  40115. }
  40116. }
  40117. $464 = (21488 + ($$0361$i<<2)|0);
  40118. $465 = ((($350)) + 28|0);
  40119. HEAP32[$465>>2] = $$0361$i;
  40120. $466 = ((($350)) + 16|0);
  40121. $467 = ((($466)) + 4|0);
  40122. HEAP32[$467>>2] = 0;
  40123. HEAP32[$466>>2] = 0;
  40124. $468 = 1 << $$0361$i;
  40125. $469 = $470 & $468;
  40126. $471 = ($469|0)==(0);
  40127. if ($471) {
  40128. $472 = $470 | $468;
  40129. HEAP32[(21188)>>2] = $472;
  40130. HEAP32[$464>>2] = $350;
  40131. $473 = ((($350)) + 24|0);
  40132. HEAP32[$473>>2] = $464;
  40133. $474 = ((($350)) + 12|0);
  40134. HEAP32[$474>>2] = $350;
  40135. $475 = ((($350)) + 8|0);
  40136. HEAP32[$475>>2] = $350;
  40137. break;
  40138. }
  40139. $476 = HEAP32[$464>>2]|0;
  40140. $477 = ($$0361$i|0)==(31);
  40141. $478 = $$0361$i >>> 1;
  40142. $479 = (25 - ($478))|0;
  40143. $480 = $477 ? 0 : $479;
  40144. $481 = $$4351$lcssa$i << $480;
  40145. $$0344$i = $481;$$0345$i = $476;
  40146. while(1) {
  40147. $482 = ((($$0345$i)) + 4|0);
  40148. $483 = HEAP32[$482>>2]|0;
  40149. $484 = $483 & -8;
  40150. $485 = ($484|0)==($$4351$lcssa$i|0);
  40151. if ($485) {
  40152. label = 139;
  40153. break;
  40154. }
  40155. $486 = $$0344$i >>> 31;
  40156. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  40157. $488 = $$0344$i << 1;
  40158. $489 = HEAP32[$487>>2]|0;
  40159. $490 = ($489|0)==(0|0);
  40160. if ($490) {
  40161. label = 136;
  40162. break;
  40163. } else {
  40164. $$0344$i = $488;$$0345$i = $489;
  40165. }
  40166. }
  40167. if ((label|0) == 136) {
  40168. $491 = HEAP32[(21200)>>2]|0;
  40169. $492 = ($487>>>0)<($491>>>0);
  40170. if ($492) {
  40171. _abort();
  40172. // unreachable;
  40173. } else {
  40174. HEAP32[$487>>2] = $350;
  40175. $493 = ((($350)) + 24|0);
  40176. HEAP32[$493>>2] = $$0345$i;
  40177. $494 = ((($350)) + 12|0);
  40178. HEAP32[$494>>2] = $350;
  40179. $495 = ((($350)) + 8|0);
  40180. HEAP32[$495>>2] = $350;
  40181. break;
  40182. }
  40183. }
  40184. else if ((label|0) == 139) {
  40185. $496 = ((($$0345$i)) + 8|0);
  40186. $497 = HEAP32[$496>>2]|0;
  40187. $498 = HEAP32[(21200)>>2]|0;
  40188. $499 = ($497>>>0)>=($498>>>0);
  40189. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  40190. $500 = $499 & $not$9$i;
  40191. if ($500) {
  40192. $501 = ((($497)) + 12|0);
  40193. HEAP32[$501>>2] = $350;
  40194. HEAP32[$496>>2] = $350;
  40195. $502 = ((($350)) + 8|0);
  40196. HEAP32[$502>>2] = $497;
  40197. $503 = ((($350)) + 12|0);
  40198. HEAP32[$503>>2] = $$0345$i;
  40199. $504 = ((($350)) + 24|0);
  40200. HEAP32[$504>>2] = 0;
  40201. break;
  40202. } else {
  40203. _abort();
  40204. // unreachable;
  40205. }
  40206. }
  40207. }
  40208. } while(0);
  40209. $505 = ((($$4$lcssa$i)) + 8|0);
  40210. $$0 = $505;
  40211. STACKTOP = sp;return ($$0|0);
  40212. } else {
  40213. $$0197 = $249;
  40214. }
  40215. }
  40216. }
  40217. }
  40218. }
  40219. } while(0);
  40220. $506 = HEAP32[(21192)>>2]|0;
  40221. $507 = ($506>>>0)<($$0197>>>0);
  40222. if (!($507)) {
  40223. $508 = (($506) - ($$0197))|0;
  40224. $509 = HEAP32[(21204)>>2]|0;
  40225. $510 = ($508>>>0)>(15);
  40226. if ($510) {
  40227. $511 = (($509) + ($$0197)|0);
  40228. HEAP32[(21204)>>2] = $511;
  40229. HEAP32[(21192)>>2] = $508;
  40230. $512 = $508 | 1;
  40231. $513 = ((($511)) + 4|0);
  40232. HEAP32[$513>>2] = $512;
  40233. $514 = (($511) + ($508)|0);
  40234. HEAP32[$514>>2] = $508;
  40235. $515 = $$0197 | 3;
  40236. $516 = ((($509)) + 4|0);
  40237. HEAP32[$516>>2] = $515;
  40238. } else {
  40239. HEAP32[(21192)>>2] = 0;
  40240. HEAP32[(21204)>>2] = 0;
  40241. $517 = $506 | 3;
  40242. $518 = ((($509)) + 4|0);
  40243. HEAP32[$518>>2] = $517;
  40244. $519 = (($509) + ($506)|0);
  40245. $520 = ((($519)) + 4|0);
  40246. $521 = HEAP32[$520>>2]|0;
  40247. $522 = $521 | 1;
  40248. HEAP32[$520>>2] = $522;
  40249. }
  40250. $523 = ((($509)) + 8|0);
  40251. $$0 = $523;
  40252. STACKTOP = sp;return ($$0|0);
  40253. }
  40254. $524 = HEAP32[(21196)>>2]|0;
  40255. $525 = ($524>>>0)>($$0197>>>0);
  40256. if ($525) {
  40257. $526 = (($524) - ($$0197))|0;
  40258. HEAP32[(21196)>>2] = $526;
  40259. $527 = HEAP32[(21208)>>2]|0;
  40260. $528 = (($527) + ($$0197)|0);
  40261. HEAP32[(21208)>>2] = $528;
  40262. $529 = $526 | 1;
  40263. $530 = ((($528)) + 4|0);
  40264. HEAP32[$530>>2] = $529;
  40265. $531 = $$0197 | 3;
  40266. $532 = ((($527)) + 4|0);
  40267. HEAP32[$532>>2] = $531;
  40268. $533 = ((($527)) + 8|0);
  40269. $$0 = $533;
  40270. STACKTOP = sp;return ($$0|0);
  40271. }
  40272. $534 = HEAP32[5414]|0;
  40273. $535 = ($534|0)==(0);
  40274. if ($535) {
  40275. HEAP32[(21664)>>2] = 4096;
  40276. HEAP32[(21660)>>2] = 4096;
  40277. HEAP32[(21668)>>2] = -1;
  40278. HEAP32[(21672)>>2] = -1;
  40279. HEAP32[(21676)>>2] = 0;
  40280. HEAP32[(21628)>>2] = 0;
  40281. $536 = $1;
  40282. $537 = $536 & -16;
  40283. $538 = $537 ^ 1431655768;
  40284. HEAP32[$1>>2] = $538;
  40285. HEAP32[5414] = $538;
  40286. $542 = 4096;
  40287. } else {
  40288. $$pre$i212 = HEAP32[(21664)>>2]|0;
  40289. $542 = $$pre$i212;
  40290. }
  40291. $539 = (($$0197) + 48)|0;
  40292. $540 = (($$0197) + 47)|0;
  40293. $541 = (($542) + ($540))|0;
  40294. $543 = (0 - ($542))|0;
  40295. $544 = $541 & $543;
  40296. $545 = ($544>>>0)>($$0197>>>0);
  40297. if (!($545)) {
  40298. $$0 = 0;
  40299. STACKTOP = sp;return ($$0|0);
  40300. }
  40301. $546 = HEAP32[(21624)>>2]|0;
  40302. $547 = ($546|0)==(0);
  40303. if (!($547)) {
  40304. $548 = HEAP32[(21616)>>2]|0;
  40305. $549 = (($548) + ($544))|0;
  40306. $550 = ($549>>>0)<=($548>>>0);
  40307. $551 = ($549>>>0)>($546>>>0);
  40308. $or$cond1$i = $550 | $551;
  40309. if ($or$cond1$i) {
  40310. $$0 = 0;
  40311. STACKTOP = sp;return ($$0|0);
  40312. }
  40313. }
  40314. $552 = HEAP32[(21628)>>2]|0;
  40315. $553 = $552 & 4;
  40316. $554 = ($553|0)==(0);
  40317. L244: do {
  40318. if ($554) {
  40319. $555 = HEAP32[(21208)>>2]|0;
  40320. $556 = ($555|0)==(0|0);
  40321. L246: do {
  40322. if ($556) {
  40323. label = 163;
  40324. } else {
  40325. $$0$i$i = (21632);
  40326. while(1) {
  40327. $557 = HEAP32[$$0$i$i>>2]|0;
  40328. $558 = ($557>>>0)>($555>>>0);
  40329. if (!($558)) {
  40330. $559 = ((($$0$i$i)) + 4|0);
  40331. $560 = HEAP32[$559>>2]|0;
  40332. $561 = (($557) + ($560)|0);
  40333. $562 = ($561>>>0)>($555>>>0);
  40334. if ($562) {
  40335. break;
  40336. }
  40337. }
  40338. $563 = ((($$0$i$i)) + 8|0);
  40339. $564 = HEAP32[$563>>2]|0;
  40340. $565 = ($564|0)==(0|0);
  40341. if ($565) {
  40342. label = 163;
  40343. break L246;
  40344. } else {
  40345. $$0$i$i = $564;
  40346. }
  40347. }
  40348. $588 = (($541) - ($524))|0;
  40349. $589 = $588 & $543;
  40350. $590 = ($589>>>0)<(2147483647);
  40351. if ($590) {
  40352. $591 = (_sbrk(($589|0))|0);
  40353. $592 = HEAP32[$$0$i$i>>2]|0;
  40354. $593 = HEAP32[$559>>2]|0;
  40355. $594 = (($592) + ($593)|0);
  40356. $595 = ($591|0)==($594|0);
  40357. if ($595) {
  40358. $596 = ($591|0)==((-1)|0);
  40359. if ($596) {
  40360. $$2234253237$i = $589;
  40361. } else {
  40362. $$723948$i = $589;$$749$i = $591;
  40363. label = 180;
  40364. break L244;
  40365. }
  40366. } else {
  40367. $$2247$ph$i = $591;$$2253$ph$i = $589;
  40368. label = 171;
  40369. }
  40370. } else {
  40371. $$2234253237$i = 0;
  40372. }
  40373. }
  40374. } while(0);
  40375. do {
  40376. if ((label|0) == 163) {
  40377. $566 = (_sbrk(0)|0);
  40378. $567 = ($566|0)==((-1)|0);
  40379. if ($567) {
  40380. $$2234253237$i = 0;
  40381. } else {
  40382. $568 = $566;
  40383. $569 = HEAP32[(21660)>>2]|0;
  40384. $570 = (($569) + -1)|0;
  40385. $571 = $570 & $568;
  40386. $572 = ($571|0)==(0);
  40387. $573 = (($570) + ($568))|0;
  40388. $574 = (0 - ($569))|0;
  40389. $575 = $573 & $574;
  40390. $576 = (($575) - ($568))|0;
  40391. $577 = $572 ? 0 : $576;
  40392. $$$i = (($577) + ($544))|0;
  40393. $578 = HEAP32[(21616)>>2]|0;
  40394. $579 = (($$$i) + ($578))|0;
  40395. $580 = ($$$i>>>0)>($$0197>>>0);
  40396. $581 = ($$$i>>>0)<(2147483647);
  40397. $or$cond$i214 = $580 & $581;
  40398. if ($or$cond$i214) {
  40399. $582 = HEAP32[(21624)>>2]|0;
  40400. $583 = ($582|0)==(0);
  40401. if (!($583)) {
  40402. $584 = ($579>>>0)<=($578>>>0);
  40403. $585 = ($579>>>0)>($582>>>0);
  40404. $or$cond2$i215 = $584 | $585;
  40405. if ($or$cond2$i215) {
  40406. $$2234253237$i = 0;
  40407. break;
  40408. }
  40409. }
  40410. $586 = (_sbrk(($$$i|0))|0);
  40411. $587 = ($586|0)==($566|0);
  40412. if ($587) {
  40413. $$723948$i = $$$i;$$749$i = $566;
  40414. label = 180;
  40415. break L244;
  40416. } else {
  40417. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  40418. label = 171;
  40419. }
  40420. } else {
  40421. $$2234253237$i = 0;
  40422. }
  40423. }
  40424. }
  40425. } while(0);
  40426. do {
  40427. if ((label|0) == 171) {
  40428. $597 = (0 - ($$2253$ph$i))|0;
  40429. $598 = ($$2247$ph$i|0)!=((-1)|0);
  40430. $599 = ($$2253$ph$i>>>0)<(2147483647);
  40431. $or$cond7$i = $599 & $598;
  40432. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  40433. $or$cond10$i = $600 & $or$cond7$i;
  40434. if (!($or$cond10$i)) {
  40435. $610 = ($$2247$ph$i|0)==((-1)|0);
  40436. if ($610) {
  40437. $$2234253237$i = 0;
  40438. break;
  40439. } else {
  40440. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  40441. label = 180;
  40442. break L244;
  40443. }
  40444. }
  40445. $601 = HEAP32[(21664)>>2]|0;
  40446. $602 = (($540) - ($$2253$ph$i))|0;
  40447. $603 = (($602) + ($601))|0;
  40448. $604 = (0 - ($601))|0;
  40449. $605 = $603 & $604;
  40450. $606 = ($605>>>0)<(2147483647);
  40451. if (!($606)) {
  40452. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  40453. label = 180;
  40454. break L244;
  40455. }
  40456. $607 = (_sbrk(($605|0))|0);
  40457. $608 = ($607|0)==((-1)|0);
  40458. if ($608) {
  40459. (_sbrk(($597|0))|0);
  40460. $$2234253237$i = 0;
  40461. break;
  40462. } else {
  40463. $609 = (($605) + ($$2253$ph$i))|0;
  40464. $$723948$i = $609;$$749$i = $$2247$ph$i;
  40465. label = 180;
  40466. break L244;
  40467. }
  40468. }
  40469. } while(0);
  40470. $611 = HEAP32[(21628)>>2]|0;
  40471. $612 = $611 | 4;
  40472. HEAP32[(21628)>>2] = $612;
  40473. $$4236$i = $$2234253237$i;
  40474. label = 178;
  40475. } else {
  40476. $$4236$i = 0;
  40477. label = 178;
  40478. }
  40479. } while(0);
  40480. if ((label|0) == 178) {
  40481. $613 = ($544>>>0)<(2147483647);
  40482. if ($613) {
  40483. $614 = (_sbrk(($544|0))|0);
  40484. $615 = (_sbrk(0)|0);
  40485. $616 = ($614|0)!=((-1)|0);
  40486. $617 = ($615|0)!=((-1)|0);
  40487. $or$cond5$i = $616 & $617;
  40488. $618 = ($614>>>0)<($615>>>0);
  40489. $or$cond11$i = $618 & $or$cond5$i;
  40490. $619 = $615;
  40491. $620 = $614;
  40492. $621 = (($619) - ($620))|0;
  40493. $622 = (($$0197) + 40)|0;
  40494. $623 = ($621>>>0)>($622>>>0);
  40495. $$$4236$i = $623 ? $621 : $$4236$i;
  40496. $or$cond11$not$i = $or$cond11$i ^ 1;
  40497. $624 = ($614|0)==((-1)|0);
  40498. $not$$i216 = $623 ^ 1;
  40499. $625 = $624 | $not$$i216;
  40500. $or$cond50$i = $625 | $or$cond11$not$i;
  40501. if (!($or$cond50$i)) {
  40502. $$723948$i = $$$4236$i;$$749$i = $614;
  40503. label = 180;
  40504. }
  40505. }
  40506. }
  40507. if ((label|0) == 180) {
  40508. $626 = HEAP32[(21616)>>2]|0;
  40509. $627 = (($626) + ($$723948$i))|0;
  40510. HEAP32[(21616)>>2] = $627;
  40511. $628 = HEAP32[(21620)>>2]|0;
  40512. $629 = ($627>>>0)>($628>>>0);
  40513. if ($629) {
  40514. HEAP32[(21620)>>2] = $627;
  40515. }
  40516. $630 = HEAP32[(21208)>>2]|0;
  40517. $631 = ($630|0)==(0|0);
  40518. do {
  40519. if ($631) {
  40520. $632 = HEAP32[(21200)>>2]|0;
  40521. $633 = ($632|0)==(0|0);
  40522. $634 = ($$749$i>>>0)<($632>>>0);
  40523. $or$cond12$i = $633 | $634;
  40524. if ($or$cond12$i) {
  40525. HEAP32[(21200)>>2] = $$749$i;
  40526. }
  40527. HEAP32[(21632)>>2] = $$749$i;
  40528. HEAP32[(21636)>>2] = $$723948$i;
  40529. HEAP32[(21644)>>2] = 0;
  40530. $635 = HEAP32[5414]|0;
  40531. HEAP32[(21220)>>2] = $635;
  40532. HEAP32[(21216)>>2] = -1;
  40533. $$01$i$i = 0;
  40534. while(1) {
  40535. $636 = $$01$i$i << 1;
  40536. $637 = (21224 + ($636<<2)|0);
  40537. $638 = ((($637)) + 12|0);
  40538. HEAP32[$638>>2] = $637;
  40539. $639 = ((($637)) + 8|0);
  40540. HEAP32[$639>>2] = $637;
  40541. $640 = (($$01$i$i) + 1)|0;
  40542. $exitcond$i$i = ($640|0)==(32);
  40543. if ($exitcond$i$i) {
  40544. break;
  40545. } else {
  40546. $$01$i$i = $640;
  40547. }
  40548. }
  40549. $641 = (($$723948$i) + -40)|0;
  40550. $642 = ((($$749$i)) + 8|0);
  40551. $643 = $642;
  40552. $644 = $643 & 7;
  40553. $645 = ($644|0)==(0);
  40554. $646 = (0 - ($643))|0;
  40555. $647 = $646 & 7;
  40556. $648 = $645 ? 0 : $647;
  40557. $649 = (($$749$i) + ($648)|0);
  40558. $650 = (($641) - ($648))|0;
  40559. HEAP32[(21208)>>2] = $649;
  40560. HEAP32[(21196)>>2] = $650;
  40561. $651 = $650 | 1;
  40562. $652 = ((($649)) + 4|0);
  40563. HEAP32[$652>>2] = $651;
  40564. $653 = (($649) + ($650)|0);
  40565. $654 = ((($653)) + 4|0);
  40566. HEAP32[$654>>2] = 40;
  40567. $655 = HEAP32[(21672)>>2]|0;
  40568. HEAP32[(21212)>>2] = $655;
  40569. } else {
  40570. $$024371$i = (21632);
  40571. while(1) {
  40572. $656 = HEAP32[$$024371$i>>2]|0;
  40573. $657 = ((($$024371$i)) + 4|0);
  40574. $658 = HEAP32[$657>>2]|0;
  40575. $659 = (($656) + ($658)|0);
  40576. $660 = ($$749$i|0)==($659|0);
  40577. if ($660) {
  40578. label = 190;
  40579. break;
  40580. }
  40581. $661 = ((($$024371$i)) + 8|0);
  40582. $662 = HEAP32[$661>>2]|0;
  40583. $663 = ($662|0)==(0|0);
  40584. if ($663) {
  40585. break;
  40586. } else {
  40587. $$024371$i = $662;
  40588. }
  40589. }
  40590. if ((label|0) == 190) {
  40591. $664 = ((($$024371$i)) + 12|0);
  40592. $665 = HEAP32[$664>>2]|0;
  40593. $666 = $665 & 8;
  40594. $667 = ($666|0)==(0);
  40595. if ($667) {
  40596. $668 = ($630>>>0)>=($656>>>0);
  40597. $669 = ($630>>>0)<($$749$i>>>0);
  40598. $or$cond51$i = $669 & $668;
  40599. if ($or$cond51$i) {
  40600. $670 = (($658) + ($$723948$i))|0;
  40601. HEAP32[$657>>2] = $670;
  40602. $671 = HEAP32[(21196)>>2]|0;
  40603. $672 = ((($630)) + 8|0);
  40604. $673 = $672;
  40605. $674 = $673 & 7;
  40606. $675 = ($674|0)==(0);
  40607. $676 = (0 - ($673))|0;
  40608. $677 = $676 & 7;
  40609. $678 = $675 ? 0 : $677;
  40610. $679 = (($630) + ($678)|0);
  40611. $680 = (($$723948$i) - ($678))|0;
  40612. $681 = (($671) + ($680))|0;
  40613. HEAP32[(21208)>>2] = $679;
  40614. HEAP32[(21196)>>2] = $681;
  40615. $682 = $681 | 1;
  40616. $683 = ((($679)) + 4|0);
  40617. HEAP32[$683>>2] = $682;
  40618. $684 = (($679) + ($681)|0);
  40619. $685 = ((($684)) + 4|0);
  40620. HEAP32[$685>>2] = 40;
  40621. $686 = HEAP32[(21672)>>2]|0;
  40622. HEAP32[(21212)>>2] = $686;
  40623. break;
  40624. }
  40625. }
  40626. }
  40627. $687 = HEAP32[(21200)>>2]|0;
  40628. $688 = ($$749$i>>>0)<($687>>>0);
  40629. if ($688) {
  40630. HEAP32[(21200)>>2] = $$749$i;
  40631. $752 = $$749$i;
  40632. } else {
  40633. $752 = $687;
  40634. }
  40635. $689 = (($$749$i) + ($$723948$i)|0);
  40636. $$124470$i = (21632);
  40637. while(1) {
  40638. $690 = HEAP32[$$124470$i>>2]|0;
  40639. $691 = ($690|0)==($689|0);
  40640. if ($691) {
  40641. label = 198;
  40642. break;
  40643. }
  40644. $692 = ((($$124470$i)) + 8|0);
  40645. $693 = HEAP32[$692>>2]|0;
  40646. $694 = ($693|0)==(0|0);
  40647. if ($694) {
  40648. break;
  40649. } else {
  40650. $$124470$i = $693;
  40651. }
  40652. }
  40653. if ((label|0) == 198) {
  40654. $695 = ((($$124470$i)) + 12|0);
  40655. $696 = HEAP32[$695>>2]|0;
  40656. $697 = $696 & 8;
  40657. $698 = ($697|0)==(0);
  40658. if ($698) {
  40659. HEAP32[$$124470$i>>2] = $$749$i;
  40660. $699 = ((($$124470$i)) + 4|0);
  40661. $700 = HEAP32[$699>>2]|0;
  40662. $701 = (($700) + ($$723948$i))|0;
  40663. HEAP32[$699>>2] = $701;
  40664. $702 = ((($$749$i)) + 8|0);
  40665. $703 = $702;
  40666. $704 = $703 & 7;
  40667. $705 = ($704|0)==(0);
  40668. $706 = (0 - ($703))|0;
  40669. $707 = $706 & 7;
  40670. $708 = $705 ? 0 : $707;
  40671. $709 = (($$749$i) + ($708)|0);
  40672. $710 = ((($689)) + 8|0);
  40673. $711 = $710;
  40674. $712 = $711 & 7;
  40675. $713 = ($712|0)==(0);
  40676. $714 = (0 - ($711))|0;
  40677. $715 = $714 & 7;
  40678. $716 = $713 ? 0 : $715;
  40679. $717 = (($689) + ($716)|0);
  40680. $718 = $717;
  40681. $719 = $709;
  40682. $720 = (($718) - ($719))|0;
  40683. $721 = (($709) + ($$0197)|0);
  40684. $722 = (($720) - ($$0197))|0;
  40685. $723 = $$0197 | 3;
  40686. $724 = ((($709)) + 4|0);
  40687. HEAP32[$724>>2] = $723;
  40688. $725 = ($717|0)==($630|0);
  40689. do {
  40690. if ($725) {
  40691. $726 = HEAP32[(21196)>>2]|0;
  40692. $727 = (($726) + ($722))|0;
  40693. HEAP32[(21196)>>2] = $727;
  40694. HEAP32[(21208)>>2] = $721;
  40695. $728 = $727 | 1;
  40696. $729 = ((($721)) + 4|0);
  40697. HEAP32[$729>>2] = $728;
  40698. } else {
  40699. $730 = HEAP32[(21204)>>2]|0;
  40700. $731 = ($717|0)==($730|0);
  40701. if ($731) {
  40702. $732 = HEAP32[(21192)>>2]|0;
  40703. $733 = (($732) + ($722))|0;
  40704. HEAP32[(21192)>>2] = $733;
  40705. HEAP32[(21204)>>2] = $721;
  40706. $734 = $733 | 1;
  40707. $735 = ((($721)) + 4|0);
  40708. HEAP32[$735>>2] = $734;
  40709. $736 = (($721) + ($733)|0);
  40710. HEAP32[$736>>2] = $733;
  40711. break;
  40712. }
  40713. $737 = ((($717)) + 4|0);
  40714. $738 = HEAP32[$737>>2]|0;
  40715. $739 = $738 & 3;
  40716. $740 = ($739|0)==(1);
  40717. if ($740) {
  40718. $741 = $738 & -8;
  40719. $742 = $738 >>> 3;
  40720. $743 = ($738>>>0)<(256);
  40721. L314: do {
  40722. if ($743) {
  40723. $744 = ((($717)) + 8|0);
  40724. $745 = HEAP32[$744>>2]|0;
  40725. $746 = ((($717)) + 12|0);
  40726. $747 = HEAP32[$746>>2]|0;
  40727. $748 = $742 << 1;
  40728. $749 = (21224 + ($748<<2)|0);
  40729. $750 = ($745|0)==($749|0);
  40730. do {
  40731. if (!($750)) {
  40732. $751 = ($745>>>0)<($752>>>0);
  40733. if ($751) {
  40734. _abort();
  40735. // unreachable;
  40736. }
  40737. $753 = ((($745)) + 12|0);
  40738. $754 = HEAP32[$753>>2]|0;
  40739. $755 = ($754|0)==($717|0);
  40740. if ($755) {
  40741. break;
  40742. }
  40743. _abort();
  40744. // unreachable;
  40745. }
  40746. } while(0);
  40747. $756 = ($747|0)==($745|0);
  40748. if ($756) {
  40749. $757 = 1 << $742;
  40750. $758 = $757 ^ -1;
  40751. $759 = HEAP32[5296]|0;
  40752. $760 = $759 & $758;
  40753. HEAP32[5296] = $760;
  40754. break;
  40755. }
  40756. $761 = ($747|0)==($749|0);
  40757. do {
  40758. if ($761) {
  40759. $$pre10$i$i = ((($747)) + 8|0);
  40760. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  40761. } else {
  40762. $762 = ($747>>>0)<($752>>>0);
  40763. if ($762) {
  40764. _abort();
  40765. // unreachable;
  40766. }
  40767. $763 = ((($747)) + 8|0);
  40768. $764 = HEAP32[$763>>2]|0;
  40769. $765 = ($764|0)==($717|0);
  40770. if ($765) {
  40771. $$pre$phi11$i$iZ2D = $763;
  40772. break;
  40773. }
  40774. _abort();
  40775. // unreachable;
  40776. }
  40777. } while(0);
  40778. $766 = ((($745)) + 12|0);
  40779. HEAP32[$766>>2] = $747;
  40780. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  40781. } else {
  40782. $767 = ((($717)) + 24|0);
  40783. $768 = HEAP32[$767>>2]|0;
  40784. $769 = ((($717)) + 12|0);
  40785. $770 = HEAP32[$769>>2]|0;
  40786. $771 = ($770|0)==($717|0);
  40787. do {
  40788. if ($771) {
  40789. $781 = ((($717)) + 16|0);
  40790. $782 = ((($781)) + 4|0);
  40791. $783 = HEAP32[$782>>2]|0;
  40792. $784 = ($783|0)==(0|0);
  40793. if ($784) {
  40794. $785 = HEAP32[$781>>2]|0;
  40795. $786 = ($785|0)==(0|0);
  40796. if ($786) {
  40797. $$3$i$i = 0;
  40798. break;
  40799. } else {
  40800. $$1291$i$i = $785;$$1293$i$i = $781;
  40801. }
  40802. } else {
  40803. $$1291$i$i = $783;$$1293$i$i = $782;
  40804. }
  40805. while(1) {
  40806. $787 = ((($$1291$i$i)) + 20|0);
  40807. $788 = HEAP32[$787>>2]|0;
  40808. $789 = ($788|0)==(0|0);
  40809. if (!($789)) {
  40810. $$1291$i$i = $788;$$1293$i$i = $787;
  40811. continue;
  40812. }
  40813. $790 = ((($$1291$i$i)) + 16|0);
  40814. $791 = HEAP32[$790>>2]|0;
  40815. $792 = ($791|0)==(0|0);
  40816. if ($792) {
  40817. break;
  40818. } else {
  40819. $$1291$i$i = $791;$$1293$i$i = $790;
  40820. }
  40821. }
  40822. $793 = ($$1293$i$i>>>0)<($752>>>0);
  40823. if ($793) {
  40824. _abort();
  40825. // unreachable;
  40826. } else {
  40827. HEAP32[$$1293$i$i>>2] = 0;
  40828. $$3$i$i = $$1291$i$i;
  40829. break;
  40830. }
  40831. } else {
  40832. $772 = ((($717)) + 8|0);
  40833. $773 = HEAP32[$772>>2]|0;
  40834. $774 = ($773>>>0)<($752>>>0);
  40835. if ($774) {
  40836. _abort();
  40837. // unreachable;
  40838. }
  40839. $775 = ((($773)) + 12|0);
  40840. $776 = HEAP32[$775>>2]|0;
  40841. $777 = ($776|0)==($717|0);
  40842. if (!($777)) {
  40843. _abort();
  40844. // unreachable;
  40845. }
  40846. $778 = ((($770)) + 8|0);
  40847. $779 = HEAP32[$778>>2]|0;
  40848. $780 = ($779|0)==($717|0);
  40849. if ($780) {
  40850. HEAP32[$775>>2] = $770;
  40851. HEAP32[$778>>2] = $773;
  40852. $$3$i$i = $770;
  40853. break;
  40854. } else {
  40855. _abort();
  40856. // unreachable;
  40857. }
  40858. }
  40859. } while(0);
  40860. $794 = ($768|0)==(0|0);
  40861. if ($794) {
  40862. break;
  40863. }
  40864. $795 = ((($717)) + 28|0);
  40865. $796 = HEAP32[$795>>2]|0;
  40866. $797 = (21488 + ($796<<2)|0);
  40867. $798 = HEAP32[$797>>2]|0;
  40868. $799 = ($717|0)==($798|0);
  40869. do {
  40870. if ($799) {
  40871. HEAP32[$797>>2] = $$3$i$i;
  40872. $cond$i$i = ($$3$i$i|0)==(0|0);
  40873. if (!($cond$i$i)) {
  40874. break;
  40875. }
  40876. $800 = 1 << $796;
  40877. $801 = $800 ^ -1;
  40878. $802 = HEAP32[(21188)>>2]|0;
  40879. $803 = $802 & $801;
  40880. HEAP32[(21188)>>2] = $803;
  40881. break L314;
  40882. } else {
  40883. $804 = HEAP32[(21200)>>2]|0;
  40884. $805 = ($768>>>0)<($804>>>0);
  40885. if ($805) {
  40886. _abort();
  40887. // unreachable;
  40888. } else {
  40889. $806 = ((($768)) + 16|0);
  40890. $807 = HEAP32[$806>>2]|0;
  40891. $not$$i17$i = ($807|0)!=($717|0);
  40892. $$sink1$i$i = $not$$i17$i&1;
  40893. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  40894. HEAP32[$808>>2] = $$3$i$i;
  40895. $809 = ($$3$i$i|0)==(0|0);
  40896. if ($809) {
  40897. break L314;
  40898. } else {
  40899. break;
  40900. }
  40901. }
  40902. }
  40903. } while(0);
  40904. $810 = HEAP32[(21200)>>2]|0;
  40905. $811 = ($$3$i$i>>>0)<($810>>>0);
  40906. if ($811) {
  40907. _abort();
  40908. // unreachable;
  40909. }
  40910. $812 = ((($$3$i$i)) + 24|0);
  40911. HEAP32[$812>>2] = $768;
  40912. $813 = ((($717)) + 16|0);
  40913. $814 = HEAP32[$813>>2]|0;
  40914. $815 = ($814|0)==(0|0);
  40915. do {
  40916. if (!($815)) {
  40917. $816 = ($814>>>0)<($810>>>0);
  40918. if ($816) {
  40919. _abort();
  40920. // unreachable;
  40921. } else {
  40922. $817 = ((($$3$i$i)) + 16|0);
  40923. HEAP32[$817>>2] = $814;
  40924. $818 = ((($814)) + 24|0);
  40925. HEAP32[$818>>2] = $$3$i$i;
  40926. break;
  40927. }
  40928. }
  40929. } while(0);
  40930. $819 = ((($813)) + 4|0);
  40931. $820 = HEAP32[$819>>2]|0;
  40932. $821 = ($820|0)==(0|0);
  40933. if ($821) {
  40934. break;
  40935. }
  40936. $822 = HEAP32[(21200)>>2]|0;
  40937. $823 = ($820>>>0)<($822>>>0);
  40938. if ($823) {
  40939. _abort();
  40940. // unreachable;
  40941. } else {
  40942. $824 = ((($$3$i$i)) + 20|0);
  40943. HEAP32[$824>>2] = $820;
  40944. $825 = ((($820)) + 24|0);
  40945. HEAP32[$825>>2] = $$3$i$i;
  40946. break;
  40947. }
  40948. }
  40949. } while(0);
  40950. $826 = (($717) + ($741)|0);
  40951. $827 = (($741) + ($722))|0;
  40952. $$0$i18$i = $826;$$0287$i$i = $827;
  40953. } else {
  40954. $$0$i18$i = $717;$$0287$i$i = $722;
  40955. }
  40956. $828 = ((($$0$i18$i)) + 4|0);
  40957. $829 = HEAP32[$828>>2]|0;
  40958. $830 = $829 & -2;
  40959. HEAP32[$828>>2] = $830;
  40960. $831 = $$0287$i$i | 1;
  40961. $832 = ((($721)) + 4|0);
  40962. HEAP32[$832>>2] = $831;
  40963. $833 = (($721) + ($$0287$i$i)|0);
  40964. HEAP32[$833>>2] = $$0287$i$i;
  40965. $834 = $$0287$i$i >>> 3;
  40966. $835 = ($$0287$i$i>>>0)<(256);
  40967. if ($835) {
  40968. $836 = $834 << 1;
  40969. $837 = (21224 + ($836<<2)|0);
  40970. $838 = HEAP32[5296]|0;
  40971. $839 = 1 << $834;
  40972. $840 = $838 & $839;
  40973. $841 = ($840|0)==(0);
  40974. do {
  40975. if ($841) {
  40976. $842 = $838 | $839;
  40977. HEAP32[5296] = $842;
  40978. $$pre$i19$i = ((($837)) + 8|0);
  40979. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  40980. } else {
  40981. $843 = ((($837)) + 8|0);
  40982. $844 = HEAP32[$843>>2]|0;
  40983. $845 = HEAP32[(21200)>>2]|0;
  40984. $846 = ($844>>>0)<($845>>>0);
  40985. if (!($846)) {
  40986. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  40987. break;
  40988. }
  40989. _abort();
  40990. // unreachable;
  40991. }
  40992. } while(0);
  40993. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  40994. $847 = ((($$0295$i$i)) + 12|0);
  40995. HEAP32[$847>>2] = $721;
  40996. $848 = ((($721)) + 8|0);
  40997. HEAP32[$848>>2] = $$0295$i$i;
  40998. $849 = ((($721)) + 12|0);
  40999. HEAP32[$849>>2] = $837;
  41000. break;
  41001. }
  41002. $850 = $$0287$i$i >>> 8;
  41003. $851 = ($850|0)==(0);
  41004. do {
  41005. if ($851) {
  41006. $$0296$i$i = 0;
  41007. } else {
  41008. $852 = ($$0287$i$i>>>0)>(16777215);
  41009. if ($852) {
  41010. $$0296$i$i = 31;
  41011. break;
  41012. }
  41013. $853 = (($850) + 1048320)|0;
  41014. $854 = $853 >>> 16;
  41015. $855 = $854 & 8;
  41016. $856 = $850 << $855;
  41017. $857 = (($856) + 520192)|0;
  41018. $858 = $857 >>> 16;
  41019. $859 = $858 & 4;
  41020. $860 = $859 | $855;
  41021. $861 = $856 << $859;
  41022. $862 = (($861) + 245760)|0;
  41023. $863 = $862 >>> 16;
  41024. $864 = $863 & 2;
  41025. $865 = $860 | $864;
  41026. $866 = (14 - ($865))|0;
  41027. $867 = $861 << $864;
  41028. $868 = $867 >>> 15;
  41029. $869 = (($866) + ($868))|0;
  41030. $870 = $869 << 1;
  41031. $871 = (($869) + 7)|0;
  41032. $872 = $$0287$i$i >>> $871;
  41033. $873 = $872 & 1;
  41034. $874 = $873 | $870;
  41035. $$0296$i$i = $874;
  41036. }
  41037. } while(0);
  41038. $875 = (21488 + ($$0296$i$i<<2)|0);
  41039. $876 = ((($721)) + 28|0);
  41040. HEAP32[$876>>2] = $$0296$i$i;
  41041. $877 = ((($721)) + 16|0);
  41042. $878 = ((($877)) + 4|0);
  41043. HEAP32[$878>>2] = 0;
  41044. HEAP32[$877>>2] = 0;
  41045. $879 = HEAP32[(21188)>>2]|0;
  41046. $880 = 1 << $$0296$i$i;
  41047. $881 = $879 & $880;
  41048. $882 = ($881|0)==(0);
  41049. if ($882) {
  41050. $883 = $879 | $880;
  41051. HEAP32[(21188)>>2] = $883;
  41052. HEAP32[$875>>2] = $721;
  41053. $884 = ((($721)) + 24|0);
  41054. HEAP32[$884>>2] = $875;
  41055. $885 = ((($721)) + 12|0);
  41056. HEAP32[$885>>2] = $721;
  41057. $886 = ((($721)) + 8|0);
  41058. HEAP32[$886>>2] = $721;
  41059. break;
  41060. }
  41061. $887 = HEAP32[$875>>2]|0;
  41062. $888 = ($$0296$i$i|0)==(31);
  41063. $889 = $$0296$i$i >>> 1;
  41064. $890 = (25 - ($889))|0;
  41065. $891 = $888 ? 0 : $890;
  41066. $892 = $$0287$i$i << $891;
  41067. $$0288$i$i = $892;$$0289$i$i = $887;
  41068. while(1) {
  41069. $893 = ((($$0289$i$i)) + 4|0);
  41070. $894 = HEAP32[$893>>2]|0;
  41071. $895 = $894 & -8;
  41072. $896 = ($895|0)==($$0287$i$i|0);
  41073. if ($896) {
  41074. label = 265;
  41075. break;
  41076. }
  41077. $897 = $$0288$i$i >>> 31;
  41078. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  41079. $899 = $$0288$i$i << 1;
  41080. $900 = HEAP32[$898>>2]|0;
  41081. $901 = ($900|0)==(0|0);
  41082. if ($901) {
  41083. label = 262;
  41084. break;
  41085. } else {
  41086. $$0288$i$i = $899;$$0289$i$i = $900;
  41087. }
  41088. }
  41089. if ((label|0) == 262) {
  41090. $902 = HEAP32[(21200)>>2]|0;
  41091. $903 = ($898>>>0)<($902>>>0);
  41092. if ($903) {
  41093. _abort();
  41094. // unreachable;
  41095. } else {
  41096. HEAP32[$898>>2] = $721;
  41097. $904 = ((($721)) + 24|0);
  41098. HEAP32[$904>>2] = $$0289$i$i;
  41099. $905 = ((($721)) + 12|0);
  41100. HEAP32[$905>>2] = $721;
  41101. $906 = ((($721)) + 8|0);
  41102. HEAP32[$906>>2] = $721;
  41103. break;
  41104. }
  41105. }
  41106. else if ((label|0) == 265) {
  41107. $907 = ((($$0289$i$i)) + 8|0);
  41108. $908 = HEAP32[$907>>2]|0;
  41109. $909 = HEAP32[(21200)>>2]|0;
  41110. $910 = ($908>>>0)>=($909>>>0);
  41111. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  41112. $911 = $910 & $not$7$i$i;
  41113. if ($911) {
  41114. $912 = ((($908)) + 12|0);
  41115. HEAP32[$912>>2] = $721;
  41116. HEAP32[$907>>2] = $721;
  41117. $913 = ((($721)) + 8|0);
  41118. HEAP32[$913>>2] = $908;
  41119. $914 = ((($721)) + 12|0);
  41120. HEAP32[$914>>2] = $$0289$i$i;
  41121. $915 = ((($721)) + 24|0);
  41122. HEAP32[$915>>2] = 0;
  41123. break;
  41124. } else {
  41125. _abort();
  41126. // unreachable;
  41127. }
  41128. }
  41129. }
  41130. } while(0);
  41131. $1047 = ((($709)) + 8|0);
  41132. $$0 = $1047;
  41133. STACKTOP = sp;return ($$0|0);
  41134. }
  41135. }
  41136. $$0$i$i$i = (21632);
  41137. while(1) {
  41138. $916 = HEAP32[$$0$i$i$i>>2]|0;
  41139. $917 = ($916>>>0)>($630>>>0);
  41140. if (!($917)) {
  41141. $918 = ((($$0$i$i$i)) + 4|0);
  41142. $919 = HEAP32[$918>>2]|0;
  41143. $920 = (($916) + ($919)|0);
  41144. $921 = ($920>>>0)>($630>>>0);
  41145. if ($921) {
  41146. break;
  41147. }
  41148. }
  41149. $922 = ((($$0$i$i$i)) + 8|0);
  41150. $923 = HEAP32[$922>>2]|0;
  41151. $$0$i$i$i = $923;
  41152. }
  41153. $924 = ((($920)) + -47|0);
  41154. $925 = ((($924)) + 8|0);
  41155. $926 = $925;
  41156. $927 = $926 & 7;
  41157. $928 = ($927|0)==(0);
  41158. $929 = (0 - ($926))|0;
  41159. $930 = $929 & 7;
  41160. $931 = $928 ? 0 : $930;
  41161. $932 = (($924) + ($931)|0);
  41162. $933 = ((($630)) + 16|0);
  41163. $934 = ($932>>>0)<($933>>>0);
  41164. $935 = $934 ? $630 : $932;
  41165. $936 = ((($935)) + 8|0);
  41166. $937 = ((($935)) + 24|0);
  41167. $938 = (($$723948$i) + -40)|0;
  41168. $939 = ((($$749$i)) + 8|0);
  41169. $940 = $939;
  41170. $941 = $940 & 7;
  41171. $942 = ($941|0)==(0);
  41172. $943 = (0 - ($940))|0;
  41173. $944 = $943 & 7;
  41174. $945 = $942 ? 0 : $944;
  41175. $946 = (($$749$i) + ($945)|0);
  41176. $947 = (($938) - ($945))|0;
  41177. HEAP32[(21208)>>2] = $946;
  41178. HEAP32[(21196)>>2] = $947;
  41179. $948 = $947 | 1;
  41180. $949 = ((($946)) + 4|0);
  41181. HEAP32[$949>>2] = $948;
  41182. $950 = (($946) + ($947)|0);
  41183. $951 = ((($950)) + 4|0);
  41184. HEAP32[$951>>2] = 40;
  41185. $952 = HEAP32[(21672)>>2]|0;
  41186. HEAP32[(21212)>>2] = $952;
  41187. $953 = ((($935)) + 4|0);
  41188. HEAP32[$953>>2] = 27;
  41189. ;HEAP32[$936>>2]=HEAP32[(21632)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(21632)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(21632)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(21632)+12>>2]|0;
  41190. HEAP32[(21632)>>2] = $$749$i;
  41191. HEAP32[(21636)>>2] = $$723948$i;
  41192. HEAP32[(21644)>>2] = 0;
  41193. HEAP32[(21640)>>2] = $936;
  41194. $955 = $937;
  41195. while(1) {
  41196. $954 = ((($955)) + 4|0);
  41197. HEAP32[$954>>2] = 7;
  41198. $956 = ((($955)) + 8|0);
  41199. $957 = ($956>>>0)<($920>>>0);
  41200. if ($957) {
  41201. $955 = $954;
  41202. } else {
  41203. break;
  41204. }
  41205. }
  41206. $958 = ($935|0)==($630|0);
  41207. if (!($958)) {
  41208. $959 = $935;
  41209. $960 = $630;
  41210. $961 = (($959) - ($960))|0;
  41211. $962 = HEAP32[$953>>2]|0;
  41212. $963 = $962 & -2;
  41213. HEAP32[$953>>2] = $963;
  41214. $964 = $961 | 1;
  41215. $965 = ((($630)) + 4|0);
  41216. HEAP32[$965>>2] = $964;
  41217. HEAP32[$935>>2] = $961;
  41218. $966 = $961 >>> 3;
  41219. $967 = ($961>>>0)<(256);
  41220. if ($967) {
  41221. $968 = $966 << 1;
  41222. $969 = (21224 + ($968<<2)|0);
  41223. $970 = HEAP32[5296]|0;
  41224. $971 = 1 << $966;
  41225. $972 = $970 & $971;
  41226. $973 = ($972|0)==(0);
  41227. if ($973) {
  41228. $974 = $970 | $971;
  41229. HEAP32[5296] = $974;
  41230. $$pre$i$i = ((($969)) + 8|0);
  41231. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  41232. } else {
  41233. $975 = ((($969)) + 8|0);
  41234. $976 = HEAP32[$975>>2]|0;
  41235. $977 = HEAP32[(21200)>>2]|0;
  41236. $978 = ($976>>>0)<($977>>>0);
  41237. if ($978) {
  41238. _abort();
  41239. // unreachable;
  41240. } else {
  41241. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  41242. }
  41243. }
  41244. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  41245. $979 = ((($$0211$i$i)) + 12|0);
  41246. HEAP32[$979>>2] = $630;
  41247. $980 = ((($630)) + 8|0);
  41248. HEAP32[$980>>2] = $$0211$i$i;
  41249. $981 = ((($630)) + 12|0);
  41250. HEAP32[$981>>2] = $969;
  41251. break;
  41252. }
  41253. $982 = $961 >>> 8;
  41254. $983 = ($982|0)==(0);
  41255. if ($983) {
  41256. $$0212$i$i = 0;
  41257. } else {
  41258. $984 = ($961>>>0)>(16777215);
  41259. if ($984) {
  41260. $$0212$i$i = 31;
  41261. } else {
  41262. $985 = (($982) + 1048320)|0;
  41263. $986 = $985 >>> 16;
  41264. $987 = $986 & 8;
  41265. $988 = $982 << $987;
  41266. $989 = (($988) + 520192)|0;
  41267. $990 = $989 >>> 16;
  41268. $991 = $990 & 4;
  41269. $992 = $991 | $987;
  41270. $993 = $988 << $991;
  41271. $994 = (($993) + 245760)|0;
  41272. $995 = $994 >>> 16;
  41273. $996 = $995 & 2;
  41274. $997 = $992 | $996;
  41275. $998 = (14 - ($997))|0;
  41276. $999 = $993 << $996;
  41277. $1000 = $999 >>> 15;
  41278. $1001 = (($998) + ($1000))|0;
  41279. $1002 = $1001 << 1;
  41280. $1003 = (($1001) + 7)|0;
  41281. $1004 = $961 >>> $1003;
  41282. $1005 = $1004 & 1;
  41283. $1006 = $1005 | $1002;
  41284. $$0212$i$i = $1006;
  41285. }
  41286. }
  41287. $1007 = (21488 + ($$0212$i$i<<2)|0);
  41288. $1008 = ((($630)) + 28|0);
  41289. HEAP32[$1008>>2] = $$0212$i$i;
  41290. $1009 = ((($630)) + 20|0);
  41291. HEAP32[$1009>>2] = 0;
  41292. HEAP32[$933>>2] = 0;
  41293. $1010 = HEAP32[(21188)>>2]|0;
  41294. $1011 = 1 << $$0212$i$i;
  41295. $1012 = $1010 & $1011;
  41296. $1013 = ($1012|0)==(0);
  41297. if ($1013) {
  41298. $1014 = $1010 | $1011;
  41299. HEAP32[(21188)>>2] = $1014;
  41300. HEAP32[$1007>>2] = $630;
  41301. $1015 = ((($630)) + 24|0);
  41302. HEAP32[$1015>>2] = $1007;
  41303. $1016 = ((($630)) + 12|0);
  41304. HEAP32[$1016>>2] = $630;
  41305. $1017 = ((($630)) + 8|0);
  41306. HEAP32[$1017>>2] = $630;
  41307. break;
  41308. }
  41309. $1018 = HEAP32[$1007>>2]|0;
  41310. $1019 = ($$0212$i$i|0)==(31);
  41311. $1020 = $$0212$i$i >>> 1;
  41312. $1021 = (25 - ($1020))|0;
  41313. $1022 = $1019 ? 0 : $1021;
  41314. $1023 = $961 << $1022;
  41315. $$0206$i$i = $1023;$$0207$i$i = $1018;
  41316. while(1) {
  41317. $1024 = ((($$0207$i$i)) + 4|0);
  41318. $1025 = HEAP32[$1024>>2]|0;
  41319. $1026 = $1025 & -8;
  41320. $1027 = ($1026|0)==($961|0);
  41321. if ($1027) {
  41322. label = 292;
  41323. break;
  41324. }
  41325. $1028 = $$0206$i$i >>> 31;
  41326. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  41327. $1030 = $$0206$i$i << 1;
  41328. $1031 = HEAP32[$1029>>2]|0;
  41329. $1032 = ($1031|0)==(0|0);
  41330. if ($1032) {
  41331. label = 289;
  41332. break;
  41333. } else {
  41334. $$0206$i$i = $1030;$$0207$i$i = $1031;
  41335. }
  41336. }
  41337. if ((label|0) == 289) {
  41338. $1033 = HEAP32[(21200)>>2]|0;
  41339. $1034 = ($1029>>>0)<($1033>>>0);
  41340. if ($1034) {
  41341. _abort();
  41342. // unreachable;
  41343. } else {
  41344. HEAP32[$1029>>2] = $630;
  41345. $1035 = ((($630)) + 24|0);
  41346. HEAP32[$1035>>2] = $$0207$i$i;
  41347. $1036 = ((($630)) + 12|0);
  41348. HEAP32[$1036>>2] = $630;
  41349. $1037 = ((($630)) + 8|0);
  41350. HEAP32[$1037>>2] = $630;
  41351. break;
  41352. }
  41353. }
  41354. else if ((label|0) == 292) {
  41355. $1038 = ((($$0207$i$i)) + 8|0);
  41356. $1039 = HEAP32[$1038>>2]|0;
  41357. $1040 = HEAP32[(21200)>>2]|0;
  41358. $1041 = ($1039>>>0)>=($1040>>>0);
  41359. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  41360. $1042 = $1041 & $not$$i$i;
  41361. if ($1042) {
  41362. $1043 = ((($1039)) + 12|0);
  41363. HEAP32[$1043>>2] = $630;
  41364. HEAP32[$1038>>2] = $630;
  41365. $1044 = ((($630)) + 8|0);
  41366. HEAP32[$1044>>2] = $1039;
  41367. $1045 = ((($630)) + 12|0);
  41368. HEAP32[$1045>>2] = $$0207$i$i;
  41369. $1046 = ((($630)) + 24|0);
  41370. HEAP32[$1046>>2] = 0;
  41371. break;
  41372. } else {
  41373. _abort();
  41374. // unreachable;
  41375. }
  41376. }
  41377. }
  41378. }
  41379. } while(0);
  41380. $1048 = HEAP32[(21196)>>2]|0;
  41381. $1049 = ($1048>>>0)>($$0197>>>0);
  41382. if ($1049) {
  41383. $1050 = (($1048) - ($$0197))|0;
  41384. HEAP32[(21196)>>2] = $1050;
  41385. $1051 = HEAP32[(21208)>>2]|0;
  41386. $1052 = (($1051) + ($$0197)|0);
  41387. HEAP32[(21208)>>2] = $1052;
  41388. $1053 = $1050 | 1;
  41389. $1054 = ((($1052)) + 4|0);
  41390. HEAP32[$1054>>2] = $1053;
  41391. $1055 = $$0197 | 3;
  41392. $1056 = ((($1051)) + 4|0);
  41393. HEAP32[$1056>>2] = $1055;
  41394. $1057 = ((($1051)) + 8|0);
  41395. $$0 = $1057;
  41396. STACKTOP = sp;return ($$0|0);
  41397. }
  41398. }
  41399. $1058 = (___errno_location()|0);
  41400. HEAP32[$1058>>2] = 12;
  41401. $$0 = 0;
  41402. STACKTOP = sp;return ($$0|0);
  41403. }
  41404. function _free($0) {
  41405. $0 = $0|0;
  41406. 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;
  41407. 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;
  41408. 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;
  41409. 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;
  41410. 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;
  41411. 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;
  41412. 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;
  41413. 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;
  41414. 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;
  41415. 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;
  41416. 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;
  41417. 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;
  41418. 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;
  41419. 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;
  41420. 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;
  41421. 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;
  41422. 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;
  41423. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  41424. sp = STACKTOP;
  41425. $1 = ($0|0)==(0|0);
  41426. if ($1) {
  41427. return;
  41428. }
  41429. $2 = ((($0)) + -8|0);
  41430. $3 = HEAP32[(21200)>>2]|0;
  41431. $4 = ($2>>>0)<($3>>>0);
  41432. if ($4) {
  41433. _abort();
  41434. // unreachable;
  41435. }
  41436. $5 = ((($0)) + -4|0);
  41437. $6 = HEAP32[$5>>2]|0;
  41438. $7 = $6 & 3;
  41439. $8 = ($7|0)==(1);
  41440. if ($8) {
  41441. _abort();
  41442. // unreachable;
  41443. }
  41444. $9 = $6 & -8;
  41445. $10 = (($2) + ($9)|0);
  41446. $11 = $6 & 1;
  41447. $12 = ($11|0)==(0);
  41448. L10: do {
  41449. if ($12) {
  41450. $13 = HEAP32[$2>>2]|0;
  41451. $14 = ($7|0)==(0);
  41452. if ($14) {
  41453. return;
  41454. }
  41455. $15 = (0 - ($13))|0;
  41456. $16 = (($2) + ($15)|0);
  41457. $17 = (($13) + ($9))|0;
  41458. $18 = ($16>>>0)<($3>>>0);
  41459. if ($18) {
  41460. _abort();
  41461. // unreachable;
  41462. }
  41463. $19 = HEAP32[(21204)>>2]|0;
  41464. $20 = ($16|0)==($19|0);
  41465. if ($20) {
  41466. $104 = ((($10)) + 4|0);
  41467. $105 = HEAP32[$104>>2]|0;
  41468. $106 = $105 & 3;
  41469. $107 = ($106|0)==(3);
  41470. if (!($107)) {
  41471. $$1 = $16;$$1382 = $17;$113 = $16;
  41472. break;
  41473. }
  41474. $108 = (($16) + ($17)|0);
  41475. $109 = ((($16)) + 4|0);
  41476. $110 = $17 | 1;
  41477. $111 = $105 & -2;
  41478. HEAP32[(21192)>>2] = $17;
  41479. HEAP32[$104>>2] = $111;
  41480. HEAP32[$109>>2] = $110;
  41481. HEAP32[$108>>2] = $17;
  41482. return;
  41483. }
  41484. $21 = $13 >>> 3;
  41485. $22 = ($13>>>0)<(256);
  41486. if ($22) {
  41487. $23 = ((($16)) + 8|0);
  41488. $24 = HEAP32[$23>>2]|0;
  41489. $25 = ((($16)) + 12|0);
  41490. $26 = HEAP32[$25>>2]|0;
  41491. $27 = $21 << 1;
  41492. $28 = (21224 + ($27<<2)|0);
  41493. $29 = ($24|0)==($28|0);
  41494. if (!($29)) {
  41495. $30 = ($24>>>0)<($3>>>0);
  41496. if ($30) {
  41497. _abort();
  41498. // unreachable;
  41499. }
  41500. $31 = ((($24)) + 12|0);
  41501. $32 = HEAP32[$31>>2]|0;
  41502. $33 = ($32|0)==($16|0);
  41503. if (!($33)) {
  41504. _abort();
  41505. // unreachable;
  41506. }
  41507. }
  41508. $34 = ($26|0)==($24|0);
  41509. if ($34) {
  41510. $35 = 1 << $21;
  41511. $36 = $35 ^ -1;
  41512. $37 = HEAP32[5296]|0;
  41513. $38 = $37 & $36;
  41514. HEAP32[5296] = $38;
  41515. $$1 = $16;$$1382 = $17;$113 = $16;
  41516. break;
  41517. }
  41518. $39 = ($26|0)==($28|0);
  41519. if ($39) {
  41520. $$pre444 = ((($26)) + 8|0);
  41521. $$pre$phi445Z2D = $$pre444;
  41522. } else {
  41523. $40 = ($26>>>0)<($3>>>0);
  41524. if ($40) {
  41525. _abort();
  41526. // unreachable;
  41527. }
  41528. $41 = ((($26)) + 8|0);
  41529. $42 = HEAP32[$41>>2]|0;
  41530. $43 = ($42|0)==($16|0);
  41531. if ($43) {
  41532. $$pre$phi445Z2D = $41;
  41533. } else {
  41534. _abort();
  41535. // unreachable;
  41536. }
  41537. }
  41538. $44 = ((($24)) + 12|0);
  41539. HEAP32[$44>>2] = $26;
  41540. HEAP32[$$pre$phi445Z2D>>2] = $24;
  41541. $$1 = $16;$$1382 = $17;$113 = $16;
  41542. break;
  41543. }
  41544. $45 = ((($16)) + 24|0);
  41545. $46 = HEAP32[$45>>2]|0;
  41546. $47 = ((($16)) + 12|0);
  41547. $48 = HEAP32[$47>>2]|0;
  41548. $49 = ($48|0)==($16|0);
  41549. do {
  41550. if ($49) {
  41551. $59 = ((($16)) + 16|0);
  41552. $60 = ((($59)) + 4|0);
  41553. $61 = HEAP32[$60>>2]|0;
  41554. $62 = ($61|0)==(0|0);
  41555. if ($62) {
  41556. $63 = HEAP32[$59>>2]|0;
  41557. $64 = ($63|0)==(0|0);
  41558. if ($64) {
  41559. $$3 = 0;
  41560. break;
  41561. } else {
  41562. $$1387 = $63;$$1390 = $59;
  41563. }
  41564. } else {
  41565. $$1387 = $61;$$1390 = $60;
  41566. }
  41567. while(1) {
  41568. $65 = ((($$1387)) + 20|0);
  41569. $66 = HEAP32[$65>>2]|0;
  41570. $67 = ($66|0)==(0|0);
  41571. if (!($67)) {
  41572. $$1387 = $66;$$1390 = $65;
  41573. continue;
  41574. }
  41575. $68 = ((($$1387)) + 16|0);
  41576. $69 = HEAP32[$68>>2]|0;
  41577. $70 = ($69|0)==(0|0);
  41578. if ($70) {
  41579. break;
  41580. } else {
  41581. $$1387 = $69;$$1390 = $68;
  41582. }
  41583. }
  41584. $71 = ($$1390>>>0)<($3>>>0);
  41585. if ($71) {
  41586. _abort();
  41587. // unreachable;
  41588. } else {
  41589. HEAP32[$$1390>>2] = 0;
  41590. $$3 = $$1387;
  41591. break;
  41592. }
  41593. } else {
  41594. $50 = ((($16)) + 8|0);
  41595. $51 = HEAP32[$50>>2]|0;
  41596. $52 = ($51>>>0)<($3>>>0);
  41597. if ($52) {
  41598. _abort();
  41599. // unreachable;
  41600. }
  41601. $53 = ((($51)) + 12|0);
  41602. $54 = HEAP32[$53>>2]|0;
  41603. $55 = ($54|0)==($16|0);
  41604. if (!($55)) {
  41605. _abort();
  41606. // unreachable;
  41607. }
  41608. $56 = ((($48)) + 8|0);
  41609. $57 = HEAP32[$56>>2]|0;
  41610. $58 = ($57|0)==($16|0);
  41611. if ($58) {
  41612. HEAP32[$53>>2] = $48;
  41613. HEAP32[$56>>2] = $51;
  41614. $$3 = $48;
  41615. break;
  41616. } else {
  41617. _abort();
  41618. // unreachable;
  41619. }
  41620. }
  41621. } while(0);
  41622. $72 = ($46|0)==(0|0);
  41623. if ($72) {
  41624. $$1 = $16;$$1382 = $17;$113 = $16;
  41625. } else {
  41626. $73 = ((($16)) + 28|0);
  41627. $74 = HEAP32[$73>>2]|0;
  41628. $75 = (21488 + ($74<<2)|0);
  41629. $76 = HEAP32[$75>>2]|0;
  41630. $77 = ($16|0)==($76|0);
  41631. do {
  41632. if ($77) {
  41633. HEAP32[$75>>2] = $$3;
  41634. $cond421 = ($$3|0)==(0|0);
  41635. if ($cond421) {
  41636. $78 = 1 << $74;
  41637. $79 = $78 ^ -1;
  41638. $80 = HEAP32[(21188)>>2]|0;
  41639. $81 = $80 & $79;
  41640. HEAP32[(21188)>>2] = $81;
  41641. $$1 = $16;$$1382 = $17;$113 = $16;
  41642. break L10;
  41643. }
  41644. } else {
  41645. $82 = HEAP32[(21200)>>2]|0;
  41646. $83 = ($46>>>0)<($82>>>0);
  41647. if ($83) {
  41648. _abort();
  41649. // unreachable;
  41650. } else {
  41651. $84 = ((($46)) + 16|0);
  41652. $85 = HEAP32[$84>>2]|0;
  41653. $not$405 = ($85|0)!=($16|0);
  41654. $$sink3 = $not$405&1;
  41655. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  41656. HEAP32[$86>>2] = $$3;
  41657. $87 = ($$3|0)==(0|0);
  41658. if ($87) {
  41659. $$1 = $16;$$1382 = $17;$113 = $16;
  41660. break L10;
  41661. } else {
  41662. break;
  41663. }
  41664. }
  41665. }
  41666. } while(0);
  41667. $88 = HEAP32[(21200)>>2]|0;
  41668. $89 = ($$3>>>0)<($88>>>0);
  41669. if ($89) {
  41670. _abort();
  41671. // unreachable;
  41672. }
  41673. $90 = ((($$3)) + 24|0);
  41674. HEAP32[$90>>2] = $46;
  41675. $91 = ((($16)) + 16|0);
  41676. $92 = HEAP32[$91>>2]|0;
  41677. $93 = ($92|0)==(0|0);
  41678. do {
  41679. if (!($93)) {
  41680. $94 = ($92>>>0)<($88>>>0);
  41681. if ($94) {
  41682. _abort();
  41683. // unreachable;
  41684. } else {
  41685. $95 = ((($$3)) + 16|0);
  41686. HEAP32[$95>>2] = $92;
  41687. $96 = ((($92)) + 24|0);
  41688. HEAP32[$96>>2] = $$3;
  41689. break;
  41690. }
  41691. }
  41692. } while(0);
  41693. $97 = ((($91)) + 4|0);
  41694. $98 = HEAP32[$97>>2]|0;
  41695. $99 = ($98|0)==(0|0);
  41696. if ($99) {
  41697. $$1 = $16;$$1382 = $17;$113 = $16;
  41698. } else {
  41699. $100 = HEAP32[(21200)>>2]|0;
  41700. $101 = ($98>>>0)<($100>>>0);
  41701. if ($101) {
  41702. _abort();
  41703. // unreachable;
  41704. } else {
  41705. $102 = ((($$3)) + 20|0);
  41706. HEAP32[$102>>2] = $98;
  41707. $103 = ((($98)) + 24|0);
  41708. HEAP32[$103>>2] = $$3;
  41709. $$1 = $16;$$1382 = $17;$113 = $16;
  41710. break;
  41711. }
  41712. }
  41713. }
  41714. } else {
  41715. $$1 = $2;$$1382 = $9;$113 = $2;
  41716. }
  41717. } while(0);
  41718. $112 = ($113>>>0)<($10>>>0);
  41719. if (!($112)) {
  41720. _abort();
  41721. // unreachable;
  41722. }
  41723. $114 = ((($10)) + 4|0);
  41724. $115 = HEAP32[$114>>2]|0;
  41725. $116 = $115 & 1;
  41726. $117 = ($116|0)==(0);
  41727. if ($117) {
  41728. _abort();
  41729. // unreachable;
  41730. }
  41731. $118 = $115 & 2;
  41732. $119 = ($118|0)==(0);
  41733. if ($119) {
  41734. $120 = HEAP32[(21208)>>2]|0;
  41735. $121 = ($10|0)==($120|0);
  41736. $122 = HEAP32[(21204)>>2]|0;
  41737. if ($121) {
  41738. $123 = HEAP32[(21196)>>2]|0;
  41739. $124 = (($123) + ($$1382))|0;
  41740. HEAP32[(21196)>>2] = $124;
  41741. HEAP32[(21208)>>2] = $$1;
  41742. $125 = $124 | 1;
  41743. $126 = ((($$1)) + 4|0);
  41744. HEAP32[$126>>2] = $125;
  41745. $127 = ($$1|0)==($122|0);
  41746. if (!($127)) {
  41747. return;
  41748. }
  41749. HEAP32[(21204)>>2] = 0;
  41750. HEAP32[(21192)>>2] = 0;
  41751. return;
  41752. }
  41753. $128 = ($10|0)==($122|0);
  41754. if ($128) {
  41755. $129 = HEAP32[(21192)>>2]|0;
  41756. $130 = (($129) + ($$1382))|0;
  41757. HEAP32[(21192)>>2] = $130;
  41758. HEAP32[(21204)>>2] = $113;
  41759. $131 = $130 | 1;
  41760. $132 = ((($$1)) + 4|0);
  41761. HEAP32[$132>>2] = $131;
  41762. $133 = (($113) + ($130)|0);
  41763. HEAP32[$133>>2] = $130;
  41764. return;
  41765. }
  41766. $134 = $115 & -8;
  41767. $135 = (($134) + ($$1382))|0;
  41768. $136 = $115 >>> 3;
  41769. $137 = ($115>>>0)<(256);
  41770. L108: do {
  41771. if ($137) {
  41772. $138 = ((($10)) + 8|0);
  41773. $139 = HEAP32[$138>>2]|0;
  41774. $140 = ((($10)) + 12|0);
  41775. $141 = HEAP32[$140>>2]|0;
  41776. $142 = $136 << 1;
  41777. $143 = (21224 + ($142<<2)|0);
  41778. $144 = ($139|0)==($143|0);
  41779. if (!($144)) {
  41780. $145 = HEAP32[(21200)>>2]|0;
  41781. $146 = ($139>>>0)<($145>>>0);
  41782. if ($146) {
  41783. _abort();
  41784. // unreachable;
  41785. }
  41786. $147 = ((($139)) + 12|0);
  41787. $148 = HEAP32[$147>>2]|0;
  41788. $149 = ($148|0)==($10|0);
  41789. if (!($149)) {
  41790. _abort();
  41791. // unreachable;
  41792. }
  41793. }
  41794. $150 = ($141|0)==($139|0);
  41795. if ($150) {
  41796. $151 = 1 << $136;
  41797. $152 = $151 ^ -1;
  41798. $153 = HEAP32[5296]|0;
  41799. $154 = $153 & $152;
  41800. HEAP32[5296] = $154;
  41801. break;
  41802. }
  41803. $155 = ($141|0)==($143|0);
  41804. if ($155) {
  41805. $$pre442 = ((($141)) + 8|0);
  41806. $$pre$phi443Z2D = $$pre442;
  41807. } else {
  41808. $156 = HEAP32[(21200)>>2]|0;
  41809. $157 = ($141>>>0)<($156>>>0);
  41810. if ($157) {
  41811. _abort();
  41812. // unreachable;
  41813. }
  41814. $158 = ((($141)) + 8|0);
  41815. $159 = HEAP32[$158>>2]|0;
  41816. $160 = ($159|0)==($10|0);
  41817. if ($160) {
  41818. $$pre$phi443Z2D = $158;
  41819. } else {
  41820. _abort();
  41821. // unreachable;
  41822. }
  41823. }
  41824. $161 = ((($139)) + 12|0);
  41825. HEAP32[$161>>2] = $141;
  41826. HEAP32[$$pre$phi443Z2D>>2] = $139;
  41827. } else {
  41828. $162 = ((($10)) + 24|0);
  41829. $163 = HEAP32[$162>>2]|0;
  41830. $164 = ((($10)) + 12|0);
  41831. $165 = HEAP32[$164>>2]|0;
  41832. $166 = ($165|0)==($10|0);
  41833. do {
  41834. if ($166) {
  41835. $177 = ((($10)) + 16|0);
  41836. $178 = ((($177)) + 4|0);
  41837. $179 = HEAP32[$178>>2]|0;
  41838. $180 = ($179|0)==(0|0);
  41839. if ($180) {
  41840. $181 = HEAP32[$177>>2]|0;
  41841. $182 = ($181|0)==(0|0);
  41842. if ($182) {
  41843. $$3400 = 0;
  41844. break;
  41845. } else {
  41846. $$1398 = $181;$$1402 = $177;
  41847. }
  41848. } else {
  41849. $$1398 = $179;$$1402 = $178;
  41850. }
  41851. while(1) {
  41852. $183 = ((($$1398)) + 20|0);
  41853. $184 = HEAP32[$183>>2]|0;
  41854. $185 = ($184|0)==(0|0);
  41855. if (!($185)) {
  41856. $$1398 = $184;$$1402 = $183;
  41857. continue;
  41858. }
  41859. $186 = ((($$1398)) + 16|0);
  41860. $187 = HEAP32[$186>>2]|0;
  41861. $188 = ($187|0)==(0|0);
  41862. if ($188) {
  41863. break;
  41864. } else {
  41865. $$1398 = $187;$$1402 = $186;
  41866. }
  41867. }
  41868. $189 = HEAP32[(21200)>>2]|0;
  41869. $190 = ($$1402>>>0)<($189>>>0);
  41870. if ($190) {
  41871. _abort();
  41872. // unreachable;
  41873. } else {
  41874. HEAP32[$$1402>>2] = 0;
  41875. $$3400 = $$1398;
  41876. break;
  41877. }
  41878. } else {
  41879. $167 = ((($10)) + 8|0);
  41880. $168 = HEAP32[$167>>2]|0;
  41881. $169 = HEAP32[(21200)>>2]|0;
  41882. $170 = ($168>>>0)<($169>>>0);
  41883. if ($170) {
  41884. _abort();
  41885. // unreachable;
  41886. }
  41887. $171 = ((($168)) + 12|0);
  41888. $172 = HEAP32[$171>>2]|0;
  41889. $173 = ($172|0)==($10|0);
  41890. if (!($173)) {
  41891. _abort();
  41892. // unreachable;
  41893. }
  41894. $174 = ((($165)) + 8|0);
  41895. $175 = HEAP32[$174>>2]|0;
  41896. $176 = ($175|0)==($10|0);
  41897. if ($176) {
  41898. HEAP32[$171>>2] = $165;
  41899. HEAP32[$174>>2] = $168;
  41900. $$3400 = $165;
  41901. break;
  41902. } else {
  41903. _abort();
  41904. // unreachable;
  41905. }
  41906. }
  41907. } while(0);
  41908. $191 = ($163|0)==(0|0);
  41909. if (!($191)) {
  41910. $192 = ((($10)) + 28|0);
  41911. $193 = HEAP32[$192>>2]|0;
  41912. $194 = (21488 + ($193<<2)|0);
  41913. $195 = HEAP32[$194>>2]|0;
  41914. $196 = ($10|0)==($195|0);
  41915. do {
  41916. if ($196) {
  41917. HEAP32[$194>>2] = $$3400;
  41918. $cond422 = ($$3400|0)==(0|0);
  41919. if ($cond422) {
  41920. $197 = 1 << $193;
  41921. $198 = $197 ^ -1;
  41922. $199 = HEAP32[(21188)>>2]|0;
  41923. $200 = $199 & $198;
  41924. HEAP32[(21188)>>2] = $200;
  41925. break L108;
  41926. }
  41927. } else {
  41928. $201 = HEAP32[(21200)>>2]|0;
  41929. $202 = ($163>>>0)<($201>>>0);
  41930. if ($202) {
  41931. _abort();
  41932. // unreachable;
  41933. } else {
  41934. $203 = ((($163)) + 16|0);
  41935. $204 = HEAP32[$203>>2]|0;
  41936. $not$ = ($204|0)!=($10|0);
  41937. $$sink5 = $not$&1;
  41938. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  41939. HEAP32[$205>>2] = $$3400;
  41940. $206 = ($$3400|0)==(0|0);
  41941. if ($206) {
  41942. break L108;
  41943. } else {
  41944. break;
  41945. }
  41946. }
  41947. }
  41948. } while(0);
  41949. $207 = HEAP32[(21200)>>2]|0;
  41950. $208 = ($$3400>>>0)<($207>>>0);
  41951. if ($208) {
  41952. _abort();
  41953. // unreachable;
  41954. }
  41955. $209 = ((($$3400)) + 24|0);
  41956. HEAP32[$209>>2] = $163;
  41957. $210 = ((($10)) + 16|0);
  41958. $211 = HEAP32[$210>>2]|0;
  41959. $212 = ($211|0)==(0|0);
  41960. do {
  41961. if (!($212)) {
  41962. $213 = ($211>>>0)<($207>>>0);
  41963. if ($213) {
  41964. _abort();
  41965. // unreachable;
  41966. } else {
  41967. $214 = ((($$3400)) + 16|0);
  41968. HEAP32[$214>>2] = $211;
  41969. $215 = ((($211)) + 24|0);
  41970. HEAP32[$215>>2] = $$3400;
  41971. break;
  41972. }
  41973. }
  41974. } while(0);
  41975. $216 = ((($210)) + 4|0);
  41976. $217 = HEAP32[$216>>2]|0;
  41977. $218 = ($217|0)==(0|0);
  41978. if (!($218)) {
  41979. $219 = HEAP32[(21200)>>2]|0;
  41980. $220 = ($217>>>0)<($219>>>0);
  41981. if ($220) {
  41982. _abort();
  41983. // unreachable;
  41984. } else {
  41985. $221 = ((($$3400)) + 20|0);
  41986. HEAP32[$221>>2] = $217;
  41987. $222 = ((($217)) + 24|0);
  41988. HEAP32[$222>>2] = $$3400;
  41989. break;
  41990. }
  41991. }
  41992. }
  41993. }
  41994. } while(0);
  41995. $223 = $135 | 1;
  41996. $224 = ((($$1)) + 4|0);
  41997. HEAP32[$224>>2] = $223;
  41998. $225 = (($113) + ($135)|0);
  41999. HEAP32[$225>>2] = $135;
  42000. $226 = HEAP32[(21204)>>2]|0;
  42001. $227 = ($$1|0)==($226|0);
  42002. if ($227) {
  42003. HEAP32[(21192)>>2] = $135;
  42004. return;
  42005. } else {
  42006. $$2 = $135;
  42007. }
  42008. } else {
  42009. $228 = $115 & -2;
  42010. HEAP32[$114>>2] = $228;
  42011. $229 = $$1382 | 1;
  42012. $230 = ((($$1)) + 4|0);
  42013. HEAP32[$230>>2] = $229;
  42014. $231 = (($113) + ($$1382)|0);
  42015. HEAP32[$231>>2] = $$1382;
  42016. $$2 = $$1382;
  42017. }
  42018. $232 = $$2 >>> 3;
  42019. $233 = ($$2>>>0)<(256);
  42020. if ($233) {
  42021. $234 = $232 << 1;
  42022. $235 = (21224 + ($234<<2)|0);
  42023. $236 = HEAP32[5296]|0;
  42024. $237 = 1 << $232;
  42025. $238 = $236 & $237;
  42026. $239 = ($238|0)==(0);
  42027. if ($239) {
  42028. $240 = $236 | $237;
  42029. HEAP32[5296] = $240;
  42030. $$pre = ((($235)) + 8|0);
  42031. $$0403 = $235;$$pre$phiZ2D = $$pre;
  42032. } else {
  42033. $241 = ((($235)) + 8|0);
  42034. $242 = HEAP32[$241>>2]|0;
  42035. $243 = HEAP32[(21200)>>2]|0;
  42036. $244 = ($242>>>0)<($243>>>0);
  42037. if ($244) {
  42038. _abort();
  42039. // unreachable;
  42040. } else {
  42041. $$0403 = $242;$$pre$phiZ2D = $241;
  42042. }
  42043. }
  42044. HEAP32[$$pre$phiZ2D>>2] = $$1;
  42045. $245 = ((($$0403)) + 12|0);
  42046. HEAP32[$245>>2] = $$1;
  42047. $246 = ((($$1)) + 8|0);
  42048. HEAP32[$246>>2] = $$0403;
  42049. $247 = ((($$1)) + 12|0);
  42050. HEAP32[$247>>2] = $235;
  42051. return;
  42052. }
  42053. $248 = $$2 >>> 8;
  42054. $249 = ($248|0)==(0);
  42055. if ($249) {
  42056. $$0396 = 0;
  42057. } else {
  42058. $250 = ($$2>>>0)>(16777215);
  42059. if ($250) {
  42060. $$0396 = 31;
  42061. } else {
  42062. $251 = (($248) + 1048320)|0;
  42063. $252 = $251 >>> 16;
  42064. $253 = $252 & 8;
  42065. $254 = $248 << $253;
  42066. $255 = (($254) + 520192)|0;
  42067. $256 = $255 >>> 16;
  42068. $257 = $256 & 4;
  42069. $258 = $257 | $253;
  42070. $259 = $254 << $257;
  42071. $260 = (($259) + 245760)|0;
  42072. $261 = $260 >>> 16;
  42073. $262 = $261 & 2;
  42074. $263 = $258 | $262;
  42075. $264 = (14 - ($263))|0;
  42076. $265 = $259 << $262;
  42077. $266 = $265 >>> 15;
  42078. $267 = (($264) + ($266))|0;
  42079. $268 = $267 << 1;
  42080. $269 = (($267) + 7)|0;
  42081. $270 = $$2 >>> $269;
  42082. $271 = $270 & 1;
  42083. $272 = $271 | $268;
  42084. $$0396 = $272;
  42085. }
  42086. }
  42087. $273 = (21488 + ($$0396<<2)|0);
  42088. $274 = ((($$1)) + 28|0);
  42089. HEAP32[$274>>2] = $$0396;
  42090. $275 = ((($$1)) + 16|0);
  42091. $276 = ((($$1)) + 20|0);
  42092. HEAP32[$276>>2] = 0;
  42093. HEAP32[$275>>2] = 0;
  42094. $277 = HEAP32[(21188)>>2]|0;
  42095. $278 = 1 << $$0396;
  42096. $279 = $277 & $278;
  42097. $280 = ($279|0)==(0);
  42098. do {
  42099. if ($280) {
  42100. $281 = $277 | $278;
  42101. HEAP32[(21188)>>2] = $281;
  42102. HEAP32[$273>>2] = $$1;
  42103. $282 = ((($$1)) + 24|0);
  42104. HEAP32[$282>>2] = $273;
  42105. $283 = ((($$1)) + 12|0);
  42106. HEAP32[$283>>2] = $$1;
  42107. $284 = ((($$1)) + 8|0);
  42108. HEAP32[$284>>2] = $$1;
  42109. } else {
  42110. $285 = HEAP32[$273>>2]|0;
  42111. $286 = ($$0396|0)==(31);
  42112. $287 = $$0396 >>> 1;
  42113. $288 = (25 - ($287))|0;
  42114. $289 = $286 ? 0 : $288;
  42115. $290 = $$2 << $289;
  42116. $$0383 = $290;$$0384 = $285;
  42117. while(1) {
  42118. $291 = ((($$0384)) + 4|0);
  42119. $292 = HEAP32[$291>>2]|0;
  42120. $293 = $292 & -8;
  42121. $294 = ($293|0)==($$2|0);
  42122. if ($294) {
  42123. label = 124;
  42124. break;
  42125. }
  42126. $295 = $$0383 >>> 31;
  42127. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  42128. $297 = $$0383 << 1;
  42129. $298 = HEAP32[$296>>2]|0;
  42130. $299 = ($298|0)==(0|0);
  42131. if ($299) {
  42132. label = 121;
  42133. break;
  42134. } else {
  42135. $$0383 = $297;$$0384 = $298;
  42136. }
  42137. }
  42138. if ((label|0) == 121) {
  42139. $300 = HEAP32[(21200)>>2]|0;
  42140. $301 = ($296>>>0)<($300>>>0);
  42141. if ($301) {
  42142. _abort();
  42143. // unreachable;
  42144. } else {
  42145. HEAP32[$296>>2] = $$1;
  42146. $302 = ((($$1)) + 24|0);
  42147. HEAP32[$302>>2] = $$0384;
  42148. $303 = ((($$1)) + 12|0);
  42149. HEAP32[$303>>2] = $$1;
  42150. $304 = ((($$1)) + 8|0);
  42151. HEAP32[$304>>2] = $$1;
  42152. break;
  42153. }
  42154. }
  42155. else if ((label|0) == 124) {
  42156. $305 = ((($$0384)) + 8|0);
  42157. $306 = HEAP32[$305>>2]|0;
  42158. $307 = HEAP32[(21200)>>2]|0;
  42159. $308 = ($306>>>0)>=($307>>>0);
  42160. $not$437 = ($$0384>>>0)>=($307>>>0);
  42161. $309 = $308 & $not$437;
  42162. if ($309) {
  42163. $310 = ((($306)) + 12|0);
  42164. HEAP32[$310>>2] = $$1;
  42165. HEAP32[$305>>2] = $$1;
  42166. $311 = ((($$1)) + 8|0);
  42167. HEAP32[$311>>2] = $306;
  42168. $312 = ((($$1)) + 12|0);
  42169. HEAP32[$312>>2] = $$0384;
  42170. $313 = ((($$1)) + 24|0);
  42171. HEAP32[$313>>2] = 0;
  42172. break;
  42173. } else {
  42174. _abort();
  42175. // unreachable;
  42176. }
  42177. }
  42178. }
  42179. } while(0);
  42180. $314 = HEAP32[(21216)>>2]|0;
  42181. $315 = (($314) + -1)|0;
  42182. HEAP32[(21216)>>2] = $315;
  42183. $316 = ($315|0)==(0);
  42184. if ($316) {
  42185. $$0212$in$i = (21640);
  42186. } else {
  42187. return;
  42188. }
  42189. while(1) {
  42190. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  42191. $317 = ($$0212$i|0)==(0|0);
  42192. $318 = ((($$0212$i)) + 8|0);
  42193. if ($317) {
  42194. break;
  42195. } else {
  42196. $$0212$in$i = $318;
  42197. }
  42198. }
  42199. HEAP32[(21216)>>2] = -1;
  42200. return;
  42201. }
  42202. function _realloc($0,$1) {
  42203. $0 = $0|0;
  42204. $1 = $1|0;
  42205. 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;
  42206. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  42207. sp = STACKTOP;
  42208. $2 = ($0|0)==(0|0);
  42209. if ($2) {
  42210. $3 = (_malloc($1)|0);
  42211. $$1 = $3;
  42212. return ($$1|0);
  42213. }
  42214. $4 = ($1>>>0)>(4294967231);
  42215. if ($4) {
  42216. $5 = (___errno_location()|0);
  42217. HEAP32[$5>>2] = 12;
  42218. $$1 = 0;
  42219. return ($$1|0);
  42220. }
  42221. $6 = ($1>>>0)<(11);
  42222. $7 = (($1) + 11)|0;
  42223. $8 = $7 & -8;
  42224. $9 = $6 ? 16 : $8;
  42225. $10 = ((($0)) + -8|0);
  42226. $11 = (_try_realloc_chunk($10,$9)|0);
  42227. $12 = ($11|0)==(0|0);
  42228. if (!($12)) {
  42229. $13 = ((($11)) + 8|0);
  42230. $$1 = $13;
  42231. return ($$1|0);
  42232. }
  42233. $14 = (_malloc($1)|0);
  42234. $15 = ($14|0)==(0|0);
  42235. if ($15) {
  42236. $$1 = 0;
  42237. return ($$1|0);
  42238. }
  42239. $16 = ((($0)) + -4|0);
  42240. $17 = HEAP32[$16>>2]|0;
  42241. $18 = $17 & -8;
  42242. $19 = $17 & 3;
  42243. $20 = ($19|0)==(0);
  42244. $21 = $20 ? 8 : 4;
  42245. $22 = (($18) - ($21))|0;
  42246. $23 = ($22>>>0)<($1>>>0);
  42247. $24 = $23 ? $22 : $1;
  42248. _memcpy(($14|0),($0|0),($24|0))|0;
  42249. _free($0);
  42250. $$1 = $14;
  42251. return ($$1|0);
  42252. }
  42253. function _try_realloc_chunk($0,$1) {
  42254. $0 = $0|0;
  42255. $1 = $1|0;
  42256. 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;
  42257. 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;
  42258. 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;
  42259. 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;
  42260. 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;
  42261. 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;
  42262. 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;
  42263. 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;
  42264. 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;
  42265. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  42266. sp = STACKTOP;
  42267. $2 = ((($0)) + 4|0);
  42268. $3 = HEAP32[$2>>2]|0;
  42269. $4 = $3 & -8;
  42270. $5 = (($0) + ($4)|0);
  42271. $6 = HEAP32[(21200)>>2]|0;
  42272. $7 = $3 & 3;
  42273. $notlhs = ($0>>>0)>=($6>>>0);
  42274. $notrhs = ($7|0)!=(1);
  42275. $or$cond$not = $notrhs & $notlhs;
  42276. $8 = ($0>>>0)<($5>>>0);
  42277. $or$cond3 = $or$cond$not & $8;
  42278. if (!($or$cond3)) {
  42279. _abort();
  42280. // unreachable;
  42281. }
  42282. $9 = ((($5)) + 4|0);
  42283. $10 = HEAP32[$9>>2]|0;
  42284. $11 = $10 & 1;
  42285. $12 = ($11|0)==(0);
  42286. if ($12) {
  42287. _abort();
  42288. // unreachable;
  42289. }
  42290. $13 = ($7|0)==(0);
  42291. if ($13) {
  42292. $14 = ($1>>>0)<(256);
  42293. if ($14) {
  42294. $$2 = 0;
  42295. return ($$2|0);
  42296. }
  42297. $15 = (($1) + 4)|0;
  42298. $16 = ($4>>>0)<($15>>>0);
  42299. if (!($16)) {
  42300. $17 = (($4) - ($1))|0;
  42301. $18 = HEAP32[(21664)>>2]|0;
  42302. $19 = $18 << 1;
  42303. $20 = ($17>>>0)>($19>>>0);
  42304. if (!($20)) {
  42305. $$2 = $0;
  42306. return ($$2|0);
  42307. }
  42308. }
  42309. $$2 = 0;
  42310. return ($$2|0);
  42311. }
  42312. $21 = ($4>>>0)<($1>>>0);
  42313. if (!($21)) {
  42314. $22 = (($4) - ($1))|0;
  42315. $23 = ($22>>>0)>(15);
  42316. if (!($23)) {
  42317. $$2 = $0;
  42318. return ($$2|0);
  42319. }
  42320. $24 = (($0) + ($1)|0);
  42321. $25 = $3 & 1;
  42322. $26 = $25 | $1;
  42323. $27 = $26 | 2;
  42324. HEAP32[$2>>2] = $27;
  42325. $28 = ((($24)) + 4|0);
  42326. $29 = $22 | 3;
  42327. HEAP32[$28>>2] = $29;
  42328. $30 = (($24) + ($22)|0);
  42329. $31 = ((($30)) + 4|0);
  42330. $32 = HEAP32[$31>>2]|0;
  42331. $33 = $32 | 1;
  42332. HEAP32[$31>>2] = $33;
  42333. _dispose_chunk($24,$22);
  42334. $$2 = $0;
  42335. return ($$2|0);
  42336. }
  42337. $34 = HEAP32[(21208)>>2]|0;
  42338. $35 = ($5|0)==($34|0);
  42339. if ($35) {
  42340. $36 = HEAP32[(21196)>>2]|0;
  42341. $37 = (($36) + ($4))|0;
  42342. $38 = ($37>>>0)>($1>>>0);
  42343. $39 = (($37) - ($1))|0;
  42344. $40 = (($0) + ($1)|0);
  42345. if (!($38)) {
  42346. $$2 = 0;
  42347. return ($$2|0);
  42348. }
  42349. $41 = $39 | 1;
  42350. $42 = ((($40)) + 4|0);
  42351. $43 = $3 & 1;
  42352. $44 = $43 | $1;
  42353. $45 = $44 | 2;
  42354. HEAP32[$2>>2] = $45;
  42355. HEAP32[$42>>2] = $41;
  42356. HEAP32[(21208)>>2] = $40;
  42357. HEAP32[(21196)>>2] = $39;
  42358. $$2 = $0;
  42359. return ($$2|0);
  42360. }
  42361. $46 = HEAP32[(21204)>>2]|0;
  42362. $47 = ($5|0)==($46|0);
  42363. if ($47) {
  42364. $48 = HEAP32[(21192)>>2]|0;
  42365. $49 = (($48) + ($4))|0;
  42366. $50 = ($49>>>0)<($1>>>0);
  42367. if ($50) {
  42368. $$2 = 0;
  42369. return ($$2|0);
  42370. }
  42371. $51 = (($49) - ($1))|0;
  42372. $52 = ($51>>>0)>(15);
  42373. $53 = $3 & 1;
  42374. if ($52) {
  42375. $54 = (($0) + ($1)|0);
  42376. $55 = (($54) + ($51)|0);
  42377. $56 = $53 | $1;
  42378. $57 = $56 | 2;
  42379. HEAP32[$2>>2] = $57;
  42380. $58 = ((($54)) + 4|0);
  42381. $59 = $51 | 1;
  42382. HEAP32[$58>>2] = $59;
  42383. HEAP32[$55>>2] = $51;
  42384. $60 = ((($55)) + 4|0);
  42385. $61 = HEAP32[$60>>2]|0;
  42386. $62 = $61 & -2;
  42387. HEAP32[$60>>2] = $62;
  42388. $storemerge = $54;$storemerge1 = $51;
  42389. } else {
  42390. $63 = $53 | $49;
  42391. $64 = $63 | 2;
  42392. HEAP32[$2>>2] = $64;
  42393. $65 = (($0) + ($49)|0);
  42394. $66 = ((($65)) + 4|0);
  42395. $67 = HEAP32[$66>>2]|0;
  42396. $68 = $67 | 1;
  42397. HEAP32[$66>>2] = $68;
  42398. $storemerge = 0;$storemerge1 = 0;
  42399. }
  42400. HEAP32[(21192)>>2] = $storemerge1;
  42401. HEAP32[(21204)>>2] = $storemerge;
  42402. $$2 = $0;
  42403. return ($$2|0);
  42404. }
  42405. $69 = $10 & 2;
  42406. $70 = ($69|0)==(0);
  42407. if (!($70)) {
  42408. $$2 = 0;
  42409. return ($$2|0);
  42410. }
  42411. $71 = $10 & -8;
  42412. $72 = (($71) + ($4))|0;
  42413. $73 = ($72>>>0)<($1>>>0);
  42414. if ($73) {
  42415. $$2 = 0;
  42416. return ($$2|0);
  42417. }
  42418. $74 = (($72) - ($1))|0;
  42419. $75 = $10 >>> 3;
  42420. $76 = ($10>>>0)<(256);
  42421. L49: do {
  42422. if ($76) {
  42423. $77 = ((($5)) + 8|0);
  42424. $78 = HEAP32[$77>>2]|0;
  42425. $79 = ((($5)) + 12|0);
  42426. $80 = HEAP32[$79>>2]|0;
  42427. $81 = $75 << 1;
  42428. $82 = (21224 + ($81<<2)|0);
  42429. $83 = ($78|0)==($82|0);
  42430. if (!($83)) {
  42431. $84 = ($78>>>0)<($6>>>0);
  42432. if ($84) {
  42433. _abort();
  42434. // unreachable;
  42435. }
  42436. $85 = ((($78)) + 12|0);
  42437. $86 = HEAP32[$85>>2]|0;
  42438. $87 = ($86|0)==($5|0);
  42439. if (!($87)) {
  42440. _abort();
  42441. // unreachable;
  42442. }
  42443. }
  42444. $88 = ($80|0)==($78|0);
  42445. if ($88) {
  42446. $89 = 1 << $75;
  42447. $90 = $89 ^ -1;
  42448. $91 = HEAP32[5296]|0;
  42449. $92 = $91 & $90;
  42450. HEAP32[5296] = $92;
  42451. break;
  42452. }
  42453. $93 = ($80|0)==($82|0);
  42454. if ($93) {
  42455. $$pre = ((($80)) + 8|0);
  42456. $$pre$phiZ2D = $$pre;
  42457. } else {
  42458. $94 = ($80>>>0)<($6>>>0);
  42459. if ($94) {
  42460. _abort();
  42461. // unreachable;
  42462. }
  42463. $95 = ((($80)) + 8|0);
  42464. $96 = HEAP32[$95>>2]|0;
  42465. $97 = ($96|0)==($5|0);
  42466. if ($97) {
  42467. $$pre$phiZ2D = $95;
  42468. } else {
  42469. _abort();
  42470. // unreachable;
  42471. }
  42472. }
  42473. $98 = ((($78)) + 12|0);
  42474. HEAP32[$98>>2] = $80;
  42475. HEAP32[$$pre$phiZ2D>>2] = $78;
  42476. } else {
  42477. $99 = ((($5)) + 24|0);
  42478. $100 = HEAP32[$99>>2]|0;
  42479. $101 = ((($5)) + 12|0);
  42480. $102 = HEAP32[$101>>2]|0;
  42481. $103 = ($102|0)==($5|0);
  42482. do {
  42483. if ($103) {
  42484. $113 = ((($5)) + 16|0);
  42485. $114 = ((($113)) + 4|0);
  42486. $115 = HEAP32[$114>>2]|0;
  42487. $116 = ($115|0)==(0|0);
  42488. if ($116) {
  42489. $117 = HEAP32[$113>>2]|0;
  42490. $118 = ($117|0)==(0|0);
  42491. if ($118) {
  42492. $$3 = 0;
  42493. break;
  42494. } else {
  42495. $$1272 = $117;$$1275 = $113;
  42496. }
  42497. } else {
  42498. $$1272 = $115;$$1275 = $114;
  42499. }
  42500. while(1) {
  42501. $119 = ((($$1272)) + 20|0);
  42502. $120 = HEAP32[$119>>2]|0;
  42503. $121 = ($120|0)==(0|0);
  42504. if (!($121)) {
  42505. $$1272 = $120;$$1275 = $119;
  42506. continue;
  42507. }
  42508. $122 = ((($$1272)) + 16|0);
  42509. $123 = HEAP32[$122>>2]|0;
  42510. $124 = ($123|0)==(0|0);
  42511. if ($124) {
  42512. break;
  42513. } else {
  42514. $$1272 = $123;$$1275 = $122;
  42515. }
  42516. }
  42517. $125 = ($$1275>>>0)<($6>>>0);
  42518. if ($125) {
  42519. _abort();
  42520. // unreachable;
  42521. } else {
  42522. HEAP32[$$1275>>2] = 0;
  42523. $$3 = $$1272;
  42524. break;
  42525. }
  42526. } else {
  42527. $104 = ((($5)) + 8|0);
  42528. $105 = HEAP32[$104>>2]|0;
  42529. $106 = ($105>>>0)<($6>>>0);
  42530. if ($106) {
  42531. _abort();
  42532. // unreachable;
  42533. }
  42534. $107 = ((($105)) + 12|0);
  42535. $108 = HEAP32[$107>>2]|0;
  42536. $109 = ($108|0)==($5|0);
  42537. if (!($109)) {
  42538. _abort();
  42539. // unreachable;
  42540. }
  42541. $110 = ((($102)) + 8|0);
  42542. $111 = HEAP32[$110>>2]|0;
  42543. $112 = ($111|0)==($5|0);
  42544. if ($112) {
  42545. HEAP32[$107>>2] = $102;
  42546. HEAP32[$110>>2] = $105;
  42547. $$3 = $102;
  42548. break;
  42549. } else {
  42550. _abort();
  42551. // unreachable;
  42552. }
  42553. }
  42554. } while(0);
  42555. $126 = ($100|0)==(0|0);
  42556. if (!($126)) {
  42557. $127 = ((($5)) + 28|0);
  42558. $128 = HEAP32[$127>>2]|0;
  42559. $129 = (21488 + ($128<<2)|0);
  42560. $130 = HEAP32[$129>>2]|0;
  42561. $131 = ($5|0)==($130|0);
  42562. do {
  42563. if ($131) {
  42564. HEAP32[$129>>2] = $$3;
  42565. $cond = ($$3|0)==(0|0);
  42566. if ($cond) {
  42567. $132 = 1 << $128;
  42568. $133 = $132 ^ -1;
  42569. $134 = HEAP32[(21188)>>2]|0;
  42570. $135 = $134 & $133;
  42571. HEAP32[(21188)>>2] = $135;
  42572. break L49;
  42573. }
  42574. } else {
  42575. $136 = HEAP32[(21200)>>2]|0;
  42576. $137 = ($100>>>0)<($136>>>0);
  42577. if ($137) {
  42578. _abort();
  42579. // unreachable;
  42580. } else {
  42581. $138 = ((($100)) + 16|0);
  42582. $139 = HEAP32[$138>>2]|0;
  42583. $not$ = ($139|0)!=($5|0);
  42584. $$sink1 = $not$&1;
  42585. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  42586. HEAP32[$140>>2] = $$3;
  42587. $141 = ($$3|0)==(0|0);
  42588. if ($141) {
  42589. break L49;
  42590. } else {
  42591. break;
  42592. }
  42593. }
  42594. }
  42595. } while(0);
  42596. $142 = HEAP32[(21200)>>2]|0;
  42597. $143 = ($$3>>>0)<($142>>>0);
  42598. if ($143) {
  42599. _abort();
  42600. // unreachable;
  42601. }
  42602. $144 = ((($$3)) + 24|0);
  42603. HEAP32[$144>>2] = $100;
  42604. $145 = ((($5)) + 16|0);
  42605. $146 = HEAP32[$145>>2]|0;
  42606. $147 = ($146|0)==(0|0);
  42607. do {
  42608. if (!($147)) {
  42609. $148 = ($146>>>0)<($142>>>0);
  42610. if ($148) {
  42611. _abort();
  42612. // unreachable;
  42613. } else {
  42614. $149 = ((($$3)) + 16|0);
  42615. HEAP32[$149>>2] = $146;
  42616. $150 = ((($146)) + 24|0);
  42617. HEAP32[$150>>2] = $$3;
  42618. break;
  42619. }
  42620. }
  42621. } while(0);
  42622. $151 = ((($145)) + 4|0);
  42623. $152 = HEAP32[$151>>2]|0;
  42624. $153 = ($152|0)==(0|0);
  42625. if (!($153)) {
  42626. $154 = HEAP32[(21200)>>2]|0;
  42627. $155 = ($152>>>0)<($154>>>0);
  42628. if ($155) {
  42629. _abort();
  42630. // unreachable;
  42631. } else {
  42632. $156 = ((($$3)) + 20|0);
  42633. HEAP32[$156>>2] = $152;
  42634. $157 = ((($152)) + 24|0);
  42635. HEAP32[$157>>2] = $$3;
  42636. break;
  42637. }
  42638. }
  42639. }
  42640. }
  42641. } while(0);
  42642. $158 = ($74>>>0)<(16);
  42643. $159 = $3 & 1;
  42644. if ($158) {
  42645. $160 = $72 | $159;
  42646. $161 = $160 | 2;
  42647. HEAP32[$2>>2] = $161;
  42648. $162 = (($0) + ($72)|0);
  42649. $163 = ((($162)) + 4|0);
  42650. $164 = HEAP32[$163>>2]|0;
  42651. $165 = $164 | 1;
  42652. HEAP32[$163>>2] = $165;
  42653. $$2 = $0;
  42654. return ($$2|0);
  42655. } else {
  42656. $166 = (($0) + ($1)|0);
  42657. $167 = $159 | $1;
  42658. $168 = $167 | 2;
  42659. HEAP32[$2>>2] = $168;
  42660. $169 = ((($166)) + 4|0);
  42661. $170 = $74 | 3;
  42662. HEAP32[$169>>2] = $170;
  42663. $171 = (($166) + ($74)|0);
  42664. $172 = ((($171)) + 4|0);
  42665. $173 = HEAP32[$172>>2]|0;
  42666. $174 = $173 | 1;
  42667. HEAP32[$172>>2] = $174;
  42668. _dispose_chunk($166,$74);
  42669. $$2 = $0;
  42670. return ($$2|0);
  42671. }
  42672. return (0)|0;
  42673. }
  42674. function _dispose_chunk($0,$1) {
  42675. $0 = $0|0;
  42676. $1 = $1|0;
  42677. 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;
  42678. 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;
  42679. 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;
  42680. 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;
  42681. 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;
  42682. 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;
  42683. 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;
  42684. 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;
  42685. 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;
  42686. 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;
  42687. 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;
  42688. 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;
  42689. 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;
  42690. 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;
  42691. 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;
  42692. 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;
  42693. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  42694. sp = STACKTOP;
  42695. $2 = (($0) + ($1)|0);
  42696. $3 = ((($0)) + 4|0);
  42697. $4 = HEAP32[$3>>2]|0;
  42698. $5 = $4 & 1;
  42699. $6 = ($5|0)==(0);
  42700. L1: do {
  42701. if ($6) {
  42702. $7 = HEAP32[$0>>2]|0;
  42703. $8 = $4 & 3;
  42704. $9 = ($8|0)==(0);
  42705. if ($9) {
  42706. return;
  42707. }
  42708. $10 = (0 - ($7))|0;
  42709. $11 = (($0) + ($10)|0);
  42710. $12 = (($7) + ($1))|0;
  42711. $13 = HEAP32[(21200)>>2]|0;
  42712. $14 = ($11>>>0)<($13>>>0);
  42713. if ($14) {
  42714. _abort();
  42715. // unreachable;
  42716. }
  42717. $15 = HEAP32[(21204)>>2]|0;
  42718. $16 = ($11|0)==($15|0);
  42719. if ($16) {
  42720. $100 = ((($2)) + 4|0);
  42721. $101 = HEAP32[$100>>2]|0;
  42722. $102 = $101 & 3;
  42723. $103 = ($102|0)==(3);
  42724. if (!($103)) {
  42725. $$1 = $11;$$1418 = $12;
  42726. break;
  42727. }
  42728. $104 = (($11) + ($12)|0);
  42729. $105 = ((($11)) + 4|0);
  42730. $106 = $12 | 1;
  42731. $107 = $101 & -2;
  42732. HEAP32[(21192)>>2] = $12;
  42733. HEAP32[$100>>2] = $107;
  42734. HEAP32[$105>>2] = $106;
  42735. HEAP32[$104>>2] = $12;
  42736. return;
  42737. }
  42738. $17 = $7 >>> 3;
  42739. $18 = ($7>>>0)<(256);
  42740. if ($18) {
  42741. $19 = ((($11)) + 8|0);
  42742. $20 = HEAP32[$19>>2]|0;
  42743. $21 = ((($11)) + 12|0);
  42744. $22 = HEAP32[$21>>2]|0;
  42745. $23 = $17 << 1;
  42746. $24 = (21224 + ($23<<2)|0);
  42747. $25 = ($20|0)==($24|0);
  42748. if (!($25)) {
  42749. $26 = ($20>>>0)<($13>>>0);
  42750. if ($26) {
  42751. _abort();
  42752. // unreachable;
  42753. }
  42754. $27 = ((($20)) + 12|0);
  42755. $28 = HEAP32[$27>>2]|0;
  42756. $29 = ($28|0)==($11|0);
  42757. if (!($29)) {
  42758. _abort();
  42759. // unreachable;
  42760. }
  42761. }
  42762. $30 = ($22|0)==($20|0);
  42763. if ($30) {
  42764. $31 = 1 << $17;
  42765. $32 = $31 ^ -1;
  42766. $33 = HEAP32[5296]|0;
  42767. $34 = $33 & $32;
  42768. HEAP32[5296] = $34;
  42769. $$1 = $11;$$1418 = $12;
  42770. break;
  42771. }
  42772. $35 = ($22|0)==($24|0);
  42773. if ($35) {
  42774. $$pre25 = ((($22)) + 8|0);
  42775. $$pre$phi26Z2D = $$pre25;
  42776. } else {
  42777. $36 = ($22>>>0)<($13>>>0);
  42778. if ($36) {
  42779. _abort();
  42780. // unreachable;
  42781. }
  42782. $37 = ((($22)) + 8|0);
  42783. $38 = HEAP32[$37>>2]|0;
  42784. $39 = ($38|0)==($11|0);
  42785. if ($39) {
  42786. $$pre$phi26Z2D = $37;
  42787. } else {
  42788. _abort();
  42789. // unreachable;
  42790. }
  42791. }
  42792. $40 = ((($20)) + 12|0);
  42793. HEAP32[$40>>2] = $22;
  42794. HEAP32[$$pre$phi26Z2D>>2] = $20;
  42795. $$1 = $11;$$1418 = $12;
  42796. break;
  42797. }
  42798. $41 = ((($11)) + 24|0);
  42799. $42 = HEAP32[$41>>2]|0;
  42800. $43 = ((($11)) + 12|0);
  42801. $44 = HEAP32[$43>>2]|0;
  42802. $45 = ($44|0)==($11|0);
  42803. do {
  42804. if ($45) {
  42805. $55 = ((($11)) + 16|0);
  42806. $56 = ((($55)) + 4|0);
  42807. $57 = HEAP32[$56>>2]|0;
  42808. $58 = ($57|0)==(0|0);
  42809. if ($58) {
  42810. $59 = HEAP32[$55>>2]|0;
  42811. $60 = ($59|0)==(0|0);
  42812. if ($60) {
  42813. $$3 = 0;
  42814. break;
  42815. } else {
  42816. $$1426 = $59;$$1429 = $55;
  42817. }
  42818. } else {
  42819. $$1426 = $57;$$1429 = $56;
  42820. }
  42821. while(1) {
  42822. $61 = ((($$1426)) + 20|0);
  42823. $62 = HEAP32[$61>>2]|0;
  42824. $63 = ($62|0)==(0|0);
  42825. if (!($63)) {
  42826. $$1426 = $62;$$1429 = $61;
  42827. continue;
  42828. }
  42829. $64 = ((($$1426)) + 16|0);
  42830. $65 = HEAP32[$64>>2]|0;
  42831. $66 = ($65|0)==(0|0);
  42832. if ($66) {
  42833. break;
  42834. } else {
  42835. $$1426 = $65;$$1429 = $64;
  42836. }
  42837. }
  42838. $67 = ($$1429>>>0)<($13>>>0);
  42839. if ($67) {
  42840. _abort();
  42841. // unreachable;
  42842. } else {
  42843. HEAP32[$$1429>>2] = 0;
  42844. $$3 = $$1426;
  42845. break;
  42846. }
  42847. } else {
  42848. $46 = ((($11)) + 8|0);
  42849. $47 = HEAP32[$46>>2]|0;
  42850. $48 = ($47>>>0)<($13>>>0);
  42851. if ($48) {
  42852. _abort();
  42853. // unreachable;
  42854. }
  42855. $49 = ((($47)) + 12|0);
  42856. $50 = HEAP32[$49>>2]|0;
  42857. $51 = ($50|0)==($11|0);
  42858. if (!($51)) {
  42859. _abort();
  42860. // unreachable;
  42861. }
  42862. $52 = ((($44)) + 8|0);
  42863. $53 = HEAP32[$52>>2]|0;
  42864. $54 = ($53|0)==($11|0);
  42865. if ($54) {
  42866. HEAP32[$49>>2] = $44;
  42867. HEAP32[$52>>2] = $47;
  42868. $$3 = $44;
  42869. break;
  42870. } else {
  42871. _abort();
  42872. // unreachable;
  42873. }
  42874. }
  42875. } while(0);
  42876. $68 = ($42|0)==(0|0);
  42877. if ($68) {
  42878. $$1 = $11;$$1418 = $12;
  42879. } else {
  42880. $69 = ((($11)) + 28|0);
  42881. $70 = HEAP32[$69>>2]|0;
  42882. $71 = (21488 + ($70<<2)|0);
  42883. $72 = HEAP32[$71>>2]|0;
  42884. $73 = ($11|0)==($72|0);
  42885. do {
  42886. if ($73) {
  42887. HEAP32[$71>>2] = $$3;
  42888. $cond = ($$3|0)==(0|0);
  42889. if ($cond) {
  42890. $74 = 1 << $70;
  42891. $75 = $74 ^ -1;
  42892. $76 = HEAP32[(21188)>>2]|0;
  42893. $77 = $76 & $75;
  42894. HEAP32[(21188)>>2] = $77;
  42895. $$1 = $11;$$1418 = $12;
  42896. break L1;
  42897. }
  42898. } else {
  42899. $78 = HEAP32[(21200)>>2]|0;
  42900. $79 = ($42>>>0)<($78>>>0);
  42901. if ($79) {
  42902. _abort();
  42903. // unreachable;
  42904. } else {
  42905. $80 = ((($42)) + 16|0);
  42906. $81 = HEAP32[$80>>2]|0;
  42907. $not$1 = ($81|0)!=($11|0);
  42908. $$sink2 = $not$1&1;
  42909. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  42910. HEAP32[$82>>2] = $$3;
  42911. $83 = ($$3|0)==(0|0);
  42912. if ($83) {
  42913. $$1 = $11;$$1418 = $12;
  42914. break L1;
  42915. } else {
  42916. break;
  42917. }
  42918. }
  42919. }
  42920. } while(0);
  42921. $84 = HEAP32[(21200)>>2]|0;
  42922. $85 = ($$3>>>0)<($84>>>0);
  42923. if ($85) {
  42924. _abort();
  42925. // unreachable;
  42926. }
  42927. $86 = ((($$3)) + 24|0);
  42928. HEAP32[$86>>2] = $42;
  42929. $87 = ((($11)) + 16|0);
  42930. $88 = HEAP32[$87>>2]|0;
  42931. $89 = ($88|0)==(0|0);
  42932. do {
  42933. if (!($89)) {
  42934. $90 = ($88>>>0)<($84>>>0);
  42935. if ($90) {
  42936. _abort();
  42937. // unreachable;
  42938. } else {
  42939. $91 = ((($$3)) + 16|0);
  42940. HEAP32[$91>>2] = $88;
  42941. $92 = ((($88)) + 24|0);
  42942. HEAP32[$92>>2] = $$3;
  42943. break;
  42944. }
  42945. }
  42946. } while(0);
  42947. $93 = ((($87)) + 4|0);
  42948. $94 = HEAP32[$93>>2]|0;
  42949. $95 = ($94|0)==(0|0);
  42950. if ($95) {
  42951. $$1 = $11;$$1418 = $12;
  42952. } else {
  42953. $96 = HEAP32[(21200)>>2]|0;
  42954. $97 = ($94>>>0)<($96>>>0);
  42955. if ($97) {
  42956. _abort();
  42957. // unreachable;
  42958. } else {
  42959. $98 = ((($$3)) + 20|0);
  42960. HEAP32[$98>>2] = $94;
  42961. $99 = ((($94)) + 24|0);
  42962. HEAP32[$99>>2] = $$3;
  42963. $$1 = $11;$$1418 = $12;
  42964. break;
  42965. }
  42966. }
  42967. }
  42968. } else {
  42969. $$1 = $0;$$1418 = $1;
  42970. }
  42971. } while(0);
  42972. $108 = HEAP32[(21200)>>2]|0;
  42973. $109 = ($2>>>0)<($108>>>0);
  42974. if ($109) {
  42975. _abort();
  42976. // unreachable;
  42977. }
  42978. $110 = ((($2)) + 4|0);
  42979. $111 = HEAP32[$110>>2]|0;
  42980. $112 = $111 & 2;
  42981. $113 = ($112|0)==(0);
  42982. if ($113) {
  42983. $114 = HEAP32[(21208)>>2]|0;
  42984. $115 = ($2|0)==($114|0);
  42985. $116 = HEAP32[(21204)>>2]|0;
  42986. if ($115) {
  42987. $117 = HEAP32[(21196)>>2]|0;
  42988. $118 = (($117) + ($$1418))|0;
  42989. HEAP32[(21196)>>2] = $118;
  42990. HEAP32[(21208)>>2] = $$1;
  42991. $119 = $118 | 1;
  42992. $120 = ((($$1)) + 4|0);
  42993. HEAP32[$120>>2] = $119;
  42994. $121 = ($$1|0)==($116|0);
  42995. if (!($121)) {
  42996. return;
  42997. }
  42998. HEAP32[(21204)>>2] = 0;
  42999. HEAP32[(21192)>>2] = 0;
  43000. return;
  43001. }
  43002. $122 = ($2|0)==($116|0);
  43003. if ($122) {
  43004. $123 = HEAP32[(21192)>>2]|0;
  43005. $124 = (($123) + ($$1418))|0;
  43006. HEAP32[(21192)>>2] = $124;
  43007. HEAP32[(21204)>>2] = $$1;
  43008. $125 = $124 | 1;
  43009. $126 = ((($$1)) + 4|0);
  43010. HEAP32[$126>>2] = $125;
  43011. $127 = (($$1) + ($124)|0);
  43012. HEAP32[$127>>2] = $124;
  43013. return;
  43014. }
  43015. $128 = $111 & -8;
  43016. $129 = (($128) + ($$1418))|0;
  43017. $130 = $111 >>> 3;
  43018. $131 = ($111>>>0)<(256);
  43019. L96: do {
  43020. if ($131) {
  43021. $132 = ((($2)) + 8|0);
  43022. $133 = HEAP32[$132>>2]|0;
  43023. $134 = ((($2)) + 12|0);
  43024. $135 = HEAP32[$134>>2]|0;
  43025. $136 = $130 << 1;
  43026. $137 = (21224 + ($136<<2)|0);
  43027. $138 = ($133|0)==($137|0);
  43028. if (!($138)) {
  43029. $139 = ($133>>>0)<($108>>>0);
  43030. if ($139) {
  43031. _abort();
  43032. // unreachable;
  43033. }
  43034. $140 = ((($133)) + 12|0);
  43035. $141 = HEAP32[$140>>2]|0;
  43036. $142 = ($141|0)==($2|0);
  43037. if (!($142)) {
  43038. _abort();
  43039. // unreachable;
  43040. }
  43041. }
  43042. $143 = ($135|0)==($133|0);
  43043. if ($143) {
  43044. $144 = 1 << $130;
  43045. $145 = $144 ^ -1;
  43046. $146 = HEAP32[5296]|0;
  43047. $147 = $146 & $145;
  43048. HEAP32[5296] = $147;
  43049. break;
  43050. }
  43051. $148 = ($135|0)==($137|0);
  43052. if ($148) {
  43053. $$pre23 = ((($135)) + 8|0);
  43054. $$pre$phi24Z2D = $$pre23;
  43055. } else {
  43056. $149 = ($135>>>0)<($108>>>0);
  43057. if ($149) {
  43058. _abort();
  43059. // unreachable;
  43060. }
  43061. $150 = ((($135)) + 8|0);
  43062. $151 = HEAP32[$150>>2]|0;
  43063. $152 = ($151|0)==($2|0);
  43064. if ($152) {
  43065. $$pre$phi24Z2D = $150;
  43066. } else {
  43067. _abort();
  43068. // unreachable;
  43069. }
  43070. }
  43071. $153 = ((($133)) + 12|0);
  43072. HEAP32[$153>>2] = $135;
  43073. HEAP32[$$pre$phi24Z2D>>2] = $133;
  43074. } else {
  43075. $154 = ((($2)) + 24|0);
  43076. $155 = HEAP32[$154>>2]|0;
  43077. $156 = ((($2)) + 12|0);
  43078. $157 = HEAP32[$156>>2]|0;
  43079. $158 = ($157|0)==($2|0);
  43080. do {
  43081. if ($158) {
  43082. $168 = ((($2)) + 16|0);
  43083. $169 = ((($168)) + 4|0);
  43084. $170 = HEAP32[$169>>2]|0;
  43085. $171 = ($170|0)==(0|0);
  43086. if ($171) {
  43087. $172 = HEAP32[$168>>2]|0;
  43088. $173 = ($172|0)==(0|0);
  43089. if ($173) {
  43090. $$3435 = 0;
  43091. break;
  43092. } else {
  43093. $$1433 = $172;$$1437 = $168;
  43094. }
  43095. } else {
  43096. $$1433 = $170;$$1437 = $169;
  43097. }
  43098. while(1) {
  43099. $174 = ((($$1433)) + 20|0);
  43100. $175 = HEAP32[$174>>2]|0;
  43101. $176 = ($175|0)==(0|0);
  43102. if (!($176)) {
  43103. $$1433 = $175;$$1437 = $174;
  43104. continue;
  43105. }
  43106. $177 = ((($$1433)) + 16|0);
  43107. $178 = HEAP32[$177>>2]|0;
  43108. $179 = ($178|0)==(0|0);
  43109. if ($179) {
  43110. break;
  43111. } else {
  43112. $$1433 = $178;$$1437 = $177;
  43113. }
  43114. }
  43115. $180 = ($$1437>>>0)<($108>>>0);
  43116. if ($180) {
  43117. _abort();
  43118. // unreachable;
  43119. } else {
  43120. HEAP32[$$1437>>2] = 0;
  43121. $$3435 = $$1433;
  43122. break;
  43123. }
  43124. } else {
  43125. $159 = ((($2)) + 8|0);
  43126. $160 = HEAP32[$159>>2]|0;
  43127. $161 = ($160>>>0)<($108>>>0);
  43128. if ($161) {
  43129. _abort();
  43130. // unreachable;
  43131. }
  43132. $162 = ((($160)) + 12|0);
  43133. $163 = HEAP32[$162>>2]|0;
  43134. $164 = ($163|0)==($2|0);
  43135. if (!($164)) {
  43136. _abort();
  43137. // unreachable;
  43138. }
  43139. $165 = ((($157)) + 8|0);
  43140. $166 = HEAP32[$165>>2]|0;
  43141. $167 = ($166|0)==($2|0);
  43142. if ($167) {
  43143. HEAP32[$162>>2] = $157;
  43144. HEAP32[$165>>2] = $160;
  43145. $$3435 = $157;
  43146. break;
  43147. } else {
  43148. _abort();
  43149. // unreachable;
  43150. }
  43151. }
  43152. } while(0);
  43153. $181 = ($155|0)==(0|0);
  43154. if (!($181)) {
  43155. $182 = ((($2)) + 28|0);
  43156. $183 = HEAP32[$182>>2]|0;
  43157. $184 = (21488 + ($183<<2)|0);
  43158. $185 = HEAP32[$184>>2]|0;
  43159. $186 = ($2|0)==($185|0);
  43160. do {
  43161. if ($186) {
  43162. HEAP32[$184>>2] = $$3435;
  43163. $cond17 = ($$3435|0)==(0|0);
  43164. if ($cond17) {
  43165. $187 = 1 << $183;
  43166. $188 = $187 ^ -1;
  43167. $189 = HEAP32[(21188)>>2]|0;
  43168. $190 = $189 & $188;
  43169. HEAP32[(21188)>>2] = $190;
  43170. break L96;
  43171. }
  43172. } else {
  43173. $191 = HEAP32[(21200)>>2]|0;
  43174. $192 = ($155>>>0)<($191>>>0);
  43175. if ($192) {
  43176. _abort();
  43177. // unreachable;
  43178. } else {
  43179. $193 = ((($155)) + 16|0);
  43180. $194 = HEAP32[$193>>2]|0;
  43181. $not$ = ($194|0)!=($2|0);
  43182. $$sink4 = $not$&1;
  43183. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  43184. HEAP32[$195>>2] = $$3435;
  43185. $196 = ($$3435|0)==(0|0);
  43186. if ($196) {
  43187. break L96;
  43188. } else {
  43189. break;
  43190. }
  43191. }
  43192. }
  43193. } while(0);
  43194. $197 = HEAP32[(21200)>>2]|0;
  43195. $198 = ($$3435>>>0)<($197>>>0);
  43196. if ($198) {
  43197. _abort();
  43198. // unreachable;
  43199. }
  43200. $199 = ((($$3435)) + 24|0);
  43201. HEAP32[$199>>2] = $155;
  43202. $200 = ((($2)) + 16|0);
  43203. $201 = HEAP32[$200>>2]|0;
  43204. $202 = ($201|0)==(0|0);
  43205. do {
  43206. if (!($202)) {
  43207. $203 = ($201>>>0)<($197>>>0);
  43208. if ($203) {
  43209. _abort();
  43210. // unreachable;
  43211. } else {
  43212. $204 = ((($$3435)) + 16|0);
  43213. HEAP32[$204>>2] = $201;
  43214. $205 = ((($201)) + 24|0);
  43215. HEAP32[$205>>2] = $$3435;
  43216. break;
  43217. }
  43218. }
  43219. } while(0);
  43220. $206 = ((($200)) + 4|0);
  43221. $207 = HEAP32[$206>>2]|0;
  43222. $208 = ($207|0)==(0|0);
  43223. if (!($208)) {
  43224. $209 = HEAP32[(21200)>>2]|0;
  43225. $210 = ($207>>>0)<($209>>>0);
  43226. if ($210) {
  43227. _abort();
  43228. // unreachable;
  43229. } else {
  43230. $211 = ((($$3435)) + 20|0);
  43231. HEAP32[$211>>2] = $207;
  43232. $212 = ((($207)) + 24|0);
  43233. HEAP32[$212>>2] = $$3435;
  43234. break;
  43235. }
  43236. }
  43237. }
  43238. }
  43239. } while(0);
  43240. $213 = $129 | 1;
  43241. $214 = ((($$1)) + 4|0);
  43242. HEAP32[$214>>2] = $213;
  43243. $215 = (($$1) + ($129)|0);
  43244. HEAP32[$215>>2] = $129;
  43245. $216 = HEAP32[(21204)>>2]|0;
  43246. $217 = ($$1|0)==($216|0);
  43247. if ($217) {
  43248. HEAP32[(21192)>>2] = $129;
  43249. return;
  43250. } else {
  43251. $$2 = $129;
  43252. }
  43253. } else {
  43254. $218 = $111 & -2;
  43255. HEAP32[$110>>2] = $218;
  43256. $219 = $$1418 | 1;
  43257. $220 = ((($$1)) + 4|0);
  43258. HEAP32[$220>>2] = $219;
  43259. $221 = (($$1) + ($$1418)|0);
  43260. HEAP32[$221>>2] = $$1418;
  43261. $$2 = $$1418;
  43262. }
  43263. $222 = $$2 >>> 3;
  43264. $223 = ($$2>>>0)<(256);
  43265. if ($223) {
  43266. $224 = $222 << 1;
  43267. $225 = (21224 + ($224<<2)|0);
  43268. $226 = HEAP32[5296]|0;
  43269. $227 = 1 << $222;
  43270. $228 = $226 & $227;
  43271. $229 = ($228|0)==(0);
  43272. if ($229) {
  43273. $230 = $226 | $227;
  43274. HEAP32[5296] = $230;
  43275. $$pre = ((($225)) + 8|0);
  43276. $$0438 = $225;$$pre$phiZ2D = $$pre;
  43277. } else {
  43278. $231 = ((($225)) + 8|0);
  43279. $232 = HEAP32[$231>>2]|0;
  43280. $233 = HEAP32[(21200)>>2]|0;
  43281. $234 = ($232>>>0)<($233>>>0);
  43282. if ($234) {
  43283. _abort();
  43284. // unreachable;
  43285. } else {
  43286. $$0438 = $232;$$pre$phiZ2D = $231;
  43287. }
  43288. }
  43289. HEAP32[$$pre$phiZ2D>>2] = $$1;
  43290. $235 = ((($$0438)) + 12|0);
  43291. HEAP32[$235>>2] = $$1;
  43292. $236 = ((($$1)) + 8|0);
  43293. HEAP32[$236>>2] = $$0438;
  43294. $237 = ((($$1)) + 12|0);
  43295. HEAP32[$237>>2] = $225;
  43296. return;
  43297. }
  43298. $238 = $$2 >>> 8;
  43299. $239 = ($238|0)==(0);
  43300. if ($239) {
  43301. $$0431 = 0;
  43302. } else {
  43303. $240 = ($$2>>>0)>(16777215);
  43304. if ($240) {
  43305. $$0431 = 31;
  43306. } else {
  43307. $241 = (($238) + 1048320)|0;
  43308. $242 = $241 >>> 16;
  43309. $243 = $242 & 8;
  43310. $244 = $238 << $243;
  43311. $245 = (($244) + 520192)|0;
  43312. $246 = $245 >>> 16;
  43313. $247 = $246 & 4;
  43314. $248 = $247 | $243;
  43315. $249 = $244 << $247;
  43316. $250 = (($249) + 245760)|0;
  43317. $251 = $250 >>> 16;
  43318. $252 = $251 & 2;
  43319. $253 = $248 | $252;
  43320. $254 = (14 - ($253))|0;
  43321. $255 = $249 << $252;
  43322. $256 = $255 >>> 15;
  43323. $257 = (($254) + ($256))|0;
  43324. $258 = $257 << 1;
  43325. $259 = (($257) + 7)|0;
  43326. $260 = $$2 >>> $259;
  43327. $261 = $260 & 1;
  43328. $262 = $261 | $258;
  43329. $$0431 = $262;
  43330. }
  43331. }
  43332. $263 = (21488 + ($$0431<<2)|0);
  43333. $264 = ((($$1)) + 28|0);
  43334. HEAP32[$264>>2] = $$0431;
  43335. $265 = ((($$1)) + 16|0);
  43336. $266 = ((($$1)) + 20|0);
  43337. HEAP32[$266>>2] = 0;
  43338. HEAP32[$265>>2] = 0;
  43339. $267 = HEAP32[(21188)>>2]|0;
  43340. $268 = 1 << $$0431;
  43341. $269 = $267 & $268;
  43342. $270 = ($269|0)==(0);
  43343. if ($270) {
  43344. $271 = $267 | $268;
  43345. HEAP32[(21188)>>2] = $271;
  43346. HEAP32[$263>>2] = $$1;
  43347. $272 = ((($$1)) + 24|0);
  43348. HEAP32[$272>>2] = $263;
  43349. $273 = ((($$1)) + 12|0);
  43350. HEAP32[$273>>2] = $$1;
  43351. $274 = ((($$1)) + 8|0);
  43352. HEAP32[$274>>2] = $$1;
  43353. return;
  43354. }
  43355. $275 = HEAP32[$263>>2]|0;
  43356. $276 = ($$0431|0)==(31);
  43357. $277 = $$0431 >>> 1;
  43358. $278 = (25 - ($277))|0;
  43359. $279 = $276 ? 0 : $278;
  43360. $280 = $$2 << $279;
  43361. $$0419 = $280;$$0420 = $275;
  43362. while(1) {
  43363. $281 = ((($$0420)) + 4|0);
  43364. $282 = HEAP32[$281>>2]|0;
  43365. $283 = $282 & -8;
  43366. $284 = ($283|0)==($$2|0);
  43367. if ($284) {
  43368. label = 121;
  43369. break;
  43370. }
  43371. $285 = $$0419 >>> 31;
  43372. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  43373. $287 = $$0419 << 1;
  43374. $288 = HEAP32[$286>>2]|0;
  43375. $289 = ($288|0)==(0|0);
  43376. if ($289) {
  43377. label = 118;
  43378. break;
  43379. } else {
  43380. $$0419 = $287;$$0420 = $288;
  43381. }
  43382. }
  43383. if ((label|0) == 118) {
  43384. $290 = HEAP32[(21200)>>2]|0;
  43385. $291 = ($286>>>0)<($290>>>0);
  43386. if ($291) {
  43387. _abort();
  43388. // unreachable;
  43389. }
  43390. HEAP32[$286>>2] = $$1;
  43391. $292 = ((($$1)) + 24|0);
  43392. HEAP32[$292>>2] = $$0420;
  43393. $293 = ((($$1)) + 12|0);
  43394. HEAP32[$293>>2] = $$1;
  43395. $294 = ((($$1)) + 8|0);
  43396. HEAP32[$294>>2] = $$1;
  43397. return;
  43398. }
  43399. else if ((label|0) == 121) {
  43400. $295 = ((($$0420)) + 8|0);
  43401. $296 = HEAP32[$295>>2]|0;
  43402. $297 = HEAP32[(21200)>>2]|0;
  43403. $298 = ($296>>>0)>=($297>>>0);
  43404. $not$19 = ($$0420>>>0)>=($297>>>0);
  43405. $299 = $298 & $not$19;
  43406. if (!($299)) {
  43407. _abort();
  43408. // unreachable;
  43409. }
  43410. $300 = ((($296)) + 12|0);
  43411. HEAP32[$300>>2] = $$1;
  43412. HEAP32[$295>>2] = $$1;
  43413. $301 = ((($$1)) + 8|0);
  43414. HEAP32[$301>>2] = $296;
  43415. $302 = ((($$1)) + 12|0);
  43416. HEAP32[$302>>2] = $$0420;
  43417. $303 = ((($$1)) + 24|0);
  43418. HEAP32[$303>>2] = 0;
  43419. return;
  43420. }
  43421. }
  43422. function runPostSets() {
  43423. }
  43424. function _memset(ptr, value, num) {
  43425. ptr = ptr|0; value = value|0; num = num|0;
  43426. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  43427. end = (ptr + num)|0;
  43428. value = value & 0xff;
  43429. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  43430. while ((ptr&3) != 0) {
  43431. HEAP8[((ptr)>>0)]=value;
  43432. ptr = (ptr+1)|0;
  43433. }
  43434. aligned_end = (end & -4)|0;
  43435. block_aligned_end = (aligned_end - 64)|0;
  43436. value4 = value | (value << 8) | (value << 16) | (value << 24);
  43437. while((ptr|0) <= (block_aligned_end|0)) {
  43438. HEAP32[((ptr)>>2)]=value4;
  43439. HEAP32[(((ptr)+(4))>>2)]=value4;
  43440. HEAP32[(((ptr)+(8))>>2)]=value4;
  43441. HEAP32[(((ptr)+(12))>>2)]=value4;
  43442. HEAP32[(((ptr)+(16))>>2)]=value4;
  43443. HEAP32[(((ptr)+(20))>>2)]=value4;
  43444. HEAP32[(((ptr)+(24))>>2)]=value4;
  43445. HEAP32[(((ptr)+(28))>>2)]=value4;
  43446. HEAP32[(((ptr)+(32))>>2)]=value4;
  43447. HEAP32[(((ptr)+(36))>>2)]=value4;
  43448. HEAP32[(((ptr)+(40))>>2)]=value4;
  43449. HEAP32[(((ptr)+(44))>>2)]=value4;
  43450. HEAP32[(((ptr)+(48))>>2)]=value4;
  43451. HEAP32[(((ptr)+(52))>>2)]=value4;
  43452. HEAP32[(((ptr)+(56))>>2)]=value4;
  43453. HEAP32[(((ptr)+(60))>>2)]=value4;
  43454. ptr = (ptr + 64)|0;
  43455. }
  43456. while ((ptr|0) < (aligned_end|0) ) {
  43457. HEAP32[((ptr)>>2)]=value4;
  43458. ptr = (ptr+4)|0;
  43459. }
  43460. }
  43461. // The remaining bytes.
  43462. while ((ptr|0) < (end|0)) {
  43463. HEAP8[((ptr)>>0)]=value;
  43464. ptr = (ptr+1)|0;
  43465. }
  43466. return (end-num)|0;
  43467. }
  43468. function _i64Subtract(a, b, c, d) {
  43469. a = a|0; b = b|0; c = c|0; d = d|0;
  43470. var l = 0, h = 0;
  43471. l = (a - c)>>>0;
  43472. h = (b - d)>>>0;
  43473. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  43474. return ((tempRet0 = h,l|0)|0);
  43475. }
  43476. function _i64Add(a, b, c, d) {
  43477. /*
  43478. x = a + b*2^32
  43479. y = c + d*2^32
  43480. result = l + h*2^32
  43481. */
  43482. a = a|0; b = b|0; c = c|0; d = d|0;
  43483. var l = 0, h = 0;
  43484. l = (a + c)>>>0;
  43485. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  43486. return ((tempRet0 = h,l|0)|0);
  43487. }
  43488. function _llvm_cttz_i32(x) {
  43489. x = x|0;
  43490. var ret = 0;
  43491. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  43492. if ((ret|0) < 8) return ret|0;
  43493. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  43494. if ((ret|0) < 8) return (ret + 8)|0;
  43495. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  43496. if ((ret|0) < 8) return (ret + 16)|0;
  43497. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  43498. }
  43499. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  43500. $a$0 = $a$0 | 0;
  43501. $a$1 = $a$1 | 0;
  43502. $b$0 = $b$0 | 0;
  43503. $b$1 = $b$1 | 0;
  43504. $rem = $rem | 0;
  43505. 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;
  43506. $n_sroa_0_0_extract_trunc = $a$0;
  43507. $n_sroa_1_4_extract_shift$0 = $a$1;
  43508. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  43509. $d_sroa_0_0_extract_trunc = $b$0;
  43510. $d_sroa_1_4_extract_shift$0 = $b$1;
  43511. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  43512. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  43513. $4 = ($rem | 0) != 0;
  43514. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  43515. if ($4) {
  43516. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  43517. HEAP32[$rem + 4 >> 2] = 0;
  43518. }
  43519. $_0$1 = 0;
  43520. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  43521. return (tempRet0 = $_0$1, $_0$0) | 0;
  43522. } else {
  43523. if (!$4) {
  43524. $_0$1 = 0;
  43525. $_0$0 = 0;
  43526. return (tempRet0 = $_0$1, $_0$0) | 0;
  43527. }
  43528. HEAP32[$rem >> 2] = $a$0 & -1;
  43529. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  43530. $_0$1 = 0;
  43531. $_0$0 = 0;
  43532. return (tempRet0 = $_0$1, $_0$0) | 0;
  43533. }
  43534. }
  43535. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  43536. do {
  43537. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  43538. if ($17) {
  43539. if (($rem | 0) != 0) {
  43540. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  43541. HEAP32[$rem + 4 >> 2] = 0;
  43542. }
  43543. $_0$1 = 0;
  43544. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  43545. return (tempRet0 = $_0$1, $_0$0) | 0;
  43546. }
  43547. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  43548. if (($rem | 0) != 0) {
  43549. HEAP32[$rem >> 2] = 0;
  43550. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  43551. }
  43552. $_0$1 = 0;
  43553. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  43554. return (tempRet0 = $_0$1, $_0$0) | 0;
  43555. }
  43556. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  43557. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  43558. if (($rem | 0) != 0) {
  43559. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  43560. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  43561. }
  43562. $_0$1 = 0;
  43563. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  43564. return (tempRet0 = $_0$1, $_0$0) | 0;
  43565. }
  43566. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  43567. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  43568. if ($51 >>> 0 <= 30) {
  43569. $57 = $51 + 1 | 0;
  43570. $58 = 31 - $51 | 0;
  43571. $sr_1_ph = $57;
  43572. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  43573. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  43574. $q_sroa_0_1_ph = 0;
  43575. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  43576. break;
  43577. }
  43578. if (($rem | 0) == 0) {
  43579. $_0$1 = 0;
  43580. $_0$0 = 0;
  43581. return (tempRet0 = $_0$1, $_0$0) | 0;
  43582. }
  43583. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  43584. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  43585. $_0$1 = 0;
  43586. $_0$0 = 0;
  43587. return (tempRet0 = $_0$1, $_0$0) | 0;
  43588. } else {
  43589. if (!$17) {
  43590. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  43591. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  43592. if ($119 >>> 0 <= 31) {
  43593. $125 = $119 + 1 | 0;
  43594. $126 = 31 - $119 | 0;
  43595. $130 = $119 - 31 >> 31;
  43596. $sr_1_ph = $125;
  43597. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  43598. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  43599. $q_sroa_0_1_ph = 0;
  43600. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  43601. break;
  43602. }
  43603. if (($rem | 0) == 0) {
  43604. $_0$1 = 0;
  43605. $_0$0 = 0;
  43606. return (tempRet0 = $_0$1, $_0$0) | 0;
  43607. }
  43608. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  43609. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  43610. $_0$1 = 0;
  43611. $_0$0 = 0;
  43612. return (tempRet0 = $_0$1, $_0$0) | 0;
  43613. }
  43614. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  43615. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  43616. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  43617. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  43618. $89 = 64 - $88 | 0;
  43619. $91 = 32 - $88 | 0;
  43620. $92 = $91 >> 31;
  43621. $95 = $88 - 32 | 0;
  43622. $105 = $95 >> 31;
  43623. $sr_1_ph = $88;
  43624. $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;
  43625. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  43626. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  43627. $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;
  43628. break;
  43629. }
  43630. if (($rem | 0) != 0) {
  43631. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  43632. HEAP32[$rem + 4 >> 2] = 0;
  43633. }
  43634. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  43635. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  43636. $_0$0 = 0 | $a$0 & -1;
  43637. return (tempRet0 = $_0$1, $_0$0) | 0;
  43638. } else {
  43639. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  43640. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  43641. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  43642. return (tempRet0 = $_0$1, $_0$0) | 0;
  43643. }
  43644. }
  43645. } while (0);
  43646. if (($sr_1_ph | 0) == 0) {
  43647. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  43648. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  43649. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  43650. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  43651. $carry_0_lcssa$1 = 0;
  43652. $carry_0_lcssa$0 = 0;
  43653. } else {
  43654. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  43655. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  43656. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  43657. $137$1 = tempRet0;
  43658. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  43659. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  43660. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  43661. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  43662. $sr_1202 = $sr_1_ph;
  43663. $carry_0203 = 0;
  43664. while (1) {
  43665. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  43666. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  43667. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  43668. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  43669. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  43670. $150$1 = tempRet0;
  43671. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  43672. $152 = $151$0 & 1;
  43673. $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;
  43674. $r_sroa_0_0_extract_trunc = $154$0;
  43675. $r_sroa_1_4_extract_trunc = tempRet0;
  43676. $155 = $sr_1202 - 1 | 0;
  43677. if (($155 | 0) == 0) {
  43678. break;
  43679. } else {
  43680. $q_sroa_1_1198 = $147;
  43681. $q_sroa_0_1199 = $149;
  43682. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  43683. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  43684. $sr_1202 = $155;
  43685. $carry_0203 = $152;
  43686. }
  43687. }
  43688. $q_sroa_1_1_lcssa = $147;
  43689. $q_sroa_0_1_lcssa = $149;
  43690. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  43691. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  43692. $carry_0_lcssa$1 = 0;
  43693. $carry_0_lcssa$0 = $152;
  43694. }
  43695. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  43696. $q_sroa_0_0_insert_ext75$1 = 0;
  43697. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  43698. if (($rem | 0) != 0) {
  43699. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  43700. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  43701. }
  43702. $_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;
  43703. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  43704. return (tempRet0 = $_0$1, $_0$0) | 0;
  43705. }
  43706. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  43707. $a$0 = $a$0 | 0;
  43708. $a$1 = $a$1 | 0;
  43709. $b$0 = $b$0 | 0;
  43710. $b$1 = $b$1 | 0;
  43711. var $1$0 = 0;
  43712. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  43713. return $1$0 | 0;
  43714. }
  43715. function ___muldsi3($a, $b) {
  43716. $a = $a | 0;
  43717. $b = $b | 0;
  43718. var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0;
  43719. $1 = $a & 65535;
  43720. $2 = $b & 65535;
  43721. $3 = Math_imul($2, $1) | 0;
  43722. $6 = $a >>> 16;
  43723. $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0;
  43724. $11 = $b >>> 16;
  43725. $12 = Math_imul($11, $1) | 0;
  43726. return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0;
  43727. }
  43728. function ___muldi3($a$0, $a$1, $b$0, $b$1) {
  43729. $a$0 = $a$0 | 0;
  43730. $a$1 = $a$1 | 0;
  43731. $b$0 = $b$0 | 0;
  43732. $b$1 = $b$1 | 0;
  43733. var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0;
  43734. $x_sroa_0_0_extract_trunc = $a$0;
  43735. $y_sroa_0_0_extract_trunc = $b$0;
  43736. $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0;
  43737. $1$1 = tempRet0;
  43738. $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0;
  43739. 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;
  43740. }
  43741. function _memcpy(dest, src, num) {
  43742. dest = dest|0; src = src|0; num = num|0;
  43743. var ret = 0;
  43744. var aligned_dest_end = 0;
  43745. var block_aligned_dest_end = 0;
  43746. var dest_end = 0;
  43747. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  43748. if ((num|0) >=
  43749. 8192
  43750. ) {
  43751. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  43752. }
  43753. ret = dest|0;
  43754. dest_end = (dest + num)|0;
  43755. if ((dest&3) == (src&3)) {
  43756. // The initial unaligned < 4-byte front.
  43757. while (dest & 3) {
  43758. if ((num|0) == 0) return ret|0;
  43759. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  43760. dest = (dest+1)|0;
  43761. src = (src+1)|0;
  43762. num = (num-1)|0;
  43763. }
  43764. aligned_dest_end = (dest_end & -4)|0;
  43765. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  43766. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  43767. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  43768. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  43769. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  43770. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  43771. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  43772. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  43773. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  43774. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  43775. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  43776. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  43777. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  43778. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  43779. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  43780. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  43781. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  43782. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  43783. dest = (dest+64)|0;
  43784. src = (src+64)|0;
  43785. }
  43786. while ((dest|0) < (aligned_dest_end|0) ) {
  43787. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  43788. dest = (dest+4)|0;
  43789. src = (src+4)|0;
  43790. }
  43791. } else {
  43792. // In the unaligned copy case, unroll a bit as well.
  43793. aligned_dest_end = (dest_end - 4)|0;
  43794. while ((dest|0) < (aligned_dest_end|0) ) {
  43795. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  43796. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  43797. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  43798. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  43799. dest = (dest+4)|0;
  43800. src = (src+4)|0;
  43801. }
  43802. }
  43803. // The remaining unaligned < 4 byte tail.
  43804. while ((dest|0) < (dest_end|0)) {
  43805. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  43806. dest = (dest+1)|0;
  43807. src = (src+1)|0;
  43808. }
  43809. return ret|0;
  43810. }
  43811. function _memmove(dest, src, num) {
  43812. dest = dest|0; src = src|0; num = num|0;
  43813. var ret = 0;
  43814. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  43815. // Unlikely case: Copy backwards in a safe manner
  43816. ret = dest;
  43817. src = (src + num)|0;
  43818. dest = (dest + num)|0;
  43819. while ((num|0) > 0) {
  43820. dest = (dest - 1)|0;
  43821. src = (src - 1)|0;
  43822. num = (num - 1)|0;
  43823. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  43824. }
  43825. dest = ret;
  43826. } else {
  43827. _memcpy(dest, src, num) | 0;
  43828. }
  43829. return dest | 0;
  43830. }
  43831. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  43832. $a$0 = $a$0 | 0;
  43833. $a$1 = $a$1 | 0;
  43834. $b$0 = $b$0 | 0;
  43835. $b$1 = $b$1 | 0;
  43836. var $rem = 0, __stackBase__ = 0;
  43837. __stackBase__ = STACKTOP;
  43838. STACKTOP = STACKTOP + 16 | 0;
  43839. $rem = __stackBase__ | 0;
  43840. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  43841. STACKTOP = __stackBase__;
  43842. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  43843. }
  43844. function _roundf(f) {
  43845. f = +f;
  43846. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  43847. }
  43848. function _bitshift64Lshr(low, high, bits) {
  43849. low = low|0; high = high|0; bits = bits|0;
  43850. var ander = 0;
  43851. if ((bits|0) < 32) {
  43852. ander = ((1 << bits) - 1)|0;
  43853. tempRet0 = high >>> bits;
  43854. return (low >>> bits) | ((high&ander) << (32 - bits));
  43855. }
  43856. tempRet0 = 0;
  43857. return (high >>> (bits - 32))|0;
  43858. }
  43859. function _sbrk(increment) {
  43860. increment = increment|0;
  43861. var oldDynamicTop = 0;
  43862. var oldDynamicTopOnChange = 0;
  43863. var newDynamicTop = 0;
  43864. var totalMemory = 0;
  43865. increment = ((increment + 15) & -16)|0;
  43866. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  43867. newDynamicTop = oldDynamicTop + increment | 0;
  43868. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  43869. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  43870. abortOnCannotGrowMemory()|0;
  43871. ___setErrNo(12);
  43872. return -1;
  43873. }
  43874. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  43875. totalMemory = getTotalMemory()|0;
  43876. if ((newDynamicTop|0) > (totalMemory|0)) {
  43877. if ((enlargeMemory()|0) == 0) {
  43878. ___setErrNo(12);
  43879. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  43880. return -1;
  43881. }
  43882. }
  43883. return oldDynamicTop|0;
  43884. }
  43885. function _bitshift64Shl(low, high, bits) {
  43886. low = low|0; high = high|0; bits = bits|0;
  43887. var ander = 0;
  43888. if ((bits|0) < 32) {
  43889. ander = ((1 << bits) - 1)|0;
  43890. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  43891. return low << bits;
  43892. }
  43893. tempRet0 = low << (bits - 32);
  43894. return 0;
  43895. }
  43896. function _llvm_bswap_i32(x) {
  43897. x = x|0;
  43898. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  43899. }
  43900. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  43901. index = index|0;
  43902. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  43903. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  43904. }
  43905. function dynCall_vd(index,a1) {
  43906. index = index|0;
  43907. a1=+a1;
  43908. FUNCTION_TABLE_vd[index&3](+a1);
  43909. }
  43910. function dynCall_vid(index,a1,a2) {
  43911. index = index|0;
  43912. a1=a1|0; a2=+a2;
  43913. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  43914. }
  43915. function dynCall_vi(index,a1) {
  43916. index = index|0;
  43917. a1=a1|0;
  43918. FUNCTION_TABLE_vi[index&31](a1|0);
  43919. }
  43920. function dynCall_vii(index,a1,a2) {
  43921. index = index|0;
  43922. a1=a1|0; a2=a2|0;
  43923. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  43924. }
  43925. function dynCall_ii(index,a1) {
  43926. index = index|0;
  43927. a1=a1|0;
  43928. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  43929. }
  43930. function dynCall_viddd(index,a1,a2,a3,a4) {
  43931. index = index|0;
  43932. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  43933. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  43934. }
  43935. function dynCall_vidd(index,a1,a2,a3) {
  43936. index = index|0;
  43937. a1=a1|0; a2=+a2; a3=+a3;
  43938. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  43939. }
  43940. function dynCall_iiii(index,a1,a2,a3) {
  43941. index = index|0;
  43942. a1=a1|0; a2=a2|0; a3=a3|0;
  43943. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  43944. }
  43945. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  43946. index = index|0;
  43947. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  43948. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  43949. }
  43950. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  43951. index = index|0;
  43952. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  43953. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  43954. }
  43955. function dynCall_viii(index,a1,a2,a3) {
  43956. index = index|0;
  43957. a1=a1|0; a2=a2|0; a3=a3|0;
  43958. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  43959. }
  43960. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  43961. index = index|0;
  43962. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  43963. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  43964. }
  43965. function dynCall_vdi(index,a1,a2) {
  43966. index = index|0;
  43967. a1=+a1; a2=a2|0;
  43968. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  43969. }
  43970. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  43971. index = index|0;
  43972. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  43973. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  43974. }
  43975. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  43976. index = index|0;
  43977. 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;
  43978. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  43979. }
  43980. function dynCall_iii(index,a1,a2) {
  43981. index = index|0;
  43982. a1=a1|0; a2=a2|0;
  43983. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  43984. }
  43985. function dynCall_i(index) {
  43986. index = index|0;
  43987. return FUNCTION_TABLE_i[index&3]()|0;
  43988. }
  43989. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  43990. index = index|0;
  43991. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  43992. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  43993. }
  43994. function dynCall_vdddd(index,a1,a2,a3,a4) {
  43995. index = index|0;
  43996. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  43997. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  43998. }
  43999. function dynCall_vdd(index,a1,a2) {
  44000. index = index|0;
  44001. a1=+a1; a2=+a2;
  44002. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  44003. }
  44004. function dynCall_v(index) {
  44005. index = index|0;
  44006. FUNCTION_TABLE_v[index&7]();
  44007. }
  44008. function dynCall_viid(index,a1,a2,a3) {
  44009. index = index|0;
  44010. a1=a1|0; a2=a2|0; a3=+a3;
  44011. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  44012. }
  44013. function dynCall_viiii(index,a1,a2,a3,a4) {
  44014. index = index|0;
  44015. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  44016. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  44017. }
  44018. function b0(p0,p1,p2,p3,p4) {
  44019. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  44020. }
  44021. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  44022. 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);
  44023. }
  44024. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  44025. 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);
  44026. }
  44027. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  44028. 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);
  44029. }
  44030. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  44031. 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);
  44032. }
  44033. function b1(p0) {
  44034. p0 = +p0; nullFunc_vd(1);
  44035. }
  44036. function _emscripten_glClearDepth__wrapper(p0) {
  44037. p0 = +p0; _emscripten_glClearDepth(+p0);
  44038. }
  44039. function _emscripten_glClearDepthf__wrapper(p0) {
  44040. p0 = +p0; _emscripten_glClearDepthf(+p0);
  44041. }
  44042. function _emscripten_glLineWidth__wrapper(p0) {
  44043. p0 = +p0; _emscripten_glLineWidth(+p0);
  44044. }
  44045. function b2(p0,p1) {
  44046. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  44047. }
  44048. function _emscripten_glUniform1f__wrapper(p0,p1) {
  44049. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  44050. }
  44051. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  44052. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  44053. }
  44054. function b3(p0) {
  44055. p0 = p0|0; nullFunc_vi(3);
  44056. }
  44057. function _emscripten_glDeleteShader__wrapper(p0) {
  44058. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  44059. }
  44060. function _emscripten_glCompileShader__wrapper(p0) {
  44061. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  44062. }
  44063. function _emscripten_glDeleteProgram__wrapper(p0) {
  44064. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  44065. }
  44066. function _emscripten_glLinkProgram__wrapper(p0) {
  44067. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  44068. }
  44069. function _emscripten_glUseProgram__wrapper(p0) {
  44070. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  44071. }
  44072. function _emscripten_glValidateProgram__wrapper(p0) {
  44073. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  44074. }
  44075. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  44076. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  44077. }
  44078. function _emscripten_glEnableClientState__wrapper(p0) {
  44079. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  44080. }
  44081. function _emscripten_glClientActiveTexture__wrapper(p0) {
  44082. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  44083. }
  44084. function _emscripten_glBindVertexArray__wrapper(p0) {
  44085. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  44086. }
  44087. function _emscripten_glMatrixMode__wrapper(p0) {
  44088. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  44089. }
  44090. function _emscripten_glLoadMatrixf__wrapper(p0) {
  44091. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  44092. }
  44093. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  44094. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  44095. }
  44096. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  44097. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  44098. }
  44099. function _emscripten_glDepthFunc__wrapper(p0) {
  44100. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  44101. }
  44102. function _emscripten_glEnable__wrapper(p0) {
  44103. p0 = p0|0; _emscripten_glEnable(p0|0);
  44104. }
  44105. function _emscripten_glDisable__wrapper(p0) {
  44106. p0 = p0|0; _emscripten_glDisable(p0|0);
  44107. }
  44108. function _emscripten_glFrontFace__wrapper(p0) {
  44109. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  44110. }
  44111. function _emscripten_glCullFace__wrapper(p0) {
  44112. p0 = p0|0; _emscripten_glCullFace(p0|0);
  44113. }
  44114. function _emscripten_glClear__wrapper(p0) {
  44115. p0 = p0|0; _emscripten_glClear(p0|0);
  44116. }
  44117. function _emscripten_glClearStencil__wrapper(p0) {
  44118. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  44119. }
  44120. function _emscripten_glDepthMask__wrapper(p0) {
  44121. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  44122. }
  44123. function _emscripten_glStencilMask__wrapper(p0) {
  44124. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  44125. }
  44126. function _emscripten_glGenerateMipmap__wrapper(p0) {
  44127. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  44128. }
  44129. function _emscripten_glActiveTexture__wrapper(p0) {
  44130. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  44131. }
  44132. function _emscripten_glBlendEquation__wrapper(p0) {
  44133. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  44134. }
  44135. function b4(p0,p1) {
  44136. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  44137. }
  44138. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  44139. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  44140. }
  44141. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  44142. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  44143. }
  44144. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  44145. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  44146. }
  44147. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  44148. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  44149. }
  44150. function _emscripten_glGenTextures__wrapper(p0,p1) {
  44151. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  44152. }
  44153. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  44154. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  44155. }
  44156. function _emscripten_glBindTexture__wrapper(p0,p1) {
  44157. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  44158. }
  44159. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  44160. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  44161. }
  44162. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  44163. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  44164. }
  44165. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  44166. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  44167. }
  44168. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  44169. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  44170. }
  44171. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  44172. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  44173. }
  44174. function _emscripten_glUniform1i__wrapper(p0,p1) {
  44175. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  44176. }
  44177. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  44178. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  44179. }
  44180. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  44181. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  44182. }
  44183. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  44184. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  44185. }
  44186. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  44187. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  44188. }
  44189. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  44190. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  44191. }
  44192. function _emscripten_glAttachShader__wrapper(p0,p1) {
  44193. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  44194. }
  44195. function _emscripten_glDetachShader__wrapper(p0,p1) {
  44196. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  44197. }
  44198. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  44199. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  44200. }
  44201. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  44202. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  44203. }
  44204. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  44205. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  44206. }
  44207. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  44208. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  44209. }
  44210. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  44211. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  44212. }
  44213. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  44214. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  44215. }
  44216. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  44217. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  44218. }
  44219. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  44220. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  44221. }
  44222. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  44223. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  44224. }
  44225. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  44226. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  44227. }
  44228. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  44229. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  44230. }
  44231. function _emscripten_glHint__wrapper(p0,p1) {
  44232. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  44233. }
  44234. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  44235. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  44236. }
  44237. function b5(p0) {
  44238. p0 = p0|0; nullFunc_ii(5);return 0;
  44239. }
  44240. function _emscripten_glGetString__wrapper(p0) {
  44241. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  44242. }
  44243. function _emscripten_glIsTexture__wrapper(p0) {
  44244. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  44245. }
  44246. function _emscripten_glIsBuffer__wrapper(p0) {
  44247. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  44248. }
  44249. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  44250. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  44251. }
  44252. function _emscripten_glCreateShader__wrapper(p0) {
  44253. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  44254. }
  44255. function _emscripten_glIsShader__wrapper(p0) {
  44256. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  44257. }
  44258. function _emscripten_glIsProgram__wrapper(p0) {
  44259. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  44260. }
  44261. function _emscripten_glIsFramebuffer__wrapper(p0) {
  44262. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  44263. }
  44264. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  44265. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  44266. }
  44267. function _emscripten_glIsEnabled__wrapper(p0) {
  44268. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  44269. }
  44270. function b6(p0,p1,p2,p3) {
  44271. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  44272. }
  44273. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  44274. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  44275. }
  44276. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  44277. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  44278. }
  44279. function b7(p0,p1,p2) {
  44280. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  44281. }
  44282. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  44283. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  44284. }
  44285. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  44286. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  44287. }
  44288. function b8(p0,p1,p2) {
  44289. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  44290. }
  44291. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  44292. 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);
  44293. }
  44294. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  44295. 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);
  44296. }
  44297. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  44298. 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);
  44299. }
  44300. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  44301. 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);
  44302. }
  44303. function b10(p0,p1,p2,p3,p4,p5) {
  44304. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  44305. }
  44306. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  44307. 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);
  44308. }
  44309. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  44310. 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);
  44311. }
  44312. function b11(p0,p1,p2) {
  44313. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  44314. }
  44315. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  44316. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  44317. }
  44318. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  44319. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  44320. }
  44321. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  44322. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  44323. }
  44324. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  44325. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  44326. }
  44327. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  44328. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  44329. }
  44330. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  44331. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  44332. }
  44333. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  44334. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  44335. }
  44336. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  44337. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  44338. }
  44339. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  44340. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  44341. }
  44342. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  44343. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  44344. }
  44345. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  44346. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  44347. }
  44348. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  44349. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  44350. }
  44351. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  44352. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  44353. }
  44354. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  44355. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  44356. }
  44357. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  44358. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  44359. }
  44360. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  44361. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  44362. }
  44363. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  44364. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  44365. }
  44366. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  44367. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  44368. }
  44369. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  44370. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  44371. }
  44372. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  44373. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  44374. }
  44375. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  44376. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  44377. }
  44378. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  44379. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  44380. }
  44381. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  44382. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  44383. }
  44384. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  44385. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  44386. }
  44387. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  44388. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  44389. }
  44390. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  44391. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  44392. }
  44393. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  44394. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  44395. }
  44396. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  44397. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  44398. }
  44399. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  44400. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  44401. }
  44402. function b12(p0,p1,p2,p3,p4) {
  44403. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  44404. }
  44405. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  44406. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  44407. }
  44408. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  44409. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  44410. }
  44411. function b13(p0,p1) {
  44412. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  44413. }
  44414. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  44415. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  44416. }
  44417. function b14(p0,p1,p2,p3,p4,p5,p6) {
  44418. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  44419. }
  44420. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  44421. 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);
  44422. }
  44423. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  44424. 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);
  44425. }
  44426. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  44427. 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);
  44428. }
  44429. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44430. 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);
  44431. }
  44432. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44433. 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);
  44434. }
  44435. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44436. 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);
  44437. }
  44438. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44439. 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);
  44440. }
  44441. function b16(p0,p1) {
  44442. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  44443. }
  44444. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  44445. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  44446. }
  44447. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  44448. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  44449. }
  44450. function b17() {
  44451. ; nullFunc_i(17);return 0;
  44452. }
  44453. function _emscripten_glCreateProgram__wrapper() {
  44454. ; return _emscripten_glCreateProgram()|0;
  44455. }
  44456. function _emscripten_glGetError__wrapper() {
  44457. ; return _emscripten_glGetError()|0;
  44458. }
  44459. function b18(p0,p1,p2,p3,p4,p5) {
  44460. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  44461. }
  44462. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  44463. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  44464. }
  44465. function b19(p0,p1,p2,p3) {
  44466. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  44467. }
  44468. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  44469. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  44470. }
  44471. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  44472. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  44473. }
  44474. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  44475. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  44476. }
  44477. function b20(p0,p1) {
  44478. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  44479. }
  44480. function _emscripten_glDepthRange__wrapper(p0,p1) {
  44481. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  44482. }
  44483. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  44484. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  44485. }
  44486. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  44487. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  44488. }
  44489. function b21() {
  44490. ; nullFunc_v(21);
  44491. }
  44492. function _emscripten_glLoadIdentity__wrapper() {
  44493. ; _emscripten_glLoadIdentity();
  44494. }
  44495. function _emscripten_glReleaseShaderCompiler__wrapper() {
  44496. ; _emscripten_glReleaseShaderCompiler();
  44497. }
  44498. function _emscripten_glFinish__wrapper() {
  44499. ; _emscripten_glFinish();
  44500. }
  44501. function _emscripten_glFlush__wrapper() {
  44502. ; _emscripten_glFlush();
  44503. }
  44504. function b22(p0,p1,p2) {
  44505. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  44506. }
  44507. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  44508. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  44509. }
  44510. function b23(p0,p1,p2,p3) {
  44511. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  44512. }
  44513. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  44514. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  44515. }
  44516. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  44517. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  44518. }
  44519. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  44520. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  44521. }
  44522. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  44523. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  44524. }
  44525. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  44526. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  44527. }
  44528. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  44529. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  44530. }
  44531. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  44532. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  44533. }
  44534. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  44535. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  44536. }
  44537. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  44538. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  44539. }
  44540. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  44541. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  44542. }
  44543. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  44544. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  44545. }
  44546. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  44547. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  44548. }
  44549. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  44550. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  44551. }
  44552. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  44553. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  44554. }
  44555. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  44556. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  44557. }
  44558. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  44559. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  44560. }
  44561. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  44562. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  44563. }
  44564. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  44565. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  44566. }
  44567. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  44568. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  44569. }
  44570. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  44571. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  44572. }
  44573. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  44574. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  44575. }
  44576. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  44577. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  44578. }
  44579. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  44580. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  44581. }
  44582. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  44583. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  44584. }
  44585. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  44586. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  44587. }
  44588. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  44589. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  44590. }
  44591. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  44592. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  44593. }
  44594. // EMSCRIPTEN_END_FUNCS
  44595. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  44596. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  44597. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  44598. 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
  44599. ,b3,b3,b3];
  44600. 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
  44601. ,b4,b4,b4,b4,b4];
  44602. 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];
  44603. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  44604. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  44605. var FUNCTION_TABLE_iiii = [b8,_stbi__stdio_read,___stdout_write,___stdio_seek,_sn_write,_EmscriptenFullscreenChangeCallback,_EmscriptenKeyboardCallback,_EmscriptenMouseCallback,_EmscriptenTouchCallback,_EmscriptenGamepadCallback,___stdio_write,___stdio_read,b8,b8,b8,b8];
  44606. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  44607. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  44608. 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];
  44609. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  44610. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  44611. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  44612. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  44613. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  44614. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  44615. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  44616. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  44617. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  44618. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  44619. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  44620. 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];
  44621. return { _roundf: _roundf, _main: _main, _memset: _memset, _bitshift64Lshr: _bitshift64Lshr, _bitshift64Shl: _bitshift64Shl, _fflush: _fflush, _llvm_cttz_i32: _llvm_cttz_i32, _sbrk: _sbrk, _memcpy: _memcpy, _llvm_bswap_i32: _llvm_bswap_i32, ___muldi3: ___muldi3, ___uremdi3: ___uremdi3, _i64Subtract: _i64Subtract, ___udivmoddi4: ___udivmoddi4, _i64Add: _i64Add, _emscripten_get_global_libc: _emscripten_get_global_libc, _emscripten_GetProcAddress: _emscripten_GetProcAddress, ___udivdi3: ___udivdi3, ___errno_location: ___errno_location, ___muldsi3: ___muldsi3, _free: _free, _memmove: _memmove, _strstr: _strstr, _malloc: _malloc, runPostSets: runPostSets, stackAlloc: stackAlloc, stackSave: stackSave, stackRestore: stackRestore, establishStackSpace: establishStackSpace, setTempRet0: setTempRet0, getTempRet0: getTempRet0, setThrew: setThrew, stackAlloc: stackAlloc, stackSave: stackSave, stackRestore: stackRestore, establishStackSpace: establishStackSpace, setThrew: setThrew, setTempRet0: setTempRet0, getTempRet0: getTempRet0, dynCall_viiiii: dynCall_viiiii, dynCall_vd: dynCall_vd, dynCall_vid: dynCall_vid, dynCall_vi: dynCall_vi, dynCall_vii: dynCall_vii, dynCall_ii: dynCall_ii, dynCall_viddd: dynCall_viddd, dynCall_vidd: dynCall_vidd, dynCall_iiii: dynCall_iiii, dynCall_viiiiiiii: dynCall_viiiiiiii, dynCall_viiiiii: dynCall_viiiiii, dynCall_viii: dynCall_viii, dynCall_vidddd: dynCall_vidddd, dynCall_vdi: dynCall_vdi, dynCall_viiiiiii: dynCall_viiiiiii, dynCall_viiiiiiiii: dynCall_viiiiiiiii, dynCall_iii: dynCall_iii, dynCall_i: dynCall_i, dynCall_vdddddd: dynCall_vdddddd, dynCall_vdddd: dynCall_vdddd, dynCall_vdd: dynCall_vdd, dynCall_v: dynCall_v, dynCall_viid: dynCall_viid, dynCall_viiii: dynCall_viiii };
  44622. })
  44623. // EMSCRIPTEN_END_ASM
  44624. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  44625. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  44626. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44627. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44628. return real__roundf.apply(null, arguments);
  44629. };
  44630. var real__main = asm["_main"]; asm["_main"] = function() {
  44631. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44632. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44633. return real__main.apply(null, arguments);
  44634. };
  44635. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  44636. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44637. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44638. return real_stackSave.apply(null, arguments);
  44639. };
  44640. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  44641. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44642. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44643. return real_getTempRet0.apply(null, arguments);
  44644. };
  44645. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  44646. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44647. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44648. return real__llvm_cttz_i32.apply(null, arguments);
  44649. };
  44650. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  44651. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44652. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44653. return real_setThrew.apply(null, arguments);
  44654. };
  44655. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  44656. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44657. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44658. return real__bitshift64Lshr.apply(null, arguments);
  44659. };
  44660. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  44661. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44662. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44663. return real__bitshift64Shl.apply(null, arguments);
  44664. };
  44665. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  44666. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44667. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44668. return real__fflush.apply(null, arguments);
  44669. };
  44670. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  44671. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44672. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44673. return real__sbrk.apply(null, arguments);
  44674. };
  44675. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  44676. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44677. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44678. return real__llvm_bswap_i32.apply(null, arguments);
  44679. };
  44680. var real____muldi3 = asm["___muldi3"]; asm["___muldi3"] = function() {
  44681. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44682. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44683. return real____muldi3.apply(null, arguments);
  44684. };
  44685. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  44686. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44687. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44688. return real____uremdi3.apply(null, arguments);
  44689. };
  44690. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  44691. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44692. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44693. return real_stackAlloc.apply(null, arguments);
  44694. };
  44695. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  44696. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44697. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44698. return real__i64Subtract.apply(null, arguments);
  44699. };
  44700. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  44701. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44702. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44703. return real____udivmoddi4.apply(null, arguments);
  44704. };
  44705. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  44706. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44707. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44708. return real_setTempRet0.apply(null, arguments);
  44709. };
  44710. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  44711. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44712. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44713. return real__i64Add.apply(null, arguments);
  44714. };
  44715. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  44716. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44717. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44718. return real__emscripten_get_global_libc.apply(null, arguments);
  44719. };
  44720. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  44721. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44722. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44723. return real__emscripten_GetProcAddress.apply(null, arguments);
  44724. };
  44725. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  44726. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44727. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44728. return real____udivdi3.apply(null, arguments);
  44729. };
  44730. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  44731. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44732. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44733. return real____errno_location.apply(null, arguments);
  44734. };
  44735. var real____muldsi3 = asm["___muldsi3"]; asm["___muldsi3"] = function() {
  44736. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44737. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44738. return real____muldsi3.apply(null, arguments);
  44739. };
  44740. var real__free = asm["_free"]; asm["_free"] = function() {
  44741. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44742. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44743. return real__free.apply(null, arguments);
  44744. };
  44745. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  44746. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44747. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44748. return real_establishStackSpace.apply(null, arguments);
  44749. };
  44750. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  44751. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44752. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44753. return real__memmove.apply(null, arguments);
  44754. };
  44755. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  44756. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44757. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44758. return real__strstr.apply(null, arguments);
  44759. };
  44760. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  44761. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44762. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44763. return real_stackRestore.apply(null, arguments);
  44764. };
  44765. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  44766. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  44767. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  44768. return real__malloc.apply(null, arguments);
  44769. };
  44770. var _roundf = Module["_roundf"] = asm["_roundf"];
  44771. var _main = Module["_main"] = asm["_main"];
  44772. var stackSave = Module["stackSave"] = asm["stackSave"];
  44773. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  44774. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  44775. var setThrew = Module["setThrew"] = asm["setThrew"];
  44776. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  44777. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  44778. var _fflush = Module["_fflush"] = asm["_fflush"];
  44779. var _memset = Module["_memset"] = asm["_memset"];
  44780. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  44781. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  44782. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  44783. var ___muldi3 = Module["___muldi3"] = asm["___muldi3"];
  44784. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  44785. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  44786. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  44787. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  44788. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  44789. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  44790. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  44791. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  44792. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  44793. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  44794. var ___muldsi3 = Module["___muldsi3"] = asm["___muldsi3"];
  44795. var _free = Module["_free"] = asm["_free"];
  44796. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  44797. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  44798. var _memmove = Module["_memmove"] = asm["_memmove"];
  44799. var _strstr = Module["_strstr"] = asm["_strstr"];
  44800. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  44801. var _malloc = Module["_malloc"] = asm["_malloc"];
  44802. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  44803. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  44804. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  44805. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  44806. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  44807. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  44808. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  44809. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  44810. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  44811. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  44812. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  44813. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  44814. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  44815. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  44816. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  44817. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  44818. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  44819. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  44820. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  44821. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  44822. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  44823. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  44824. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  44825. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  44826. ;
  44827. Runtime.stackAlloc = Module['stackAlloc'];
  44828. Runtime.stackSave = Module['stackSave'];
  44829. Runtime.stackRestore = Module['stackRestore'];
  44830. Runtime.establishStackSpace = Module['establishStackSpace'];
  44831. Runtime.setTempRet0 = Module['setTempRet0'];
  44832. Runtime.getTempRet0 = Module['getTempRet0'];
  44833. // === Auto-generated postamble setup entry stuff ===
  44834. Module['asm'] = asm;
  44835. function ExitStatus(status) {
  44836. this.name = "ExitStatus";
  44837. this.message = "Program terminated with exit(" + status + ")";
  44838. this.status = status;
  44839. };
  44840. ExitStatus.prototype = new Error();
  44841. ExitStatus.prototype.constructor = ExitStatus;
  44842. var initialStackTop;
  44843. var preloadStartTime = null;
  44844. var calledMain = false;
  44845. dependenciesFulfilled = function runCaller() {
  44846. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  44847. if (!Module['calledRun']) run();
  44848. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  44849. }
  44850. Module['callMain'] = Module.callMain = function callMain(args) {
  44851. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  44852. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  44853. args = args || [];
  44854. ensureInitRuntime();
  44855. var argc = args.length+1;
  44856. function pad() {
  44857. for (var i = 0; i < 4-1; i++) {
  44858. argv.push(0);
  44859. }
  44860. }
  44861. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  44862. pad();
  44863. for (var i = 0; i < argc-1; i = i + 1) {
  44864. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  44865. pad();
  44866. }
  44867. argv.push(0);
  44868. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  44869. try {
  44870. var ret = Module['_main'](argc, argv, 0);
  44871. // if we're not running an evented main loop, it's time to exit
  44872. exit(ret, /* implicit = */ true);
  44873. }
  44874. catch(e) {
  44875. if (e instanceof ExitStatus) {
  44876. // exit() throws this once it's done to make sure execution
  44877. // has been stopped completely
  44878. return;
  44879. } else if (e == 'SimulateInfiniteLoop') {
  44880. // running an evented main loop, don't immediately exit
  44881. Module['noExitRuntime'] = true;
  44882. return;
  44883. } else {
  44884. var toLog = e;
  44885. if (e && typeof e === 'object' && e.stack) {
  44886. toLog = [e, e.stack];
  44887. }
  44888. Module.printErr('exception thrown: ' + toLog);
  44889. Module['quit'](1, e);
  44890. }
  44891. } finally {
  44892. calledMain = true;
  44893. }
  44894. }
  44895. function run(args) {
  44896. args = args || Module['arguments'];
  44897. if (preloadStartTime === null) preloadStartTime = Date.now();
  44898. if (runDependencies > 0) {
  44899. Module.printErr('run() called, but dependencies remain, so not running');
  44900. return;
  44901. }
  44902. writeStackCookie();
  44903. preRun();
  44904. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  44905. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  44906. function doRun() {
  44907. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  44908. Module['calledRun'] = true;
  44909. if (ABORT) return;
  44910. ensureInitRuntime();
  44911. preMain();
  44912. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  44913. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  44914. }
  44915. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  44916. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  44917. postRun();
  44918. }
  44919. if (Module['setStatus']) {
  44920. Module['setStatus']('Running...');
  44921. setTimeout(function() {
  44922. setTimeout(function() {
  44923. Module['setStatus']('');
  44924. }, 1);
  44925. doRun();
  44926. }, 1);
  44927. } else {
  44928. doRun();
  44929. }
  44930. checkStackCookie();
  44931. }
  44932. Module['run'] = Module.run = run;
  44933. function exit(status, implicit) {
  44934. if (implicit && Module['noExitRuntime']) {
  44935. 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)');
  44936. return;
  44937. }
  44938. if (Module['noExitRuntime']) {
  44939. 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)');
  44940. } else {
  44941. ABORT = true;
  44942. EXITSTATUS = status;
  44943. STACKTOP = initialStackTop;
  44944. exitRuntime();
  44945. if (Module['onExit']) Module['onExit'](status);
  44946. }
  44947. if (ENVIRONMENT_IS_NODE) {
  44948. process['exit'](status);
  44949. }
  44950. Module['quit'](status, new ExitStatus(status));
  44951. }
  44952. Module['exit'] = Module.exit = exit;
  44953. var abortDecorators = [];
  44954. function abort(what) {
  44955. if (what !== undefined) {
  44956. Module.print(what);
  44957. Module.printErr(what);
  44958. what = JSON.stringify(what)
  44959. } else {
  44960. what = '';
  44961. }
  44962. ABORT = true;
  44963. EXITSTATUS = 1;
  44964. var extra = '';
  44965. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  44966. if (abortDecorators) {
  44967. abortDecorators.forEach(function(decorator) {
  44968. output = decorator(output, what);
  44969. });
  44970. }
  44971. throw output;
  44972. }
  44973. Module['abort'] = Module.abort = abort;
  44974. // {{PRE_RUN_ADDITIONS}}
  44975. if (Module['preInit']) {
  44976. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  44977. while (Module['preInit'].length > 0) {
  44978. Module['preInit'].pop()();
  44979. }
  44980. }
  44981. // shouldRunNow refers to calling main(), not run().
  44982. var shouldRunNow = true;
  44983. if (Module['noInitialRun']) {
  44984. shouldRunNow = false;
  44985. }
  44986. run();
  44987. // {{POST_RUN_ADDITIONS}}
  44988. // {{MODULE_ADDITIONS}}