text_raylib_fonts.js 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234
  1. var Module;
  2. if (typeof Module === 'undefined') Module = {};
  3. if (!Module.expectedDataFileDownloads) {
  4. Module.expectedDataFileDownloads = 0;
  5. Module.finishedDataFileDownloads = 0;
  6. }
  7. Module.expectedDataFileDownloads++;
  8. (function() {
  9. var loadPackage = function(metadata) {
  10. var PACKAGE_PATH;
  11. if (typeof window === 'object') {
  12. PACKAGE_PATH = window['encodeURIComponent'](window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf('/')) + '/');
  13. } else if (typeof location !== 'undefined') {
  14. // worker
  15. PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/');
  16. } else {
  17. throw 'using preloaded data can only be done on a web page or in a web worker';
  18. }
  19. var PACKAGE_NAME = 'text/text_raylib_fonts.data';
  20. var REMOTE_PACKAGE_BASE = 'text_raylib_fonts.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', 'fonts', true, true);
  96. function DataRequest(start, end, crunched, audio) {
  97. this.start = start;
  98. this.end = end;
  99. this.crunched = crunched;
  100. this.audio = audio;
  101. }
  102. DataRequest.prototype = {
  103. requests: {},
  104. open: function(mode, name) {
  105. this.name = name;
  106. this.requests[name] = this;
  107. Module['addRunDependency']('fp ' + this.name);
  108. },
  109. send: function() {},
  110. onload: function() {
  111. var byteArray = this.byteArray.subarray(this.start, this.end);
  112. this.finish(byteArray);
  113. },
  114. finish: function(byteArray) {
  115. var that = this;
  116. 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
  117. Module['removeRunDependency']('fp ' + that.name);
  118. this.requests[this.name] = null;
  119. }
  120. };
  121. var files = metadata.files;
  122. for (i = 0; i < files.length; ++i) {
  123. new DataRequest(files[i].start, files[i].end, files[i].crunched, files[i].audio).open('GET', files[i].filename);
  124. }
  125. function processPackageData(arrayBuffer) {
  126. Module.finishedDataFileDownloads++;
  127. assert(arrayBuffer, 'Loading data file failed.');
  128. assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData');
  129. var byteArray = new Uint8Array(arrayBuffer);
  130. var curr;
  131. // copy the entire loaded file into a spot in the heap. Files will refer to slices in that. They cannot be freed though
  132. // (we may be allocating before malloc is ready, during startup).
  133. 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');
  134. var ptr = Module['getMemory'](byteArray.length);
  135. Module['HEAPU8'].set(byteArray, ptr);
  136. DataRequest.prototype.byteArray = Module['HEAPU8'].subarray(ptr, ptr+byteArray.length);
  137. var files = metadata.files;
  138. for (i = 0; i < files.length; ++i) {
  139. DataRequest.prototype.requests[files[i].filename].onload();
  140. }
  141. Module['removeRunDependency']('datafile_text/text_raylib_fonts.data');
  142. };
  143. Module['addRunDependency']('datafile_text/text_raylib_fonts.data');
  144. if (!Module.preloadResults) Module.preloadResults = {};
  145. Module.preloadResults[PACKAGE_NAME] = {fromCache: false};
  146. if (fetched) {
  147. processPackageData(fetched);
  148. fetched = null;
  149. } else {
  150. fetchedCallback = processPackageData;
  151. }
  152. }
  153. if (Module['calledRun']) {
  154. runWithFS();
  155. } else {
  156. if (!Module['preRun']) Module['preRun'] = [];
  157. Module["preRun"].push(runWithFS); // FS is not initialized yet, wait for it
  158. }
  159. }
  160. loadPackage({"files": [{"audio": 0, "start": 0, "crunched": 0, "end": 4424, "filename": "/resources/fonts/alagard.png"}, {"audio": 0, "start": 4424, "crunched": 0, "end": 7336, "filename": "/resources/fonts/pixelplay.png"}, {"audio": 0, "start": 7336, "crunched": 0, "end": 9735, "filename": "/resources/fonts/mecha.png"}, {"audio": 0, "start": 9735, "crunched": 0, "end": 12274, "filename": "/resources/fonts/setback.png"}, {"audio": 0, "start": 12274, "crunched": 0, "end": 15206, "filename": "/resources/fonts/romulus.png"}, {"audio": 0, "start": 15206, "crunched": 0, "end": 18209, "filename": "/resources/fonts/pixantiqua.png"}, {"audio": 0, "start": 18209, "crunched": 0, "end": 20651, "filename": "/resources/fonts/alpha_beta.png"}, {"audio": 0, "start": 20651, "crunched": 0, "end": 24129, "filename": "/resources/fonts/jupiter_crash.png"}], "remote_package_size": 24129, "package_uuid": "6678b3d2-e5b4-4a4d-a0c0-734e1f82c6c7"});
  161. })();
  162. // The Module object: Our interface to the outside world. We import
  163. // and export values on it, and do the work to get that through
  164. // closure compiler if necessary. There are various ways Module can be used:
  165. // 1. Not defined. We create it here
  166. // 2. A function parameter, function(Module) { ..generated code.. }
  167. // 3. pre-run appended it, var Module = {}; ..generated code..
  168. // 4. External script tag defines var Module.
  169. // We need to do an eval in order to handle the closure compiler
  170. // case, where this code here is minified but Module was defined
  171. // elsewhere (e.g. case 4 above). We also need to check if Module
  172. // already exists (e.g. case 3 above).
  173. // Note that if you want to run closure, and also to use Module
  174. // after the generated code, you will need to define var Module = {};
  175. // before the code. Then that object will be used in the code, and you
  176. // can continue to use Module afterwards as well.
  177. var Module;
  178. if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
  179. // Sometimes an existing Module object exists with properties
  180. // meant to overwrite the default module functionality. Here
  181. // we collect those properties and reapply _after_ we configure
  182. // the current environment's defaults to avoid having to be so
  183. // defensive during initialization.
  184. var moduleOverrides = {};
  185. for (var key in Module) {
  186. if (Module.hasOwnProperty(key)) {
  187. moduleOverrides[key] = Module[key];
  188. }
  189. }
  190. // The environment setup code below is customized to use Module.
  191. // *** Environment setup code ***
  192. var ENVIRONMENT_IS_WEB = false;
  193. var ENVIRONMENT_IS_WORKER = false;
  194. var ENVIRONMENT_IS_NODE = false;
  195. var ENVIRONMENT_IS_SHELL = false;
  196. // Three configurations we can be running in:
  197. // 1) We could be the application main() thread running in the main JS UI thread. (ENVIRONMENT_IS_WORKER == false and ENVIRONMENT_IS_PTHREAD == false)
  198. // 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)
  199. // 3) We could be an application pthread running in a worker. (ENVIRONMENT_IS_WORKER == true and ENVIRONMENT_IS_PTHREAD == true)
  200. if (Module['ENVIRONMENT']) {
  201. if (Module['ENVIRONMENT'] === 'WEB') {
  202. ENVIRONMENT_IS_WEB = true;
  203. } else if (Module['ENVIRONMENT'] === 'WORKER') {
  204. ENVIRONMENT_IS_WORKER = true;
  205. } else if (Module['ENVIRONMENT'] === 'NODE') {
  206. ENVIRONMENT_IS_NODE = true;
  207. } else if (Module['ENVIRONMENT'] === 'SHELL') {
  208. ENVIRONMENT_IS_SHELL = true;
  209. } else {
  210. throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');
  211. }
  212. } else {
  213. ENVIRONMENT_IS_WEB = typeof window === 'object';
  214. ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
  215. ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function' && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER;
  216. ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
  217. }
  218. if (ENVIRONMENT_IS_NODE) {
  219. // Expose functionality in the same simple way that the shells work
  220. // Note that we pollute the global namespace here, otherwise we break in node
  221. if (!Module['print']) Module['print'] = console.log;
  222. if (!Module['printErr']) Module['printErr'] = console.warn;
  223. var nodeFS;
  224. var nodePath;
  225. Module['read'] = function read(filename, binary) {
  226. if (!nodeFS) nodeFS = require('fs');
  227. if (!nodePath) nodePath = require('path');
  228. filename = nodePath['normalize'](filename);
  229. var ret = nodeFS['readFileSync'](filename);
  230. return binary ? ret : ret.toString();
  231. };
  232. Module['readBinary'] = function readBinary(filename) {
  233. var ret = Module['read'](filename, true);
  234. if (!ret.buffer) {
  235. ret = new Uint8Array(ret);
  236. }
  237. assert(ret.buffer);
  238. return ret;
  239. };
  240. Module['load'] = function load(f) {
  241. globalEval(read(f));
  242. };
  243. if (!Module['thisProgram']) {
  244. if (process['argv'].length > 1) {
  245. Module['thisProgram'] = process['argv'][1].replace(/\\/g, '/');
  246. } else {
  247. Module['thisProgram'] = 'unknown-program';
  248. }
  249. }
  250. Module['arguments'] = process['argv'].slice(2);
  251. if (typeof module !== 'undefined') {
  252. module['exports'] = Module;
  253. }
  254. process['on']('uncaughtException', function(ex) {
  255. // suppress ExitStatus exceptions from showing an error
  256. if (!(ex instanceof ExitStatus)) {
  257. throw ex;
  258. }
  259. });
  260. Module['inspect'] = function () { return '[Emscripten Module object]'; };
  261. }
  262. else if (ENVIRONMENT_IS_SHELL) {
  263. if (!Module['print']) Module['print'] = print;
  264. if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
  265. if (typeof read != 'undefined') {
  266. Module['read'] = read;
  267. } else {
  268. Module['read'] = function read() { throw 'no read() available' };
  269. }
  270. Module['readBinary'] = function readBinary(f) {
  271. if (typeof readbuffer === 'function') {
  272. return new Uint8Array(readbuffer(f));
  273. }
  274. var data = read(f, 'binary');
  275. assert(typeof data === 'object');
  276. return data;
  277. };
  278. if (typeof scriptArgs != 'undefined') {
  279. Module['arguments'] = scriptArgs;
  280. } else if (typeof arguments != 'undefined') {
  281. Module['arguments'] = arguments;
  282. }
  283. if (typeof quit === 'function') {
  284. Module['quit'] = function(status, toThrow) {
  285. quit(status);
  286. }
  287. }
  288. }
  289. else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
  290. Module['read'] = function read(url) {
  291. var xhr = new XMLHttpRequest();
  292. xhr.open('GET', url, false);
  293. xhr.send(null);
  294. return xhr.responseText;
  295. };
  296. if (ENVIRONMENT_IS_WORKER) {
  297. Module['readBinary'] = function read(url) {
  298. var xhr = new XMLHttpRequest();
  299. xhr.open('GET', url, false);
  300. xhr.responseType = 'arraybuffer';
  301. xhr.send(null);
  302. return xhr.response;
  303. };
  304. }
  305. Module['readAsync'] = function readAsync(url, onload, onerror) {
  306. var xhr = new XMLHttpRequest();
  307. xhr.open('GET', url, true);
  308. xhr.responseType = 'arraybuffer';
  309. xhr.onload = function xhr_onload() {
  310. if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  311. onload(xhr.response);
  312. } else {
  313. onerror();
  314. }
  315. };
  316. xhr.onerror = onerror;
  317. xhr.send(null);
  318. };
  319. if (typeof arguments != 'undefined') {
  320. Module['arguments'] = arguments;
  321. }
  322. if (typeof console !== 'undefined') {
  323. if (!Module['print']) Module['print'] = function print(x) {
  324. console.log(x);
  325. };
  326. if (!Module['printErr']) Module['printErr'] = function printErr(x) {
  327. console.warn(x);
  328. };
  329. } else {
  330. // Probably a worker, and without console.log. We can do very little here...
  331. var TRY_USE_DUMP = false;
  332. if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
  333. dump(x);
  334. }) : (function(x) {
  335. // self.postMessage(x); // enable this if you want stdout to be sent as messages
  336. }));
  337. }
  338. if (ENVIRONMENT_IS_WORKER) {
  339. Module['load'] = importScripts;
  340. }
  341. if (typeof Module['setWindowTitle'] === 'undefined') {
  342. Module['setWindowTitle'] = function(title) { document.title = title };
  343. }
  344. }
  345. else {
  346. // Unreachable because SHELL is dependant on the others
  347. throw 'Unknown runtime environment. Where are we?';
  348. }
  349. function globalEval(x) {
  350. eval.call(null, x);
  351. }
  352. if (!Module['load'] && Module['read']) {
  353. Module['load'] = function load(f) {
  354. globalEval(Module['read'](f));
  355. };
  356. }
  357. if (!Module['print']) {
  358. Module['print'] = function(){};
  359. }
  360. if (!Module['printErr']) {
  361. Module['printErr'] = Module['print'];
  362. }
  363. if (!Module['arguments']) {
  364. Module['arguments'] = [];
  365. }
  366. if (!Module['thisProgram']) {
  367. Module['thisProgram'] = './this.program';
  368. }
  369. if (!Module['quit']) {
  370. Module['quit'] = function(status, toThrow) {
  371. throw toThrow;
  372. }
  373. }
  374. // *** Environment setup code ***
  375. // Closure helpers
  376. Module.print = Module['print'];
  377. Module.printErr = Module['printErr'];
  378. // Callbacks
  379. Module['preRun'] = [];
  380. Module['postRun'] = [];
  381. // Merge back in the overrides
  382. for (var key in moduleOverrides) {
  383. if (moduleOverrides.hasOwnProperty(key)) {
  384. Module[key] = moduleOverrides[key];
  385. }
  386. }
  387. // Free the object hierarchy contained in the overrides, this lets the GC
  388. // reclaim data used e.g. in memoryInitializerRequest, which is a large typed array.
  389. moduleOverrides = undefined;
  390. // {{PREAMBLE_ADDITIONS}}
  391. // === Preamble library stuff ===
  392. // Documentation for the public APIs defined in this file must be updated in:
  393. // site/source/docs/api_reference/preamble.js.rst
  394. // A prebuilt local version of the documentation is available at:
  395. // site/build/text/docs/api_reference/preamble.js.txt
  396. // You can also build docs locally as HTML or other formats in site/
  397. // An online HTML version (which may be of a different version of Emscripten)
  398. // is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
  399. //========================================
  400. // Runtime code shared with compiler
  401. //========================================
  402. var Runtime = {
  403. setTempRet0: function (value) {
  404. tempRet0 = value;
  405. return value;
  406. },
  407. getTempRet0: function () {
  408. return tempRet0;
  409. },
  410. stackSave: function () {
  411. return STACKTOP;
  412. },
  413. stackRestore: function (stackTop) {
  414. STACKTOP = stackTop;
  415. },
  416. getNativeTypeSize: function (type) {
  417. switch (type) {
  418. case 'i1': case 'i8': return 1;
  419. case 'i16': return 2;
  420. case 'i32': return 4;
  421. case 'i64': return 8;
  422. case 'float': return 4;
  423. case 'double': return 8;
  424. default: {
  425. if (type[type.length-1] === '*') {
  426. return Runtime.QUANTUM_SIZE; // A pointer
  427. } else if (type[0] === 'i') {
  428. var bits = parseInt(type.substr(1));
  429. assert(bits % 8 === 0);
  430. return bits/8;
  431. } else {
  432. return 0;
  433. }
  434. }
  435. }
  436. },
  437. getNativeFieldSize: function (type) {
  438. return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
  439. },
  440. STACK_ALIGN: 16,
  441. prepVararg: function (ptr, type) {
  442. if (type === 'double' || type === 'i64') {
  443. // move so the load is aligned
  444. if (ptr & 7) {
  445. assert((ptr & 7) === 4);
  446. ptr += 4;
  447. }
  448. } else {
  449. assert((ptr & 3) === 0);
  450. }
  451. return ptr;
  452. },
  453. getAlignSize: function (type, size, vararg) {
  454. // we align i64s and doubles on 64-bit boundaries, unlike x86
  455. if (!vararg && (type == 'i64' || type == 'double')) return 8;
  456. if (!type) return Math.min(size, 8); // align structures internally to 64 bits
  457. return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
  458. },
  459. dynCall: function (sig, ptr, args) {
  460. if (args && args.length) {
  461. assert(args.length == sig.length-1);
  462. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  463. return Module['dynCall_' + sig].apply(null, [ptr].concat(args));
  464. } else {
  465. assert(sig.length == 1);
  466. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  467. return Module['dynCall_' + sig].call(null, ptr);
  468. }
  469. },
  470. functionPointers: [],
  471. addFunction: function (func) {
  472. for (var i = 0; i < Runtime.functionPointers.length; i++) {
  473. if (!Runtime.functionPointers[i]) {
  474. Runtime.functionPointers[i] = func;
  475. return 2*(1 + i);
  476. }
  477. }
  478. throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
  479. },
  480. removeFunction: function (index) {
  481. Runtime.functionPointers[(index-2)/2] = null;
  482. },
  483. warnOnce: function (text) {
  484. if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
  485. if (!Runtime.warnOnce.shown[text]) {
  486. Runtime.warnOnce.shown[text] = 1;
  487. Module.printErr(text);
  488. }
  489. },
  490. funcWrappers: {},
  491. getFuncWrapper: function (func, sig) {
  492. assert(sig);
  493. if (!Runtime.funcWrappers[sig]) {
  494. Runtime.funcWrappers[sig] = {};
  495. }
  496. var sigCache = Runtime.funcWrappers[sig];
  497. if (!sigCache[func]) {
  498. // optimize away arguments usage in common cases
  499. if (sig.length === 1) {
  500. sigCache[func] = function dynCall_wrapper() {
  501. return Runtime.dynCall(sig, func);
  502. };
  503. } else if (sig.length === 2) {
  504. sigCache[func] = function dynCall_wrapper(arg) {
  505. return Runtime.dynCall(sig, func, [arg]);
  506. };
  507. } else {
  508. // general case
  509. sigCache[func] = function dynCall_wrapper() {
  510. return Runtime.dynCall(sig, func, Array.prototype.slice.call(arguments));
  511. };
  512. }
  513. }
  514. return sigCache[func];
  515. },
  516. getCompilerSetting: function (name) {
  517. throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
  518. },
  519. stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+15)&-16);(assert((((STACKTOP|0) < (STACK_MAX|0))|0))|0); return ret; },
  520. staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + (assert(!staticSealed),size))|0;STATICTOP = (((STATICTOP)+15)&-16); return ret; },
  521. 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;},
  522. alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 16))*(quantum ? quantum : 16); return ret; },
  523. makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0))); return ret; },
  524. GLOBAL_BASE: 8,
  525. QUANTUM_SIZE: 4,
  526. __dummy__: 0
  527. }
  528. Module["Runtime"] = Runtime;
  529. //========================================
  530. // Runtime essentials
  531. //========================================
  532. var ABORT = 0; // whether we are quitting the application. no code should run after this. set in exit() and abort()
  533. var EXITSTATUS = 0;
  534. function assert(condition, text) {
  535. if (!condition) {
  536. abort('Assertion failed: ' + text);
  537. }
  538. }
  539. var globalScope = this;
  540. // Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
  541. function getCFunc(ident) {
  542. var func = Module['_' + ident]; // closure exported function
  543. if (!func) {
  544. try { func = eval('_' + ident); } catch(e) {}
  545. }
  546. assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
  547. return func;
  548. }
  549. var cwrap, ccall;
  550. (function(){
  551. var JSfuncs = {
  552. // Helpers for cwrap -- it can't refer to Runtime directly because it might
  553. // be renamed by closure, instead it calls JSfuncs['stackSave'].body to find
  554. // out what the minified function name is.
  555. 'stackSave': function() {
  556. Runtime.stackSave()
  557. },
  558. 'stackRestore': function() {
  559. Runtime.stackRestore()
  560. },
  561. // type conversion from js to c
  562. 'arrayToC' : function(arr) {
  563. var ret = Runtime.stackAlloc(arr.length);
  564. writeArrayToMemory(arr, ret);
  565. return ret;
  566. },
  567. 'stringToC' : function(str) {
  568. var ret = 0;
  569. if (str !== null && str !== undefined && str !== 0) { // null string
  570. // at most 4 bytes per UTF-8 code point, +1 for the trailing '\0'
  571. var len = (str.length << 2) + 1;
  572. ret = Runtime.stackAlloc(len);
  573. stringToUTF8(str, ret, len);
  574. }
  575. return ret;
  576. }
  577. };
  578. // For fast lookup of conversion functions
  579. var toC = {'string' : JSfuncs['stringToC'], 'array' : JSfuncs['arrayToC']};
  580. // C calling interface.
  581. ccall = function ccallFunc(ident, returnType, argTypes, args, opts) {
  582. var func = getCFunc(ident);
  583. var cArgs = [];
  584. var stack = 0;
  585. assert(returnType !== 'array', 'Return type should not be "array".');
  586. if (args) {
  587. for (var i = 0; i < args.length; i++) {
  588. var converter = toC[argTypes[i]];
  589. if (converter) {
  590. if (stack === 0) stack = Runtime.stackSave();
  591. cArgs[i] = converter(args[i]);
  592. } else {
  593. cArgs[i] = args[i];
  594. }
  595. }
  596. }
  597. var ret = func.apply(null, cArgs);
  598. if ((!opts || !opts.async) && typeof EmterpreterAsync === 'object') {
  599. assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling ccall');
  600. }
  601. if (opts && opts.async) assert(!returnType, 'async ccalls cannot return values');
  602. if (returnType === 'string') ret = Pointer_stringify(ret);
  603. if (stack !== 0) {
  604. if (opts && opts.async) {
  605. EmterpreterAsync.asyncFinalizers.push(function() {
  606. Runtime.stackRestore(stack);
  607. });
  608. return;
  609. }
  610. Runtime.stackRestore(stack);
  611. }
  612. return ret;
  613. }
  614. var sourceRegex = /^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
  615. function parseJSFunc(jsfunc) {
  616. // Match the body and the return value of a javascript function source
  617. var parsed = jsfunc.toString().match(sourceRegex).slice(1);
  618. return {arguments : parsed[0], body : parsed[1], returnValue: parsed[2]}
  619. }
  620. // sources of useful functions. we create this lazily as it can trigger a source decompression on this entire file
  621. var JSsource = null;
  622. function ensureJSsource() {
  623. if (!JSsource) {
  624. JSsource = {};
  625. for (var fun in JSfuncs) {
  626. if (JSfuncs.hasOwnProperty(fun)) {
  627. // Elements of toCsource are arrays of three items:
  628. // the code, and the return value
  629. JSsource[fun] = parseJSFunc(JSfuncs[fun]);
  630. }
  631. }
  632. }
  633. }
  634. cwrap = function cwrap(ident, returnType, argTypes) {
  635. argTypes = argTypes || [];
  636. var cfunc = getCFunc(ident);
  637. // When the function takes numbers and returns a number, we can just return
  638. // the original function
  639. var numericArgs = argTypes.every(function(type){ return type === 'number'});
  640. var numericRet = (returnType !== 'string');
  641. if ( numericRet && numericArgs) {
  642. return cfunc;
  643. }
  644. // Creation of the arguments list (["$1","$2",...,"$nargs"])
  645. var argNames = argTypes.map(function(x,i){return '$'+i});
  646. var funcstr = "(function(" + argNames.join(',') + ") {";
  647. var nargs = argTypes.length;
  648. if (!numericArgs) {
  649. // Generate the code needed to convert the arguments from javascript
  650. // values to pointers
  651. ensureJSsource();
  652. funcstr += 'var stack = ' + JSsource['stackSave'].body + ';';
  653. for (var i = 0; i < nargs; i++) {
  654. var arg = argNames[i], type = argTypes[i];
  655. if (type === 'number') continue;
  656. var convertCode = JSsource[type + 'ToC']; // [code, return]
  657. funcstr += 'var ' + convertCode.arguments + ' = ' + arg + ';';
  658. funcstr += convertCode.body + ';';
  659. funcstr += arg + '=(' + convertCode.returnValue + ');';
  660. }
  661. }
  662. // When the code is compressed, the name of cfunc is not literally 'cfunc' anymore
  663. var cfuncname = parseJSFunc(function(){return cfunc}).returnValue;
  664. // Call the function
  665. funcstr += 'var ret = ' + cfuncname + '(' + argNames.join(',') + ');';
  666. if (!numericRet) { // Return type can only by 'string' or 'number'
  667. // Convert the result to a string
  668. var strgfy = parseJSFunc(function(){return Pointer_stringify}).returnValue;
  669. funcstr += 'ret = ' + strgfy + '(ret);';
  670. }
  671. funcstr += "if (typeof EmterpreterAsync === 'object') { assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling cwrap') }";
  672. if (!numericArgs) {
  673. // If we had a stack, restore it
  674. ensureJSsource();
  675. funcstr += JSsource['stackRestore'].body.replace('()', '(stack)') + ';';
  676. }
  677. funcstr += 'return ret})';
  678. return eval(funcstr);
  679. };
  680. })();
  681. Module["ccall"] = ccall;
  682. Module["cwrap"] = cwrap;
  683. function setValue(ptr, value, type, noSafe) {
  684. type = type || 'i8';
  685. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  686. switch(type) {
  687. case 'i1': HEAP8[((ptr)>>0)]=value; break;
  688. case 'i8': HEAP8[((ptr)>>0)]=value; break;
  689. case 'i16': HEAP16[((ptr)>>1)]=value; break;
  690. case 'i32': HEAP32[((ptr)>>2)]=value; break;
  691. 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;
  692. case 'float': HEAPF32[((ptr)>>2)]=value; break;
  693. case 'double': HEAPF64[((ptr)>>3)]=value; break;
  694. default: abort('invalid type for setValue: ' + type);
  695. }
  696. }
  697. Module["setValue"] = setValue;
  698. function getValue(ptr, type, noSafe) {
  699. type = type || 'i8';
  700. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  701. switch(type) {
  702. case 'i1': return HEAP8[((ptr)>>0)];
  703. case 'i8': return HEAP8[((ptr)>>0)];
  704. case 'i16': return HEAP16[((ptr)>>1)];
  705. case 'i32': return HEAP32[((ptr)>>2)];
  706. case 'i64': return HEAP32[((ptr)>>2)];
  707. case 'float': return HEAPF32[((ptr)>>2)];
  708. case 'double': return HEAPF64[((ptr)>>3)];
  709. default: abort('invalid type for setValue: ' + type);
  710. }
  711. return null;
  712. }
  713. Module["getValue"] = getValue;
  714. var ALLOC_NORMAL = 0; // Tries to use _malloc()
  715. var ALLOC_STACK = 1; // Lives for the duration of the current function call
  716. var ALLOC_STATIC = 2; // Cannot be freed
  717. var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
  718. var ALLOC_NONE = 4; // Do not allocate
  719. Module["ALLOC_NORMAL"] = ALLOC_NORMAL;
  720. Module["ALLOC_STACK"] = ALLOC_STACK;
  721. Module["ALLOC_STATIC"] = ALLOC_STATIC;
  722. Module["ALLOC_DYNAMIC"] = ALLOC_DYNAMIC;
  723. Module["ALLOC_NONE"] = ALLOC_NONE;
  724. // allocate(): This is for internal use. You can use it yourself as well, but the interface
  725. // is a little tricky (see docs right below). The reason is that it is optimized
  726. // for multiple syntaxes to save space in generated code. So you should
  727. // normally not use allocate(), and instead allocate memory using _malloc(),
  728. // initialize it with setValue(), and so forth.
  729. // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
  730. // in *bytes* (note that this is sometimes confusing: the next parameter does not
  731. // affect this!)
  732. // @types: Either an array of types, one for each byte (or 0 if no type at that position),
  733. // or a single type which is used for the entire block. This only matters if there
  734. // is initial data - if @slab is a number, then this does not matter at all and is
  735. // ignored.
  736. // @allocator: How to allocate memory, see ALLOC_*
  737. function allocate(slab, types, allocator, ptr) {
  738. var zeroinit, size;
  739. if (typeof slab === 'number') {
  740. zeroinit = true;
  741. size = slab;
  742. } else {
  743. zeroinit = false;
  744. size = slab.length;
  745. }
  746. var singleType = typeof types === 'string' ? types : null;
  747. var ret;
  748. if (allocator == ALLOC_NONE) {
  749. ret = ptr;
  750. } else {
  751. 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));
  752. }
  753. if (zeroinit) {
  754. var ptr = ret, stop;
  755. assert((ret & 3) == 0);
  756. stop = ret + (size & ~3);
  757. for (; ptr < stop; ptr += 4) {
  758. HEAP32[((ptr)>>2)]=0;
  759. }
  760. stop = ret + size;
  761. while (ptr < stop) {
  762. HEAP8[((ptr++)>>0)]=0;
  763. }
  764. return ret;
  765. }
  766. if (singleType === 'i8') {
  767. if (slab.subarray || slab.slice) {
  768. HEAPU8.set(slab, ret);
  769. } else {
  770. HEAPU8.set(new Uint8Array(slab), ret);
  771. }
  772. return ret;
  773. }
  774. var i = 0, type, typeSize, previousType;
  775. while (i < size) {
  776. var curr = slab[i];
  777. if (typeof curr === 'function') {
  778. curr = Runtime.getFunctionIndex(curr);
  779. }
  780. type = singleType || types[i];
  781. if (type === 0) {
  782. i++;
  783. continue;
  784. }
  785. assert(type, 'Must know what type to store in allocate!');
  786. if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
  787. setValue(ret+i, curr, type);
  788. // no need to look up size unless type changes, so cache it
  789. if (previousType !== type) {
  790. typeSize = Runtime.getNativeTypeSize(type);
  791. previousType = type;
  792. }
  793. i += typeSize;
  794. }
  795. return ret;
  796. }
  797. Module["allocate"] = allocate;
  798. // Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
  799. function getMemory(size) {
  800. if (!staticSealed) return Runtime.staticAlloc(size);
  801. if (!runtimeInitialized) return Runtime.dynamicAlloc(size);
  802. return _malloc(size);
  803. }
  804. Module["getMemory"] = getMemory;
  805. function Pointer_stringify(ptr, /* optional */ length) {
  806. if (length === 0 || !ptr) return '';
  807. // TODO: use TextDecoder
  808. // Find the length, and check for UTF while doing so
  809. var hasUtf = 0;
  810. var t;
  811. var i = 0;
  812. while (1) {
  813. assert(ptr + i < TOTAL_MEMORY);
  814. t = HEAPU8[(((ptr)+(i))>>0)];
  815. hasUtf |= t;
  816. if (t == 0 && !length) break;
  817. i++;
  818. if (length && i == length) break;
  819. }
  820. if (!length) length = i;
  821. var ret = '';
  822. if (hasUtf < 128) {
  823. var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
  824. var curr;
  825. while (length > 0) {
  826. curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
  827. ret = ret ? ret + curr : curr;
  828. ptr += MAX_CHUNK;
  829. length -= MAX_CHUNK;
  830. }
  831. return ret;
  832. }
  833. return Module['UTF8ToString'](ptr);
  834. }
  835. Module["Pointer_stringify"] = Pointer_stringify;
  836. // Given a pointer 'ptr' to a null-terminated ASCII-encoded string in the emscripten HEAP, returns
  837. // a copy of that string as a Javascript String object.
  838. function AsciiToString(ptr) {
  839. var str = '';
  840. while (1) {
  841. var ch = HEAP8[((ptr++)>>0)];
  842. if (!ch) return str;
  843. str += String.fromCharCode(ch);
  844. }
  845. }
  846. Module["AsciiToString"] = AsciiToString;
  847. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  848. // null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
  849. function stringToAscii(str, outPtr) {
  850. return writeAsciiToMemory(str, outPtr, false);
  851. }
  852. Module["stringToAscii"] = stringToAscii;
  853. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns
  854. // a copy of that string as a Javascript String object.
  855. var UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
  856. function UTF8ArrayToString(u8Array, idx) {
  857. var endPtr = idx;
  858. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  859. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  860. while (u8Array[endPtr]) ++endPtr;
  861. if (endPtr - idx > 16 && u8Array.subarray && UTF8Decoder) {
  862. return UTF8Decoder.decode(u8Array.subarray(idx, endPtr));
  863. } else {
  864. var u0, u1, u2, u3, u4, u5;
  865. var str = '';
  866. while (1) {
  867. // 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
  868. u0 = u8Array[idx++];
  869. if (!u0) return str;
  870. if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; }
  871. u1 = u8Array[idx++] & 63;
  872. if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; }
  873. u2 = u8Array[idx++] & 63;
  874. if ((u0 & 0xF0) == 0xE0) {
  875. u0 = ((u0 & 15) << 12) | (u1 << 6) | u2;
  876. } else {
  877. u3 = u8Array[idx++] & 63;
  878. if ((u0 & 0xF8) == 0xF0) {
  879. u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | u3;
  880. } else {
  881. u4 = u8Array[idx++] & 63;
  882. if ((u0 & 0xFC) == 0xF8) {
  883. u0 = ((u0 & 3) << 24) | (u1 << 18) | (u2 << 12) | (u3 << 6) | u4;
  884. } else {
  885. u5 = u8Array[idx++] & 63;
  886. u0 = ((u0 & 1) << 30) | (u1 << 24) | (u2 << 18) | (u3 << 12) | (u4 << 6) | u5;
  887. }
  888. }
  889. }
  890. if (u0 < 0x10000) {
  891. str += String.fromCharCode(u0);
  892. } else {
  893. var ch = u0 - 0x10000;
  894. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  895. }
  896. }
  897. }
  898. }
  899. Module["UTF8ArrayToString"] = UTF8ArrayToString;
  900. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the emscripten HEAP, returns
  901. // a copy of that string as a Javascript String object.
  902. function UTF8ToString(ptr) {
  903. return UTF8ArrayToString(HEAPU8,ptr);
  904. }
  905. Module["UTF8ToString"] = UTF8ToString;
  906. // Copies the given Javascript String object 'str' to the given byte array at address 'outIdx',
  907. // encoded in UTF8 form and null-terminated. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  908. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  909. // Parameters:
  910. // str: the Javascript string to copy.
  911. // outU8Array: the array to copy to. Each index in this array is assumed to be one 8-byte element.
  912. // outIdx: The starting offset in the array to begin the copying.
  913. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  914. // terminator, i.e. if maxBytesToWrite=1, only the null terminator will be written and nothing else.
  915. // maxBytesToWrite=0 does not write any bytes to the output, not even the null terminator.
  916. // Returns the number of bytes written, EXCLUDING the null terminator.
  917. function stringToUTF8Array(str, outU8Array, outIdx, maxBytesToWrite) {
  918. if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes.
  919. return 0;
  920. var startIdx = outIdx;
  921. var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator.
  922. for (var i = 0; i < str.length; ++i) {
  923. // 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.
  924. // See http://unicode.org/faq/utf_bom.html#utf16-3
  925. // 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
  926. var u = str.charCodeAt(i); // possibly a lead surrogate
  927. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  928. if (u <= 0x7F) {
  929. if (outIdx >= endIdx) break;
  930. outU8Array[outIdx++] = u;
  931. } else if (u <= 0x7FF) {
  932. if (outIdx + 1 >= endIdx) break;
  933. outU8Array[outIdx++] = 0xC0 | (u >> 6);
  934. outU8Array[outIdx++] = 0x80 | (u & 63);
  935. } else if (u <= 0xFFFF) {
  936. if (outIdx + 2 >= endIdx) break;
  937. outU8Array[outIdx++] = 0xE0 | (u >> 12);
  938. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  939. outU8Array[outIdx++] = 0x80 | (u & 63);
  940. } else if (u <= 0x1FFFFF) {
  941. if (outIdx + 3 >= endIdx) break;
  942. outU8Array[outIdx++] = 0xF0 | (u >> 18);
  943. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  944. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  945. outU8Array[outIdx++] = 0x80 | (u & 63);
  946. } else if (u <= 0x3FFFFFF) {
  947. if (outIdx + 4 >= endIdx) break;
  948. outU8Array[outIdx++] = 0xF8 | (u >> 24);
  949. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  950. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  951. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  952. outU8Array[outIdx++] = 0x80 | (u & 63);
  953. } else {
  954. if (outIdx + 5 >= endIdx) break;
  955. outU8Array[outIdx++] = 0xFC | (u >> 30);
  956. outU8Array[outIdx++] = 0x80 | ((u >> 24) & 63);
  957. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  958. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  959. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  960. outU8Array[outIdx++] = 0x80 | (u & 63);
  961. }
  962. }
  963. // Null-terminate the pointer to the buffer.
  964. outU8Array[outIdx] = 0;
  965. return outIdx - startIdx;
  966. }
  967. Module["stringToUTF8Array"] = stringToUTF8Array;
  968. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  969. // null-terminated and encoded in UTF8 form. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  970. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  971. // Returns the number of bytes written, EXCLUDING the null terminator.
  972. function stringToUTF8(str, outPtr, maxBytesToWrite) {
  973. assert(typeof maxBytesToWrite == 'number', 'stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  974. return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
  975. }
  976. Module["stringToUTF8"] = stringToUTF8;
  977. // Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.
  978. function lengthBytesUTF8(str) {
  979. var len = 0;
  980. for (var i = 0; i < str.length; ++i) {
  981. // 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.
  982. // See http://unicode.org/faq/utf_bom.html#utf16-3
  983. var u = str.charCodeAt(i); // possibly a lead surrogate
  984. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  985. if (u <= 0x7F) {
  986. ++len;
  987. } else if (u <= 0x7FF) {
  988. len += 2;
  989. } else if (u <= 0xFFFF) {
  990. len += 3;
  991. } else if (u <= 0x1FFFFF) {
  992. len += 4;
  993. } else if (u <= 0x3FFFFFF) {
  994. len += 5;
  995. } else {
  996. len += 6;
  997. }
  998. }
  999. return len;
  1000. }
  1001. Module["lengthBytesUTF8"] = lengthBytesUTF8;
  1002. // Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
  1003. // a copy of that string as a Javascript String object.
  1004. var UTF16Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-16le') : undefined;
  1005. function UTF16ToString(ptr) {
  1006. assert(ptr % 2 == 0, 'Pointer passed to UTF16ToString must be aligned to two bytes!');
  1007. var endPtr = ptr;
  1008. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  1009. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  1010. var idx = endPtr >> 1;
  1011. while (HEAP16[idx]) ++idx;
  1012. endPtr = idx << 1;
  1013. if (endPtr - ptr > 32 && UTF16Decoder) {
  1014. return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
  1015. } else {
  1016. var i = 0;
  1017. var str = '';
  1018. while (1) {
  1019. var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
  1020. if (codeUnit == 0) return str;
  1021. ++i;
  1022. // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
  1023. str += String.fromCharCode(codeUnit);
  1024. }
  1025. }
  1026. }
  1027. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1028. // null-terminated and encoded in UTF16 form. The copy will require at most str.length*4+2 bytes of space in the HEAP.
  1029. // Use the function lengthBytesUTF16() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1030. // Parameters:
  1031. // str: the Javascript string to copy.
  1032. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1033. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1034. // terminator, i.e. if maxBytesToWrite=2, only the null terminator will be written and nothing else.
  1035. // maxBytesToWrite<2 does not write any bytes to the output, not even the null terminator.
  1036. // Returns the number of bytes written, EXCLUDING the null terminator.
  1037. function stringToUTF16(str, outPtr, maxBytesToWrite) {
  1038. assert(outPtr % 2 == 0, 'Pointer passed to stringToUTF16 must be aligned to two bytes!');
  1039. assert(typeof maxBytesToWrite == 'number', 'stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1040. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1041. if (maxBytesToWrite === undefined) {
  1042. maxBytesToWrite = 0x7FFFFFFF;
  1043. }
  1044. if (maxBytesToWrite < 2) return 0;
  1045. maxBytesToWrite -= 2; // Null terminator.
  1046. var startPtr = outPtr;
  1047. var numCharsToWrite = (maxBytesToWrite < str.length*2) ? (maxBytesToWrite / 2) : str.length;
  1048. for (var i = 0; i < numCharsToWrite; ++i) {
  1049. // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
  1050. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1051. HEAP16[((outPtr)>>1)]=codeUnit;
  1052. outPtr += 2;
  1053. }
  1054. // Null-terminate the pointer to the HEAP.
  1055. HEAP16[((outPtr)>>1)]=0;
  1056. return outPtr - startPtr;
  1057. }
  1058. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1059. function lengthBytesUTF16(str) {
  1060. return str.length*2;
  1061. }
  1062. function UTF32ToString(ptr) {
  1063. assert(ptr % 4 == 0, 'Pointer passed to UTF32ToString must be aligned to four bytes!');
  1064. var i = 0;
  1065. var str = '';
  1066. while (1) {
  1067. var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
  1068. if (utf32 == 0)
  1069. return str;
  1070. ++i;
  1071. // 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.
  1072. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1073. if (utf32 >= 0x10000) {
  1074. var ch = utf32 - 0x10000;
  1075. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  1076. } else {
  1077. str += String.fromCharCode(utf32);
  1078. }
  1079. }
  1080. }
  1081. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1082. // null-terminated and encoded in UTF32 form. The copy will require at most str.length*4+4 bytes of space in the HEAP.
  1083. // Use the function lengthBytesUTF32() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1084. // Parameters:
  1085. // str: the Javascript string to copy.
  1086. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1087. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1088. // terminator, i.e. if maxBytesToWrite=4, only the null terminator will be written and nothing else.
  1089. // maxBytesToWrite<4 does not write any bytes to the output, not even the null terminator.
  1090. // Returns the number of bytes written, EXCLUDING the null terminator.
  1091. function stringToUTF32(str, outPtr, maxBytesToWrite) {
  1092. assert(outPtr % 4 == 0, 'Pointer passed to stringToUTF32 must be aligned to four bytes!');
  1093. assert(typeof maxBytesToWrite == 'number', 'stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1094. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1095. if (maxBytesToWrite === undefined) {
  1096. maxBytesToWrite = 0x7FFFFFFF;
  1097. }
  1098. if (maxBytesToWrite < 4) return 0;
  1099. var startPtr = outPtr;
  1100. var endPtr = startPtr + maxBytesToWrite - 4;
  1101. for (var i = 0; i < str.length; ++i) {
  1102. // 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.
  1103. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1104. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1105. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
  1106. var trailSurrogate = str.charCodeAt(++i);
  1107. codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
  1108. }
  1109. HEAP32[((outPtr)>>2)]=codeUnit;
  1110. outPtr += 4;
  1111. if (outPtr + 4 > endPtr) break;
  1112. }
  1113. // Null-terminate the pointer to the HEAP.
  1114. HEAP32[((outPtr)>>2)]=0;
  1115. return outPtr - startPtr;
  1116. }
  1117. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1118. function lengthBytesUTF32(str) {
  1119. var len = 0;
  1120. for (var i = 0; i < str.length; ++i) {
  1121. // 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.
  1122. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1123. var codeUnit = str.charCodeAt(i);
  1124. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) ++i; // possibly a lead surrogate, so skip over the tail surrogate.
  1125. len += 4;
  1126. }
  1127. return len;
  1128. }
  1129. function demangle(func) {
  1130. var __cxa_demangle_func = Module['___cxa_demangle'] || Module['__cxa_demangle'];
  1131. if (__cxa_demangle_func) {
  1132. try {
  1133. var s =
  1134. func.substr(1);
  1135. var len = lengthBytesUTF8(s)+1;
  1136. var buf = _malloc(len);
  1137. stringToUTF8(s, buf, len);
  1138. var status = _malloc(4);
  1139. var ret = __cxa_demangle_func(buf, 0, 0, status);
  1140. if (getValue(status, 'i32') === 0 && ret) {
  1141. return Pointer_stringify(ret);
  1142. }
  1143. // otherwise, libcxxabi failed
  1144. } catch(e) {
  1145. // ignore problems here
  1146. } finally {
  1147. if (buf) _free(buf);
  1148. if (status) _free(status);
  1149. if (ret) _free(ret);
  1150. }
  1151. // failure when using libcxxabi, don't demangle
  1152. return func;
  1153. }
  1154. Runtime.warnOnce('warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling');
  1155. return func;
  1156. }
  1157. function demangleAll(text) {
  1158. var regex =
  1159. /__Z[\w\d_]+/g;
  1160. return text.replace(regex,
  1161. function(x) {
  1162. var y = demangle(x);
  1163. return x === y ? x : (x + ' [' + y + ']');
  1164. });
  1165. }
  1166. function jsStackTrace() {
  1167. var err = new Error();
  1168. if (!err.stack) {
  1169. // IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
  1170. // so try that as a special-case.
  1171. try {
  1172. throw new Error(0);
  1173. } catch(e) {
  1174. err = e;
  1175. }
  1176. if (!err.stack) {
  1177. return '(no stack trace available)';
  1178. }
  1179. }
  1180. return err.stack.toString();
  1181. }
  1182. function stackTrace() {
  1183. var js = jsStackTrace();
  1184. if (Module['extraStackTrace']) js += '\n' + Module['extraStackTrace']();
  1185. return demangleAll(js);
  1186. }
  1187. Module["stackTrace"] = stackTrace;
  1188. // Memory management
  1189. var PAGE_SIZE = 16384;
  1190. var WASM_PAGE_SIZE = 65536;
  1191. var ASMJS_PAGE_SIZE = 16777216;
  1192. var MIN_TOTAL_MEMORY = 16777216;
  1193. function alignUp(x, multiple) {
  1194. if (x % multiple > 0) {
  1195. x += multiple - (x % multiple);
  1196. }
  1197. return x;
  1198. }
  1199. var HEAP;
  1200. var buffer;
  1201. var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
  1202. function updateGlobalBuffer(buf) {
  1203. Module['buffer'] = buffer = buf;
  1204. }
  1205. function updateGlobalBufferViews() {
  1206. Module['HEAP8'] = HEAP8 = new Int8Array(buffer);
  1207. Module['HEAP16'] = HEAP16 = new Int16Array(buffer);
  1208. Module['HEAP32'] = HEAP32 = new Int32Array(buffer);
  1209. Module['HEAPU8'] = HEAPU8 = new Uint8Array(buffer);
  1210. Module['HEAPU16'] = HEAPU16 = new Uint16Array(buffer);
  1211. Module['HEAPU32'] = HEAPU32 = new Uint32Array(buffer);
  1212. Module['HEAPF32'] = HEAPF32 = new Float32Array(buffer);
  1213. Module['HEAPF64'] = HEAPF64 = new Float64Array(buffer);
  1214. }
  1215. var STATIC_BASE, STATICTOP, staticSealed; // static area
  1216. var STACK_BASE, STACKTOP, STACK_MAX; // stack area
  1217. var DYNAMIC_BASE, DYNAMICTOP_PTR; // dynamic area handled by sbrk
  1218. STATIC_BASE = STATICTOP = STACK_BASE = STACKTOP = STACK_MAX = DYNAMIC_BASE = DYNAMICTOP_PTR = 0;
  1219. staticSealed = false;
  1220. // Initializes the stack cookie. Called at the startup of main and at the startup of each thread in pthreads mode.
  1221. function writeStackCookie() {
  1222. assert((STACK_MAX & 3) == 0);
  1223. HEAPU32[(STACK_MAX >> 2)-1] = 0x02135467;
  1224. HEAPU32[(STACK_MAX >> 2)-2] = 0x89BACDFE;
  1225. }
  1226. function checkStackCookie() {
  1227. if (HEAPU32[(STACK_MAX >> 2)-1] != 0x02135467 || HEAPU32[(STACK_MAX >> 2)-2] != 0x89BACDFE) {
  1228. 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));
  1229. }
  1230. // 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.
  1231. if (HEAP32[0] !== 0x63736d65 /* 'emsc' */) throw 'Runtime error: The application has corrupted its heap memory area (address zero)!';
  1232. }
  1233. function abortStackOverflow(allocSize) {
  1234. abort('Stack overflow! Attempted to allocate ' + allocSize + ' bytes on the stack, but stack has only ' + (STACK_MAX - asm.stackSave() + allocSize) + ' bytes available!');
  1235. }
  1236. function abortOnCannotGrowMemory() {
  1237. 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 ');
  1238. }
  1239. function enlargeMemory() {
  1240. abortOnCannotGrowMemory();
  1241. }
  1242. var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
  1243. var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 16777216;
  1244. if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
  1245. // Initialize the runtime's memory
  1246. // check for full engine support (use string 'subarray' to avoid closure compiler confusion)
  1247. assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
  1248. 'JS engine does not provide full typed array support');
  1249. // Use a provided buffer, if there is one, or else allocate a new one
  1250. if (Module['buffer']) {
  1251. buffer = Module['buffer'];
  1252. assert(buffer.byteLength === TOTAL_MEMORY, 'provided buffer should be ' + TOTAL_MEMORY + ' bytes, but it is ' + buffer.byteLength);
  1253. } else {
  1254. // Use a WebAssembly memory where available
  1255. {
  1256. buffer = new ArrayBuffer(TOTAL_MEMORY);
  1257. }
  1258. assert(buffer.byteLength === TOTAL_MEMORY);
  1259. }
  1260. updateGlobalBufferViews();
  1261. function getTotalMemory() {
  1262. return TOTAL_MEMORY;
  1263. }
  1264. // Endianness check (note: assumes compiler arch was little-endian)
  1265. HEAP32[0] = 0x63736d65; /* 'emsc' */
  1266. HEAP16[1] = 0x6373;
  1267. if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
  1268. Module['HEAP'] = HEAP;
  1269. Module['buffer'] = buffer;
  1270. Module['HEAP8'] = HEAP8;
  1271. Module['HEAP16'] = HEAP16;
  1272. Module['HEAP32'] = HEAP32;
  1273. Module['HEAPU8'] = HEAPU8;
  1274. Module['HEAPU16'] = HEAPU16;
  1275. Module['HEAPU32'] = HEAPU32;
  1276. Module['HEAPF32'] = HEAPF32;
  1277. Module['HEAPF64'] = HEAPF64;
  1278. function callRuntimeCallbacks(callbacks) {
  1279. while(callbacks.length > 0) {
  1280. var callback = callbacks.shift();
  1281. if (typeof callback == 'function') {
  1282. callback();
  1283. continue;
  1284. }
  1285. var func = callback.func;
  1286. if (typeof func === 'number') {
  1287. if (callback.arg === undefined) {
  1288. Module['dynCall_v'](func);
  1289. } else {
  1290. Module['dynCall_vi'](func, callback.arg);
  1291. }
  1292. } else {
  1293. func(callback.arg === undefined ? null : callback.arg);
  1294. }
  1295. }
  1296. }
  1297. var __ATPRERUN__ = []; // functions called before the runtime is initialized
  1298. var __ATINIT__ = []; // functions called during startup
  1299. var __ATMAIN__ = []; // functions called when main() is to be run
  1300. var __ATEXIT__ = []; // functions called during shutdown
  1301. var __ATPOSTRUN__ = []; // functions called after the runtime has exited
  1302. var runtimeInitialized = false;
  1303. var runtimeExited = false;
  1304. function preRun() {
  1305. // compatibility - merge in anything from Module['preRun'] at this time
  1306. if (Module['preRun']) {
  1307. if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
  1308. while (Module['preRun'].length) {
  1309. addOnPreRun(Module['preRun'].shift());
  1310. }
  1311. }
  1312. callRuntimeCallbacks(__ATPRERUN__);
  1313. }
  1314. function ensureInitRuntime() {
  1315. checkStackCookie();
  1316. if (runtimeInitialized) return;
  1317. runtimeInitialized = true;
  1318. callRuntimeCallbacks(__ATINIT__);
  1319. }
  1320. function preMain() {
  1321. checkStackCookie();
  1322. callRuntimeCallbacks(__ATMAIN__);
  1323. }
  1324. function exitRuntime() {
  1325. checkStackCookie();
  1326. callRuntimeCallbacks(__ATEXIT__);
  1327. runtimeExited = true;
  1328. }
  1329. function postRun() {
  1330. checkStackCookie();
  1331. // compatibility - merge in anything from Module['postRun'] at this time
  1332. if (Module['postRun']) {
  1333. if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
  1334. while (Module['postRun'].length) {
  1335. addOnPostRun(Module['postRun'].shift());
  1336. }
  1337. }
  1338. callRuntimeCallbacks(__ATPOSTRUN__);
  1339. }
  1340. function addOnPreRun(cb) {
  1341. __ATPRERUN__.unshift(cb);
  1342. }
  1343. Module["addOnPreRun"] = addOnPreRun;
  1344. function addOnInit(cb) {
  1345. __ATINIT__.unshift(cb);
  1346. }
  1347. Module["addOnInit"] = addOnInit;
  1348. function addOnPreMain(cb) {
  1349. __ATMAIN__.unshift(cb);
  1350. }
  1351. Module["addOnPreMain"] = addOnPreMain;
  1352. function addOnExit(cb) {
  1353. __ATEXIT__.unshift(cb);
  1354. }
  1355. Module["addOnExit"] = addOnExit;
  1356. function addOnPostRun(cb) {
  1357. __ATPOSTRUN__.unshift(cb);
  1358. }
  1359. Module["addOnPostRun"] = addOnPostRun;
  1360. // Tools
  1361. function intArrayFromString(stringy, dontAddNull, length /* optional */) {
  1362. var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
  1363. var u8array = new Array(len);
  1364. var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
  1365. if (dontAddNull) u8array.length = numBytesWritten;
  1366. return u8array;
  1367. }
  1368. Module["intArrayFromString"] = intArrayFromString;
  1369. function intArrayToString(array) {
  1370. var ret = [];
  1371. for (var i = 0; i < array.length; i++) {
  1372. var chr = array[i];
  1373. if (chr > 0xFF) {
  1374. assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
  1375. chr &= 0xFF;
  1376. }
  1377. ret.push(String.fromCharCode(chr));
  1378. }
  1379. return ret.join('');
  1380. }
  1381. Module["intArrayToString"] = intArrayToString;
  1382. // Deprecated: This function should not be called because it is unsafe and does not provide
  1383. // a maximum length limit of how many bytes it is allowed to write. Prefer calling the
  1384. // function stringToUTF8Array() instead, which takes in a maximum length that can be used
  1385. // to be secure from out of bounds writes.
  1386. function writeStringToMemory(string, buffer, dontAddNull) {
  1387. Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
  1388. var lastChar, end;
  1389. if (dontAddNull) {
  1390. // stringToUTF8Array always appends null. If we don't want to do that, remember the
  1391. // character that existed at the location where the null will be placed, and restore
  1392. // that after the write (below).
  1393. end = buffer + lengthBytesUTF8(string);
  1394. lastChar = HEAP8[end];
  1395. }
  1396. stringToUTF8(string, buffer, Infinity);
  1397. if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
  1398. }
  1399. Module["writeStringToMemory"] = writeStringToMemory;
  1400. function writeArrayToMemory(array, buffer) {
  1401. assert(array.length >= 0, 'writeArrayToMemory array must have a length (should be an array or typed array)')
  1402. HEAP8.set(array, buffer);
  1403. }
  1404. Module["writeArrayToMemory"] = writeArrayToMemory;
  1405. function writeAsciiToMemory(str, buffer, dontAddNull) {
  1406. for (var i = 0; i < str.length; ++i) {
  1407. assert(str.charCodeAt(i) === str.charCodeAt(i)&0xff);
  1408. HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
  1409. }
  1410. // Null-terminate the pointer to the HEAP.
  1411. if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
  1412. }
  1413. Module["writeAsciiToMemory"] = writeAsciiToMemory;
  1414. function unSign(value, bits, ignore) {
  1415. if (value >= 0) {
  1416. return value;
  1417. }
  1418. 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
  1419. : Math.pow(2, bits) + value;
  1420. }
  1421. function reSign(value, bits, ignore) {
  1422. if (value <= 0) {
  1423. return value;
  1424. }
  1425. var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
  1426. : Math.pow(2, bits-1);
  1427. 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
  1428. // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
  1429. // TODO: In i64 mode 1, resign the two parts separately and safely
  1430. value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
  1431. }
  1432. return value;
  1433. }
  1434. // check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
  1435. if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
  1436. var ah = a >>> 16;
  1437. var al = a & 0xffff;
  1438. var bh = b >>> 16;
  1439. var bl = b & 0xffff;
  1440. return (al*bl + ((ah*bl + al*bh) << 16))|0;
  1441. };
  1442. Math.imul = Math['imul'];
  1443. if (!Math['clz32']) Math['clz32'] = function(x) {
  1444. x = x >>> 0;
  1445. for (var i = 0; i < 32; i++) {
  1446. if (x & (1 << (31 - i))) return i;
  1447. }
  1448. return 32;
  1449. };
  1450. Math.clz32 = Math['clz32']
  1451. if (!Math['trunc']) Math['trunc'] = function(x) {
  1452. return x < 0 ? Math.ceil(x) : Math.floor(x);
  1453. };
  1454. Math.trunc = Math['trunc'];
  1455. var Math_abs = Math.abs;
  1456. var Math_cos = Math.cos;
  1457. var Math_sin = Math.sin;
  1458. var Math_tan = Math.tan;
  1459. var Math_acos = Math.acos;
  1460. var Math_asin = Math.asin;
  1461. var Math_atan = Math.atan;
  1462. var Math_atan2 = Math.atan2;
  1463. var Math_exp = Math.exp;
  1464. var Math_log = Math.log;
  1465. var Math_sqrt = Math.sqrt;
  1466. var Math_ceil = Math.ceil;
  1467. var Math_floor = Math.floor;
  1468. var Math_pow = Math.pow;
  1469. var Math_imul = Math.imul;
  1470. var Math_fround = Math.fround;
  1471. var Math_round = Math.round;
  1472. var Math_min = Math.min;
  1473. var Math_clz32 = Math.clz32;
  1474. var Math_trunc = Math.trunc;
  1475. // A counter of dependencies for calling run(). If we need to
  1476. // do asynchronous work before running, increment this and
  1477. // decrement it. Incrementing must happen in a place like
  1478. // PRE_RUN_ADDITIONS (used by emcc to add file preloading).
  1479. // Note that you can add dependencies in preRun, even though
  1480. // it happens right before run - run will be postponed until
  1481. // the dependencies are met.
  1482. var runDependencies = 0;
  1483. var runDependencyWatcher = null;
  1484. var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
  1485. var runDependencyTracking = {};
  1486. function getUniqueRunDependency(id) {
  1487. var orig = id;
  1488. while (1) {
  1489. if (!runDependencyTracking[id]) return id;
  1490. id = orig + Math.random();
  1491. }
  1492. return id;
  1493. }
  1494. function addRunDependency(id) {
  1495. runDependencies++;
  1496. if (Module['monitorRunDependencies']) {
  1497. Module['monitorRunDependencies'](runDependencies);
  1498. }
  1499. if (id) {
  1500. assert(!runDependencyTracking[id]);
  1501. runDependencyTracking[id] = 1;
  1502. if (runDependencyWatcher === null && typeof setInterval !== 'undefined') {
  1503. // Check for missing dependencies every few seconds
  1504. runDependencyWatcher = setInterval(function() {
  1505. if (ABORT) {
  1506. clearInterval(runDependencyWatcher);
  1507. runDependencyWatcher = null;
  1508. return;
  1509. }
  1510. var shown = false;
  1511. for (var dep in runDependencyTracking) {
  1512. if (!shown) {
  1513. shown = true;
  1514. Module.printErr('still waiting on run dependencies:');
  1515. }
  1516. Module.printErr('dependency: ' + dep);
  1517. }
  1518. if (shown) {
  1519. Module.printErr('(end of list)');
  1520. }
  1521. }, 10000);
  1522. }
  1523. } else {
  1524. Module.printErr('warning: run dependency added without ID');
  1525. }
  1526. }
  1527. Module["addRunDependency"] = addRunDependency;
  1528. function removeRunDependency(id) {
  1529. runDependencies--;
  1530. if (Module['monitorRunDependencies']) {
  1531. Module['monitorRunDependencies'](runDependencies);
  1532. }
  1533. if (id) {
  1534. assert(runDependencyTracking[id]);
  1535. delete runDependencyTracking[id];
  1536. } else {
  1537. Module.printErr('warning: run dependency removed without ID');
  1538. }
  1539. if (runDependencies == 0) {
  1540. if (runDependencyWatcher !== null) {
  1541. clearInterval(runDependencyWatcher);
  1542. runDependencyWatcher = null;
  1543. }
  1544. if (dependenciesFulfilled) {
  1545. var callback = dependenciesFulfilled;
  1546. dependenciesFulfilled = null;
  1547. callback(); // can add another dependenciesFulfilled
  1548. }
  1549. }
  1550. }
  1551. Module["removeRunDependency"] = removeRunDependency;
  1552. Module["preloadedImages"] = {}; // maps url to image data
  1553. Module["preloadedAudios"] = {}; // maps url to audio data
  1554. var memoryInitializer = null;
  1555. // === Body ===
  1556. var ASM_CONSTS = [function($0, $1) { { Module.printErr('bad name in getProcAddress: ' + [Pointer_stringify($0), Pointer_stringify($1)]); } }];
  1557. function _emscripten_asm_const_iii(code, a0, a1) {
  1558. return ASM_CONSTS[code](a0, a1);
  1559. }
  1560. STATIC_BASE = 8;
  1561. STATICTOP = STATIC_BASE + 25584;
  1562. /* global initializers */ __ATINIT__.push();
  1563. /* memory initializer */ allocate([32,3,0,0,194,1,0,0,2,0,0,0,4,0,0,0,8,0,0,0,4,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,32,0,0,176,1,0,0,0,0,0,0,0,0,0,32,37,249,142,0,10,2,0,0,128,190,125,95,244,125,31,160,242,43,74,30,9,82,8,0,64,34,65,80,20,4,16,32,32,41,46,18,8,34,8,0,32,34,65,80,20,4,16,32,32,249,16,76,8,250,62,60,16,34,125,222,247,125,16,32,32,161,232,50,8,34,8,0,8,34,5,16,4,69,16,0,240,163,164,50,8,82,8,0,4,34,5,16,4,69,16,32,32,249,226,94,8,2,0,129,2,62,125,31,244,125,16,0,0,32,0,0,176,1,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,15,0,192,15,224,247,251,125,126,191,95,232,190,80,0,162,8,8,68,232,47,20,10,133,2,129,80,72,160,80,0,162,40,228,73,40,40,20,10,132,2,129,64,72,160,72,0,190,15,2,16,175,235,247,9,132,62,159,216,79,160,71,0,34,136,228,9,161,42,20,10,132,2,129,80,72,160,72,0,34,40,8,4,160,47,20,10,133,2,129,80,72,162,80,0,190,143,0,0,33,32,244,251,125,126,129,95,232,156,208,7,0,128,0,0,224,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,1,12,0,130,66,191,223,239,247,251,11,5,5,133,66,191,4,72,0,198,66,161,80,40,20,64,8,5,37,133,66,160,8,168,0,170,70,161,80,40,20,64,8,5,37,133,66,144,16,8,0,146,74,161,95,232,247,67,8,5,37,121,126,136,32,8,0,130,82,161,64,40,1,66,8,137,36,133,64,132,64,8,0,130,98,161,64,42,2,66,8,81,36,133,64,130,128,8,0,130,66,191,192,47,244,67,248,33,252,133,126,191,0,9,62,0,0,0,0,4,0,0,0,0,0,0,0,128,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,0,4,0,32,72,65,0,0,0,0,0,8,0,0,4,4,0,4,60,32,0,65,0,0,0,0,0,8,0,0,240,125,223,247,133,239,75,81,190,239,251,190,239,59,81,4,0,69,65,20,133,40,74,73,170,40,138,162,32,8,81,4,240,69,65,244,157,40,74,71,170,40,138,162,224,11,81,4,16,69,65,20,132,40,74,73,170,40,138,162,0,10,145,2,240,125,223,247,133,47,74,209,170,232,251,190,224,123,31,1,0,0,0,0,4,8,64,0,0,0,8,32,0,0,0,0,0,0,0,0,132,15,96,0,0,0,8,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,1,15,0,0,0,0,0,0,0,0,0,0,0,0,0,36,1,9,0,0,0,0,0,0,0,0,0,6,0,0,0,36,1,9,0,0,0,0,0,0,0,128,16,9,162,40,250,36,1,9,0,0,0,0,0,0,0,0,62,1,42,37,66,34,82,9,0,0,0,0,0,0,0,128,138,3,42,34,34,36,41,9,0,0,0,0,0,0,0,128,10,1,42,37,18,36,1,9,0,0,0,0,0,0,0,128,10,1,190,232,251,36,1,9,0,0,0,0,0,0,0,128,190,14,0,0,2,172,1,15,0,0,0,0,0,0,0,128,4,0,0,224,3,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,0,0,14,184,67,132,3,58,32,0,128,160,190,2,32,0,0,240,138,32,82,196,2,43,32,4,34,145,2,248,59,0,240,7,142,56,75,228,2,58,32,2,28,138,30,8,42,233,17,4,224,11,66,244,2,130,36,1,20,4,20,232,186,4,209,5,128,184,195,231,10,58,137,0,28,14,60,40,2,9,80,4,128,0,64,196,2,128,68,0,34,132,32,232,2,0,80,4,0,0,64,128,2,0,32,5,0,142,62,8,2,0,16,4,224,3,64,128,66,0,0,7,0,132,0,248,3,0,240,7,0,0,64,128,34,0,0,4,0,0,0,0,0,0,0,0,0,0,64,128,2,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,7,128,0,194,160,72,24,0,0,1,132,33,9,146,2,66,38,4,1,33,81,0,0,127,63,2,66,2,16,41,0,34,20,192,239,247,251,253,126,9,161,223,239,247,187,187,3,18,15,68,40,20,10,133,66,9,129,64,32,16,16,17,1,8,4,68,40,20,10,133,66,127,129,64,32,16,16,17,1,4,130,199,239,247,251,253,126,9,129,207,231,243,17,17,1,50,169,80,40,20,10,133,66,9,161,64,32,16,16,17,1,64,184,80,40,20,10,133,66,121,191,223,239,247,187,187,3,32,160,31,0,0,0,0,0,0,16,0,0,0,0,0,0,112,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,2,8,131,34,1,0,2,8,67,2,1,0,1,1,124,20,4,132,68,1,0,32,4,132,4,128,8,63,130,0,132,66,191,223,239,247,3,126,161,80,40,20,10,33,0,0,132,70,161,80,40,20,138,82,161,80,40,20,122,161,239,3,158,74,161,80,40,20,82,82,161,80,40,20,74,31,8,2,132,82,161,80,40,20,34,74,161,80,40,244,75,161,239,3,132,98,161,80,40,20,82,74,161,80,40,4,122,161,40,2,124,66,191,223,239,247,139,126,191,223,239,247,11,189,239,3,0,0,0,0,0,0,0,4,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,5,32,0,0,4,132,0,34,129,69,17,16,66,1,0,148,66,81,0,0,8,66,81,148,42,162,32,8,165,80,0,0,0,32,0,0,0,0,0,0,0,5,0,0,0,0,8,190,239,251,254,251,190,239,251,20,145,235,251,190,239,251,0,32,8,130,32,10,162,40,138,20,145,40,138,162,40,138,62,190,239,251,254,11,190,239,251,20,145,40,138,162,40,138,0,162,40,138,34,8,130,32,8,20,145,40,138,162,40,138,8,190,239,251,254,251,190,239,251,20,145,47,250,190,239,251,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,33,0,4,0,0,0,0,0,0,0,0,0,0,0,0,130,80,20,2,20,0,0,0,0,0,0,0,0,0,0,16,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,190,40,138,162,40,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,168,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,190,239,251,190,47,62,0,0,0,0,0,0,0,0,0,0,4,0,0,0,40,32,0,0,0,0,0,0,0,0,0,0,0,0,0,128,15,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,2,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,7,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,7,0,0,0,3,0,0,0,5,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,4,0,0,0,3,0,0,0,5,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,9,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,5,0,0,0,255,255,255,255,0,1,0,0,255,255,255,255,0,0,128,191,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,13,0,0,0,15,0,0,0,17,0,0,0,19,0,0,0,23,0,0,0,27,0,0,0,31,0,0,0,35,0,0,0,43,0,0,0,51,0,0,0,59,0,0,0,67,0,0,0,83,0,0,0,99,0,0,0,115,0,0,0,131,0,0,0,163,0,0,0,195,0,0,0,227,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,12,0,0,0,12,0,0,0,13,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,7,0,0,0,9,0,0,0,13,0,0,0,17,0,0,0,25,0,0,0,33,0,0,0,49,0,0,0,65,0,0,0,97,0,0,0,129,0,0,0,193,0,0,0,1,1,0,0,129,1,0,0,1,2,0,0,1,3,0,0,1,4,0,0,1,6,0,0,1,8,0,0,1,12,0,0,1,16,0,0,1,24,0,0,1,32,0,0,1,48,0,0,1,64,0,0,1,96,0,0,0,0,0,0,0,0,0,0,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,196,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,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,239,95,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,8,16,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,116,101,120,116,93,32,101,120,97,109,112,108,101,32,45,32,114,97,121,108,105,98,32,102,111,110,116,115,0,190,33,55,255,255,161,0,255,0,117,44,255,0,82,172,255,112,31,126,255,0,158,47,255,255,203,0,255,230,41,55,255,65,76,65,71,65,82,68,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,72,101,119,101,116,116,32,84,115,111,105,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,73,88,69,76,80,76,65,89,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,65,108,101,107,115,97,110,100,101,114,32,83,104,101,118,99,104,117,107,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,69,67,72,65,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,67,97,112,116,97,105,110,32,70,97,108,99,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,69,84,66,65,67,75,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,66,114,105,97,110,32,75,101,110,116,32,40,65,69,110,105,103,109,97,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,79,77,85,76,85,83,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,72,101,119,101,116,116,32,84,115,111,105,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,73,88,65,78,84,73,81,85,65,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,71,101,114,104,97,114,100,32,71,114,111,115,115,109,97,110,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65,76,80,72,65,95,66,69,84,65,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,66,114,105,97,110,32,75,101,110,116,32,40,65,69,110,105,103,109,97,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74,85,80,73,84,69,82,95,67,82,65,83,72,32,70,79,78,84,32,100,101,115,105,103,110,101,100,32,98,121,32,66,114,105,97,110,32,75,101,110,116,32,40,65,69,110,105,103,109,97,41,0,0,0,0,0,0,0,0,0,0,0,0,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,97,108,97,103,97,114,100,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,112,105,120,101,108,112,108,97,121,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,109,101,99,104,97,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,115,101,116,98,97,99,107,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,114,111,109,117,108,117,115,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,112,105,120,97,110,116,105,113,117,97,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,97,108,112,104,97,95,98,101,116,97,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,102,111,110,116,115,47,106,117,112,105,116,101,114,95,99,114,97,115,104,46,112,110,103,0,102,114,101,101,32,102,111,110,116,115,32,105,110,99,108,117,100,101,100,32,119,105,116,104,32,114,97,121,108,105,98,0,73,110,105,116,105,97,108,105,122,105,110,103,32,114,97,121,108,105,98,32,40,118,49,46,55,46,48,41,0,35,99,97,110,118,97,115,0,84,97,114,103,101,116,32,116,105,109,101,32,112,101,114,32,102,114,97,109,101,58,32,37,48,50,46,48,51,102,32,109,105,108,108,105,115,101,99,111,110,100,115,0,69,115,99,97,112,101,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,102,117,108,108,115,99,114,101,101,110,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,119,105,110,100,111,119,101,100,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,91,84,69,88,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,102,111,110,116,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,50,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,84,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,84,101,120,116,117,114,101,32,99,114,101,97,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,84,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,99,114,101,97,116,101,100,0,73,109,97,103,101,32,100,97,116,97,32,102,111,114,109,97,116,32,105,115,32,99,111,109,112,114,101,115,115,101,100,44,32,99,97,110,32,110,111,116,32,98,101,32,99,111,110,118,101,114,116,101,100,0,70,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,102,111,114,32,112,105,120,101,108,32,100,97,116,97,32,114,101,116,114,105,101,118,97,108,0,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,71,76,70,87,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,77,83,65,65,32,120,52,0,67,108,111,115,101,115,116,32,102,117,108,108,115,99,114,101,101,110,32,118,105,100,101,111,109,111,100,101,58,32,37,105,32,120,32,37,105,0,71,76,70,87,32,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,87,105,110,100,111,119,0,68,105,115,112,108,97,121,32,100,101,118,105,99,101,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,82,101,110,100,101,114,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,83,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,86,105,101,119,112,111,114,116,32,111,102,102,115,101,116,115,58,32,37,105,44,32,37,105,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,86,83,89,78,67,0,71,80,85,58,32,86,101,110,100,111,114,58,32,32,32,37,115,0,71,80,85,58,32,82,101,110,100,101,114,101,114,58,32,37,115,0,71,80,85,58,32,86,101,114,115,105,111,110,58,32,32,37,115,0,71,80,85,58,32,71,76,83,76,58,32,32,32,32,32,37,115,0,32,0,78,117,109,98,101,114,32,111,102,32,115,117,112,112,111,114,116,101,100,32,101,120,116,101,110,115,105,111,110,115,58,32,37,105,0,71,76,95,79,69,83,95,118,101,114,116,101,120,95,97,114,114,97,121,95,111,98,106,101,99,116,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,79,69,83,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,71,76,95,79,69,83,95,116,101,120,116,117,114,101,95,110,112,111,116,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,115,51,116,99,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,87,69,66,75,73,84,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,79,69,83,95,99,111,109,112,114,101,115,115,101,100,95,69,84,67,49,95,82,71,66,56,95,116,101,120,116,117,114,101,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,101,116,99,49,0,71,76,95,65,82,66,95,69,83,51,95,99,111,109,112,97,116,105,98,105,108,105,116,121,0,71,76,95,73,77,71,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,112,118,114,116,99,0,71,76,95,75,72,82,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,97,115,116,99,95,104,100,114,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,102,105,108,116,101,114,95,97,110,105,115,111,116,114,111,112,105,99,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,109,105,114,114,111,114,95,99,108,97,109,112,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,86,65,79,32,102,117,110,99,116,105,111,110,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,86,65,79,32,117,115,97,103,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,102,117,108,108,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,108,105,109,105,116,101,100,32,78,80,79,84,32,115,117,112,112,111,114,116,32,40,110,111,45,109,105,112,109,97,112,115,44,32,110,111,45,114,101,112,101,97,116,41,0,91,69,88,84,69,78,83,73,79,78,93,32,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,50,47,69,65,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,110,105,115,111,116,114,111,112,105,99,32,116,101,120,116,117,114,101,115,32,102,105,108,116,101,114,105,110,103,32,115,117,112,112,111,114,116,101,100,32,40,109,97,120,58,32,37,46,48,102,88,41,0,91,69,88,84,69,78,83,73,79,78,93,32,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,116,101,120,116,117,114,101,32,109,111,100,101,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,79,112,101,110,71,76,32,100,101,102,97,117,108,116,32,115,116,97,116,101,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,67,80,85,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,44,32,116,114,105,97,110,103,108,101,115,44,32,113,117,97,100,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,51,32,118,101,114,116,101,120,80,111,115,105,116,105,111,110,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,50,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,52,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,109,97,116,52,32,109,118,112,77,97,116,114,105,120,59,32,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,102,114,97,103,84,101,120,67,111,111,114,100,32,61,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,10,32,32,32,32,102,114,97,103,67,111,108,111,114,32,61,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,10,32,32,32,32,103,108,95,80,111,115,105,116,105,111,110,32,61,32,109,118,112,77,97,116,114,105,120,42,118,101,99,52,40,118,101,114,116,101,120,80,111,115,105,116,105,111,110,44,32,49,46,48,41,59,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,112,114,101,99,105,115,105,111,110,32,109,101,100,105,117,109,112,32,102,108,111,97,116,59,32,32,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,115,97,109,112,108,101,114,50,68,32,116,101,120,116,117,114,101,48,59,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,118,101,99,52,32,99,111,108,68,105,102,102,117,115,101,59,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,118,101,99,52,32,116,101,120,101,108,67,111,108,111,114,32,61,32,116,101,120,116,117,114,101,50,68,40,116,101,120,116,117,114,101,48,44,32,102,114,97,103,84,101,120,67,111,111,114,100,41,59,32,10,32,32,32,32,103,108,95,70,114,97,103,67,111,108,111,114,32,61,32,116,101,120,101,108,67,111,108,111,114,42,99,111,108,68,105,102,102,117,115,101,42,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,118,101,114,116,101,120,80,111,115,105,116,105,111,110,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,50,0,118,101,114,116,101,120,78,111,114,109,97,108,0,118,101,114,116,101,120,84,97,110,103,101,110,116,0,118,101,114,116,101,120,67,111,108,111,114,0,109,118,112,77,97,116,114,105,120,0,99,111,108,68,105,102,102,117,115,101,0,99,111,108,65,109,98,105,101,110,116,0,99,111,108,83,112,101,99,117,108,97,114,0,116,101,120,116,117,114,101,48,0,116,101,120,116,117,114,101,49,0,116,101,120,116,117,114,101,50,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,118,101,114,116,101,120,32,115,104,97,100,101,114,46,46,46,0,37,115,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,86,101,114,116,101,120,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,102,114,97,103,109,101,110,116,32,115,104,97,100,101,114,46,46,46,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,114,97,103,109,101,110,116,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,108,105,110,107,32,115,104,97,100,101,114,32,112,114,111,103,114,97,109,46,46,46,0,91,83,72,68,82,32,73,68,32,37,105,93,32,83,104,97,100,101,114,32,112,114,111,103,114,97,109,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,79,87,78,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,32,40,37,105,120,37,105,41,32,105,115,32,98,105,103,103,101,114,32,116,104,97,110,32,100,105,115,112,108,97,121,32,115,105,122,101,32,40,37,105,120,37,105,41,0,68,111,119,110,115,99,97,108,101,32,109,97,116,114,105,120,32,103,101,110,101,114,97,116,101,100,44,32,99,111,110,116,101,110,116,32,119,105,108,108,32,98,101,32,114,101,110,100,101,114,101,100,32,97,116,58,32,37,105,32,120,32,37,105,0,85,80,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,32,45,62,32,68,105,115,112,108,97,121,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,91,71,76,70,87,51,32,69,114,114,111,114,93,32,67,111,100,101,58,32,37,105,32,68,101,99,114,105,112,116,105,111,110,58,32,37,115,0,73,78,70,79,58,32,0,87,65,82,78,73,78,71,58,32,0,87,105,110,100,111,119,32,99,108,111,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,40,98,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,41,32,102,114,111,109,32,86,82,65,77,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,83,116,97,99,107,32,66,117,102,102,101,114,32,79,118,101,114,102,108,111,119,32,40,77,65,88,32,37,105,32,77,97,116,114,105,120,41,0,77,65,88,95,76,73,78,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,84,82,73,65,78,71,76,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,81,85,65,68,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,109,111,100,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,77,97,120,105,109,117,109,32,97,110,105,115,111,116,114,111,112,105,99,32,102,105,108,116,101,114,32,108,101,118,101,108,32,115,117,112,112,111,114,116,101,100,32,105,115,32,37,105,88,0,65,110,105,115,111,116,114,111,112,105,99,32,102,105,108,116,101,114,105,110,103,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,114,105,46,98,105,116,115,95,112,101,114,95,99,104,97,110,110,101,108,32,61,61,32,49,54,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,105,109,97,103,101,46,104,0,115,116,98,105,95,95,108,111,97,100,95,97,110,100,95,112,111,115,116,112,114,111,99,101,115,115,95,56,98,105,116,0,111,117,116,111,102,109,101,109,0,117,110,107,110,111,119,110,32,105,109,97,103,101,32,116,121,112,101,0,98,97,100,32,114,101,113,95,99,111,109,112,0,114,101,113,95,99,111,109,112,32,62,61,32,49,32,38,38,32,114,101,113,95,99,111,109,112,32,60,61,32,52,0,115,116,98,105,95], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1564. /* memory initializer */ allocate([95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,49,54,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,0,109,117,108,116,105,112,108,101,32,73,72,68,82,0,98,97,100,32,73,72,68,82,32,108,101,110,0,116,111,111,32,108,97,114,103,101,0,49,47,50,47,52,47,56,47,49,54,45,98,105,116,32,111,110,108,121,0,98,97,100,32,99,116,121,112,101,0,98,97,100,32,99,111,109,112,32,109,101,116,104,111,100,0,98,97,100,32,102,105,108,116,101,114,32,109,101,116,104,111,100,0,98,97,100,32,105,110,116,101,114,108,97,99,101,32,109,101,116,104,111,100,0,48,45,112,105,120,101,108,32,105,109,97,103,101,0,102,105,114,115,116,32,110,111,116,32,73,72,68,82,0,105,110,118,97,108,105,100,32,80,76,84,69,0,116,82,78,83,32,97,102,116,101,114,32,73,68,65,84,0,116,82,78,83,32,98,101,102,111,114,101,32,80,76,84,69,0,98,97,100,32,116,82,78,83,32,108,101,110,0,116,82,78,83,32,119,105,116,104,32,97,108,112,104,97,0,0,255,85,0,17,0,0,0,1,110,111,32,80,76,84,69,0,111,117,116,111,102,100,97,116,97,0,110,111,32,73,68,65,84,0,88,88,88,88,32,80,78,71,32,99,104,117,110,107,32,110,111,116,32,107,110,111,119,110,0,115,45,62,105,109,103,95,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,100,101,95,105,112,104,111,110,101,0,111,117,116,95,110,32,61,61,32,50,32,124,124,32,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,49,54,0,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,32,124,124,32,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,43,49,0,115,116,98,105,95,95,99,114,101,97,116,101,95,112,110,103,95,105,109,97,103,101,95,114,97,119,0,110,111,116,32,101,110,111,117,103,104,32,112,105,120,101,108,115,0,105,109,103,95,119,105,100,116,104,95,98,121,116,101,115,32,60,61,32,120,0,0,1,0,5,6,105,109,103,95,110,43,49,32,61,61,32,111,117,116,95,110,0,105,110,118,97,108,105,100,32,102,105,108,116,101,114,0,105,109,103,95,110,32,61,61,32,51,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,98,97,100,32,104,117,102,102,109,97,110,32,99,111,100,101,0,98,97,100,32,100,105,115,116,0,111,117,116,112,117,116,32,98,117,102,102,101,114,32,108,105,109,105,116,0,122,45,62,115,105,122,101,91,98,93,32,61,61,32,115,0,115,116,98,105,95,95,122,104,117,102,102,109,97,110,95,100,101,99,111,100,101,95,115,108,111,119,112,97,116,104,0,98,105,116,115,32,60,61,32,49,54,0,115,116,98,105,95,95,98,105,116,95,114,101,118,101,114,115,101,0,122,45,62,99,111,100,101,95,98,117,102,102,101,114,32,60,32,40,49,85,32,60,60,32,122,45,62,110,117,109,95,98,105,116,115,41,0,115,116,98,105,95,95,102,105,108,108,95,98,105,116,115,0,98,97,100,32,99,111,100,101,108,101,110,103,116,104,115,0,99,32,61,61,32,49,56,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,104,117,102,102,109,97,110,95,99,111,100,101,115,0,98,97,100,32,115,105,122,101,115,0,97,45,62,110,117,109,95,98,105,116,115,32,61,61,32,48,0,115,116,98,105,95,95,112,97,114,115,101,95,117,110,99,111,109,112,114,101,115,115,101,100,95,98,108,111,99,107,0,122,108,105,98,32,99,111,114,114,117,112,116,0,114,101,97,100,32,112,97,115,116,32,98,117,102,102,101,114,0,98,97,100,32,122,108,105,98,32,104,101,97,100,101,114,0,110,111,32,112,114,101,115,101,116,32,100,105,99,116,0,98,97,100,32,99,111,109,112,114,101,115,115,105,111,110,0,98,97,100,32,112,110,103,32,115,105,103,0,91,37,115,93,32,82,101,115,111,117,114,99,101,32,102,105,108,101,32,100,111,101,115,32,110,111,116,32,99,111,110,116,97,105,110,32,105,109,97,103,101,32,100,97,116,97,0,46,112,110,103,0,91,37,115,93,32,73,109,97,103,101,32,102,105,108,101,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,37,115,93,32,73,109,97,103,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,91,37,115,93,32,73,109,97,103,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,73,109,97,103,101,32,102,111,114,109,97,116,32,110,111,116,32,114,101,99,111,103,110,105,122,101,100,0,91,37,115,93,32,114,82,69,83,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,91,37,115,93,32,84,104,105,115,32,105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,115,111,117,114,99,101,32,100,97,116,97,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,113,117,101,115,116,101,100,32,114,101,115,111,117,114,99,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,102,111,117,110,100,0,79,117,116,32,111,102,32,109,101,109,111,114,121,32,119,104,105,108,101,32,100,101,99,111,109,112,114,101,115,115,105,110,103,32,100,97,116,97,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,105,111,110,32,102,97,105,108,101,100,0,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,32,100,111,32,110,111,116,32,109,97,116,99,104,44,32,100,97,116,97,32,109,97,121,32,98,101,32,99,111,114,114,117,112,116,101,100,0,32,45,45,32,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,32,45,45,32,82,101,116,117,114,110,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,102,114,111,109,32,37,117,32,98,121,116,101,115,32,116,111,32,37,117,32,98,121,116,101,115,0,5,5,4,0,16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,2,3,7,0,3,3,11,0,65,108,112,104,97,32,109,97,115,107,32,109,117,115,116,32,98,101,32,115,97,109,101,32,115,105,122,101,32,97,115,32,105,109,97,103,101,0,65,108,112,104,97,32,109,97,115,107,32,99,97,110,32,110,111,116,32,98,101,32,97,112,112,108,105,101,100,32,116,111,32,99,111,109,112,114,101,115,115,101,100,32,100,97,116,97,32,102,111,114,109,97,116,115,0,91,84,69,88,32,73,68,32,37,105,93,32,78,111,32,109,105,112,109,97,112,115,32,97,118,97,105,108,97,98,108,101,32,102,111,114,32,84,82,73,76,73,78,69,65,82,32,116,101,120,116,117,114,101,32,102,105,108,116,101,114,105,110,103,0,46,114,114,101,115,0,46,116,116,102,0,46,102,110,116,0,91,37,115,93,32,83,112,114,105,116,101,70,111,110,116,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,44,32,117,115,105,110,103,32,100,101,102,97,117,108,116,32,102,111,110,116,0,83,112,114,105,116,101,70,111,110,116,32,100,97,116,97,32,112,97,114,115,101,100,32,99,111,114,114,101,99,116,108,121,32,102,114,111,109,32,105,109,97,103,101,0,73,109,97,103,101,32,102,105,108,101,32,108,111,97,100,101,100,32,99,111,114,114,101,99,116,108,121,32,97,115,32,83,112,114,105,116,101,70,111,110,116,0,114,116,0,91,37,115,93,32,70,78,84,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,108,105,110,101,72,101,105,103,104,116,0,108,105,110,101,72,101,105,103,104,116,61,37,105,32,98,97,115,101,61,37,105,32,115,99,97,108,101,87,61,37,105,32,115,99,97,108,101,72,61,37,105,0,91,37,115,93,32,70,111,110,116,32,115,105,122,101,58,32,37,105,0,91,37,115,93,32,70,111,110,116,32,116,101,120,116,117,114,101,32,115,99,97,108,101,58,32,37,105,120,37,105,0,102,105,108,101,0,102,105,108,101,61,34,37,49,50,56,91,94,34,93,34,0,91,37,115,93,32,70,111,110,116,32,116,101,120,116,117,114,101,32,102,105,108,101,110,97,109,101,58,32,37,115,0,99,111,117,110,116,0,99,111,117,110,116,61,37,105,0,91,37,115,93,32,70,111,110,116,32,110,117,109,32,99,104,97,114,115,58,32,37,105,0,91,37,115,93,32,70,111,110,116,32,116,101,120,116,117,114,101,32,108,111,97,100,105,110,103,32,112,97,116,104,58,32,37,115,0,99,104,97,114,32,105,100,61,37,105,32,120,61,37,105,32,121,61,37,105,32,119,105,100,116,104,61,37,105,32,104,101,105,103,104,116,61,37,105,32,120,111,102,102,115,101,116,61,37,105,32,121,111,102,102,115,101,116,61,37,105,32,120,97,100,118,97,110,99,101,61,37,105,0,91,37,115,93,32,83,112,114,105,116,101,70,111,110,116,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,85,110,108,111,97,100,101,100,32,115,112,114,105,116,101,32,102,111,110,116,32,100,97,116,97,0,91,37,115,93,32,83,112,114,105,116,101,70,111,110,116,32,99,111,117,108,100,32,110,111,116,32,98,101,32,103,101,110,101,114,97,116,101,100,44,32,117,115,105,110,103,32,100,101,102,97,117,108,116,32,102,111,110,116,0,84,84,70,32,115,112,114,105,116,101,102,111,110,116,32,108,111,97,100,105,110,103,58,32,80,114,101,100,105,99,116,101,100,32,116,101,120,116,117,114,101,32,115,105,122,101,58,32,37,105,120,37,105,0,114,98,0,91,37,115,93,32,84,84,70,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,84,84,70,32,115,112,114,105,116,101,102,111,110,116,32,108,111,97,100,105,110,103,58,32,102,105,114,115,116,32,99,104,97,114,97,99,116,101,114,32,105,115,32,110,111,116,32,83,80,65,67,69,40,51,50,41,32,99,104,97,114,97,99,116,101,114,0,84,84,70,32,115,112,114,105,116,101,102,111,110,116,32,108,111,97,100,105,110,103,58,32,78,111,116,32,97,108,108,32,116,104,101,32,99,104,97,114,97,99,116,101,114,115,32,102,105,116,32,105,110,32,116,104,101,32,102,111,110,116,0,120,43,103,119,32,60,32,112,119,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,116,114,117,101,116,121,112,101,46,104,0,115,116,98,116,116,95,66,97,107,101,70,111,110,116,66,105,116,109,97,112,95,105,110,116,101,114,110,97,108,0,122,45,62,100,105,114,101,99,116,105,111,110,0,115,116,98,116,116,95,95,114,97,115,116,101,114,105,122,101,95,115,111,114,116,101,100,95,101,100,103,101,115,0,122,45,62,101,121,32,62,61,32,115,99,97,110,95,121,95,116,111,112,0,101,45,62,101,121,32,62,61,32,121,95,116,111,112,0,115,116,98,116,116,95,95,102,105,108,108,95,97,99,116,105,118,101,95,101,100,103,101,115,95,110,101,119,0,101,45,62,115,121,32,60,61,32,121,95,98,111,116,116,111,109,32,38,38,32,101,45,62,101,121,32,62,61,32,121,95,116,111,112,0,120,32,62,61,32,48,32,38,38,32,120,32,60,32,108,101,110,0,102,97,98,115,40,97,114,101,97,41,32,60,61,32,49,46,48,49,102,0,121,48,32,60,32,121,49,0,115,116,98,116,116,95,95,104,97,110,100,108,101,95,99,108,105,112,112,101,100,95,101,100,103,101,0,101,45,62,115,121,32,60,61,32,101,45,62,101,121,0,120,49,32,60,61,32,120,43,49,0,120,49,32,62,61,32,120,0,120,49,32,60,61,32,120,0,120,49,32,62,61,32,120,43,49,0,120,49,32,62,61,32,120,32,38,38,32,120,49,32,60,61,32,120,43,49,0,120,48,32,62,61,32,120,32,38,38,32,120,48,32,60,61,32,120,43,49,32,38,38,32,120,49,32,62,61,32,120,32,38,38,32,120,49,32,60,61,32,120,43,49,0,122,32,33,61,32,40,40,118,111,105,100,42,41,48,41,0,115,116,98,116,116,95,95,110,101,119,95,97,99,116,105,118,101,0,33,105,110,102,111,45,62,99,102,102,46,115,105,122,101,0,115,116,98,116,116,95,95,71,101,116,71,108,121,102,79,102,102,115,101,116,0,48,0,115,116,98,116,116,95,95,99,102,102,95,105,110,116,0,110,32,62,61,32,49,32,38,38,32,110,32,60,61,32,52,0,115,116,98,116,116,95,95,98,117,102,95,103,101,116,0,115,105,122,101,32,60,32,48,120,52,48,48,48,48,48,48,48,0,115,116,98,116,116,95,95,110,101,119,95,98,117,102,0,33,40,111,32,62,32,98,45,62,115,105,122,101,32,124,124,32,111,32,60,32,48,41,0,115,116,98,116,116,95,95,98,117,102,95,115,101,101,107,0,111,102,102,115,105,122,101,32,62,61,32,49,32,38,38,32,111,102,102,115,105,122,101,32,60,61,32,52,0,115,116,98,116,116,95,95,99,102,102,95,103,101,116,95,105,110,100,101,120,0,98,48,32,62,61,32,50,56,0,115,116,98,116,116,95,95,99,102,102,95,115,107,105,112,95,111,112,101,114,97,110,100,0,105,32,62,61,32,48,32,38,38,32,105,32,60,32,99,111,117,110,116,0,115,116,98,116,116,95,95,99,102,102,95,105,110,100,101,120,95,103,101,116,0,111,117,116,112,117,116,95,99,116,120,46,110,117,109,95,118,101,114,116,105,99,101,115,32,61,61,32,99,111,117,110,116,95,99,116,120,46,110,117,109,95,118,101,114,116,105,99,101,115,0,115,116,98,116,116,95,95,71,101,116,71,108,121,112,104,83,104,97,112,101,84,50,0,115,116,98,116,116,95,95,71,101,116,71,108,121,112,104,83,104,97,112,101,84,84,0,115,116,98,116,116,95,70,105,110,100,71,108,121,112,104,73,110,100,101,120,0,117,110,105,99,111,100,101,95,99,111,100,101,112,111,105,110,116,32,60,61,32,116,116,85,83,72,79,82,84,40,100,97,116,97,32,43,32,101,110,100,67,111,117,110,116,32,43,32,50,42,105,116,101,109,41,0,99,109,97,112,0,108,111,99,97,0,104,101,97,100,0,103,108,121,102,0,104,104,101,97,0,104,109,116,120,0,107,101,114,110,0,67,70,70,32,0,109,97,120,112,0,69,88,84,0,65,82,66,0,79,69,83,0,65,78,71,76,69,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,0,103,108,85,115,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,85,115,101,80,114,111,103,114,97,109,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,0,103,108,65,116,116,97,99,104,79,98,106,101,99,116,0,103,108,65,116,116,97,99,104,83,104,97,100,101,114,0,103,108,68,101,116,97,99,104,79,98,106,101,99,116,0,103,108,68,101,116,97,99,104,83,104,97,100,101,114,0,103,108,80,105,120,101,108,83,116,111,114,101,105,0,103,108,71,101,116,83,116,114,105,110,103,0,103,108,71,101,116,73,110,116,101,103,101,114,118,0,103,108,71,101,116,70,108,111,97,116,118,0,103,108,71,101,116,66,111,111,108,101,97,110,118,0,103,108,71,101,110,84,101,120,116,117,114,101,115,0,103,108,68,101,108,101,116,101,84,101,120,116,117,114,101,115,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,84,101,120,73,109,97,103,101,50,68,0,103,108,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,82,101,97,100,80,105,120,101,108,115,0,103,108,66,105,110,100,84,101,120,116,117,114,101,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,84,101,120,116,117,114,101,0,103,108,71,101,110,66,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,66,117,102,102,101,114,115,0,103,108,71,101,116,66,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,66,117,102,102,101,114,68,97,116,97,0,103,108,66,117,102,102,101,114,83,117,98,68,97,116,97,0,103,108,73,115,66,117,102,102,101,114,0,103,108,71,101,110,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,66,105,110,100,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,82,101,110,100,101,114,98,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,85,110,105,102,111,114,109,102,118,0,103,108,71,101,116,85,110,105,102,111,114,109,105,118,0,103,108,71,101,116,85,110,105,102,111,114,109,76,111,99,97,116,105,111,110,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,102,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,105,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,118,0,103,108,71,101,116,65,99,116,105,118,101,85,110,105,102,111,114,109,0,103,108,85,110,105,102,111,114,109,49,102,0,103,108,85,110,105,102,111,114,109,50,102,0,103,108,85,110,105,102,111,114,109,51,102,0,103,108,85,110,105,102,111,114,109,52,102,0,103,108,85,110,105,102,111,114,109,49,105,0,103,108,85,110,105,102,111,114,109,50,105,0,103,108,85,110,105,102,111,114,109,51,105,0,103,108,85,110,105,102,111,114,109,52,105,0,103,108,85,110,105,102,111,114,109,49,105,118,0,103,108,85,110,105,102,111,114,109,50,105,118,0,103,108,85,110,105,102,111,114,109,51,105,118,0,103,108,85,110,105,102,111,114,109,52,105,118,0,103,108,85,110,105,102,111,114,109,49,102,118,0,103,108,85,110,105,102,111,114,109,50,102,118,0,103,108,85,110,105,102,111,114,109,51,102,118,0,103,108,85,110,105,102,111,114,109,52,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,50,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,51,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,52,102,118,0,103,108,66,105,110,100,66,117,102,102,101,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,118,0,103,108,71,101,116,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,71,101,116,65,99,116,105,118,101,65,116,116,114,105,98,0,103,108,68,101,108,101,116,101,83,104,97,100,101,114,0,103,108,71,101,116,65,116,116,97,99,104,101,100,83,104,97,100,101,114,115,0,103,108,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,71,101,116,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,67,111,109,112,105,108,101,83,104,97,100,101,114,0,103,108,71,101,116,83,104,97,100,101,114,73,110,102,111,76,111,103,0,103,108,71,101,116,83,104,97,100,101,114,105,118,0,103,108,71,101,116,80,114,111,103,114,97,109,105,118,0,103,108,73,115,83,104,97,100,101,114,0,103,108,68,101,108,101,116,101,80,114,111,103,114,97,109,0,103,108,71,101,116,83,104,97,100,101,114,80,114,101,99,105,115,105,111,110,70,111,114,109,97,116,0,103,108,76,105,110,107,80,114,111,103,114,97,109,0,103,108,71,101,116,80,114,111,103,114,97,109,73,110,102,111,76,111,103,0,103,108,86,97,108,105,100,97,116,101,80,114,111,103,114,97,109,0,103,108,73,115,80,114,111,103,114,97,109,0,103,108,66,105,110,100,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,66,105,110,100,70,114,97,109,101,98,117,102,102,101,114,0,103,108,71,101,110,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,70,114,97,109,101,98,117,102,102,101,114,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,70,114,97,109,101,98,117,102,102,101,114,84,101,120,116,117,114,101,50,68,0,103,108,71,101,116,70,114,97,109,101,98,117,102,102,101,114,65,116,116,97,99,104,109,101,110,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,70,114,97,109,101,98,117,102,102,101,114,0,103,108,68,101,108,101,116,101,79,98,106,101,99,116,0,103,108,71,101,116,79,98,106,101,99,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,71,101,116,73,110,102,111,76,111,103,0,103,108,66,105,110,100,80,114,111,103,114,97,109,0,103,108,71,101,116,80,111,105,110,116,101,114,118,0,103,108,68,114,97,119,82,97,110,103,101,69,108,101,109,101,110,116,115,0,103,108,69,110,97,98,108,101,67,108,105,101,110,116,83,116,97,116,101,0,103,108,86,101,114,116,101,120,80,111,105,110,116,101,114,0,103,108,84,101,120,67,111,111,114,100,80,111,105,110,116,101,114,0,103,108,78,111,114,109,97,108,80,111,105,110,116,101,114,0,103,108,67,111,108,111,114,80,111,105,110,116,101,114,0,103,108,67,108,105,101,110,116,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,0,103,108,77,97,116,114,105,120,77,111,100,101,0,103,108,76,111,97,100,73,100,101,110,116,105,116,121,0,103,108,76,111,97,100,77,97,116,114,105,120,102,0,103,108,70,114,117,115,116,117,109,0,103,108,82,111,116,97,116,101,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,0,103,108,69,110,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,105,115,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,114,97,119,65,114,114,97,121,115,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,0,103,108,83,104,97,100,101,114,66,105,110,97,114,121,0,103,108,82,101,108,101,97,115,101,83,104,97,100,101,114,67,111,109,112,105,108,101,114,0,103,108,71,101,116,69,114,114,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,68,105,118,105,115,111,114,0,103,108,68,114,97,119,65,114,114,97,121,115,73,110,115,116,97,110,99,101,100,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,73,110,115,116,97,110,99,101,100,0,103,108,70,105,110,105,115,104,0,103,108,70,108,117,115,104,0,103,108,67,108,101,97,114,68,101,112,116,104,0,103,108,67,108,101,97,114,68,101,112,116,104,102,0,103,108,68,101,112,116,104,70,117,110,99,0,103,108,69,110,97,98,108,101,0,103,108,68,105,115,97,98,108,101,0,103,108,70,114,111,110,116,70,97,99,101,0,103,108,67,117,108,108,70,97,99,101,0,103,108,67,108,101,97,114,0,103,108,76,105,110,101,87,105,100,116,104,0,103,108,67,108,101,97,114,83,116,101,110,99,105,108,0,103,108,68,101,112,116,104,77,97,115,107,0,103,108,83,116,101,110,99,105,108,77,97,115,107,0,103,108,67,104,101,99,107,70,114,97,109,101,98,117,102,102,101,114,83,116,97,116,117,115,0,103,108,71,101,110,101,114,97,116,101,77,105,112,109,97,112,0,103,108,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,0,103,108,73,115,69,110,97,98,108,101,100,0,103,108,66,108,101,110,100,70,117,110,99,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,83,101,112,97,114,97,116,101,0,103,108,68,101,112,116,104,82,97,110,103,101,0,103,108,68,101,112,116,104,82,97,110,103,101,102,0,103,108,83,116,101,110,99,105,108,77,97,115,107,83,101,112,97,114,97,116,101,0,103,108,72,105,110,116,0,103,108,80,111,108,121,103,111,110,79,102,102,115,101,116,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,0,103,108,83,97,109,112,108,101,67,111,118,101,114,97,103,101,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,0,103,108,83,116,101,110,99,105,108,70,117,110,99,0,103,108,83,116,101,110,99,105,108,79,112,0,103,108,86,105,101,119,112,111,114,116,0,103,108,67,108,101,97,114,67,111,108,111,114,0,103,108,83,99,105,115,115,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,0,103,108,67,111,108,111,114,77,97,115,107,0,103,108,82,101,110,100,101,114,98,117,102,102,101,114,83,116,111,114,97,103,101,0,103,108,66,108,101,110,100,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,66,108,101,110,100,67,111,108,111,114,0,103,108,83,116,101,110,99,105,108,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,83,116,101,110,99,105,108,79,112,83,101,112,97,114,97,116,101,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,0,103,108,67,111,112,121,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,112,121,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,68,114,97,119,66,117,102,102,101,114,115,0,123,32,77,111,100,117,108,101,46,112,114,105,110,116,69,114,114,40,39,98,97,100,32,110,97,109,101,32,105,110,32,103,101,116,80,114,111,99,65,100,100,114,101,115,115,58,32,39,32,43,32,91,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,48,41,44,32,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,49,41,93,41,59,32,125,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,4,7,3,6,5,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,78,65,78,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,46,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,105,110,102,105,110,105,116,121,0,110,97,110,0,114,119,97,0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE+10240);
  1565. /* no memory initializer */
  1566. var tempDoublePtr = STATICTOP; STATICTOP += 16;
  1567. assert(tempDoublePtr % 8 == 0);
  1568. function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
  1569. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1570. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1571. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1572. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1573. }
  1574. function copyTempDouble(ptr) {
  1575. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1576. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1577. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1578. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1579. HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
  1580. HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
  1581. HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
  1582. HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
  1583. }
  1584. // {{PRE_LIBRARY}}
  1585. 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 () {
  1586. GL.miniTempBuffer = new Float32Array(GL.MINI_TEMP_BUFFER_SIZE);
  1587. for (var i = 0; i < GL.MINI_TEMP_BUFFER_SIZE; i++) {
  1588. GL.miniTempBufferViews[i] = GL.miniTempBuffer.subarray(0, i+1);
  1589. }
  1590. // For functions such as glDrawBuffers, glInvalidateFramebuffer and glInvalidateSubFramebuffer that need to pass a short array to the WebGL API,
  1591. // create a set of short fixed-length arrays to avoid having to generate any garbage when calling those functions.
  1592. for (var i = 0; i < 32; i++) {
  1593. GL.tempFixedLengthArray.push(new Array(i));
  1594. }
  1595. },recordError:function recordError(errorCode) {
  1596. if (!GL.lastError) {
  1597. GL.lastError = errorCode;
  1598. }
  1599. },getNewId:function (table) {
  1600. var ret = GL.counter++;
  1601. for (var i = table.length; i < ret; i++) {
  1602. table[i] = null;
  1603. }
  1604. return ret;
  1605. },MINI_TEMP_BUFFER_SIZE:256,miniTempBuffer:null,miniTempBufferViews:[0],getSource:function (shader, count, string, length) {
  1606. var source = '';
  1607. for (var i = 0; i < count; ++i) {
  1608. var frag;
  1609. if (length) {
  1610. var len = HEAP32[(((length)+(i*4))>>2)];
  1611. if (len < 0) {
  1612. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1613. } else {
  1614. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)], len);
  1615. }
  1616. } else {
  1617. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1618. }
  1619. source += frag;
  1620. }
  1621. return source;
  1622. },createContext:function (canvas, webGLContextAttributes) {
  1623. if (typeof webGLContextAttributes['majorVersion'] === 'undefined' && typeof webGLContextAttributes['minorVersion'] === 'undefined') {
  1624. webGLContextAttributes['majorVersion'] = 1;
  1625. webGLContextAttributes['minorVersion'] = 0;
  1626. }
  1627. var ctx;
  1628. var errorInfo = '?';
  1629. function onContextCreationError(event) {
  1630. errorInfo = event.statusMessage || errorInfo;
  1631. }
  1632. try {
  1633. canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
  1634. try {
  1635. if (webGLContextAttributes['majorVersion'] == 1 && webGLContextAttributes['minorVersion'] == 0) {
  1636. ctx = canvas.getContext("webgl", webGLContextAttributes) || canvas.getContext("experimental-webgl", webGLContextAttributes);
  1637. } else if (webGLContextAttributes['majorVersion'] == 2 && webGLContextAttributes['minorVersion'] == 0) {
  1638. ctx = canvas.getContext("webgl2", webGLContextAttributes) || canvas.getContext("experimental-webgl2", webGLContextAttributes);
  1639. } else {
  1640. throw 'Unsupported WebGL context version ' + majorVersion + '.' + minorVersion + '!'
  1641. }
  1642. } finally {
  1643. canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
  1644. }
  1645. if (!ctx) throw ':(';
  1646. } catch (e) {
  1647. Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);
  1648. return 0;
  1649. }
  1650. // possible GL_DEBUG entry point: ctx = wrapDebugGL(ctx);
  1651. if (!ctx) return 0;
  1652. return GL.registerContext(ctx, webGLContextAttributes);
  1653. },registerContext:function (ctx, webGLContextAttributes) {
  1654. var handle = GL.getNewId(GL.contexts);
  1655. var context = {
  1656. handle: handle,
  1657. attributes: webGLContextAttributes,
  1658. version: webGLContextAttributes['majorVersion'],
  1659. GLctx: ctx
  1660. };
  1661. // Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
  1662. if (ctx.canvas) ctx.canvas.GLctxObject = context;
  1663. GL.contexts[handle] = context;
  1664. if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes['enableExtensionsByDefault']) {
  1665. GL.initExtensions(context);
  1666. }
  1667. return handle;
  1668. },makeContextCurrent:function (contextHandle) {
  1669. var context = GL.contexts[contextHandle];
  1670. if (!context) return false;
  1671. GLctx = Module.ctx = context.GLctx; // Active WebGL context object.
  1672. GL.currentContext = context; // Active Emscripten GL layer context object.
  1673. return true;
  1674. },getContext:function (contextHandle) {
  1675. return GL.contexts[contextHandle];
  1676. },deleteContext:function (contextHandle) {
  1677. if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null;
  1678. 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.
  1679. 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.
  1680. GL.contexts[contextHandle] = null;
  1681. },initExtensions:function (context) {
  1682. // If this function is called without a specific context object, init the extensions of the currently active context.
  1683. if (!context) context = GL.currentContext;
  1684. if (context.initExtensionsDone) return;
  1685. context.initExtensionsDone = true;
  1686. var GLctx = context.GLctx;
  1687. context.maxVertexAttribs = GLctx.getParameter(GLctx.MAX_VERTEX_ATTRIBS);
  1688. // Detect the presence of a few extensions manually, this GL interop layer itself will need to know if they exist.
  1689. if (context.version < 2) {
  1690. // Extension available from Firefox 26 and Google Chrome 30
  1691. var instancedArraysExt = GLctx.getExtension('ANGLE_instanced_arrays');
  1692. if (instancedArraysExt) {
  1693. GLctx['vertexAttribDivisor'] = function(index, divisor) { instancedArraysExt['vertexAttribDivisorANGLE'](index, divisor); };
  1694. GLctx['drawArraysInstanced'] = function(mode, first, count, primcount) { instancedArraysExt['drawArraysInstancedANGLE'](mode, first, count, primcount); };
  1695. GLctx['drawElementsInstanced'] = function(mode, count, type, indices, primcount) { instancedArraysExt['drawElementsInstancedANGLE'](mode, count, type, indices, primcount); };
  1696. }
  1697. // Extension available from Firefox 25 and WebKit
  1698. var vaoExt = GLctx.getExtension('OES_vertex_array_object');
  1699. if (vaoExt) {
  1700. GLctx['createVertexArray'] = function() { return vaoExt['createVertexArrayOES'](); };
  1701. GLctx['deleteVertexArray'] = function(vao) { vaoExt['deleteVertexArrayOES'](vao); };
  1702. GLctx['bindVertexArray'] = function(vao) { vaoExt['bindVertexArrayOES'](vao); };
  1703. GLctx['isVertexArray'] = function(vao) { return vaoExt['isVertexArrayOES'](vao); };
  1704. }
  1705. var drawBuffersExt = GLctx.getExtension('WEBGL_draw_buffers');
  1706. if (drawBuffersExt) {
  1707. GLctx['drawBuffers'] = function(n, bufs) { drawBuffersExt['drawBuffersWEBGL'](n, bufs); };
  1708. }
  1709. }
  1710. GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query");
  1711. // These are the 'safe' feature-enabling extensions that don't add any performance impact related to e.g. debugging, and
  1712. // should be enabled by default so that client GLES2/GL code will not need to go through extra hoops to get its stuff working.
  1713. // As new extensions are ratified at http://www.khronos.org/registry/webgl/extensions/ , feel free to add your new extensions
  1714. // here, as long as they don't produce a performance impact for users that might not be using those extensions.
  1715. // E.g. debugging-related extensions should probably be off by default.
  1716. var automaticallyEnabledExtensions = [ "OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives",
  1717. "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture",
  1718. "OES_element_index_uint", "EXT_texture_filter_anisotropic", "ANGLE_instanced_arrays",
  1719. "OES_texture_float_linear", "OES_texture_half_float_linear", "WEBGL_compressed_texture_atc",
  1720. "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
  1721. "EXT_frag_depth", "EXT_sRGB", "WEBGL_draw_buffers", "WEBGL_shared_resources",
  1722. "EXT_shader_texture_lod", "EXT_color_buffer_float"];
  1723. function shouldEnableAutomatically(extension) {
  1724. var ret = false;
  1725. automaticallyEnabledExtensions.forEach(function(include) {
  1726. if (ext.indexOf(include) != -1) {
  1727. ret = true;
  1728. }
  1729. });
  1730. return ret;
  1731. }
  1732. var exts = GLctx.getSupportedExtensions();
  1733. if (exts && exts.length > 0) {
  1734. GLctx.getSupportedExtensions().forEach(function(ext) {
  1735. if (automaticallyEnabledExtensions.indexOf(ext) != -1) {
  1736. GLctx.getExtension(ext); // Calling .getExtension enables that extension permanently, no need to store the return value to be enabled.
  1737. }
  1738. });
  1739. }
  1740. },populateUniformTable:function (program) {
  1741. var p = GL.programs[program];
  1742. GL.programInfos[program] = {
  1743. uniforms: {},
  1744. maxUniformLength: 0, // This is eagerly computed below, since we already enumerate all uniforms anyway.
  1745. maxAttributeLength: -1, // This is lazily computed and cached, computed when/if first asked, "-1" meaning not computed yet.
  1746. maxUniformBlockNameLength: -1 // Lazily computed as well
  1747. };
  1748. var ptable = GL.programInfos[program];
  1749. var utable = ptable.uniforms;
  1750. // A program's uniform table maps the string name of an uniform to an integer location of that uniform.
  1751. // The global GL.uniforms map maps integer locations to WebGLUniformLocations.
  1752. var numUniforms = GLctx.getProgramParameter(p, GLctx.ACTIVE_UNIFORMS);
  1753. for (var i = 0; i < numUniforms; ++i) {
  1754. var u = GLctx.getActiveUniform(p, i);
  1755. var name = u.name;
  1756. ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length+1);
  1757. // Strip off any trailing array specifier we might have got, e.g. "[0]".
  1758. if (name.indexOf(']', name.length-1) !== -1) {
  1759. var ls = name.lastIndexOf('[');
  1760. name = name.slice(0, ls);
  1761. }
  1762. // Optimize memory usage slightly: If we have an array of uniforms, e.g. 'vec3 colors[3];', then
  1763. // only store the string 'colors' in utable, and 'colors[0]', 'colors[1]' and 'colors[2]' will be parsed as 'colors'+i.
  1764. // Note that for the GL.uniforms table, we still need to fetch the all WebGLUniformLocations for all the indices.
  1765. var loc = GLctx.getUniformLocation(p, name);
  1766. if (loc != null)
  1767. {
  1768. var id = GL.getNewId(GL.uniforms);
  1769. utable[name] = [u.size, id];
  1770. GL.uniforms[id] = loc;
  1771. for (var j = 1; j < u.size; ++j) {
  1772. var n = name + '['+j+']';
  1773. loc = GLctx.getUniformLocation(p, n);
  1774. id = GL.getNewId(GL.uniforms);
  1775. GL.uniforms[id] = loc;
  1776. }
  1777. }
  1778. }
  1779. }};function _emscripten_glIsRenderbuffer(renderbuffer) {
  1780. var rb = GL.renderbuffers[renderbuffer];
  1781. if (!rb) return 0;
  1782. return GLctx.isRenderbuffer(rb);
  1783. }
  1784. function _emscripten_glStencilMaskSeparate(x0, x1) { GLctx['stencilMaskSeparate'](x0, x1) }
  1785. function _emscripten_get_now() { abort() }
  1786. function _emscripten_set_main_loop_timing(mode, value) {
  1787. Browser.mainLoop.timingMode = mode;
  1788. Browser.mainLoop.timingValue = value;
  1789. if (!Browser.mainLoop.func) {
  1790. 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.');
  1791. return 1; // Return non-zero on failure, can't set timing mode when there is no main loop.
  1792. }
  1793. if (mode == 0 /*EM_TIMING_SETTIMEOUT*/) {
  1794. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() {
  1795. var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now())|0;
  1796. setTimeout(Browser.mainLoop.runner, timeUntilNextTick); // doing this each time means that on exception, we stop
  1797. };
  1798. Browser.mainLoop.method = 'timeout';
  1799. } else if (mode == 1 /*EM_TIMING_RAF*/) {
  1800. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() {
  1801. Browser.requestAnimationFrame(Browser.mainLoop.runner);
  1802. };
  1803. Browser.mainLoop.method = 'rAF';
  1804. } else if (mode == 2 /*EM_TIMING_SETIMMEDIATE*/) {
  1805. if (!window['setImmediate']) {
  1806. // Emulate setImmediate. (note: not a complete polyfill, we don't emulate clearImmediate() to keep code size to minimum, since not needed)
  1807. var setImmediates = [];
  1808. var emscriptenMainLoopMessageId = 'setimmediate';
  1809. function Browser_setImmediate_messageHandler(event) {
  1810. if (event.source === window && event.data === emscriptenMainLoopMessageId) {
  1811. event.stopPropagation();
  1812. setImmediates.shift()();
  1813. }
  1814. }
  1815. window.addEventListener("message", Browser_setImmediate_messageHandler, true);
  1816. window['setImmediate'] = function Browser_emulated_setImmediate(func) {
  1817. setImmediates.push(func);
  1818. if (ENVIRONMENT_IS_WORKER) {
  1819. if (Module['setImmediates'] === undefined) Module['setImmediates'] = [];
  1820. Module['setImmediates'].push(func);
  1821. window.postMessage({target: emscriptenMainLoopMessageId}); // In --proxy-to-worker, route the message via proxyClient.js
  1822. } else window.postMessage(emscriptenMainLoopMessageId, "*"); // On the main thread, can just send the message to itself.
  1823. }
  1824. }
  1825. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() {
  1826. window['setImmediate'](Browser.mainLoop.runner);
  1827. };
  1828. Browser.mainLoop.method = 'immediate';
  1829. }
  1830. return 0;
  1831. }function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) {
  1832. Module['noExitRuntime'] = true;
  1833. 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.');
  1834. Browser.mainLoop.func = func;
  1835. Browser.mainLoop.arg = arg;
  1836. var browserIterationFunc;
  1837. if (typeof arg !== 'undefined') {
  1838. browserIterationFunc = function() {
  1839. Module['dynCall_vi'](func, arg);
  1840. };
  1841. } else {
  1842. browserIterationFunc = function() {
  1843. Module['dynCall_v'](func);
  1844. };
  1845. }
  1846. var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop;
  1847. Browser.mainLoop.runner = function Browser_mainLoop_runner() {
  1848. if (ABORT) return;
  1849. if (Browser.mainLoop.queue.length > 0) {
  1850. var start = Date.now();
  1851. var blocker = Browser.mainLoop.queue.shift();
  1852. blocker.func(blocker.arg);
  1853. if (Browser.mainLoop.remainingBlockers) {
  1854. var remaining = Browser.mainLoop.remainingBlockers;
  1855. var next = remaining%1 == 0 ? remaining-1 : Math.floor(remaining);
  1856. if (blocker.counted) {
  1857. Browser.mainLoop.remainingBlockers = next;
  1858. } else {
  1859. // not counted, but move the progress along a tiny bit
  1860. next = next + 0.5; // do not steal all the next one's progress
  1861. Browser.mainLoop.remainingBlockers = (8*remaining + next)/9;
  1862. }
  1863. }
  1864. console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + ' ms'); //, left: ' + Browser.mainLoop.remainingBlockers);
  1865. Browser.mainLoop.updateStatus();
  1866. // catches pause/resume main loop from blocker execution
  1867. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1868. setTimeout(Browser.mainLoop.runner, 0);
  1869. return;
  1870. }
  1871. // catch pauses from non-main loop sources
  1872. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1873. // Implement very basic swap interval control
  1874. Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0;
  1875. if (Browser.mainLoop.timingMode == 1/*EM_TIMING_RAF*/ && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) {
  1876. // Not the scheduled time to render this frame - skip.
  1877. Browser.mainLoop.scheduler();
  1878. return;
  1879. } else if (Browser.mainLoop.timingMode == 0/*EM_TIMING_SETTIMEOUT*/) {
  1880. Browser.mainLoop.tickStartTime = _emscripten_get_now();
  1881. }
  1882. // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize
  1883. // VBO double-buffering and reduce GPU stalls.
  1884. if (Browser.mainLoop.method === 'timeout' && Module.ctx) {
  1885. 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!');
  1886. Browser.mainLoop.method = ''; // just warn once per call to set main loop
  1887. }
  1888. Browser.mainLoop.runIter(browserIterationFunc);
  1889. checkStackCookie();
  1890. // catch pauses from the main loop itself
  1891. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1892. // Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
  1893. // to queue the newest produced audio samples.
  1894. // TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
  1895. // do not need to be hardcoded into this function, but can be more generic.
  1896. if (typeof SDL === 'object' && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData();
  1897. Browser.mainLoop.scheduler();
  1898. }
  1899. if (!noSetTiming) {
  1900. if (fps && fps > 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 1000.0 / fps);
  1901. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, 1); // Do rAF by rendering each frame (no decimating)
  1902. Browser.mainLoop.scheduler();
  1903. }
  1904. if (simulateInfiniteLoop) {
  1905. throw 'SimulateInfiniteLoop';
  1906. }
  1907. }var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function () {
  1908. Browser.mainLoop.scheduler = null;
  1909. Browser.mainLoop.currentlyRunningMainloop++; // Incrementing this signals the previous main loop that it's now become old, and it must return.
  1910. },resume:function () {
  1911. Browser.mainLoop.currentlyRunningMainloop++;
  1912. var timingMode = Browser.mainLoop.timingMode;
  1913. var timingValue = Browser.mainLoop.timingValue;
  1914. var func = Browser.mainLoop.func;
  1915. Browser.mainLoop.func = null;
  1916. _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 */);
  1917. _emscripten_set_main_loop_timing(timingMode, timingValue);
  1918. Browser.mainLoop.scheduler();
  1919. },updateStatus:function () {
  1920. if (Module['setStatus']) {
  1921. var message = Module['statusMessage'] || 'Please wait...';
  1922. var remaining = Browser.mainLoop.remainingBlockers;
  1923. var expected = Browser.mainLoop.expectedBlockers;
  1924. if (remaining) {
  1925. if (remaining < expected) {
  1926. Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
  1927. } else {
  1928. Module['setStatus'](message);
  1929. }
  1930. } else {
  1931. Module['setStatus']('');
  1932. }
  1933. }
  1934. },runIter:function (func) {
  1935. if (ABORT) return;
  1936. if (Module['preMainLoop']) {
  1937. var preRet = Module['preMainLoop']();
  1938. if (preRet === false) {
  1939. return; // |return false| skips a frame
  1940. }
  1941. }
  1942. try {
  1943. func();
  1944. } catch (e) {
  1945. if (e instanceof ExitStatus) {
  1946. return;
  1947. } else {
  1948. if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
  1949. throw e;
  1950. }
  1951. }
  1952. if (Module['postMainLoop']) Module['postMainLoop']();
  1953. }},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
  1954. if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
  1955. if (Browser.initted) return;
  1956. Browser.initted = true;
  1957. try {
  1958. new Blob();
  1959. Browser.hasBlobConstructor = true;
  1960. } catch(e) {
  1961. Browser.hasBlobConstructor = false;
  1962. console.log("warning: no blob constructor, cannot create blobs with mimetypes");
  1963. }
  1964. Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
  1965. Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
  1966. if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
  1967. console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
  1968. Module.noImageDecoding = true;
  1969. }
  1970. // Support for plugins that can process preloaded files. You can add more of these to
  1971. // your app by creating and appending to Module.preloadPlugins.
  1972. //
  1973. // Each plugin is asked if it can handle a file based on the file's name. If it can,
  1974. // it is given the file's raw data. When it is done, it calls a callback with the file's
  1975. // (possibly modified) data. For example, a plugin might decompress a file, or it
  1976. // might create some side data structure for use later (like an Image element, etc.).
  1977. var imagePlugin = {};
  1978. imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
  1979. return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
  1980. };
  1981. imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
  1982. var b = null;
  1983. if (Browser.hasBlobConstructor) {
  1984. try {
  1985. b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  1986. if (b.size !== byteArray.length) { // Safari bug #118630
  1987. // Safari's Blob can only take an ArrayBuffer
  1988. b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
  1989. }
  1990. } catch(e) {
  1991. Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
  1992. }
  1993. }
  1994. if (!b) {
  1995. var bb = new Browser.BlobBuilder();
  1996. bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
  1997. b = bb.getBlob();
  1998. }
  1999. var url = Browser.URLObject.createObjectURL(b);
  2000. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2001. var img = new Image();
  2002. img.onload = function img_onload() {
  2003. assert(img.complete, 'Image ' + name + ' could not be decoded');
  2004. var canvas = document.createElement('canvas');
  2005. canvas.width = img.width;
  2006. canvas.height = img.height;
  2007. var ctx = canvas.getContext('2d');
  2008. ctx.drawImage(img, 0, 0);
  2009. Module["preloadedImages"][name] = canvas;
  2010. Browser.URLObject.revokeObjectURL(url);
  2011. if (onload) onload(byteArray);
  2012. };
  2013. img.onerror = function img_onerror(event) {
  2014. console.log('Image ' + url + ' could not be decoded');
  2015. if (onerror) onerror();
  2016. };
  2017. img.src = url;
  2018. };
  2019. Module['preloadPlugins'].push(imagePlugin);
  2020. var audioPlugin = {};
  2021. audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
  2022. return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
  2023. };
  2024. audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
  2025. var done = false;
  2026. function finish(audio) {
  2027. if (done) return;
  2028. done = true;
  2029. Module["preloadedAudios"][name] = audio;
  2030. if (onload) onload(byteArray);
  2031. }
  2032. function fail() {
  2033. if (done) return;
  2034. done = true;
  2035. Module["preloadedAudios"][name] = new Audio(); // empty shim
  2036. if (onerror) onerror();
  2037. }
  2038. if (Browser.hasBlobConstructor) {
  2039. try {
  2040. var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2041. } catch(e) {
  2042. return fail();
  2043. }
  2044. var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
  2045. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2046. var audio = new Audio();
  2047. audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
  2048. audio.onerror = function audio_onerror(event) {
  2049. if (done) return;
  2050. console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
  2051. function encode64(data) {
  2052. var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  2053. var PAD = '=';
  2054. var ret = '';
  2055. var leftchar = 0;
  2056. var leftbits = 0;
  2057. for (var i = 0; i < data.length; i++) {
  2058. leftchar = (leftchar << 8) | data[i];
  2059. leftbits += 8;
  2060. while (leftbits >= 6) {
  2061. var curr = (leftchar >> (leftbits-6)) & 0x3f;
  2062. leftbits -= 6;
  2063. ret += BASE[curr];
  2064. }
  2065. }
  2066. if (leftbits == 2) {
  2067. ret += BASE[(leftchar&3) << 4];
  2068. ret += PAD + PAD;
  2069. } else if (leftbits == 4) {
  2070. ret += BASE[(leftchar&0xf) << 2];
  2071. ret += PAD;
  2072. }
  2073. return ret;
  2074. }
  2075. audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
  2076. finish(audio); // we don't wait for confirmation this worked - but it's worth trying
  2077. };
  2078. audio.src = url;
  2079. // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
  2080. Browser.safeSetTimeout(function() {
  2081. finish(audio); // try to use it even though it is not necessarily ready to play
  2082. }, 10000);
  2083. } else {
  2084. return fail();
  2085. }
  2086. };
  2087. Module['preloadPlugins'].push(audioPlugin);
  2088. // Canvas event setup
  2089. function pointerLockChange() {
  2090. Browser.pointerLock = document['pointerLockElement'] === Module['canvas'] ||
  2091. document['mozPointerLockElement'] === Module['canvas'] ||
  2092. document['webkitPointerLockElement'] === Module['canvas'] ||
  2093. document['msPointerLockElement'] === Module['canvas'];
  2094. }
  2095. var canvas = Module['canvas'];
  2096. if (canvas) {
  2097. // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
  2098. // Module['forcedAspectRatio'] = 4 / 3;
  2099. canvas.requestPointerLock = canvas['requestPointerLock'] ||
  2100. canvas['mozRequestPointerLock'] ||
  2101. canvas['webkitRequestPointerLock'] ||
  2102. canvas['msRequestPointerLock'] ||
  2103. function(){};
  2104. canvas.exitPointerLock = document['exitPointerLock'] ||
  2105. document['mozExitPointerLock'] ||
  2106. document['webkitExitPointerLock'] ||
  2107. document['msExitPointerLock'] ||
  2108. function(){}; // no-op if function does not exist
  2109. canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
  2110. document.addEventListener('pointerlockchange', pointerLockChange, false);
  2111. document.addEventListener('mozpointerlockchange', pointerLockChange, false);
  2112. document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
  2113. document.addEventListener('mspointerlockchange', pointerLockChange, false);
  2114. if (Module['elementPointerLock']) {
  2115. canvas.addEventListener("click", function(ev) {
  2116. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2117. Module['canvas'].requestPointerLock();
  2118. ev.preventDefault();
  2119. }
  2120. }, false);
  2121. }
  2122. }
  2123. },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
  2124. 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.
  2125. var ctx;
  2126. var contextHandle;
  2127. if (useWebGL) {
  2128. // For GLES2/desktop GL compatibility, adjust a few defaults to be different to WebGL defaults, so that they align better with the desktop defaults.
  2129. var contextAttributes = {
  2130. antialias: false,
  2131. alpha: false
  2132. };
  2133. if (webGLContextAttributes) {
  2134. for (var attribute in webGLContextAttributes) {
  2135. contextAttributes[attribute] = webGLContextAttributes[attribute];
  2136. }
  2137. }
  2138. contextHandle = GL.createContext(canvas, contextAttributes);
  2139. if (contextHandle) {
  2140. ctx = GL.getContext(contextHandle).GLctx;
  2141. }
  2142. } else {
  2143. ctx = canvas.getContext('2d');
  2144. }
  2145. if (!ctx) return null;
  2146. if (setInModule) {
  2147. 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');
  2148. Module.ctx = ctx;
  2149. if (useWebGL) GL.makeContextCurrent(contextHandle);
  2150. Module.useWebGL = useWebGL;
  2151. Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
  2152. Browser.init();
  2153. }
  2154. return ctx;
  2155. },destroyContext:function (canvas, useWebGL, setInModule) {},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function (lockPointer, resizeCanvas, vrDevice) {
  2156. Browser.lockPointer = lockPointer;
  2157. Browser.resizeCanvas = resizeCanvas;
  2158. Browser.vrDevice = vrDevice;
  2159. if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
  2160. if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
  2161. if (typeof Browser.vrDevice === 'undefined') Browser.vrDevice = null;
  2162. var canvas = Module['canvas'];
  2163. function fullscreenChange() {
  2164. Browser.isFullscreen = false;
  2165. var canvasContainer = canvas.parentNode;
  2166. if ((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2167. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2168. document['webkitCurrentFullScreenElement']) === canvasContainer) {
  2169. canvas.exitFullscreen = document['exitFullscreen'] ||
  2170. document['cancelFullScreen'] ||
  2171. document['mozCancelFullScreen'] ||
  2172. document['msExitFullscreen'] ||
  2173. document['webkitCancelFullScreen'] ||
  2174. function() {};
  2175. canvas.exitFullscreen = canvas.exitFullscreen.bind(document);
  2176. if (Browser.lockPointer) canvas.requestPointerLock();
  2177. Browser.isFullscreen = true;
  2178. if (Browser.resizeCanvas) Browser.setFullscreenCanvasSize();
  2179. } else {
  2180. // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
  2181. canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
  2182. canvasContainer.parentNode.removeChild(canvasContainer);
  2183. if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
  2184. }
  2185. if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullscreen);
  2186. if (Module['onFullscreen']) Module['onFullscreen'](Browser.isFullscreen);
  2187. Browser.updateCanvasDimensions(canvas);
  2188. }
  2189. if (!Browser.fullscreenHandlersInstalled) {
  2190. Browser.fullscreenHandlersInstalled = true;
  2191. document.addEventListener('fullscreenchange', fullscreenChange, false);
  2192. document.addEventListener('mozfullscreenchange', fullscreenChange, false);
  2193. document.addEventListener('webkitfullscreenchange', fullscreenChange, false);
  2194. document.addEventListener('MSFullscreenChange', fullscreenChange, false);
  2195. }
  2196. // 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
  2197. var canvasContainer = document.createElement("div");
  2198. canvas.parentNode.insertBefore(canvasContainer, canvas);
  2199. canvasContainer.appendChild(canvas);
  2200. // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
  2201. canvasContainer.requestFullscreen = canvasContainer['requestFullscreen'] ||
  2202. canvasContainer['mozRequestFullScreen'] ||
  2203. canvasContainer['msRequestFullscreen'] ||
  2204. (canvasContainer['webkitRequestFullscreen'] ? function() { canvasContainer['webkitRequestFullscreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null) ||
  2205. (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
  2206. if (vrDevice) {
  2207. canvasContainer.requestFullscreen({ vrDisplay: vrDevice });
  2208. } else {
  2209. canvasContainer.requestFullscreen();
  2210. }
  2211. },requestFullScreen:function (lockPointer, resizeCanvas, vrDevice) {
  2212. Module.printErr('Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead.');
  2213. Browser.requestFullScreen = function(lockPointer, resizeCanvas, vrDevice) {
  2214. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2215. }
  2216. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2217. },nextRAF:0,fakeRequestAnimationFrame:function (func) {
  2218. // try to keep 60fps between calls to here
  2219. var now = Date.now();
  2220. if (Browser.nextRAF === 0) {
  2221. Browser.nextRAF = now + 1000/60;
  2222. } else {
  2223. while (now + 2 >= Browser.nextRAF) { // fudge a little, to avoid timer jitter causing us to do lots of delay:0
  2224. Browser.nextRAF += 1000/60;
  2225. }
  2226. }
  2227. var delay = Math.max(Browser.nextRAF - now, 0);
  2228. setTimeout(func, delay);
  2229. },requestAnimationFrame:function requestAnimationFrame(func) {
  2230. if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
  2231. Browser.fakeRequestAnimationFrame(func);
  2232. } else {
  2233. if (!window.requestAnimationFrame) {
  2234. window.requestAnimationFrame = window['requestAnimationFrame'] ||
  2235. window['mozRequestAnimationFrame'] ||
  2236. window['webkitRequestAnimationFrame'] ||
  2237. window['msRequestAnimationFrame'] ||
  2238. window['oRequestAnimationFrame'] ||
  2239. Browser.fakeRequestAnimationFrame;
  2240. }
  2241. window.requestAnimationFrame(func);
  2242. }
  2243. },safeCallback:function (func) {
  2244. return function() {
  2245. if (!ABORT) return func.apply(null, arguments);
  2246. };
  2247. },allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function () {
  2248. Browser.allowAsyncCallbacks = false;
  2249. },resumeAsyncCallbacks:function () { // marks future callbacks as ok to execute, and synchronously runs any remaining ones right now
  2250. Browser.allowAsyncCallbacks = true;
  2251. if (Browser.queuedAsyncCallbacks.length > 0) {
  2252. var callbacks = Browser.queuedAsyncCallbacks;
  2253. Browser.queuedAsyncCallbacks = [];
  2254. callbacks.forEach(function(func) {
  2255. func();
  2256. });
  2257. }
  2258. },safeRequestAnimationFrame:function (func) {
  2259. return Browser.requestAnimationFrame(function() {
  2260. if (ABORT) return;
  2261. if (Browser.allowAsyncCallbacks) {
  2262. func();
  2263. } else {
  2264. Browser.queuedAsyncCallbacks.push(func);
  2265. }
  2266. });
  2267. },safeSetTimeout:function (func, timeout) {
  2268. Module['noExitRuntime'] = true;
  2269. return setTimeout(function() {
  2270. if (ABORT) return;
  2271. if (Browser.allowAsyncCallbacks) {
  2272. func();
  2273. } else {
  2274. Browser.queuedAsyncCallbacks.push(func);
  2275. }
  2276. }, timeout);
  2277. },safeSetInterval:function (func, timeout) {
  2278. Module['noExitRuntime'] = true;
  2279. return setInterval(function() {
  2280. if (ABORT) return;
  2281. if (Browser.allowAsyncCallbacks) {
  2282. func();
  2283. } // drop it on the floor otherwise, next interval will kick in
  2284. }, timeout);
  2285. },getMimetype:function (name) {
  2286. return {
  2287. 'jpg': 'image/jpeg',
  2288. 'jpeg': 'image/jpeg',
  2289. 'png': 'image/png',
  2290. 'bmp': 'image/bmp',
  2291. 'ogg': 'audio/ogg',
  2292. 'wav': 'audio/wav',
  2293. 'mp3': 'audio/mpeg'
  2294. }[name.substr(name.lastIndexOf('.')+1)];
  2295. },getUserMedia:function (func) {
  2296. if(!window.getUserMedia) {
  2297. window.getUserMedia = navigator['getUserMedia'] ||
  2298. navigator['mozGetUserMedia'];
  2299. }
  2300. window.getUserMedia(func);
  2301. },getMovementX:function (event) {
  2302. return event['movementX'] ||
  2303. event['mozMovementX'] ||
  2304. event['webkitMovementX'] ||
  2305. 0;
  2306. },getMovementY:function (event) {
  2307. return event['movementY'] ||
  2308. event['mozMovementY'] ||
  2309. event['webkitMovementY'] ||
  2310. 0;
  2311. },getMouseWheelDelta:function (event) {
  2312. var delta = 0;
  2313. switch (event.type) {
  2314. case 'DOMMouseScroll':
  2315. delta = event.detail;
  2316. break;
  2317. case 'mousewheel':
  2318. delta = event.wheelDelta;
  2319. break;
  2320. case 'wheel':
  2321. delta = event['deltaY'];
  2322. break;
  2323. default:
  2324. throw 'unrecognized mouse wheel event: ' + event.type;
  2325. }
  2326. return delta;
  2327. },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
  2328. if (Browser.pointerLock) {
  2329. // When the pointer is locked, calculate the coordinates
  2330. // based on the movement of the mouse.
  2331. // Workaround for Firefox bug 764498
  2332. if (event.type != 'mousemove' &&
  2333. ('mozMovementX' in event)) {
  2334. Browser.mouseMovementX = Browser.mouseMovementY = 0;
  2335. } else {
  2336. Browser.mouseMovementX = Browser.getMovementX(event);
  2337. Browser.mouseMovementY = Browser.getMovementY(event);
  2338. }
  2339. // check if SDL is available
  2340. if (typeof SDL != "undefined") {
  2341. Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
  2342. Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
  2343. } else {
  2344. // just add the mouse delta to the current absolut mouse position
  2345. // FIXME: ideally this should be clamped against the canvas size and zero
  2346. Browser.mouseX += Browser.mouseMovementX;
  2347. Browser.mouseY += Browser.mouseMovementY;
  2348. }
  2349. } else {
  2350. // Otherwise, calculate the movement based on the changes
  2351. // in the coordinates.
  2352. var rect = Module["canvas"].getBoundingClientRect();
  2353. var cw = Module["canvas"].width;
  2354. var ch = Module["canvas"].height;
  2355. // Neither .scrollX or .pageXOffset are defined in a spec, but
  2356. // we prefer .scrollX because it is currently in a spec draft.
  2357. // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
  2358. var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
  2359. var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
  2360. // If this assert lands, it's likely because the browser doesn't support scrollX or pageXOffset
  2361. // and we have no viable fallback.
  2362. assert((typeof scrollX !== 'undefined') && (typeof scrollY !== 'undefined'), 'Unable to retrieve scroll position, mouse positions likely broken.');
  2363. if (event.type === 'touchstart' || event.type === 'touchend' || event.type === 'touchmove') {
  2364. var touch = event.touch;
  2365. if (touch === undefined) {
  2366. return; // the "touch" property is only defined in SDL
  2367. }
  2368. var adjustedX = touch.pageX - (scrollX + rect.left);
  2369. var adjustedY = touch.pageY - (scrollY + rect.top);
  2370. adjustedX = adjustedX * (cw / rect.width);
  2371. adjustedY = adjustedY * (ch / rect.height);
  2372. var coords = { x: adjustedX, y: adjustedY };
  2373. if (event.type === 'touchstart') {
  2374. Browser.lastTouches[touch.identifier] = coords;
  2375. Browser.touches[touch.identifier] = coords;
  2376. } else if (event.type === 'touchend' || event.type === 'touchmove') {
  2377. var last = Browser.touches[touch.identifier];
  2378. if (!last) last = coords;
  2379. Browser.lastTouches[touch.identifier] = last;
  2380. Browser.touches[touch.identifier] = coords;
  2381. }
  2382. return;
  2383. }
  2384. var x = event.pageX - (scrollX + rect.left);
  2385. var y = event.pageY - (scrollY + rect.top);
  2386. // the canvas might be CSS-scaled compared to its backbuffer;
  2387. // SDL-using content will want mouse coordinates in terms
  2388. // of backbuffer units.
  2389. x = x * (cw / rect.width);
  2390. y = y * (ch / rect.height);
  2391. Browser.mouseMovementX = x - Browser.mouseX;
  2392. Browser.mouseMovementY = y - Browser.mouseY;
  2393. Browser.mouseX = x;
  2394. Browser.mouseY = y;
  2395. }
  2396. },asyncLoad:function (url, onload, onerror, noRunDep) {
  2397. var dep = !noRunDep ? getUniqueRunDependency('al ' + url) : '';
  2398. Module['readAsync'](url, function(arrayBuffer) {
  2399. assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
  2400. onload(new Uint8Array(arrayBuffer));
  2401. if (dep) removeRunDependency(dep);
  2402. }, function(event) {
  2403. if (onerror) {
  2404. onerror();
  2405. } else {
  2406. throw 'Loading data file "' + url + '" failed.';
  2407. }
  2408. });
  2409. if (dep) addRunDependency(dep);
  2410. },resizeListeners:[],updateResizeListeners:function () {
  2411. var canvas = Module['canvas'];
  2412. Browser.resizeListeners.forEach(function(listener) {
  2413. listener(canvas.width, canvas.height);
  2414. });
  2415. },setCanvasSize:function (width, height, noUpdates) {
  2416. var canvas = Module['canvas'];
  2417. Browser.updateCanvasDimensions(canvas, width, height);
  2418. if (!noUpdates) Browser.updateResizeListeners();
  2419. },windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function () {
  2420. // check if SDL is available
  2421. if (typeof SDL != "undefined") {
  2422. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2423. flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
  2424. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2425. }
  2426. Browser.updateResizeListeners();
  2427. },setWindowedCanvasSize:function () {
  2428. // check if SDL is available
  2429. if (typeof SDL != "undefined") {
  2430. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2431. flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
  2432. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2433. }
  2434. Browser.updateResizeListeners();
  2435. },updateCanvasDimensions:function (canvas, wNative, hNative) {
  2436. if (wNative && hNative) {
  2437. canvas.widthNative = wNative;
  2438. canvas.heightNative = hNative;
  2439. } else {
  2440. wNative = canvas.widthNative;
  2441. hNative = canvas.heightNative;
  2442. }
  2443. var w = wNative;
  2444. var h = hNative;
  2445. if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
  2446. if (w/h < Module['forcedAspectRatio']) {
  2447. w = Math.round(h * Module['forcedAspectRatio']);
  2448. } else {
  2449. h = Math.round(w / Module['forcedAspectRatio']);
  2450. }
  2451. }
  2452. if (((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2453. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2454. document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
  2455. var factor = Math.min(screen.width / w, screen.height / h);
  2456. w = Math.round(w * factor);
  2457. h = Math.round(h * factor);
  2458. }
  2459. if (Browser.resizeCanvas) {
  2460. if (canvas.width != w) canvas.width = w;
  2461. if (canvas.height != h) canvas.height = h;
  2462. if (typeof canvas.style != 'undefined') {
  2463. canvas.style.removeProperty( "width");
  2464. canvas.style.removeProperty("height");
  2465. }
  2466. } else {
  2467. if (canvas.width != wNative) canvas.width = wNative;
  2468. if (canvas.height != hNative) canvas.height = hNative;
  2469. if (typeof canvas.style != 'undefined') {
  2470. if (w != wNative || h != hNative) {
  2471. canvas.style.setProperty( "width", w + "px", "important");
  2472. canvas.style.setProperty("height", h + "px", "important");
  2473. } else {
  2474. canvas.style.removeProperty( "width");
  2475. canvas.style.removeProperty("height");
  2476. }
  2477. }
  2478. }
  2479. },wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function () {
  2480. var handle = Browser.nextWgetRequestHandle;
  2481. Browser.nextWgetRequestHandle++;
  2482. return handle;
  2483. }};var GLFW={Window:function (id, width, height, title, monitor, share) {
  2484. this.id = id;
  2485. this.x = 0;
  2486. this.y = 0;
  2487. this.fullscreen = false; // Used to determine if app in fullscreen mode
  2488. this.storedX = 0; // Used to store X before fullscreen
  2489. this.storedY = 0; // Used to store Y before fullscreen
  2490. this.width = width;
  2491. this.height = height;
  2492. this.storedWidth = width; // Used to store width before fullscreen
  2493. this.storedHeight = height; // Used to store height before fullscreen
  2494. this.title = title;
  2495. this.monitor = monitor;
  2496. this.share = share;
  2497. this.attributes = GLFW.hints;
  2498. this.inputModes = {
  2499. 0x00033001:0x00034001, // GLFW_CURSOR (GLFW_CURSOR_NORMAL)
  2500. 0x00033002:0, // GLFW_STICKY_KEYS
  2501. 0x00033003:0, // GLFW_STICKY_MOUSE_BUTTONS
  2502. };
  2503. this.buttons = 0;
  2504. this.keys = new Array();
  2505. this.shouldClose = 0;
  2506. this.title = null;
  2507. this.windowPosFunc = null; // GLFWwindowposfun
  2508. this.windowSizeFunc = null; // GLFWwindowsizefun
  2509. this.windowCloseFunc = null; // GLFWwindowclosefun
  2510. this.windowRefreshFunc = null; // GLFWwindowrefreshfun
  2511. this.windowFocusFunc = null; // GLFWwindowfocusfun
  2512. this.windowIconifyFunc = null; // GLFWwindowiconifyfun
  2513. this.framebufferSizeFunc = null; // GLFWframebuffersizefun
  2514. this.mouseButtonFunc = null; // GLFWmousebuttonfun
  2515. this.cursorPosFunc = null; // GLFWcursorposfun
  2516. this.cursorEnterFunc = null; // GLFWcursorenterfun
  2517. this.scrollFunc = null; // GLFWscrollfun
  2518. this.keyFunc = null; // GLFWkeyfun
  2519. this.charFunc = null; // GLFWcharfun
  2520. this.userptr = null;
  2521. },WindowFromId:function (id) {
  2522. if (id <= 0 || !GLFW.windows) return null;
  2523. return GLFW.windows[id - 1];
  2524. },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) {
  2525. switch (keycode) {
  2526. // these keycodes are only defined for GLFW3, assume they are the same for GLFW2
  2527. case 0x20:return 32; // DOM_VK_SPACE -> GLFW_KEY_SPACE
  2528. case 0xDE:return 39; // DOM_VK_QUOTE -> GLFW_KEY_APOSTROPHE
  2529. case 0xBC:return 44; // DOM_VK_COMMA -> GLFW_KEY_COMMA
  2530. case 0xAD:return 45; // DOM_VK_HYPHEN_MINUS -> GLFW_KEY_MINUS
  2531. case 0xBD:return 45; // DOM_VK_MINUS -> GLFW_KEY_MINUS
  2532. case 0xBE:return 46; // DOM_VK_PERIOD -> GLFW_KEY_PERIOD
  2533. case 0xBF:return 47; // DOM_VK_SLASH -> GLFW_KEY_SLASH
  2534. case 0x30:return 48; // DOM_VK_0 -> GLFW_KEY_0
  2535. case 0x31:return 49; // DOM_VK_1 -> GLFW_KEY_1
  2536. case 0x32:return 50; // DOM_VK_2 -> GLFW_KEY_2
  2537. case 0x33:return 51; // DOM_VK_3 -> GLFW_KEY_3
  2538. case 0x34:return 52; // DOM_VK_4 -> GLFW_KEY_4
  2539. case 0x35:return 53; // DOM_VK_5 -> GLFW_KEY_5
  2540. case 0x36:return 54; // DOM_VK_6 -> GLFW_KEY_6
  2541. case 0x37:return 55; // DOM_VK_7 -> GLFW_KEY_7
  2542. case 0x38:return 56; // DOM_VK_8 -> GLFW_KEY_8
  2543. case 0x39:return 57; // DOM_VK_9 -> GLFW_KEY_9
  2544. case 0x3B:return 59; // DOM_VK_SEMICOLON -> GLFW_KEY_SEMICOLON
  2545. case 0x3D:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2546. case 0xBB:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2547. case 0x41:return 65; // DOM_VK_A -> GLFW_KEY_A
  2548. case 0x42:return 66; // DOM_VK_B -> GLFW_KEY_B
  2549. case 0x43:return 67; // DOM_VK_C -> GLFW_KEY_C
  2550. case 0x44:return 68; // DOM_VK_D -> GLFW_KEY_D
  2551. case 0x45:return 69; // DOM_VK_E -> GLFW_KEY_E
  2552. case 0x46:return 70; // DOM_VK_F -> GLFW_KEY_F
  2553. case 0x47:return 71; // DOM_VK_G -> GLFW_KEY_G
  2554. case 0x48:return 72; // DOM_VK_H -> GLFW_KEY_H
  2555. case 0x49:return 73; // DOM_VK_I -> GLFW_KEY_I
  2556. case 0x4A:return 74; // DOM_VK_J -> GLFW_KEY_J
  2557. case 0x4B:return 75; // DOM_VK_K -> GLFW_KEY_K
  2558. case 0x4C:return 76; // DOM_VK_L -> GLFW_KEY_L
  2559. case 0x4D:return 77; // DOM_VK_M -> GLFW_KEY_M
  2560. case 0x4E:return 78; // DOM_VK_N -> GLFW_KEY_N
  2561. case 0x4F:return 79; // DOM_VK_O -> GLFW_KEY_O
  2562. case 0x50:return 80; // DOM_VK_P -> GLFW_KEY_P
  2563. case 0x51:return 81; // DOM_VK_Q -> GLFW_KEY_Q
  2564. case 0x52:return 82; // DOM_VK_R -> GLFW_KEY_R
  2565. case 0x53:return 83; // DOM_VK_S -> GLFW_KEY_S
  2566. case 0x54:return 84; // DOM_VK_T -> GLFW_KEY_T
  2567. case 0x55:return 85; // DOM_VK_U -> GLFW_KEY_U
  2568. case 0x56:return 86; // DOM_VK_V -> GLFW_KEY_V
  2569. case 0x57:return 87; // DOM_VK_W -> GLFW_KEY_W
  2570. case 0x58:return 88; // DOM_VK_X -> GLFW_KEY_X
  2571. case 0x59:return 89; // DOM_VK_Y -> GLFW_KEY_Y
  2572. case 0x5a:return 90; // DOM_VK_Z -> GLFW_KEY_Z
  2573. case 0xDB:return 91; // DOM_VK_OPEN_BRACKET -> GLFW_KEY_LEFT_BRACKET
  2574. case 0xDC:return 92; // DOM_VK_BACKSLASH -> GLFW_KEY_BACKSLASH
  2575. case 0xDD:return 93; // DOM_VK_CLOSE_BRACKET -> GLFW_KEY_RIGHT_BRACKET
  2576. case 0xC0:return 94; // DOM_VK_BACK_QUOTE -> GLFW_KEY_GRAVE_ACCENT
  2577. case 0x1B:return 256; // DOM_VK_ESCAPE -> GLFW_KEY_ESCAPE
  2578. case 0x0D:return 257; // DOM_VK_RETURN -> GLFW_KEY_ENTER
  2579. case 0x09:return 258; // DOM_VK_TAB -> GLFW_KEY_TAB
  2580. case 0x08:return 259; // DOM_VK_BACK -> GLFW_KEY_BACKSPACE
  2581. case 0x2D:return 260; // DOM_VK_INSERT -> GLFW_KEY_INSERT
  2582. case 0x2E:return 261; // DOM_VK_DELETE -> GLFW_KEY_DELETE
  2583. case 0x27:return 262; // DOM_VK_RIGHT -> GLFW_KEY_RIGHT
  2584. case 0x25:return 263; // DOM_VK_LEFT -> GLFW_KEY_LEFT
  2585. case 0x28:return 264; // DOM_VK_DOWN -> GLFW_KEY_DOWN
  2586. case 0x26:return 265; // DOM_VK_UP -> GLFW_KEY_UP
  2587. case 0x21:return 266; // DOM_VK_PAGE_UP -> GLFW_KEY_PAGE_UP
  2588. case 0x22:return 267; // DOM_VK_PAGE_DOWN -> GLFW_KEY_PAGE_DOWN
  2589. case 0x24:return 268; // DOM_VK_HOME -> GLFW_KEY_HOME
  2590. case 0x23:return 269; // DOM_VK_END -> GLFW_KEY_END
  2591. case 0x14:return 280; // DOM_VK_CAPS_LOCK -> GLFW_KEY_CAPS_LOCK
  2592. case 0x91:return 281; // DOM_VK_SCROLL_LOCK -> GLFW_KEY_SCROLL_LOCK
  2593. case 0x90:return 282; // DOM_VK_NUM_LOCK -> GLFW_KEY_NUM_LOCK
  2594. case 0x2C:return 283; // DOM_VK_SNAPSHOT -> GLFW_KEY_PRINT_SCREEN
  2595. case 0x13:return 284; // DOM_VK_PAUSE -> GLFW_KEY_PAUSE
  2596. case 0x70:return 290; // DOM_VK_F1 -> GLFW_KEY_F1
  2597. case 0x71:return 291; // DOM_VK_F2 -> GLFW_KEY_F2
  2598. case 0x72:return 292; // DOM_VK_F3 -> GLFW_KEY_F3
  2599. case 0x73:return 293; // DOM_VK_F4 -> GLFW_KEY_F4
  2600. case 0x74:return 294; // DOM_VK_F5 -> GLFW_KEY_F5
  2601. case 0x75:return 295; // DOM_VK_F6 -> GLFW_KEY_F6
  2602. case 0x76:return 296; // DOM_VK_F7 -> GLFW_KEY_F7
  2603. case 0x77:return 297; // DOM_VK_F8 -> GLFW_KEY_F8
  2604. case 0x78:return 298; // DOM_VK_F9 -> GLFW_KEY_F9
  2605. case 0x79:return 299; // DOM_VK_F10 -> GLFW_KEY_F10
  2606. case 0x7A:return 300; // DOM_VK_F11 -> GLFW_KEY_F11
  2607. case 0x7B:return 301; // DOM_VK_F12 -> GLFW_KEY_F12
  2608. case 0x7C:return 302; // DOM_VK_F13 -> GLFW_KEY_F13
  2609. case 0x7D:return 303; // DOM_VK_F14 -> GLFW_KEY_F14
  2610. case 0x7E:return 304; // DOM_VK_F15 -> GLFW_KEY_F15
  2611. case 0x7F:return 305; // DOM_VK_F16 -> GLFW_KEY_F16
  2612. case 0x80:return 306; // DOM_VK_F17 -> GLFW_KEY_F17
  2613. case 0x81:return 307; // DOM_VK_F18 -> GLFW_KEY_F18
  2614. case 0x82:return 308; // DOM_VK_F19 -> GLFW_KEY_F19
  2615. case 0x83:return 309; // DOM_VK_F20 -> GLFW_KEY_F20
  2616. case 0x84:return 310; // DOM_VK_F21 -> GLFW_KEY_F21
  2617. case 0x85:return 311; // DOM_VK_F22 -> GLFW_KEY_F22
  2618. case 0x86:return 312; // DOM_VK_F23 -> GLFW_KEY_F23
  2619. case 0x87:return 313; // DOM_VK_F24 -> GLFW_KEY_F24
  2620. case 0x88:return 314; // 0x88 (not used?) -> GLFW_KEY_F25
  2621. case 0x60:return 320; // DOM_VK_NUMPAD0 -> GLFW_KEY_KP_0
  2622. case 0x61:return 321; // DOM_VK_NUMPAD1 -> GLFW_KEY_KP_1
  2623. case 0x62:return 322; // DOM_VK_NUMPAD2 -> GLFW_KEY_KP_2
  2624. case 0x63:return 323; // DOM_VK_NUMPAD3 -> GLFW_KEY_KP_3
  2625. case 0x64:return 324; // DOM_VK_NUMPAD4 -> GLFW_KEY_KP_4
  2626. case 0x65:return 325; // DOM_VK_NUMPAD5 -> GLFW_KEY_KP_5
  2627. case 0x66:return 326; // DOM_VK_NUMPAD6 -> GLFW_KEY_KP_6
  2628. case 0x67:return 327; // DOM_VK_NUMPAD7 -> GLFW_KEY_KP_7
  2629. case 0x68:return 328; // DOM_VK_NUMPAD8 -> GLFW_KEY_KP_8
  2630. case 0x69:return 329; // DOM_VK_NUMPAD9 -> GLFW_KEY_KP_9
  2631. case 0x6E:return 330; // DOM_VK_DECIMAL -> GLFW_KEY_KP_DECIMAL
  2632. case 0x6F:return 331; // DOM_VK_DIVIDE -> GLFW_KEY_KP_DIVIDE
  2633. case 0x6A:return 332; // DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
  2634. case 0x6D:return 333; // DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT
  2635. case 0x6B:return 334; // DOM_VK_ADD -> GLFW_KEY_KP_ADD
  2636. // case 0x0D:return 335; // DOM_VK_RETURN -> GLFW_KEY_KP_ENTER (DOM_KEY_LOCATION_RIGHT)
  2637. // case 0x61:return 336; // DOM_VK_EQUALS -> GLFW_KEY_KP_EQUAL (DOM_KEY_LOCATION_RIGHT)
  2638. case 0x10:return 340; // DOM_VK_SHIFT -> GLFW_KEY_LEFT_SHIFT
  2639. case 0x11:return 341; // DOM_VK_CONTROL -> GLFW_KEY_LEFT_CONTROL
  2640. case 0x12:return 342; // DOM_VK_ALT -> GLFW_KEY_LEFT_ALT
  2641. case 0x5B:return 343; // DOM_VK_WIN -> GLFW_KEY_LEFT_SUPER
  2642. // case 0x10:return 344; // DOM_VK_SHIFT -> GLFW_KEY_RIGHT_SHIFT (DOM_KEY_LOCATION_RIGHT)
  2643. // case 0x11:return 345; // DOM_VK_CONTROL -> GLFW_KEY_RIGHT_CONTROL (DOM_KEY_LOCATION_RIGHT)
  2644. // case 0x12:return 346; // DOM_VK_ALT -> GLFW_KEY_RIGHT_ALT (DOM_KEY_LOCATION_RIGHT)
  2645. // case 0x5B:return 347; // DOM_VK_WIN -> GLFW_KEY_RIGHT_SUPER (DOM_KEY_LOCATION_RIGHT)
  2646. case 0x5D:return 348; // DOM_VK_CONTEXT_MENU -> GLFW_KEY_MENU
  2647. // XXX: GLFW_KEY_WORLD_1, GLFW_KEY_WORLD_2 what are these?
  2648. default:return -1; // GLFW_KEY_UNKNOWN
  2649. };
  2650. },getModBits:function (win) {
  2651. var mod = 0;
  2652. if (win.keys[340]) mod |= 0x0001; // GLFW_MOD_SHIFT
  2653. if (win.keys[341]) mod |= 0x0002; // GLFW_MOD_CONTROL
  2654. if (win.keys[342]) mod |= 0x0004; // GLFW_MOD_ALT
  2655. if (win.keys[343]) mod |= 0x0008; // GLFW_MOD_SUPER
  2656. return mod;
  2657. },onKeyPress:function (event) {
  2658. if (!GLFW.active || !GLFW.active.charFunc) return;
  2659. // correct unicode charCode is only available with onKeyPress event
  2660. var charCode = event.charCode;
  2661. if (charCode == 0 || (charCode >= 0x00 && charCode <= 0x1F)) return;
  2662. Module['dynCall_vii'](GLFW.active.charFunc, GLFW.active.id, charCode);
  2663. },onKeyChanged:function (event, status) {
  2664. if (!GLFW.active) return;
  2665. var key = GLFW.DOMToGLFWKeyCode(event.keyCode);
  2666. if (key == -1) return;
  2667. var repeat = status && GLFW.active.keys[key];
  2668. GLFW.active.keys[key] = status;
  2669. if (!GLFW.active.keyFunc) return;
  2670. if (repeat) status = 2; // GLFW_REPEAT
  2671. Module['dynCall_viiiii'](GLFW.active.keyFunc, GLFW.active.id, key, event.keyCode, status, GLFW.getModBits(GLFW.active));
  2672. },onKeydown:function (event) {
  2673. GLFW.onKeyChanged(event, 1); // GLFW_PRESS or GLFW_REPEAT
  2674. // This logic comes directly from the sdl implementation. We cannot
  2675. // call preventDefault on all keydown events otherwise onKeyPress will
  2676. // not get called
  2677. if (event.keyCode === 8 /* backspace */ || event.keyCode === 9 /* tab */) {
  2678. event.preventDefault();
  2679. }
  2680. },onKeyup:function (event) {
  2681. GLFW.onKeyChanged(event, 0); // GLFW_RELEASE
  2682. },onMousemove:function (event) {
  2683. if (!GLFW.active) return;
  2684. Browser.calculateMouseEvent(event);
  2685. if (event.target != Module["canvas"] || !GLFW.active.cursorPosFunc) return;
  2686. Module['dynCall_vidd'](GLFW.active.cursorPosFunc, GLFW.active.id, Browser.mouseX, Browser.mouseY);
  2687. },DOMToGLFWMouseButton:function (event) {
  2688. // DOM and glfw have different button codes.
  2689. // See http://www.w3schools.com/jsref/event_button.asp.
  2690. var eventButton = event['button'];
  2691. if (eventButton > 0) {
  2692. if (eventButton == 1) {
  2693. eventButton = 2;
  2694. } else {
  2695. eventButton = 1;
  2696. }
  2697. }
  2698. return eventButton;
  2699. },onMouseenter:function (event) {
  2700. if (!GLFW.active) return;
  2701. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2702. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 1);
  2703. },onMouseleave:function (event) {
  2704. if (!GLFW.active) return;
  2705. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2706. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 0);
  2707. },onMouseButtonChanged:function (event, status) {
  2708. if (!GLFW.active) return;
  2709. Browser.calculateMouseEvent(event);
  2710. if (event.target != Module["canvas"]) return;
  2711. eventButton = GLFW.DOMToGLFWMouseButton(event);
  2712. if (status == 1) { // GLFW_PRESS
  2713. GLFW.active.buttons |= (1 << eventButton);
  2714. try {
  2715. event.target.setCapture();
  2716. } catch (e) {}
  2717. } else { // GLFW_RELEASE
  2718. GLFW.active.buttons &= ~(1 << eventButton);
  2719. }
  2720. if (!GLFW.active.mouseButtonFunc) return;
  2721. Module['dynCall_viiii'](GLFW.active.mouseButtonFunc, GLFW.active.id, eventButton, status, GLFW.getModBits(GLFW.active));
  2722. },onMouseButtonDown:function (event) {
  2723. if (!GLFW.active) return;
  2724. GLFW.onMouseButtonChanged(event, 1); // GLFW_PRESS
  2725. },onMouseButtonUp:function (event) {
  2726. if (!GLFW.active) return;
  2727. GLFW.onMouseButtonChanged(event, 0); // GLFW_RELEASE
  2728. },onMouseWheel:function (event) {
  2729. // Note the minus sign that flips browser wheel direction (positive direction scrolls page down) to native wheel direction (positive direction is mouse wheel up)
  2730. var delta = -Browser.getMouseWheelDelta(event);
  2731. 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.
  2732. GLFW.wheelPos += delta;
  2733. if (!GLFW.active || !GLFW.active.scrollFunc || event.target != Module['canvas']) return;
  2734. var sx = 0;
  2735. var sy = 0;
  2736. if (event.type == 'mousewheel') {
  2737. sx = event.wheelDeltaX;
  2738. sy = event.wheelDeltaY;
  2739. } else {
  2740. sx = event.deltaX;
  2741. sy = event.deltaY;
  2742. }
  2743. Module['dynCall_vidd'](GLFW.active.scrollFunc, GLFW.active.id, sx, sy);
  2744. event.preventDefault();
  2745. },onCanvasResize:function (width, height) {
  2746. if (!GLFW.active) return;
  2747. var resizeNeeded = true;
  2748. // If the client is requestiong fullscreen mode
  2749. if (document["fullscreen"] || document["fullScreen"] || document["mozFullScreen"] || document["webkitIsFullScreen"]) {
  2750. GLFW.active.storedX = GLFW.active.x;
  2751. GLFW.active.storedY = GLFW.active.y;
  2752. GLFW.active.storedWidth = GLFW.active.width;
  2753. GLFW.active.storedHeight = GLFW.active.height;
  2754. GLFW.active.x = GLFW.active.y = 0;
  2755. GLFW.active.width = screen.width;
  2756. GLFW.active.height = screen.height;
  2757. GLFW.active.fullscreen = true;
  2758. // If the client is reverting from fullscreen mode
  2759. } else if (GLFW.active.fullscreen == true) {
  2760. GLFW.active.x = GLFW.active.storedX;
  2761. GLFW.active.y = GLFW.active.storedY;
  2762. GLFW.active.width = GLFW.active.storedWidth;
  2763. GLFW.active.height = GLFW.active.storedHeight;
  2764. GLFW.active.fullscreen = false;
  2765. // If the width/height values do not match current active window sizes
  2766. } else if (GLFW.active.width != width || GLFW.active.height != height) {
  2767. GLFW.active.width = width;
  2768. GLFW.active.height = height;
  2769. } else {
  2770. resizeNeeded = false;
  2771. }
  2772. // If any of the above conditions were true, we need to resize the canvas
  2773. if (resizeNeeded) {
  2774. // resets the canvas size to counter the aspect preservation of Browser.updateCanvasDimensions
  2775. Browser.setCanvasSize(GLFW.active.width, GLFW.active.height, true);
  2776. // TODO: Client dimensions (clientWidth/clientHeight) vs pixel dimensions (width/height) of
  2777. // the canvas should drive window and framebuffer size respectfully.
  2778. GLFW.onWindowSizeChanged();
  2779. GLFW.onFramebufferSizeChanged();
  2780. }
  2781. },onWindowSizeChanged:function () {
  2782. if (!GLFW.active) return;
  2783. if (!GLFW.active.windowSizeFunc) return;
  2784. Module['dynCall_viii'](GLFW.active.windowSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2785. },onFramebufferSizeChanged:function () {
  2786. if (!GLFW.active) return;
  2787. if (!GLFW.active.framebufferSizeFunc) return;
  2788. Module['dynCall_viii'](GLFW.active.framebufferSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2789. },requestFullscreen:function () {
  2790. var RFS = Module["canvas"]['requestFullscreen'] ||
  2791. Module["canvas"]['mozRequestFullScreen'] ||
  2792. Module["canvas"]['webkitRequestFullScreen'] ||
  2793. (function() {});
  2794. RFS.apply(Module["canvas"], []);
  2795. },requestFullScreen:function () {
  2796. Module.printErr('GLFW.requestFullScreen() is deprecated. Please call GLFW.requestFullscreen instead.');
  2797. GLFW.requestFullScreen = function() {
  2798. return GLFW.requestFullscreen();
  2799. }
  2800. return GLFW.requestFullscreen();
  2801. },exitFullscreen:function () {
  2802. var CFS = document['exitFullscreen'] ||
  2803. document['cancelFullScreen'] ||
  2804. document['mozCancelFullScreen'] ||
  2805. document['webkitCancelFullScreen'] ||
  2806. (function() {});
  2807. CFS.apply(document, []);
  2808. },cancelFullScreen:function () {
  2809. Module.printErr('GLFW.cancelFullScreen() is deprecated. Please call GLFW.exitFullscreen instead.');
  2810. GLFW.cancelFullScreen = function() {
  2811. return GLFW.exitFullscreen();
  2812. }
  2813. return GLFW.exitFullscreen();
  2814. },getTime:function () {
  2815. return _emscripten_get_now() / 1000;
  2816. },setWindowTitle:function (winid, title) {
  2817. var win = GLFW.WindowFromId(winid);
  2818. if (!win) return;
  2819. win.title = Pointer_stringify(title);
  2820. if (GLFW.active.id == win.id) {
  2821. document.title = win.title;
  2822. }
  2823. },setKeyCallback:function (winid, cbfun) {
  2824. var win = GLFW.WindowFromId(winid);
  2825. if (!win) return;
  2826. win.keyFunc = cbfun;
  2827. },setCharCallback:function (winid, cbfun) {
  2828. var win = GLFW.WindowFromId(winid);
  2829. if (!win) return;
  2830. win.charFunc = cbfun;
  2831. },setMouseButtonCallback:function (winid, cbfun) {
  2832. var win = GLFW.WindowFromId(winid);
  2833. if (!win) return;
  2834. win.mouseButtonFunc = cbfun;
  2835. },setCursorPosCallback:function (winid, cbfun) {
  2836. var win = GLFW.WindowFromId(winid);
  2837. if (!win) return;
  2838. win.cursorPosFunc = cbfun;
  2839. },setScrollCallback:function (winid, cbfun) {
  2840. var win = GLFW.WindowFromId(winid);
  2841. if (!win) return;
  2842. win.scrollFunc = cbfun;
  2843. },setWindowSizeCallback:function (winid, cbfun) {
  2844. var win = GLFW.WindowFromId(winid);
  2845. if (!win) return;
  2846. win.windowSizeFunc = cbfun;
  2847. },setWindowCloseCallback:function (winid, cbfun) {
  2848. var win = GLFW.WindowFromId(winid);
  2849. if (!win) return;
  2850. win.windowCloseFunc = cbfun;
  2851. },setWindowRefreshCallback:function (winid, cbfun) {
  2852. var win = GLFW.WindowFromId(winid);
  2853. if (!win) return;
  2854. win.windowRefreshFunc = cbfun;
  2855. },onClickRequestPointerLock:function (e) {
  2856. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2857. Module['canvas'].requestPointerLock();
  2858. e.preventDefault();
  2859. }
  2860. },setInputMode:function (winid, mode, value) {
  2861. var win = GLFW.WindowFromId(winid);
  2862. if (!win) return;
  2863. switch(mode) {
  2864. case 0x00033001: { // GLFW_CURSOR
  2865. switch(value) {
  2866. case 0x00034001: { // GLFW_CURSOR_NORMAL
  2867. win.inputModes[mode] = value;
  2868. Module['canvas'].removeEventListener('click', GLFW.onClickRequestPointerLock, true);
  2869. Module['canvas'].exitPointerLock();
  2870. break;
  2871. }
  2872. case 0x00034002: { // GLFW_CURSOR_HIDDEN
  2873. console.log("glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.");
  2874. break;
  2875. }
  2876. case 0x00034003: { // GLFW_CURSOR_DISABLED
  2877. win.inputModes[mode] = value;
  2878. Module['canvas'].addEventListener('click', GLFW.onClickRequestPointerLock, true);
  2879. Module['canvas'].requestPointerLock();
  2880. break;
  2881. }
  2882. default: {
  2883. console.log("glfwSetInputMode called with unknown value parameter value: " + value + ".");
  2884. break;
  2885. }
  2886. }
  2887. break;
  2888. }
  2889. case 0x00033002: { // GLFW_STICKY_KEYS
  2890. console.log("glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.");
  2891. break;
  2892. }
  2893. case 0x00033003: { // GLFW_STICKY_MOUSE_BUTTONS
  2894. console.log("glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.");
  2895. break;
  2896. }
  2897. default: {
  2898. console.log("glfwSetInputMode called with unknown mode parameter value: " + mode + ".");
  2899. break;
  2900. }
  2901. }
  2902. },getKey:function (winid, key) {
  2903. var win = GLFW.WindowFromId(winid);
  2904. if (!win) return 0;
  2905. return win.keys[key];
  2906. },getMouseButton:function (winid, button) {
  2907. var win = GLFW.WindowFromId(winid);
  2908. if (!win) return 0;
  2909. return (win.buttons & (1 << button)) > 0;
  2910. },getCursorPos:function (winid, x, y) {
  2911. setValue(x, Browser.mouseX, 'double');
  2912. setValue(y, Browser.mouseY, 'double');
  2913. },getMousePos:function (winid, x, y) {
  2914. setValue(x, Browser.mouseX, 'i32');
  2915. setValue(y, Browser.mouseY, 'i32');
  2916. },setCursorPos:function (winid, x, y) {
  2917. },getWindowPos:function (winid, x, y) {
  2918. var wx = 0;
  2919. var wy = 0;
  2920. var win = GLFW.WindowFromId(winid);
  2921. if (win) {
  2922. wx = win.x;
  2923. wy = win.y;
  2924. }
  2925. setValue(x, wx, 'i32');
  2926. setValue(y, wy, 'i32');
  2927. },setWindowPos:function (winid, x, y) {
  2928. var win = GLFW.WindowFromId(winid);
  2929. if (!win) return;
  2930. win.x = x;
  2931. win.y = y;
  2932. },getWindowSize:function (winid, width, height) {
  2933. var ww = 0;
  2934. var wh = 0;
  2935. var win = GLFW.WindowFromId(winid);
  2936. if (win) {
  2937. ww = win.width;
  2938. wh = win.height;
  2939. }
  2940. setValue(width, ww, 'i32');
  2941. setValue(height, wh, 'i32');
  2942. },setWindowSize:function (winid, width, height) {
  2943. var win = GLFW.WindowFromId(winid);
  2944. if (!win) return;
  2945. if (GLFW.active.id == win.id) {
  2946. if (width == screen.width && height == screen.height) {
  2947. GLFW.requestFullscreen();
  2948. } else {
  2949. GLFW.exitFullscreen();
  2950. Browser.setCanvasSize(width, height);
  2951. win.width = width;
  2952. win.height = height;
  2953. }
  2954. }
  2955. if (!win.windowSizeFunc) return;
  2956. Module['dynCall_viii'](win.windowSizeFunc, win.id, width, height);
  2957. },createWindow:function (width, height, title, monitor, share) {
  2958. var i, id;
  2959. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] !== null; i++);
  2960. if (i > 0) throw "glfwCreateWindow only supports one window at time currently";
  2961. // id for window
  2962. id = i + 1;
  2963. // not valid
  2964. if (width <= 0 || height <= 0) return 0;
  2965. if (monitor) {
  2966. GLFW.requestFullscreen();
  2967. } else {
  2968. Browser.setCanvasSize(width, height);
  2969. }
  2970. // Create context when there are no existing alive windows
  2971. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] == null; i++);
  2972. if (i == GLFW.windows.length) {
  2973. var contextAttributes = {
  2974. antialias: (GLFW.hints[0x0002100D] > 1), // GLFW_SAMPLES
  2975. depth: (GLFW.hints[0x00021005] > 0), // GLFW_DEPTH_BITS
  2976. stencil: (GLFW.hints[0x00021006] > 0), // GLFW_STENCIL_BITS
  2977. alpha: (GLFW.hints[0x00021004] > 0) // GLFW_ALPHA_BITS
  2978. }
  2979. Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
  2980. }
  2981. // If context creation failed, do not return a valid window
  2982. if (!Module.ctx) return 0;
  2983. // Get non alive id
  2984. var win = new GLFW.Window(id, width, height, title, monitor, share);
  2985. // Set window to array
  2986. if (id - 1 == GLFW.windows.length) {
  2987. GLFW.windows.push(win);
  2988. } else {
  2989. GLFW.windows[id - 1] = win;
  2990. }
  2991. GLFW.active = win;
  2992. return win.id;
  2993. },destroyWindow:function (winid) {
  2994. var win = GLFW.WindowFromId(winid);
  2995. if (!win) return;
  2996. if (win.windowCloseFunc)
  2997. Module['dynCall_vi'](win.windowCloseFunc, win.id);
  2998. GLFW.windows[win.id - 1] = null;
  2999. if (GLFW.active.id == win.id)
  3000. GLFW.active = null;
  3001. // Destroy context when no alive windows
  3002. for (var i = 0; i < GLFW.windows.length; i++)
  3003. if (GLFW.windows[i] !== null) return;
  3004. Module.ctx = Browser.destroyContext(Module['canvas'], true, true);
  3005. },swapBuffers:function (winid) {
  3006. },GLFW2ParamToGLFW3Param:function (param) {
  3007. table = {
  3008. 0x00030001:0, // GLFW_MOUSE_CURSOR
  3009. 0x00030002:0, // GLFW_STICKY_KEYS
  3010. 0x00030003:0, // GLFW_STICKY_MOUSE_BUTTONS
  3011. 0x00030004:0, // GLFW_SYSTEM_KEYS
  3012. 0x00030005:0, // GLFW_KEY_REPEAT
  3013. 0x00030006:0, // GLFW_AUTO_POLL_EVENTS
  3014. 0x00020001:0, // GLFW_OPENED
  3015. 0x00020002:0, // GLFW_ACTIVE
  3016. 0x00020003:0, // GLFW_ICONIFIED
  3017. 0x00020004:0, // GLFW_ACCELERATED
  3018. 0x00020005:0x00021001, // GLFW_RED_BITS
  3019. 0x00020006:0x00021002, // GLFW_GREEN_BITS
  3020. 0x00020007:0x00021003, // GLFW_BLUE_BITS
  3021. 0x00020008:0x00021004, // GLFW_ALPHA_BITS
  3022. 0x00020009:0x00021005, // GLFW_DEPTH_BITS
  3023. 0x0002000A:0x00021006, // GLFW_STENCIL_BITS
  3024. 0x0002000B:0x0002100F, // GLFW_REFRESH_RATE
  3025. 0x0002000C:0x00021007, // GLFW_ACCUM_RED_BITS
  3026. 0x0002000D:0x00021008, // GLFW_ACCUM_GREEN_BITS
  3027. 0x0002000E:0x00021009, // GLFW_ACCUM_BLUE_BITS
  3028. 0x0002000F:0x0002100A, // GLFW_ACCUM_ALPHA_BITS
  3029. 0x00020010:0x0002100B, // GLFW_AUX_BUFFERS
  3030. 0x00020011:0x0002100C, // GLFW_STEREO
  3031. 0x00020012:0, // GLFW_WINDOW_NO_RESIZE
  3032. 0x00020013:0x0002100D, // GLFW_FSAA_SAMPLES
  3033. 0x00020014:0x00022002, // GLFW_OPENGL_VERSION_MAJOR
  3034. 0x00020015:0x00022003, // GLFW_OPENGL_VERSION_MINOR
  3035. 0x00020016:0x00022006, // GLFW_OPENGL_FORWARD_COMPAT
  3036. 0x00020017:0x00022007, // GLFW_OPENGL_DEBUG_CONTEXT
  3037. 0x00020018:0x00022008, // GLFW_OPENGL_PROFILE
  3038. };
  3039. return table[param];
  3040. }};function _glfwGetVideoModes(monitor, count) {
  3041. setValue(count, 0, 'i32');
  3042. return 0;
  3043. }
  3044. function _glLinkProgram(program) {
  3045. GLctx.linkProgram(GL.programs[program]);
  3046. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  3047. GL.populateUniformTable(program);
  3048. }
  3049. function _glBindTexture(target, texture) {
  3050. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  3051. }
  3052. function _emscripten_glStencilFunc(x0, x1, x2) { GLctx['stencilFunc'](x0, x1, x2) }
  3053. function _glGetString(name_) {
  3054. if (GL.stringCache[name_]) return GL.stringCache[name_];
  3055. var ret;
  3056. switch(name_) {
  3057. case 0x1F00 /* GL_VENDOR */:
  3058. case 0x1F01 /* GL_RENDERER */:
  3059. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  3060. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  3061. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  3062. break;
  3063. case 0x1F02 /* GL_VERSION */:
  3064. var glVersion = GLctx.getParameter(GLctx.VERSION);
  3065. // return GLES version string corresponding to the version of the WebGL context
  3066. {
  3067. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  3068. }
  3069. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  3070. break;
  3071. case 0x1F03 /* GL_EXTENSIONS */:
  3072. var exts = GLctx.getSupportedExtensions();
  3073. var gl_exts = [];
  3074. for (var i = 0; i < exts.length; ++i) {
  3075. gl_exts.push(exts[i]);
  3076. gl_exts.push("GL_" + exts[i]);
  3077. }
  3078. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  3079. break;
  3080. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  3081. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  3082. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  3083. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  3084. var ver_num = glslVersion.match(ver_re);
  3085. if (ver_num !== null) {
  3086. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  3087. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  3088. }
  3089. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  3090. break;
  3091. default:
  3092. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  3093. return 0;
  3094. }
  3095. GL.stringCache[name_] = ret;
  3096. return ret;
  3097. }
  3098. function _emscripten_glUniform3iv(location, count, value) {
  3099. GLctx.uniform3iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*12)>>2));
  3100. }
  3101. function _emscripten_glShaderSource(shader, count, string, length) {
  3102. var source = GL.getSource(shader, count, string, length);
  3103. GLctx.shaderSource(GL.shaders[shader], source);
  3104. }
  3105. function _emscripten_glReleaseShaderCompiler() {
  3106. // NOP (as allowed by GLES 2.0 spec)
  3107. }
  3108. function _glfwSetScrollCallback(winid, cbfun) {
  3109. GLFW.setScrollCallback(winid, cbfun);
  3110. }
  3111. function _emscripten_glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  3112. function _emscripten_glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  3113. function _glCompileShader(shader) {
  3114. GLctx.compileShader(GL.shaders[shader]);
  3115. }
  3116. 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};
  3117. 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"};
  3118. function ___setErrNo(value) {
  3119. if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
  3120. else Module.printErr('failed to set errno from JS');
  3121. return value;
  3122. }
  3123. var PATH={splitPath:function (filename) {
  3124. var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  3125. return splitPathRe.exec(filename).slice(1);
  3126. },normalizeArray:function (parts, allowAboveRoot) {
  3127. // if the path tries to go above the root, `up` ends up > 0
  3128. var up = 0;
  3129. for (var i = parts.length - 1; i >= 0; i--) {
  3130. var last = parts[i];
  3131. if (last === '.') {
  3132. parts.splice(i, 1);
  3133. } else if (last === '..') {
  3134. parts.splice(i, 1);
  3135. up++;
  3136. } else if (up) {
  3137. parts.splice(i, 1);
  3138. up--;
  3139. }
  3140. }
  3141. // if the path is allowed to go above the root, restore leading ..s
  3142. if (allowAboveRoot) {
  3143. for (; up--; up) {
  3144. parts.unshift('..');
  3145. }
  3146. }
  3147. return parts;
  3148. },normalize:function (path) {
  3149. var isAbsolute = path.charAt(0) === '/',
  3150. trailingSlash = path.substr(-1) === '/';
  3151. // Normalize the path
  3152. path = PATH.normalizeArray(path.split('/').filter(function(p) {
  3153. return !!p;
  3154. }), !isAbsolute).join('/');
  3155. if (!path && !isAbsolute) {
  3156. path = '.';
  3157. }
  3158. if (path && trailingSlash) {
  3159. path += '/';
  3160. }
  3161. return (isAbsolute ? '/' : '') + path;
  3162. },dirname:function (path) {
  3163. var result = PATH.splitPath(path),
  3164. root = result[0],
  3165. dir = result[1];
  3166. if (!root && !dir) {
  3167. // No dirname whatsoever
  3168. return '.';
  3169. }
  3170. if (dir) {
  3171. // It has a dirname, strip trailing slash
  3172. dir = dir.substr(0, dir.length - 1);
  3173. }
  3174. return root + dir;
  3175. },basename:function (path) {
  3176. // EMSCRIPTEN return '/'' for '/', not an empty string
  3177. if (path === '/') return '/';
  3178. var lastSlash = path.lastIndexOf('/');
  3179. if (lastSlash === -1) return path;
  3180. return path.substr(lastSlash+1);
  3181. },extname:function (path) {
  3182. return PATH.splitPath(path)[3];
  3183. },join:function () {
  3184. var paths = Array.prototype.slice.call(arguments, 0);
  3185. return PATH.normalize(paths.join('/'));
  3186. },join2:function (l, r) {
  3187. return PATH.normalize(l + '/' + r);
  3188. },resolve:function () {
  3189. var resolvedPath = '',
  3190. resolvedAbsolute = false;
  3191. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  3192. var path = (i >= 0) ? arguments[i] : FS.cwd();
  3193. // Skip empty and invalid entries
  3194. if (typeof path !== 'string') {
  3195. throw new TypeError('Arguments to path.resolve must be strings');
  3196. } else if (!path) {
  3197. return ''; // an invalid portion invalidates the whole thing
  3198. }
  3199. resolvedPath = path + '/' + resolvedPath;
  3200. resolvedAbsolute = path.charAt(0) === '/';
  3201. }
  3202. // At this point the path should be resolved to a full absolute path, but
  3203. // handle relative paths to be safe (might happen when process.cwd() fails)
  3204. resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
  3205. return !!p;
  3206. }), !resolvedAbsolute).join('/');
  3207. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  3208. },relative:function (from, to) {
  3209. from = PATH.resolve(from).substr(1);
  3210. to = PATH.resolve(to).substr(1);
  3211. function trim(arr) {
  3212. var start = 0;
  3213. for (; start < arr.length; start++) {
  3214. if (arr[start] !== '') break;
  3215. }
  3216. var end = arr.length - 1;
  3217. for (; end >= 0; end--) {
  3218. if (arr[end] !== '') break;
  3219. }
  3220. if (start > end) return [];
  3221. return arr.slice(start, end - start + 1);
  3222. }
  3223. var fromParts = trim(from.split('/'));
  3224. var toParts = trim(to.split('/'));
  3225. var length = Math.min(fromParts.length, toParts.length);
  3226. var samePartsLength = length;
  3227. for (var i = 0; i < length; i++) {
  3228. if (fromParts[i] !== toParts[i]) {
  3229. samePartsLength = i;
  3230. break;
  3231. }
  3232. }
  3233. var outputParts = [];
  3234. for (var i = samePartsLength; i < fromParts.length; i++) {
  3235. outputParts.push('..');
  3236. }
  3237. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  3238. return outputParts.join('/');
  3239. }};
  3240. var TTY={ttys:[],init:function () {
  3241. // https://github.com/kripken/emscripten/pull/1555
  3242. // if (ENVIRONMENT_IS_NODE) {
  3243. // // currently, FS.init does not distinguish if process.stdin is a file or TTY
  3244. // // device, it always assumes it's a TTY device. because of this, we're forcing
  3245. // // process.stdin to UTF8 encoding to at least make stdin reading compatible
  3246. // // with text files until FS.init can be refactored.
  3247. // process['stdin']['setEncoding']('utf8');
  3248. // }
  3249. },shutdown:function () {
  3250. // https://github.com/kripken/emscripten/pull/1555
  3251. // if (ENVIRONMENT_IS_NODE) {
  3252. // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
  3253. // // 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
  3254. // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
  3255. // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
  3256. // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
  3257. // process['stdin']['pause']();
  3258. // }
  3259. },register:function (dev, ops) {
  3260. TTY.ttys[dev] = { input: [], output: [], ops: ops };
  3261. FS.registerDevice(dev, TTY.stream_ops);
  3262. },stream_ops:{open:function (stream) {
  3263. var tty = TTY.ttys[stream.node.rdev];
  3264. if (!tty) {
  3265. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3266. }
  3267. stream.tty = tty;
  3268. stream.seekable = false;
  3269. },close:function (stream) {
  3270. // flush any pending line data
  3271. stream.tty.ops.flush(stream.tty);
  3272. },flush:function (stream) {
  3273. stream.tty.ops.flush(stream.tty);
  3274. },read:function (stream, buffer, offset, length, pos /* ignored */) {
  3275. if (!stream.tty || !stream.tty.ops.get_char) {
  3276. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3277. }
  3278. var bytesRead = 0;
  3279. for (var i = 0; i < length; i++) {
  3280. var result;
  3281. try {
  3282. result = stream.tty.ops.get_char(stream.tty);
  3283. } catch (e) {
  3284. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3285. }
  3286. if (result === undefined && bytesRead === 0) {
  3287. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  3288. }
  3289. if (result === null || result === undefined) break;
  3290. bytesRead++;
  3291. buffer[offset+i] = result;
  3292. }
  3293. if (bytesRead) {
  3294. stream.node.timestamp = Date.now();
  3295. }
  3296. return bytesRead;
  3297. },write:function (stream, buffer, offset, length, pos) {
  3298. if (!stream.tty || !stream.tty.ops.put_char) {
  3299. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3300. }
  3301. for (var i = 0; i < length; i++) {
  3302. try {
  3303. stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
  3304. } catch (e) {
  3305. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3306. }
  3307. }
  3308. if (length) {
  3309. stream.node.timestamp = Date.now();
  3310. }
  3311. return i;
  3312. }},default_tty_ops:{get_char:function (tty) {
  3313. if (!tty.input.length) {
  3314. var result = null;
  3315. if (ENVIRONMENT_IS_NODE) {
  3316. // we will read data by chunks of BUFSIZE
  3317. var BUFSIZE = 256;
  3318. var buf = new Buffer(BUFSIZE);
  3319. var bytesRead = 0;
  3320. var isPosixPlatform = (process.platform != 'win32'); // Node doesn't offer a direct check, so test by exclusion
  3321. var fd = process.stdin.fd;
  3322. if (isPosixPlatform) {
  3323. // Linux and Mac cannot use process.stdin.fd (which isn't set up as sync)
  3324. var usingDevice = false;
  3325. try {
  3326. fd = fs.openSync('/dev/stdin', 'r');
  3327. usingDevice = true;
  3328. } catch (e) {}
  3329. }
  3330. try {
  3331. bytesRead = fs.readSync(fd, buf, 0, BUFSIZE, null);
  3332. } catch(e) {
  3333. // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes,
  3334. // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0.
  3335. if (e.toString().indexOf('EOF') != -1) bytesRead = 0;
  3336. else throw e;
  3337. }
  3338. if (usingDevice) { fs.closeSync(fd); }
  3339. if (bytesRead > 0) {
  3340. result = buf.slice(0, bytesRead).toString('utf-8');
  3341. } else {
  3342. result = null;
  3343. }
  3344. } else if (typeof window != 'undefined' &&
  3345. typeof window.prompt == 'function') {
  3346. // Browser.
  3347. result = window.prompt('Input: '); // returns null on cancel
  3348. if (result !== null) {
  3349. result += '\n';
  3350. }
  3351. } else if (typeof readline == 'function') {
  3352. // Command line.
  3353. result = readline();
  3354. if (result !== null) {
  3355. result += '\n';
  3356. }
  3357. }
  3358. if (!result) {
  3359. return null;
  3360. }
  3361. tty.input = intArrayFromString(result, true);
  3362. }
  3363. return tty.input.shift();
  3364. },put_char:function (tty, val) {
  3365. if (val === null || val === 10) {
  3366. Module['print'](UTF8ArrayToString(tty.output, 0));
  3367. tty.output = [];
  3368. } else {
  3369. if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle.
  3370. }
  3371. },flush:function (tty) {
  3372. if (tty.output && tty.output.length > 0) {
  3373. Module['print'](UTF8ArrayToString(tty.output, 0));
  3374. tty.output = [];
  3375. }
  3376. }},default_tty1_ops:{put_char:function (tty, val) {
  3377. if (val === null || val === 10) {
  3378. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3379. tty.output = [];
  3380. } else {
  3381. if (val != 0) tty.output.push(val);
  3382. }
  3383. },flush:function (tty) {
  3384. if (tty.output && tty.output.length > 0) {
  3385. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3386. tty.output = [];
  3387. }
  3388. }}};
  3389. var MEMFS={ops_table:null,mount:function (mount) {
  3390. return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
  3391. },createNode:function (parent, name, mode, dev) {
  3392. if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
  3393. // no supported
  3394. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  3395. }
  3396. if (!MEMFS.ops_table) {
  3397. MEMFS.ops_table = {
  3398. dir: {
  3399. node: {
  3400. getattr: MEMFS.node_ops.getattr,
  3401. setattr: MEMFS.node_ops.setattr,
  3402. lookup: MEMFS.node_ops.lookup,
  3403. mknod: MEMFS.node_ops.mknod,
  3404. rename: MEMFS.node_ops.rename,
  3405. unlink: MEMFS.node_ops.unlink,
  3406. rmdir: MEMFS.node_ops.rmdir,
  3407. readdir: MEMFS.node_ops.readdir,
  3408. symlink: MEMFS.node_ops.symlink
  3409. },
  3410. stream: {
  3411. llseek: MEMFS.stream_ops.llseek
  3412. }
  3413. },
  3414. file: {
  3415. node: {
  3416. getattr: MEMFS.node_ops.getattr,
  3417. setattr: MEMFS.node_ops.setattr
  3418. },
  3419. stream: {
  3420. llseek: MEMFS.stream_ops.llseek,
  3421. read: MEMFS.stream_ops.read,
  3422. write: MEMFS.stream_ops.write,
  3423. allocate: MEMFS.stream_ops.allocate,
  3424. mmap: MEMFS.stream_ops.mmap,
  3425. msync: MEMFS.stream_ops.msync
  3426. }
  3427. },
  3428. link: {
  3429. node: {
  3430. getattr: MEMFS.node_ops.getattr,
  3431. setattr: MEMFS.node_ops.setattr,
  3432. readlink: MEMFS.node_ops.readlink
  3433. },
  3434. stream: {}
  3435. },
  3436. chrdev: {
  3437. node: {
  3438. getattr: MEMFS.node_ops.getattr,
  3439. setattr: MEMFS.node_ops.setattr
  3440. },
  3441. stream: FS.chrdev_stream_ops
  3442. }
  3443. };
  3444. }
  3445. var node = FS.createNode(parent, name, mode, dev);
  3446. if (FS.isDir(node.mode)) {
  3447. node.node_ops = MEMFS.ops_table.dir.node;
  3448. node.stream_ops = MEMFS.ops_table.dir.stream;
  3449. node.contents = {};
  3450. } else if (FS.isFile(node.mode)) {
  3451. node.node_ops = MEMFS.ops_table.file.node;
  3452. node.stream_ops = MEMFS.ops_table.file.stream;
  3453. node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
  3454. // 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
  3455. // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
  3456. // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
  3457. node.contents = null;
  3458. } else if (FS.isLink(node.mode)) {
  3459. node.node_ops = MEMFS.ops_table.link.node;
  3460. node.stream_ops = MEMFS.ops_table.link.stream;
  3461. } else if (FS.isChrdev(node.mode)) {
  3462. node.node_ops = MEMFS.ops_table.chrdev.node;
  3463. node.stream_ops = MEMFS.ops_table.chrdev.stream;
  3464. }
  3465. node.timestamp = Date.now();
  3466. // add the new node to the parent
  3467. if (parent) {
  3468. parent.contents[name] = node;
  3469. }
  3470. return node;
  3471. },getFileDataAsRegularArray:function (node) {
  3472. if (node.contents && node.contents.subarray) {
  3473. var arr = [];
  3474. for (var i = 0; i < node.usedBytes; ++i) arr.push(node.contents[i]);
  3475. return arr; // Returns a copy of the original data.
  3476. }
  3477. return node.contents; // No-op, the file contents are already in a JS array. Return as-is.
  3478. },getFileDataAsTypedArray:function (node) {
  3479. if (!node.contents) return new Uint8Array;
  3480. if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes.
  3481. return new Uint8Array(node.contents);
  3482. },expandFileStorage:function (node, newCapacity) {
  3483. // 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
  3484. // instead of a typed array. This makes resizing the array more flexible because we can just .push() elements at the back to
  3485. // increase the size.
  3486. if (node.contents && node.contents.subarray && newCapacity > node.contents.length) {
  3487. node.contents = MEMFS.getFileDataAsRegularArray(node);
  3488. node.usedBytes = node.contents.length; // We might be writing to a lazy-loaded file which had overridden this property, so force-reset it.
  3489. }
  3490. 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.
  3491. var prevCapacity = node.contents ? node.contents.length : 0;
  3492. if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough.
  3493. // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
  3494. // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
  3495. // avoid overshooting the allocation cap by a very large margin.
  3496. var CAPACITY_DOUBLING_MAX = 1024 * 1024;
  3497. newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) | 0);
  3498. if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding.
  3499. var oldContents = node.contents;
  3500. node.contents = new Uint8Array(newCapacity); // Allocate new storage.
  3501. if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage.
  3502. return;
  3503. }
  3504. // Not using a typed array to back the file storage. Use a standard JS array instead.
  3505. if (!node.contents && newCapacity > 0) node.contents = [];
  3506. while (node.contents.length < newCapacity) node.contents.push(0);
  3507. },resizeFileStorage:function (node, newSize) {
  3508. if (node.usedBytes == newSize) return;
  3509. if (newSize == 0) {
  3510. node.contents = null; // Fully decommit when requesting a resize to zero.
  3511. node.usedBytes = 0;
  3512. return;
  3513. }
  3514. if (!node.contents || node.contents.subarray) { // Resize a typed array if that is being used as the backing store.
  3515. var oldContents = node.contents;
  3516. node.contents = new Uint8Array(new ArrayBuffer(newSize)); // Allocate new storage.
  3517. if (oldContents) {
  3518. node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage.
  3519. }
  3520. node.usedBytes = newSize;
  3521. return;
  3522. }
  3523. // Backing with a JS array.
  3524. if (!node.contents) node.contents = [];
  3525. if (node.contents.length > newSize) node.contents.length = newSize;
  3526. else while (node.contents.length < newSize) node.contents.push(0);
  3527. node.usedBytes = newSize;
  3528. },node_ops:{getattr:function (node) {
  3529. var attr = {};
  3530. // device numbers reuse inode numbers.
  3531. attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
  3532. attr.ino = node.id;
  3533. attr.mode = node.mode;
  3534. attr.nlink = 1;
  3535. attr.uid = 0;
  3536. attr.gid = 0;
  3537. attr.rdev = node.rdev;
  3538. if (FS.isDir(node.mode)) {
  3539. attr.size = 4096;
  3540. } else if (FS.isFile(node.mode)) {
  3541. attr.size = node.usedBytes;
  3542. } else if (FS.isLink(node.mode)) {
  3543. attr.size = node.link.length;
  3544. } else {
  3545. attr.size = 0;
  3546. }
  3547. attr.atime = new Date(node.timestamp);
  3548. attr.mtime = new Date(node.timestamp);
  3549. attr.ctime = new Date(node.timestamp);
  3550. // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
  3551. // but this is not required by the standard.
  3552. attr.blksize = 4096;
  3553. attr.blocks = Math.ceil(attr.size / attr.blksize);
  3554. return attr;
  3555. },setattr:function (node, attr) {
  3556. if (attr.mode !== undefined) {
  3557. node.mode = attr.mode;
  3558. }
  3559. if (attr.timestamp !== undefined) {
  3560. node.timestamp = attr.timestamp;
  3561. }
  3562. if (attr.size !== undefined) {
  3563. MEMFS.resizeFileStorage(node, attr.size);
  3564. }
  3565. },lookup:function (parent, name) {
  3566. throw FS.genericErrors[ERRNO_CODES.ENOENT];
  3567. },mknod:function (parent, name, mode, dev) {
  3568. return MEMFS.createNode(parent, name, mode, dev);
  3569. },rename:function (old_node, new_dir, new_name) {
  3570. // if we're overwriting a directory at new_name, make sure it's empty.
  3571. if (FS.isDir(old_node.mode)) {
  3572. var new_node;
  3573. try {
  3574. new_node = FS.lookupNode(new_dir, new_name);
  3575. } catch (e) {
  3576. }
  3577. if (new_node) {
  3578. for (var i in new_node.contents) {
  3579. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3580. }
  3581. }
  3582. }
  3583. // do the internal rewiring
  3584. delete old_node.parent.contents[old_node.name];
  3585. old_node.name = new_name;
  3586. new_dir.contents[new_name] = old_node;
  3587. old_node.parent = new_dir;
  3588. },unlink:function (parent, name) {
  3589. delete parent.contents[name];
  3590. },rmdir:function (parent, name) {
  3591. var node = FS.lookupNode(parent, name);
  3592. for (var i in node.contents) {
  3593. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3594. }
  3595. delete parent.contents[name];
  3596. },readdir:function (node) {
  3597. var entries = ['.', '..']
  3598. for (var key in node.contents) {
  3599. if (!node.contents.hasOwnProperty(key)) {
  3600. continue;
  3601. }
  3602. entries.push(key);
  3603. }
  3604. return entries;
  3605. },symlink:function (parent, newname, oldpath) {
  3606. var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
  3607. node.link = oldpath;
  3608. return node;
  3609. },readlink:function (node) {
  3610. if (!FS.isLink(node.mode)) {
  3611. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3612. }
  3613. return node.link;
  3614. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  3615. var contents = stream.node.contents;
  3616. if (position >= stream.node.usedBytes) return 0;
  3617. var size = Math.min(stream.node.usedBytes - position, length);
  3618. assert(size >= 0);
  3619. if (size > 8 && contents.subarray) { // non-trivial, and typed array
  3620. buffer.set(contents.subarray(position, position + size), offset);
  3621. } else {
  3622. for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
  3623. }
  3624. return size;
  3625. },write:function (stream, buffer, offset, length, position, canOwn) {
  3626. if (!length) return 0;
  3627. var node = stream.node;
  3628. node.timestamp = Date.now();
  3629. if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array?
  3630. if (canOwn) {
  3631. assert(position === 0, 'canOwn must imply no weird position inside the file');
  3632. node.contents = buffer.subarray(offset, offset + length);
  3633. node.usedBytes = length;
  3634. return length;
  3635. } 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.
  3636. node.contents = new Uint8Array(buffer.subarray(offset, offset + length));
  3637. node.usedBytes = length;
  3638. return length;
  3639. } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file?
  3640. node.contents.set(buffer.subarray(offset, offset + length), position);
  3641. return length;
  3642. }
  3643. }
  3644. // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
  3645. MEMFS.expandFileStorage(node, position+length);
  3646. if (node.contents.subarray && buffer.subarray) node.contents.set(buffer.subarray(offset, offset + length), position); // Use typed array write if available.
  3647. else {
  3648. for (var i = 0; i < length; i++) {
  3649. node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not.
  3650. }
  3651. }
  3652. node.usedBytes = Math.max(node.usedBytes, position+length);
  3653. return length;
  3654. },llseek:function (stream, offset, whence) {
  3655. var position = offset;
  3656. if (whence === 1) { // SEEK_CUR.
  3657. position += stream.position;
  3658. } else if (whence === 2) { // SEEK_END.
  3659. if (FS.isFile(stream.node.mode)) {
  3660. position += stream.node.usedBytes;
  3661. }
  3662. }
  3663. if (position < 0) {
  3664. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3665. }
  3666. return position;
  3667. },allocate:function (stream, offset, length) {
  3668. MEMFS.expandFileStorage(stream.node, offset + length);
  3669. stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
  3670. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  3671. if (!FS.isFile(stream.node.mode)) {
  3672. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3673. }
  3674. var ptr;
  3675. var allocated;
  3676. var contents = stream.node.contents;
  3677. // Only make a new copy when MAP_PRIVATE is specified.
  3678. if ( !(flags & 2) &&
  3679. (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
  3680. // We can't emulate MAP_SHARED when the file is not backed by the buffer
  3681. // we're mapping to (e.g. the HEAP buffer).
  3682. allocated = false;
  3683. ptr = contents.byteOffset;
  3684. } else {
  3685. // Try to avoid unnecessary slices.
  3686. if (position > 0 || position + length < stream.node.usedBytes) {
  3687. if (contents.subarray) {
  3688. contents = contents.subarray(position, position + length);
  3689. } else {
  3690. contents = Array.prototype.slice.call(contents, position, position + length);
  3691. }
  3692. }
  3693. allocated = true;
  3694. ptr = _malloc(length);
  3695. if (!ptr) {
  3696. throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
  3697. }
  3698. buffer.set(contents, ptr);
  3699. }
  3700. return { ptr: ptr, allocated: allocated };
  3701. },msync:function (stream, buffer, offset, length, mmapFlags) {
  3702. if (!FS.isFile(stream.node.mode)) {
  3703. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3704. }
  3705. if (mmapFlags & 2) {
  3706. // MAP_PRIVATE calls need not to be synced back to underlying fs
  3707. return 0;
  3708. }
  3709. var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false);
  3710. // should we check if bytesWritten and length are the same?
  3711. return 0;
  3712. }}};
  3713. var IDBFS={dbs:{},indexedDB:function () {
  3714. if (typeof indexedDB !== 'undefined') return indexedDB;
  3715. var ret = null;
  3716. if (typeof window === 'object') ret = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  3717. assert(ret, 'IDBFS used, but indexedDB not supported');
  3718. return ret;
  3719. },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
  3720. // reuse all of the core MEMFS functionality
  3721. return MEMFS.mount.apply(null, arguments);
  3722. },syncfs:function (mount, populate, callback) {
  3723. IDBFS.getLocalSet(mount, function(err, local) {
  3724. if (err) return callback(err);
  3725. IDBFS.getRemoteSet(mount, function(err, remote) {
  3726. if (err) return callback(err);
  3727. var src = populate ? remote : local;
  3728. var dst = populate ? local : remote;
  3729. IDBFS.reconcile(src, dst, callback);
  3730. });
  3731. });
  3732. },getDB:function (name, callback) {
  3733. // check the cache first
  3734. var db = IDBFS.dbs[name];
  3735. if (db) {
  3736. return callback(null, db);
  3737. }
  3738. var req;
  3739. try {
  3740. req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
  3741. } catch (e) {
  3742. return callback(e);
  3743. }
  3744. if (!req) {
  3745. return callback("Unable to connect to IndexedDB");
  3746. }
  3747. req.onupgradeneeded = function(e) {
  3748. var db = e.target.result;
  3749. var transaction = e.target.transaction;
  3750. var fileStore;
  3751. if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
  3752. fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3753. } else {
  3754. fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
  3755. }
  3756. if (!fileStore.indexNames.contains('timestamp')) {
  3757. fileStore.createIndex('timestamp', 'timestamp', { unique: false });
  3758. }
  3759. };
  3760. req.onsuccess = function() {
  3761. db = req.result;
  3762. // add to the cache
  3763. IDBFS.dbs[name] = db;
  3764. callback(null, db);
  3765. };
  3766. req.onerror = function(e) {
  3767. callback(this.error);
  3768. e.preventDefault();
  3769. };
  3770. },getLocalSet:function (mount, callback) {
  3771. var entries = {};
  3772. function isRealDir(p) {
  3773. return p !== '.' && p !== '..';
  3774. };
  3775. function toAbsolute(root) {
  3776. return function(p) {
  3777. return PATH.join2(root, p);
  3778. }
  3779. };
  3780. var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
  3781. while (check.length) {
  3782. var path = check.pop();
  3783. var stat;
  3784. try {
  3785. stat = FS.stat(path);
  3786. } catch (e) {
  3787. return callback(e);
  3788. }
  3789. if (FS.isDir(stat.mode)) {
  3790. check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
  3791. }
  3792. entries[path] = { timestamp: stat.mtime };
  3793. }
  3794. return callback(null, { type: 'local', entries: entries });
  3795. },getRemoteSet:function (mount, callback) {
  3796. var entries = {};
  3797. IDBFS.getDB(mount.mountpoint, function(err, db) {
  3798. if (err) return callback(err);
  3799. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
  3800. transaction.onerror = function(e) {
  3801. callback(this.error);
  3802. e.preventDefault();
  3803. };
  3804. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3805. var index = store.index('timestamp');
  3806. index.openKeyCursor().onsuccess = function(event) {
  3807. var cursor = event.target.result;
  3808. if (!cursor) {
  3809. return callback(null, { type: 'remote', db: db, entries: entries });
  3810. }
  3811. entries[cursor.primaryKey] = { timestamp: cursor.key };
  3812. cursor.continue();
  3813. };
  3814. });
  3815. },loadLocalEntry:function (path, callback) {
  3816. var stat, node;
  3817. try {
  3818. var lookup = FS.lookupPath(path);
  3819. node = lookup.node;
  3820. stat = FS.stat(path);
  3821. } catch (e) {
  3822. return callback(e);
  3823. }
  3824. if (FS.isDir(stat.mode)) {
  3825. return callback(null, { timestamp: stat.mtime, mode: stat.mode });
  3826. } else if (FS.isFile(stat.mode)) {
  3827. // Performance consideration: storing a normal JavaScript array to a IndexedDB is much slower than storing a typed array.
  3828. // Therefore always convert the file contents to a typed array first before writing the data to IndexedDB.
  3829. node.contents = MEMFS.getFileDataAsTypedArray(node);
  3830. return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
  3831. } else {
  3832. return callback(new Error('node type not supported'));
  3833. }
  3834. },storeLocalEntry:function (path, entry, callback) {
  3835. try {
  3836. if (FS.isDir(entry.mode)) {
  3837. FS.mkdir(path, entry.mode);
  3838. } else if (FS.isFile(entry.mode)) {
  3839. FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
  3840. } else {
  3841. return callback(new Error('node type not supported'));
  3842. }
  3843. FS.chmod(path, entry.mode);
  3844. FS.utime(path, entry.timestamp, entry.timestamp);
  3845. } catch (e) {
  3846. return callback(e);
  3847. }
  3848. callback(null);
  3849. },removeLocalEntry:function (path, callback) {
  3850. try {
  3851. var lookup = FS.lookupPath(path);
  3852. var stat = FS.stat(path);
  3853. if (FS.isDir(stat.mode)) {
  3854. FS.rmdir(path);
  3855. } else if (FS.isFile(stat.mode)) {
  3856. FS.unlink(path);
  3857. }
  3858. } catch (e) {
  3859. return callback(e);
  3860. }
  3861. callback(null);
  3862. },loadRemoteEntry:function (store, path, callback) {
  3863. var req = store.get(path);
  3864. req.onsuccess = function(event) { callback(null, event.target.result); };
  3865. req.onerror = function(e) {
  3866. callback(this.error);
  3867. e.preventDefault();
  3868. };
  3869. },storeRemoteEntry:function (store, path, entry, callback) {
  3870. var req = store.put(entry, path);
  3871. req.onsuccess = function() { callback(null); };
  3872. req.onerror = function(e) {
  3873. callback(this.error);
  3874. e.preventDefault();
  3875. };
  3876. },removeRemoteEntry:function (store, path, callback) {
  3877. var req = store.delete(path);
  3878. req.onsuccess = function() { callback(null); };
  3879. req.onerror = function(e) {
  3880. callback(this.error);
  3881. e.preventDefault();
  3882. };
  3883. },reconcile:function (src, dst, callback) {
  3884. var total = 0;
  3885. var create = [];
  3886. Object.keys(src.entries).forEach(function (key) {
  3887. var e = src.entries[key];
  3888. var e2 = dst.entries[key];
  3889. if (!e2 || e.timestamp > e2.timestamp) {
  3890. create.push(key);
  3891. total++;
  3892. }
  3893. });
  3894. var remove = [];
  3895. Object.keys(dst.entries).forEach(function (key) {
  3896. var e = dst.entries[key];
  3897. var e2 = src.entries[key];
  3898. if (!e2) {
  3899. remove.push(key);
  3900. total++;
  3901. }
  3902. });
  3903. if (!total) {
  3904. return callback(null);
  3905. }
  3906. var errored = false;
  3907. var completed = 0;
  3908. var db = src.type === 'remote' ? src.db : dst.db;
  3909. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
  3910. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3911. function done(err) {
  3912. if (err) {
  3913. if (!done.errored) {
  3914. done.errored = true;
  3915. return callback(err);
  3916. }
  3917. return;
  3918. }
  3919. if (++completed >= total) {
  3920. return callback(null);
  3921. }
  3922. };
  3923. transaction.onerror = function(e) {
  3924. done(this.error);
  3925. e.preventDefault();
  3926. };
  3927. // sort paths in ascending order so directory entries are created
  3928. // before the files inside them
  3929. create.sort().forEach(function (path) {
  3930. if (dst.type === 'local') {
  3931. IDBFS.loadRemoteEntry(store, path, function (err, entry) {
  3932. if (err) return done(err);
  3933. IDBFS.storeLocalEntry(path, entry, done);
  3934. });
  3935. } else {
  3936. IDBFS.loadLocalEntry(path, function (err, entry) {
  3937. if (err) return done(err);
  3938. IDBFS.storeRemoteEntry(store, path, entry, done);
  3939. });
  3940. }
  3941. });
  3942. // sort paths in descending order so files are deleted before their
  3943. // parent directories
  3944. remove.sort().reverse().forEach(function(path) {
  3945. if (dst.type === 'local') {
  3946. IDBFS.removeLocalEntry(path, done);
  3947. } else {
  3948. IDBFS.removeRemoteEntry(store, path, done);
  3949. }
  3950. });
  3951. }};
  3952. var NODEFS={isWindows:false,staticInit:function () {
  3953. NODEFS.isWindows = !!process.platform.match(/^win/);
  3954. },mount:function (mount) {
  3955. assert(ENVIRONMENT_IS_NODE);
  3956. return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
  3957. },createNode:function (parent, name, mode, dev) {
  3958. if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
  3959. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3960. }
  3961. var node = FS.createNode(parent, name, mode);
  3962. node.node_ops = NODEFS.node_ops;
  3963. node.stream_ops = NODEFS.stream_ops;
  3964. return node;
  3965. },getMode:function (path) {
  3966. var stat;
  3967. try {
  3968. stat = fs.lstatSync(path);
  3969. if (NODEFS.isWindows) {
  3970. // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so
  3971. // propagate write bits to execute bits.
  3972. stat.mode = stat.mode | ((stat.mode & 146) >> 1);
  3973. }
  3974. } catch (e) {
  3975. if (!e.code) throw e;
  3976. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  3977. }
  3978. return stat.mode;
  3979. },realPath:function (node) {
  3980. var parts = [];
  3981. while (node.parent !== node) {
  3982. parts.push(node.name);
  3983. node = node.parent;
  3984. }
  3985. parts.push(node.mount.opts.root);
  3986. parts.reverse();
  3987. return PATH.join.apply(null, parts);
  3988. },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) {
  3989. flags &= ~0x200000 /*O_PATH*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3990. flags &= ~0x800 /*O_NONBLOCK*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3991. flags &= ~0x8000 /*O_LARGEFILE*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3992. flags &= ~0x80000 /*O_CLOEXEC*/; // Some applications may pass it; it makes no sense for a single process.
  3993. if (flags in NODEFS.flagsToPermissionStringMap) {
  3994. return NODEFS.flagsToPermissionStringMap[flags];
  3995. } else {
  3996. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3997. }
  3998. },node_ops:{getattr:function (node) {
  3999. var path = NODEFS.realPath(node);
  4000. var stat;
  4001. try {
  4002. stat = fs.lstatSync(path);
  4003. } catch (e) {
  4004. if (!e.code) throw e;
  4005. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4006. }
  4007. // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
  4008. // See http://support.microsoft.com/kb/140365
  4009. if (NODEFS.isWindows && !stat.blksize) {
  4010. stat.blksize = 4096;
  4011. }
  4012. if (NODEFS.isWindows && !stat.blocks) {
  4013. stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
  4014. }
  4015. return {
  4016. dev: stat.dev,
  4017. ino: stat.ino,
  4018. mode: stat.mode,
  4019. nlink: stat.nlink,
  4020. uid: stat.uid,
  4021. gid: stat.gid,
  4022. rdev: stat.rdev,
  4023. size: stat.size,
  4024. atime: stat.atime,
  4025. mtime: stat.mtime,
  4026. ctime: stat.ctime,
  4027. blksize: stat.blksize,
  4028. blocks: stat.blocks
  4029. };
  4030. },setattr:function (node, attr) {
  4031. var path = NODEFS.realPath(node);
  4032. try {
  4033. if (attr.mode !== undefined) {
  4034. fs.chmodSync(path, attr.mode);
  4035. // update the common node structure mode as well
  4036. node.mode = attr.mode;
  4037. }
  4038. if (attr.timestamp !== undefined) {
  4039. var date = new Date(attr.timestamp);
  4040. fs.utimesSync(path, date, date);
  4041. }
  4042. if (attr.size !== undefined) {
  4043. fs.truncateSync(path, attr.size);
  4044. }
  4045. } catch (e) {
  4046. if (!e.code) throw e;
  4047. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4048. }
  4049. },lookup:function (parent, name) {
  4050. var path = PATH.join2(NODEFS.realPath(parent), name);
  4051. var mode = NODEFS.getMode(path);
  4052. return NODEFS.createNode(parent, name, mode);
  4053. },mknod:function (parent, name, mode, dev) {
  4054. var node = NODEFS.createNode(parent, name, mode, dev);
  4055. // create the backing node for this in the fs root as well
  4056. var path = NODEFS.realPath(node);
  4057. try {
  4058. if (FS.isDir(node.mode)) {
  4059. fs.mkdirSync(path, node.mode);
  4060. } else {
  4061. fs.writeFileSync(path, '', { mode: node.mode });
  4062. }
  4063. } catch (e) {
  4064. if (!e.code) throw e;
  4065. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4066. }
  4067. return node;
  4068. },rename:function (oldNode, newDir, newName) {
  4069. var oldPath = NODEFS.realPath(oldNode);
  4070. var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
  4071. try {
  4072. fs.renameSync(oldPath, newPath);
  4073. } catch (e) {
  4074. if (!e.code) throw e;
  4075. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4076. }
  4077. },unlink:function (parent, name) {
  4078. var path = PATH.join2(NODEFS.realPath(parent), name);
  4079. try {
  4080. fs.unlinkSync(path);
  4081. } catch (e) {
  4082. if (!e.code) throw e;
  4083. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4084. }
  4085. },rmdir:function (parent, name) {
  4086. var path = PATH.join2(NODEFS.realPath(parent), name);
  4087. try {
  4088. fs.rmdirSync(path);
  4089. } catch (e) {
  4090. if (!e.code) throw e;
  4091. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4092. }
  4093. },readdir:function (node) {
  4094. var path = NODEFS.realPath(node);
  4095. try {
  4096. return fs.readdirSync(path);
  4097. } catch (e) {
  4098. if (!e.code) throw e;
  4099. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4100. }
  4101. },symlink:function (parent, newName, oldPath) {
  4102. var newPath = PATH.join2(NODEFS.realPath(parent), newName);
  4103. try {
  4104. fs.symlinkSync(oldPath, newPath);
  4105. } catch (e) {
  4106. if (!e.code) throw e;
  4107. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4108. }
  4109. },readlink:function (node) {
  4110. var path = NODEFS.realPath(node);
  4111. try {
  4112. path = fs.readlinkSync(path);
  4113. path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
  4114. return path;
  4115. } catch (e) {
  4116. if (!e.code) throw e;
  4117. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4118. }
  4119. }},stream_ops:{open:function (stream) {
  4120. var path = NODEFS.realPath(stream.node);
  4121. try {
  4122. if (FS.isFile(stream.node.mode)) {
  4123. stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
  4124. }
  4125. } catch (e) {
  4126. if (!e.code) throw e;
  4127. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4128. }
  4129. },close:function (stream) {
  4130. try {
  4131. if (FS.isFile(stream.node.mode) && stream.nfd) {
  4132. fs.closeSync(stream.nfd);
  4133. }
  4134. } catch (e) {
  4135. if (!e.code) throw e;
  4136. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4137. }
  4138. },read:function (stream, buffer, offset, length, position) {
  4139. if (length === 0) return 0; // node errors on 0 length reads
  4140. // FIXME this is terrible.
  4141. var nbuffer = new Buffer(length);
  4142. var res;
  4143. try {
  4144. res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
  4145. } catch (e) {
  4146. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4147. }
  4148. if (res > 0) {
  4149. for (var i = 0; i < res; i++) {
  4150. buffer[offset + i] = nbuffer[i];
  4151. }
  4152. }
  4153. return res;
  4154. },write:function (stream, buffer, offset, length, position) {
  4155. // FIXME this is terrible.
  4156. var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
  4157. var res;
  4158. try {
  4159. res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
  4160. } catch (e) {
  4161. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4162. }
  4163. return res;
  4164. },llseek:function (stream, offset, whence) {
  4165. var position = offset;
  4166. if (whence === 1) { // SEEK_CUR.
  4167. position += stream.position;
  4168. } else if (whence === 2) { // SEEK_END.
  4169. if (FS.isFile(stream.node.mode)) {
  4170. try {
  4171. var stat = fs.fstatSync(stream.nfd);
  4172. position += stat.size;
  4173. } catch (e) {
  4174. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4175. }
  4176. }
  4177. }
  4178. if (position < 0) {
  4179. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4180. }
  4181. return position;
  4182. }}};
  4183. var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function (mount) {
  4184. assert(ENVIRONMENT_IS_WORKER);
  4185. if (!WORKERFS.reader) WORKERFS.reader = new FileReaderSync();
  4186. var root = WORKERFS.createNode(null, '/', WORKERFS.DIR_MODE, 0);
  4187. var createdParents = {};
  4188. function ensureParent(path) {
  4189. // return the parent node, creating subdirs as necessary
  4190. var parts = path.split('/');
  4191. var parent = root;
  4192. for (var i = 0; i < parts.length-1; i++) {
  4193. var curr = parts.slice(0, i+1).join('/');
  4194. // Issue 4254: Using curr as a node name will prevent the node
  4195. // from being found in FS.nameTable when FS.open is called on
  4196. // a path which holds a child of this node,
  4197. // given that all FS functions assume node names
  4198. // are just their corresponding parts within their given path,
  4199. // rather than incremental aggregates which include their parent's
  4200. // directories.
  4201. if (!createdParents[curr]) {
  4202. createdParents[curr] = WORKERFS.createNode(parent, parts[i], WORKERFS.DIR_MODE, 0);
  4203. }
  4204. parent = createdParents[curr];
  4205. }
  4206. return parent;
  4207. }
  4208. function base(path) {
  4209. var parts = path.split('/');
  4210. return parts[parts.length-1];
  4211. }
  4212. // We also accept FileList here, by using Array.prototype
  4213. Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
  4214. WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);
  4215. });
  4216. (mount.opts["blobs"] || []).forEach(function(obj) {
  4217. WORKERFS.createNode(ensureParent(obj["name"]), base(obj["name"]), WORKERFS.FILE_MODE, 0, obj["data"]);
  4218. });
  4219. (mount.opts["packages"] || []).forEach(function(pack) {
  4220. pack['metadata'].files.forEach(function(file) {
  4221. var name = file.filename.substr(1); // remove initial slash
  4222. WORKERFS.createNode(ensureParent(name), base(name), WORKERFS.FILE_MODE, 0, pack['blob'].slice(file.start, file.end));
  4223. });
  4224. });
  4225. return root;
  4226. },createNode:function (parent, name, mode, dev, contents, mtime) {
  4227. var node = FS.createNode(parent, name, mode);
  4228. node.mode = mode;
  4229. node.node_ops = WORKERFS.node_ops;
  4230. node.stream_ops = WORKERFS.stream_ops;
  4231. node.timestamp = (mtime || new Date).getTime();
  4232. assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE);
  4233. if (mode === WORKERFS.FILE_MODE) {
  4234. node.size = contents.size;
  4235. node.contents = contents;
  4236. } else {
  4237. node.size = 4096;
  4238. node.contents = {};
  4239. }
  4240. if (parent) {
  4241. parent.contents[name] = node;
  4242. }
  4243. return node;
  4244. },node_ops:{getattr:function (node) {
  4245. return {
  4246. dev: 1,
  4247. ino: undefined,
  4248. mode: node.mode,
  4249. nlink: 1,
  4250. uid: 0,
  4251. gid: 0,
  4252. rdev: undefined,
  4253. size: node.size,
  4254. atime: new Date(node.timestamp),
  4255. mtime: new Date(node.timestamp),
  4256. ctime: new Date(node.timestamp),
  4257. blksize: 4096,
  4258. blocks: Math.ceil(node.size / 4096),
  4259. };
  4260. },setattr:function (node, attr) {
  4261. if (attr.mode !== undefined) {
  4262. node.mode = attr.mode;
  4263. }
  4264. if (attr.timestamp !== undefined) {
  4265. node.timestamp = attr.timestamp;
  4266. }
  4267. },lookup:function (parent, name) {
  4268. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4269. },mknod:function (parent, name, mode, dev) {
  4270. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4271. },rename:function (oldNode, newDir, newName) {
  4272. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4273. },unlink:function (parent, name) {
  4274. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4275. },rmdir:function (parent, name) {
  4276. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4277. },readdir:function (node) {
  4278. var entries = ['.', '..'];
  4279. for (var key in node.contents) {
  4280. if (!node.contents.hasOwnProperty(key)) {
  4281. continue;
  4282. }
  4283. entries.push(key);
  4284. }
  4285. return entries;
  4286. },symlink:function (parent, newName, oldPath) {
  4287. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4288. },readlink:function (node) {
  4289. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4290. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  4291. if (position >= stream.node.size) return 0;
  4292. var chunk = stream.node.contents.slice(position, position + length);
  4293. var ab = WORKERFS.reader.readAsArrayBuffer(chunk);
  4294. buffer.set(new Uint8Array(ab), offset);
  4295. return chunk.size;
  4296. },write:function (stream, buffer, offset, length, position) {
  4297. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  4298. },llseek:function (stream, offset, whence) {
  4299. var position = offset;
  4300. if (whence === 1) { // SEEK_CUR.
  4301. position += stream.position;
  4302. } else if (whence === 2) { // SEEK_END.
  4303. if (FS.isFile(stream.node.mode)) {
  4304. position += stream.node.size;
  4305. }
  4306. }
  4307. if (position < 0) {
  4308. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4309. }
  4310. return position;
  4311. }}};
  4312. var _stdin=STATICTOP; STATICTOP += 16;;
  4313. var _stdout=STATICTOP; STATICTOP += 16;;
  4314. 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) {
  4315. if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
  4316. return ___setErrNo(e.errno);
  4317. },lookupPath:function (path, opts) {
  4318. path = PATH.resolve(FS.cwd(), path);
  4319. opts = opts || {};
  4320. if (!path) return { path: '', node: null };
  4321. var defaults = {
  4322. follow_mount: true,
  4323. recurse_count: 0
  4324. };
  4325. for (var key in defaults) {
  4326. if (opts[key] === undefined) {
  4327. opts[key] = defaults[key];
  4328. }
  4329. }
  4330. if (opts.recurse_count > 8) { // max recursive lookup of 8
  4331. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4332. }
  4333. // split the path
  4334. var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
  4335. return !!p;
  4336. }), false);
  4337. // start at the root
  4338. var current = FS.root;
  4339. var current_path = '/';
  4340. for (var i = 0; i < parts.length; i++) {
  4341. var islast = (i === parts.length-1);
  4342. if (islast && opts.parent) {
  4343. // stop resolving
  4344. break;
  4345. }
  4346. current = FS.lookupNode(current, parts[i]);
  4347. current_path = PATH.join2(current_path, parts[i]);
  4348. // jump to the mount's root node if this is a mountpoint
  4349. if (FS.isMountpoint(current)) {
  4350. if (!islast || (islast && opts.follow_mount)) {
  4351. current = current.mounted.root;
  4352. }
  4353. }
  4354. // by default, lookupPath will not follow a symlink if it is the final path component.
  4355. // setting opts.follow = true will override this behavior.
  4356. if (!islast || opts.follow) {
  4357. var count = 0;
  4358. while (FS.isLink(current.mode)) {
  4359. var link = FS.readlink(current_path);
  4360. current_path = PATH.resolve(PATH.dirname(current_path), link);
  4361. var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
  4362. current = lookup.node;
  4363. if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
  4364. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4365. }
  4366. }
  4367. }
  4368. }
  4369. return { path: current_path, node: current };
  4370. },getPath:function (node) {
  4371. var path;
  4372. while (true) {
  4373. if (FS.isRoot(node)) {
  4374. var mount = node.mount.mountpoint;
  4375. if (!path) return mount;
  4376. return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
  4377. }
  4378. path = path ? node.name + '/' + path : node.name;
  4379. node = node.parent;
  4380. }
  4381. },hashName:function (parentid, name) {
  4382. var hash = 0;
  4383. for (var i = 0; i < name.length; i++) {
  4384. hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
  4385. }
  4386. return ((parentid + hash) >>> 0) % FS.nameTable.length;
  4387. },hashAddNode:function (node) {
  4388. var hash = FS.hashName(node.parent.id, node.name);
  4389. node.name_next = FS.nameTable[hash];
  4390. FS.nameTable[hash] = node;
  4391. },hashRemoveNode:function (node) {
  4392. var hash = FS.hashName(node.parent.id, node.name);
  4393. if (FS.nameTable[hash] === node) {
  4394. FS.nameTable[hash] = node.name_next;
  4395. } else {
  4396. var current = FS.nameTable[hash];
  4397. while (current) {
  4398. if (current.name_next === node) {
  4399. current.name_next = node.name_next;
  4400. break;
  4401. }
  4402. current = current.name_next;
  4403. }
  4404. }
  4405. },lookupNode:function (parent, name) {
  4406. var err = FS.mayLookup(parent);
  4407. if (err) {
  4408. throw new FS.ErrnoError(err, parent);
  4409. }
  4410. var hash = FS.hashName(parent.id, name);
  4411. for (var node = FS.nameTable[hash]; node; node = node.name_next) {
  4412. var nodeName = node.name;
  4413. if (node.parent.id === parent.id && nodeName === name) {
  4414. return node;
  4415. }
  4416. }
  4417. // if we failed to find it in the cache, call into the VFS
  4418. return FS.lookup(parent, name);
  4419. },createNode:function (parent, name, mode, rdev) {
  4420. if (!FS.FSNode) {
  4421. FS.FSNode = function(parent, name, mode, rdev) {
  4422. if (!parent) {
  4423. parent = this; // root node sets parent to itself
  4424. }
  4425. this.parent = parent;
  4426. this.mount = parent.mount;
  4427. this.mounted = null;
  4428. this.id = FS.nextInode++;
  4429. this.name = name;
  4430. this.mode = mode;
  4431. this.node_ops = {};
  4432. this.stream_ops = {};
  4433. this.rdev = rdev;
  4434. };
  4435. FS.FSNode.prototype = {};
  4436. // compatibility
  4437. var readMode = 292 | 73;
  4438. var writeMode = 146;
  4439. // NOTE we must use Object.defineProperties instead of individual calls to
  4440. // Object.defineProperty in order to make closure compiler happy
  4441. Object.defineProperties(FS.FSNode.prototype, {
  4442. read: {
  4443. get: function() { return (this.mode & readMode) === readMode; },
  4444. set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
  4445. },
  4446. write: {
  4447. get: function() { return (this.mode & writeMode) === writeMode; },
  4448. set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
  4449. },
  4450. isFolder: {
  4451. get: function() { return FS.isDir(this.mode); }
  4452. },
  4453. isDevice: {
  4454. get: function() { return FS.isChrdev(this.mode); }
  4455. }
  4456. });
  4457. }
  4458. var node = new FS.FSNode(parent, name, mode, rdev);
  4459. FS.hashAddNode(node);
  4460. return node;
  4461. },destroyNode:function (node) {
  4462. FS.hashRemoveNode(node);
  4463. },isRoot:function (node) {
  4464. return node === node.parent;
  4465. },isMountpoint:function (node) {
  4466. return !!node.mounted;
  4467. },isFile:function (mode) {
  4468. return (mode & 61440) === 32768;
  4469. },isDir:function (mode) {
  4470. return (mode & 61440) === 16384;
  4471. },isLink:function (mode) {
  4472. return (mode & 61440) === 40960;
  4473. },isChrdev:function (mode) {
  4474. return (mode & 61440) === 8192;
  4475. },isBlkdev:function (mode) {
  4476. return (mode & 61440) === 24576;
  4477. },isFIFO:function (mode) {
  4478. return (mode & 61440) === 4096;
  4479. },isSocket:function (mode) {
  4480. return (mode & 49152) === 49152;
  4481. },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) {
  4482. var flags = FS.flagModes[str];
  4483. if (typeof flags === 'undefined') {
  4484. throw new Error('Unknown file open mode: ' + str);
  4485. }
  4486. return flags;
  4487. },flagsToPermissionString:function (flag) {
  4488. var perms = ['r', 'w', 'rw'][flag & 3];
  4489. if ((flag & 512)) {
  4490. perms += 'w';
  4491. }
  4492. return perms;
  4493. },nodePermissions:function (node, perms) {
  4494. if (FS.ignorePermissions) {
  4495. return 0;
  4496. }
  4497. // return 0 if any user, group or owner bits are set.
  4498. if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
  4499. return ERRNO_CODES.EACCES;
  4500. } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
  4501. return ERRNO_CODES.EACCES;
  4502. } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
  4503. return ERRNO_CODES.EACCES;
  4504. }
  4505. return 0;
  4506. },mayLookup:function (dir) {
  4507. var err = FS.nodePermissions(dir, 'x');
  4508. if (err) return err;
  4509. if (!dir.node_ops.lookup) return ERRNO_CODES.EACCES;
  4510. return 0;
  4511. },mayCreate:function (dir, name) {
  4512. try {
  4513. var node = FS.lookupNode(dir, name);
  4514. return ERRNO_CODES.EEXIST;
  4515. } catch (e) {
  4516. }
  4517. return FS.nodePermissions(dir, 'wx');
  4518. },mayDelete:function (dir, name, isdir) {
  4519. var node;
  4520. try {
  4521. node = FS.lookupNode(dir, name);
  4522. } catch (e) {
  4523. return e.errno;
  4524. }
  4525. var err = FS.nodePermissions(dir, 'wx');
  4526. if (err) {
  4527. return err;
  4528. }
  4529. if (isdir) {
  4530. if (!FS.isDir(node.mode)) {
  4531. return ERRNO_CODES.ENOTDIR;
  4532. }
  4533. if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
  4534. return ERRNO_CODES.EBUSY;
  4535. }
  4536. } else {
  4537. if (FS.isDir(node.mode)) {
  4538. return ERRNO_CODES.EISDIR;
  4539. }
  4540. }
  4541. return 0;
  4542. },mayOpen:function (node, flags) {
  4543. if (!node) {
  4544. return ERRNO_CODES.ENOENT;
  4545. }
  4546. if (FS.isLink(node.mode)) {
  4547. return ERRNO_CODES.ELOOP;
  4548. } else if (FS.isDir(node.mode)) {
  4549. if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write
  4550. (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only)
  4551. return ERRNO_CODES.EISDIR;
  4552. }
  4553. }
  4554. return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
  4555. },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
  4556. fd_start = fd_start || 0;
  4557. fd_end = fd_end || FS.MAX_OPEN_FDS;
  4558. for (var fd = fd_start; fd <= fd_end; fd++) {
  4559. if (!FS.streams[fd]) {
  4560. return fd;
  4561. }
  4562. }
  4563. throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
  4564. },getStream:function (fd) {
  4565. return FS.streams[fd];
  4566. },createStream:function (stream, fd_start, fd_end) {
  4567. if (!FS.FSStream) {
  4568. FS.FSStream = function(){};
  4569. FS.FSStream.prototype = {};
  4570. // compatibility
  4571. Object.defineProperties(FS.FSStream.prototype, {
  4572. object: {
  4573. get: function() { return this.node; },
  4574. set: function(val) { this.node = val; }
  4575. },
  4576. isRead: {
  4577. get: function() { return (this.flags & 2097155) !== 1; }
  4578. },
  4579. isWrite: {
  4580. get: function() { return (this.flags & 2097155) !== 0; }
  4581. },
  4582. isAppend: {
  4583. get: function() { return (this.flags & 1024); }
  4584. }
  4585. });
  4586. }
  4587. // clone it, so we can return an instance of FSStream
  4588. var newStream = new FS.FSStream();
  4589. for (var p in stream) {
  4590. newStream[p] = stream[p];
  4591. }
  4592. stream = newStream;
  4593. var fd = FS.nextfd(fd_start, fd_end);
  4594. stream.fd = fd;
  4595. FS.streams[fd] = stream;
  4596. return stream;
  4597. },closeStream:function (fd) {
  4598. FS.streams[fd] = null;
  4599. },chrdev_stream_ops:{open:function (stream) {
  4600. var device = FS.getDevice(stream.node.rdev);
  4601. // override node's stream ops with the device's
  4602. stream.stream_ops = device.stream_ops;
  4603. // forward the open call
  4604. if (stream.stream_ops.open) {
  4605. stream.stream_ops.open(stream);
  4606. }
  4607. },llseek:function () {
  4608. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  4609. }},major:function (dev) {
  4610. return ((dev) >> 8);
  4611. },minor:function (dev) {
  4612. return ((dev) & 0xff);
  4613. },makedev:function (ma, mi) {
  4614. return ((ma) << 8 | (mi));
  4615. },registerDevice:function (dev, ops) {
  4616. FS.devices[dev] = { stream_ops: ops };
  4617. },getDevice:function (dev) {
  4618. return FS.devices[dev];
  4619. },getMounts:function (mount) {
  4620. var mounts = [];
  4621. var check = [mount];
  4622. while (check.length) {
  4623. var m = check.pop();
  4624. mounts.push(m);
  4625. check.push.apply(check, m.mounts);
  4626. }
  4627. return mounts;
  4628. },syncfs:function (populate, callback) {
  4629. if (typeof(populate) === 'function') {
  4630. callback = populate;
  4631. populate = false;
  4632. }
  4633. FS.syncFSRequests++;
  4634. if (FS.syncFSRequests > 1) {
  4635. console.log('warning: ' + FS.syncFSRequests + ' FS.syncfs operations in flight at once, probably just doing extra work');
  4636. }
  4637. var mounts = FS.getMounts(FS.root.mount);
  4638. var completed = 0;
  4639. function doCallback(err) {
  4640. assert(FS.syncFSRequests > 0);
  4641. FS.syncFSRequests--;
  4642. return callback(err);
  4643. }
  4644. function done(err) {
  4645. if (err) {
  4646. if (!done.errored) {
  4647. done.errored = true;
  4648. return doCallback(err);
  4649. }
  4650. return;
  4651. }
  4652. if (++completed >= mounts.length) {
  4653. doCallback(null);
  4654. }
  4655. };
  4656. // sync all mounts
  4657. mounts.forEach(function (mount) {
  4658. if (!mount.type.syncfs) {
  4659. return done(null);
  4660. }
  4661. mount.type.syncfs(mount, populate, done);
  4662. });
  4663. },mount:function (type, opts, mountpoint) {
  4664. var root = mountpoint === '/';
  4665. var pseudo = !mountpoint;
  4666. var node;
  4667. if (root && FS.root) {
  4668. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4669. } else if (!root && !pseudo) {
  4670. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4671. mountpoint = lookup.path; // use the absolute path
  4672. node = lookup.node;
  4673. if (FS.isMountpoint(node)) {
  4674. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4675. }
  4676. if (!FS.isDir(node.mode)) {
  4677. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4678. }
  4679. }
  4680. var mount = {
  4681. type: type,
  4682. opts: opts,
  4683. mountpoint: mountpoint,
  4684. mounts: []
  4685. };
  4686. // create a root node for the fs
  4687. var mountRoot = type.mount(mount);
  4688. mountRoot.mount = mount;
  4689. mount.root = mountRoot;
  4690. if (root) {
  4691. FS.root = mountRoot;
  4692. } else if (node) {
  4693. // set as a mountpoint
  4694. node.mounted = mount;
  4695. // add the new mount to the current mount's children
  4696. if (node.mount) {
  4697. node.mount.mounts.push(mount);
  4698. }
  4699. }
  4700. return mountRoot;
  4701. },unmount:function (mountpoint) {
  4702. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4703. if (!FS.isMountpoint(lookup.node)) {
  4704. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4705. }
  4706. // destroy the nodes for this mount, and all its child mounts
  4707. var node = lookup.node;
  4708. var mount = node.mounted;
  4709. var mounts = FS.getMounts(mount);
  4710. Object.keys(FS.nameTable).forEach(function (hash) {
  4711. var current = FS.nameTable[hash];
  4712. while (current) {
  4713. var next = current.name_next;
  4714. if (mounts.indexOf(current.mount) !== -1) {
  4715. FS.destroyNode(current);
  4716. }
  4717. current = next;
  4718. }
  4719. });
  4720. // no longer a mountpoint
  4721. node.mounted = null;
  4722. // remove this mount from the child mounts
  4723. var idx = node.mount.mounts.indexOf(mount);
  4724. assert(idx !== -1);
  4725. node.mount.mounts.splice(idx, 1);
  4726. },lookup:function (parent, name) {
  4727. return parent.node_ops.lookup(parent, name);
  4728. },mknod:function (path, mode, dev) {
  4729. var lookup = FS.lookupPath(path, { parent: true });
  4730. var parent = lookup.node;
  4731. var name = PATH.basename(path);
  4732. if (!name || name === '.' || name === '..') {
  4733. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4734. }
  4735. var err = FS.mayCreate(parent, name);
  4736. if (err) {
  4737. throw new FS.ErrnoError(err);
  4738. }
  4739. if (!parent.node_ops.mknod) {
  4740. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4741. }
  4742. return parent.node_ops.mknod(parent, name, mode, dev);
  4743. },create:function (path, mode) {
  4744. mode = mode !== undefined ? mode : 438 /* 0666 */;
  4745. mode &= 4095;
  4746. mode |= 32768;
  4747. return FS.mknod(path, mode, 0);
  4748. },mkdir:function (path, mode) {
  4749. mode = mode !== undefined ? mode : 511 /* 0777 */;
  4750. mode &= 511 | 512;
  4751. mode |= 16384;
  4752. return FS.mknod(path, mode, 0);
  4753. },mkdirTree:function (path, mode) {
  4754. var dirs = path.split('/');
  4755. var d = '';
  4756. for (var i = 0; i < dirs.length; ++i) {
  4757. if (!dirs[i]) continue;
  4758. d += '/' + dirs[i];
  4759. try {
  4760. FS.mkdir(d, mode);
  4761. } catch(e) {
  4762. if (e.errno != ERRNO_CODES.EEXIST) throw e;
  4763. }
  4764. }
  4765. },mkdev:function (path, mode, dev) {
  4766. if (typeof(dev) === 'undefined') {
  4767. dev = mode;
  4768. mode = 438 /* 0666 */;
  4769. }
  4770. mode |= 8192;
  4771. return FS.mknod(path, mode, dev);
  4772. },symlink:function (oldpath, newpath) {
  4773. if (!PATH.resolve(oldpath)) {
  4774. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4775. }
  4776. var lookup = FS.lookupPath(newpath, { parent: true });
  4777. var parent = lookup.node;
  4778. if (!parent) {
  4779. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4780. }
  4781. var newname = PATH.basename(newpath);
  4782. var err = FS.mayCreate(parent, newname);
  4783. if (err) {
  4784. throw new FS.ErrnoError(err);
  4785. }
  4786. if (!parent.node_ops.symlink) {
  4787. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4788. }
  4789. return parent.node_ops.symlink(parent, newname, oldpath);
  4790. },rename:function (old_path, new_path) {
  4791. var old_dirname = PATH.dirname(old_path);
  4792. var new_dirname = PATH.dirname(new_path);
  4793. var old_name = PATH.basename(old_path);
  4794. var new_name = PATH.basename(new_path);
  4795. // parents must exist
  4796. var lookup, old_dir, new_dir;
  4797. try {
  4798. lookup = FS.lookupPath(old_path, { parent: true });
  4799. old_dir = lookup.node;
  4800. lookup = FS.lookupPath(new_path, { parent: true });
  4801. new_dir = lookup.node;
  4802. } catch (e) {
  4803. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4804. }
  4805. if (!old_dir || !new_dir) throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4806. // need to be part of the same mount
  4807. if (old_dir.mount !== new_dir.mount) {
  4808. throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
  4809. }
  4810. // source must exist
  4811. var old_node = FS.lookupNode(old_dir, old_name);
  4812. // old path should not be an ancestor of the new path
  4813. var relative = PATH.relative(old_path, new_dirname);
  4814. if (relative.charAt(0) !== '.') {
  4815. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4816. }
  4817. // new path should not be an ancestor of the old path
  4818. relative = PATH.relative(new_path, old_dirname);
  4819. if (relative.charAt(0) !== '.') {
  4820. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  4821. }
  4822. // see if the new path already exists
  4823. var new_node;
  4824. try {
  4825. new_node = FS.lookupNode(new_dir, new_name);
  4826. } catch (e) {
  4827. // not fatal
  4828. }
  4829. // early out if nothing needs to change
  4830. if (old_node === new_node) {
  4831. return;
  4832. }
  4833. // we'll need to delete the old entry
  4834. var isdir = FS.isDir(old_node.mode);
  4835. var err = FS.mayDelete(old_dir, old_name, isdir);
  4836. if (err) {
  4837. throw new FS.ErrnoError(err);
  4838. }
  4839. // need delete permissions if we'll be overwriting.
  4840. // need create permissions if new doesn't already exist.
  4841. err = new_node ?
  4842. FS.mayDelete(new_dir, new_name, isdir) :
  4843. FS.mayCreate(new_dir, new_name);
  4844. if (err) {
  4845. throw new FS.ErrnoError(err);
  4846. }
  4847. if (!old_dir.node_ops.rename) {
  4848. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4849. }
  4850. if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
  4851. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4852. }
  4853. // if we are going to change the parent, check write permissions
  4854. if (new_dir !== old_dir) {
  4855. err = FS.nodePermissions(old_dir, 'w');
  4856. if (err) {
  4857. throw new FS.ErrnoError(err);
  4858. }
  4859. }
  4860. try {
  4861. if (FS.trackingDelegate['willMovePath']) {
  4862. FS.trackingDelegate['willMovePath'](old_path, new_path);
  4863. }
  4864. } catch(e) {
  4865. console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4866. }
  4867. // remove the node from the lookup hash
  4868. FS.hashRemoveNode(old_node);
  4869. // do the underlying fs rename
  4870. try {
  4871. old_dir.node_ops.rename(old_node, new_dir, new_name);
  4872. } catch (e) {
  4873. throw e;
  4874. } finally {
  4875. // add the node back to the hash (in case node_ops.rename
  4876. // changed its name)
  4877. FS.hashAddNode(old_node);
  4878. }
  4879. try {
  4880. if (FS.trackingDelegate['onMovePath']) FS.trackingDelegate['onMovePath'](old_path, new_path);
  4881. } catch(e) {
  4882. console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4883. }
  4884. },rmdir:function (path) {
  4885. var lookup = FS.lookupPath(path, { parent: true });
  4886. var parent = lookup.node;
  4887. var name = PATH.basename(path);
  4888. var node = FS.lookupNode(parent, name);
  4889. var err = FS.mayDelete(parent, name, true);
  4890. if (err) {
  4891. throw new FS.ErrnoError(err);
  4892. }
  4893. if (!parent.node_ops.rmdir) {
  4894. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4895. }
  4896. if (FS.isMountpoint(node)) {
  4897. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4898. }
  4899. try {
  4900. if (FS.trackingDelegate['willDeletePath']) {
  4901. FS.trackingDelegate['willDeletePath'](path);
  4902. }
  4903. } catch(e) {
  4904. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4905. }
  4906. parent.node_ops.rmdir(parent, name);
  4907. FS.destroyNode(node);
  4908. try {
  4909. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4910. } catch(e) {
  4911. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4912. }
  4913. },readdir:function (path) {
  4914. var lookup = FS.lookupPath(path, { follow: true });
  4915. var node = lookup.node;
  4916. if (!node.node_ops.readdir) {
  4917. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4918. }
  4919. return node.node_ops.readdir(node);
  4920. },unlink:function (path) {
  4921. var lookup = FS.lookupPath(path, { parent: true });
  4922. var parent = lookup.node;
  4923. var name = PATH.basename(path);
  4924. var node = FS.lookupNode(parent, name);
  4925. var err = FS.mayDelete(parent, name, false);
  4926. if (err) {
  4927. // According to POSIX, we should map EISDIR to EPERM, but
  4928. // we instead do what Linux does (and we must, as we use
  4929. // the musl linux libc).
  4930. throw new FS.ErrnoError(err);
  4931. }
  4932. if (!parent.node_ops.unlink) {
  4933. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4934. }
  4935. if (FS.isMountpoint(node)) {
  4936. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4937. }
  4938. try {
  4939. if (FS.trackingDelegate['willDeletePath']) {
  4940. FS.trackingDelegate['willDeletePath'](path);
  4941. }
  4942. } catch(e) {
  4943. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4944. }
  4945. parent.node_ops.unlink(parent, name);
  4946. FS.destroyNode(node);
  4947. try {
  4948. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4949. } catch(e) {
  4950. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4951. }
  4952. },readlink:function (path) {
  4953. var lookup = FS.lookupPath(path);
  4954. var link = lookup.node;
  4955. if (!link) {
  4956. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4957. }
  4958. if (!link.node_ops.readlink) {
  4959. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4960. }
  4961. return PATH.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
  4962. },stat:function (path, dontFollow) {
  4963. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4964. var node = lookup.node;
  4965. if (!node) {
  4966. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4967. }
  4968. if (!node.node_ops.getattr) {
  4969. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4970. }
  4971. return node.node_ops.getattr(node);
  4972. },lstat:function (path) {
  4973. return FS.stat(path, true);
  4974. },chmod:function (path, mode, dontFollow) {
  4975. var node;
  4976. if (typeof path === 'string') {
  4977. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4978. node = lookup.node;
  4979. } else {
  4980. node = path;
  4981. }
  4982. if (!node.node_ops.setattr) {
  4983. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4984. }
  4985. node.node_ops.setattr(node, {
  4986. mode: (mode & 4095) | (node.mode & ~4095),
  4987. timestamp: Date.now()
  4988. });
  4989. },lchmod:function (path, mode) {
  4990. FS.chmod(path, mode, true);
  4991. },fchmod:function (fd, mode) {
  4992. var stream = FS.getStream(fd);
  4993. if (!stream) {
  4994. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  4995. }
  4996. FS.chmod(stream.node, mode);
  4997. },chown:function (path, uid, gid, dontFollow) {
  4998. var node;
  4999. if (typeof path === 'string') {
  5000. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5001. node = lookup.node;
  5002. } else {
  5003. node = path;
  5004. }
  5005. if (!node.node_ops.setattr) {
  5006. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5007. }
  5008. node.node_ops.setattr(node, {
  5009. timestamp: Date.now()
  5010. // we ignore the uid / gid for now
  5011. });
  5012. },lchown:function (path, uid, gid) {
  5013. FS.chown(path, uid, gid, true);
  5014. },fchown:function (fd, uid, gid) {
  5015. var stream = FS.getStream(fd);
  5016. if (!stream) {
  5017. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5018. }
  5019. FS.chown(stream.node, uid, gid);
  5020. },truncate:function (path, len) {
  5021. if (len < 0) {
  5022. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5023. }
  5024. var node;
  5025. if (typeof path === 'string') {
  5026. var lookup = FS.lookupPath(path, { follow: true });
  5027. node = lookup.node;
  5028. } else {
  5029. node = path;
  5030. }
  5031. if (!node.node_ops.setattr) {
  5032. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5033. }
  5034. if (FS.isDir(node.mode)) {
  5035. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5036. }
  5037. if (!FS.isFile(node.mode)) {
  5038. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5039. }
  5040. var err = FS.nodePermissions(node, 'w');
  5041. if (err) {
  5042. throw new FS.ErrnoError(err);
  5043. }
  5044. node.node_ops.setattr(node, {
  5045. size: len,
  5046. timestamp: Date.now()
  5047. });
  5048. },ftruncate:function (fd, len) {
  5049. var stream = FS.getStream(fd);
  5050. if (!stream) {
  5051. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5052. }
  5053. if ((stream.flags & 2097155) === 0) {
  5054. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5055. }
  5056. FS.truncate(stream.node, len);
  5057. },utime:function (path, atime, mtime) {
  5058. var lookup = FS.lookupPath(path, { follow: true });
  5059. var node = lookup.node;
  5060. node.node_ops.setattr(node, {
  5061. timestamp: Math.max(atime, mtime)
  5062. });
  5063. },open:function (path, flags, mode, fd_start, fd_end) {
  5064. if (path === "") {
  5065. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5066. }
  5067. flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
  5068. mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
  5069. if ((flags & 64)) {
  5070. mode = (mode & 4095) | 32768;
  5071. } else {
  5072. mode = 0;
  5073. }
  5074. var node;
  5075. if (typeof path === 'object') {
  5076. node = path;
  5077. } else {
  5078. path = PATH.normalize(path);
  5079. try {
  5080. var lookup = FS.lookupPath(path, {
  5081. follow: !(flags & 131072)
  5082. });
  5083. node = lookup.node;
  5084. } catch (e) {
  5085. // ignore
  5086. }
  5087. }
  5088. // perhaps we need to create the node
  5089. var created = false;
  5090. if ((flags & 64)) {
  5091. if (node) {
  5092. // if O_CREAT and O_EXCL are set, error out if the node already exists
  5093. if ((flags & 128)) {
  5094. throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
  5095. }
  5096. } else {
  5097. // node doesn't exist, try to create it
  5098. node = FS.mknod(path, mode, 0);
  5099. created = true;
  5100. }
  5101. }
  5102. if (!node) {
  5103. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5104. }
  5105. // can't truncate a device
  5106. if (FS.isChrdev(node.mode)) {
  5107. flags &= ~512;
  5108. }
  5109. // if asked only for a directory, then this must be one
  5110. if ((flags & 65536) && !FS.isDir(node.mode)) {
  5111. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5112. }
  5113. // check permissions, if this is not a file we just created now (it is ok to
  5114. // create and write to a file with read-only permissions; it is read-only
  5115. // for later use)
  5116. if (!created) {
  5117. var err = FS.mayOpen(node, flags);
  5118. if (err) {
  5119. throw new FS.ErrnoError(err);
  5120. }
  5121. }
  5122. // do truncation if necessary
  5123. if ((flags & 512)) {
  5124. FS.truncate(node, 0);
  5125. }
  5126. // we've already handled these, don't pass down to the underlying vfs
  5127. flags &= ~(128 | 512);
  5128. // register the stream with the filesystem
  5129. var stream = FS.createStream({
  5130. node: node,
  5131. path: FS.getPath(node), // we want the absolute path to the node
  5132. flags: flags,
  5133. seekable: true,
  5134. position: 0,
  5135. stream_ops: node.stream_ops,
  5136. // used by the file family libc calls (fopen, fwrite, ferror, etc.)
  5137. ungotten: [],
  5138. error: false
  5139. }, fd_start, fd_end);
  5140. // call the new stream's open function
  5141. if (stream.stream_ops.open) {
  5142. stream.stream_ops.open(stream);
  5143. }
  5144. if (Module['logReadFiles'] && !(flags & 1)) {
  5145. if (!FS.readFiles) FS.readFiles = {};
  5146. if (!(path in FS.readFiles)) {
  5147. FS.readFiles[path] = 1;
  5148. Module['printErr']('read file: ' + path);
  5149. }
  5150. }
  5151. try {
  5152. if (FS.trackingDelegate['onOpenFile']) {
  5153. var trackingFlags = 0;
  5154. if ((flags & 2097155) !== 1) {
  5155. trackingFlags |= FS.tracking.openFlags.READ;
  5156. }
  5157. if ((flags & 2097155) !== 0) {
  5158. trackingFlags |= FS.tracking.openFlags.WRITE;
  5159. }
  5160. FS.trackingDelegate['onOpenFile'](path, trackingFlags);
  5161. }
  5162. } catch(e) {
  5163. console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: " + e.message);
  5164. }
  5165. return stream;
  5166. },close:function (stream) {
  5167. if (stream.getdents) stream.getdents = null; // free readdir state
  5168. try {
  5169. if (stream.stream_ops.close) {
  5170. stream.stream_ops.close(stream);
  5171. }
  5172. } catch (e) {
  5173. throw e;
  5174. } finally {
  5175. FS.closeStream(stream.fd);
  5176. }
  5177. },llseek:function (stream, offset, whence) {
  5178. if (!stream.seekable || !stream.stream_ops.llseek) {
  5179. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5180. }
  5181. stream.position = stream.stream_ops.llseek(stream, offset, whence);
  5182. stream.ungotten = [];
  5183. return stream.position;
  5184. },read:function (stream, buffer, offset, length, position) {
  5185. if (length < 0 || position < 0) {
  5186. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5187. }
  5188. if ((stream.flags & 2097155) === 1) {
  5189. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5190. }
  5191. if (FS.isDir(stream.node.mode)) {
  5192. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5193. }
  5194. if (!stream.stream_ops.read) {
  5195. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5196. }
  5197. var seeking = true;
  5198. if (typeof position === 'undefined') {
  5199. position = stream.position;
  5200. seeking = false;
  5201. } else if (!stream.seekable) {
  5202. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5203. }
  5204. var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
  5205. if (!seeking) stream.position += bytesRead;
  5206. return bytesRead;
  5207. },write:function (stream, buffer, offset, length, position, canOwn) {
  5208. if (length < 0 || position < 0) {
  5209. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5210. }
  5211. if ((stream.flags & 2097155) === 0) {
  5212. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5213. }
  5214. if (FS.isDir(stream.node.mode)) {
  5215. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5216. }
  5217. if (!stream.stream_ops.write) {
  5218. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5219. }
  5220. if (stream.flags & 1024) {
  5221. // seek to the end before writing in append mode
  5222. FS.llseek(stream, 0, 2);
  5223. }
  5224. var seeking = true;
  5225. if (typeof position === 'undefined') {
  5226. position = stream.position;
  5227. seeking = false;
  5228. } else if (!stream.seekable) {
  5229. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5230. }
  5231. var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
  5232. if (!seeking) stream.position += bytesWritten;
  5233. try {
  5234. if (stream.path && FS.trackingDelegate['onWriteToFile']) FS.trackingDelegate['onWriteToFile'](stream.path);
  5235. } catch(e) {
  5236. console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: " + e.message);
  5237. }
  5238. return bytesWritten;
  5239. },allocate:function (stream, offset, length) {
  5240. if (offset < 0 || length <= 0) {
  5241. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5242. }
  5243. if ((stream.flags & 2097155) === 0) {
  5244. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5245. }
  5246. if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
  5247. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5248. }
  5249. if (!stream.stream_ops.allocate) {
  5250. throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
  5251. }
  5252. stream.stream_ops.allocate(stream, offset, length);
  5253. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  5254. // TODO if PROT is PROT_WRITE, make sure we have write access
  5255. if ((stream.flags & 2097155) === 1) {
  5256. throw new FS.ErrnoError(ERRNO_CODES.EACCES);
  5257. }
  5258. if (!stream.stream_ops.mmap) {
  5259. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5260. }
  5261. return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
  5262. },msync:function (stream, buffer, offset, length, mmapFlags) {
  5263. if (!stream || !stream.stream_ops.msync) {
  5264. return 0;
  5265. }
  5266. return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags);
  5267. },munmap:function (stream) {
  5268. return 0;
  5269. },ioctl:function (stream, cmd, arg) {
  5270. if (!stream.stream_ops.ioctl) {
  5271. throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
  5272. }
  5273. return stream.stream_ops.ioctl(stream, cmd, arg);
  5274. },readFile:function (path, opts) {
  5275. opts = opts || {};
  5276. opts.flags = opts.flags || 'r';
  5277. opts.encoding = opts.encoding || 'binary';
  5278. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5279. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5280. }
  5281. var ret;
  5282. var stream = FS.open(path, opts.flags);
  5283. var stat = FS.stat(path);
  5284. var length = stat.size;
  5285. var buf = new Uint8Array(length);
  5286. FS.read(stream, buf, 0, length, 0);
  5287. if (opts.encoding === 'utf8') {
  5288. ret = UTF8ArrayToString(buf, 0);
  5289. } else if (opts.encoding === 'binary') {
  5290. ret = buf;
  5291. }
  5292. FS.close(stream);
  5293. return ret;
  5294. },writeFile:function (path, data, opts) {
  5295. opts = opts || {};
  5296. opts.flags = opts.flags || 'w';
  5297. opts.encoding = opts.encoding || 'utf8';
  5298. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5299. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5300. }
  5301. var stream = FS.open(path, opts.flags, opts.mode);
  5302. if (opts.encoding === 'utf8') {
  5303. var buf = new Uint8Array(lengthBytesUTF8(data)+1);
  5304. var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
  5305. FS.write(stream, buf, 0, actualNumBytes, 0, opts.canOwn);
  5306. } else if (opts.encoding === 'binary') {
  5307. FS.write(stream, data, 0, data.length, 0, opts.canOwn);
  5308. }
  5309. FS.close(stream);
  5310. },cwd:function () {
  5311. return FS.currentPath;
  5312. },chdir:function (path) {
  5313. var lookup = FS.lookupPath(path, { follow: true });
  5314. if (lookup.node === null) {
  5315. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5316. }
  5317. if (!FS.isDir(lookup.node.mode)) {
  5318. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5319. }
  5320. var err = FS.nodePermissions(lookup.node, 'x');
  5321. if (err) {
  5322. throw new FS.ErrnoError(err);
  5323. }
  5324. FS.currentPath = lookup.path;
  5325. },createDefaultDirectories:function () {
  5326. FS.mkdir('/tmp');
  5327. FS.mkdir('/home');
  5328. FS.mkdir('/home/web_user');
  5329. },createDefaultDevices:function () {
  5330. // create /dev
  5331. FS.mkdir('/dev');
  5332. // setup /dev/null
  5333. FS.registerDevice(FS.makedev(1, 3), {
  5334. read: function() { return 0; },
  5335. write: function(stream, buffer, offset, length, pos) { return length; }
  5336. });
  5337. FS.mkdev('/dev/null', FS.makedev(1, 3));
  5338. // setup /dev/tty and /dev/tty1
  5339. // stderr needs to print output using Module['printErr']
  5340. // so we register a second tty just for it.
  5341. TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
  5342. TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
  5343. FS.mkdev('/dev/tty', FS.makedev(5, 0));
  5344. FS.mkdev('/dev/tty1', FS.makedev(6, 0));
  5345. // setup /dev/[u]random
  5346. var random_device;
  5347. if (typeof crypto !== 'undefined') {
  5348. // for modern web browsers
  5349. var randomBuffer = new Uint8Array(1);
  5350. random_device = function() { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
  5351. } else if (ENVIRONMENT_IS_NODE) {
  5352. // for nodejs
  5353. random_device = function() { return require('crypto').randomBytes(1)[0]; };
  5354. } else {
  5355. // default for ES5 platforms
  5356. random_device = function() { return (Math.random()*256)|0; };
  5357. }
  5358. FS.createDevice('/dev', 'random', random_device);
  5359. FS.createDevice('/dev', 'urandom', random_device);
  5360. // we're not going to emulate the actual shm device,
  5361. // just create the tmp dirs that reside in it commonly
  5362. FS.mkdir('/dev/shm');
  5363. FS.mkdir('/dev/shm/tmp');
  5364. },createSpecialDirectories:function () {
  5365. // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the name of the stream for fd 6 (see test_unistd_ttyname)
  5366. FS.mkdir('/proc');
  5367. FS.mkdir('/proc/self');
  5368. FS.mkdir('/proc/self/fd');
  5369. FS.mount({
  5370. mount: function() {
  5371. var node = FS.createNode('/proc/self', 'fd', 16384 | 511 /* 0777 */, 73);
  5372. node.node_ops = {
  5373. lookup: function(parent, name) {
  5374. var fd = +name;
  5375. var stream = FS.getStream(fd);
  5376. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5377. var ret = {
  5378. parent: null,
  5379. mount: { mountpoint: 'fake' },
  5380. node_ops: { readlink: function() { return stream.path } }
  5381. };
  5382. ret.parent = ret; // make it look like a simple root node
  5383. return ret;
  5384. }
  5385. };
  5386. return node;
  5387. }
  5388. }, {}, '/proc/self/fd');
  5389. },createStandardStreams:function () {
  5390. // TODO deprecate the old functionality of a single
  5391. // input / output callback and that utilizes FS.createDevice
  5392. // and instead require a unique set of stream ops
  5393. // by default, we symlink the standard streams to the
  5394. // default tty devices. however, if the standard streams
  5395. // have been overwritten we create a unique device for
  5396. // them instead.
  5397. if (Module['stdin']) {
  5398. FS.createDevice('/dev', 'stdin', Module['stdin']);
  5399. } else {
  5400. FS.symlink('/dev/tty', '/dev/stdin');
  5401. }
  5402. if (Module['stdout']) {
  5403. FS.createDevice('/dev', 'stdout', null, Module['stdout']);
  5404. } else {
  5405. FS.symlink('/dev/tty', '/dev/stdout');
  5406. }
  5407. if (Module['stderr']) {
  5408. FS.createDevice('/dev', 'stderr', null, Module['stderr']);
  5409. } else {
  5410. FS.symlink('/dev/tty1', '/dev/stderr');
  5411. }
  5412. // open default streams for the stdin, stdout and stderr devices
  5413. var stdin = FS.open('/dev/stdin', 'r');
  5414. assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
  5415. var stdout = FS.open('/dev/stdout', 'w');
  5416. assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
  5417. var stderr = FS.open('/dev/stderr', 'w');
  5418. assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
  5419. },ensureErrnoError:function () {
  5420. if (FS.ErrnoError) return;
  5421. FS.ErrnoError = function ErrnoError(errno, node) {
  5422. //Module.printErr(stackTrace()); // useful for debugging
  5423. this.node = node;
  5424. this.setErrno = function(errno) {
  5425. this.errno = errno;
  5426. for (var key in ERRNO_CODES) {
  5427. if (ERRNO_CODES[key] === errno) {
  5428. this.code = key;
  5429. break;
  5430. }
  5431. }
  5432. };
  5433. this.setErrno(errno);
  5434. this.message = ERRNO_MESSAGES[errno];
  5435. if (this.stack) this.stack = demangleAll(this.stack);
  5436. };
  5437. FS.ErrnoError.prototype = new Error();
  5438. FS.ErrnoError.prototype.constructor = FS.ErrnoError;
  5439. // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
  5440. [ERRNO_CODES.ENOENT].forEach(function(code) {
  5441. FS.genericErrors[code] = new FS.ErrnoError(code);
  5442. FS.genericErrors[code].stack = '<generic error, no stack>';
  5443. });
  5444. },staticInit:function () {
  5445. FS.ensureErrnoError();
  5446. FS.nameTable = new Array(4096);
  5447. FS.mount(MEMFS, {}, '/');
  5448. FS.createDefaultDirectories();
  5449. FS.createDefaultDevices();
  5450. FS.createSpecialDirectories();
  5451. FS.filesystems = {
  5452. 'MEMFS': MEMFS,
  5453. 'IDBFS': IDBFS,
  5454. 'NODEFS': NODEFS,
  5455. 'WORKERFS': WORKERFS,
  5456. };
  5457. },init:function (input, output, error) {
  5458. 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)');
  5459. FS.init.initialized = true;
  5460. FS.ensureErrnoError();
  5461. // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
  5462. Module['stdin'] = input || Module['stdin'];
  5463. Module['stdout'] = output || Module['stdout'];
  5464. Module['stderr'] = error || Module['stderr'];
  5465. FS.createStandardStreams();
  5466. },quit:function () {
  5467. FS.init.initialized = false;
  5468. // force-flush all streams, so we get musl std streams printed out
  5469. var fflush = Module['_fflush'];
  5470. if (fflush) fflush(0);
  5471. // close all of our streams
  5472. for (var i = 0; i < FS.streams.length; i++) {
  5473. var stream = FS.streams[i];
  5474. if (!stream) {
  5475. continue;
  5476. }
  5477. FS.close(stream);
  5478. }
  5479. },getMode:function (canRead, canWrite) {
  5480. var mode = 0;
  5481. if (canRead) mode |= 292 | 73;
  5482. if (canWrite) mode |= 146;
  5483. return mode;
  5484. },joinPath:function (parts, forceRelative) {
  5485. var path = PATH.join.apply(null, parts);
  5486. if (forceRelative && path[0] == '/') path = path.substr(1);
  5487. return path;
  5488. },absolutePath:function (relative, base) {
  5489. return PATH.resolve(base, relative);
  5490. },standardizePath:function (path) {
  5491. return PATH.normalize(path);
  5492. },findObject:function (path, dontResolveLastLink) {
  5493. var ret = FS.analyzePath(path, dontResolveLastLink);
  5494. if (ret.exists) {
  5495. return ret.object;
  5496. } else {
  5497. ___setErrNo(ret.error);
  5498. return null;
  5499. }
  5500. },analyzePath:function (path, dontResolveLastLink) {
  5501. // operate from within the context of the symlink's target
  5502. try {
  5503. var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5504. path = lookup.path;
  5505. } catch (e) {
  5506. }
  5507. var ret = {
  5508. isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
  5509. parentExists: false, parentPath: null, parentObject: null
  5510. };
  5511. try {
  5512. var lookup = FS.lookupPath(path, { parent: true });
  5513. ret.parentExists = true;
  5514. ret.parentPath = lookup.path;
  5515. ret.parentObject = lookup.node;
  5516. ret.name = PATH.basename(path);
  5517. lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5518. ret.exists = true;
  5519. ret.path = lookup.path;
  5520. ret.object = lookup.node;
  5521. ret.name = lookup.node.name;
  5522. ret.isRoot = lookup.path === '/';
  5523. } catch (e) {
  5524. ret.error = e.errno;
  5525. };
  5526. return ret;
  5527. },createFolder:function (parent, name, canRead, canWrite) {
  5528. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5529. var mode = FS.getMode(canRead, canWrite);
  5530. return FS.mkdir(path, mode);
  5531. },createPath:function (parent, path, canRead, canWrite) {
  5532. parent = typeof parent === 'string' ? parent : FS.getPath(parent);
  5533. var parts = path.split('/').reverse();
  5534. while (parts.length) {
  5535. var part = parts.pop();
  5536. if (!part) continue;
  5537. var current = PATH.join2(parent, part);
  5538. try {
  5539. FS.mkdir(current);
  5540. } catch (e) {
  5541. // ignore EEXIST
  5542. }
  5543. parent = current;
  5544. }
  5545. return current;
  5546. },createFile:function (parent, name, properties, canRead, canWrite) {
  5547. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5548. var mode = FS.getMode(canRead, canWrite);
  5549. return FS.create(path, mode);
  5550. },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
  5551. var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
  5552. var mode = FS.getMode(canRead, canWrite);
  5553. var node = FS.create(path, mode);
  5554. if (data) {
  5555. if (typeof data === 'string') {
  5556. var arr = new Array(data.length);
  5557. for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
  5558. data = arr;
  5559. }
  5560. // make sure we can write to the file
  5561. FS.chmod(node, mode | 146);
  5562. var stream = FS.open(node, 'w');
  5563. FS.write(stream, data, 0, data.length, 0, canOwn);
  5564. FS.close(stream);
  5565. FS.chmod(node, mode);
  5566. }
  5567. return node;
  5568. },createDevice:function (parent, name, input, output) {
  5569. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5570. var mode = FS.getMode(!!input, !!output);
  5571. if (!FS.createDevice.major) FS.createDevice.major = 64;
  5572. var dev = FS.makedev(FS.createDevice.major++, 0);
  5573. // Create a fake device that a set of stream ops to emulate
  5574. // the old behavior.
  5575. FS.registerDevice(dev, {
  5576. open: function(stream) {
  5577. stream.seekable = false;
  5578. },
  5579. close: function(stream) {
  5580. // flush any pending line data
  5581. if (output && output.buffer && output.buffer.length) {
  5582. output(10);
  5583. }
  5584. },
  5585. read: function(stream, buffer, offset, length, pos /* ignored */) {
  5586. var bytesRead = 0;
  5587. for (var i = 0; i < length; i++) {
  5588. var result;
  5589. try {
  5590. result = input();
  5591. } catch (e) {
  5592. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5593. }
  5594. if (result === undefined && bytesRead === 0) {
  5595. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  5596. }
  5597. if (result === null || result === undefined) break;
  5598. bytesRead++;
  5599. buffer[offset+i] = result;
  5600. }
  5601. if (bytesRead) {
  5602. stream.node.timestamp = Date.now();
  5603. }
  5604. return bytesRead;
  5605. },
  5606. write: function(stream, buffer, offset, length, pos) {
  5607. for (var i = 0; i < length; i++) {
  5608. try {
  5609. output(buffer[offset+i]);
  5610. } catch (e) {
  5611. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5612. }
  5613. }
  5614. if (length) {
  5615. stream.node.timestamp = Date.now();
  5616. }
  5617. return i;
  5618. }
  5619. });
  5620. return FS.mkdev(path, mode, dev);
  5621. },createLink:function (parent, name, target, canRead, canWrite) {
  5622. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5623. return FS.symlink(target, path);
  5624. },forceLoadFile:function (obj) {
  5625. if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
  5626. var success = true;
  5627. if (typeof XMLHttpRequest !== 'undefined') {
  5628. 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.");
  5629. } else if (Module['read']) {
  5630. // Command-line.
  5631. try {
  5632. // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
  5633. // read() will try to parse UTF8.
  5634. obj.contents = intArrayFromString(Module['read'](obj.url), true);
  5635. obj.usedBytes = obj.contents.length;
  5636. } catch (e) {
  5637. success = false;
  5638. }
  5639. } else {
  5640. throw new Error('Cannot load without read() or XMLHttpRequest.');
  5641. }
  5642. if (!success) ___setErrNo(ERRNO_CODES.EIO);
  5643. return success;
  5644. },createLazyFile:function (parent, name, url, canRead, canWrite) {
  5645. // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
  5646. function LazyUint8Array() {
  5647. this.lengthKnown = false;
  5648. this.chunks = []; // Loaded chunks. Index is the chunk number
  5649. }
  5650. LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
  5651. if (idx > this.length-1 || idx < 0) {
  5652. return undefined;
  5653. }
  5654. var chunkOffset = idx % this.chunkSize;
  5655. var chunkNum = (idx / this.chunkSize)|0;
  5656. return this.getter(chunkNum)[chunkOffset];
  5657. }
  5658. LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
  5659. this.getter = getter;
  5660. }
  5661. LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
  5662. // Find length
  5663. var xhr = new XMLHttpRequest();
  5664. xhr.open('HEAD', url, false);
  5665. xhr.send(null);
  5666. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5667. var datalength = Number(xhr.getResponseHeader("Content-length"));
  5668. var header;
  5669. var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
  5670. var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip";
  5671. var chunkSize = 1024*1024; // Chunk size in bytes
  5672. if (!hasByteServing) chunkSize = datalength;
  5673. // Function to get a range from the remote URL.
  5674. var doXHR = (function(from, to) {
  5675. if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
  5676. if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
  5677. // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
  5678. var xhr = new XMLHttpRequest();
  5679. xhr.open('GET', url, false);
  5680. if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
  5681. // Some hints to the browser that we want binary data.
  5682. if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
  5683. if (xhr.overrideMimeType) {
  5684. xhr.overrideMimeType('text/plain; charset=x-user-defined');
  5685. }
  5686. xhr.send(null);
  5687. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5688. if (xhr.response !== undefined) {
  5689. return new Uint8Array(xhr.response || []);
  5690. } else {
  5691. return intArrayFromString(xhr.responseText || '', true);
  5692. }
  5693. });
  5694. var lazyArray = this;
  5695. lazyArray.setDataGetter(function(chunkNum) {
  5696. var start = chunkNum * chunkSize;
  5697. var end = (chunkNum+1) * chunkSize - 1; // including this byte
  5698. end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
  5699. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
  5700. lazyArray.chunks[chunkNum] = doXHR(start, end);
  5701. }
  5702. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
  5703. return lazyArray.chunks[chunkNum];
  5704. });
  5705. if (usesGzip || !datalength) {
  5706. // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length
  5707. chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file
  5708. datalength = this.getter(0).length;
  5709. chunkSize = datalength;
  5710. console.log("LazyFiles on gzip forces download of the whole file when length is accessed");
  5711. }
  5712. this._length = datalength;
  5713. this._chunkSize = chunkSize;
  5714. this.lengthKnown = true;
  5715. }
  5716. if (typeof XMLHttpRequest !== 'undefined') {
  5717. if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
  5718. var lazyArray = new LazyUint8Array();
  5719. Object.defineProperties(lazyArray, {
  5720. length: {
  5721. get: function() {
  5722. if(!this.lengthKnown) {
  5723. this.cacheLength();
  5724. }
  5725. return this._length;
  5726. }
  5727. },
  5728. chunkSize: {
  5729. get: function() {
  5730. if(!this.lengthKnown) {
  5731. this.cacheLength();
  5732. }
  5733. return this._chunkSize;
  5734. }
  5735. }
  5736. });
  5737. var properties = { isDevice: false, contents: lazyArray };
  5738. } else {
  5739. var properties = { isDevice: false, url: url };
  5740. }
  5741. var node = FS.createFile(parent, name, properties, canRead, canWrite);
  5742. // This is a total hack, but I want to get this lazy file code out of the
  5743. // core of MEMFS. If we want to keep this lazy file concept I feel it should
  5744. // be its own thin LAZYFS proxying calls to MEMFS.
  5745. if (properties.contents) {
  5746. node.contents = properties.contents;
  5747. } else if (properties.url) {
  5748. node.contents = null;
  5749. node.url = properties.url;
  5750. }
  5751. // Add a function that defers querying the file size until it is asked the first time.
  5752. Object.defineProperties(node, {
  5753. usedBytes: {
  5754. get: function() { return this.contents.length; }
  5755. }
  5756. });
  5757. // override each stream op with one that tries to force load the lazy file first
  5758. var stream_ops = {};
  5759. var keys = Object.keys(node.stream_ops);
  5760. keys.forEach(function(key) {
  5761. var fn = node.stream_ops[key];
  5762. stream_ops[key] = function forceLoadLazyFile() {
  5763. if (!FS.forceLoadFile(node)) {
  5764. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5765. }
  5766. return fn.apply(null, arguments);
  5767. };
  5768. });
  5769. // use a custom read function
  5770. stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
  5771. if (!FS.forceLoadFile(node)) {
  5772. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5773. }
  5774. var contents = stream.node.contents;
  5775. if (position >= contents.length)
  5776. return 0;
  5777. var size = Math.min(contents.length - position, length);
  5778. assert(size >= 0);
  5779. if (contents.slice) { // normal array
  5780. for (var i = 0; i < size; i++) {
  5781. buffer[offset + i] = contents[position + i];
  5782. }
  5783. } else {
  5784. for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
  5785. buffer[offset + i] = contents.get(position + i);
  5786. }
  5787. }
  5788. return size;
  5789. };
  5790. node.stream_ops = stream_ops;
  5791. return node;
  5792. },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
  5793. Browser.init(); // XXX perhaps this method should move onto Browser?
  5794. // TODO we should allow people to just pass in a complete filename instead
  5795. // of parent and name being that we just join them anyways
  5796. var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
  5797. var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
  5798. function processData(byteArray) {
  5799. function finish(byteArray) {
  5800. if (preFinish) preFinish();
  5801. if (!dontCreateFile) {
  5802. FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
  5803. }
  5804. if (onload) onload();
  5805. removeRunDependency(dep);
  5806. }
  5807. var handled = false;
  5808. Module['preloadPlugins'].forEach(function(plugin) {
  5809. if (handled) return;
  5810. if (plugin['canHandle'](fullname)) {
  5811. plugin['handle'](byteArray, fullname, finish, function() {
  5812. if (onerror) onerror();
  5813. removeRunDependency(dep);
  5814. });
  5815. handled = true;
  5816. }
  5817. });
  5818. if (!handled) finish(byteArray);
  5819. }
  5820. addRunDependency(dep);
  5821. if (typeof url == 'string') {
  5822. Browser.asyncLoad(url, function(byteArray) {
  5823. processData(byteArray);
  5824. }, onerror);
  5825. } else {
  5826. processData(url);
  5827. }
  5828. },indexedDB:function () {
  5829. return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  5830. },DB_NAME:function () {
  5831. return 'EM_FS_' + window.location.pathname;
  5832. },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) {
  5833. onload = onload || function(){};
  5834. onerror = onerror || function(){};
  5835. var indexedDB = FS.indexedDB();
  5836. try {
  5837. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5838. } catch (e) {
  5839. return onerror(e);
  5840. }
  5841. openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
  5842. console.log('creating db');
  5843. var db = openRequest.result;
  5844. db.createObjectStore(FS.DB_STORE_NAME);
  5845. };
  5846. openRequest.onsuccess = function openRequest_onsuccess() {
  5847. var db = openRequest.result;
  5848. var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
  5849. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5850. var ok = 0, fail = 0, total = paths.length;
  5851. function finish() {
  5852. if (fail == 0) onload(); else onerror();
  5853. }
  5854. paths.forEach(function(path) {
  5855. var putRequest = files.put(FS.analyzePath(path).object.contents, path);
  5856. putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
  5857. putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5858. });
  5859. transaction.onerror = onerror;
  5860. };
  5861. openRequest.onerror = onerror;
  5862. },loadFilesFromDB:function (paths, onload, onerror) {
  5863. onload = onload || function(){};
  5864. onerror = onerror || function(){};
  5865. var indexedDB = FS.indexedDB();
  5866. try {
  5867. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5868. } catch (e) {
  5869. return onerror(e);
  5870. }
  5871. openRequest.onupgradeneeded = onerror; // no database to load from
  5872. openRequest.onsuccess = function openRequest_onsuccess() {
  5873. var db = openRequest.result;
  5874. try {
  5875. var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
  5876. } catch(e) {
  5877. onerror(e);
  5878. return;
  5879. }
  5880. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5881. var ok = 0, fail = 0, total = paths.length;
  5882. function finish() {
  5883. if (fail == 0) onload(); else onerror();
  5884. }
  5885. paths.forEach(function(path) {
  5886. var getRequest = files.get(path);
  5887. getRequest.onsuccess = function getRequest_onsuccess() {
  5888. if (FS.analyzePath(path).exists) {
  5889. FS.unlink(path);
  5890. }
  5891. FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
  5892. ok++;
  5893. if (ok + fail == total) finish();
  5894. };
  5895. getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5896. });
  5897. transaction.onerror = onerror;
  5898. };
  5899. openRequest.onerror = onerror;
  5900. }};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function (dirfd, path) {
  5901. if (path[0] !== '/') {
  5902. // relative path
  5903. var dir;
  5904. if (dirfd === -100) {
  5905. dir = FS.cwd();
  5906. } else {
  5907. var dirstream = FS.getStream(dirfd);
  5908. if (!dirstream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5909. dir = dirstream.path;
  5910. }
  5911. path = PATH.join2(dir, path);
  5912. }
  5913. return path;
  5914. },doStat:function (func, path, buf) {
  5915. try {
  5916. var stat = func(path);
  5917. } catch (e) {
  5918. if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
  5919. // an error occurred while trying to look up the path; we should just report ENOTDIR
  5920. return -ERRNO_CODES.ENOTDIR;
  5921. }
  5922. throw e;
  5923. }
  5924. HEAP32[((buf)>>2)]=stat.dev;
  5925. HEAP32[(((buf)+(4))>>2)]=0;
  5926. HEAP32[(((buf)+(8))>>2)]=stat.ino;
  5927. HEAP32[(((buf)+(12))>>2)]=stat.mode;
  5928. HEAP32[(((buf)+(16))>>2)]=stat.nlink;
  5929. HEAP32[(((buf)+(20))>>2)]=stat.uid;
  5930. HEAP32[(((buf)+(24))>>2)]=stat.gid;
  5931. HEAP32[(((buf)+(28))>>2)]=stat.rdev;
  5932. HEAP32[(((buf)+(32))>>2)]=0;
  5933. HEAP32[(((buf)+(36))>>2)]=stat.size;
  5934. HEAP32[(((buf)+(40))>>2)]=4096;
  5935. HEAP32[(((buf)+(44))>>2)]=stat.blocks;
  5936. HEAP32[(((buf)+(48))>>2)]=(stat.atime.getTime() / 1000)|0;
  5937. HEAP32[(((buf)+(52))>>2)]=0;
  5938. HEAP32[(((buf)+(56))>>2)]=(stat.mtime.getTime() / 1000)|0;
  5939. HEAP32[(((buf)+(60))>>2)]=0;
  5940. HEAP32[(((buf)+(64))>>2)]=(stat.ctime.getTime() / 1000)|0;
  5941. HEAP32[(((buf)+(68))>>2)]=0;
  5942. HEAP32[(((buf)+(72))>>2)]=stat.ino;
  5943. return 0;
  5944. },doMsync:function (addr, stream, len, flags) {
  5945. var buffer = new Uint8Array(HEAPU8.subarray(addr, addr + len));
  5946. FS.msync(stream, buffer, 0, len, flags);
  5947. },doMkdir:function (path, mode) {
  5948. // remove a trailing slash, if one - /a/b/ has basename of '', but
  5949. // we want to create b in the context of this function
  5950. path = PATH.normalize(path);
  5951. if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
  5952. FS.mkdir(path, mode, 0);
  5953. return 0;
  5954. },doMknod:function (path, mode, dev) {
  5955. // we don't want this in the JS API as it uses mknod to create all nodes.
  5956. switch (mode & 61440) {
  5957. case 32768:
  5958. case 8192:
  5959. case 24576:
  5960. case 4096:
  5961. case 49152:
  5962. break;
  5963. default: return -ERRNO_CODES.EINVAL;
  5964. }
  5965. FS.mknod(path, mode, dev);
  5966. return 0;
  5967. },doReadlink:function (path, buf, bufsize) {
  5968. if (bufsize <= 0) return -ERRNO_CODES.EINVAL;
  5969. var ret = FS.readlink(path);
  5970. var len = Math.min(bufsize, lengthBytesUTF8(ret));
  5971. var endChar = HEAP8[buf+len];
  5972. stringToUTF8(ret, buf, bufsize+1);
  5973. // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
  5974. // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
  5975. HEAP8[buf+len] = endChar;
  5976. return len;
  5977. },doAccess:function (path, amode) {
  5978. if (amode & ~7) {
  5979. // need a valid mode
  5980. return -ERRNO_CODES.EINVAL;
  5981. }
  5982. var node;
  5983. var lookup = FS.lookupPath(path, { follow: true });
  5984. node = lookup.node;
  5985. var perms = '';
  5986. if (amode & 4) perms += 'r';
  5987. if (amode & 2) perms += 'w';
  5988. if (amode & 1) perms += 'x';
  5989. if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) {
  5990. return -ERRNO_CODES.EACCES;
  5991. }
  5992. return 0;
  5993. },doDup:function (path, flags, suggestFD) {
  5994. var suggest = FS.getStream(suggestFD);
  5995. if (suggest) FS.close(suggest);
  5996. return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
  5997. },doReadv:function (stream, iov, iovcnt, offset) {
  5998. var ret = 0;
  5999. for (var i = 0; i < iovcnt; i++) {
  6000. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6001. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6002. var curr = FS.read(stream, HEAP8,ptr, len, offset);
  6003. if (curr < 0) return -1;
  6004. ret += curr;
  6005. if (curr < len) break; // nothing more to read
  6006. }
  6007. return ret;
  6008. },doWritev:function (stream, iov, iovcnt, offset) {
  6009. var ret = 0;
  6010. for (var i = 0; i < iovcnt; i++) {
  6011. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6012. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6013. var curr = FS.write(stream, HEAP8,ptr, len, offset);
  6014. if (curr < 0) return -1;
  6015. ret += curr;
  6016. }
  6017. return ret;
  6018. },varargs:0,get:function (varargs) {
  6019. SYSCALLS.varargs += 4;
  6020. var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
  6021. return ret;
  6022. },getStr:function () {
  6023. var ret = Pointer_stringify(SYSCALLS.get());
  6024. return ret;
  6025. },getStreamFromFD:function () {
  6026. var stream = FS.getStream(SYSCALLS.get());
  6027. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6028. return stream;
  6029. },getSocketFromFD:function () {
  6030. var socket = SOCKFS.getSocket(SYSCALLS.get());
  6031. if (!socket) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6032. return socket;
  6033. },getSocketAddress:function (allowNull) {
  6034. var addrp = SYSCALLS.get(), addrlen = SYSCALLS.get();
  6035. if (allowNull && addrp === 0) return null;
  6036. var info = __read_sockaddr(addrp, addrlen);
  6037. if (info.errno) throw new FS.ErrnoError(info.errno);
  6038. info.addr = DNS.lookup_addr(info.addr) || info.addr;
  6039. return info;
  6040. },get64:function () {
  6041. var low = SYSCALLS.get(), high = SYSCALLS.get();
  6042. if (low >= 0) assert(high === 0);
  6043. else assert(high === -1);
  6044. return low;
  6045. },getZero:function () {
  6046. assert(SYSCALLS.get() === 0);
  6047. }};function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
  6048. try {
  6049. // ioctl
  6050. var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
  6051. switch (op) {
  6052. case 21505: {
  6053. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6054. return 0;
  6055. }
  6056. case 21506: {
  6057. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6058. return 0; // no-op, not actually adjusting terminal settings
  6059. }
  6060. case 21519: {
  6061. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6062. var argp = SYSCALLS.get();
  6063. HEAP32[((argp)>>2)]=0;
  6064. return 0;
  6065. }
  6066. case 21520: {
  6067. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6068. return -ERRNO_CODES.EINVAL; // not supported
  6069. }
  6070. case 21531: {
  6071. var argp = SYSCALLS.get();
  6072. return FS.ioctl(stream, op, argp);
  6073. }
  6074. case 21523: {
  6075. // TODO: in theory we should write to the winsize struct that gets
  6076. // passed in, but for now musl doesn't read anything on it
  6077. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6078. return 0;
  6079. }
  6080. default: abort('bad ioctl syscall ' + op);
  6081. }
  6082. } catch (e) {
  6083. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  6084. return -e.errno;
  6085. }
  6086. }
  6087. function _emscripten_glSampleCoverage(value, invert) {
  6088. GLctx.sampleCoverage(value, !!invert);
  6089. }
  6090. function _glDeleteTextures(n, textures) {
  6091. for (var i = 0; i < n; i++) {
  6092. var id = HEAP32[(((textures)+(i*4))>>2)];
  6093. var texture = GL.textures[id];
  6094. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  6095. GLctx.deleteTexture(texture);
  6096. texture.name = 0;
  6097. GL.textures[id] = null;
  6098. }
  6099. }
  6100. function _emscripten_glFrustum() {
  6101. Module['printErr']('missing function: emscripten_glFrustum'); abort(-1);
  6102. }
  6103. function _glfwSetWindowSizeCallback(winid, cbfun) {
  6104. GLFW.setWindowSizeCallback(winid, cbfun);
  6105. }
  6106. function _emscripten_glGetTexParameterfv(target, pname, params) {
  6107. if (!params) {
  6108. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  6109. // if p == null, issue a GL error to notify user about it.
  6110. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  6111. return;
  6112. }
  6113. HEAPF32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  6114. }
  6115. function _emscripten_glUniform4i(location, v0, v1, v2, v3) {
  6116. GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3);
  6117. }
  6118. function _emscripten_glBindRenderbuffer(target, renderbuffer) {
  6119. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  6120. }
  6121. function _emscripten_glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  6122. var JSEvents={keyEvent:0,mouseEvent:0,wheelEvent:0,uiEvent:0,focusEvent:0,deviceOrientationEvent:0,deviceMotionEvent:0,fullscreenChangeEvent:0,pointerlockChangeEvent:0,visibilityChangeEvent:0,touchEvent:0,lastGamepadState:null,lastGamepadStateFrame:null,numGamepadsConnected:0,previousFullscreenElement:null,previousScreenX:null,previousScreenY:null,removeEventListenersRegistered:false,staticInit:function () {
  6123. if (typeof window !== 'undefined') {
  6124. window.addEventListener("gamepadconnected", function() { ++JSEvents.numGamepadsConnected; });
  6125. window.addEventListener("gamepaddisconnected", function() { --JSEvents.numGamepadsConnected; });
  6126. }
  6127. },registerRemoveEventListeners:function () {
  6128. if (!JSEvents.removeEventListenersRegistered) {
  6129. __ATEXIT__.push(function() {
  6130. for(var i = JSEvents.eventHandlers.length-1; i >= 0; --i) {
  6131. JSEvents._removeHandler(i);
  6132. }
  6133. });
  6134. JSEvents.removeEventListenersRegistered = true;
  6135. }
  6136. },findEventTarget:function (target) {
  6137. if (target) {
  6138. if (typeof target == "number") {
  6139. target = Pointer_stringify(target);
  6140. }
  6141. if (target == '#window') return window;
  6142. else if (target == '#document') return document;
  6143. else if (target == '#screen') return window.screen;
  6144. else if (target == '#canvas') return Module['canvas'];
  6145. if (typeof target == 'string') return document.getElementById(target);
  6146. else return target;
  6147. } else {
  6148. // The sensible target varies between events, but use window as the default
  6149. // since DOM events mostly can default to that. Specific callback registrations
  6150. // override their own defaults.
  6151. return window;
  6152. }
  6153. },deferredCalls:[],deferCall:function (targetFunction, precedence, argsList) {
  6154. function arraysHaveEqualContent(arrA, arrB) {
  6155. if (arrA.length != arrB.length) return false;
  6156. for(var i in arrA) {
  6157. if (arrA[i] != arrB[i]) return false;
  6158. }
  6159. return true;
  6160. }
  6161. // Test if the given call was already queued, and if so, don't add it again.
  6162. for(var i in JSEvents.deferredCalls) {
  6163. var call = JSEvents.deferredCalls[i];
  6164. if (call.targetFunction == targetFunction && arraysHaveEqualContent(call.argsList, argsList)) {
  6165. return;
  6166. }
  6167. }
  6168. JSEvents.deferredCalls.push({
  6169. targetFunction: targetFunction,
  6170. precedence: precedence,
  6171. argsList: argsList
  6172. });
  6173. JSEvents.deferredCalls.sort(function(x,y) { return x.precedence < y.precedence; });
  6174. },removeDeferredCalls:function (targetFunction) {
  6175. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6176. if (JSEvents.deferredCalls[i].targetFunction == targetFunction) {
  6177. JSEvents.deferredCalls.splice(i, 1);
  6178. --i;
  6179. }
  6180. }
  6181. },canPerformEventHandlerRequests:function () {
  6182. return JSEvents.inEventHandler && JSEvents.currentEventHandler.allowsDeferredCalls;
  6183. },runDeferredCalls:function () {
  6184. if (!JSEvents.canPerformEventHandlerRequests()) {
  6185. return;
  6186. }
  6187. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6188. var call = JSEvents.deferredCalls[i];
  6189. JSEvents.deferredCalls.splice(i, 1);
  6190. --i;
  6191. call.targetFunction.apply(this, call.argsList);
  6192. }
  6193. },inEventHandler:0,currentEventHandler:null,eventHandlers:[],isInternetExplorer:function () { return navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; },removeAllHandlersOnTarget:function (target, eventTypeString) {
  6194. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6195. if (JSEvents.eventHandlers[i].target == target &&
  6196. (!eventTypeString || eventTypeString == JSEvents.eventHandlers[i].eventTypeString)) {
  6197. JSEvents._removeHandler(i--);
  6198. }
  6199. }
  6200. },_removeHandler:function (i) {
  6201. var h = JSEvents.eventHandlers[i];
  6202. h.target.removeEventListener(h.eventTypeString, h.eventListenerFunc, h.useCapture);
  6203. JSEvents.eventHandlers.splice(i, 1);
  6204. },registerOrRemoveHandler:function (eventHandler) {
  6205. var jsEventHandler = function jsEventHandler(event) {
  6206. // Increment nesting count for the event handler.
  6207. ++JSEvents.inEventHandler;
  6208. JSEvents.currentEventHandler = eventHandler;
  6209. // Process any old deferred calls the user has placed.
  6210. JSEvents.runDeferredCalls();
  6211. // Process the actual event, calls back to user C code handler.
  6212. eventHandler.handlerFunc(event);
  6213. // Process any new deferred calls that were placed right now from this event handler.
  6214. JSEvents.runDeferredCalls();
  6215. // Out of event handler - restore nesting count.
  6216. --JSEvents.inEventHandler;
  6217. }
  6218. if (eventHandler.callbackfunc) {
  6219. eventHandler.eventListenerFunc = jsEventHandler;
  6220. eventHandler.target.addEventListener(eventHandler.eventTypeString, jsEventHandler, eventHandler.useCapture);
  6221. JSEvents.eventHandlers.push(eventHandler);
  6222. JSEvents.registerRemoveEventListeners();
  6223. } else {
  6224. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6225. if (JSEvents.eventHandlers[i].target == eventHandler.target
  6226. && JSEvents.eventHandlers[i].eventTypeString == eventHandler.eventTypeString) {
  6227. JSEvents._removeHandler(i--);
  6228. }
  6229. }
  6230. }
  6231. },registerKeyEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6232. if (!JSEvents.keyEvent) {
  6233. JSEvents.keyEvent = _malloc( 164 );
  6234. }
  6235. var handlerFunc = function(event) {
  6236. var e = event || window.event;
  6237. stringToUTF8(e.key ? e.key : "", JSEvents.keyEvent + 0, 32);
  6238. stringToUTF8(e.code ? e.code : "", JSEvents.keyEvent + 32, 32);
  6239. HEAP32[(((JSEvents.keyEvent)+(64))>>2)]=e.location;
  6240. HEAP32[(((JSEvents.keyEvent)+(68))>>2)]=e.ctrlKey;
  6241. HEAP32[(((JSEvents.keyEvent)+(72))>>2)]=e.shiftKey;
  6242. HEAP32[(((JSEvents.keyEvent)+(76))>>2)]=e.altKey;
  6243. HEAP32[(((JSEvents.keyEvent)+(80))>>2)]=e.metaKey;
  6244. HEAP32[(((JSEvents.keyEvent)+(84))>>2)]=e.repeat;
  6245. stringToUTF8(e.locale ? e.locale : "", JSEvents.keyEvent + 88, 32);
  6246. stringToUTF8(e.char ? e.char : "", JSEvents.keyEvent + 120, 32);
  6247. HEAP32[(((JSEvents.keyEvent)+(152))>>2)]=e.charCode;
  6248. HEAP32[(((JSEvents.keyEvent)+(156))>>2)]=e.keyCode;
  6249. HEAP32[(((JSEvents.keyEvent)+(160))>>2)]=e.which;
  6250. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.keyEvent, userData);
  6251. if (shouldCancel) {
  6252. e.preventDefault();
  6253. }
  6254. };
  6255. var eventHandler = {
  6256. target: JSEvents.findEventTarget(target),
  6257. allowsDeferredCalls: JSEvents.isInternetExplorer() ? false : true, // MSIE doesn't allow fullscreen and pointerlock requests from key handlers, others do.
  6258. eventTypeString: eventTypeString,
  6259. callbackfunc: callbackfunc,
  6260. handlerFunc: handlerFunc,
  6261. useCapture: useCapture
  6262. };
  6263. JSEvents.registerOrRemoveHandler(eventHandler);
  6264. },getBoundingClientRectOrZeros:function (target) {
  6265. return target.getBoundingClientRect ? target.getBoundingClientRect() : { left: 0, top: 0 };
  6266. },fillMouseEventData:function (eventStruct, e, target) {
  6267. HEAPF64[((eventStruct)>>3)]=JSEvents.tick();
  6268. HEAP32[(((eventStruct)+(8))>>2)]=e.screenX;
  6269. HEAP32[(((eventStruct)+(12))>>2)]=e.screenY;
  6270. HEAP32[(((eventStruct)+(16))>>2)]=e.clientX;
  6271. HEAP32[(((eventStruct)+(20))>>2)]=e.clientY;
  6272. HEAP32[(((eventStruct)+(24))>>2)]=e.ctrlKey;
  6273. HEAP32[(((eventStruct)+(28))>>2)]=e.shiftKey;
  6274. HEAP32[(((eventStruct)+(32))>>2)]=e.altKey;
  6275. HEAP32[(((eventStruct)+(36))>>2)]=e.metaKey;
  6276. HEAP16[(((eventStruct)+(40))>>1)]=e.button;
  6277. HEAP16[(((eventStruct)+(42))>>1)]=e.buttons;
  6278. HEAP32[(((eventStruct)+(44))>>2)]=e["movementX"] || e["mozMovementX"] || e["webkitMovementX"] || (e.screenX-JSEvents.previousScreenX);
  6279. HEAP32[(((eventStruct)+(48))>>2)]=e["movementY"] || e["mozMovementY"] || e["webkitMovementY"] || (e.screenY-JSEvents.previousScreenY);
  6280. if (Module['canvas']) {
  6281. var rect = Module['canvas'].getBoundingClientRect();
  6282. HEAP32[(((eventStruct)+(60))>>2)]=e.clientX - rect.left;
  6283. HEAP32[(((eventStruct)+(64))>>2)]=e.clientY - rect.top;
  6284. } else { // Canvas is not initialized, return 0.
  6285. HEAP32[(((eventStruct)+(60))>>2)]=0;
  6286. HEAP32[(((eventStruct)+(64))>>2)]=0;
  6287. }
  6288. if (target) {
  6289. var rect = JSEvents.getBoundingClientRectOrZeros(target);
  6290. HEAP32[(((eventStruct)+(52))>>2)]=e.clientX - rect.left;
  6291. HEAP32[(((eventStruct)+(56))>>2)]=e.clientY - rect.top;
  6292. } else { // No specific target passed, return 0.
  6293. HEAP32[(((eventStruct)+(52))>>2)]=0;
  6294. HEAP32[(((eventStruct)+(56))>>2)]=0;
  6295. }
  6296. // wheel and mousewheel events contain wrong screenX/screenY on chrome/opera
  6297. // https://github.com/kripken/emscripten/pull/4997
  6298. // https://bugs.chromium.org/p/chromium/issues/detail?id=699956
  6299. if (e.type !== 'wheel' && e.type !== 'mousewheel') {
  6300. JSEvents.previousScreenX = e.screenX;
  6301. JSEvents.previousScreenY = e.screenY;
  6302. }
  6303. },registerMouseEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6304. if (!JSEvents.mouseEvent) {
  6305. JSEvents.mouseEvent = _malloc( 72 );
  6306. }
  6307. target = JSEvents.findEventTarget(target);
  6308. var handlerFunc = function(event) {
  6309. var e = event || window.event;
  6310. JSEvents.fillMouseEventData(JSEvents.mouseEvent, e, target);
  6311. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.mouseEvent, userData);
  6312. if (shouldCancel) {
  6313. e.preventDefault();
  6314. }
  6315. };
  6316. var eventHandler = {
  6317. target: target,
  6318. allowsDeferredCalls: eventTypeString != 'mousemove' && eventTypeString != 'mouseenter' && eventTypeString != 'mouseleave', // Mouse move events do not allow fullscreen/pointer lock requests to be handled in them!
  6319. eventTypeString: eventTypeString,
  6320. callbackfunc: callbackfunc,
  6321. handlerFunc: handlerFunc,
  6322. useCapture: useCapture
  6323. };
  6324. // In IE, mousedown events don't either allow deferred calls to be run!
  6325. if (JSEvents.isInternetExplorer() && eventTypeString == 'mousedown') eventHandler.allowsDeferredCalls = false;
  6326. JSEvents.registerOrRemoveHandler(eventHandler);
  6327. },registerWheelEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6328. if (!JSEvents.wheelEvent) {
  6329. JSEvents.wheelEvent = _malloc( 104 );
  6330. }
  6331. target = JSEvents.findEventTarget(target);
  6332. // The DOM Level 3 events spec event 'wheel'
  6333. var wheelHandlerFunc = function(event) {
  6334. var e = event || window.event;
  6335. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6336. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["deltaX"];
  6337. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=e["deltaY"];
  6338. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=e["deltaZ"];
  6339. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=e["deltaMode"];
  6340. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6341. if (shouldCancel) {
  6342. e.preventDefault();
  6343. }
  6344. };
  6345. // The 'mousewheel' event as implemented in Safari 6.0.5
  6346. var mouseWheelHandlerFunc = function(event) {
  6347. var e = event || window.event;
  6348. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6349. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["wheelDeltaX"] || 0;
  6350. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=-(e["wheelDeltaY"] ? e["wheelDeltaY"] : e["wheelDelta"]) /* 1. Invert to unify direction with the DOM Level 3 wheel event. 2. MSIE does not provide wheelDeltaY, so wheelDelta is used as a fallback. */;
  6351. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=0 /* Not available */;
  6352. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=0 /* DOM_DELTA_PIXEL */;
  6353. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6354. if (shouldCancel) {
  6355. e.preventDefault();
  6356. }
  6357. };
  6358. var eventHandler = {
  6359. target: target,
  6360. allowsDeferredCalls: true,
  6361. eventTypeString: eventTypeString,
  6362. callbackfunc: callbackfunc,
  6363. handlerFunc: (eventTypeString == 'wheel') ? wheelHandlerFunc : mouseWheelHandlerFunc,
  6364. useCapture: useCapture
  6365. };
  6366. JSEvents.registerOrRemoveHandler(eventHandler);
  6367. },pageScrollPos:function () {
  6368. if (window.pageXOffset > 0 || window.pageYOffset > 0) {
  6369. return [window.pageXOffset, window.pageYOffset];
  6370. }
  6371. if (typeof document.documentElement.scrollLeft !== 'undefined' || typeof document.documentElement.scrollTop !== 'undefined') {
  6372. return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
  6373. }
  6374. return [document.body.scrollLeft|0, document.body.scrollTop|0];
  6375. },registerUiEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6376. if (!JSEvents.uiEvent) {
  6377. JSEvents.uiEvent = _malloc( 36 );
  6378. }
  6379. if (eventTypeString == "scroll" && !target) {
  6380. target = document; // By default read scroll events on document rather than window.
  6381. } else {
  6382. target = JSEvents.findEventTarget(target);
  6383. }
  6384. var handlerFunc = function(event) {
  6385. var e = event || window.event;
  6386. if (e.target != target) {
  6387. // Never take ui events such as scroll via a 'bubbled' route, but always from the direct element that
  6388. // was targeted. Otherwise e.g. if app logs a message in response to a page scroll, the Emscripten log
  6389. // message box could cause to scroll, generating a new (bubbled) scroll message, causing a new log print,
  6390. // causing a new scroll, etc..
  6391. return;
  6392. }
  6393. var scrollPos = JSEvents.pageScrollPos();
  6394. HEAP32[((JSEvents.uiEvent)>>2)]=e.detail;
  6395. HEAP32[(((JSEvents.uiEvent)+(4))>>2)]=document.body.clientWidth;
  6396. HEAP32[(((JSEvents.uiEvent)+(8))>>2)]=document.body.clientHeight;
  6397. HEAP32[(((JSEvents.uiEvent)+(12))>>2)]=window.innerWidth;
  6398. HEAP32[(((JSEvents.uiEvent)+(16))>>2)]=window.innerHeight;
  6399. HEAP32[(((JSEvents.uiEvent)+(20))>>2)]=window.outerWidth;
  6400. HEAP32[(((JSEvents.uiEvent)+(24))>>2)]=window.outerHeight;
  6401. HEAP32[(((JSEvents.uiEvent)+(28))>>2)]=scrollPos[0];
  6402. HEAP32[(((JSEvents.uiEvent)+(32))>>2)]=scrollPos[1];
  6403. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.uiEvent, userData);
  6404. if (shouldCancel) {
  6405. e.preventDefault();
  6406. }
  6407. };
  6408. var eventHandler = {
  6409. target: target,
  6410. allowsDeferredCalls: false, // Neither scroll or resize events allow running requests inside them.
  6411. eventTypeString: eventTypeString,
  6412. callbackfunc: callbackfunc,
  6413. handlerFunc: handlerFunc,
  6414. useCapture: useCapture
  6415. };
  6416. JSEvents.registerOrRemoveHandler(eventHandler);
  6417. },getNodeNameForTarget:function (target) {
  6418. if (!target) return '';
  6419. if (target == window) return '#window';
  6420. if (target == window.screen) return '#screen';
  6421. return (target && target.nodeName) ? target.nodeName : '';
  6422. },registerFocusEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6423. if (!JSEvents.focusEvent) {
  6424. JSEvents.focusEvent = _malloc( 256 );
  6425. }
  6426. var handlerFunc = function(event) {
  6427. var e = event || window.event;
  6428. var nodeName = JSEvents.getNodeNameForTarget(e.target);
  6429. var id = e.target.id ? e.target.id : '';
  6430. stringToUTF8(nodeName, JSEvents.focusEvent + 0, 128);
  6431. stringToUTF8(id, JSEvents.focusEvent + 128, 128);
  6432. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.focusEvent, userData);
  6433. if (shouldCancel) {
  6434. e.preventDefault();
  6435. }
  6436. };
  6437. var eventHandler = {
  6438. target: JSEvents.findEventTarget(target),
  6439. allowsDeferredCalls: false,
  6440. eventTypeString: eventTypeString,
  6441. callbackfunc: callbackfunc,
  6442. handlerFunc: handlerFunc,
  6443. useCapture: useCapture
  6444. };
  6445. JSEvents.registerOrRemoveHandler(eventHandler);
  6446. },tick:function () {
  6447. if (window['performance'] && window['performance']['now']) return window['performance']['now']();
  6448. else return Date.now();
  6449. },registerDeviceOrientationEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6450. if (!JSEvents.deviceOrientationEvent) {
  6451. JSEvents.deviceOrientationEvent = _malloc( 40 );
  6452. }
  6453. var handlerFunc = function(event) {
  6454. var e = event || window.event;
  6455. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6456. HEAPF64[(((JSEvents.deviceOrientationEvent)+(8))>>3)]=e.alpha;
  6457. HEAPF64[(((JSEvents.deviceOrientationEvent)+(16))>>3)]=e.beta;
  6458. HEAPF64[(((JSEvents.deviceOrientationEvent)+(24))>>3)]=e.gamma;
  6459. HEAP32[(((JSEvents.deviceOrientationEvent)+(32))>>2)]=e.absolute;
  6460. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceOrientationEvent, userData);
  6461. if (shouldCancel) {
  6462. e.preventDefault();
  6463. }
  6464. };
  6465. var eventHandler = {
  6466. target: JSEvents.findEventTarget(target),
  6467. allowsDeferredCalls: false,
  6468. eventTypeString: eventTypeString,
  6469. callbackfunc: callbackfunc,
  6470. handlerFunc: handlerFunc,
  6471. useCapture: useCapture
  6472. };
  6473. JSEvents.registerOrRemoveHandler(eventHandler);
  6474. },registerDeviceMotionEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6475. if (!JSEvents.deviceMotionEvent) {
  6476. JSEvents.deviceMotionEvent = _malloc( 80 );
  6477. }
  6478. var handlerFunc = function(event) {
  6479. var e = event || window.event;
  6480. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6481. HEAPF64[(((JSEvents.deviceMotionEvent)+(8))>>3)]=e.acceleration.x;
  6482. HEAPF64[(((JSEvents.deviceMotionEvent)+(16))>>3)]=e.acceleration.y;
  6483. HEAPF64[(((JSEvents.deviceMotionEvent)+(24))>>3)]=e.acceleration.z;
  6484. HEAPF64[(((JSEvents.deviceMotionEvent)+(32))>>3)]=e.accelerationIncludingGravity.x;
  6485. HEAPF64[(((JSEvents.deviceMotionEvent)+(40))>>3)]=e.accelerationIncludingGravity.y;
  6486. HEAPF64[(((JSEvents.deviceMotionEvent)+(48))>>3)]=e.accelerationIncludingGravity.z;
  6487. HEAPF64[(((JSEvents.deviceMotionEvent)+(56))>>3)]=e.rotationRate.alpha;
  6488. HEAPF64[(((JSEvents.deviceMotionEvent)+(64))>>3)]=e.rotationRate.beta;
  6489. HEAPF64[(((JSEvents.deviceMotionEvent)+(72))>>3)]=e.rotationRate.gamma;
  6490. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceMotionEvent, userData);
  6491. if (shouldCancel) {
  6492. e.preventDefault();
  6493. }
  6494. };
  6495. var eventHandler = {
  6496. target: JSEvents.findEventTarget(target),
  6497. allowsDeferredCalls: false,
  6498. eventTypeString: eventTypeString,
  6499. callbackfunc: callbackfunc,
  6500. handlerFunc: handlerFunc,
  6501. useCapture: useCapture
  6502. };
  6503. JSEvents.registerOrRemoveHandler(eventHandler);
  6504. },screenOrientation:function () {
  6505. if (!window.screen) return undefined;
  6506. return window.screen.orientation || window.screen.mozOrientation || window.screen.webkitOrientation || window.screen.msOrientation;
  6507. },fillOrientationChangeEventData:function (eventStruct, e) {
  6508. var orientations = ["portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"];
  6509. var orientations2 = ["portrait", "portrait", "landscape", "landscape"];
  6510. var orientationString = JSEvents.screenOrientation();
  6511. var orientation = orientations.indexOf(orientationString);
  6512. if (orientation == -1) {
  6513. orientation = orientations2.indexOf(orientationString);
  6514. }
  6515. HEAP32[((eventStruct)>>2)]=1 << orientation;
  6516. HEAP32[(((eventStruct)+(4))>>2)]=window.orientation;
  6517. },registerOrientationChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6518. if (!JSEvents.orientationChangeEvent) {
  6519. JSEvents.orientationChangeEvent = _malloc( 8 );
  6520. }
  6521. if (!target) {
  6522. target = window.screen; // Orientation events need to be captured from 'window.screen' instead of 'window'
  6523. } else {
  6524. target = JSEvents.findEventTarget(target);
  6525. }
  6526. var handlerFunc = function(event) {
  6527. var e = event || window.event;
  6528. JSEvents.fillOrientationChangeEventData(JSEvents.orientationChangeEvent, e);
  6529. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.orientationChangeEvent, userData);
  6530. if (shouldCancel) {
  6531. e.preventDefault();
  6532. }
  6533. };
  6534. if (eventTypeString == "orientationchange" && window.screen.mozOrientation !== undefined) {
  6535. eventTypeString = "mozorientationchange";
  6536. }
  6537. var eventHandler = {
  6538. target: target,
  6539. allowsDeferredCalls: false,
  6540. eventTypeString: eventTypeString,
  6541. callbackfunc: callbackfunc,
  6542. handlerFunc: handlerFunc,
  6543. useCapture: useCapture
  6544. };
  6545. JSEvents.registerOrRemoveHandler(eventHandler);
  6546. },fullscreenEnabled:function () {
  6547. return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
  6548. },fillFullscreenChangeEventData:function (eventStruct, e) {
  6549. var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
  6550. var isFullscreen = !!fullscreenElement;
  6551. HEAP32[((eventStruct)>>2)]=isFullscreen;
  6552. HEAP32[(((eventStruct)+(4))>>2)]=JSEvents.fullscreenEnabled();
  6553. // If transitioning to fullscreen, report info about the element that is now fullscreen.
  6554. // If transitioning to windowed mode, report info about the element that just was fullscreen.
  6555. var reportedElement = isFullscreen ? fullscreenElement : JSEvents.previousFullscreenElement;
  6556. var nodeName = JSEvents.getNodeNameForTarget(reportedElement);
  6557. var id = (reportedElement && reportedElement.id) ? reportedElement.id : '';
  6558. stringToUTF8(nodeName, eventStruct + 8, 128);
  6559. stringToUTF8(id, eventStruct + 136, 128);
  6560. HEAP32[(((eventStruct)+(264))>>2)]=reportedElement ? reportedElement.clientWidth : 0;
  6561. HEAP32[(((eventStruct)+(268))>>2)]=reportedElement ? reportedElement.clientHeight : 0;
  6562. HEAP32[(((eventStruct)+(272))>>2)]=screen.width;
  6563. HEAP32[(((eventStruct)+(276))>>2)]=screen.height;
  6564. if (isFullscreen) {
  6565. JSEvents.previousFullscreenElement = fullscreenElement;
  6566. }
  6567. },registerFullscreenChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6568. if (!JSEvents.fullscreenChangeEvent) {
  6569. JSEvents.fullscreenChangeEvent = _malloc( 280 );
  6570. }
  6571. if (!target) {
  6572. target = document; // Fullscreen change events need to be captured from 'document' by default instead of 'window'
  6573. } else {
  6574. target = JSEvents.findEventTarget(target);
  6575. }
  6576. var handlerFunc = function(event) {
  6577. var e = event || window.event;
  6578. JSEvents.fillFullscreenChangeEventData(JSEvents.fullscreenChangeEvent, e);
  6579. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.fullscreenChangeEvent, userData);
  6580. if (shouldCancel) {
  6581. e.preventDefault();
  6582. }
  6583. };
  6584. var eventHandler = {
  6585. target: target,
  6586. allowsDeferredCalls: false,
  6587. eventTypeString: eventTypeString,
  6588. callbackfunc: callbackfunc,
  6589. handlerFunc: handlerFunc,
  6590. useCapture: useCapture
  6591. };
  6592. JSEvents.registerOrRemoveHandler(eventHandler);
  6593. },resizeCanvasForFullscreen:function (target, strategy) {
  6594. var restoreOldStyle = __registerRestoreOldStyle(target);
  6595. var cssWidth = strategy.softFullscreen ? window.innerWidth : screen.width;
  6596. var cssHeight = strategy.softFullscreen ? window.innerHeight : screen.height;
  6597. var rect = target.getBoundingClientRect();
  6598. var windowedCssWidth = rect.right - rect.left;
  6599. var windowedCssHeight = rect.bottom - rect.top;
  6600. var windowedRttWidth = target.width;
  6601. var windowedRttHeight = target.height;
  6602. if (strategy.scaleMode == 3) {
  6603. __setLetterbox(target, (cssHeight - windowedCssHeight) / 2, (cssWidth - windowedCssWidth) / 2);
  6604. cssWidth = windowedCssWidth;
  6605. cssHeight = windowedCssHeight;
  6606. } else if (strategy.scaleMode == 2) {
  6607. if (cssWidth*windowedRttHeight < windowedRttWidth*cssHeight) {
  6608. var desiredCssHeight = windowedRttHeight * cssWidth / windowedRttWidth;
  6609. __setLetterbox(target, (cssHeight - desiredCssHeight) / 2, 0);
  6610. cssHeight = desiredCssHeight;
  6611. } else {
  6612. var desiredCssWidth = windowedRttWidth * cssHeight / windowedRttHeight;
  6613. __setLetterbox(target, 0, (cssWidth - desiredCssWidth) / 2);
  6614. cssWidth = desiredCssWidth;
  6615. }
  6616. }
  6617. // If we are adding padding, must choose a background color or otherwise Chrome will give the
  6618. // padding a default white color. Do it only if user has not customized their own background color.
  6619. if (!target.style.backgroundColor) target.style.backgroundColor = 'black';
  6620. // IE11 does the same, but requires the color to be set in the document body.
  6621. if (!document.body.style.backgroundColor) document.body.style.backgroundColor = 'black'; // IE11
  6622. // Firefox always shows black letterboxes independent of style color.
  6623. target.style.width = cssWidth + 'px';
  6624. target.style.height = cssHeight + 'px';
  6625. if (strategy.filteringMode == 1) {
  6626. target.style.imageRendering = 'optimizeSpeed';
  6627. target.style.imageRendering = '-moz-crisp-edges';
  6628. target.style.imageRendering = '-o-crisp-edges';
  6629. target.style.imageRendering = '-webkit-optimize-contrast';
  6630. target.style.imageRendering = 'optimize-contrast';
  6631. target.style.imageRendering = 'crisp-edges';
  6632. target.style.imageRendering = 'pixelated';
  6633. }
  6634. var dpiScale = (strategy.canvasResolutionScaleMode == 2) ? window.devicePixelRatio : 1;
  6635. if (strategy.canvasResolutionScaleMode != 0) {
  6636. target.width = cssWidth * dpiScale;
  6637. target.height = cssHeight * dpiScale;
  6638. if (target.GLctxObject) target.GLctxObject.GLctx.viewport(0, 0, target.width, target.height);
  6639. }
  6640. return restoreOldStyle;
  6641. },requestFullscreen:function (target, strategy) {
  6642. // EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT + EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE is a mode where no extra logic is performed to the DOM elements.
  6643. if (strategy.scaleMode != 0 || strategy.canvasResolutionScaleMode != 0) {
  6644. JSEvents.resizeCanvasForFullscreen(target, strategy);
  6645. }
  6646. if (target.requestFullscreen) {
  6647. target.requestFullscreen();
  6648. } else if (target.msRequestFullscreen) {
  6649. target.msRequestFullscreen();
  6650. } else if (target.mozRequestFullScreen) {
  6651. target.mozRequestFullScreen();
  6652. } else if (target.mozRequestFullscreen) {
  6653. target.mozRequestFullscreen();
  6654. } else if (target.webkitRequestFullscreen) {
  6655. target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  6656. } else {
  6657. if (typeof JSEvents.fullscreenEnabled() === 'undefined') {
  6658. return -1;
  6659. } else {
  6660. return -3;
  6661. }
  6662. }
  6663. if (strategy.canvasResizedCallback) {
  6664. Module['dynCall_iiii'](strategy.canvasResizedCallback, 37, 0, strategy.canvasResizedCallbackUserData);
  6665. }
  6666. return 0;
  6667. },fillPointerlockChangeEventData:function (eventStruct, e) {
  6668. var pointerLockElement = document.pointerLockElement || document.mozPointerLockElement || document.webkitPointerLockElement || document.msPointerLockElement;
  6669. var isPointerlocked = !!pointerLockElement;
  6670. HEAP32[((eventStruct)>>2)]=isPointerlocked;
  6671. var nodeName = JSEvents.getNodeNameForTarget(pointerLockElement);
  6672. var id = (pointerLockElement && pointerLockElement.id) ? pointerLockElement.id : '';
  6673. stringToUTF8(nodeName, eventStruct + 4, 128);
  6674. stringToUTF8(id, eventStruct + 132, 128);
  6675. },registerPointerlockChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6676. if (!JSEvents.pointerlockChangeEvent) {
  6677. JSEvents.pointerlockChangeEvent = _malloc( 260 );
  6678. }
  6679. if (!target) {
  6680. target = document; // Pointer lock change events need to be captured from 'document' by default instead of 'window'
  6681. } else {
  6682. target = JSEvents.findEventTarget(target);
  6683. }
  6684. var handlerFunc = function(event) {
  6685. var e = event || window.event;
  6686. JSEvents.fillPointerlockChangeEventData(JSEvents.pointerlockChangeEvent, e);
  6687. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.pointerlockChangeEvent, userData);
  6688. if (shouldCancel) {
  6689. e.preventDefault();
  6690. }
  6691. };
  6692. var eventHandler = {
  6693. target: target,
  6694. allowsDeferredCalls: false,
  6695. eventTypeString: eventTypeString,
  6696. callbackfunc: callbackfunc,
  6697. handlerFunc: handlerFunc,
  6698. useCapture: useCapture
  6699. };
  6700. JSEvents.registerOrRemoveHandler(eventHandler);
  6701. },registerPointerlockErrorEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6702. if (!target) {
  6703. target = document; // Pointer lock events need to be captured from 'document' by default instead of 'window'
  6704. } else {
  6705. target = JSEvents.findEventTarget(target);
  6706. }
  6707. var handlerFunc = function(event) {
  6708. var e = event || window.event;
  6709. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6710. if (shouldCancel) {
  6711. e.preventDefault();
  6712. }
  6713. };
  6714. var eventHandler = {
  6715. target: target,
  6716. allowsDeferredCalls: false,
  6717. eventTypeString: eventTypeString,
  6718. callbackfunc: callbackfunc,
  6719. handlerFunc: handlerFunc,
  6720. useCapture: useCapture
  6721. };
  6722. JSEvents.registerOrRemoveHandler(eventHandler);
  6723. },requestPointerLock:function (target) {
  6724. if (target.requestPointerLock) {
  6725. target.requestPointerLock();
  6726. } else if (target.mozRequestPointerLock) {
  6727. target.mozRequestPointerLock();
  6728. } else if (target.webkitRequestPointerLock) {
  6729. target.webkitRequestPointerLock();
  6730. } else if (target.msRequestPointerLock) {
  6731. target.msRequestPointerLock();
  6732. } else {
  6733. // document.body is known to accept pointer lock, so use that to differentiate if the user passed a bad element,
  6734. // or if the whole browser just doesn't support the feature.
  6735. if (document.body.requestPointerLock || document.body.mozRequestPointerLock || document.body.webkitRequestPointerLock || document.body.msRequestPointerLock) {
  6736. return -3;
  6737. } else {
  6738. return -1;
  6739. }
  6740. }
  6741. return 0;
  6742. },fillVisibilityChangeEventData:function (eventStruct, e) {
  6743. var visibilityStates = [ "hidden", "visible", "prerender", "unloaded" ];
  6744. var visibilityState = visibilityStates.indexOf(document.visibilityState);
  6745. HEAP32[((eventStruct)>>2)]=document.hidden;
  6746. HEAP32[(((eventStruct)+(4))>>2)]=visibilityState;
  6747. },registerVisibilityChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6748. if (!JSEvents.visibilityChangeEvent) {
  6749. JSEvents.visibilityChangeEvent = _malloc( 8 );
  6750. }
  6751. if (!target) {
  6752. target = document; // Visibility change events need to be captured from 'document' by default instead of 'window'
  6753. } else {
  6754. target = JSEvents.findEventTarget(target);
  6755. }
  6756. var handlerFunc = function(event) {
  6757. var e = event || window.event;
  6758. JSEvents.fillVisibilityChangeEventData(JSEvents.visibilityChangeEvent, e);
  6759. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.visibilityChangeEvent, userData);
  6760. if (shouldCancel) {
  6761. e.preventDefault();
  6762. }
  6763. };
  6764. var eventHandler = {
  6765. target: target,
  6766. allowsDeferredCalls: false,
  6767. eventTypeString: eventTypeString,
  6768. callbackfunc: callbackfunc,
  6769. handlerFunc: handlerFunc,
  6770. useCapture: useCapture
  6771. };
  6772. JSEvents.registerOrRemoveHandler(eventHandler);
  6773. },registerTouchEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6774. if (!JSEvents.touchEvent) {
  6775. JSEvents.touchEvent = _malloc( 1684 );
  6776. }
  6777. target = JSEvents.findEventTarget(target);
  6778. var handlerFunc = function(event) {
  6779. var e = event || window.event;
  6780. var touches = {};
  6781. for(var i = 0; i < e.touches.length; ++i) {
  6782. var touch = e.touches[i];
  6783. touches[touch.identifier] = touch;
  6784. }
  6785. for(var i = 0; i < e.changedTouches.length; ++i) {
  6786. var touch = e.changedTouches[i];
  6787. touches[touch.identifier] = touch;
  6788. touch.changed = true;
  6789. }
  6790. for(var i = 0; i < e.targetTouches.length; ++i) {
  6791. var touch = e.targetTouches[i];
  6792. touches[touch.identifier].onTarget = true;
  6793. }
  6794. var ptr = JSEvents.touchEvent;
  6795. HEAP32[(((ptr)+(4))>>2)]=e.ctrlKey;
  6796. HEAP32[(((ptr)+(8))>>2)]=e.shiftKey;
  6797. HEAP32[(((ptr)+(12))>>2)]=e.altKey;
  6798. HEAP32[(((ptr)+(16))>>2)]=e.metaKey;
  6799. ptr += 20; // Advance to the start of the touch array.
  6800. var canvasRect = Module['canvas'] ? Module['canvas'].getBoundingClientRect() : undefined;
  6801. var targetRect = JSEvents.getBoundingClientRectOrZeros(target);
  6802. var numTouches = 0;
  6803. for(var i in touches) {
  6804. var t = touches[i];
  6805. HEAP32[((ptr)>>2)]=t.identifier;
  6806. HEAP32[(((ptr)+(4))>>2)]=t.screenX;
  6807. HEAP32[(((ptr)+(8))>>2)]=t.screenY;
  6808. HEAP32[(((ptr)+(12))>>2)]=t.clientX;
  6809. HEAP32[(((ptr)+(16))>>2)]=t.clientY;
  6810. HEAP32[(((ptr)+(20))>>2)]=t.pageX;
  6811. HEAP32[(((ptr)+(24))>>2)]=t.pageY;
  6812. HEAP32[(((ptr)+(28))>>2)]=t.changed;
  6813. HEAP32[(((ptr)+(32))>>2)]=t.onTarget;
  6814. if (canvasRect) {
  6815. HEAP32[(((ptr)+(44))>>2)]=t.clientX - canvasRect.left;
  6816. HEAP32[(((ptr)+(48))>>2)]=t.clientY - canvasRect.top;
  6817. } else {
  6818. HEAP32[(((ptr)+(44))>>2)]=0;
  6819. HEAP32[(((ptr)+(48))>>2)]=0;
  6820. }
  6821. HEAP32[(((ptr)+(36))>>2)]=t.clientX - targetRect.left;
  6822. HEAP32[(((ptr)+(40))>>2)]=t.clientY - targetRect.top;
  6823. ptr += 52;
  6824. if (++numTouches >= 32) {
  6825. break;
  6826. }
  6827. }
  6828. HEAP32[((JSEvents.touchEvent)>>2)]=numTouches;
  6829. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.touchEvent, userData);
  6830. if (shouldCancel) {
  6831. e.preventDefault();
  6832. }
  6833. };
  6834. var eventHandler = {
  6835. target: target,
  6836. allowsDeferredCalls: false, // XXX Currently disabled, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=966493
  6837. // Once the above bug is resolved, enable the following condition if possible:
  6838. // allowsDeferredCalls: eventTypeString == 'touchstart',
  6839. eventTypeString: eventTypeString,
  6840. callbackfunc: callbackfunc,
  6841. handlerFunc: handlerFunc,
  6842. useCapture: useCapture
  6843. };
  6844. JSEvents.registerOrRemoveHandler(eventHandler);
  6845. },fillGamepadEventData:function (eventStruct, e) {
  6846. HEAPF64[((eventStruct)>>3)]=e.timestamp;
  6847. for(var i = 0; i < e.axes.length; ++i) {
  6848. HEAPF64[(((eventStruct+i*8)+(16))>>3)]=e.axes[i];
  6849. }
  6850. for(var i = 0; i < e.buttons.length; ++i) {
  6851. if (typeof(e.buttons[i]) === 'object') {
  6852. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i].value;
  6853. } else {
  6854. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i];
  6855. }
  6856. }
  6857. for(var i = 0; i < e.buttons.length; ++i) {
  6858. if (typeof(e.buttons[i]) === 'object') {
  6859. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i].pressed;
  6860. } else {
  6861. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i] == 1.0;
  6862. }
  6863. }
  6864. HEAP32[(((eventStruct)+(1296))>>2)]=e.connected;
  6865. HEAP32[(((eventStruct)+(1300))>>2)]=e.index;
  6866. HEAP32[(((eventStruct)+(8))>>2)]=e.axes.length;
  6867. HEAP32[(((eventStruct)+(12))>>2)]=e.buttons.length;
  6868. stringToUTF8(e.id, eventStruct + 1304, 64);
  6869. stringToUTF8(e.mapping, eventStruct + 1368, 64);
  6870. },registerGamepadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6871. if (!JSEvents.gamepadEvent) {
  6872. JSEvents.gamepadEvent = _malloc( 1432 );
  6873. }
  6874. var handlerFunc = function(event) {
  6875. var e = event || window.event;
  6876. JSEvents.fillGamepadEventData(JSEvents.gamepadEvent, e.gamepad);
  6877. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.gamepadEvent, userData);
  6878. if (shouldCancel) {
  6879. e.preventDefault();
  6880. }
  6881. };
  6882. var eventHandler = {
  6883. target: JSEvents.findEventTarget(target),
  6884. allowsDeferredCalls: true,
  6885. eventTypeString: eventTypeString,
  6886. callbackfunc: callbackfunc,
  6887. handlerFunc: handlerFunc,
  6888. useCapture: useCapture
  6889. };
  6890. JSEvents.registerOrRemoveHandler(eventHandler);
  6891. },registerBeforeUnloadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6892. var handlerFunc = function(event) {
  6893. var e = event || window.event;
  6894. var confirmationMessage = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6895. if (confirmationMessage) {
  6896. confirmationMessage = Pointer_stringify(confirmationMessage);
  6897. }
  6898. if (confirmationMessage) {
  6899. e.preventDefault();
  6900. e.returnValue = confirmationMessage;
  6901. return confirmationMessage;
  6902. }
  6903. };
  6904. var eventHandler = {
  6905. target: JSEvents.findEventTarget(target),
  6906. allowsDeferredCalls: false,
  6907. eventTypeString: eventTypeString,
  6908. callbackfunc: callbackfunc,
  6909. handlerFunc: handlerFunc,
  6910. useCapture: useCapture
  6911. };
  6912. JSEvents.registerOrRemoveHandler(eventHandler);
  6913. },battery:function () { return navigator.battery || navigator.mozBattery || navigator.webkitBattery; },fillBatteryEventData:function (eventStruct, e) {
  6914. HEAPF64[((eventStruct)>>3)]=e.chargingTime;
  6915. HEAPF64[(((eventStruct)+(8))>>3)]=e.dischargingTime;
  6916. HEAPF64[(((eventStruct)+(16))>>3)]=e.level;
  6917. HEAP32[(((eventStruct)+(24))>>2)]=e.charging;
  6918. },registerBatteryEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6919. if (!JSEvents.batteryEvent) {
  6920. JSEvents.batteryEvent = _malloc( 32 );
  6921. }
  6922. var handlerFunc = function(event) {
  6923. var e = event || window.event;
  6924. JSEvents.fillBatteryEventData(JSEvents.batteryEvent, JSEvents.battery());
  6925. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.batteryEvent, userData);
  6926. if (shouldCancel) {
  6927. e.preventDefault();
  6928. }
  6929. };
  6930. var eventHandler = {
  6931. target: JSEvents.findEventTarget(target),
  6932. allowsDeferredCalls: false,
  6933. eventTypeString: eventTypeString,
  6934. callbackfunc: callbackfunc,
  6935. handlerFunc: handlerFunc,
  6936. useCapture: useCapture
  6937. };
  6938. JSEvents.registerOrRemoveHandler(eventHandler);
  6939. },registerWebGlEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6940. if (!target) {
  6941. target = Module['canvas'];
  6942. }
  6943. var handlerFunc = function(event) {
  6944. var e = event || window.event;
  6945. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6946. if (shouldCancel) {
  6947. e.preventDefault();
  6948. }
  6949. };
  6950. var eventHandler = {
  6951. target: JSEvents.findEventTarget(target),
  6952. allowsDeferredCalls: false,
  6953. eventTypeString: eventTypeString,
  6954. callbackfunc: callbackfunc,
  6955. handlerFunc: handlerFunc,
  6956. useCapture: useCapture
  6957. };
  6958. JSEvents.registerOrRemoveHandler(eventHandler);
  6959. }};function __emscripten_sample_gamepad_data() {
  6960. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  6961. if (!JSEvents.numGamepadsConnected) return;
  6962. // Produce a new Gamepad API sample if we are ticking a new game frame, or if not using emscripten_set_main_loop() at all to drive animation.
  6963. if (Browser.mainLoop.currentFrameNumber !== JSEvents.lastGamepadStateFrame || !Browser.mainLoop.currentFrameNumber) {
  6964. JSEvents.lastGamepadState = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ? navigator.webkitGetGamepads : null);
  6965. JSEvents.lastGamepadStateFrame = Browser.mainLoop.currentFrameNumber;
  6966. }
  6967. }function _emscripten_get_gamepad_status(index, gamepadState) {
  6968. __emscripten_sample_gamepad_data();
  6969. if (!JSEvents.lastGamepadState) return -1;
  6970. // INVALID_PARAM is returned on a Gamepad index that never was there.
  6971. if (index < 0 || index >= JSEvents.lastGamepadState.length) return -5;
  6972. // NO_DATA is returned on a Gamepad index that was removed.
  6973. // For previously disconnected gamepads there should be an empty slot (null/undefined/false) at the index.
  6974. // This is because gamepads must keep their original position in the array.
  6975. // For example, removing the first of two gamepads produces [null/undefined/false, gamepad].
  6976. if (!JSEvents.lastGamepadState[index]) return -7;
  6977. JSEvents.fillGamepadEventData(gamepadState, JSEvents.lastGamepadState[index]);
  6978. return 0;
  6979. }
  6980. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  6981. function _emscripten_glTexParameterfv(target, pname, params) {
  6982. var param = HEAPF32[((params)>>2)];
  6983. GLctx.texParameterf(target, pname, param);
  6984. }
  6985. function _emscripten_glLinkProgram(program) {
  6986. GLctx.linkProgram(GL.programs[program]);
  6987. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  6988. GL.populateUniformTable(program);
  6989. }
  6990. function _emscripten_glUniform3f(location, v0, v1, v2) {
  6991. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  6992. }
  6993. function _emscripten_glGetObjectParameterivARB() {
  6994. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  6995. }
  6996. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  6997. function _emscripten_glUniform3i(location, v0, v1, v2) {
  6998. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  6999. }
  7000. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7001. function _glCreateShader(shaderType) {
  7002. var id = GL.getNewId(GL.shaders);
  7003. GL.shaders[id] = GLctx.createShader(shaderType);
  7004. return id;
  7005. }
  7006. function _glUniform1i(location, v0) {
  7007. GLctx.uniform1i(GL.uniforms[location], v0);
  7008. }
  7009. function _emscripten_glBindAttribLocation(program, index, name) {
  7010. name = Pointer_stringify(name);
  7011. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7012. }
  7013. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7014. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7015. }
  7016. function _glDisable(x0) { GLctx['disable'](x0) }
  7017. function _emscripten_glEnableVertexAttribArray(index) {
  7018. GLctx.enableVertexAttribArray(index);
  7019. }
  7020. Module["_memset"] = _memset;
  7021. function _glfwMakeContextCurrent(winid) {}
  7022. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7023. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7024. return 0;
  7025. }
  7026. function ___lock() {}
  7027. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7028. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7029. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7030. if (!pointer) {
  7031. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7032. // if pointer == null, issue a GL error to notify user about it.
  7033. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7034. return;
  7035. }
  7036. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7037. }
  7038. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7039. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7040. function _emscripten_glNormalPointer() {
  7041. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7042. }
  7043. var _emscripten_GetProcAddress=undefined;
  7044. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7045. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7046. EGL.errorCode = code;
  7047. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7048. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7049. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7050. return 0;
  7051. }
  7052. // TODO: read attribList.
  7053. if ((!config || !config_size) && !numConfigs) {
  7054. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7055. return 0;
  7056. }
  7057. if (numConfigs) {
  7058. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7059. }
  7060. if (config && config_size > 0) {
  7061. HEAP32[((config)>>2)]=62002;
  7062. }
  7063. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7064. return 1;
  7065. }};function _eglGetProcAddress(name_) {
  7066. return _emscripten_GetProcAddress(name_);
  7067. }
  7068. function _glDeleteProgram(id) {
  7069. if (!id) return;
  7070. var program = GL.programs[id];
  7071. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7072. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7073. return;
  7074. }
  7075. GLctx.deleteProgram(program);
  7076. program.name = 0;
  7077. GL.programs[id] = null;
  7078. GL.programInfos[id] = null;
  7079. }
  7080. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7081. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7082. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7083. return -1;
  7084. }
  7085. return 0;
  7086. }
  7087. function _glAttachShader(program, shader) {
  7088. GLctx.attachShader(GL.programs[program],
  7089. GL.shaders[shader]);
  7090. }
  7091. function _glfwGetPrimaryMonitor() {
  7092. return 1;
  7093. }
  7094. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7095. if (!params) {
  7096. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7097. // if params == null, issue a GL error to notify user about it.
  7098. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7099. return;
  7100. }
  7101. var data = GLctx.getVertexAttrib(index, pname);
  7102. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7103. HEAP32[((params)>>2)]=data["name"];
  7104. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7105. switch (type) {
  7106. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7107. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7108. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7109. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7110. }
  7111. } else {
  7112. for (var i = 0; i < data.length; i++) {
  7113. switch (type) {
  7114. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7115. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7116. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7117. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7118. }
  7119. }
  7120. }
  7121. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7122. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7123. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7124. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7125. }
  7126. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7127. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7128. return 0;
  7129. }
  7130. function _emscripten_glDeleteShader(id) {
  7131. if (!id) return;
  7132. var shader = GL.shaders[id];
  7133. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7134. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7135. return;
  7136. }
  7137. GLctx.deleteShader(shader);
  7138. GL.shaders[id] = null;
  7139. }
  7140. 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.'; }
  7141. function _emscripten_glDeleteBuffers(n, buffers) {
  7142. for (var i = 0; i < n; i++) {
  7143. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7144. var buffer = GL.buffers[id];
  7145. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7146. // correspond to existing buffer objects."
  7147. if (!buffer) continue;
  7148. GLctx.deleteBuffer(buffer);
  7149. buffer.name = 0;
  7150. GL.buffers[id] = null;
  7151. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7152. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7153. }
  7154. }
  7155. function _emscripten_glTexParameteriv(target, pname, params) {
  7156. var param = HEAP32[((params)>>2)];
  7157. GLctx.texParameteri(target, pname, param);
  7158. }
  7159. function _glDrawElements(mode, count, type, indices) {
  7160. GLctx.drawElements(mode, count, type, indices);
  7161. }
  7162. function _glfwTerminate() {
  7163. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7164. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7165. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7166. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7167. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7168. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7169. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7170. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7171. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7172. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7173. Module["canvas"].width = Module["canvas"].height = 1;
  7174. GLFW.windows = null;
  7175. GLFW.active = null;
  7176. }
  7177. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7178. var view;
  7179. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7180. // avoid allocation when uploading few enough uniforms
  7181. view = GL.miniTempBufferViews[4*count-1];
  7182. for (var i = 0; i < 4*count; i += 4) {
  7183. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7184. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7185. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7186. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7187. }
  7188. } else {
  7189. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7190. }
  7191. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7192. }
  7193. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7194. try {
  7195. // open
  7196. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7197. var stream = FS.open(pathname, flags, mode);
  7198. return stream.fd;
  7199. } catch (e) {
  7200. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7201. return -e.errno;
  7202. }
  7203. }
  7204. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7205. try {
  7206. // close
  7207. var stream = SYSCALLS.getStreamFromFD();
  7208. FS.close(stream);
  7209. return 0;
  7210. } catch (e) {
  7211. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7212. return -e.errno;
  7213. }
  7214. }
  7215. function _llvm_stacksave() {
  7216. var self = _llvm_stacksave;
  7217. if (!self.LLVM_SAVEDSTACKS) {
  7218. self.LLVM_SAVEDSTACKS = [];
  7219. }
  7220. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7221. return self.LLVM_SAVEDSTACKS.length-1;
  7222. }
  7223. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7224. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7225. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7226. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7227. }
  7228. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7229. var view;
  7230. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7231. // avoid allocation when uploading few enough uniforms
  7232. view = GL.miniTempBufferViews[16*count-1];
  7233. for (var i = 0; i < 16*count; i += 16) {
  7234. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7235. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7236. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7237. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7238. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7239. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7240. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7241. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7242. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7243. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7244. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7245. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7246. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7247. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7248. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7249. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7250. }
  7251. } else {
  7252. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7253. }
  7254. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7255. }
  7256. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7257. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7258. }
  7259. function _emscripten_glEnableClientState() {
  7260. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7261. }
  7262. function _emscripten_glGetPointerv() {
  7263. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7264. }
  7265. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7266. try {
  7267. // llseek
  7268. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7269. var offset = offset_low;
  7270. assert(offset_high === 0);
  7271. FS.llseek(stream, offset, whence);
  7272. HEAP32[((result)>>2)]=stream.position;
  7273. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7274. return 0;
  7275. } catch (e) {
  7276. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7277. return -e.errno;
  7278. }
  7279. }
  7280. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7281. try {
  7282. // writev
  7283. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7284. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7285. } catch (e) {
  7286. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7287. return -e.errno;
  7288. }
  7289. }
  7290. function _emscripten_glUniform1i(location, v0) {
  7291. GLctx.uniform1i(GL.uniforms[location], v0);
  7292. }
  7293. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7294. try {
  7295. // readv
  7296. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7297. return SYSCALLS.doReadv(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 _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7304. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7305. Module["_i64Subtract"] = _i64Subtract;
  7306. Module["_i64Add"] = _i64Add;
  7307. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7308. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7309. return 0;
  7310. }
  7311. function _glUseProgram(program) {
  7312. GLctx.useProgram(program ? GL.programs[program] : null);
  7313. }
  7314. function _emscripten_glDisableVertexAttribArray(index) {
  7315. GLctx.disableVertexAttribArray(index);
  7316. }
  7317. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7318. function _emscripten_glFinish() { GLctx['finish']() }
  7319. function _glDrawArrays(mode, first, count) {
  7320. GLctx.drawArrays(mode, first, count);
  7321. }
  7322. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7323. function _emscripten_get_num_gamepads() {
  7324. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7325. if (!JSEvents.numGamepadsConnected) return 0;
  7326. __emscripten_sample_gamepad_data();
  7327. if (!JSEvents.lastGamepadState) return -1;
  7328. return JSEvents.lastGamepadState.length;
  7329. }
  7330. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  7331. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  7332. if (log === null) log = '(unknown error)';
  7333. if (maxLength > 0 && infoLog) {
  7334. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7335. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7336. } else {
  7337. if (length) HEAP32[((length)>>2)]=0;
  7338. }
  7339. }
  7340. function _emscripten_glUniform4iv(location, count, value) {
  7341. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7342. }
  7343. function _glClear(x0) { GLctx['clear'](x0) }
  7344. 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.'; }
  7345. function _emscripten_glUniform3fv(location, count, value) {
  7346. var view;
  7347. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7348. // avoid allocation when uploading few enough uniforms
  7349. view = GL.miniTempBufferViews[3*count-1];
  7350. for (var i = 0; i < 3*count; i += 3) {
  7351. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7352. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7353. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7354. }
  7355. } else {
  7356. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7357. }
  7358. GLctx.uniform3fv(GL.uniforms[location], view);
  7359. }
  7360. function _emscripten_glIsTexture(texture) {
  7361. var texture = GL.textures[texture];
  7362. if (!texture) return 0;
  7363. return GLctx.isTexture(texture);
  7364. }
  7365. function _glEnableVertexAttribArray(index) {
  7366. GLctx.enableVertexAttribArray(index);
  7367. }
  7368. function _emscripten_glAttachShader(program, shader) {
  7369. GLctx.attachShader(GL.programs[program],
  7370. GL.shaders[shader]);
  7371. }
  7372. function _glUniform4f(location, v0, v1, v2, v3) {
  7373. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7374. }
  7375. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7376. if (!target) target = '#canvas';
  7377. target = JSEvents.findEventTarget(target);
  7378. if (!target) return -4;
  7379. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7380. return -1;
  7381. }
  7382. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7383. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7384. if (!canPerformRequests) {
  7385. if (deferUntilInEventHandler) {
  7386. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7387. return 1;
  7388. } else {
  7389. return -2;
  7390. }
  7391. }
  7392. return JSEvents.requestPointerLock(target);
  7393. }
  7394. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  7395. function _glfwCreateWindow(width, height, title, monitor, share) {
  7396. return GLFW.createWindow(width, height, title, monitor, share);
  7397. }
  7398. function _glfwDefaultWindowHints() {
  7399. GLFW.hints = GLFW.defaultHints;
  7400. }
  7401. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7402. function _emscripten_glDetachShader(program, shader) {
  7403. GLctx.detachShader(GL.programs[program],
  7404. GL.shaders[shader]);
  7405. }
  7406. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7407. for (var i = 0; i < n; i++) {
  7408. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7409. GLctx['deleteVertexArray'](GL.vaos[id]);
  7410. GL.vaos[id] = null;
  7411. }
  7412. }
  7413. function _glfwInit() {
  7414. if (GLFW.windows) return 1; // GL_TRUE
  7415. GLFW.initialTime = GLFW.getTime();
  7416. GLFW.hints = GLFW.defaultHints;
  7417. GLFW.windows = new Array()
  7418. GLFW.active = null;
  7419. window.addEventListener("keydown", GLFW.onKeydown, true);
  7420. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7421. window.addEventListener("keyup", GLFW.onKeyup, true);
  7422. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7423. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7424. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7425. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7426. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7427. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7428. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7429. Browser.resizeListeners.push(function(width, height) {
  7430. GLFW.onCanvasResize(width, height);
  7431. });
  7432. return 1; // GL_TRUE
  7433. }
  7434. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7435. if (!params) {
  7436. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7437. // if p == null, issue a GL error to notify user about it.
  7438. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7439. return;
  7440. }
  7441. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7442. }
  7443. function _glfwSwapBuffers(winid) {
  7444. GLFW.swapBuffers(winid);
  7445. }
  7446. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7447. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7448. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7449. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7450. }
  7451. function _glDisableVertexAttribArray(index) {
  7452. GLctx.disableVertexAttribArray(index);
  7453. }
  7454. function _emscripten_glUseProgram(program) {
  7455. GLctx.useProgram(program ? GL.programs[program] : null);
  7456. }
  7457. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7458. function _emscripten_glUniform2fv(location, count, value) {
  7459. var view;
  7460. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7461. // avoid allocation when uploading few enough uniforms
  7462. view = GL.miniTempBufferViews[2*count-1];
  7463. for (var i = 0; i < 2*count; i += 2) {
  7464. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7465. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7466. }
  7467. } else {
  7468. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7469. }
  7470. GLctx.uniform2fv(GL.uniforms[location], view);
  7471. }
  7472. function _glfwSwapInterval(interval) {
  7473. 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.
  7474. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7475. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7476. }
  7477. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7478. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7479. if (log === null) log = '(unknown error)';
  7480. if (maxLength > 0 && infoLog) {
  7481. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7482. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7483. } else {
  7484. if (length) HEAP32[((length)>>2)]=0;
  7485. }
  7486. }
  7487. 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.'; }
  7488. function _abort() {
  7489. Module['abort']();
  7490. }
  7491. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7492. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7493. GL.renderbuffers[renderbuffer]);
  7494. }
  7495. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7496. for (var i = 0; i < n; ++i) {
  7497. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7498. var framebuffer = GL.framebuffers[id];
  7499. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7500. GLctx.deleteFramebuffer(framebuffer);
  7501. framebuffer.name = 0;
  7502. GL.framebuffers[id] = null;
  7503. }
  7504. }
  7505. function _emscripten_glIsBuffer(buffer) {
  7506. var b = GL.buffers[buffer];
  7507. if (!b) return 0;
  7508. return GLctx.isBuffer(b);
  7509. }
  7510. function _emscripten_glUniform2iv(location, count, value) {
  7511. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7512. }
  7513. function _emscripten_glVertexAttrib1fv(index, v) {
  7514. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7515. }
  7516. function _glEnable(x0) { GLctx['enable'](x0) }
  7517. function _emscripten_glGenFramebuffers(n, ids) {
  7518. for (var i = 0; i < n; ++i) {
  7519. var framebuffer = GLctx.createFramebuffer();
  7520. if (!framebuffer) {
  7521. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7522. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  7523. return;
  7524. }
  7525. var id = GL.getNewId(GL.framebuffers);
  7526. framebuffer.name = id;
  7527. GL.framebuffers[id] = framebuffer;
  7528. HEAP32[(((ids)+(i*4))>>2)]=id;
  7529. }
  7530. }
  7531. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7532. function roundedToNextMultipleOf(x, y) {
  7533. return Math.floor((x + y - 1) / y) * y
  7534. }
  7535. var plainRowSize = width * sizePerPixel;
  7536. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7537. return (height <= 0) ? 0 :
  7538. ((height - 1) * alignedRowSize + plainRowSize);
  7539. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7540. var sizePerPixel;
  7541. var numChannels;
  7542. switch(format) {
  7543. case 0x1906 /* GL_ALPHA */:
  7544. case 0x1909 /* GL_LUMINANCE */:
  7545. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7546. numChannels = 1;
  7547. break;
  7548. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7549. numChannels = 2;
  7550. break;
  7551. case 0x1907 /* GL_RGB */:
  7552. case 0x8C40 /* GL_SRGB_EXT */:
  7553. numChannels = 3;
  7554. break;
  7555. case 0x1908 /* GL_RGBA */:
  7556. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7557. numChannels = 4;
  7558. break;
  7559. default:
  7560. GL.recordError(0x0500); // GL_INVALID_ENUM
  7561. return null;
  7562. }
  7563. switch (type) {
  7564. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7565. sizePerPixel = numChannels*1;
  7566. break;
  7567. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7568. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7569. sizePerPixel = numChannels*2;
  7570. break;
  7571. case 0x1405 /* GL_UNSIGNED_INT */:
  7572. case 0x1406 /* GL_FLOAT */:
  7573. sizePerPixel = numChannels*4;
  7574. break;
  7575. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7576. sizePerPixel = 4;
  7577. break;
  7578. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7579. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7580. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7581. sizePerPixel = 2;
  7582. break;
  7583. default:
  7584. GL.recordError(0x0500); // GL_INVALID_ENUM
  7585. return null;
  7586. }
  7587. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7588. switch(type) {
  7589. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7590. return HEAPU8.subarray((pixels),(pixels+bytes));
  7591. case 0x1406 /* GL_FLOAT */:
  7592. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7593. case 0x1405 /* GL_UNSIGNED_INT */:
  7594. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7595. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7596. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7597. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7598. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7599. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7600. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7601. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7602. default:
  7603. GL.recordError(0x0500); // GL_INVALID_ENUM
  7604. return null;
  7605. }
  7606. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7607. var pixelData = null;
  7608. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7609. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7610. }
  7611. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7612. var _emscripten_asm_const_int=true;
  7613. function _emscripten_glUniform2f(location, v0, v1) {
  7614. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7615. }
  7616. function _glGetAttribLocation(program, name) {
  7617. program = GL.programs[program];
  7618. name = Pointer_stringify(name);
  7619. return GLctx.getAttribLocation(program, name);
  7620. }
  7621. function _glfwWindowHint(target, hint) {
  7622. GLFW.hints[target] = hint;
  7623. }
  7624. function _emscripten_glUniform2i(location, v0, v1) {
  7625. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7626. }
  7627. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7628. function _glCreateProgram() {
  7629. var id = GL.getNewId(GL.programs);
  7630. var program = GLctx.createProgram();
  7631. program.name = id;
  7632. GL.programs[id] = program;
  7633. return id;
  7634. }
  7635. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7636. for (var i = 0; i < n; i++) {
  7637. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7638. var renderbuffer = GL.renderbuffers[id];
  7639. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7640. GLctx.deleteRenderbuffer(renderbuffer);
  7641. renderbuffer.name = 0;
  7642. GL.renderbuffers[id] = null;
  7643. }
  7644. }
  7645. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7646. if (!data) {
  7647. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7648. // if data == null, issue a GL error to notify user about it.
  7649. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7650. return;
  7651. }
  7652. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7653. }
  7654. function emscriptenWebGLGetUniform(program, location, params, type) {
  7655. if (!params) {
  7656. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7657. // if params == null, issue a GL error to notify user about it.
  7658. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7659. return;
  7660. }
  7661. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7662. if (typeof data == 'number' || typeof data == 'boolean') {
  7663. switch (type) {
  7664. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7665. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7666. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7667. }
  7668. } else {
  7669. for (var i = 0; i < data.length; i++) {
  7670. switch (type) {
  7671. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7672. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7673. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7674. }
  7675. }
  7676. }
  7677. }function _emscripten_glGetUniformiv(program, location, params) {
  7678. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7679. }
  7680. function _emscripten_glDepthMask(flag) {
  7681. GLctx.depthMask(!!flag);
  7682. }
  7683. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  7684. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7685. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7686. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7687. if (!target) target = document;
  7688. else {
  7689. target = JSEvents.findEventTarget(target);
  7690. if (!target) return -4;
  7691. }
  7692. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7693. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7694. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7695. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7696. return 0;
  7697. }
  7698. Module["___muldsi3"] = ___muldsi3;
  7699. Module["___muldi3"] = ___muldi3;
  7700. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7701. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7702. HEAP32[((range)>>2)]=result.rangeMin;
  7703. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7704. HEAP32[((precision)>>2)]=result.precision;
  7705. }
  7706. function _emscripten_glUniform1fv(location, count, value) {
  7707. var view;
  7708. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7709. // avoid allocation when uploading few enough uniforms
  7710. view = GL.miniTempBufferViews[count-1];
  7711. for (var i = 0; i < count; ++i) {
  7712. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7713. }
  7714. } else {
  7715. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7716. }
  7717. GLctx.uniform1fv(GL.uniforms[location], view);
  7718. }
  7719. function _glDeleteBuffers(n, buffers) {
  7720. for (var i = 0; i < n; i++) {
  7721. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7722. var buffer = GL.buffers[id];
  7723. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7724. // correspond to existing buffer objects."
  7725. if (!buffer) continue;
  7726. GLctx.deleteBuffer(buffer);
  7727. buffer.name = 0;
  7728. GL.buffers[id] = null;
  7729. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7730. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7731. }
  7732. }
  7733. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7734. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7735. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7736. return 0;
  7737. }
  7738. function _emscripten_glBindProgramARB() {
  7739. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7740. }
  7741. function _emscripten_glBindTexture(target, texture) {
  7742. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7743. }
  7744. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7745. function _emscripten_glDeleteProgram(id) {
  7746. if (!id) return;
  7747. var program = GL.programs[id];
  7748. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7749. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7750. return;
  7751. }
  7752. GLctx.deleteProgram(program);
  7753. program.name = 0;
  7754. GL.programs[id] = null;
  7755. GL.programInfos[id] = null;
  7756. }
  7757. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7758. function _emscripten_glVertexAttrib3fv(index, v) {
  7759. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7760. }
  7761. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7762. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7763. program = GL.programs[program];
  7764. var info = GLctx.getActiveAttrib(program, index);
  7765. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7766. if (bufSize > 0 && name) {
  7767. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7768. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7769. } else {
  7770. if (length) HEAP32[((length)>>2)]=0;
  7771. }
  7772. if (size) HEAP32[((size)>>2)]=info.size;
  7773. if (type) HEAP32[((type)>>2)]=info.type;
  7774. }
  7775. function _emscripten_glIsFramebuffer(framebuffer) {
  7776. var fb = GL.framebuffers[framebuffer];
  7777. if (!fb) return 0;
  7778. return GLctx.isFramebuffer(fb);
  7779. }
  7780. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7781. function _glfwGetCursorPos(winid, x, y) {
  7782. GLFW.getCursorPos(winid, x, y);
  7783. }
  7784. function _emscripten_glGetString(name_) {
  7785. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7786. var ret;
  7787. switch(name_) {
  7788. case 0x1F00 /* GL_VENDOR */:
  7789. case 0x1F01 /* GL_RENDERER */:
  7790. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7791. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7792. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7793. break;
  7794. case 0x1F02 /* GL_VERSION */:
  7795. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7796. // return GLES version string corresponding to the version of the WebGL context
  7797. {
  7798. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7799. }
  7800. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7801. break;
  7802. case 0x1F03 /* GL_EXTENSIONS */:
  7803. var exts = GLctx.getSupportedExtensions();
  7804. var gl_exts = [];
  7805. for (var i = 0; i < exts.length; ++i) {
  7806. gl_exts.push(exts[i]);
  7807. gl_exts.push("GL_" + exts[i]);
  7808. }
  7809. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7810. break;
  7811. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7812. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7813. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7814. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7815. var ver_num = glslVersion.match(ver_re);
  7816. if (ver_num !== null) {
  7817. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7818. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7819. }
  7820. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7821. break;
  7822. default:
  7823. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7824. return 0;
  7825. }
  7826. GL.stringCache[name_] = ret;
  7827. return ret;
  7828. }
  7829. function _emscripten_glGetAttribLocation(program, name) {
  7830. program = GL.programs[program];
  7831. name = Pointer_stringify(name);
  7832. return GLctx.getAttribLocation(program, name);
  7833. }
  7834. function _emscripten_glRotatef() {
  7835. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7836. }
  7837. function emscriptenWebGLGet(name_, p, type) {
  7838. // Guard against user passing a null pointer.
  7839. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7840. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7841. // better to report an error instead of doing anything random.
  7842. if (!p) {
  7843. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7844. return;
  7845. }
  7846. var ret = undefined;
  7847. switch(name_) { // Handle a few trivial GLES values
  7848. case 0x8DFA: // GL_SHADER_COMPILER
  7849. ret = 1;
  7850. break;
  7851. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7852. if (type !== 'Integer' && type !== 'Integer64') {
  7853. GL.recordError(0x0500); // GL_INVALID_ENUM
  7854. }
  7855. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7856. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7857. ret = 0;
  7858. break;
  7859. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7860. // 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),
  7861. // so implement it ourselves to allow C++ GLES2 code get the length.
  7862. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7863. ret = formats.length;
  7864. break;
  7865. }
  7866. if (ret === undefined) {
  7867. var result = GLctx.getParameter(name_);
  7868. switch (typeof(result)) {
  7869. case "number":
  7870. ret = result;
  7871. break;
  7872. case "boolean":
  7873. ret = result ? 1 : 0;
  7874. break;
  7875. case "string":
  7876. GL.recordError(0x0500); // GL_INVALID_ENUM
  7877. return;
  7878. case "object":
  7879. if (result === null) {
  7880. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7881. // can mean an invalid name_, which we need to report as an error
  7882. switch(name_) {
  7883. case 0x8894: // ARRAY_BUFFER_BINDING
  7884. case 0x8B8D: // CURRENT_PROGRAM
  7885. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7886. case 0x8CA6: // FRAMEBUFFER_BINDING
  7887. case 0x8CA7: // RENDERBUFFER_BINDING
  7888. case 0x8069: // TEXTURE_BINDING_2D
  7889. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7890. ret = 0;
  7891. break;
  7892. }
  7893. default: {
  7894. GL.recordError(0x0500); // GL_INVALID_ENUM
  7895. return;
  7896. }
  7897. }
  7898. } else if (result instanceof Float32Array ||
  7899. result instanceof Uint32Array ||
  7900. result instanceof Int32Array ||
  7901. result instanceof Array) {
  7902. for (var i = 0; i < result.length; ++i) {
  7903. switch (type) {
  7904. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7905. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7906. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7907. default: throw 'internal glGet error, bad type: ' + type;
  7908. }
  7909. }
  7910. return;
  7911. } else if (result instanceof WebGLBuffer ||
  7912. result instanceof WebGLProgram ||
  7913. result instanceof WebGLFramebuffer ||
  7914. result instanceof WebGLRenderbuffer ||
  7915. result instanceof WebGLTexture) {
  7916. ret = result.name | 0;
  7917. } else {
  7918. GL.recordError(0x0500); // GL_INVALID_ENUM
  7919. return;
  7920. }
  7921. break;
  7922. default:
  7923. GL.recordError(0x0500); // GL_INVALID_ENUM
  7924. return;
  7925. }
  7926. }
  7927. switch (type) {
  7928. 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;
  7929. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7930. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7931. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7932. default: throw 'internal glGet error, bad type: ' + type;
  7933. }
  7934. }function _emscripten_glGetIntegerv(name_, p) {
  7935. emscriptenWebGLGet(name_, p, 'Integer');
  7936. }
  7937. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7938. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7939. HEAP32[((params)>>2)]=result;
  7940. }
  7941. function _llvm_stackrestore(p) {
  7942. var self = _llvm_stacksave;
  7943. var ret = self.LLVM_SAVEDSTACKS[p];
  7944. self.LLVM_SAVEDSTACKS.splice(p, 1);
  7945. Runtime.stackRestore(ret);
  7946. }
  7947. function _glfwSetWindowShouldClose(winid, value) {
  7948. var win = GLFW.WindowFromId(winid);
  7949. if (!win) return;
  7950. win.shouldClose = value;
  7951. }
  7952. function _emscripten_glClientActiveTexture() {
  7953. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  7954. }
  7955. function _glGenBuffers(n, buffers) {
  7956. for (var i = 0; i < n; i++) {
  7957. var buffer = GLctx.createBuffer();
  7958. if (!buffer) {
  7959. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7960. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  7961. return;
  7962. }
  7963. var id = GL.getNewId(GL.buffers);
  7964. buffer.name = id;
  7965. GL.buffers[id] = buffer;
  7966. HEAP32[(((buffers)+(i*4))>>2)]=id;
  7967. }
  7968. }
  7969. function _emscripten_memcpy_big(dest, src, num) {
  7970. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  7971. return dest;
  7972. }
  7973. Module["_memcpy"] = _memcpy;
  7974. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7975. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7976. if (log === null) log = '(unknown error)';
  7977. if (maxLength > 0 && infoLog) {
  7978. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7979. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7980. } else {
  7981. if (length) HEAP32[((length)>>2)]=0;
  7982. }
  7983. }
  7984. function _glfwGetTime() {
  7985. return GLFW.getTime() - GLFW.initialTime;
  7986. }
  7987. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  7988. if (!params) {
  7989. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7990. // if params == null, issue a GL error to notify user about it.
  7991. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7992. return;
  7993. }
  7994. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  7995. }
  7996. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  7997. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  7998. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  7999. if (!pixelData) {
  8000. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8001. return;
  8002. }
  8003. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  8004. }
  8005. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8006. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8007. }
  8008. function _emscripten_glGetError() {
  8009. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8010. if (GL.lastError) {
  8011. var error = GL.lastError;
  8012. GL.lastError = 0/*GL_NO_ERROR*/;
  8013. return error;
  8014. } else { // If there were none, return the GL error from the browser GL context.
  8015. return GLctx.getError();
  8016. }
  8017. }
  8018. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8019. GLctx.framebufferTexture2D(target, attachment, textarget,
  8020. GL.textures[texture], level);
  8021. }
  8022. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8023. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8024. Module["_memmove"] = _memmove;
  8025. function _glGenTextures(n, textures) {
  8026. for (var i = 0; i < n; i++) {
  8027. var texture = GLctx.createTexture();
  8028. if (!texture) {
  8029. 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.
  8030. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8031. return;
  8032. }
  8033. var id = GL.getNewId(GL.textures);
  8034. texture.name = id;
  8035. GL.textures[id] = texture;
  8036. HEAP32[(((textures)+(i*4))>>2)]=id;
  8037. }
  8038. }
  8039. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8040. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8041. 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);
  8042. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  8043. Module["___udivmoddi4"] = ___udivmoddi4;
  8044. Module["___uremdi3"] = ___uremdi3;
  8045. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8046. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8047. function _emscripten_glBindBuffer(target, buffer) {
  8048. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8049. GLctx.bindBuffer(target, bufferObj);
  8050. }
  8051. function _emscripten_glGetUniformfv(program, location, params) {
  8052. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8053. }
  8054. function _glGetProgramiv(program, pname, p) {
  8055. if (!p) {
  8056. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8057. // if p == null, issue a GL error to notify user about it.
  8058. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8059. return;
  8060. }
  8061. if (program >= GL.counter) {
  8062. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8063. return;
  8064. }
  8065. var ptable = GL.programInfos[program];
  8066. if (!ptable) {
  8067. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8068. return;
  8069. }
  8070. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8071. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8072. if (log === null) log = '(unknown error)';
  8073. HEAP32[((p)>>2)]=log.length + 1;
  8074. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8075. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8076. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8077. if (ptable.maxAttributeLength == -1) {
  8078. var program = GL.programs[program];
  8079. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8080. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8081. for (var i = 0; i < numAttribs; ++i) {
  8082. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8083. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8084. }
  8085. }
  8086. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8087. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8088. if (ptable.maxUniformBlockNameLength == -1) {
  8089. var program = GL.programs[program];
  8090. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8091. ptable.maxUniformBlockNameLength = 0;
  8092. for (var i = 0; i < numBlocks; ++i) {
  8093. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8094. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8095. }
  8096. }
  8097. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8098. } else {
  8099. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8100. }
  8101. }
  8102. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8103. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8104. }
  8105. function _emscripten_exit_pointerlock() {
  8106. // Make sure no queued up calls will fire after this.
  8107. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8108. if (document.exitPointerLock) {
  8109. document.exitPointerLock();
  8110. } else if (document.msExitPointerLock) {
  8111. document.msExitPointerLock();
  8112. } else if (document.mozExitPointerLock) {
  8113. document.mozExitPointerLock();
  8114. } else if (document.webkitExitPointerLock) {
  8115. document.webkitExitPointerLock();
  8116. } else {
  8117. return -1;
  8118. }
  8119. return 0;
  8120. }
  8121. function _glGetUniformLocation(program, name) {
  8122. name = Pointer_stringify(name);
  8123. var arrayOffset = 0;
  8124. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8125. if (name.indexOf(']', name.length-1) !== -1) {
  8126. var ls = name.lastIndexOf('[');
  8127. var arrayIndex = name.slice(ls+1, -1);
  8128. if (arrayIndex.length > 0) {
  8129. arrayOffset = parseInt(arrayIndex);
  8130. if (arrayOffset < 0) {
  8131. return -1;
  8132. }
  8133. }
  8134. name = name.slice(0, ls);
  8135. }
  8136. var ptable = GL.programInfos[program];
  8137. if (!ptable) {
  8138. return -1;
  8139. }
  8140. var utable = ptable.uniforms;
  8141. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8142. 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.
  8143. return uniformInfo[1]+arrayOffset;
  8144. } else {
  8145. return -1;
  8146. }
  8147. }
  8148. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8149. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8150. var len = result.length;
  8151. if (len > maxCount) {
  8152. len = maxCount;
  8153. }
  8154. HEAP32[((count)>>2)]=len;
  8155. for (var i = 0; i < len; ++i) {
  8156. var id = GL.shaders.indexOf(result[i]);
  8157. assert(id !== -1, 'shader not bound to local id');
  8158. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8159. }
  8160. }
  8161. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8162. for (var i = 0; i < n; i++) {
  8163. var renderbuffer = GLctx.createRenderbuffer();
  8164. if (!renderbuffer) {
  8165. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8166. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8167. return;
  8168. }
  8169. var id = GL.getNewId(GL.renderbuffers);
  8170. renderbuffer.name = id;
  8171. GL.renderbuffers[id] = renderbuffer;
  8172. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8173. }
  8174. }
  8175. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8176. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8177. function _emscripten_glUniform1iv(location, count, value) {
  8178. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8179. }
  8180. function _emscripten_glTexCoordPointer() {
  8181. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8182. }
  8183. function _emscripten_glGetInfoLogARB() {
  8184. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8185. }
  8186. function __exit(status) {
  8187. // void _exit(int status);
  8188. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8189. Module['exit'](status);
  8190. }function _exit(status) {
  8191. __exit(status);
  8192. }
  8193. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8194. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8195. function _glfwSetCursorPosCallback(winid, cbfun) {
  8196. GLFW.setCursorPosCallback(winid, cbfun);
  8197. }
  8198. function _glBindAttribLocation(program, index, name) {
  8199. name = Pointer_stringify(name);
  8200. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8201. }
  8202. function _emscripten_glShaderBinary() {
  8203. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8204. }
  8205. function _emscripten_glIsProgram(program) {
  8206. var program = GL.programs[program];
  8207. if (!program) return 0;
  8208. return GLctx.isProgram(program);
  8209. }
  8210. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8211. function _emscripten_glGetShaderiv(shader, pname, p) {
  8212. if (!p) {
  8213. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8214. // if p == null, issue a GL error to notify user about it.
  8215. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8216. return;
  8217. }
  8218. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8219. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8220. if (log === null) log = '(unknown error)';
  8221. HEAP32[((p)>>2)]=log.length + 1;
  8222. } else {
  8223. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8224. }
  8225. }
  8226. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8227. var view;
  8228. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8229. // avoid allocation when uploading few enough uniforms
  8230. view = GL.miniTempBufferViews[9*count-1];
  8231. for (var i = 0; i < 9*count; i += 9) {
  8232. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8233. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8234. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8235. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8236. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8237. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8238. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8239. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8240. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8241. }
  8242. } else {
  8243. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8244. }
  8245. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8246. }
  8247. Module["___udivdi3"] = ___udivdi3;
  8248. function _emscripten_glUniform4fv(location, count, value) {
  8249. var view;
  8250. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8251. // avoid allocation when uploading few enough uniforms
  8252. view = GL.miniTempBufferViews[4*count-1];
  8253. for (var i = 0; i < 4*count; i += 4) {
  8254. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8255. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8256. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8257. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8258. }
  8259. } else {
  8260. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8261. }
  8262. GLctx.uniform4fv(GL.uniforms[location], view);
  8263. }
  8264. function _glBufferSubData(target, offset, size, data) {
  8265. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8266. }
  8267. function _llvm_exp2_f32(x) {
  8268. return Math.pow(2, x);
  8269. }
  8270. function _glGetShaderiv(shader, pname, p) {
  8271. if (!p) {
  8272. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8273. // if p == null, issue a GL error to notify user about it.
  8274. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8275. return;
  8276. }
  8277. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8278. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8279. if (log === null) log = '(unknown error)';
  8280. HEAP32[((p)>>2)]=log.length + 1;
  8281. } else {
  8282. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8283. }
  8284. }
  8285. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8286. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8287. var win = GLFW.WindowFromId(winid);
  8288. if (!win) return;
  8289. win.windowIconifyFunc = cbfun;
  8290. }
  8291. function _emscripten_glDrawRangeElements() {
  8292. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8293. }
  8294. function _emscripten_glGenTextures(n, textures) {
  8295. for (var i = 0; i < n; i++) {
  8296. var texture = GLctx.createTexture();
  8297. if (!texture) {
  8298. 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.
  8299. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8300. return;
  8301. }
  8302. var id = GL.getNewId(GL.textures);
  8303. texture.name = id;
  8304. GL.textures[id] = texture;
  8305. HEAP32[(((textures)+(i*4))>>2)]=id;
  8306. }
  8307. }
  8308. function _emscripten_glVertexAttrib2fv(index, v) {
  8309. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8310. }
  8311. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8312. program = GL.programs[program];
  8313. var info = GLctx.getActiveUniform(program, index);
  8314. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8315. if (bufSize > 0 && name) {
  8316. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8317. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8318. } else {
  8319. if (length) HEAP32[((length)>>2)]=0;
  8320. }
  8321. if (size) HEAP32[((size)>>2)]=info.size;
  8322. if (type) HEAP32[((type)>>2)]=info.type;
  8323. }
  8324. Module["_roundf"] = _roundf;
  8325. function _emscripten_glDeleteObjectARB() {
  8326. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8327. }
  8328. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8329. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8330. return 0;
  8331. }
  8332. function _emscripten_glUniform1f(location, v0) {
  8333. GLctx.uniform1f(GL.uniforms[location], v0);
  8334. }
  8335. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8336. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8337. }
  8338. function _glShaderSource(shader, count, string, length) {
  8339. var source = GL.getSource(shader, count, string, length);
  8340. GLctx.shaderSource(GL.shaders[shader], source);
  8341. }
  8342. function _emscripten_glDrawArrays(mode, first, count) {
  8343. GLctx.drawArrays(mode, first, count);
  8344. }
  8345. function _emscripten_glGenBuffers(n, buffers) {
  8346. for (var i = 0; i < n; i++) {
  8347. var buffer = GLctx.createBuffer();
  8348. if (!buffer) {
  8349. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8350. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8351. return;
  8352. }
  8353. var id = GL.getNewId(GL.buffers);
  8354. buffer.name = id;
  8355. GL.buffers[id] = buffer;
  8356. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8357. }
  8358. }
  8359. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8360. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8361. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8362. return 0;
  8363. }
  8364. function _glfwSetCharCallback(winid, cbfun) {
  8365. GLFW.setCharCallback(winid, cbfun);
  8366. }
  8367. function _emscripten_glGetUniformLocation(program, name) {
  8368. name = Pointer_stringify(name);
  8369. var arrayOffset = 0;
  8370. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8371. if (name.indexOf(']', name.length-1) !== -1) {
  8372. var ls = name.lastIndexOf('[');
  8373. var arrayIndex = name.slice(ls+1, -1);
  8374. if (arrayIndex.length > 0) {
  8375. arrayOffset = parseInt(arrayIndex);
  8376. if (arrayOffset < 0) {
  8377. return -1;
  8378. }
  8379. }
  8380. name = name.slice(0, ls);
  8381. }
  8382. var ptable = GL.programInfos[program];
  8383. if (!ptable) {
  8384. return -1;
  8385. }
  8386. var utable = ptable.uniforms;
  8387. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8388. 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.
  8389. return uniformInfo[1]+arrayOffset;
  8390. } else {
  8391. return -1;
  8392. }
  8393. }
  8394. function _glBindBuffer(target, buffer) {
  8395. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8396. GLctx.bindBuffer(target, bufferObj);
  8397. }
  8398. function _emscripten_glVertexAttrib4fv(index, v) {
  8399. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8400. }
  8401. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8402. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8403. var win = GLFW.WindowFromId(winid);
  8404. if (!win) return;
  8405. win.cursorEnterFunc = cbfun;
  8406. }
  8407. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8408. function _glBufferData(target, size, data, usage) {
  8409. if (!data) {
  8410. GLctx.bufferData(target, size, usage);
  8411. } else {
  8412. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8413. }
  8414. }
  8415. function _emscripten_glIsShader(shader) {
  8416. var s = GL.shaders[shader];
  8417. if (!s) return 0;
  8418. return GLctx.isShader(s);
  8419. }
  8420. function _emscripten_glDrawBuffers(n, bufs) {
  8421. var bufArray = GL.tempFixedLengthArray[n];
  8422. for (var i = 0; i < n; i++) {
  8423. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8424. }
  8425. GLctx['drawBuffers'](bufArray);
  8426. }
  8427. function _glGetFloatv(name_, p) {
  8428. emscriptenWebGLGet(name_, p, 'Float');
  8429. }
  8430. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8431. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8432. }
  8433. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8434. function _emscripten_glBufferSubData(target, offset, size, data) {
  8435. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8436. }
  8437. function _emscripten_glBufferData(target, size, data, usage) {
  8438. if (!data) {
  8439. GLctx.bufferData(target, size, usage);
  8440. } else {
  8441. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8442. }
  8443. }
  8444. Module["_sbrk"] = _sbrk;
  8445. Module["_bitshift64Shl"] = _bitshift64Shl;
  8446. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8447. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8448. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8449. if (bufSize > 0 && source) {
  8450. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8451. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8452. } else {
  8453. if (length) HEAP32[((length)>>2)]=0;
  8454. }
  8455. }
  8456. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8457. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8458. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8459. return 0;
  8460. }
  8461. function _glfwSetKeyCallback(winid, cbfun) {
  8462. GLFW.setKeyCallback(winid, cbfun);
  8463. }
  8464. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8465. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8466. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8467. return 0;
  8468. }
  8469. function _emscripten_glGetFloatv(name_, p) {
  8470. emscriptenWebGLGet(name_, p, 'Float');
  8471. }
  8472. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8473. var pixelData = null;
  8474. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8475. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8476. }
  8477. function ___assert_fail(condition, filename, line, func) {
  8478. ABORT = true;
  8479. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  8480. }
  8481. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8482. GLctx['vertexAttribDivisor'](index, divisor);
  8483. }
  8484. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8485. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8486. }
  8487. function _emscripten_glDrawElements(mode, count, type, indices) {
  8488. GLctx.drawElements(mode, count, type, indices);
  8489. }
  8490. function _glfwSetMouseButtonCallback(winid, cbfun) {
  8491. GLFW.setMouseButtonCallback(winid, cbfun);
  8492. }
  8493. function _emscripten_glCreateProgram() {
  8494. var id = GL.getNewId(GL.programs);
  8495. var program = GLctx.createProgram();
  8496. program.name = id;
  8497. GL.programs[id] = program;
  8498. return id;
  8499. }
  8500. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8501. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8502. }
  8503. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8504. function _emscripten_glBindVertexArray(vao) {
  8505. GLctx['bindVertexArray'](GL.vaos[vao]);
  8506. }
  8507. function _emscripten_glLoadMatrixf() {
  8508. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8509. }
  8510. function _glDeleteShader(id) {
  8511. if (!id) return;
  8512. var shader = GL.shaders[id];
  8513. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8514. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8515. return;
  8516. }
  8517. GLctx.deleteShader(shader);
  8518. GL.shaders[id] = null;
  8519. }
  8520. function _emscripten_glGetProgramiv(program, pname, p) {
  8521. if (!p) {
  8522. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8523. // if p == null, issue a GL error to notify user about it.
  8524. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8525. return;
  8526. }
  8527. if (program >= GL.counter) {
  8528. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8529. return;
  8530. }
  8531. var ptable = GL.programInfos[program];
  8532. if (!ptable) {
  8533. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8534. return;
  8535. }
  8536. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8537. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8538. if (log === null) log = '(unknown error)';
  8539. HEAP32[((p)>>2)]=log.length + 1;
  8540. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8541. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8542. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8543. if (ptable.maxAttributeLength == -1) {
  8544. var program = GL.programs[program];
  8545. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8546. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8547. for (var i = 0; i < numAttribs; ++i) {
  8548. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8549. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8550. }
  8551. }
  8552. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8553. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8554. if (ptable.maxUniformBlockNameLength == -1) {
  8555. var program = GL.programs[program];
  8556. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8557. ptable.maxUniformBlockNameLength = 0;
  8558. for (var i = 0; i < numBlocks; ++i) {
  8559. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8560. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8561. }
  8562. }
  8563. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8564. } else {
  8565. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8566. }
  8567. }
  8568. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8569. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8570. if (log === null) log = '(unknown error)';
  8571. if (maxLength > 0 && infoLog) {
  8572. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8573. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8574. } else {
  8575. if (length) HEAP32[((length)>>2)]=0;
  8576. }
  8577. }
  8578. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8579. var pixelData = null;
  8580. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8581. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8582. }
  8583. function _glPixelStorei(pname, param) {
  8584. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8585. GL.packAlignment = param;
  8586. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8587. GL.unpackAlignment = param;
  8588. }
  8589. GLctx.pixelStorei(pname, param);
  8590. }
  8591. function ___unlock() {}
  8592. function _emscripten_glColorPointer() {
  8593. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  8594. }
  8595. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8596. function _glfwDestroyWindow(winid) {
  8597. return GLFW.destroyWindow(winid);
  8598. }
  8599. function _emscripten_glFlush() { GLctx['flush']() }
  8600. function _glfwSetErrorCallback(cbfun) {
  8601. GLFW.errorFunc = cbfun;
  8602. }
  8603. function _emscripten_glCreateShader(shaderType) {
  8604. var id = GL.getNewId(GL.shaders);
  8605. GL.shaders[id] = GLctx.createShader(shaderType);
  8606. return id;
  8607. }
  8608. function _glUniformMatrix4fv(location, count, transpose, value) {
  8609. var view;
  8610. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8611. // avoid allocation when uploading few enough uniforms
  8612. view = GL.miniTempBufferViews[16*count-1];
  8613. for (var i = 0; i < 16*count; i += 16) {
  8614. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8615. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8616. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8617. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8618. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8619. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8620. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8621. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8622. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8623. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8624. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8625. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8626. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8627. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8628. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8629. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8630. }
  8631. } else {
  8632. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8633. }
  8634. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8635. }
  8636. function _emscripten_glValidateProgram(program) {
  8637. GLctx.validateProgram(GL.programs[program]);
  8638. }
  8639. function _glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  8640. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8641. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8642. function _emscripten_glColorMask(red, green, blue, alpha) {
  8643. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8644. }
  8645. function _emscripten_glPixelStorei(pname, param) {
  8646. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8647. GL.packAlignment = param;
  8648. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8649. GL.unpackAlignment = param;
  8650. }
  8651. GLctx.pixelStorei(pname, param);
  8652. }
  8653. function _emscripten_glDeleteTextures(n, textures) {
  8654. for (var i = 0; i < n; i++) {
  8655. var id = HEAP32[(((textures)+(i*4))>>2)];
  8656. var texture = GL.textures[id];
  8657. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8658. GLctx.deleteTexture(texture);
  8659. texture.name = 0;
  8660. GL.textures[id] = null;
  8661. }
  8662. }
  8663. function _emscripten_glCompileShader(shader) {
  8664. GLctx.compileShader(GL.shaders[shader]);
  8665. }
  8666. function _emscripten_glGenVertexArrays(n, arrays) {
  8667. for (var i = 0; i < n; i++) {
  8668. var vao = GLctx['createVertexArray']();
  8669. if (!vao) {
  8670. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8671. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8672. return;
  8673. }
  8674. var id = GL.getNewId(GL.vaos);
  8675. vao.name = id;
  8676. GL.vaos[id] = vao;
  8677. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8678. }
  8679. }
  8680. function _time(ptr) {
  8681. var ret = (Date.now()/1000)|0;
  8682. if (ptr) {
  8683. HEAP32[((ptr)>>2)]=ret;
  8684. }
  8685. return ret;
  8686. }
  8687. function _emscripten_glGetBooleanv(name_, p) {
  8688. emscriptenWebGLGet(name_, p, 'Boolean');
  8689. }
  8690. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8691. try {
  8692. // fcntl64
  8693. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8694. switch (cmd) {
  8695. case 0: {
  8696. var arg = SYSCALLS.get();
  8697. if (arg < 0) {
  8698. return -ERRNO_CODES.EINVAL;
  8699. }
  8700. var newStream;
  8701. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8702. return newStream.fd;
  8703. }
  8704. case 1:
  8705. case 2:
  8706. return 0; // FD_CLOEXEC makes no sense for a single process.
  8707. case 3:
  8708. return stream.flags;
  8709. case 4: {
  8710. var arg = SYSCALLS.get();
  8711. stream.flags |= arg;
  8712. return 0;
  8713. }
  8714. case 12:
  8715. case 12: {
  8716. var arg = SYSCALLS.get();
  8717. var offset = 0;
  8718. // We're always unlocked.
  8719. HEAP16[(((arg)+(offset))>>1)]=2;
  8720. return 0;
  8721. }
  8722. case 13:
  8723. case 14:
  8724. case 13:
  8725. case 14:
  8726. return 0; // Pretend that the locking is successful.
  8727. case 16:
  8728. case 8:
  8729. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8730. case 9:
  8731. // 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.
  8732. ___setErrNo(ERRNO_CODES.EINVAL);
  8733. return -1;
  8734. default: {
  8735. return -ERRNO_CODES.EINVAL;
  8736. }
  8737. }
  8738. } catch (e) {
  8739. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8740. return -e.errno;
  8741. }
  8742. }
  8743. var GLctx; GL.init();
  8744. if (ENVIRONMENT_IS_NODE) {
  8745. _emscripten_get_now = function _emscripten_get_now_actual() {
  8746. var t = process['hrtime']();
  8747. return t[0] * 1e3 + t[1] / 1e6;
  8748. };
  8749. } else if (typeof dateNow !== 'undefined') {
  8750. _emscripten_get_now = dateNow;
  8751. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8752. _emscripten_get_now = function() { return self['performance']['now'](); };
  8753. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8754. _emscripten_get_now = function() { return performance['now'](); };
  8755. } else {
  8756. _emscripten_get_now = Date.now;
  8757. };
  8758. 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) };
  8759. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8760. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8761. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8762. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8763. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8764. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8765. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8766. 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;;
  8767. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8768. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8769. JSEvents.staticInit();;
  8770. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8771. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8772. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8773. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8774. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8775. staticSealed = true; // seal the static portion of memory
  8776. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8777. 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) }
  8778. 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) }
  8779. 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) }
  8780. 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) }
  8781. 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) }
  8782. 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) }
  8783. 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) }
  8784. 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) }
  8785. 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) }
  8786. 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) }
  8787. 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) }
  8788. 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) }
  8789. 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) }
  8790. 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) }
  8791. 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) }
  8792. 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) }
  8793. 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) }
  8794. 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) }
  8795. 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) }
  8796. 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) }
  8797. 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) }
  8798. 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) }
  8799. 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) }
  8800. 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) }
  8801. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8802. try {
  8803. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8804. } catch(e) {
  8805. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8806. Module["setThrew"](1, 0);
  8807. }
  8808. }
  8809. function invoke_vd(index,a1) {
  8810. try {
  8811. Module["dynCall_vd"](index,a1);
  8812. } catch(e) {
  8813. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8814. Module["setThrew"](1, 0);
  8815. }
  8816. }
  8817. function invoke_vid(index,a1,a2) {
  8818. try {
  8819. Module["dynCall_vid"](index,a1,a2);
  8820. } catch(e) {
  8821. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8822. Module["setThrew"](1, 0);
  8823. }
  8824. }
  8825. function invoke_vi(index,a1) {
  8826. try {
  8827. Module["dynCall_vi"](index,a1);
  8828. } catch(e) {
  8829. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8830. Module["setThrew"](1, 0);
  8831. }
  8832. }
  8833. function invoke_vii(index,a1,a2) {
  8834. try {
  8835. Module["dynCall_vii"](index,a1,a2);
  8836. } catch(e) {
  8837. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8838. Module["setThrew"](1, 0);
  8839. }
  8840. }
  8841. function invoke_ii(index,a1) {
  8842. try {
  8843. return Module["dynCall_ii"](index,a1);
  8844. } catch(e) {
  8845. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8846. Module["setThrew"](1, 0);
  8847. }
  8848. }
  8849. function invoke_viddd(index,a1,a2,a3,a4) {
  8850. try {
  8851. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8852. } catch(e) {
  8853. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8854. Module["setThrew"](1, 0);
  8855. }
  8856. }
  8857. function invoke_vidd(index,a1,a2,a3) {
  8858. try {
  8859. Module["dynCall_vidd"](index,a1,a2,a3);
  8860. } catch(e) {
  8861. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8862. Module["setThrew"](1, 0);
  8863. }
  8864. }
  8865. function invoke_iiii(index,a1,a2,a3) {
  8866. try {
  8867. return Module["dynCall_iiii"](index,a1,a2,a3);
  8868. } catch(e) {
  8869. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8870. Module["setThrew"](1, 0);
  8871. }
  8872. }
  8873. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  8874. try {
  8875. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  8876. } catch(e) {
  8877. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8878. Module["setThrew"](1, 0);
  8879. }
  8880. }
  8881. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  8882. try {
  8883. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  8884. } catch(e) {
  8885. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8886. Module["setThrew"](1, 0);
  8887. }
  8888. }
  8889. function invoke_viii(index,a1,a2,a3) {
  8890. try {
  8891. Module["dynCall_viii"](index,a1,a2,a3);
  8892. } catch(e) {
  8893. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8894. Module["setThrew"](1, 0);
  8895. }
  8896. }
  8897. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  8898. try {
  8899. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  8900. } catch(e) {
  8901. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8902. Module["setThrew"](1, 0);
  8903. }
  8904. }
  8905. function invoke_vdi(index,a1,a2) {
  8906. try {
  8907. Module["dynCall_vdi"](index,a1,a2);
  8908. } catch(e) {
  8909. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8910. Module["setThrew"](1, 0);
  8911. }
  8912. }
  8913. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  8914. try {
  8915. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  8916. } catch(e) {
  8917. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8918. Module["setThrew"](1, 0);
  8919. }
  8920. }
  8921. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  8922. try {
  8923. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  8924. } catch(e) {
  8925. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8926. Module["setThrew"](1, 0);
  8927. }
  8928. }
  8929. function invoke_iii(index,a1,a2) {
  8930. try {
  8931. return Module["dynCall_iii"](index,a1,a2);
  8932. } catch(e) {
  8933. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8934. Module["setThrew"](1, 0);
  8935. }
  8936. }
  8937. function invoke_i(index) {
  8938. try {
  8939. return Module["dynCall_i"](index);
  8940. } catch(e) {
  8941. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8942. Module["setThrew"](1, 0);
  8943. }
  8944. }
  8945. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  8946. try {
  8947. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  8948. } catch(e) {
  8949. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8950. Module["setThrew"](1, 0);
  8951. }
  8952. }
  8953. function invoke_vdddd(index,a1,a2,a3,a4) {
  8954. try {
  8955. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  8956. } catch(e) {
  8957. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8958. Module["setThrew"](1, 0);
  8959. }
  8960. }
  8961. function invoke_vdd(index,a1,a2) {
  8962. try {
  8963. Module["dynCall_vdd"](index,a1,a2);
  8964. } catch(e) {
  8965. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8966. Module["setThrew"](1, 0);
  8967. }
  8968. }
  8969. function invoke_v(index) {
  8970. try {
  8971. Module["dynCall_v"](index);
  8972. } catch(e) {
  8973. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8974. Module["setThrew"](1, 0);
  8975. }
  8976. }
  8977. function invoke_viid(index,a1,a2,a3) {
  8978. try {
  8979. Module["dynCall_viid"](index,a1,a2,a3);
  8980. } catch(e) {
  8981. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8982. Module["setThrew"](1, 0);
  8983. }
  8984. }
  8985. function invoke_viiii(index,a1,a2,a3,a4) {
  8986. try {
  8987. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  8988. } catch(e) {
  8989. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8990. Module["setThrew"](1, 0);
  8991. }
  8992. }
  8993. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
  8994. Module.asmLibraryArg = { "abort": abort, "assert": assert, "enlargeMemory": enlargeMemory, "getTotalMemory": getTotalMemory, "abortOnCannotGrowMemory": abortOnCannotGrowMemory, "abortStackOverflow": abortStackOverflow, "nullFunc_viiiii": nullFunc_viiiii, "nullFunc_vd": nullFunc_vd, "nullFunc_vid": nullFunc_vid, "nullFunc_vi": nullFunc_vi, "nullFunc_vii": nullFunc_vii, "nullFunc_ii": nullFunc_ii, "nullFunc_viddd": nullFunc_viddd, "nullFunc_vidd": nullFunc_vidd, "nullFunc_iiii": nullFunc_iiii, "nullFunc_viiiiiiii": nullFunc_viiiiiiii, "nullFunc_viiiiii": nullFunc_viiiiii, "nullFunc_viii": nullFunc_viii, "nullFunc_vidddd": nullFunc_vidddd, "nullFunc_vdi": nullFunc_vdi, "nullFunc_viiiiiii": nullFunc_viiiiiii, "nullFunc_viiiiiiiii": nullFunc_viiiiiiiii, "nullFunc_iii": nullFunc_iii, "nullFunc_i": nullFunc_i, "nullFunc_vdddddd": nullFunc_vdddddd, "nullFunc_vdddd": nullFunc_vdddd, "nullFunc_vdd": nullFunc_vdd, "nullFunc_v": nullFunc_v, "nullFunc_viid": nullFunc_viid, "nullFunc_viiii": nullFunc_viiii, "invoke_viiiii": invoke_viiiii, "invoke_vd": invoke_vd, "invoke_vid": invoke_vid, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_ii": invoke_ii, "invoke_viddd": invoke_viddd, "invoke_vidd": invoke_vidd, "invoke_iiii": invoke_iiii, "invoke_viiiiiiii": invoke_viiiiiiii, "invoke_viiiiii": invoke_viiiiii, "invoke_viii": invoke_viii, "invoke_vidddd": invoke_vidddd, "invoke_vdi": invoke_vdi, "invoke_viiiiiii": invoke_viiiiiii, "invoke_viiiiiiiii": invoke_viiiiiiiii, "invoke_iii": invoke_iii, "invoke_i": invoke_i, "invoke_vdddddd": invoke_vdddddd, "invoke_vdddd": invoke_vdddd, "invoke_vdd": invoke_vdd, "invoke_v": invoke_v, "invoke_viid": invoke_viid, "invoke_viiii": invoke_viiii, "_emscripten_glGetTexParameterfv": _emscripten_glGetTexParameterfv, "_glUseProgram": _glUseProgram, "_emscripten_glShaderSource": _emscripten_glShaderSource, "_glfwCreateWindow": _glfwCreateWindow, "_emscripten_glReleaseShaderCompiler": _emscripten_glReleaseShaderCompiler, "_emscripten_glBlendFuncSeparate": _emscripten_glBlendFuncSeparate, "_emscripten_glVertexAttribPointer": _emscripten_glVertexAttribPointer, "_emscripten_glGetIntegerv": _emscripten_glGetIntegerv, "_emscripten_glCullFace": _emscripten_glCullFace, "_emscripten_glIsProgram": _emscripten_glIsProgram, "_emscripten_glStencilMaskSeparate": _emscripten_glStencilMaskSeparate, "_emscripten_glViewport": _emscripten_glViewport, "_emscripten_glFrontFace": _emscripten_glFrontFace, "___assert_fail": ___assert_fail, "_glDeleteProgram": _glDeleteProgram, "_emscripten_glUniform3fv": _emscripten_glUniform3fv, "_emscripten_glPolygonOffset": _emscripten_glPolygonOffset, "_emscripten_glUseProgram": _emscripten_glUseProgram, "_emscripten_glBlendColor": _emscripten_glBlendColor, "_glBindBuffer": _glBindBuffer, "_emscripten_glDepthFunc": _emscripten_glDepthFunc, "_glGetShaderInfoLog": _glGetShaderInfoLog, "_emscripten_set_fullscreenchange_callback": _emscripten_set_fullscreenchange_callback, "_emscripten_set_touchmove_callback": _emscripten_set_touchmove_callback, "_emscripten_set_main_loop_timing": _emscripten_set_main_loop_timing, "_emscripten_set_gamepaddisconnected_callback": _emscripten_set_gamepaddisconnected_callback, "_glDisable": _glDisable, "_glBlendFunc": _glBlendFunc, "_emscripten_glDisableVertexAttribArray": _emscripten_glDisableVertexAttribArray, "_glGetAttribLocation": _glGetAttribLocation, "_glDisableVertexAttribArray": _glDisableVertexAttribArray, "_glCreateShader": _glCreateShader, "_emscripten_glSampleCoverage": _emscripten_glSampleCoverage, "_emscripten_glVertexPointer": _emscripten_glVertexPointer, "_emscripten_set_touchstart_callback": _emscripten_set_touchstart_callback, "emscriptenWebGLComputeImageSize": emscriptenWebGLComputeImageSize, "_emscripten_glGetBooleanv": _emscripten_glGetBooleanv, "_emscripten_glGetShaderSource": _emscripten_glGetShaderSource, "_glUniform4f": _glUniform4f, "_llvm_stacksave": _llvm_stacksave, "_emscripten_glUniform1i": _emscripten_glUniform1i, "_emscripten_glStencilFuncSeparate": _emscripten_glStencilFuncSeparate, "_emscripten_glFrustum": _emscripten_glFrustum, "_emscripten_glGenBuffers": _emscripten_glGenBuffers, "_emscripten_glDeleteObjectARB": _emscripten_glDeleteObjectARB, "_glfwSetWindowSizeCallback": _glfwSetWindowSizeCallback, "_emscripten_glGetShaderPrecisionFormat": _emscripten_glGetShaderPrecisionFormat, "_glfwInit": _glfwInit, "_glGenBuffers": _glGenBuffers, "_glShaderSource": _glShaderSource, "_emscripten_glGetString": _emscripten_glGetString, "_emscripten_glIsFramebuffer": _emscripten_glIsFramebuffer, "_emscripten_glIsEnabled": _emscripten_glIsEnabled, "_emscripten_glScissor": _emscripten_glScissor, "_emscripten_glVertexAttrib4fv": _emscripten_glVertexAttrib4fv, "_emscripten_glFramebufferTexture2D": _emscripten_glFramebufferTexture2D, "_emscripten_glTexParameteriv": _emscripten_glTexParameteriv, "___syscall145": ___syscall145, "_emscripten_glBindProgramARB": _emscripten_glBindProgramARB, "_emscripten_glStencilOpSeparate": _emscripten_glStencilOpSeparate, "_emscripten_glFramebufferRenderbuffer": _emscripten_glFramebufferRenderbuffer, "___syscall140": ___syscall140, "_glfwSetErrorCallback": _glfwSetErrorCallback, "_glfwDefaultWindowHints": _glfwDefaultWindowHints, "_glfwDestroyWindow": _glfwDestroyWindow, "___syscall146": ___syscall146, "_emscripten_glGetActiveAttrib": _emscripten_glGetActiveAttrib, "_emscripten_glAttachShader": _emscripten_glAttachShader, "_glVertexAttribPointer": _glVertexAttribPointer, "_emscripten_glUniform2i": _emscripten_glUniform2i, "_emscripten_glUniform2f": _emscripten_glUniform2f, "_emscripten_glTexParameterfv": _emscripten_glTexParameterfv, "_emscripten_glUniformMatrix2fv": _emscripten_glUniformMatrix2fv, "_glGetProgramInfoLog": _glGetProgramInfoLog, "_glfwSetScrollCallback": _glfwSetScrollCallback, "_emscripten_glTexParameterf": _emscripten_glTexParameterf, "_emscripten_glGetAttachedShaders": _emscripten_glGetAttachedShaders, "_emscripten_glGenTextures": _emscripten_glGenTextures, "_emscripten_glTexParameteri": _emscripten_glTexParameteri, "_llvm_stackrestore": _llvm_stackrestore, "_glfwMakeContextCurrent": _glfwMakeContextCurrent, "_emscripten_glClear": _emscripten_glClear, "_glDrawElements": _glDrawElements, "_glBufferSubData": _glBufferSubData, "_emscripten_glValidateProgram": _emscripten_glValidateProgram, "_emscripten_glVertexAttrib2fv": _emscripten_glVertexAttrib2fv, "_glViewport": _glViewport, "_emscripten_glUniform4iv": _emscripten_glUniform4iv, "_emscripten_glGetTexParameteriv": _emscripten_glGetTexParameteriv, "___setErrNo": ___setErrNo, "_eglGetProcAddress": _eglGetProcAddress, "_emscripten_glBindAttribLocation": _emscripten_glBindAttribLocation, "_glDeleteTextures": _glDeleteTextures, "_glDepthFunc": _glDepthFunc, "_emscripten_glClientActiveTexture": _emscripten_glClientActiveTexture, "_emscripten_glVertexAttrib2f": _emscripten_glVertexAttrib2f, "_emscripten_glFlush": _emscripten_glFlush, "_emscripten_glCheckFramebufferStatus": _emscripten_glCheckFramebufferStatus, "_emscripten_glGenerateMipmap": _emscripten_glGenerateMipmap, "_emscripten_glGetError": _emscripten_glGetError, "_emscripten_glClearDepthf": _emscripten_glClearDepthf, "_emscripten_glBufferData": _emscripten_glBufferData, "_emscripten_glUniform3i": _emscripten_glUniform3i, "_emscripten_glRotatef": _emscripten_glRotatef, "_emscripten_glDeleteShader": _emscripten_glDeleteShader, "_glEnable": _glEnable, "_emscripten_glReadPixels": _emscripten_glReadPixels, "_emscripten_glMatrixMode": _emscripten_glMatrixMode, "_glGetString": _glGetString, "_emscripten_glClearStencil": _emscripten_glClearStencil, "_emscripten_glGetUniformLocation": _emscripten_glGetUniformLocation, "emscriptenWebGLGet": emscriptenWebGLGet, "_emscripten_glEnableVertexAttribArray": _emscripten_glEnableVertexAttribArray, "_emscripten_glGetAttribLocation": _emscripten_glGetAttribLocation, "_emscripten_get_now": _emscripten_get_now, "_emscripten_glNormalPointer": _emscripten_glNormalPointer, "_glAttachShader": _glAttachShader, "_emscripten_glTexCoordPointer": _emscripten_glTexCoordPointer, "_emscripten_glEnable": _emscripten_glEnable, "_glCreateProgram": _glCreateProgram, "_glUniformMatrix4fv": _glUniformMatrix4fv, "_emscripten_glClearDepth": _emscripten_glClearDepth, "___lock": ___lock, "_llvm_exp2_f32": _llvm_exp2_f32, "___syscall6": ___syscall6, "___syscall5": ___syscall5, "_emscripten_glIsBuffer": _emscripten_glIsBuffer, "_emscripten_glVertexAttrib3f": _emscripten_glVertexAttrib3f, "_time": _time, "_emscripten_glVertexAttrib1f": _emscripten_glVertexAttrib1f, "_emscripten_glGetFramebufferAttachmentParameteriv": _emscripten_glGetFramebufferAttachmentParameteriv, "_emscripten_glBlendEquationSeparate": _emscripten_glBlendEquationSeparate, "_exit": _exit, "_emscripten_glEnableClientState": _emscripten_glEnableClientState, "_emscripten_glUniform4i": _emscripten_glUniform4i, "_emscripten_glDrawRangeElements": _emscripten_glDrawRangeElements, "_glCullFace": _glCullFace, "_emscripten_glGetPointerv": _emscripten_glGetPointerv, "_emscripten_set_keypress_callback": _emscripten_set_keypress_callback, "__emscripten_sample_gamepad_data": __emscripten_sample_gamepad_data, "_emscripten_get_gamepad_status": _emscripten_get_gamepad_status, "_emscripten_glUniform4f": _emscripten_glUniform4f, "_emscripten_glUniform2fv": _emscripten_glUniform2fv, "_glfwGetVideoModes": _glfwGetVideoModes, "_emscripten_set_click_callback": _emscripten_set_click_callback, "_emscripten_glShaderBinary": _emscripten_glShaderBinary, "_emscripten_glDrawElements": _emscripten_glDrawElements, "_emscripten_glBlendFunc": _emscripten_glBlendFunc, "_emscripten_get_num_gamepads": _emscripten_get_num_gamepads, "___syscall221": ___syscall221, "_glCompressedTexImage2D": _glCompressedTexImage2D, "_emscripten_glUniform1iv": _emscripten_glUniform1iv, "_emscripten_glGetVertexAttribPointerv": _emscripten_glGetVertexAttribPointerv, "_glClearDepthf": _glClearDepthf, "_emscripten_glCompressedTexSubImage2D": _emscripten_glCompressedTexSubImage2D, "emscriptenWebGLGetUniform": emscriptenWebGLGetUniform, "_emscripten_glGenRenderbuffers": _emscripten_glGenRenderbuffers, "_emscripten_glDeleteVertexArrays": _emscripten_glDeleteVertexArrays, "_glfwSetWindowShouldClose": _glfwSetWindowShouldClose, "_emscripten_glUniform1fv": _emscripten_glUniform1fv, "_emscripten_glGetActiveUniform": _emscripten_glGetActiveUniform, "_glBindTexture": _glBindTexture, "_emscripten_glUniform3iv": _emscripten_glUniform3iv, "_emscripten_glUniform2iv": _emscripten_glUniform2iv, "_emscripten_glHint": _emscripten_glHint, "_glfwSetCharCallback": _glfwSetCharCallback, "emscriptenWebGLGetVertexAttrib": emscriptenWebGLGetVertexAttrib, "_emscripten_glLoadMatrixf": _emscripten_glLoadMatrixf, "_emscripten_glDeleteProgram": _emscripten_glDeleteProgram, "_emscripten_glDeleteRenderbuffers": _emscripten_glDeleteRenderbuffers, "_emscripten_glDrawElementsInstanced": _emscripten_glDrawElementsInstanced, "_emscripten_glVertexAttrib4f": _emscripten_glVertexAttrib4f, "_glDrawArrays": _glDrawArrays, "_emscripten_glTexSubImage2D": _emscripten_glTexSubImage2D, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_emscripten_glPixelStorei": _emscripten_glPixelStorei, "_glCompileShader": _glCompileShader, "_emscripten_get_pointerlock_status": _emscripten_get_pointerlock_status, "_emscripten_glUniformMatrix3fv": _emscripten_glUniformMatrix3fv, "_emscripten_glColorPointer": _emscripten_glColorPointer, "emscriptenWebGLGetTexPixelData": emscriptenWebGLGetTexPixelData, "_emscripten_glGetBufferParameteriv": _emscripten_glGetBufferParameteriv, "_emscripten_glFinish": _emscripten_glFinish, "_emscripten_request_pointerlock": _emscripten_request_pointerlock, "_glGetFloatv": _glGetFloatv, "_emscripten_asm_const_iii": _emscripten_asm_const_iii, "_emscripten_glDepthMask": _emscripten_glDepthMask, "_glfwSetWindowIconifyCallback": _glfwSetWindowIconifyCallback, "_emscripten_glDrawBuffers": _emscripten_glDrawBuffers, "_glfwTerminate": _glfwTerminate, "_glFrontFace": _glFrontFace, "_emscripten_glGetObjectParameterivARB": _emscripten_glGetObjectParameterivARB, "_emscripten_exit_pointerlock": _emscripten_exit_pointerlock, "_glfwSwapInterval": _glfwSwapInterval, "_glUniform1i": _glUniform1i, "_glEnableVertexAttribArray": _glEnableVertexAttribArray, "_emscripten_glStencilFunc": _emscripten_glStencilFunc, "_abort": _abort, "_emscripten_glGetUniformiv": _emscripten_glGetUniformiv, "_glDeleteBuffers": _glDeleteBuffers, "_glBufferData": _glBufferData, "_glTexImage2D": _glTexImage2D, "_emscripten_glGetShaderiv": _emscripten_glGetShaderiv, "_glfwSetKeyCallback": _glfwSetKeyCallback, "_emscripten_glGenFramebuffers": _emscripten_glGenFramebuffers, "_emscripten_glUniformMatrix4fv": _emscripten_glUniformMatrix4fv, "_emscripten_glLoadIdentity": _emscripten_glLoadIdentity, "_glDeleteShader": _glDeleteShader, "_emscripten_glUniform1f": _emscripten_glUniform1f, "_glGetProgramiv": _glGetProgramiv, "_emscripten_glBindFramebuffer": _emscripten_glBindFramebuffer, "_emscripten_glIsRenderbuffer": _emscripten_glIsRenderbuffer, "_glfwGetTime": _glfwGetTime, "_emscripten_glRenderbufferStorage": _emscripten_glRenderbufferStorage, "_emscripten_set_gamepadconnected_callback": _emscripten_set_gamepadconnected_callback, "_emscripten_glGetVertexAttribiv": _emscripten_glGetVertexAttribiv, "_emscripten_glBindVertexArray": _emscripten_glBindVertexArray, "_emscripten_glDrawArraysInstanced": _emscripten_glDrawArraysInstanced, "_emscripten_set_touchcancel_callback": _emscripten_set_touchcancel_callback, "_emscripten_glCreateShader": _emscripten_glCreateShader, "_emscripten_glStencilMask": _emscripten_glStencilMask, "_emscripten_glDeleteTextures": _emscripten_glDeleteTextures, "_emscripten_glBindRenderbuffer": _emscripten_glBindRenderbuffer, "_glfwGetPrimaryMonitor": _glfwGetPrimaryMonitor, "_glLinkProgram": _glLinkProgram, "_emscripten_glVertexAttribDivisor": _emscripten_glVertexAttribDivisor, "_emscripten_set_touchend_callback": _emscripten_set_touchend_callback, "_emscripten_glGetUniformfv": _emscripten_glGetUniformfv, "_emscripten_glGetVertexAttribfv": _emscripten_glGetVertexAttribfv, "_emscripten_glGetRenderbufferParameteriv": _emscripten_glGetRenderbufferParameteriv, "_emscripten_glDeleteFramebuffers": _emscripten_glDeleteFramebuffers, "_glGetShaderiv": _glGetShaderiv, "_emscripten_glVertexAttrib3fv": _emscripten_glVertexAttrib3fv, "_glGetUniformLocation": _glGetUniformLocation, "_emscripten_glGetInfoLogARB": _emscripten_glGetInfoLogARB, "_emscripten_glCompileShader": _emscripten_glCompileShader, "_glClear": _glClear, "_glGenTextures": _glGenTextures, "_emscripten_glDisable": _emscripten_glDisable, "_emscripten_glDepthRangef": _emscripten_glDepthRangef, "__exit": __exit, "_emscripten_glLineWidth": _emscripten_glLineWidth, "_emscripten_glUniform3f": _emscripten_glUniform3f, "_emscripten_glGetShaderInfoLog": _emscripten_glGetShaderInfoLog, "_emscripten_glStencilOp": _emscripten_glStencilOp, "_glBindAttribLocation": _glBindAttribLocation, "_glPixelStorei": _glPixelStorei, "_emscripten_glColorMask": _emscripten_glColorMask, "_emscripten_glLinkProgram": _emscripten_glLinkProgram, "_emscripten_glBlendEquation": _emscripten_glBlendEquation, "_emscripten_glIsTexture": _emscripten_glIsTexture, "_emscripten_glGetProgramiv": _emscripten_glGetProgramiv, "_emscripten_glVertexAttrib1fv": _emscripten_glVertexAttrib1fv, "_emscripten_glBindTexture": _emscripten_glBindTexture, "_glfwSetMouseButtonCallback": _glfwSetMouseButtonCallback, "_glfwGetCursorPos": _glfwGetCursorPos, "_emscripten_glActiveTexture": _emscripten_glActiveTexture, "_emscripten_glDeleteBuffers": _emscripten_glDeleteBuffers, "___syscall54": ___syscall54, "___unlock": ___unlock, "_emscripten_glBufferSubData": _emscripten_glBufferSubData, "_glfwSwapBuffers": _glfwSwapBuffers, "_emscripten_glDepthRange": _emscripten_glDepthRange, "_emscripten_set_main_loop": _emscripten_set_main_loop, "_emscripten_glGetProgramInfoLog": _emscripten_glGetProgramInfoLog, "_glfwWindowHint": _glfwWindowHint, "_emscripten_glIsShader": _emscripten_glIsShader, "_emscripten_glUniform4fv": _emscripten_glUniform4fv, "_emscripten_glGenVertexArrays": _emscripten_glGenVertexArrays, "_emscripten_glDrawArrays": _emscripten_glDrawArrays, "_emscripten_glCompressedTexImage2D": _emscripten_glCompressedTexImage2D, "_emscripten_glClearColor": _emscripten_glClearColor, "_emscripten_glCreateProgram": _emscripten_glCreateProgram, "_emscripten_glCopyTexSubImage2D": _emscripten_glCopyTexSubImage2D, "_glTexParameteri": _glTexParameteri, "_emscripten_glBindBuffer": _emscripten_glBindBuffer, "_emscripten_glGetFloatv": _emscripten_glGetFloatv, "_emscripten_glDetachShader": _emscripten_glDetachShader, "_glClearColor": _glClearColor, "_glfwSetCursorPosCallback": _glfwSetCursorPosCallback, "_glTexParameterf": _glTexParameterf, "_glfwSetCursorEnterCallback": _glfwSetCursorEnterCallback, "_emscripten_glCopyTexImage2D": _emscripten_glCopyTexImage2D, "_emscripten_glTexImage2D": _emscripten_glTexImage2D, "DYNAMICTOP_PTR": DYNAMICTOP_PTR, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "cttz_i8": cttz_i8 };
  8995. // EMSCRIPTEN_START_ASM
  8996. var asm = (function(global, env, buffer) {
  8997. 'use asm';
  8998. var HEAP8 = new global.Int8Array(buffer);
  8999. var HEAP16 = new global.Int16Array(buffer);
  9000. var HEAP32 = new global.Int32Array(buffer);
  9001. var HEAPU8 = new global.Uint8Array(buffer);
  9002. var HEAPU16 = new global.Uint16Array(buffer);
  9003. var HEAPU32 = new global.Uint32Array(buffer);
  9004. var HEAPF32 = new global.Float32Array(buffer);
  9005. var HEAPF64 = new global.Float64Array(buffer);
  9006. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9007. var tempDoublePtr=env.tempDoublePtr|0;
  9008. var ABORT=env.ABORT|0;
  9009. var STACKTOP=env.STACKTOP|0;
  9010. var STACK_MAX=env.STACK_MAX|0;
  9011. var cttz_i8=env.cttz_i8|0;
  9012. var __THREW__ = 0;
  9013. var threwValue = 0;
  9014. var setjmpId = 0;
  9015. var undef = 0;
  9016. var nan = global.NaN, inf = global.Infinity;
  9017. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9018. var tempRet0 = 0;
  9019. var Math_floor=global.Math.floor;
  9020. var Math_abs=global.Math.abs;
  9021. var Math_sqrt=global.Math.sqrt;
  9022. var Math_pow=global.Math.pow;
  9023. var Math_cos=global.Math.cos;
  9024. var Math_sin=global.Math.sin;
  9025. var Math_tan=global.Math.tan;
  9026. var Math_acos=global.Math.acos;
  9027. var Math_asin=global.Math.asin;
  9028. var Math_atan=global.Math.atan;
  9029. var Math_atan2=global.Math.atan2;
  9030. var Math_exp=global.Math.exp;
  9031. var Math_log=global.Math.log;
  9032. var Math_ceil=global.Math.ceil;
  9033. var Math_imul=global.Math.imul;
  9034. var Math_min=global.Math.min;
  9035. var Math_max=global.Math.max;
  9036. var Math_clz32=global.Math.clz32;
  9037. var abort=env.abort;
  9038. var assert=env.assert;
  9039. var enlargeMemory=env.enlargeMemory;
  9040. var getTotalMemory=env.getTotalMemory;
  9041. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9042. var abortStackOverflow=env.abortStackOverflow;
  9043. var nullFunc_viiiii=env.nullFunc_viiiii;
  9044. var nullFunc_vd=env.nullFunc_vd;
  9045. var nullFunc_vid=env.nullFunc_vid;
  9046. var nullFunc_vi=env.nullFunc_vi;
  9047. var nullFunc_vii=env.nullFunc_vii;
  9048. var nullFunc_ii=env.nullFunc_ii;
  9049. var nullFunc_viddd=env.nullFunc_viddd;
  9050. var nullFunc_vidd=env.nullFunc_vidd;
  9051. var nullFunc_iiii=env.nullFunc_iiii;
  9052. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9053. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9054. var nullFunc_viii=env.nullFunc_viii;
  9055. var nullFunc_vidddd=env.nullFunc_vidddd;
  9056. var nullFunc_vdi=env.nullFunc_vdi;
  9057. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9058. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9059. var nullFunc_iii=env.nullFunc_iii;
  9060. var nullFunc_i=env.nullFunc_i;
  9061. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9062. var nullFunc_vdddd=env.nullFunc_vdddd;
  9063. var nullFunc_vdd=env.nullFunc_vdd;
  9064. var nullFunc_v=env.nullFunc_v;
  9065. var nullFunc_viid=env.nullFunc_viid;
  9066. var nullFunc_viiii=env.nullFunc_viiii;
  9067. var invoke_viiiii=env.invoke_viiiii;
  9068. var invoke_vd=env.invoke_vd;
  9069. var invoke_vid=env.invoke_vid;
  9070. var invoke_vi=env.invoke_vi;
  9071. var invoke_vii=env.invoke_vii;
  9072. var invoke_ii=env.invoke_ii;
  9073. var invoke_viddd=env.invoke_viddd;
  9074. var invoke_vidd=env.invoke_vidd;
  9075. var invoke_iiii=env.invoke_iiii;
  9076. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9077. var invoke_viiiiii=env.invoke_viiiiii;
  9078. var invoke_viii=env.invoke_viii;
  9079. var invoke_vidddd=env.invoke_vidddd;
  9080. var invoke_vdi=env.invoke_vdi;
  9081. var invoke_viiiiiii=env.invoke_viiiiiii;
  9082. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9083. var invoke_iii=env.invoke_iii;
  9084. var invoke_i=env.invoke_i;
  9085. var invoke_vdddddd=env.invoke_vdddddd;
  9086. var invoke_vdddd=env.invoke_vdddd;
  9087. var invoke_vdd=env.invoke_vdd;
  9088. var invoke_v=env.invoke_v;
  9089. var invoke_viid=env.invoke_viid;
  9090. var invoke_viiii=env.invoke_viiii;
  9091. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9092. var _glUseProgram=env._glUseProgram;
  9093. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9094. var _glfwCreateWindow=env._glfwCreateWindow;
  9095. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9096. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9097. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9098. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9099. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9100. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9101. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9102. var _emscripten_glViewport=env._emscripten_glViewport;
  9103. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9104. var ___assert_fail=env.___assert_fail;
  9105. var _glDeleteProgram=env._glDeleteProgram;
  9106. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9107. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9108. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9109. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9110. var _glBindBuffer=env._glBindBuffer;
  9111. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9112. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9113. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9114. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9115. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9116. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9117. var _glDisable=env._glDisable;
  9118. var _glBlendFunc=env._glBlendFunc;
  9119. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9120. var _glGetAttribLocation=env._glGetAttribLocation;
  9121. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9122. var _glCreateShader=env._glCreateShader;
  9123. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9124. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9125. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9126. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9127. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9128. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9129. var _glUniform4f=env._glUniform4f;
  9130. var _llvm_stacksave=env._llvm_stacksave;
  9131. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9132. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9133. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9134. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9135. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9136. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9137. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9138. var _glfwInit=env._glfwInit;
  9139. var _glGenBuffers=env._glGenBuffers;
  9140. var _glShaderSource=env._glShaderSource;
  9141. var _emscripten_glGetString=env._emscripten_glGetString;
  9142. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9143. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9144. var _emscripten_glScissor=env._emscripten_glScissor;
  9145. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9146. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9147. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9148. var ___syscall145=env.___syscall145;
  9149. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9150. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9151. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9152. var ___syscall140=env.___syscall140;
  9153. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9154. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9155. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9156. var ___syscall146=env.___syscall146;
  9157. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9158. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9159. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9160. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9161. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9162. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9163. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9164. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9165. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9166. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9167. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9168. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9169. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9170. var _llvm_stackrestore=env._llvm_stackrestore;
  9171. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9172. var _emscripten_glClear=env._emscripten_glClear;
  9173. var _glDrawElements=env._glDrawElements;
  9174. var _glBufferSubData=env._glBufferSubData;
  9175. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9176. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9177. var _glViewport=env._glViewport;
  9178. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9179. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9180. var ___setErrNo=env.___setErrNo;
  9181. var _eglGetProcAddress=env._eglGetProcAddress;
  9182. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9183. var _glDeleteTextures=env._glDeleteTextures;
  9184. var _glDepthFunc=env._glDepthFunc;
  9185. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9186. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9187. var _emscripten_glFlush=env._emscripten_glFlush;
  9188. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9189. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9190. var _emscripten_glGetError=env._emscripten_glGetError;
  9191. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9192. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9193. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9194. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9195. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9196. var _glEnable=env._glEnable;
  9197. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9198. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9199. var _glGetString=env._glGetString;
  9200. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9201. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9202. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9203. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9204. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9205. var _emscripten_get_now=env._emscripten_get_now;
  9206. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9207. var _glAttachShader=env._glAttachShader;
  9208. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9209. var _emscripten_glEnable=env._emscripten_glEnable;
  9210. var _glCreateProgram=env._glCreateProgram;
  9211. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9212. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9213. var ___lock=env.___lock;
  9214. var _llvm_exp2_f32=env._llvm_exp2_f32;
  9215. var ___syscall6=env.___syscall6;
  9216. var ___syscall5=env.___syscall5;
  9217. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9218. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9219. var _time=env._time;
  9220. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9221. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9222. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9223. var _exit=env._exit;
  9224. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9225. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9226. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9227. var _glCullFace=env._glCullFace;
  9228. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9229. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9230. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9231. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9232. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9233. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9234. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9235. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9236. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9237. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9238. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9239. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9240. var ___syscall221=env.___syscall221;
  9241. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9242. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9243. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9244. var _glClearDepthf=env._glClearDepthf;
  9245. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9246. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9247. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9248. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9249. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9250. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9251. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9252. var _glBindTexture=env._glBindTexture;
  9253. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9254. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9255. var _emscripten_glHint=env._emscripten_glHint;
  9256. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9257. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9258. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9259. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9260. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9261. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9262. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9263. var _glDrawArrays=env._glDrawArrays;
  9264. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9265. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9266. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9267. var _glCompileShader=env._glCompileShader;
  9268. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9269. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9270. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9271. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9272. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9273. var _emscripten_glFinish=env._emscripten_glFinish;
  9274. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9275. var _glGetFloatv=env._glGetFloatv;
  9276. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9277. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9278. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9279. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9280. var _glfwTerminate=env._glfwTerminate;
  9281. var _glFrontFace=env._glFrontFace;
  9282. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9283. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9284. var _glfwSwapInterval=env._glfwSwapInterval;
  9285. var _glUniform1i=env._glUniform1i;
  9286. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9287. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9288. var _abort=env._abort;
  9289. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9290. var _glDeleteBuffers=env._glDeleteBuffers;
  9291. var _glBufferData=env._glBufferData;
  9292. var _glTexImage2D=env._glTexImage2D;
  9293. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9294. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9295. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9296. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9297. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9298. var _glDeleteShader=env._glDeleteShader;
  9299. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9300. var _glGetProgramiv=env._glGetProgramiv;
  9301. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9302. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9303. var _glfwGetTime=env._glfwGetTime;
  9304. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9305. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9306. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9307. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9308. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9309. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9310. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9311. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9312. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9313. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9314. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9315. var _glLinkProgram=env._glLinkProgram;
  9316. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9317. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9318. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9319. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9320. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9321. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9322. var _glGetShaderiv=env._glGetShaderiv;
  9323. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9324. var _glGetUniformLocation=env._glGetUniformLocation;
  9325. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9326. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9327. var _glClear=env._glClear;
  9328. var _glGenTextures=env._glGenTextures;
  9329. var _emscripten_glDisable=env._emscripten_glDisable;
  9330. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9331. var __exit=env.__exit;
  9332. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9333. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9334. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9335. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9336. var _glBindAttribLocation=env._glBindAttribLocation;
  9337. var _glPixelStorei=env._glPixelStorei;
  9338. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9339. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9340. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9341. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9342. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9343. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9344. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9345. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9346. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9347. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9348. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9349. var ___syscall54=env.___syscall54;
  9350. var ___unlock=env.___unlock;
  9351. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9352. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9353. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9354. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9355. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9356. var _glfwWindowHint=env._glfwWindowHint;
  9357. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9358. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9359. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9360. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9361. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9362. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9363. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9364. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9365. var _glTexParameteri=env._glTexParameteri;
  9366. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9367. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9368. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9369. var _glClearColor=env._glClearColor;
  9370. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9371. var _glTexParameterf=env._glTexParameterf;
  9372. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9373. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9374. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9375. var tempFloat = 0.0;
  9376. // EMSCRIPTEN_START_FUNCS
  9377. function stackAlloc(size) {
  9378. size = size|0;
  9379. var ret = 0;
  9380. ret = STACKTOP;
  9381. STACKTOP = (STACKTOP + size)|0;
  9382. STACKTOP = (STACKTOP + 15)&-16;
  9383. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9384. return ret|0;
  9385. }
  9386. function stackSave() {
  9387. return STACKTOP|0;
  9388. }
  9389. function stackRestore(top) {
  9390. top = top|0;
  9391. STACKTOP = top;
  9392. }
  9393. function establishStackSpace(stackBase, stackMax) {
  9394. stackBase = stackBase|0;
  9395. stackMax = stackMax|0;
  9396. STACKTOP = stackBase;
  9397. STACK_MAX = stackMax;
  9398. }
  9399. function setThrew(threw, value) {
  9400. threw = threw|0;
  9401. value = value|0;
  9402. if ((__THREW__|0) == 0) {
  9403. __THREW__ = threw;
  9404. threwValue = value;
  9405. }
  9406. }
  9407. function setTempRet0(value) {
  9408. value = value|0;
  9409. tempRet0 = value;
  9410. }
  9411. function getTempRet0() {
  9412. return tempRet0|0;
  9413. }
  9414. function _main() {
  9415. var $$01618 = 0, $$byval_copy8 = 0, $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0.0;
  9416. var $25 = 0.0, $26 = 0.0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0.0, $33 = 0, $34 = 0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0.0, $5 = 0, $6 = 0;
  9417. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9418. sp = STACKTOP;
  9419. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  9420. $$byval_copy8 = sp + 264|0;
  9421. $0 = sp + 296|0;
  9422. $1 = sp + 232|0;
  9423. $2 = sp + 200|0;
  9424. $3 = sp + 168|0;
  9425. $4 = sp + 136|0;
  9426. $5 = sp + 104|0;
  9427. $6 = sp + 72|0;
  9428. $7 = sp + 40|0;
  9429. $8 = sp + 8|0;
  9430. $9 = sp;
  9431. $10 = HEAP32[2]|0;
  9432. $11 = HEAP32[3]|0;
  9433. _InitWindow($10,$11,4272);
  9434. dest=$0; src=4309; 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));
  9435. HEAP32[5018] = $0;
  9436. HEAP32[5019] = 4341;
  9437. _LoadSpriteFont($1,4853);
  9438. ;HEAP32[20080>>2]=HEAP32[$1>>2]|0;HEAP32[20080+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[20080+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[20080+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[20080+16>>2]=HEAP32[$1+16>>2]|0;HEAP32[20080+20>>2]=HEAP32[$1+20>>2]|0;HEAP32[20080+24>>2]=HEAP32[$1+24>>2]|0;HEAP32[20080+28>>2]=HEAP32[$1+28>>2]|0;
  9439. _LoadSpriteFont($2,4881);
  9440. ;HEAP32[(20112)>>2]=HEAP32[$2>>2]|0;HEAP32[(20112)+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[(20112)+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[(20112)+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[(20112)+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[(20112)+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[(20112)+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[(20112)+28>>2]=HEAP32[$2+28>>2]|0;
  9441. _LoadSpriteFont($3,4911);
  9442. ;HEAP32[(20144)>>2]=HEAP32[$3>>2]|0;HEAP32[(20144)+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[(20144)+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[(20144)+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[(20144)+16>>2]=HEAP32[$3+16>>2]|0;HEAP32[(20144)+20>>2]=HEAP32[$3+20>>2]|0;HEAP32[(20144)+24>>2]=HEAP32[$3+24>>2]|0;HEAP32[(20144)+28>>2]=HEAP32[$3+28>>2]|0;
  9443. _LoadSpriteFont($4,4937);
  9444. ;HEAP32[(20176)>>2]=HEAP32[$4>>2]|0;HEAP32[(20176)+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[(20176)+8>>2]=HEAP32[$4+8>>2]|0;HEAP32[(20176)+12>>2]=HEAP32[$4+12>>2]|0;HEAP32[(20176)+16>>2]=HEAP32[$4+16>>2]|0;HEAP32[(20176)+20>>2]=HEAP32[$4+20>>2]|0;HEAP32[(20176)+24>>2]=HEAP32[$4+24>>2]|0;HEAP32[(20176)+28>>2]=HEAP32[$4+28>>2]|0;
  9445. _LoadSpriteFont($5,4965);
  9446. ;HEAP32[(20208)>>2]=HEAP32[$5>>2]|0;HEAP32[(20208)+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[(20208)+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[(20208)+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[(20208)+16>>2]=HEAP32[$5+16>>2]|0;HEAP32[(20208)+20>>2]=HEAP32[$5+20>>2]|0;HEAP32[(20208)+24>>2]=HEAP32[$5+24>>2]|0;HEAP32[(20208)+28>>2]=HEAP32[$5+28>>2]|0;
  9447. _LoadSpriteFont($6,4993);
  9448. ;HEAP32[(20240)>>2]=HEAP32[$6>>2]|0;HEAP32[(20240)+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[(20240)+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[(20240)+12>>2]=HEAP32[$6+12>>2]|0;HEAP32[(20240)+16>>2]=HEAP32[$6+16>>2]|0;HEAP32[(20240)+20>>2]=HEAP32[$6+20>>2]|0;HEAP32[(20240)+24>>2]=HEAP32[$6+24>>2]|0;HEAP32[(20240)+28>>2]=HEAP32[$6+28>>2]|0;
  9449. _LoadSpriteFont($7,5024);
  9450. ;HEAP32[(20272)>>2]=HEAP32[$7>>2]|0;HEAP32[(20272)+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[(20272)+8>>2]=HEAP32[$7+8>>2]|0;HEAP32[(20272)+12>>2]=HEAP32[$7+12>>2]|0;HEAP32[(20272)+16>>2]=HEAP32[$7+16>>2]|0;HEAP32[(20272)+20>>2]=HEAP32[$7+20>>2]|0;HEAP32[(20272)+24>>2]=HEAP32[$7+24>>2]|0;HEAP32[(20272)+28>>2]=HEAP32[$7+28>>2]|0;
  9451. _LoadSpriteFont($8,5055);
  9452. ;HEAP32[(20304)>>2]=HEAP32[$8>>2]|0;HEAP32[(20304)+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[(20304)+8>>2]=HEAP32[$8+8>>2]|0;HEAP32[(20304)+12>>2]=HEAP32[$8+12>>2]|0;HEAP32[(20304)+16>>2]=HEAP32[$8+16>>2]|0;HEAP32[(20304)+20>>2]=HEAP32[$8+20>>2]|0;HEAP32[(20304)+24>>2]=HEAP32[$8+24>>2]|0;HEAP32[(20304)+28>>2]=HEAP32[$8+28>>2]|0;
  9453. $$01618 = 0;
  9454. while(1) {
  9455. $12 = HEAP32[2]|0;
  9456. $13 = (($12|0) / 2)&-1;
  9457. $14 = (+($13|0));
  9458. $15 = (20080 + ($$01618<<5)|0);
  9459. $16 = HEAP32[5019]|0;
  9460. $17 = (($16) + ($$01618<<6)|0);
  9461. $18 = (((20080 + ($$01618<<5)|0)) + 20|0);
  9462. $19 = HEAP32[$18>>2]|0;
  9463. $20 = $19 << 1;
  9464. $21 = (+($20|0));
  9465. $22 = (16 + ($$01618<<2)|0);
  9466. $23 = HEAP32[$22>>2]|0;
  9467. ;HEAP32[$$byval_copy8>>2]=HEAP32[$15>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[$15+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[$15+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[$15+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[$15+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[$15+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[$15+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[$15+28>>2]|0;
  9468. _MeasureTextEx($9,$$byval_copy8,$17,$21,$23);
  9469. $24 = +HEAPF32[$9>>2];
  9470. $25 = $24 * 0.5;
  9471. $26 = $14 - $25;
  9472. $27 = (20336 + ($$01618<<3)|0);
  9473. HEAPF32[$27>>2] = $26;
  9474. $28 = HEAP32[$18>>2]|0;
  9475. $29 = ($$01618*45)|0;
  9476. $30 = (($29) + 60)|0;
  9477. $31 = (($30) + ($28))|0;
  9478. $32 = (+($31|0));
  9479. $33 = (((20336 + ($$01618<<3)|0)) + 4|0);
  9480. HEAPF32[$33>>2] = $32;
  9481. $34 = (($$01618) + 1)|0;
  9482. $exitcond = ($34|0)==(8);
  9483. if ($exitcond) {
  9484. break;
  9485. } else {
  9486. $$01618 = $34;
  9487. }
  9488. }
  9489. $35 = +HEAPF32[(20364)>>2];
  9490. $36 = $35 + 8.0;
  9491. HEAPF32[(20364)>>2] = $36;
  9492. $37 = +HEAPF32[(20372)>>2];
  9493. $38 = $37 + 2.0;
  9494. HEAPF32[(20372)>>2] = $38;
  9495. $39 = +HEAPF32[(20396)>>2];
  9496. $40 = $39 + -8.0;
  9497. HEAPF32[(20396)>>2] = $40;
  9498. _emscripten_set_main_loop((1|0),0,1);
  9499. ;HEAP32[$$byval_copy8>>2]=HEAP32[20080>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[20080+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[20080+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[20080+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[20080+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[20080+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[20080+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[20080+28>>2]|0;
  9500. _UnloadSpriteFont($$byval_copy8);
  9501. ;HEAP32[$$byval_copy8>>2]=HEAP32[(20112)>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[(20112)+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[(20112)+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[(20112)+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[(20112)+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[(20112)+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[(20112)+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[(20112)+28>>2]|0;
  9502. _UnloadSpriteFont($$byval_copy8);
  9503. ;HEAP32[$$byval_copy8>>2]=HEAP32[(20144)>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[(20144)+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[(20144)+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[(20144)+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[(20144)+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[(20144)+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[(20144)+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[(20144)+28>>2]|0;
  9504. _UnloadSpriteFont($$byval_copy8);
  9505. ;HEAP32[$$byval_copy8>>2]=HEAP32[(20176)>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[(20176)+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[(20176)+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[(20176)+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[(20176)+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[(20176)+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[(20176)+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[(20176)+28>>2]|0;
  9506. _UnloadSpriteFont($$byval_copy8);
  9507. ;HEAP32[$$byval_copy8>>2]=HEAP32[(20208)>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[(20208)+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[(20208)+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[(20208)+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[(20208)+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[(20208)+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[(20208)+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[(20208)+28>>2]|0;
  9508. _UnloadSpriteFont($$byval_copy8);
  9509. ;HEAP32[$$byval_copy8>>2]=HEAP32[(20240)>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[(20240)+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[(20240)+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[(20240)+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[(20240)+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[(20240)+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[(20240)+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[(20240)+28>>2]|0;
  9510. _UnloadSpriteFont($$byval_copy8);
  9511. ;HEAP32[$$byval_copy8>>2]=HEAP32[(20272)>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[(20272)+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[(20272)+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[(20272)+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[(20272)+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[(20272)+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[(20272)+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[(20272)+28>>2]|0;
  9512. _UnloadSpriteFont($$byval_copy8);
  9513. ;HEAP32[$$byval_copy8>>2]=HEAP32[(20304)>>2]|0;HEAP32[$$byval_copy8+4>>2]=HEAP32[(20304)+4>>2]|0;HEAP32[$$byval_copy8+8>>2]=HEAP32[(20304)+8>>2]|0;HEAP32[$$byval_copy8+12>>2]=HEAP32[(20304)+12>>2]|0;HEAP32[$$byval_copy8+16>>2]=HEAP32[(20304)+16>>2]|0;HEAP32[$$byval_copy8+20>>2]=HEAP32[(20304)+20>>2]|0;HEAP32[$$byval_copy8+24>>2]=HEAP32[(20304)+24>>2]|0;HEAP32[$$byval_copy8+28>>2]=HEAP32[(20304)+28>>2]|0;
  9514. _UnloadSpriteFont($$byval_copy8);
  9515. _CloseWindow();
  9516. STACKTOP = sp;return 0;
  9517. }
  9518. function _UpdateDrawFrame() {
  9519. var $$09 = 0, $$byval_copy3 = 0, $$byval_copy4 = 0, $$byval_copy5 = 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.0, $2 = 0, $20 = 0, $21 = 0, $22 = 0;
  9520. var $23 = 0, $24 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
  9521. sp = STACKTOP;
  9522. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  9523. $$byval_copy5 = sp + 52|0;
  9524. $$byval_copy4 = sp + 32|0;
  9525. $$byval_copy3 = sp;
  9526. $0 = sp + 48|0;
  9527. $1 = sp + 44|0;
  9528. $2 = sp + 40|0;
  9529. _BeginDrawing();
  9530. HEAP8[$0>>0] = -11;
  9531. $3 = ((($0)) + 1|0);
  9532. HEAP8[$3>>0] = -11;
  9533. $4 = ((($0)) + 2|0);
  9534. HEAP8[$4>>0] = -11;
  9535. $5 = ((($0)) + 3|0);
  9536. HEAP8[$5>>0] = -1;
  9537. ;HEAP8[$$byval_copy5>>0]=HEAP8[$0>>0]|0;HEAP8[$$byval_copy5+1>>0]=HEAP8[$0+1>>0]|0;HEAP8[$$byval_copy5+2>>0]=HEAP8[$0+2>>0]|0;HEAP8[$$byval_copy5+3>>0]=HEAP8[$0+3>>0]|0;
  9538. _ClearBackground($$byval_copy5);
  9539. HEAP8[$1>>0] = 80;
  9540. $6 = ((($1)) + 1|0);
  9541. HEAP8[$6>>0] = 80;
  9542. $7 = ((($1)) + 2|0);
  9543. HEAP8[$7>>0] = 80;
  9544. $8 = ((($1)) + 3|0);
  9545. HEAP8[$8>>0] = -1;
  9546. ;HEAP8[$$byval_copy5>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy5+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy5+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy5+3>>0]=HEAP8[$1+3>>0]|0;
  9547. _DrawText(5089,250,20,20,$$byval_copy5);
  9548. HEAP8[$2>>0] = 80;
  9549. $9 = ((($2)) + 1|0);
  9550. HEAP8[$9>>0] = 80;
  9551. $10 = ((($2)) + 2|0);
  9552. HEAP8[$10>>0] = 80;
  9553. $11 = ((($2)) + 3|0);
  9554. HEAP8[$11>>0] = -1;
  9555. ;HEAP8[$$byval_copy5>>0]=HEAP8[$2>>0]|0;HEAP8[$$byval_copy5+1>>0]=HEAP8[$2+1>>0]|0;HEAP8[$$byval_copy5+2>>0]=HEAP8[$2+2>>0]|0;HEAP8[$$byval_copy5+3>>0]=HEAP8[$2+3>>0]|0;
  9556. _DrawLine(220,50,590,50,$$byval_copy5);
  9557. $$09 = 0;
  9558. while(1) {
  9559. $12 = (20080 + ($$09<<5)|0);
  9560. $13 = HEAP32[5019]|0;
  9561. $14 = (($13) + ($$09<<6)|0);
  9562. $15 = (20336 + ($$09<<3)|0);
  9563. $16 = (((20080 + ($$09<<5)|0)) + 20|0);
  9564. $17 = HEAP32[$16>>2]|0;
  9565. $18 = $17 << 1;
  9566. $19 = (+($18|0));
  9567. $20 = (16 + ($$09<<2)|0);
  9568. $21 = HEAP32[$20>>2]|0;
  9569. $22 = HEAP32[5018]|0;
  9570. $23 = (($22) + ($$09<<2)|0);
  9571. ;HEAP32[$$byval_copy3>>2]=HEAP32[$12>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$12+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[$12+12>>2]|0;HEAP32[$$byval_copy3+16>>2]=HEAP32[$12+16>>2]|0;HEAP32[$$byval_copy3+20>>2]=HEAP32[$12+20>>2]|0;HEAP32[$$byval_copy3+24>>2]=HEAP32[$12+24>>2]|0;HEAP32[$$byval_copy3+28>>2]=HEAP32[$12+28>>2]|0;
  9572. ;HEAP32[$$byval_copy4>>2]=HEAP32[$15>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$15+4>>2]|0;
  9573. ;HEAP8[$$byval_copy5>>0]=HEAP8[$23>>0]|0;HEAP8[$$byval_copy5+1>>0]=HEAP8[$23+1>>0]|0;HEAP8[$$byval_copy5+2>>0]=HEAP8[$23+2>>0]|0;HEAP8[$$byval_copy5+3>>0]=HEAP8[$23+3>>0]|0;
  9574. _DrawTextEx($$byval_copy3,$14,$$byval_copy4,$19,$21,$$byval_copy5);
  9575. $24 = (($$09) + 1)|0;
  9576. $exitcond = ($24|0)==(8);
  9577. if ($exitcond) {
  9578. break;
  9579. } else {
  9580. $$09 = $24;
  9581. }
  9582. }
  9583. _EndDrawing();
  9584. STACKTOP = sp;return;
  9585. }
  9586. function _Vector2Distance($0,$1) {
  9587. $0 = $0|0;
  9588. $1 = $1|0;
  9589. 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;
  9590. sp = STACKTOP;
  9591. $2 = +HEAPF32[$0>>2];
  9592. $3 = +HEAPF32[$1>>2];
  9593. $4 = $2 - $3;
  9594. $5 = $4 * $4;
  9595. $6 = ((($0)) + 4|0);
  9596. $7 = +HEAPF32[$6>>2];
  9597. $8 = ((($1)) + 4|0);
  9598. $9 = +HEAPF32[$8>>2];
  9599. $10 = $7 - $9;
  9600. $11 = $10 * $10;
  9601. $12 = $5 + $11;
  9602. $13 = (+Math_sqrt((+$12)));
  9603. return (+$13);
  9604. }
  9605. function _Vector2Angle($0,$1) {
  9606. $0 = $0|0;
  9607. $1 = $1|0;
  9608. 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;
  9609. sp = STACKTOP;
  9610. $2 = ((($1)) + 4|0);
  9611. $3 = +HEAPF32[$2>>2];
  9612. $4 = ((($0)) + 4|0);
  9613. $5 = +HEAPF32[$4>>2];
  9614. $6 = $3 - $5;
  9615. $7 = +HEAPF32[$1>>2];
  9616. $8 = +HEAPF32[$0>>2];
  9617. $9 = $7 - $8;
  9618. $10 = (+Math_atan2((+$6),(+$9)));
  9619. $11 = $10 * 57.2957763671875;
  9620. $12 = $11 < 0.0;
  9621. $13 = $11 + 360.0;
  9622. $$0 = $12 ? $13 : $11;
  9623. return (+$$0);
  9624. }
  9625. function _VectorZero($0) {
  9626. $0 = $0|0;
  9627. var $1 = 0, $2 = 0, label = 0, sp = 0;
  9628. sp = STACKTOP;
  9629. HEAPF32[$0>>2] = 0.0;
  9630. $1 = ((($0)) + 4|0);
  9631. HEAPF32[$1>>2] = 0.0;
  9632. $2 = ((($0)) + 8|0);
  9633. HEAPF32[$2>>2] = 0.0;
  9634. return;
  9635. }
  9636. function _VectorLength($0) {
  9637. $0 = $0|0;
  9638. 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;
  9639. sp = STACKTOP;
  9640. $1 = +HEAPF32[$0>>2];
  9641. $2 = $1 * $1;
  9642. $3 = ((($0)) + 4|0);
  9643. $4 = +HEAPF32[$3>>2];
  9644. $5 = $4 * $4;
  9645. $6 = $2 + $5;
  9646. $7 = ((($0)) + 8|0);
  9647. $8 = +HEAPF32[$7>>2];
  9648. $9 = $8 * $8;
  9649. $10 = $6 + $9;
  9650. $11 = (+Math_sqrt((+$10)));
  9651. return (+$11);
  9652. }
  9653. function _VectorNormalize($0) {
  9654. $0 = $0|0;
  9655. 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;
  9656. sp = STACKTOP;
  9657. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  9658. $$byval_copy = sp;
  9659. ;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;
  9660. $1 = (+_VectorLength($$byval_copy));
  9661. $2 = $1 == 0.0;
  9662. $$op = 1.0 / $1;
  9663. $3 = $2 ? 1.0 : $$op;
  9664. $4 = +HEAPF32[$0>>2];
  9665. $5 = $4 * $3;
  9666. HEAPF32[$0>>2] = $5;
  9667. $6 = ((($0)) + 4|0);
  9668. $7 = +HEAPF32[$6>>2];
  9669. $8 = $3 * $7;
  9670. HEAPF32[$6>>2] = $8;
  9671. $9 = ((($0)) + 8|0);
  9672. $10 = +HEAPF32[$9>>2];
  9673. $11 = $3 * $10;
  9674. HEAPF32[$9>>2] = $11;
  9675. STACKTOP = sp;return;
  9676. }
  9677. function _VectorTransform($0,$1) {
  9678. $0 = $0|0;
  9679. $1 = $1|0;
  9680. 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;
  9681. 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;
  9682. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9683. sp = STACKTOP;
  9684. $2 = +HEAPF32[$0>>2];
  9685. $3 = ((($0)) + 4|0);
  9686. $4 = +HEAPF32[$3>>2];
  9687. $5 = ((($0)) + 8|0);
  9688. $6 = +HEAPF32[$5>>2];
  9689. $7 = +HEAPF32[$1>>2];
  9690. $8 = $2 * $7;
  9691. $9 = ((($1)) + 4|0);
  9692. $10 = +HEAPF32[$9>>2];
  9693. $11 = $4 * $10;
  9694. $12 = $8 + $11;
  9695. $13 = ((($1)) + 8|0);
  9696. $14 = +HEAPF32[$13>>2];
  9697. $15 = $6 * $14;
  9698. $16 = $12 + $15;
  9699. $17 = ((($1)) + 12|0);
  9700. $18 = +HEAPF32[$17>>2];
  9701. $19 = $18 + $16;
  9702. HEAPF32[$0>>2] = $19;
  9703. $20 = ((($1)) + 16|0);
  9704. $21 = +HEAPF32[$20>>2];
  9705. $22 = $2 * $21;
  9706. $23 = ((($1)) + 20|0);
  9707. $24 = +HEAPF32[$23>>2];
  9708. $25 = $4 * $24;
  9709. $26 = $22 + $25;
  9710. $27 = ((($1)) + 24|0);
  9711. $28 = +HEAPF32[$27>>2];
  9712. $29 = $6 * $28;
  9713. $30 = $26 + $29;
  9714. $31 = ((($1)) + 28|0);
  9715. $32 = +HEAPF32[$31>>2];
  9716. $33 = $32 + $30;
  9717. HEAPF32[$3>>2] = $33;
  9718. $34 = ((($1)) + 32|0);
  9719. $35 = +HEAPF32[$34>>2];
  9720. $36 = $2 * $35;
  9721. $37 = ((($1)) + 36|0);
  9722. $38 = +HEAPF32[$37>>2];
  9723. $39 = $4 * $38;
  9724. $40 = $36 + $39;
  9725. $41 = ((($1)) + 40|0);
  9726. $42 = +HEAPF32[$41>>2];
  9727. $43 = $6 * $42;
  9728. $44 = $40 + $43;
  9729. $45 = ((($1)) + 44|0);
  9730. $46 = +HEAPF32[$45>>2];
  9731. $47 = $46 + $44;
  9732. HEAPF32[$5>>2] = $47;
  9733. return;
  9734. }
  9735. function _MatrixTranspose($0) {
  9736. $0 = $0|0;
  9737. 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;
  9738. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  9739. sp = STACKTOP;
  9740. $1 = ((($0)) + 4|0);
  9741. $2 = HEAP32[$1>>2]|0;
  9742. $3 = ((($0)) + 8|0);
  9743. $4 = HEAP32[$3>>2]|0;
  9744. $5 = ((($0)) + 12|0);
  9745. $6 = HEAP32[$5>>2]|0;
  9746. $7 = ((($0)) + 16|0);
  9747. $8 = HEAP32[$7>>2]|0;
  9748. $9 = ((($0)) + 24|0);
  9749. $10 = HEAP32[$9>>2]|0;
  9750. $11 = ((($0)) + 28|0);
  9751. $12 = HEAP32[$11>>2]|0;
  9752. $13 = ((($0)) + 32|0);
  9753. $14 = HEAP32[$13>>2]|0;
  9754. $15 = ((($0)) + 36|0);
  9755. $16 = HEAP32[$15>>2]|0;
  9756. $17 = ((($0)) + 44|0);
  9757. $18 = HEAP32[$17>>2]|0;
  9758. $19 = ((($0)) + 48|0);
  9759. $20 = HEAP32[$19>>2]|0;
  9760. $21 = ((($0)) + 52|0);
  9761. $22 = HEAP32[$21>>2]|0;
  9762. $23 = ((($0)) + 56|0);
  9763. $24 = HEAP32[$23>>2]|0;
  9764. HEAP32[$1>>2] = $8;
  9765. HEAP32[$3>>2] = $14;
  9766. HEAP32[$5>>2] = $20;
  9767. HEAP32[$7>>2] = $2;
  9768. HEAP32[$9>>2] = $16;
  9769. HEAP32[$11>>2] = $22;
  9770. HEAP32[$13>>2] = $4;
  9771. HEAP32[$15>>2] = $10;
  9772. HEAP32[$17>>2] = $24;
  9773. HEAP32[$19>>2] = $6;
  9774. HEAP32[$21>>2] = $12;
  9775. HEAP32[$23>>2] = $18;
  9776. return;
  9777. }
  9778. function _MatrixIdentity($0) {
  9779. $0 = $0|0;
  9780. 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;
  9781. sp = STACKTOP;
  9782. HEAPF32[$0>>2] = 1.0;
  9783. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  9784. ;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;
  9785. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  9786. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  9787. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  9788. ;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;
  9789. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  9790. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  9791. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  9792. ;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;
  9793. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  9794. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  9795. return;
  9796. }
  9797. function _MatrixTranslate($0,$1,$2,$3) {
  9798. $0 = $0|0;
  9799. $1 = +$1;
  9800. $2 = +$2;
  9801. $3 = +$3;
  9802. 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;
  9803. sp = STACKTOP;
  9804. HEAPF32[$0>>2] = 1.0;
  9805. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  9806. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  9807. ;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;
  9808. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  9809. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  9810. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  9811. ;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;
  9812. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  9813. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  9814. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  9815. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  9816. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  9817. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  9818. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  9819. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  9820. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  9821. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  9822. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  9823. return;
  9824. }
  9825. function _MatrixRotate($0,$1,$2) {
  9826. $0 = $0|0;
  9827. $1 = $1|0;
  9828. $2 = +$2;
  9829. 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;
  9830. 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;
  9831. 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;
  9832. 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;
  9833. 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;
  9834. 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;
  9835. 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;
  9836. 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;
  9837. sp = STACKTOP;
  9838. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  9839. $3 = sp;
  9840. _MatrixIdentity($3);
  9841. $4 = +HEAPF32[$1>>2];
  9842. $5 = ((($1)) + 4|0);
  9843. $6 = +HEAPF32[$5>>2];
  9844. $7 = ((($1)) + 8|0);
  9845. $8 = +HEAPF32[$7>>2];
  9846. $9 = $4 * $4;
  9847. $10 = $6 * $6;
  9848. $11 = $9 + $10;
  9849. $12 = $8 * $8;
  9850. $13 = $11 + $12;
  9851. $14 = (+Math_sqrt((+$13)));
  9852. $15 = $14 != 1.0;
  9853. $16 = $14 != 0.0;
  9854. $or$cond = $15 & $16;
  9855. $17 = 1.0 / $14;
  9856. $18 = $4 * $17;
  9857. $19 = $6 * $17;
  9858. $20 = $8 * $17;
  9859. $$ = $or$cond ? $20 : $8;
  9860. $$221 = $or$cond ? $19 : $6;
  9861. $$222 = $or$cond ? $18 : $4;
  9862. $21 = (+Math_sin((+$2)));
  9863. $22 = (+Math_cos((+$2)));
  9864. $23 = 1.0 - $22;
  9865. $24 = +HEAPF32[$3>>2];
  9866. $25 = ((($3)) + 16|0);
  9867. $26 = +HEAPF32[$25>>2];
  9868. $27 = ((($3)) + 32|0);
  9869. $28 = +HEAPF32[$27>>2];
  9870. $29 = ((($3)) + 48|0);
  9871. $30 = +HEAPF32[$29>>2];
  9872. $31 = ((($3)) + 4|0);
  9873. $32 = +HEAPF32[$31>>2];
  9874. $33 = ((($3)) + 20|0);
  9875. $34 = +HEAPF32[$33>>2];
  9876. $35 = ((($3)) + 36|0);
  9877. $36 = +HEAPF32[$35>>2];
  9878. $37 = ((($3)) + 52|0);
  9879. $38 = +HEAPF32[$37>>2];
  9880. $39 = ((($3)) + 8|0);
  9881. $40 = +HEAPF32[$39>>2];
  9882. $41 = ((($3)) + 24|0);
  9883. $42 = +HEAPF32[$41>>2];
  9884. $43 = ((($3)) + 40|0);
  9885. $44 = +HEAPF32[$43>>2];
  9886. $45 = ((($3)) + 56|0);
  9887. $46 = +HEAPF32[$45>>2];
  9888. $47 = $$222 * $$222;
  9889. $48 = $23 * $47;
  9890. $49 = $22 + $48;
  9891. $50 = $$221 * $$222;
  9892. $51 = $23 * $50;
  9893. $52 = $21 * $$;
  9894. $53 = $52 + $51;
  9895. $54 = $$ * $$222;
  9896. $55 = $23 * $54;
  9897. $56 = $21 * $$221;
  9898. $57 = $55 - $56;
  9899. $58 = $51 - $52;
  9900. $59 = $$221 * $$221;
  9901. $60 = $23 * $59;
  9902. $61 = $22 + $60;
  9903. $62 = $$ * $$221;
  9904. $63 = $23 * $62;
  9905. $64 = $21 * $$222;
  9906. $65 = $64 + $63;
  9907. $66 = $56 + $55;
  9908. $67 = $63 - $64;
  9909. $68 = $$ * $$;
  9910. $69 = $23 * $68;
  9911. $70 = $22 + $69;
  9912. $71 = $24 * $49;
  9913. $72 = $53 * $32;
  9914. $73 = $71 + $72;
  9915. $74 = $57 * $40;
  9916. $75 = $73 + $74;
  9917. $76 = $26 * $49;
  9918. $77 = $53 * $34;
  9919. $78 = $76 + $77;
  9920. $79 = $57 * $42;
  9921. $80 = $78 + $79;
  9922. $81 = $28 * $49;
  9923. $82 = $53 * $36;
  9924. $83 = $81 + $82;
  9925. $84 = $57 * $44;
  9926. $85 = $83 + $84;
  9927. $86 = $30 * $49;
  9928. $87 = $53 * $38;
  9929. $88 = $86 + $87;
  9930. $89 = $57 * $46;
  9931. $90 = $88 + $89;
  9932. $91 = $24 * $58;
  9933. $92 = $61 * $32;
  9934. $93 = $91 + $92;
  9935. $94 = $65 * $40;
  9936. $95 = $93 + $94;
  9937. $96 = $26 * $58;
  9938. $97 = $61 * $34;
  9939. $98 = $96 + $97;
  9940. $99 = $65 * $42;
  9941. $100 = $98 + $99;
  9942. $101 = $28 * $58;
  9943. $102 = $61 * $36;
  9944. $103 = $101 + $102;
  9945. $104 = $65 * $44;
  9946. $105 = $103 + $104;
  9947. $106 = $30 * $58;
  9948. $107 = $61 * $38;
  9949. $108 = $106 + $107;
  9950. $109 = $65 * $46;
  9951. $110 = $108 + $109;
  9952. $111 = $24 * $66;
  9953. $112 = $67 * $32;
  9954. $113 = $111 + $112;
  9955. $114 = $70 * $40;
  9956. $115 = $113 + $114;
  9957. $116 = $26 * $66;
  9958. $117 = $67 * $34;
  9959. $118 = $116 + $117;
  9960. $119 = $70 * $42;
  9961. $120 = $118 + $119;
  9962. $121 = $28 * $66;
  9963. $122 = $67 * $36;
  9964. $123 = $121 + $122;
  9965. $124 = $70 * $44;
  9966. $125 = $123 + $124;
  9967. $126 = $30 * $66;
  9968. $127 = $67 * $38;
  9969. $128 = $126 + $127;
  9970. $129 = $70 * $46;
  9971. $130 = $128 + $129;
  9972. $131 = ((($3)) + 12|0);
  9973. $132 = HEAP32[$131>>2]|0;
  9974. $133 = ((($3)) + 28|0);
  9975. $134 = HEAP32[$133>>2]|0;
  9976. $135 = ((($3)) + 44|0);
  9977. $136 = HEAP32[$135>>2]|0;
  9978. $137 = ((($3)) + 60|0);
  9979. $138 = HEAP32[$137>>2]|0;
  9980. HEAPF32[$0>>2] = $75;
  9981. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  9982. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  9983. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  9984. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  9985. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  9986. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  9987. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  9988. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  9989. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  9990. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  9991. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  9992. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  9993. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  9994. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  9995. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  9996. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  9997. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  9998. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  9999. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  10000. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  10001. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  10002. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  10003. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  10004. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  10005. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  10006. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  10007. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  10008. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  10009. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  10010. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  10011. STACKTOP = sp;return;
  10012. }
  10013. function _MatrixScale($0,$1,$2,$3) {
  10014. $0 = $0|0;
  10015. $1 = +$1;
  10016. $2 = +$2;
  10017. $3 = +$3;
  10018. 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;
  10019. sp = STACKTOP;
  10020. HEAPF32[$0>>2] = $1;
  10021. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10022. ;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;
  10023. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10024. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  10025. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10026. ;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;
  10027. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10028. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  10029. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10030. ;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;
  10031. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10032. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10033. return;
  10034. }
  10035. function _MatrixMultiply($0,$1,$2) {
  10036. $0 = $0|0;
  10037. $1 = $1|0;
  10038. $2 = $2|0;
  10039. 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;
  10040. 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;
  10041. 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;
  10042. 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;
  10043. 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;
  10044. 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;
  10045. 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;
  10046. 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;
  10047. 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;
  10048. 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;
  10049. sp = STACKTOP;
  10050. $3 = +HEAPF32[$2>>2];
  10051. $4 = +HEAPF32[$1>>2];
  10052. $5 = $3 * $4;
  10053. $6 = ((($2)) + 16|0);
  10054. $7 = +HEAPF32[$6>>2];
  10055. $8 = ((($1)) + 4|0);
  10056. $9 = +HEAPF32[$8>>2];
  10057. $10 = $7 * $9;
  10058. $11 = $5 + $10;
  10059. $12 = ((($2)) + 32|0);
  10060. $13 = +HEAPF32[$12>>2];
  10061. $14 = ((($1)) + 8|0);
  10062. $15 = +HEAPF32[$14>>2];
  10063. $16 = $13 * $15;
  10064. $17 = $11 + $16;
  10065. $18 = ((($2)) + 48|0);
  10066. $19 = +HEAPF32[$18>>2];
  10067. $20 = ((($1)) + 12|0);
  10068. $21 = +HEAPF32[$20>>2];
  10069. $22 = $19 * $21;
  10070. $23 = $17 + $22;
  10071. $24 = ((($1)) + 16|0);
  10072. $25 = +HEAPF32[$24>>2];
  10073. $26 = $3 * $25;
  10074. $27 = ((($1)) + 20|0);
  10075. $28 = +HEAPF32[$27>>2];
  10076. $29 = $7 * $28;
  10077. $30 = $26 + $29;
  10078. $31 = ((($1)) + 24|0);
  10079. $32 = +HEAPF32[$31>>2];
  10080. $33 = $13 * $32;
  10081. $34 = $30 + $33;
  10082. $35 = ((($1)) + 28|0);
  10083. $36 = +HEAPF32[$35>>2];
  10084. $37 = $19 * $36;
  10085. $38 = $34 + $37;
  10086. $39 = ((($1)) + 32|0);
  10087. $40 = +HEAPF32[$39>>2];
  10088. $41 = $3 * $40;
  10089. $42 = ((($1)) + 36|0);
  10090. $43 = +HEAPF32[$42>>2];
  10091. $44 = $7 * $43;
  10092. $45 = $41 + $44;
  10093. $46 = ((($1)) + 40|0);
  10094. $47 = +HEAPF32[$46>>2];
  10095. $48 = $13 * $47;
  10096. $49 = $45 + $48;
  10097. $50 = ((($1)) + 44|0);
  10098. $51 = +HEAPF32[$50>>2];
  10099. $52 = $19 * $51;
  10100. $53 = $49 + $52;
  10101. $54 = ((($1)) + 48|0);
  10102. $55 = +HEAPF32[$54>>2];
  10103. $56 = $3 * $55;
  10104. $57 = ((($1)) + 52|0);
  10105. $58 = +HEAPF32[$57>>2];
  10106. $59 = $7 * $58;
  10107. $60 = $56 + $59;
  10108. $61 = ((($1)) + 56|0);
  10109. $62 = +HEAPF32[$61>>2];
  10110. $63 = $13 * $62;
  10111. $64 = $60 + $63;
  10112. $65 = ((($1)) + 60|0);
  10113. $66 = +HEAPF32[$65>>2];
  10114. $67 = $19 * $66;
  10115. $68 = $64 + $67;
  10116. $69 = ((($2)) + 4|0);
  10117. $70 = +HEAPF32[$69>>2];
  10118. $71 = $4 * $70;
  10119. $72 = ((($2)) + 20|0);
  10120. $73 = +HEAPF32[$72>>2];
  10121. $74 = $9 * $73;
  10122. $75 = $71 + $74;
  10123. $76 = ((($2)) + 36|0);
  10124. $77 = +HEAPF32[$76>>2];
  10125. $78 = $15 * $77;
  10126. $79 = $75 + $78;
  10127. $80 = ((($2)) + 52|0);
  10128. $81 = +HEAPF32[$80>>2];
  10129. $82 = $21 * $81;
  10130. $83 = $79 + $82;
  10131. $84 = $25 * $70;
  10132. $85 = $28 * $73;
  10133. $86 = $84 + $85;
  10134. $87 = $32 * $77;
  10135. $88 = $86 + $87;
  10136. $89 = $36 * $81;
  10137. $90 = $88 + $89;
  10138. $91 = $40 * $70;
  10139. $92 = $43 * $73;
  10140. $93 = $91 + $92;
  10141. $94 = $47 * $77;
  10142. $95 = $93 + $94;
  10143. $96 = $51 * $81;
  10144. $97 = $95 + $96;
  10145. $98 = $55 * $70;
  10146. $99 = $58 * $73;
  10147. $100 = $98 + $99;
  10148. $101 = $62 * $77;
  10149. $102 = $100 + $101;
  10150. $103 = $66 * $81;
  10151. $104 = $102 + $103;
  10152. $105 = ((($2)) + 8|0);
  10153. $106 = +HEAPF32[$105>>2];
  10154. $107 = $4 * $106;
  10155. $108 = ((($2)) + 24|0);
  10156. $109 = +HEAPF32[$108>>2];
  10157. $110 = $9 * $109;
  10158. $111 = $107 + $110;
  10159. $112 = ((($2)) + 40|0);
  10160. $113 = +HEAPF32[$112>>2];
  10161. $114 = $15 * $113;
  10162. $115 = $111 + $114;
  10163. $116 = ((($2)) + 56|0);
  10164. $117 = +HEAPF32[$116>>2];
  10165. $118 = $21 * $117;
  10166. $119 = $115 + $118;
  10167. $120 = $25 * $106;
  10168. $121 = $28 * $109;
  10169. $122 = $120 + $121;
  10170. $123 = $32 * $113;
  10171. $124 = $122 + $123;
  10172. $125 = $36 * $117;
  10173. $126 = $124 + $125;
  10174. $127 = $40 * $106;
  10175. $128 = $43 * $109;
  10176. $129 = $127 + $128;
  10177. $130 = $47 * $113;
  10178. $131 = $129 + $130;
  10179. $132 = $51 * $117;
  10180. $133 = $131 + $132;
  10181. $134 = $55 * $106;
  10182. $135 = $58 * $109;
  10183. $136 = $134 + $135;
  10184. $137 = $62 * $113;
  10185. $138 = $136 + $137;
  10186. $139 = $66 * $117;
  10187. $140 = $138 + $139;
  10188. $141 = ((($2)) + 12|0);
  10189. $142 = +HEAPF32[$141>>2];
  10190. $143 = $4 * $142;
  10191. $144 = ((($2)) + 28|0);
  10192. $145 = +HEAPF32[$144>>2];
  10193. $146 = $9 * $145;
  10194. $147 = $143 + $146;
  10195. $148 = ((($2)) + 44|0);
  10196. $149 = +HEAPF32[$148>>2];
  10197. $150 = $15 * $149;
  10198. $151 = $147 + $150;
  10199. $152 = ((($2)) + 60|0);
  10200. $153 = +HEAPF32[$152>>2];
  10201. $154 = $21 * $153;
  10202. $155 = $151 + $154;
  10203. $156 = $25 * $142;
  10204. $157 = $28 * $145;
  10205. $158 = $156 + $157;
  10206. $159 = $32 * $149;
  10207. $160 = $158 + $159;
  10208. $161 = $36 * $153;
  10209. $162 = $160 + $161;
  10210. $163 = $40 * $142;
  10211. $164 = $43 * $145;
  10212. $165 = $163 + $164;
  10213. $166 = $47 * $149;
  10214. $167 = $165 + $166;
  10215. $168 = $51 * $153;
  10216. $169 = $167 + $168;
  10217. $170 = $55 * $142;
  10218. $171 = $58 * $145;
  10219. $172 = $170 + $171;
  10220. $173 = $62 * $149;
  10221. $174 = $172 + $173;
  10222. $175 = $66 * $153;
  10223. $176 = $174 + $175;
  10224. HEAPF32[$0>>2] = $23;
  10225. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10226. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  10227. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10228. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  10229. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10230. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  10231. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10232. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  10233. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10234. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  10235. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10236. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  10237. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10238. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  10239. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10240. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  10241. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10242. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  10243. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10244. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  10245. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10246. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  10247. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10248. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  10249. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10250. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  10251. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10252. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  10253. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10254. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  10255. return;
  10256. }
  10257. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  10258. $0 = $0|0;
  10259. $1 = +$1;
  10260. $2 = +$2;
  10261. $3 = +$3;
  10262. $4 = +$4;
  10263. $5 = +$5;
  10264. $6 = +$6;
  10265. 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;
  10266. 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;
  10267. var sp = 0;
  10268. sp = STACKTOP;
  10269. $7 = $2 - $1;
  10270. $8 = $7;
  10271. $9 = $4 - $3;
  10272. $10 = $9;
  10273. $11 = $6 - $5;
  10274. $12 = $11;
  10275. $13 = 2.0 / $8;
  10276. $14 = 2.0 / $10;
  10277. $15 = -2.0 / $12;
  10278. $16 = $1 + $2;
  10279. $17 = -$16;
  10280. $18 = $8;
  10281. $19 = $17 / $18;
  10282. $20 = $19;
  10283. $21 = $3 + $4;
  10284. $22 = -$21;
  10285. $23 = $10;
  10286. $24 = $22 / $23;
  10287. $25 = $24;
  10288. $26 = $5 + $6;
  10289. $27 = -$26;
  10290. $28 = $12;
  10291. $29 = $27 / $28;
  10292. $30 = $29;
  10293. HEAPF32[$0>>2] = $13;
  10294. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10295. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10296. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10297. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  10298. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10299. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  10300. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10301. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10302. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10303. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  10304. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10305. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  10306. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10307. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  10308. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10309. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10310. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10311. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10312. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10313. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  10314. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10315. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  10316. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10317. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10318. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10319. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10320. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10321. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  10322. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10323. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  10324. return;
  10325. }
  10326. function _ProcessGestureEvent($0) {
  10327. $0 = $0|0;
  10328. 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;
  10329. 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;
  10330. 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;
  10331. 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;
  10332. 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;
  10333. 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;
  10334. 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;
  10335. 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;
  10336. 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;
  10337. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  10338. sp = STACKTOP;
  10339. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10340. $moveDownPosition2$byval_copy12 = sp + 8|0;
  10341. $moveDownPosition$byval_copy11 = sp;
  10342. $1 = ((($0)) + 4|0);
  10343. $2 = HEAP32[$1>>2]|0;
  10344. HEAP32[5101] = $2;
  10345. $3 = ($2|0)<(2);
  10346. $4 = HEAP32[$0>>2]|0;
  10347. $5 = ($4|0)==(1);
  10348. if (!($3)) {
  10349. if ($5) {
  10350. $88 = ((($0)) + 24|0);
  10351. $89 = $88;
  10352. $90 = $89;
  10353. $91 = HEAP32[$90>>2]|0;
  10354. $92 = (($89) + 4)|0;
  10355. $93 = $92;
  10356. $94 = HEAP32[$93>>2]|0;
  10357. $95 = 19800;
  10358. $96 = $95;
  10359. HEAP32[$96>>2] = $91;
  10360. $97 = (($95) + 4)|0;
  10361. $98 = $97;
  10362. HEAP32[$98>>2] = $94;
  10363. $99 = ((($0)) + 32|0);
  10364. $100 = $99;
  10365. $101 = $100;
  10366. $102 = HEAP32[$101>>2]|0;
  10367. $103 = (($100) + 4)|0;
  10368. $104 = $103;
  10369. $105 = HEAP32[$104>>2]|0;
  10370. $106 = 19840;
  10371. $107 = $106;
  10372. HEAP32[$107>>2] = $102;
  10373. $108 = (($106) + 4)|0;
  10374. $109 = $108;
  10375. HEAP32[$109>>2] = $105;
  10376. $110 = +HEAPF32[4960];
  10377. $111 = +HEAPF32[4950];
  10378. $112 = $110 - $111;
  10379. HEAPF32[4962] = $112;
  10380. $113 = +HEAPF32[(19844)>>2];
  10381. $114 = +HEAPF32[(19804)>>2];
  10382. $115 = $113 - $114;
  10383. HEAPF32[(19852)>>2] = $115;
  10384. HEAP32[5100] = 4;
  10385. STACKTOP = sp;return;
  10386. }
  10387. switch ($4|0) {
  10388. case 2: {
  10389. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19832>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19832+4>>2]|0;
  10390. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19856>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19856+4>>2]|0;
  10391. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10392. HEAPF32[5106] = $116;
  10393. $117 = 19832;
  10394. $118 = $117;
  10395. $119 = HEAP32[$118>>2]|0;
  10396. $120 = (($117) + 4)|0;
  10397. $121 = $120;
  10398. $122 = HEAP32[$121>>2]|0;
  10399. $123 = 19800;
  10400. $124 = $123;
  10401. HEAP32[$124>>2] = $119;
  10402. $125 = (($123) + 4)|0;
  10403. $126 = $125;
  10404. HEAP32[$126>>2] = $122;
  10405. $127 = 19856;
  10406. $128 = $127;
  10407. $129 = HEAP32[$128>>2]|0;
  10408. $130 = (($127) + 4)|0;
  10409. $131 = $130;
  10410. $132 = HEAP32[$131>>2]|0;
  10411. $133 = 19840;
  10412. $134 = $133;
  10413. HEAP32[$134>>2] = $129;
  10414. $135 = (($133) + 4)|0;
  10415. $136 = $135;
  10416. HEAP32[$136>>2] = $132;
  10417. $137 = ((($0)) + 24|0);
  10418. $138 = $137;
  10419. $139 = $138;
  10420. $140 = HEAP32[$139>>2]|0;
  10421. $141 = (($138) + 4)|0;
  10422. $142 = $141;
  10423. $143 = HEAP32[$142>>2]|0;
  10424. $144 = 19832;
  10425. $145 = $144;
  10426. HEAP32[$145>>2] = $140;
  10427. $146 = (($144) + 4)|0;
  10428. $147 = $146;
  10429. HEAP32[$147>>2] = $143;
  10430. $148 = ((($0)) + 32|0);
  10431. $149 = $148;
  10432. $150 = $149;
  10433. $151 = HEAP32[$150>>2]|0;
  10434. $152 = (($149) + 4)|0;
  10435. $153 = $152;
  10436. $154 = HEAP32[$153>>2]|0;
  10437. $155 = 19856;
  10438. $156 = $155;
  10439. HEAP32[$156>>2] = $151;
  10440. $157 = (($155) + 4)|0;
  10441. $158 = $157;
  10442. HEAP32[$158>>2] = $154;
  10443. $159 = +HEAPF32[4964];
  10444. $160 = +HEAPF32[4958];
  10445. $161 = $159 - $160;
  10446. HEAPF32[4962] = $161;
  10447. $162 = +HEAPF32[(19860)>>2];
  10448. $163 = +HEAPF32[(19836)>>2];
  10449. $164 = $162 - $163;
  10450. HEAPF32[(19852)>>2] = $164;
  10451. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19800>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19800+4>>2]|0;
  10452. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19832>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19832+4>>2]|0;
  10453. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10454. $166 = !($165 >= 0.004999999888241291);
  10455. if ($166) {
  10456. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19840>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19840+4>>2]|0;
  10457. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19856>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19856+4>>2]|0;
  10458. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10459. $168 = !($167 >= 0.004999999888241291);
  10460. if ($168) {
  10461. $$sink16 = 4;
  10462. } else {
  10463. label = 29;
  10464. }
  10465. } else {
  10466. label = 29;
  10467. }
  10468. if ((label|0) == 29) {
  10469. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19832>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19832+4>>2]|0;
  10470. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19856>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19856+4>>2]|0;
  10471. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10472. $170 = +HEAPF32[5106];
  10473. $171 = $169 - $170;
  10474. $172 = $171 < 0.0;
  10475. $$sink11 = $172 ? 256 : 512;
  10476. $$sink16 = $$sink11;
  10477. }
  10478. HEAP32[5100] = $$sink16;
  10479. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19832>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19832+4>>2]|0;
  10480. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19856>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19856+4>>2]|0;
  10481. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10482. $174 = 360.0 - $173;
  10483. HEAPF32[5107] = $174;
  10484. STACKTOP = sp;return;
  10485. break;
  10486. }
  10487. case 0: {
  10488. HEAPF32[5106] = 0.0;
  10489. HEAPF32[5107] = 0.0;
  10490. HEAPF32[4962] = 0.0;
  10491. HEAPF32[(19852)>>2] = 0.0;
  10492. HEAP32[5101] = 0;
  10493. HEAP32[5100] = 0;
  10494. STACKTOP = sp;return;
  10495. break;
  10496. }
  10497. default: {
  10498. STACKTOP = sp;return;
  10499. }
  10500. }
  10501. }
  10502. if ($5) {
  10503. $6 = HEAP32[5102]|0;
  10504. $7 = (($6) + 1)|0;
  10505. HEAP32[5102] = $7;
  10506. $8 = HEAP32[5100]|0;
  10507. $9 = ($8|0)==(0);
  10508. $10 = ($6|0)>(0);
  10509. $or$cond = $10 & $9;
  10510. if ($or$cond) {
  10511. $11 = ((($0)) + 24|0);
  10512. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19800>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19800+4>>2]|0;
  10513. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  10514. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10515. $13 = $12 < 0.029999999329447746;
  10516. if ($13) {
  10517. HEAP32[5100] = 2;
  10518. HEAP32[5102] = 0;
  10519. } else {
  10520. label = 6;
  10521. }
  10522. } else {
  10523. label = 6;
  10524. }
  10525. if ((label|0) == 6) {
  10526. HEAP32[5102] = 1;
  10527. HEAP32[5100] = 1;
  10528. }
  10529. $14 = ((($0)) + 24|0);
  10530. $15 = $14;
  10531. $16 = $15;
  10532. $17 = HEAP32[$16>>2]|0;
  10533. $18 = (($15) + 4)|0;
  10534. $19 = $18;
  10535. $20 = HEAP32[$19>>2]|0;
  10536. $21 = 19800;
  10537. $22 = $21;
  10538. HEAP32[$22>>2] = $17;
  10539. $23 = (($21) + 4)|0;
  10540. $24 = $23;
  10541. HEAP32[$24>>2] = $20;
  10542. $25 = 19808;
  10543. $26 = $25;
  10544. HEAP32[$26>>2] = $17;
  10545. $27 = (($25) + 4)|0;
  10546. $28 = $27;
  10547. HEAP32[$28>>2] = $20;
  10548. $29 = 19816;
  10549. $30 = $29;
  10550. HEAP32[$30>>2] = $17;
  10551. $31 = (($29) + 4)|0;
  10552. $32 = $31;
  10553. HEAP32[$32>>2] = $20;
  10554. $33 = ((($0)) + 8|0);
  10555. $34 = HEAP32[$33>>2]|0;
  10556. HEAP32[12] = $34;
  10557. HEAPF32[4956] = 0.0;
  10558. HEAPF32[(19828)>>2] = 0.0;
  10559. STACKTOP = sp;return;
  10560. }
  10561. switch ($4|0) {
  10562. case 0: {
  10563. $35 = HEAP32[5100]|0;
  10564. $36 = ($35|0)==(8);
  10565. if ($36) {
  10566. $37 = ((($0)) + 24|0);
  10567. $38 = $37;
  10568. $39 = $38;
  10569. $40 = HEAP32[$39>>2]|0;
  10570. $41 = (($38) + 4)|0;
  10571. $42 = $41;
  10572. $43 = HEAP32[$42>>2]|0;
  10573. $44 = 19816;
  10574. $45 = $44;
  10575. HEAP32[$45>>2] = $40;
  10576. $46 = (($44) + 4)|0;
  10577. $47 = $46;
  10578. HEAP32[$47>>2] = $43;
  10579. }
  10580. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19800>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19800+4>>2]|0;
  10581. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19816>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19816+4>>2]|0;
  10582. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10583. $49 = $48 / 0.0;
  10584. HEAPF32[5103] = $49;
  10585. HEAP32[5104] = 0;
  10586. $50 = $49 > 5.0000002374872565E-4;
  10587. if ($50) {
  10588. $51 = HEAP32[12]|0;
  10589. $52 = ((($0)) + 8|0);
  10590. $53 = HEAP32[$52>>2]|0;
  10591. $54 = ($51|0)==($53|0);
  10592. if ($54) {
  10593. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19800>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19800+4>>2]|0;
  10594. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19816>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19816+4>>2]|0;
  10595. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10596. $56 = 360.0 - $55;
  10597. HEAPF32[5105] = $56;
  10598. $57 = $56 < 30.0;
  10599. $58 = $56 > 330.0;
  10600. $or$cond3 = $57 | $58;
  10601. if ($or$cond3) {
  10602. $$sink10 = 16;
  10603. } else {
  10604. $59 = $56 > 30.0;
  10605. $60 = $56 < 120.0;
  10606. $or$cond5 = $59 & $60;
  10607. if ($or$cond5) {
  10608. $$sink10 = 64;
  10609. } else {
  10610. $61 = $56 > 120.0;
  10611. $62 = $56 < 210.0;
  10612. $or$cond7 = $61 & $62;
  10613. $63 = $56 > 210.0;
  10614. $64 = $56 < 300.0;
  10615. $or$cond9 = $63 & $64;
  10616. $$sink = $or$cond9 ? 128 : 0;
  10617. $$$sink = $or$cond7 ? 32 : $$sink;
  10618. $$sink10 = $$$sink;
  10619. }
  10620. }
  10621. } else {
  10622. label = 16;
  10623. }
  10624. } else {
  10625. label = 16;
  10626. }
  10627. if ((label|0) == 16) {
  10628. HEAPF32[5103] = 0.0;
  10629. HEAPF32[5105] = 0.0;
  10630. $$sink10 = 0;
  10631. }
  10632. HEAP32[5100] = $$sink10;
  10633. HEAPF32[4952] = 0.0;
  10634. HEAPF32[(19812)>>2] = 0.0;
  10635. HEAP32[5101] = 0;
  10636. STACKTOP = sp;return;
  10637. break;
  10638. }
  10639. case 2: {
  10640. $65 = HEAP32[5104]|0;
  10641. $66 = ($65|0)==(0);
  10642. if ($66) {
  10643. HEAP32[5104] = 1;
  10644. }
  10645. $67 = ((($0)) + 24|0);
  10646. $68 = $67;
  10647. $69 = $68;
  10648. $70 = HEAP32[$69>>2]|0;
  10649. $71 = (($68) + 4)|0;
  10650. $72 = $71;
  10651. $73 = HEAP32[$72>>2]|0;
  10652. $74 = 19832;
  10653. $75 = $74;
  10654. HEAP32[$75>>2] = $70;
  10655. $76 = (($74) + 4)|0;
  10656. $77 = $76;
  10657. HEAP32[$77>>2] = $73;
  10658. $78 = HEAP32[5100]|0;
  10659. $79 = ($78|0)==(4);
  10660. if ($79) {
  10661. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19800>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19800+4>>2]|0;
  10662. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19832>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19832+4>>2]|0;
  10663. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10664. $81 = !($80 >= 0.014999999664723873);
  10665. if (!($81)) {
  10666. HEAP32[5100] = 8;
  10667. }
  10668. }
  10669. $82 = +HEAPF32[4958];
  10670. $83 = +HEAPF32[4952];
  10671. $84 = $82 - $83;
  10672. HEAPF32[4956] = $84;
  10673. $85 = +HEAPF32[(19836)>>2];
  10674. $86 = +HEAPF32[(19812)>>2];
  10675. $87 = $85 - $86;
  10676. HEAPF32[(19828)>>2] = $87;
  10677. STACKTOP = sp;return;
  10678. break;
  10679. }
  10680. default: {
  10681. STACKTOP = sp;return;
  10682. }
  10683. }
  10684. }
  10685. function _UpdateGestures() {
  10686. 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;
  10687. sp = STACKTOP;
  10688. $0 = HEAP32[5100]|0;
  10689. $$off = (($0) + -1)|0;
  10690. $1 = ($$off>>>0)<(2);
  10691. $2 = HEAP32[5101]|0;
  10692. $3 = ($2|0)<(2);
  10693. $or$cond3 = $1 & $3;
  10694. if ($or$cond3) {
  10695. HEAP32[5100] = 4;
  10696. }
  10697. $4 = HEAP32[5100]|0;
  10698. $5 = (($4) + -16)|0;
  10699. $6 = $5 >>> 4;
  10700. $7 = $5 << 28;
  10701. $8 = $6 | $7;
  10702. switch ($8|0) {
  10703. case 0: case 1: case 3: case 7: {
  10704. break;
  10705. }
  10706. default: {
  10707. return;
  10708. }
  10709. }
  10710. HEAP32[5100] = 0;
  10711. return;
  10712. }
  10713. function _GetMousePosition($0) {
  10714. $0 = $0|0;
  10715. 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;
  10716. sp = STACKTOP;
  10717. $1 = 19864;
  10718. $2 = $1;
  10719. $3 = HEAP32[$2>>2]|0;
  10720. $4 = (($1) + 4)|0;
  10721. $5 = $4;
  10722. $6 = HEAP32[$5>>2]|0;
  10723. $7 = $0;
  10724. $8 = $7;
  10725. HEAP32[$8>>2] = $3;
  10726. $9 = (($7) + 4)|0;
  10727. $10 = $9;
  10728. HEAP32[$10>>2] = $6;
  10729. return;
  10730. }
  10731. function _GetScreenWidth() {
  10732. var $0 = 0, label = 0, sp = 0;
  10733. sp = STACKTOP;
  10734. $0 = HEAP32[5110]|0;
  10735. return ($0|0);
  10736. }
  10737. function _GetScreenHeight() {
  10738. var $0 = 0, label = 0, sp = 0;
  10739. sp = STACKTOP;
  10740. $0 = HEAP32[5109]|0;
  10741. return ($0|0);
  10742. }
  10743. function _InitWindow($0,$1,$2) {
  10744. $0 = $0|0;
  10745. $1 = $1|0;
  10746. $2 = $2|0;
  10747. 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;
  10748. sp = STACKTOP;
  10749. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10750. $vararg_buffer = sp;
  10751. _TraceLog(0,5121,$vararg_buffer);
  10752. HEAP32[5112] = $2;
  10753. _InitGraphicsDevice($0,$1);
  10754. _LoadDefaultFont();
  10755. _InitTimer();
  10756. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(4|0))|0);
  10757. (_emscripten_set_keypress_callback((5150|0),(0|0),1,(5|0))|0);
  10758. (_emscripten_set_click_callback((5150|0),(0|0),1,(6|0))|0);
  10759. (_emscripten_set_touchstart_callback((5150|0),(0|0),1,(7|0))|0);
  10760. (_emscripten_set_touchend_callback((5150|0),(0|0),1,(7|0))|0);
  10761. (_emscripten_set_touchmove_callback((5150|0),(0|0),1,(7|0))|0);
  10762. (_emscripten_set_touchcancel_callback((5150|0),(0|0),1,(7|0))|0);
  10763. (_emscripten_set_gamepadconnected_callback((0|0),1,(8|0))|0);
  10764. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(8|0))|0);
  10765. $3 = HEAP32[5110]|0;
  10766. $4 = (+($3|0));
  10767. $5 = $4 * 0.5;
  10768. HEAPF32[4966] = $5;
  10769. $6 = HEAP32[5109]|0;
  10770. $7 = (+($6|0));
  10771. $8 = $7 * 0.5;
  10772. HEAPF32[(19868)>>2] = $8;
  10773. $9 = HEAP32[5113]|0;
  10774. $10 = ($9|0)==(0);
  10775. if ($10) {
  10776. STACKTOP = sp;return;
  10777. }
  10778. _SetTargetFPS(60);
  10779. _LogoAnimation();
  10780. STACKTOP = sp;return;
  10781. }
  10782. function _TraceLog($0,$1,$varargs) {
  10783. $0 = $0|0;
  10784. $1 = $1|0;
  10785. $varargs = $varargs|0;
  10786. 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;
  10787. sp = STACKTOP;
  10788. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10789. $2 = sp;
  10790. switch ($0|0) {
  10791. case 0: {
  10792. ;HEAP8[19904>>0]=HEAP8[9679>>0]|0;HEAP8[19904+1>>0]=HEAP8[9679+1>>0]|0;HEAP8[19904+2>>0]=HEAP8[9679+2>>0]|0;HEAP8[19904+3>>0]=HEAP8[9679+3>>0]|0;HEAP8[19904+4>>0]=HEAP8[9679+4>>0]|0;HEAP8[19904+5>>0]=HEAP8[9679+5>>0]|0;HEAP8[19904+6>>0]=HEAP8[9679+6>>0]|0;
  10793. break;
  10794. }
  10795. case 1: {
  10796. $3 = 19904;
  10797. $4 = $3;
  10798. HEAP32[$4>>2] = 1330795077;
  10799. $5 = (($3) + 4)|0;
  10800. $6 = $5;
  10801. HEAP32[$6>>2] = 2112082;
  10802. break;
  10803. }
  10804. case 2: {
  10805. dest=19904; src=9686; 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));
  10806. break;
  10807. }
  10808. case 3: {
  10809. $7 = 19904;
  10810. $8 = $7;
  10811. HEAP32[$8>>2] = 1430406468;
  10812. $9 = (($7) + 4)|0;
  10813. $10 = $9;
  10814. HEAP32[$10>>2] = 2112071;
  10815. break;
  10816. }
  10817. default: {
  10818. }
  10819. }
  10820. (_strcat(19904,$1)|0);
  10821. $strlen = (_strlen(19904)|0);
  10822. $endptr = (19904 + ($strlen)|0);
  10823. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  10824. HEAP32[$2>>2] = $varargs;
  10825. $11 = ($0|0)==(3);
  10826. if ($11) {
  10827. STACKTOP = sp;return;
  10828. }
  10829. (_vprintf(19904,$2)|0);
  10830. $12 = ($0|0)==(1);
  10831. if ($12) {
  10832. _exit(1);
  10833. // unreachable;
  10834. } else {
  10835. STACKTOP = sp;return;
  10836. }
  10837. }
  10838. function _InitGraphicsDevice($0,$1) {
  10839. $0 = $0|0;
  10840. $1 = $1|0;
  10841. 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;
  10842. 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;
  10843. 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;
  10844. 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;
  10845. 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;
  10846. var label = 0, sp = 0, src = 0, stop = 0;
  10847. sp = STACKTOP;
  10848. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  10849. $$byval_copy = sp + 136|0;
  10850. $vararg_buffer22 = sp + 64|0;
  10851. $vararg_buffer18 = sp + 56|0;
  10852. $vararg_buffer14 = sp + 48|0;
  10853. $vararg_buffer10 = sp + 40|0;
  10854. $vararg_buffer8 = sp + 32|0;
  10855. $vararg_buffer6 = sp + 24|0;
  10856. $vararg_buffer3 = sp + 16|0;
  10857. $vararg_buffer1 = sp + 8|0;
  10858. $vararg_buffer = sp;
  10859. $2 = sp + 72|0;
  10860. $3 = sp + 140|0;
  10861. HEAP32[5110] = $0;
  10862. HEAP32[5109] = $1;
  10863. _MatrixIdentity($2);
  10864. dest=20528; 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));
  10865. (_glfwSetErrorCallback((2|0))|0);
  10866. $4 = (_glfwInit()|0);
  10867. $5 = ($4|0)==(0);
  10868. if ($5) {
  10869. _TraceLog(1,5821,$vararg_buffer);
  10870. }
  10871. $6 = HEAP32[5110]|0;
  10872. HEAP32[5148] = $6;
  10873. $7 = HEAP32[5109]|0;
  10874. HEAP32[5149] = $7;
  10875. _glfwDefaultWindowHints();
  10876. $8 = HEAP8[23264]|0;
  10877. $9 = $8 & 4;
  10878. $10 = ($9<<24>>24)==(0);
  10879. if ($10) {
  10880. _glfwWindowHint(131075,0);
  10881. } else {
  10882. _glfwWindowHint(131075,1);
  10883. }
  10884. $11 = HEAP8[23264]|0;
  10885. $12 = $11 & 8;
  10886. $13 = ($12<<24>>24)==(0);
  10887. if (!($13)) {
  10888. _glfwWindowHint(131077,1);
  10889. }
  10890. $14 = HEAP8[23264]|0;
  10891. $15 = $14 & 32;
  10892. $16 = ($15<<24>>24)==(0);
  10893. if (!($16)) {
  10894. _glfwWindowHint(135181,4);
  10895. _TraceLog(0,5847,$vararg_buffer1);
  10896. }
  10897. $17 = (_rlGetVersion()|0);
  10898. $18 = ($17|0)==(2);
  10899. if ($18) {
  10900. _glfwWindowHint(139266,2);
  10901. _glfwWindowHint(139267,1);
  10902. } else {
  10903. $19 = (_rlGetVersion()|0);
  10904. $20 = ($19|0)==(3);
  10905. if ($20) {
  10906. _glfwWindowHint(139266,3);
  10907. _glfwWindowHint(139267,3);
  10908. _glfwWindowHint(139272,204801);
  10909. _glfwWindowHint(139270,0);
  10910. }
  10911. }
  10912. $21 = HEAP32[5150]|0;
  10913. $22 = ($21|0)==(0);
  10914. if ($22) {
  10915. $47 = HEAP32[5110]|0;
  10916. $48 = HEAP32[5109]|0;
  10917. $49 = HEAP32[5112]|0;
  10918. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  10919. HEAP32[5108] = $50;
  10920. $51 = HEAP32[5110]|0;
  10921. HEAP32[5151] = $51;
  10922. $52 = HEAP32[5109]|0;
  10923. HEAP32[5152] = $52;
  10924. $54 = $50;
  10925. } else {
  10926. $23 = (_glfwGetPrimaryMonitor()|0);
  10927. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  10928. $25 = HEAP32[$$byval_copy>>2]|0;
  10929. $26 = ($25|0)>(0);
  10930. L22: do {
  10931. if ($26) {
  10932. $27 = HEAP32[5110]|0;
  10933. $28 = HEAP32[$$byval_copy>>2]|0;
  10934. $29 = HEAP32[5109]|0;
  10935. $$015 = 0;
  10936. while(1) {
  10937. $30 = (($24) + (($$015*24)|0)|0);
  10938. $31 = HEAP32[$30>>2]|0;
  10939. $32 = ($31|0)<($27|0);
  10940. if (!($32)) {
  10941. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  10942. $34 = HEAP32[$33>>2]|0;
  10943. $35 = ($34|0)<($29|0);
  10944. if (!($35)) {
  10945. break;
  10946. }
  10947. }
  10948. $36 = (($$015) + 1)|0;
  10949. $37 = ($36|0)<($28|0);
  10950. if ($37) {
  10951. $$015 = $36;
  10952. } else {
  10953. break L22;
  10954. }
  10955. }
  10956. HEAP32[5148] = $31;
  10957. HEAP32[5149] = $34;
  10958. }
  10959. } while(0);
  10960. $38 = HEAP32[5148]|0;
  10961. $39 = HEAP32[5149]|0;
  10962. HEAP32[$vararg_buffer3>>2] = $38;
  10963. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  10964. HEAP32[$vararg_ptr5>>2] = $39;
  10965. _TraceLog(2,5872,$vararg_buffer3);
  10966. $40 = HEAP32[5148]|0;
  10967. $41 = HEAP32[5149]|0;
  10968. _SetupFramebufferSize($40,$41);
  10969. $42 = HEAP32[5148]|0;
  10970. $43 = HEAP32[5149]|0;
  10971. $44 = HEAP32[5112]|0;
  10972. $45 = (_glfwGetPrimaryMonitor()|0);
  10973. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  10974. HEAP32[5108] = $46;
  10975. $54 = $46;
  10976. }
  10977. $53 = ($54|0)==(0|0);
  10978. if ($53) {
  10979. _glfwTerminate();
  10980. _TraceLog(1,5910,$vararg_buffer6);
  10981. } else {
  10982. _TraceLog(0,5943,$vararg_buffer8);
  10983. $55 = HEAP32[5151]|0;
  10984. $56 = HEAP32[5152]|0;
  10985. HEAP32[$vararg_buffer10>>2] = $55;
  10986. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  10987. HEAP32[$vararg_ptr13>>2] = $56;
  10988. _TraceLog(0,5983,$vararg_buffer10);
  10989. $57 = HEAP32[5110]|0;
  10990. $58 = HEAP32[5109]|0;
  10991. HEAP32[$vararg_buffer14>>2] = $57;
  10992. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  10993. HEAP32[$vararg_ptr17>>2] = $58;
  10994. _TraceLog(0,6004,$vararg_buffer14);
  10995. $59 = HEAP32[5153]|0;
  10996. $60 = HEAP32[5154]|0;
  10997. HEAP32[$vararg_buffer18>>2] = $59;
  10998. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  10999. HEAP32[$vararg_ptr21>>2] = $60;
  11000. _TraceLog(0,6025,$vararg_buffer18);
  11001. }
  11002. $61 = HEAP32[5108]|0;
  11003. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  11004. $62 = HEAP32[5108]|0;
  11005. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  11006. $63 = HEAP32[5108]|0;
  11007. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  11008. $64 = HEAP32[5108]|0;
  11009. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  11010. $65 = HEAP32[5108]|0;
  11011. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  11012. $66 = HEAP32[5108]|0;
  11013. (_glfwSetCharCallback(($66|0),(4|0))|0);
  11014. $67 = HEAP32[5108]|0;
  11015. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  11016. $68 = HEAP32[5108]|0;
  11017. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  11018. $69 = HEAP32[5108]|0;
  11019. _glfwMakeContextCurrent(($69|0));
  11020. _glfwSwapInterval(0);
  11021. $70 = HEAP8[23264]|0;
  11022. $71 = $70 & 64;
  11023. $72 = ($71<<24>>24)==(0);
  11024. if ($72) {
  11025. $73 = HEAP32[5110]|0;
  11026. $74 = HEAP32[5109]|0;
  11027. _rlglInit($73,$74);
  11028. _SetupViewport();
  11029. _rlMatrixMode(5889);
  11030. _rlLoadIdentity();
  11031. $75 = HEAP32[5151]|0;
  11032. $76 = HEAP32[5153]|0;
  11033. $77 = (($75) - ($76))|0;
  11034. $78 = (+($77|0));
  11035. $79 = HEAP32[5152]|0;
  11036. $80 = HEAP32[5154]|0;
  11037. $81 = (($79) - ($80))|0;
  11038. $82 = (+($81|0));
  11039. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  11040. _rlMatrixMode(5888);
  11041. _rlLoadIdentity();
  11042. HEAP8[$3>>0] = -11;
  11043. $83 = ((($3)) + 1|0);
  11044. HEAP8[$83>>0] = -11;
  11045. $84 = ((($3)) + 2|0);
  11046. HEAP8[$84>>0] = -11;
  11047. $85 = ((($3)) + 3|0);
  11048. HEAP8[$85>>0] = -1;
  11049. ;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;
  11050. _ClearBackground($$byval_copy);
  11051. STACKTOP = sp;return;
  11052. }
  11053. _glfwSwapInterval(1);
  11054. _TraceLog(0,6050,$vararg_buffer22);
  11055. $73 = HEAP32[5110]|0;
  11056. $74 = HEAP32[5109]|0;
  11057. _rlglInit($73,$74);
  11058. _SetupViewport();
  11059. _rlMatrixMode(5889);
  11060. _rlLoadIdentity();
  11061. $75 = HEAP32[5151]|0;
  11062. $76 = HEAP32[5153]|0;
  11063. $77 = (($75) - ($76))|0;
  11064. $78 = (+($77|0));
  11065. $79 = HEAP32[5152]|0;
  11066. $80 = HEAP32[5154]|0;
  11067. $81 = (($79) - ($80))|0;
  11068. $82 = (+($81|0));
  11069. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  11070. _rlMatrixMode(5888);
  11071. _rlLoadIdentity();
  11072. HEAP8[$3>>0] = -11;
  11073. $83 = ((($3)) + 1|0);
  11074. HEAP8[$83>>0] = -11;
  11075. $84 = ((($3)) + 2|0);
  11076. HEAP8[$84>>0] = -11;
  11077. $85 = ((($3)) + 3|0);
  11078. HEAP8[$85>>0] = -1;
  11079. ;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;
  11080. _ClearBackground($$byval_copy);
  11081. STACKTOP = sp;return;
  11082. }
  11083. function _LoadDefaultFont() {
  11084. 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;
  11085. 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;
  11086. 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;
  11087. var $vararg_buffer = 0, label = 0, sp = 0;
  11088. sp = STACKTOP;
  11089. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  11090. $$byval_copy1 = sp + 44|0;
  11091. $vararg_buffer = sp;
  11092. $0 = sp + 4|0;
  11093. $1 = sp + 24|0;
  11094. HEAP32[(20496)>>2] = 224;
  11095. $2 = (_malloc(65536)|0);
  11096. _memset(($2|0),0,65536)|0;
  11097. $$095104 = 0;$$096103 = 0;
  11098. while(1) {
  11099. $3 = (52 + ($$095104<<2)|0);
  11100. $4 = HEAP32[$3>>2]|0;
  11101. $$097102 = 31;
  11102. while(1) {
  11103. $16 = 1 << $$097102;
  11104. $17 = $4 & $16;
  11105. $18 = ($17|0)==(0);
  11106. if (!($18)) {
  11107. $19 = (($$097102) + ($$096103))|0;
  11108. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  11109. 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;
  11110. }
  11111. $20 = (($$097102) + -1)|0;
  11112. $21 = ($$097102|0)>(0);
  11113. if ($21) {
  11114. $$097102 = $20;
  11115. } else {
  11116. break;
  11117. }
  11118. }
  11119. $12 = (($$095104) + 1)|0;
  11120. $13 = ($$095104|0)>(511);
  11121. $$ = $13 ? 0 : $12;
  11122. $14 = (($$096103) + 32)|0;
  11123. $15 = ($14|0)<(16384);
  11124. if ($15) {
  11125. $$095104 = $$;$$096103 = $14;
  11126. } else {
  11127. break;
  11128. }
  11129. }
  11130. _LoadImageEx($0,$2,128,128);
  11131. _ImageFormat($0,2);
  11132. _free($2);
  11133. ;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;
  11134. _LoadTextureFromImage($1,$$byval_copy1);
  11135. ;HEAP32[20472>>2]=HEAP32[$1>>2]|0;HEAP32[20472+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[20472+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[20472+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[20472+16>>2]=HEAP32[$1+16>>2]|0;
  11136. ;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;
  11137. _UnloadImage($$byval_copy1);
  11138. $5 = HEAP32[(20496)>>2]|0;
  11139. $6 = $5 << 5;
  11140. $7 = (_malloc($6)|0);
  11141. HEAP32[(20500)>>2] = $7;
  11142. $8 = ($5|0)>(0);
  11143. if (!($8)) {
  11144. $$lcssa = $7;
  11145. $22 = ((($$lcssa)) + 16|0);
  11146. $23 = HEAP32[$22>>2]|0;
  11147. HEAP32[(20492)>>2] = $23;
  11148. $24 = HEAP32[5118]|0;
  11149. HEAP32[$vararg_buffer>>2] = $24;
  11150. _TraceLog(0,5345,$vararg_buffer);
  11151. STACKTOP = sp;return;
  11152. }
  11153. $9 = HEAP32[(20476)>>2]|0;
  11154. $10 = HEAP32[(20496)>>2]|0;
  11155. $11 = HEAP32[(20500)>>2]|0;
  11156. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  11157. while(1) {
  11158. $25 = (($$0101) + 32)|0;
  11159. $26 = (($27) + ($$0101<<5)|0);
  11160. HEAP32[$26>>2] = $25;
  11161. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  11162. HEAP32[$28>>2] = $$090100;
  11163. $29 = ($$09299*11)|0;
  11164. $30 = (($29) + 1)|0;
  11165. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  11166. HEAP32[$31>>2] = $30;
  11167. $32 = (2100 + ($$0101<<2)|0);
  11168. $33 = HEAP32[$32>>2]|0;
  11169. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  11170. HEAP32[$34>>2] = $33;
  11171. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  11172. HEAP32[$35>>2] = 10;
  11173. $36 = (($$090100) + 1)|0;
  11174. $37 = (($36) + ($33))|0;
  11175. $38 = ($37|0)<($9|0);
  11176. $39 = (($$09299) + 1)|0;
  11177. if ($38) {
  11178. $$191 = $37;$$193 = $$09299;
  11179. } else {
  11180. $40 = ($39*11)|0;
  11181. $41 = (($40) + 1)|0;
  11182. $42 = (($33) + 2)|0;
  11183. HEAP32[$28>>2] = 1;
  11184. HEAP32[$31>>2] = $41;
  11185. $$191 = $42;$$193 = $39;
  11186. }
  11187. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  11188. HEAP32[$43>>2] = 0;
  11189. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  11190. HEAP32[$44>>2] = 0;
  11191. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  11192. HEAP32[$45>>2] = 0;
  11193. $46 = (($$0101) + 1)|0;
  11194. $47 = ($46|0)<($10|0);
  11195. if ($47) {
  11196. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  11197. } else {
  11198. $$lcssa = $11;
  11199. break;
  11200. }
  11201. }
  11202. $22 = ((($$lcssa)) + 16|0);
  11203. $23 = HEAP32[$22>>2]|0;
  11204. HEAP32[(20492)>>2] = $23;
  11205. $24 = HEAP32[5118]|0;
  11206. HEAP32[$vararg_buffer>>2] = $24;
  11207. _TraceLog(0,5345,$vararg_buffer);
  11208. STACKTOP = sp;return;
  11209. }
  11210. function _InitTimer() {
  11211. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  11212. sp = STACKTOP;
  11213. $0 = (_time((0|0))|0);
  11214. _srand($0);
  11215. $1 = (+_GetTime());
  11216. HEAPF64[2487] = $1;
  11217. return;
  11218. }
  11219. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  11220. $0 = $0|0;
  11221. $1 = $1|0;
  11222. $2 = $2|0;
  11223. 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;
  11224. sp = STACKTOP;
  11225. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  11226. $vararg_buffer4 = sp + 16|0;
  11227. $vararg_buffer = sp;
  11228. $3 = HEAP32[$1>>2]|0;
  11229. $4 = ($3|0)==(0);
  11230. $5 = ((($1)) + 264|0);
  11231. $6 = HEAP32[$5>>2]|0;
  11232. $7 = ((($1)) + 268|0);
  11233. $8 = HEAP32[$7>>2]|0;
  11234. $9 = ((($1)) + 272|0);
  11235. $10 = HEAP32[$9>>2]|0;
  11236. $11 = ((($1)) + 276|0);
  11237. $12 = HEAP32[$11>>2]|0;
  11238. if ($4) {
  11239. HEAP32[$vararg_buffer4>>2] = $6;
  11240. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  11241. HEAP32[$vararg_ptr7>>2] = $8;
  11242. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  11243. HEAP32[$vararg_ptr8>>2] = $10;
  11244. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  11245. HEAP32[$vararg_ptr9>>2] = $12;
  11246. _TraceLog(0,5278,$vararg_buffer4);
  11247. STACKTOP = sp;return 0;
  11248. } else {
  11249. HEAP32[$vararg_buffer>>2] = $6;
  11250. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  11251. HEAP32[$vararg_ptr1>>2] = $8;
  11252. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  11253. HEAP32[$vararg_ptr2>>2] = $10;
  11254. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  11255. HEAP32[$vararg_ptr3>>2] = $12;
  11256. _TraceLog(0,5209,$vararg_buffer);
  11257. STACKTOP = sp;return 0;
  11258. }
  11259. return (0)|0;
  11260. }
  11261. function _EmscriptenKeyboardCallback($0,$1,$2) {
  11262. $0 = $0|0;
  11263. $1 = $1|0;
  11264. $2 = $2|0;
  11265. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  11266. sp = STACKTOP;
  11267. $3 = ($0|0)==(1);
  11268. if (!($3)) {
  11269. return 0;
  11270. }
  11271. $4 = ((($1)) + 32|0);
  11272. $5 = (_strcmp($4,5202)|0);
  11273. $6 = ($5|0)==(0);
  11274. if (!($6)) {
  11275. return 0;
  11276. }
  11277. (_emscripten_exit_pointerlock()|0);
  11278. return 0;
  11279. }
  11280. function _EmscriptenMouseCallback($0,$1,$2) {
  11281. $0 = $0|0;
  11282. $1 = $1|0;
  11283. $2 = $2|0;
  11284. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  11285. sp = STACKTOP;
  11286. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  11287. $3 = sp;
  11288. $4 = ($0|0)==(4);
  11289. if (!($4)) {
  11290. STACKTOP = sp;return 0;
  11291. }
  11292. (_emscripten_get_pointerlock_status(($3|0))|0);
  11293. $5 = HEAP32[$3>>2]|0;
  11294. $6 = ($5|0)==(0);
  11295. if ($6) {
  11296. (_emscripten_request_pointerlock((0|0),1)|0);
  11297. } else {
  11298. (_emscripten_exit_pointerlock()|0);
  11299. (_emscripten_get_pointerlock_status(($3|0))|0);
  11300. }
  11301. STACKTOP = sp;return 0;
  11302. }
  11303. function _EmscriptenTouchCallback($0,$1,$2) {
  11304. $0 = $0|0;
  11305. $1 = $1|0;
  11306. $2 = $2|0;
  11307. 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;
  11308. 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;
  11309. 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;
  11310. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  11311. sp = STACKTOP;
  11312. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  11313. $$byval_copy = sp + 56|0;
  11314. $3 = sp;
  11315. switch ($0|0) {
  11316. case 22: {
  11317. $$sink = 1;
  11318. label = 4;
  11319. break;
  11320. }
  11321. case 23: {
  11322. $$sink = 0;
  11323. label = 4;
  11324. break;
  11325. }
  11326. case 24: {
  11327. $$sink = 2;
  11328. label = 4;
  11329. break;
  11330. }
  11331. default: {
  11332. }
  11333. }
  11334. if ((label|0) == 4) {
  11335. HEAP32[$3>>2] = $$sink;
  11336. }
  11337. $4 = HEAP32[$1>>2]|0;
  11338. $5 = ((($3)) + 4|0);
  11339. HEAP32[$5>>2] = $4;
  11340. $6 = ((($1)) + 20|0);
  11341. $7 = HEAP32[$6>>2]|0;
  11342. $8 = ((($3)) + 8|0);
  11343. HEAP32[$8>>2] = $7;
  11344. $9 = ((($1)) + 72|0);
  11345. $10 = HEAP32[$9>>2]|0;
  11346. $11 = ((($3)) + 12|0);
  11347. HEAP32[$11>>2] = $10;
  11348. $12 = ((($1)) + 56|0);
  11349. $13 = HEAP32[$12>>2]|0;
  11350. $14 = (+($13|0));
  11351. $15 = ((($1)) + 60|0);
  11352. $16 = HEAP32[$15>>2]|0;
  11353. $17 = (+($16|0));
  11354. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  11355. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  11356. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  11357. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  11358. $18 = ((($1)) + 108|0);
  11359. $19 = HEAP32[$18>>2]|0;
  11360. $20 = (+($19|0));
  11361. $21 = ((($1)) + 112|0);
  11362. $22 = HEAP32[$21>>2]|0;
  11363. $23 = (+($22|0));
  11364. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  11365. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  11366. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  11367. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  11368. $24 = ((($3)) + 24|0);
  11369. $25 = $24;
  11370. $26 = $25;
  11371. $27 = HEAP32[$26>>2]|0;
  11372. $28 = (($25) + 4)|0;
  11373. $29 = $28;
  11374. $30 = HEAP32[$29>>2]|0;
  11375. $31 = 19880;
  11376. $32 = $31;
  11377. HEAP32[$32>>2] = $27;
  11378. $33 = (($31) + 4)|0;
  11379. $34 = $33;
  11380. HEAP32[$34>>2] = $30;
  11381. $35 = ((($3)) + 32|0);
  11382. $36 = $35;
  11383. $37 = $36;
  11384. $38 = HEAP32[$37>>2]|0;
  11385. $39 = (($36) + 4)|0;
  11386. $40 = $39;
  11387. $41 = HEAP32[$40>>2]|0;
  11388. $42 = (19888);
  11389. $43 = $42;
  11390. HEAP32[$43>>2] = $38;
  11391. $44 = (($42) + 4)|0;
  11392. $45 = $44;
  11393. HEAP32[$45>>2] = $41;
  11394. $46 = (_GetScreenWidth()|0);
  11395. $47 = (+($46|0));
  11396. $48 = +HEAPF32[$24>>2];
  11397. $49 = $48 / $47;
  11398. HEAPF32[$24>>2] = $49;
  11399. $50 = (_GetScreenHeight()|0);
  11400. $51 = (+($50|0));
  11401. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  11402. $53 = $52 / $51;
  11403. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  11404. $54 = (_GetScreenWidth()|0);
  11405. $55 = (+($54|0));
  11406. $56 = +HEAPF32[$35>>2];
  11407. $57 = $56 / $55;
  11408. HEAPF32[$35>>2] = $57;
  11409. $58 = (_GetScreenHeight()|0);
  11410. $59 = (+($58|0));
  11411. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  11412. $61 = $60 / $59;
  11413. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  11414. 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));
  11415. _ProcessGestureEvent($$byval_copy);
  11416. STACKTOP = sp;return 1;
  11417. }
  11418. function _EmscriptenGamepadCallback($0,$1,$2) {
  11419. $0 = $0|0;
  11420. $1 = $1|0;
  11421. $2 = $2|0;
  11422. 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;
  11423. sp = STACKTOP;
  11424. $3 = ((($1)) + 1296|0);
  11425. $4 = HEAP32[$3>>2]|0;
  11426. $5 = ($4|0)==(0);
  11427. if ($5) {
  11428. label = 3;
  11429. } else {
  11430. $6 = ((($1)) + 1300|0);
  11431. $7 = HEAP32[$6>>2]|0;
  11432. $8 = ($7|0)<(4);
  11433. if ($8) {
  11434. $$sink = 1;
  11435. } else {
  11436. label = 3;
  11437. }
  11438. }
  11439. if ((label|0) == 3) {
  11440. $$sink = 0;
  11441. }
  11442. $9 = ((($1)) + 1300|0);
  11443. $10 = HEAP32[$9>>2]|0;
  11444. $11 = (20456 + ($10<<2)|0);
  11445. HEAP32[$11>>2] = $$sink;
  11446. return 0;
  11447. }
  11448. function _SetTargetFPS($0) {
  11449. $0 = $0|0;
  11450. 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;
  11451. sp = STACKTOP;
  11452. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  11453. $vararg_buffer = sp;
  11454. $1 = ($0|0)<(1);
  11455. $2 = (+($0|0));
  11456. $3 = 1.0 / $2;
  11457. $$ = $1 ? 0.0 : $3;
  11458. HEAPF64[2484] = $$;
  11459. $4 = $3;
  11460. $$op = $4 * 1000.0;
  11461. $5 = $$op;
  11462. $6 = $1 ? 0.0 : $5;
  11463. HEAPF64[$vararg_buffer>>3] = $6;
  11464. _TraceLog(0,5158,$vararg_buffer);
  11465. STACKTOP = sp;return;
  11466. }
  11467. function _LogoAnimation() {
  11468. var label = 0, sp = 0;
  11469. sp = STACKTOP;
  11470. HEAP32[5113] = 0;
  11471. return;
  11472. }
  11473. function _GetTime() {
  11474. var $0 = 0.0, label = 0, sp = 0;
  11475. sp = STACKTOP;
  11476. $0 = (+_glfwGetTime());
  11477. return (+$0);
  11478. }
  11479. function _LoadImageEx($0,$1,$2,$3) {
  11480. $0 = $0|0;
  11481. $1 = $1|0;
  11482. $2 = $2|0;
  11483. $3 = $3|0;
  11484. 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;
  11485. 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;
  11486. sp = STACKTOP;
  11487. $4 = $2 << 2;
  11488. $5 = Math_imul($4, $3)|0;
  11489. $6 = (_malloc($5)|0);
  11490. $7 = ($5|0)>(0);
  11491. if ($7) {
  11492. $8 = (($5) + -1)|0;
  11493. $9 = $8 >>> 2;
  11494. $$03334 = 0;$$035 = 0;
  11495. while(1) {
  11496. $10 = (($1) + ($$03334<<2)|0);
  11497. $11 = HEAP8[$10>>0]|0;
  11498. $12 = (($6) + ($$035)|0);
  11499. HEAP8[$12>>0] = $11;
  11500. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  11501. $14 = HEAP8[$13>>0]|0;
  11502. $15 = $$035 | 1;
  11503. $16 = (($6) + ($15)|0);
  11504. HEAP8[$16>>0] = $14;
  11505. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  11506. $18 = HEAP8[$17>>0]|0;
  11507. $19 = $$035 | 2;
  11508. $20 = (($6) + ($19)|0);
  11509. HEAP8[$20>>0] = $18;
  11510. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  11511. $22 = HEAP8[$21>>0]|0;
  11512. $23 = $$035 | 3;
  11513. $24 = (($6) + ($23)|0);
  11514. HEAP8[$24>>0] = $22;
  11515. $25 = (($$03334) + 1)|0;
  11516. $26 = (($$035) + 4)|0;
  11517. $exitcond = ($$03334|0)==($9|0);
  11518. if ($exitcond) {
  11519. break;
  11520. } else {
  11521. $$03334 = $25;$$035 = $26;
  11522. }
  11523. }
  11524. }
  11525. HEAP32[$0>>2] = $6;
  11526. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  11527. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  11528. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  11529. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  11530. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  11531. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  11532. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  11533. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  11534. return;
  11535. }
  11536. function _ImageFormat($0,$1) {
  11537. $0 = $0|0;
  11538. $1 = $1|0;
  11539. 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;
  11540. 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;
  11541. 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;
  11542. 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;
  11543. 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;
  11544. 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;
  11545. 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;
  11546. 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;
  11547. 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;
  11548. 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;
  11549. 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;
  11550. 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;
  11551. 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;
  11552. 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;
  11553. 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;
  11554. 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;
  11555. sp = STACKTOP;
  11556. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  11557. $$byval_copy = sp + 4|0;
  11558. $vararg_buffer = sp;
  11559. $2 = ((($0)) + 16|0);
  11560. $3 = HEAP32[$2>>2]|0;
  11561. $4 = ($3|0)==($1|0);
  11562. if ($4) {
  11563. STACKTOP = sp;return;
  11564. }
  11565. $5 = ($3|0)<(8);
  11566. $6 = ($1|0)<(8);
  11567. $or$cond = $6 & $5;
  11568. if (!($or$cond)) {
  11569. _TraceLog(2,5721,$vararg_buffer);
  11570. STACKTOP = sp;return;
  11571. }
  11572. ;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;
  11573. $7 = (_GetImageData($$byval_copy)|0);
  11574. $8 = HEAP32[$0>>2]|0;
  11575. _free($8);
  11576. HEAP32[$2>>2] = $1;
  11577. switch ($1|0) {
  11578. case 1: {
  11579. $9 = ((($0)) + 4|0);
  11580. $10 = HEAP32[$9>>2]|0;
  11581. $11 = ((($0)) + 8|0);
  11582. $12 = HEAP32[$11>>2]|0;
  11583. $13 = Math_imul($12, $10)|0;
  11584. $14 = (_malloc($13)|0);
  11585. HEAP32[$0>>2] = $14;
  11586. $15 = Math_imul($12, $10)|0;
  11587. $16 = ($15|0)>(0);
  11588. if ($16) {
  11589. $$0171188 = 0;
  11590. while(1) {
  11591. $17 = (($7) + ($$0171188<<2)|0);
  11592. $18 = HEAP8[$17>>0]|0;
  11593. $19 = (+($18&255));
  11594. $20 = $19 * 0.29899999499320984;
  11595. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  11596. $22 = HEAP8[$21>>0]|0;
  11597. $23 = (+($22&255));
  11598. $24 = $23 * 0.58700001239776611;
  11599. $25 = $20 + $24;
  11600. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  11601. $27 = HEAP8[$26>>0]|0;
  11602. $28 = (+($27&255));
  11603. $29 = $28 * 0.11400000005960464;
  11604. $30 = $25 + $29;
  11605. $31 = (~~(($30))&255);
  11606. $32 = HEAP32[$0>>2]|0;
  11607. $33 = (($32) + ($$0171188)|0);
  11608. HEAP8[$33>>0] = $31;
  11609. $34 = (($$0171188) + 1)|0;
  11610. $35 = HEAP32[$9>>2]|0;
  11611. $36 = HEAP32[$11>>2]|0;
  11612. $37 = Math_imul($36, $35)|0;
  11613. $38 = ($34|0)<($37|0);
  11614. if ($38) {
  11615. $$0171188 = $34;
  11616. } else {
  11617. break;
  11618. }
  11619. }
  11620. }
  11621. break;
  11622. }
  11623. case 2: {
  11624. $39 = ((($0)) + 4|0);
  11625. $40 = HEAP32[$39>>2]|0;
  11626. $41 = ((($0)) + 8|0);
  11627. $42 = HEAP32[$41>>2]|0;
  11628. $43 = $40 << 1;
  11629. $44 = Math_imul($43, $42)|0;
  11630. $45 = (_malloc($44)|0);
  11631. HEAP32[$0>>2] = $45;
  11632. $46 = HEAP32[$39>>2]|0;
  11633. $47 = $46 << 1;
  11634. $48 = Math_imul($47, $42)|0;
  11635. $49 = ($48|0)>(0);
  11636. if ($49) {
  11637. $$0170190 = 0;$$0172189 = 0;
  11638. while(1) {
  11639. $50 = (($7) + ($$0172189<<2)|0);
  11640. $51 = HEAP8[$50>>0]|0;
  11641. $52 = (+($51&255));
  11642. $53 = $52 * 0.29899999499320984;
  11643. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  11644. $55 = HEAP8[$54>>0]|0;
  11645. $56 = (+($55&255));
  11646. $57 = $56 * 0.58700001239776611;
  11647. $58 = $53 + $57;
  11648. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  11649. $60 = HEAP8[$59>>0]|0;
  11650. $61 = (+($60&255));
  11651. $62 = $61 * 0.11400000005960464;
  11652. $63 = $58 + $62;
  11653. $64 = (~~(($63))&255);
  11654. $65 = HEAP32[$0>>2]|0;
  11655. $66 = (($65) + ($$0170190)|0);
  11656. HEAP8[$66>>0] = $64;
  11657. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  11658. $68 = HEAP8[$67>>0]|0;
  11659. $69 = HEAP32[$0>>2]|0;
  11660. $70 = $$0170190 | 1;
  11661. $71 = (($69) + ($70)|0);
  11662. HEAP8[$71>>0] = $68;
  11663. $72 = (($$0172189) + 1)|0;
  11664. $73 = (($$0170190) + 2)|0;
  11665. $74 = HEAP32[$39>>2]|0;
  11666. $75 = HEAP32[$41>>2]|0;
  11667. $76 = $74 << 1;
  11668. $77 = Math_imul($76, $75)|0;
  11669. $78 = ($73|0)<($77|0);
  11670. if ($78) {
  11671. $$0170190 = $73;$$0172189 = $72;
  11672. } else {
  11673. break;
  11674. }
  11675. }
  11676. }
  11677. break;
  11678. }
  11679. case 3: {
  11680. $79 = ((($0)) + 4|0);
  11681. $80 = HEAP32[$79>>2]|0;
  11682. $81 = ((($0)) + 8|0);
  11683. $82 = HEAP32[$81>>2]|0;
  11684. $83 = $80 << 1;
  11685. $84 = Math_imul($83, $82)|0;
  11686. $85 = (_malloc($84)|0);
  11687. HEAP32[$0>>2] = $85;
  11688. $86 = HEAP32[$79>>2]|0;
  11689. $87 = Math_imul($82, $86)|0;
  11690. $88 = ($87|0)>(0);
  11691. if ($88) {
  11692. $89 = HEAP8[$7>>0]|0;
  11693. $90 = (+($89&255));
  11694. $91 = $90 * 31.0;
  11695. $92 = $91 / 255.0;
  11696. $roundf179 = (+_roundf((+$92)));
  11697. $93 = (~~(($roundf179))&255);
  11698. $94 = ((($7)) + 1|0);
  11699. $95 = HEAP8[$94>>0]|0;
  11700. $96 = (+($95&255));
  11701. $97 = $96 * 63.0;
  11702. $98 = $97 / 255.0;
  11703. $roundf180 = (+_roundf((+$98)));
  11704. $99 = (~~(($roundf180))&255);
  11705. $100 = ((($7)) + 2|0);
  11706. $101 = HEAP8[$100>>0]|0;
  11707. $102 = (+($101&255));
  11708. $103 = $102 * 31.0;
  11709. $104 = $103 / 255.0;
  11710. $roundf181 = (+_roundf((+$104)));
  11711. $105 = (~~(($roundf181))&255);
  11712. $106 = $93&255;
  11713. $107 = $106 << 11;
  11714. $108 = $99&255;
  11715. $109 = $108 << 5;
  11716. $110 = $109 | $107;
  11717. $111 = $105&255;
  11718. $112 = $110 | $111;
  11719. $113 = $112&65535;
  11720. $114 = HEAP32[$0>>2]|0;
  11721. $115 = HEAP32[$79>>2]|0;
  11722. $116 = HEAP32[$81>>2]|0;
  11723. $117 = Math_imul($116, $115)|0;
  11724. $$0169192 = 0;
  11725. while(1) {
  11726. $118 = (($114) + ($$0169192<<1)|0);
  11727. HEAP16[$118>>1] = $113;
  11728. $119 = (($$0169192) + 1)|0;
  11729. $120 = ($119|0)<($117|0);
  11730. if ($120) {
  11731. $$0169192 = $119;
  11732. } else {
  11733. break;
  11734. }
  11735. }
  11736. }
  11737. break;
  11738. }
  11739. case 4: {
  11740. $121 = ((($0)) + 4|0);
  11741. $122 = HEAP32[$121>>2]|0;
  11742. $123 = ((($0)) + 8|0);
  11743. $124 = HEAP32[$123>>2]|0;
  11744. $125 = ($122*3)|0;
  11745. $126 = Math_imul($125, $124)|0;
  11746. $127 = (_malloc($126)|0);
  11747. HEAP32[$0>>2] = $127;
  11748. $128 = HEAP32[$121>>2]|0;
  11749. $129 = ($128*3)|0;
  11750. $130 = Math_imul($129, $124)|0;
  11751. $131 = ($130|0)>(0);
  11752. if ($131) {
  11753. $$0168195 = 0;$$1194 = 0;
  11754. while(1) {
  11755. $132 = (($7) + ($$1194<<2)|0);
  11756. $133 = HEAP8[$132>>0]|0;
  11757. $134 = HEAP32[$0>>2]|0;
  11758. $135 = (($134) + ($$0168195)|0);
  11759. HEAP8[$135>>0] = $133;
  11760. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  11761. $137 = HEAP8[$136>>0]|0;
  11762. $138 = HEAP32[$0>>2]|0;
  11763. $139 = (($$0168195) + 1)|0;
  11764. $140 = (($138) + ($139)|0);
  11765. HEAP8[$140>>0] = $137;
  11766. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  11767. $142 = HEAP8[$141>>0]|0;
  11768. $143 = HEAP32[$0>>2]|0;
  11769. $144 = (($$0168195) + 2)|0;
  11770. $145 = (($143) + ($144)|0);
  11771. HEAP8[$145>>0] = $142;
  11772. $146 = (($$1194) + 1)|0;
  11773. $147 = (($$0168195) + 3)|0;
  11774. $148 = HEAP32[$121>>2]|0;
  11775. $149 = HEAP32[$123>>2]|0;
  11776. $150 = ($148*3)|0;
  11777. $151 = Math_imul($150, $149)|0;
  11778. $152 = ($147|0)<($151|0);
  11779. if ($152) {
  11780. $$0168195 = $147;$$1194 = $146;
  11781. } else {
  11782. break;
  11783. }
  11784. }
  11785. }
  11786. break;
  11787. }
  11788. case 5: {
  11789. $153 = ((($0)) + 4|0);
  11790. $154 = HEAP32[$153>>2]|0;
  11791. $155 = ((($0)) + 8|0);
  11792. $156 = HEAP32[$155>>2]|0;
  11793. $157 = $154 << 1;
  11794. $158 = Math_imul($157, $156)|0;
  11795. $159 = (_malloc($158)|0);
  11796. HEAP32[$0>>2] = $159;
  11797. $160 = HEAP32[$153>>2]|0;
  11798. $161 = Math_imul($156, $160)|0;
  11799. $162 = ($161|0)>(0);
  11800. if ($162) {
  11801. $163 = HEAP32[$0>>2]|0;
  11802. $164 = HEAP32[$153>>2]|0;
  11803. $165 = HEAP32[$155>>2]|0;
  11804. $166 = Math_imul($165, $164)|0;
  11805. $$0167197 = 0;
  11806. while(1) {
  11807. $167 = (($7) + ($$0167197<<2)|0);
  11808. $168 = HEAP8[$167>>0]|0;
  11809. $169 = (+($168&255));
  11810. $170 = $169 * 31.0;
  11811. $171 = $170 / 255.0;
  11812. $roundf176 = (+_roundf((+$171)));
  11813. $172 = (~~(($roundf176))&255);
  11814. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  11815. $174 = HEAP8[$173>>0]|0;
  11816. $175 = (+($174&255));
  11817. $176 = $175 * 31.0;
  11818. $177 = $176 / 255.0;
  11819. $roundf177 = (+_roundf((+$177)));
  11820. $178 = (~~(($roundf177))&255);
  11821. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  11822. $180 = HEAP8[$179>>0]|0;
  11823. $181 = (+($180&255));
  11824. $182 = $181 * 31.0;
  11825. $183 = $182 / 255.0;
  11826. $roundf178 = (+_roundf((+$183)));
  11827. $184 = (~~(($roundf178))&255);
  11828. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  11829. $186 = HEAP8[$185>>0]|0;
  11830. $187 = ($186&255)>(50);
  11831. $188 = $172&255;
  11832. $189 = $188 << 11;
  11833. $190 = $178&255;
  11834. $191 = $190 << 6;
  11835. $192 = $191 | $189;
  11836. $193 = $184&255;
  11837. $194 = $193 << 1;
  11838. $195 = $192 | $194;
  11839. $196 = $187&1;
  11840. $197 = $195 | $196;
  11841. $198 = $197&65535;
  11842. $199 = (($163) + ($$0167197<<1)|0);
  11843. HEAP16[$199>>1] = $198;
  11844. $200 = (($$0167197) + 1)|0;
  11845. $201 = ($200|0)<($166|0);
  11846. if ($201) {
  11847. $$0167197 = $200;
  11848. } else {
  11849. break;
  11850. }
  11851. }
  11852. }
  11853. break;
  11854. }
  11855. case 6: {
  11856. $202 = ((($0)) + 4|0);
  11857. $203 = HEAP32[$202>>2]|0;
  11858. $204 = ((($0)) + 8|0);
  11859. $205 = HEAP32[$204>>2]|0;
  11860. $206 = $203 << 1;
  11861. $207 = Math_imul($206, $205)|0;
  11862. $208 = (_malloc($207)|0);
  11863. HEAP32[$0>>2] = $208;
  11864. $209 = HEAP32[$202>>2]|0;
  11865. $210 = Math_imul($205, $209)|0;
  11866. $211 = ($210|0)>(0);
  11867. if ($211) {
  11868. $212 = HEAP32[$0>>2]|0;
  11869. $213 = HEAP32[$202>>2]|0;
  11870. $214 = HEAP32[$204>>2]|0;
  11871. $215 = Math_imul($214, $213)|0;
  11872. $$0166199 = 0;
  11873. while(1) {
  11874. $216 = (($7) + ($$0166199<<2)|0);
  11875. $217 = HEAP8[$216>>0]|0;
  11876. $218 = (+($217&255));
  11877. $219 = $218 * 15.0;
  11878. $220 = $219 / 255.0;
  11879. $roundf = (+_roundf((+$220)));
  11880. $221 = (~~(($roundf))&255);
  11881. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  11882. $223 = HEAP8[$222>>0]|0;
  11883. $224 = (+($223&255));
  11884. $225 = $224 * 15.0;
  11885. $226 = $225 / 255.0;
  11886. $roundf173 = (+_roundf((+$226)));
  11887. $227 = (~~(($roundf173))&255);
  11888. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  11889. $229 = HEAP8[$228>>0]|0;
  11890. $230 = (+($229&255));
  11891. $231 = $230 * 15.0;
  11892. $232 = $231 / 255.0;
  11893. $roundf174 = (+_roundf((+$232)));
  11894. $233 = (~~(($roundf174))&255);
  11895. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  11896. $235 = HEAP8[$234>>0]|0;
  11897. $236 = (+($235&255));
  11898. $237 = $236 * 15.0;
  11899. $238 = $237 / 255.0;
  11900. $roundf175 = (+_roundf((+$238)));
  11901. $239 = (~~(($roundf175))&255);
  11902. $240 = $221&255;
  11903. $241 = $240 << 12;
  11904. $242 = $227&255;
  11905. $243 = $242 << 8;
  11906. $244 = $243 | $241;
  11907. $245 = $233&255;
  11908. $246 = $245 << 4;
  11909. $247 = $244 | $246;
  11910. $248 = $239&255;
  11911. $249 = $247 | $248;
  11912. $250 = $249&65535;
  11913. $251 = (($212) + ($$0166199<<1)|0);
  11914. HEAP16[$251>>1] = $250;
  11915. $252 = (($$0166199) + 1)|0;
  11916. $253 = ($252|0)<($215|0);
  11917. if ($253) {
  11918. $$0166199 = $252;
  11919. } else {
  11920. break;
  11921. }
  11922. }
  11923. }
  11924. break;
  11925. }
  11926. case 7: {
  11927. $254 = ((($0)) + 4|0);
  11928. $255 = HEAP32[$254>>2]|0;
  11929. $256 = ((($0)) + 8|0);
  11930. $257 = HEAP32[$256>>2]|0;
  11931. $258 = $255 << 2;
  11932. $259 = Math_imul($258, $257)|0;
  11933. $260 = (_malloc($259)|0);
  11934. HEAP32[$0>>2] = $260;
  11935. $261 = HEAP32[$254>>2]|0;
  11936. $262 = $261 << 2;
  11937. $263 = Math_imul($262, $257)|0;
  11938. $264 = ($263|0)>(0);
  11939. if ($264) {
  11940. $$0202 = 0;$$2201 = 0;
  11941. while(1) {
  11942. $265 = (($7) + ($$2201<<2)|0);
  11943. $266 = HEAP8[$265>>0]|0;
  11944. $267 = HEAP32[$0>>2]|0;
  11945. $268 = (($267) + ($$0202)|0);
  11946. HEAP8[$268>>0] = $266;
  11947. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  11948. $270 = HEAP8[$269>>0]|0;
  11949. $271 = HEAP32[$0>>2]|0;
  11950. $272 = $$0202 | 1;
  11951. $273 = (($271) + ($272)|0);
  11952. HEAP8[$273>>0] = $270;
  11953. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  11954. $275 = HEAP8[$274>>0]|0;
  11955. $276 = HEAP32[$0>>2]|0;
  11956. $277 = $$0202 | 2;
  11957. $278 = (($276) + ($277)|0);
  11958. HEAP8[$278>>0] = $275;
  11959. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  11960. $280 = HEAP8[$279>>0]|0;
  11961. $281 = HEAP32[$0>>2]|0;
  11962. $282 = $$0202 | 3;
  11963. $283 = (($281) + ($282)|0);
  11964. HEAP8[$283>>0] = $280;
  11965. $284 = (($$2201) + 1)|0;
  11966. $285 = (($$0202) + 4)|0;
  11967. $286 = HEAP32[$254>>2]|0;
  11968. $287 = HEAP32[$256>>2]|0;
  11969. $288 = $286 << 2;
  11970. $289 = Math_imul($288, $287)|0;
  11971. $290 = ($285|0)<($289|0);
  11972. if ($290) {
  11973. $$0202 = $285;$$2201 = $284;
  11974. } else {
  11975. break;
  11976. }
  11977. }
  11978. }
  11979. break;
  11980. }
  11981. default: {
  11982. }
  11983. }
  11984. _free($7);
  11985. STACKTOP = sp;return;
  11986. }
  11987. function _LoadTextureFromImage($0,$1) {
  11988. $0 = $0|0;
  11989. $1 = $1|0;
  11990. 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;
  11991. sp = STACKTOP;
  11992. $2 = HEAP32[$1>>2]|0;
  11993. $3 = ((($1)) + 4|0);
  11994. $4 = HEAP32[$3>>2]|0;
  11995. $5 = ((($1)) + 8|0);
  11996. $6 = HEAP32[$5>>2]|0;
  11997. $7 = ((($1)) + 16|0);
  11998. $8 = HEAP32[$7>>2]|0;
  11999. $9 = ((($1)) + 12|0);
  12000. $10 = HEAP32[$9>>2]|0;
  12001. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  12002. $12 = HEAP32[$3>>2]|0;
  12003. $13 = HEAP32[$5>>2]|0;
  12004. HEAP32[$0>>2] = $11;
  12005. $$sroa$5$0$$sroa_idx2 = ((($0)) + 4|0);
  12006. HEAP32[$$sroa$5$0$$sroa_idx2>>2] = $12;
  12007. $$sroa$7$0$$sroa_idx4 = ((($0)) + 8|0);
  12008. HEAP32[$$sroa$7$0$$sroa_idx4>>2] = $13;
  12009. $$sroa$9$0$$sroa_idx6 = ((($0)) + 12|0);
  12010. HEAP32[$$sroa$9$0$$sroa_idx6>>2] = $10;
  12011. $$sroa$11$0$$sroa_idx8 = ((($0)) + 16|0);
  12012. HEAP32[$$sroa$11$0$$sroa_idx8>>2] = $8;
  12013. return;
  12014. }
  12015. function _UnloadImage($0) {
  12016. $0 = $0|0;
  12017. var $1 = 0, label = 0, sp = 0;
  12018. sp = STACKTOP;
  12019. $1 = HEAP32[$0>>2]|0;
  12020. _free($1);
  12021. return;
  12022. }
  12023. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  12024. $0 = $0|0;
  12025. $1 = $1|0;
  12026. $2 = $2|0;
  12027. $3 = $3|0;
  12028. $4 = $4|0;
  12029. 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;
  12030. 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;
  12031. 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;
  12032. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  12033. sp = STACKTOP;
  12034. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  12035. $vararg_buffer15 = sp + 64|0;
  12036. $vararg_buffer11 = sp + 48|0;
  12037. $vararg_buffer9 = sp + 40|0;
  12038. $vararg_buffer7 = sp + 32|0;
  12039. $vararg_buffer5 = sp + 24|0;
  12040. $vararg_buffer3 = sp + 16|0;
  12041. $vararg_buffer1 = sp + 8|0;
  12042. $vararg_buffer = sp;
  12043. $5 = sp + 68|0;
  12044. _glBindTexture(3553,0);
  12045. HEAP32[$5>>2] = 0;
  12046. $6 = HEAP32[5126]|0;
  12047. $7 = ($6|0)==(0);
  12048. $8 = $3 & -4;
  12049. $switch = ($8|0)==(8);
  12050. $or$cond100 = $switch & $7;
  12051. if ($or$cond100) {
  12052. _TraceLog(2,5390,$vararg_buffer);
  12053. $$0 = HEAP32[$5>>2]|0;
  12054. STACKTOP = sp;return ($$0|0);
  12055. }
  12056. $9 = HEAP32[5127]|0;
  12057. $10 = ($9|0)==(0);
  12058. $11 = ($3|0)==(12);
  12059. $or$cond7 = $11 & $10;
  12060. if ($or$cond7) {
  12061. _TraceLog(2,5434,$vararg_buffer1);
  12062. $$0 = HEAP32[$5>>2]|0;
  12063. STACKTOP = sp;return ($$0|0);
  12064. }
  12065. $12 = HEAP32[5128]|0;
  12066. $13 = ($12|0)==(0);
  12067. $$off = (($3) + -13)|0;
  12068. $14 = ($$off>>>0)<(2);
  12069. $or$cond = $14 & $13;
  12070. if ($or$cond) {
  12071. _TraceLog(2,5479,$vararg_buffer3);
  12072. $$0 = HEAP32[$5>>2]|0;
  12073. STACKTOP = sp;return ($$0|0);
  12074. }
  12075. $15 = HEAP32[5129]|0;
  12076. $16 = ($15|0)==(0);
  12077. $$off92 = (($3) + -15)|0;
  12078. $17 = ($$off92>>>0)<(2);
  12079. $or$cond96 = $17 & $16;
  12080. if ($or$cond96) {
  12081. _TraceLog(2,5524,$vararg_buffer5);
  12082. $$0 = HEAP32[$5>>2]|0;
  12083. STACKTOP = sp;return ($$0|0);
  12084. }
  12085. $18 = HEAP32[5130]|0;
  12086. $19 = ($18|0)==(0);
  12087. $$off93 = (($3) + -17)|0;
  12088. $20 = ($$off93>>>0)<(2);
  12089. $or$cond98 = $20 & $19;
  12090. if ($or$cond98) {
  12091. _TraceLog(2,5569,$vararg_buffer7);
  12092. $$0 = HEAP32[$5>>2]|0;
  12093. STACKTOP = sp;return ($$0|0);
  12094. }
  12095. _glGenTextures(1,($5|0));
  12096. $21 = HEAP32[$5>>2]|0;
  12097. _glBindTexture(3553,($21|0));
  12098. do {
  12099. switch ($3|0) {
  12100. case 1: {
  12101. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  12102. break;
  12103. }
  12104. case 2: {
  12105. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  12106. break;
  12107. }
  12108. case 3: {
  12109. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  12110. break;
  12111. }
  12112. case 4: {
  12113. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  12114. break;
  12115. }
  12116. case 5: {
  12117. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  12118. break;
  12119. }
  12120. case 6: {
  12121. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  12122. break;
  12123. }
  12124. case 7: {
  12125. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  12126. break;
  12127. }
  12128. case 8: {
  12129. $22 = HEAP32[5126]|0;
  12130. $23 = ($22|0)==(0);
  12131. if (!($23)) {
  12132. _LoadCompressedTexture($0,$1,$2,$4,33776);
  12133. }
  12134. break;
  12135. }
  12136. case 9: {
  12137. $24 = HEAP32[5126]|0;
  12138. $25 = ($24|0)==(0);
  12139. if (!($25)) {
  12140. _LoadCompressedTexture($0,$1,$2,$4,33777);
  12141. }
  12142. break;
  12143. }
  12144. case 10: {
  12145. $26 = HEAP32[5126]|0;
  12146. $27 = ($26|0)==(0);
  12147. if (!($27)) {
  12148. _LoadCompressedTexture($0,$1,$2,$4,33778);
  12149. }
  12150. break;
  12151. }
  12152. case 11: {
  12153. $28 = HEAP32[5126]|0;
  12154. $29 = ($28|0)==(0);
  12155. if (!($29)) {
  12156. _LoadCompressedTexture($0,$1,$2,$4,33779);
  12157. }
  12158. break;
  12159. }
  12160. case 12: {
  12161. $30 = HEAP32[5127]|0;
  12162. $31 = ($30|0)==(0);
  12163. if (!($31)) {
  12164. _LoadCompressedTexture($0,$1,$2,$4,36196);
  12165. }
  12166. break;
  12167. }
  12168. case 13: {
  12169. $32 = HEAP32[5128]|0;
  12170. $33 = ($32|0)==(0);
  12171. if (!($33)) {
  12172. _LoadCompressedTexture($0,$1,$2,$4,37492);
  12173. }
  12174. break;
  12175. }
  12176. case 14: {
  12177. $34 = HEAP32[5128]|0;
  12178. $35 = ($34|0)==(0);
  12179. if (!($35)) {
  12180. _LoadCompressedTexture($0,$1,$2,$4,37496);
  12181. }
  12182. break;
  12183. }
  12184. case 15: {
  12185. $36 = HEAP32[5129]|0;
  12186. $37 = ($36|0)==(0);
  12187. if (!($37)) {
  12188. _LoadCompressedTexture($0,$1,$2,$4,35840);
  12189. }
  12190. break;
  12191. }
  12192. case 16: {
  12193. $38 = HEAP32[5129]|0;
  12194. $39 = ($38|0)==(0);
  12195. if (!($39)) {
  12196. _LoadCompressedTexture($0,$1,$2,$4,35842);
  12197. }
  12198. break;
  12199. }
  12200. case 17: {
  12201. $40 = HEAP32[5130]|0;
  12202. $41 = ($40|0)==(0);
  12203. if (!($41)) {
  12204. _LoadCompressedTexture($0,$1,$2,$4,37808);
  12205. }
  12206. break;
  12207. }
  12208. case 18: {
  12209. $42 = HEAP32[5130]|0;
  12210. $43 = ($42|0)==(0);
  12211. if (!($43)) {
  12212. _LoadCompressedTexture($0,$1,$2,$4,37815);
  12213. }
  12214. break;
  12215. }
  12216. default: {
  12217. _TraceLog(2,5614,$vararg_buffer9);
  12218. }
  12219. }
  12220. } while(0);
  12221. $44 = HEAP32[5131]|0;
  12222. $45 = ($44|0)==(0);
  12223. if ($45) {
  12224. _glTexParameteri(3553,10242,33071);
  12225. _glTexParameteri(3553,10243,33071);
  12226. } else {
  12227. _glTexParameteri(3553,10242,10497);
  12228. _glTexParameteri(3553,10243,10497);
  12229. }
  12230. _glTexParameteri(3553,10240,9728);
  12231. _glTexParameteri(3553,10241,9728);
  12232. _glBindTexture(3553,0);
  12233. $46 = HEAP32[$5>>2]|0;
  12234. $47 = ($46|0)==(0);
  12235. if ($47) {
  12236. _TraceLog(2,5692,$vararg_buffer15);
  12237. $$0 = HEAP32[$5>>2]|0;
  12238. STACKTOP = sp;return ($$0|0);
  12239. } else {
  12240. HEAP32[$vararg_buffer11>>2] = $46;
  12241. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  12242. HEAP32[$vararg_ptr13>>2] = $1;
  12243. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  12244. HEAP32[$vararg_ptr14>>2] = $2;
  12245. _TraceLog(0,5643,$vararg_buffer11);
  12246. $$0 = HEAP32[$5>>2]|0;
  12247. STACKTOP = sp;return ($$0|0);
  12248. }
  12249. return (0)|0;
  12250. }
  12251. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  12252. $0 = $0|0;
  12253. $1 = $1|0;
  12254. $2 = $2|0;
  12255. $3 = $3|0;
  12256. $4 = $4|0;
  12257. 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;
  12258. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  12259. sp = STACKTOP;
  12260. _glPixelStorei(3317,1);
  12261. switch ($4|0) {
  12262. case 33776: case 33777: case 36196: case 37492: {
  12263. $$038 = 8;
  12264. break;
  12265. }
  12266. default: {
  12267. $$038 = 16;
  12268. }
  12269. }
  12270. $5 = ($3|0)<(1);
  12271. $6 = $1 | $2;
  12272. $7 = ($6|0)==(0);
  12273. $or$cond42 = $5 | $7;
  12274. if ($or$cond42) {
  12275. return;
  12276. } else {
  12277. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  12278. }
  12279. while(1) {
  12280. $8 = (($$046) + 3)|0;
  12281. $9 = (($8|0) / 4)&-1;
  12282. $10 = (($$03943) + 3)|0;
  12283. $11 = (($10|0) / 4)&-1;
  12284. $12 = Math_imul($11, $$038)|0;
  12285. $13 = Math_imul($12, $9)|0;
  12286. $14 = (($0) + ($$03744)|0);
  12287. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  12288. $15 = (($13) + ($$03744))|0;
  12289. $16 = (($$046|0) / 2)&-1;
  12290. $17 = (($$03943|0) / 2)&-1;
  12291. $18 = ($$046|0)<(2);
  12292. $$ = $18 ? 1 : $16;
  12293. $19 = ($$03943|0)<(2);
  12294. $$140 = $19 ? 1 : $17;
  12295. $20 = (($$03645) + 1)|0;
  12296. $21 = ($20|0)>=($3|0);
  12297. $22 = $$ | $$140;
  12298. $23 = ($22|0)==(0);
  12299. $or$cond = $21 | $23;
  12300. if ($or$cond) {
  12301. break;
  12302. } else {
  12303. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  12304. }
  12305. }
  12306. return;
  12307. }
  12308. function _GetImageData($0) {
  12309. $0 = $0|0;
  12310. 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;
  12311. 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;
  12312. 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;
  12313. 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;
  12314. 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;
  12315. 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;
  12316. 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;
  12317. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  12318. sp = STACKTOP;
  12319. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12320. $vararg_buffer = sp;
  12321. $1 = ((($0)) + 4|0);
  12322. $2 = HEAP32[$1>>2]|0;
  12323. $3 = ((($0)) + 8|0);
  12324. $4 = HEAP32[$3>>2]|0;
  12325. $5 = $2 << 2;
  12326. $6 = Math_imul($5, $4)|0;
  12327. $7 = (_malloc($6)|0);
  12328. $8 = HEAP32[$1>>2]|0;
  12329. $9 = Math_imul($4, $8)|0;
  12330. $10 = ($9|0)>(0);
  12331. if (!($10)) {
  12332. STACKTOP = sp;return ($7|0);
  12333. }
  12334. $11 = ((($0)) + 16|0);
  12335. $12 = HEAP32[$11>>2]|0;
  12336. $13 = HEAP32[$0>>2]|0;
  12337. $$0104105 = 0;$$0106 = 0;
  12338. while(1) {
  12339. switch ($12|0) {
  12340. case 1: {
  12341. $14 = (($13) + ($$0106)|0);
  12342. $15 = HEAP8[$14>>0]|0;
  12343. $16 = (($7) + ($$0104105<<2)|0);
  12344. HEAP8[$16>>0] = $15;
  12345. $17 = HEAP8[$14>>0]|0;
  12346. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12347. HEAP8[$18>>0] = $17;
  12348. $19 = HEAP8[$14>>0]|0;
  12349. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12350. HEAP8[$20>>0] = $19;
  12351. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12352. HEAP8[$21>>0] = -1;
  12353. $22 = (($$0106) + 1)|0;
  12354. $$1 = $22;
  12355. break;
  12356. }
  12357. case 2: {
  12358. $23 = (($13) + ($$0106)|0);
  12359. $24 = HEAP8[$23>>0]|0;
  12360. $25 = (($7) + ($$0104105<<2)|0);
  12361. HEAP8[$25>>0] = $24;
  12362. $26 = HEAP8[$23>>0]|0;
  12363. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12364. HEAP8[$27>>0] = $26;
  12365. $28 = HEAP8[$23>>0]|0;
  12366. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12367. HEAP8[$29>>0] = $28;
  12368. $30 = (($$0106) + 1)|0;
  12369. $31 = (($13) + ($30)|0);
  12370. $32 = HEAP8[$31>>0]|0;
  12371. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12372. HEAP8[$33>>0] = $32;
  12373. $34 = (($$0106) + 2)|0;
  12374. $$1 = $34;
  12375. break;
  12376. }
  12377. case 5: {
  12378. $35 = (($13) + ($$0106<<1)|0);
  12379. $36 = HEAP16[$35>>1]|0;
  12380. $37 = $36&65535;
  12381. $38 = $37 >>> 11;
  12382. $39 = (+($38|0));
  12383. $40 = $39 * 8.0;
  12384. $41 = (~~(($40))&255);
  12385. $42 = (($7) + ($$0104105<<2)|0);
  12386. HEAP8[$42>>0] = $41;
  12387. $43 = $37 >>> 6;
  12388. $44 = $43 & 31;
  12389. $45 = (+($44|0));
  12390. $46 = $45 * 8.0;
  12391. $47 = (~~(($46))&255);
  12392. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12393. HEAP8[$48>>0] = $47;
  12394. $49 = $37 >>> 1;
  12395. $50 = $49 & 31;
  12396. $51 = (+($50|0));
  12397. $52 = $51 * 8.0;
  12398. $53 = (~~(($52))&255);
  12399. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12400. HEAP8[$54>>0] = $53;
  12401. $55 = $37 & 1;
  12402. $56 = (0 - ($55))|0;
  12403. $57 = $56&255;
  12404. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12405. HEAP8[$58>>0] = $57;
  12406. $59 = (($$0106) + 1)|0;
  12407. $$1 = $59;
  12408. break;
  12409. }
  12410. case 3: {
  12411. $60 = (($13) + ($$0106<<1)|0);
  12412. $61 = HEAP16[$60>>1]|0;
  12413. $62 = $61&65535;
  12414. $63 = $62 >>> 11;
  12415. $64 = (+($63|0));
  12416. $65 = $64 * 8.0;
  12417. $66 = (~~(($65))&255);
  12418. $67 = (($7) + ($$0104105<<2)|0);
  12419. HEAP8[$67>>0] = $66;
  12420. $68 = $62 >>> 5;
  12421. $69 = $68 & 63;
  12422. $70 = (+($69|0));
  12423. $71 = $70 * 4.0;
  12424. $72 = (~~(($71))&255);
  12425. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12426. HEAP8[$73>>0] = $72;
  12427. $74 = $62 & 31;
  12428. $75 = (+($74|0));
  12429. $76 = $75 * 8.0;
  12430. $77 = (~~(($76))&255);
  12431. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12432. HEAP8[$78>>0] = $77;
  12433. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12434. HEAP8[$79>>0] = -1;
  12435. $80 = (($$0106) + 1)|0;
  12436. $$1 = $80;
  12437. break;
  12438. }
  12439. case 6: {
  12440. $81 = (($13) + ($$0106<<1)|0);
  12441. $82 = HEAP16[$81>>1]|0;
  12442. $83 = $82&65535;
  12443. $84 = $83 >>> 12;
  12444. $85 = (+($84|0));
  12445. $86 = $85 * 17.0;
  12446. $87 = (~~(($86))&255);
  12447. $88 = (($7) + ($$0104105<<2)|0);
  12448. HEAP8[$88>>0] = $87;
  12449. $89 = $83 >>> 8;
  12450. $90 = $89 & 15;
  12451. $91 = (+($90|0));
  12452. $92 = $91 * 17.0;
  12453. $93 = (~~(($92))&255);
  12454. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12455. HEAP8[$94>>0] = $93;
  12456. $95 = $83 >>> 4;
  12457. $96 = $95 & 15;
  12458. $97 = (+($96|0));
  12459. $98 = $97 * 17.0;
  12460. $99 = (~~(($98))&255);
  12461. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12462. HEAP8[$100>>0] = $99;
  12463. $101 = $83 & 15;
  12464. $102 = (+($101|0));
  12465. $103 = $102 * 17.0;
  12466. $104 = (~~(($103))&255);
  12467. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12468. HEAP8[$105>>0] = $104;
  12469. $106 = (($$0106) + 1)|0;
  12470. $$1 = $106;
  12471. break;
  12472. }
  12473. case 7: {
  12474. $107 = (($13) + ($$0106)|0);
  12475. $108 = HEAP8[$107>>0]|0;
  12476. $109 = (($7) + ($$0104105<<2)|0);
  12477. HEAP8[$109>>0] = $108;
  12478. $110 = (($$0106) + 1)|0;
  12479. $111 = (($13) + ($110)|0);
  12480. $112 = HEAP8[$111>>0]|0;
  12481. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12482. HEAP8[$113>>0] = $112;
  12483. $114 = (($$0106) + 2)|0;
  12484. $115 = (($13) + ($114)|0);
  12485. $116 = HEAP8[$115>>0]|0;
  12486. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12487. HEAP8[$117>>0] = $116;
  12488. $118 = (($$0106) + 3)|0;
  12489. $119 = (($13) + ($118)|0);
  12490. $120 = HEAP8[$119>>0]|0;
  12491. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12492. HEAP8[$121>>0] = $120;
  12493. $122 = (($$0106) + 4)|0;
  12494. $$1 = $122;
  12495. break;
  12496. }
  12497. case 4: {
  12498. $123 = (($13) + ($$0106)|0);
  12499. $124 = HEAP8[$123>>0]|0;
  12500. $125 = (($7) + ($$0104105<<2)|0);
  12501. HEAP8[$125>>0] = $124;
  12502. $126 = (($$0106) + 1)|0;
  12503. $127 = (($13) + ($126)|0);
  12504. $128 = HEAP8[$127>>0]|0;
  12505. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12506. HEAP8[$129>>0] = $128;
  12507. $130 = (($$0106) + 2)|0;
  12508. $131 = (($13) + ($130)|0);
  12509. $132 = HEAP8[$131>>0]|0;
  12510. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12511. HEAP8[$133>>0] = $132;
  12512. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12513. HEAP8[$134>>0] = -1;
  12514. $135 = (($$0106) + 3)|0;
  12515. $$1 = $135;
  12516. break;
  12517. }
  12518. default: {
  12519. _TraceLog(2,5775,$vararg_buffer);
  12520. $$1 = $$0106;
  12521. }
  12522. }
  12523. $136 = (($$0104105) + 1)|0;
  12524. $137 = HEAP32[$1>>2]|0;
  12525. $138 = HEAP32[$3>>2]|0;
  12526. $139 = Math_imul($138, $137)|0;
  12527. $140 = ($136|0)<($139|0);
  12528. if ($140) {
  12529. $$0104105 = $136;$$0106 = $$1;
  12530. } else {
  12531. break;
  12532. }
  12533. }
  12534. STACKTOP = sp;return ($7|0);
  12535. }
  12536. function _ErrorCallback($0,$1) {
  12537. $0 = $0|0;
  12538. $1 = $1|0;
  12539. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  12540. sp = STACKTOP;
  12541. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12542. $vararg_buffer = sp;
  12543. HEAP32[$vararg_buffer>>2] = $0;
  12544. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12545. HEAP32[$vararg_ptr1>>2] = $1;
  12546. _TraceLog(2,9641,$vararg_buffer);
  12547. STACKTOP = sp;return;
  12548. }
  12549. function _rlGetVersion() {
  12550. var label = 0, sp = 0;
  12551. sp = STACKTOP;
  12552. return 4;
  12553. }
  12554. function _SetupFramebufferSize($0,$1) {
  12555. $0 = $0|0;
  12556. $1 = $1|0;
  12557. 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;
  12558. 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;
  12559. 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;
  12560. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  12561. sp = STACKTOP;
  12562. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12563. $vararg_buffer8 = sp + 24|0;
  12564. $vararg_buffer4 = sp + 16|0;
  12565. $vararg_buffer = sp;
  12566. $2 = sp + 40|0;
  12567. $3 = HEAP32[5110]|0;
  12568. $4 = ($3|0)>($0|0);
  12569. if (!($4)) {
  12570. $5 = HEAP32[5109]|0;
  12571. $6 = ($5|0)>($1|0);
  12572. if (!($6)) {
  12573. $30 = ($3|0)<($0|0);
  12574. $31 = ($5|0)<($1|0);
  12575. $or$cond = $30 | $31;
  12576. if (!($or$cond)) {
  12577. HEAP32[5151] = $3;
  12578. HEAP32[5152] = $5;
  12579. HEAP32[5153] = 0;
  12580. HEAP32[5154] = 0;
  12581. STACKTOP = sp;return;
  12582. }
  12583. HEAP32[$vararg_buffer8>>2] = $3;
  12584. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  12585. HEAP32[$vararg_ptr11>>2] = $5;
  12586. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  12587. HEAP32[$vararg_ptr12>>2] = $0;
  12588. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  12589. HEAP32[$vararg_ptr13>>2] = $1;
  12590. _TraceLog(0,9575,$vararg_buffer8);
  12591. $32 = (+($0|0));
  12592. $33 = (+($1|0));
  12593. $34 = $32 / $33;
  12594. $35 = HEAP32[5110]|0;
  12595. $36 = (+($35|0));
  12596. $37 = HEAP32[5109]|0;
  12597. $38 = (+($37|0));
  12598. $39 = $36 / $38;
  12599. $40 = !($34 <= $39);
  12600. if ($40) {
  12601. $44 = $34 * $38;
  12602. $roundf = (+_roundf((+$44)));
  12603. $45 = (~~(($roundf)));
  12604. HEAP32[5151] = $45;
  12605. HEAP32[5152] = $37;
  12606. $46 = (($45) - ($35))|0;
  12607. HEAP32[5153] = $46;
  12608. $$sink1 = 0;
  12609. } else {
  12610. HEAP32[5151] = $35;
  12611. $41 = $36 / $34;
  12612. $roundf38 = (+_roundf((+$41)));
  12613. $42 = (~~(($roundf38)));
  12614. HEAP32[5152] = $42;
  12615. HEAP32[5153] = 0;
  12616. $43 = (($42) - ($37))|0;
  12617. $$sink1 = $43;
  12618. }
  12619. HEAP32[5154] = $$sink1;
  12620. STACKTOP = sp;return;
  12621. }
  12622. }
  12623. $7 = HEAP32[5109]|0;
  12624. HEAP32[$vararg_buffer>>2] = $3;
  12625. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12626. HEAP32[$vararg_ptr1>>2] = $7;
  12627. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  12628. HEAP32[$vararg_ptr2>>2] = $0;
  12629. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  12630. HEAP32[$vararg_ptr3>>2] = $1;
  12631. _TraceLog(2,9432,$vararg_buffer);
  12632. $8 = (+($0|0));
  12633. $9 = HEAP32[5110]|0;
  12634. $10 = (+($9|0));
  12635. $11 = $8 / $10;
  12636. $12 = (+($1|0));
  12637. $13 = HEAP32[5109]|0;
  12638. $14 = (+($13|0));
  12639. $15 = $12 / $14;
  12640. $16 = !($11 <= $15);
  12641. if ($16) {
  12642. $22 = $10 * $15;
  12643. $roundf39 = (+_roundf((+$22)));
  12644. $23 = (~~(($roundf39)));
  12645. HEAP32[5151] = $23;
  12646. HEAP32[5152] = $1;
  12647. $24 = (($0) - ($23))|0;
  12648. HEAP32[5153] = $24;
  12649. $$sink = 0;
  12650. } else {
  12651. HEAP32[5151] = $0;
  12652. $17 = HEAP32[5109]|0;
  12653. $18 = (+($17|0));
  12654. $19 = $11 * $18;
  12655. $roundf40 = (+_roundf((+$19)));
  12656. $20 = (~~(($roundf40)));
  12657. HEAP32[5152] = $20;
  12658. HEAP32[5153] = 0;
  12659. $21 = (($1) - ($20))|0;
  12660. $$sink = $21;
  12661. }
  12662. HEAP32[5154] = $$sink;
  12663. $25 = HEAP32[5151]|0;
  12664. $26 = (+($25|0));
  12665. $27 = HEAP32[5110]|0;
  12666. $28 = (+($27|0));
  12667. $29 = $26 / $28;
  12668. _MatrixScale($2,$29,$29,$29);
  12669. dest=20528; 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));
  12670. HEAP32[5151] = $0;
  12671. HEAP32[5152] = $1;
  12672. HEAP32[$vararg_buffer4>>2] = $0;
  12673. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  12674. HEAP32[$vararg_ptr7>>2] = $1;
  12675. _TraceLog(2,9510,$vararg_buffer4);
  12676. STACKTOP = sp;return;
  12677. }
  12678. function _WindowSizeCallback($0,$1,$2) {
  12679. $0 = $0|0;
  12680. $1 = $1|0;
  12681. $2 = $2|0;
  12682. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  12683. sp = STACKTOP;
  12684. _rlViewport(0,0,$1,$2);
  12685. _rlMatrixMode(5889);
  12686. _rlLoadIdentity();
  12687. $3 = (+($1|0));
  12688. $4 = (+($2|0));
  12689. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  12690. _rlMatrixMode(5888);
  12691. _rlLoadIdentity();
  12692. _rlClearScreenBuffers();
  12693. HEAP32[5110] = $1;
  12694. HEAP32[5109] = $2;
  12695. HEAP32[5151] = $1;
  12696. HEAP32[5152] = $2;
  12697. return;
  12698. }
  12699. function _CursorEnterCallback($0,$1) {
  12700. $0 = $0|0;
  12701. $1 = $1|0;
  12702. var label = 0, sp = 0;
  12703. sp = STACKTOP;
  12704. return;
  12705. }
  12706. function _KeyCallback($0,$1,$2,$3,$4) {
  12707. $0 = $0|0;
  12708. $1 = $1|0;
  12709. $2 = $2|0;
  12710. $3 = $3|0;
  12711. $4 = $4|0;
  12712. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  12713. sp = STACKTOP;
  12714. $5 = HEAP32[750]|0;
  12715. $6 = ($5|0)==($1|0);
  12716. $7 = ($3|0)==(1);
  12717. $or$cond = $7 & $6;
  12718. if ($or$cond) {
  12719. _glfwSetWindowShouldClose(($0|0),1);
  12720. return;
  12721. }
  12722. $8 = $3&255;
  12723. $9 = (23271 + ($1)|0);
  12724. HEAP8[$9>>0] = $8;
  12725. if (!($7)) {
  12726. return;
  12727. }
  12728. HEAP32[749] = $1;
  12729. return;
  12730. }
  12731. function _MouseButtonCallback($0,$1,$2,$3) {
  12732. $0 = $0|0;
  12733. $1 = $1|0;
  12734. $2 = $2|0;
  12735. $3 = $3|0;
  12736. 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;
  12737. 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;
  12738. sp = STACKTOP;
  12739. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  12740. $$byval_copy = sp + 64|0;
  12741. $4 = sp + 8|0;
  12742. $5 = sp;
  12743. $6 = $2&255;
  12744. $7 = (23265 + ($1)|0);
  12745. HEAP8[$7>>0] = $6;
  12746. $8 = (_IsMouseButtonPressed(0)|0);
  12747. $9 = ($8|0)==(0);
  12748. if ($9) {
  12749. $10 = (_IsMouseButtonReleased(0)|0);
  12750. $11 = ($10|0)==(0);
  12751. if (!($11)) {
  12752. $$sink = 0;
  12753. label = 3;
  12754. }
  12755. } else {
  12756. $$sink = 1;
  12757. label = 3;
  12758. }
  12759. if ((label|0) == 3) {
  12760. HEAP32[$4>>2] = $$sink;
  12761. }
  12762. $12 = ((($4)) + 8|0);
  12763. HEAP32[$12>>2] = 0;
  12764. $13 = ((($4)) + 4|0);
  12765. HEAP32[$13>>2] = 1;
  12766. $14 = ((($4)) + 24|0);
  12767. _GetMousePosition($5);
  12768. $15 = $5;
  12769. $16 = $15;
  12770. $17 = HEAP32[$16>>2]|0;
  12771. $18 = (($15) + 4)|0;
  12772. $19 = $18;
  12773. $20 = HEAP32[$19>>2]|0;
  12774. $21 = $14;
  12775. $22 = $21;
  12776. HEAP32[$22>>2] = $17;
  12777. $23 = (($21) + 4)|0;
  12778. $24 = $23;
  12779. HEAP32[$24>>2] = $20;
  12780. $25 = (_GetScreenWidth()|0);
  12781. $26 = (+($25|0));
  12782. $27 = +HEAPF32[$14>>2];
  12783. $28 = $27 / $26;
  12784. HEAPF32[$14>>2] = $28;
  12785. $29 = (_GetScreenHeight()|0);
  12786. $30 = (+($29|0));
  12787. $31 = ((($4)) + 28|0);
  12788. $32 = +HEAPF32[$31>>2];
  12789. $33 = $32 / $30;
  12790. HEAPF32[$31>>2] = $33;
  12791. 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));
  12792. _ProcessGestureEvent($$byval_copy);
  12793. STACKTOP = sp;return;
  12794. }
  12795. function _MouseCursorPosCallback($0,$1,$2) {
  12796. $0 = $0|0;
  12797. $1 = +$1;
  12798. $2 = +$2;
  12799. 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;
  12800. 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;
  12801. sp = STACKTOP;
  12802. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12803. $$byval_copy = sp + 56|0;
  12804. $3 = sp;
  12805. HEAP32[$3>>2] = 2;
  12806. $4 = ((($3)) + 8|0);
  12807. HEAP32[$4>>2] = 0;
  12808. $5 = ((($3)) + 4|0);
  12809. HEAP32[$5>>2] = 1;
  12810. $6 = $1;
  12811. $7 = $2;
  12812. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  12813. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  12814. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  12815. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  12816. $8 = ((($3)) + 24|0);
  12817. $9 = $8;
  12818. $10 = $9;
  12819. $11 = HEAP32[$10>>2]|0;
  12820. $12 = (($9) + 4)|0;
  12821. $13 = $12;
  12822. $14 = HEAP32[$13>>2]|0;
  12823. $15 = 19880;
  12824. $16 = $15;
  12825. HEAP32[$16>>2] = $11;
  12826. $17 = (($15) + 4)|0;
  12827. $18 = $17;
  12828. HEAP32[$18>>2] = $14;
  12829. $19 = (_GetScreenWidth()|0);
  12830. $20 = (+($19|0));
  12831. $21 = +HEAPF32[$8>>2];
  12832. $22 = $21 / $20;
  12833. HEAPF32[$8>>2] = $22;
  12834. $23 = (_GetScreenHeight()|0);
  12835. $24 = (+($23|0));
  12836. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  12837. $26 = $25 / $24;
  12838. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  12839. 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));
  12840. _ProcessGestureEvent($$byval_copy);
  12841. STACKTOP = sp;return;
  12842. }
  12843. function _CharCallback($0,$1) {
  12844. $0 = $0|0;
  12845. $1 = $1|0;
  12846. var label = 0, sp = 0;
  12847. sp = STACKTOP;
  12848. HEAP32[749] = $1;
  12849. return;
  12850. }
  12851. function _ScrollCallback($0,$1,$2) {
  12852. $0 = $0|0;
  12853. $1 = +$1;
  12854. $2 = +$2;
  12855. var $3 = 0, label = 0, sp = 0;
  12856. sp = STACKTOP;
  12857. $3 = (~~(($2)));
  12858. HEAP32[5524] = $3;
  12859. return;
  12860. }
  12861. function _WindowIconifyCallback($0,$1) {
  12862. $0 = $0|0;
  12863. $1 = $1|0;
  12864. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  12865. sp = STACKTOP;
  12866. $2 = ($1|0)!=(0);
  12867. $$sink = $2&1;
  12868. HEAP32[5523] = $$sink;
  12869. return;
  12870. }
  12871. function _rlglInit($0,$1) {
  12872. $0 = $0|0;
  12873. $1 = $1|0;
  12874. 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;
  12875. 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;
  12876. 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;
  12877. 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;
  12878. 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;
  12879. 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;
  12880. sp = STACKTOP;
  12881. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  12882. $vararg_buffer41 = sp + 2184|0;
  12883. $vararg_buffer39 = sp + 2176|0;
  12884. $vararg_buffer36 = sp + 2168|0;
  12885. $vararg_buffer34 = sp + 2160|0;
  12886. $vararg_buffer31 = sp + 2152|0;
  12887. $vararg_buffer29 = sp + 2144|0;
  12888. $vararg_buffer27 = sp + 2136|0;
  12889. $vararg_buffer25 = sp + 2128|0;
  12890. $vararg_buffer23 = sp + 2120|0;
  12891. $vararg_buffer21 = sp + 2112|0;
  12892. $vararg_buffer19 = sp + 2104|0;
  12893. $vararg_buffer17 = sp + 2096|0;
  12894. $vararg_buffer15 = sp + 2088|0;
  12895. $vararg_buffer13 = sp + 2080|0;
  12896. $vararg_buffer10 = sp + 2072|0;
  12897. $vararg_buffer7 = sp + 24|0;
  12898. $vararg_buffer4 = sp + 16|0;
  12899. $vararg_buffer1 = sp + 8|0;
  12900. $vararg_buffer = sp;
  12901. $2 = sp + 2400|0;
  12902. $3 = sp + 2384|0;
  12903. $4 = sp + 2320|0;
  12904. $5 = sp + 2256|0;
  12905. $6 = sp + 2192|0;
  12906. $7 = (_glGetString(7936)|0);
  12907. HEAP32[$vararg_buffer>>2] = $7;
  12908. _TraceLog(0,6073,$vararg_buffer);
  12909. $8 = (_glGetString(7937)|0);
  12910. HEAP32[$vararg_buffer1>>2] = $8;
  12911. _TraceLog(0,6091,$vararg_buffer1);
  12912. $9 = (_glGetString(7938)|0);
  12913. HEAP32[$vararg_buffer4>>2] = $9;
  12914. _TraceLog(0,6109,$vararg_buffer4);
  12915. $10 = (_glGetString(35724)|0);
  12916. HEAP32[$vararg_buffer7>>2] = $10;
  12917. _TraceLog(0,6127,$vararg_buffer7);
  12918. $11 = (_glGetString(7939)|0);
  12919. $12 = (_strlen($11)|0);
  12920. $13 = (($12) + 1)|0;
  12921. $14 = (_malloc($13)|0);
  12922. _memcpy(($14|0),($11|0),($13|0))|0;
  12923. $$062 = 0;$$sink63 = $14;
  12924. while(1) {
  12925. $15 = (_strtok($$sink63,6145)|0);
  12926. $16 = (($vararg_buffer7) + ($$062<<2)|0);
  12927. HEAP32[$16>>2] = $15;
  12928. $17 = ($15|0)==(0|0);
  12929. $18 = (($$062) + 1)|0;
  12930. if ($17) {
  12931. break;
  12932. } else {
  12933. $$062 = $18;$$sink63 = 0;
  12934. }
  12935. }
  12936. _free($14);
  12937. $19 = (($$062) + -1)|0;
  12938. HEAP32[$vararg_buffer10>>2] = $19;
  12939. _TraceLog(0,6147,$vararg_buffer10);
  12940. $20 = ($$062|0)>(1);
  12941. if ($20) {
  12942. $$06167 = 0;
  12943. while(1) {
  12944. $23 = (($vararg_buffer7) + ($$06167<<2)|0);
  12945. $24 = HEAP32[$23>>2]|0;
  12946. $25 = (_strcmp($24,6182)|0);
  12947. $26 = ($25|0)==(0);
  12948. if ($26) {
  12949. HEAP32[5189] = 1;
  12950. $27 = (_eglGetProcAddress((6209|0))|0);
  12951. HEAP32[5190] = $27;
  12952. $28 = (_eglGetProcAddress((6230|0))|0);
  12953. HEAP32[5191] = $28;
  12954. $29 = (_eglGetProcAddress((6251|0))|0);
  12955. HEAP32[5192] = $29;
  12956. }
  12957. $30 = (_strcmp($24,6275)|0);
  12958. $31 = ($30|0)==(0);
  12959. if ($31) {
  12960. HEAP32[5131] = 1;
  12961. }
  12962. $32 = (_strcmp($24,6295)|0);
  12963. $33 = ($32|0)==(0);
  12964. if ($33) {
  12965. label = 12;
  12966. } else {
  12967. $34 = HEAP32[$23>>2]|0;
  12968. $35 = (_strcmp($34,6327)|0);
  12969. $36 = ($35|0)==(0);
  12970. if ($36) {
  12971. label = 12;
  12972. } else {
  12973. $37 = (_strcmp($34,6360)|0);
  12974. $38 = ($37|0)==(0);
  12975. if ($38) {
  12976. label = 12;
  12977. }
  12978. }
  12979. }
  12980. if ((label|0) == 12) {
  12981. label = 0;
  12982. HEAP32[5126] = 1;
  12983. }
  12984. $39 = (_strcmp($24,6400)|0);
  12985. $40 = ($39|0)==(0);
  12986. if ($40) {
  12987. label = 15;
  12988. } else {
  12989. $41 = HEAP32[$23>>2]|0;
  12990. $42 = (_strcmp($41,6436)|0);
  12991. $43 = ($42|0)==(0);
  12992. if ($43) {
  12993. label = 15;
  12994. }
  12995. }
  12996. if ((label|0) == 15) {
  12997. label = 0;
  12998. HEAP32[5127] = 1;
  12999. }
  13000. $44 = HEAP32[$23>>2]|0;
  13001. $45 = (_strcmp($44,6469)|0);
  13002. $46 = ($45|0)==(0);
  13003. if ($46) {
  13004. HEAP32[5128] = 1;
  13005. }
  13006. $47 = (_strcmp($44,6494)|0);
  13007. $48 = ($47|0)==(0);
  13008. if ($48) {
  13009. HEAP32[5129] = 1;
  13010. }
  13011. $49 = (_strcmp($44,6527)|0);
  13012. $50 = ($49|0)==(0);
  13013. if ($50) {
  13014. HEAP32[5130] = 1;
  13015. }
  13016. $51 = (_strcmp($44,6563)|0);
  13017. $52 = ($51|0)==(0);
  13018. if ($52) {
  13019. HEAP32[5193] = 1;
  13020. _glGetFloatv(34047,(20776|0));
  13021. }
  13022. $53 = HEAP32[$23>>2]|0;
  13023. $54 = (_strcmp($53,6597)|0);
  13024. $55 = ($54|0)==(0);
  13025. if ($55) {
  13026. HEAP32[5195] = 1;
  13027. }
  13028. $56 = (($$06167) + 1)|0;
  13029. $exitcond70 = ($56|0)==($19|0);
  13030. if ($exitcond70) {
  13031. break;
  13032. } else {
  13033. $$06167 = $56;
  13034. }
  13035. }
  13036. }
  13037. $21 = HEAP32[5189]|0;
  13038. $22 = ($21|0)==(0);
  13039. if ($22) {
  13040. _TraceLog(2,6700,$vararg_buffer15);
  13041. } else {
  13042. _TraceLog(0,6625,$vararg_buffer13);
  13043. }
  13044. $57 = HEAP32[5131]|0;
  13045. $58 = ($57|0)==(0);
  13046. if ($58) {
  13047. _TraceLog(2,6836,$vararg_buffer19);
  13048. } else {
  13049. _TraceLog(0,6761,$vararg_buffer17);
  13050. }
  13051. $59 = HEAP32[5126]|0;
  13052. $60 = ($59|0)==(0);
  13053. if (!($60)) {
  13054. _TraceLog(0,6928,$vararg_buffer21);
  13055. }
  13056. $61 = HEAP32[5127]|0;
  13057. $62 = ($61|0)==(0);
  13058. if (!($62)) {
  13059. _TraceLog(0,6974,$vararg_buffer23);
  13060. }
  13061. $63 = HEAP32[5128]|0;
  13062. $64 = ($63|0)==(0);
  13063. if (!($64)) {
  13064. _TraceLog(0,7021,$vararg_buffer25);
  13065. }
  13066. $65 = HEAP32[5129]|0;
  13067. $66 = ($65|0)==(0);
  13068. if (!($66)) {
  13069. _TraceLog(0,7072,$vararg_buffer27);
  13070. }
  13071. $67 = HEAP32[5130]|0;
  13072. $68 = ($67|0)==(0);
  13073. if (!($68)) {
  13074. _TraceLog(0,7119,$vararg_buffer29);
  13075. }
  13076. $69 = HEAP32[5193]|0;
  13077. $70 = ($69|0)==(0);
  13078. if (!($70)) {
  13079. $71 = +HEAPF32[5194];
  13080. $72 = $71;
  13081. HEAPF64[$vararg_buffer31>>3] = $72;
  13082. _TraceLog(0,7166,$vararg_buffer31);
  13083. }
  13084. $73 = HEAP32[5195]|0;
  13085. $74 = ($73|0)==(0);
  13086. if (!($74)) {
  13087. _TraceLog(0,7232,$vararg_buffer34);
  13088. }
  13089. HEAP32[$vararg_buffer10>>2] = -1;
  13090. $75 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  13091. HEAP32[5196] = $75;
  13092. $76 = ($75|0)==(0);
  13093. if ($76) {
  13094. _TraceLog(2,7336,$vararg_buffer39);
  13095. } else {
  13096. HEAP32[$vararg_buffer36>>2] = $75;
  13097. _TraceLog(0,7285,$vararg_buffer36);
  13098. }
  13099. _LoadDefaultShader($2);
  13100. dest=20788; 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));
  13101. dest=20844; 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));
  13102. _LoadDefaultBuffers();
  13103. $77 = (_malloc(49152)|0);
  13104. HEAP32[5225] = $77;
  13105. $$06066 = 0;
  13106. while(1) {
  13107. $79 = HEAP32[5225]|0;
  13108. $80 = (($79) + (($$06066*12)|0)|0);
  13109. _VectorZero($3);
  13110. ;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;
  13111. $81 = (($$06066) + 1)|0;
  13112. $exitcond69 = ($81|0)==(4096);
  13113. if ($exitcond69) {
  13114. break;
  13115. } else {
  13116. $$06066 = $81;
  13117. }
  13118. }
  13119. $78 = (_malloc(36864)|0);
  13120. HEAP32[5226] = $78;
  13121. $$05965 = 0;
  13122. while(1) {
  13123. $82 = (((($78) + (($$05965*144)|0)|0)) + 8|0);
  13124. HEAP32[$82>>2] = 0;
  13125. $83 = (($78) + (($$05965*144)|0)|0);
  13126. HEAP32[$83>>2] = 0;
  13127. $84 = (($$05965) + 1)|0;
  13128. $exitcond = ($84|0)==(256);
  13129. if ($exitcond) {
  13130. break;
  13131. } else {
  13132. $$05965 = $84;
  13133. }
  13134. }
  13135. HEAP32[5227] = 1;
  13136. $85 = HEAP32[5196]|0;
  13137. $86 = ((($78)) + 8|0);
  13138. HEAP32[$86>>2] = $85;
  13139. HEAP32[5228] = 4;
  13140. _MatrixIdentity($4);
  13141. dest=20916; 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));
  13142. _MatrixIdentity($4);
  13143. dest=(20980); 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));
  13144. _MatrixIdentity($4);
  13145. dest=(21044); 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));
  13146. _MatrixIdentity($4);
  13147. dest=(21108); 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));
  13148. _MatrixIdentity($4);
  13149. dest=(21172); 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));
  13150. _MatrixIdentity($4);
  13151. dest=(21236); 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));
  13152. _MatrixIdentity($4);
  13153. dest=(21300); 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));
  13154. _MatrixIdentity($4);
  13155. dest=(21364); 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));
  13156. _MatrixIdentity($4);
  13157. dest=(21428); 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));
  13158. _MatrixIdentity($4);
  13159. dest=(21492); 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));
  13160. _MatrixIdentity($4);
  13161. dest=(21556); 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));
  13162. _MatrixIdentity($4);
  13163. dest=(21620); 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));
  13164. _MatrixIdentity($4);
  13165. dest=(21684); 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));
  13166. _MatrixIdentity($4);
  13167. dest=(21748); 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));
  13168. _MatrixIdentity($4);
  13169. dest=(21812); 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));
  13170. _MatrixIdentity($4);
  13171. dest=(21876); 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));
  13172. _MatrixIdentity($5);
  13173. dest=20624; 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));
  13174. _MatrixIdentity($6);
  13175. dest=20688; 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));
  13176. HEAP32[5155] = 20688;
  13177. _glDepthFunc(515);
  13178. _glDisable(2929);
  13179. _glBlendFunc(770,771);
  13180. _glEnable(3042);
  13181. _glCullFace(1029);
  13182. _glFrontFace(2305);
  13183. _glEnable(2884);
  13184. _glClearColor(0.0,0.0,0.0,1.0);
  13185. _glClearDepthf(1.0);
  13186. _glClear(16640);
  13187. HEAP32[5485] = $0;
  13188. HEAP32[5486] = $1;
  13189. _TraceLog(0,7375,$vararg_buffer41);
  13190. STACKTOP = sp;return;
  13191. }
  13192. function _SetupViewport() {
  13193. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  13194. sp = STACKTOP;
  13195. $0 = HEAP32[5153]|0;
  13196. $1 = (($0|0) / 2)&-1;
  13197. $2 = HEAP32[5154]|0;
  13198. $3 = (($2|0) / 2)&-1;
  13199. $4 = HEAP32[5151]|0;
  13200. $5 = (($4) - ($0))|0;
  13201. $6 = HEAP32[5152]|0;
  13202. $7 = (($6) - ($2))|0;
  13203. _rlViewport($1,$3,$5,$7);
  13204. return;
  13205. }
  13206. function _rlMatrixMode($0) {
  13207. $0 = $0|0;
  13208. var $modelview$sink = 0, label = 0, sp = 0;
  13209. sp = STACKTOP;
  13210. switch ($0|0) {
  13211. case 5889: {
  13212. $modelview$sink = 20624;
  13213. label = 3;
  13214. break;
  13215. }
  13216. case 5888: {
  13217. $modelview$sink = 20688;
  13218. label = 3;
  13219. break;
  13220. }
  13221. default: {
  13222. }
  13223. }
  13224. if ((label|0) == 3) {
  13225. HEAP32[5155] = $modelview$sink;
  13226. }
  13227. HEAP32[5188] = $0;
  13228. return;
  13229. }
  13230. function _rlLoadIdentity() {
  13231. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13232. sp = STACKTOP;
  13233. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13234. $0 = sp;
  13235. $1 = HEAP32[5155]|0;
  13236. _MatrixIdentity($0);
  13237. 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));
  13238. STACKTOP = sp;return;
  13239. }
  13240. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  13241. $0 = +$0;
  13242. $1 = +$1;
  13243. $2 = +$2;
  13244. $3 = +$3;
  13245. $4 = +$4;
  13246. $5 = +$5;
  13247. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13248. sp = STACKTOP;
  13249. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  13250. $$byval_copy1 = sp + 192|0;
  13251. $$byval_copy = sp + 128|0;
  13252. $6 = sp + 64|0;
  13253. $7 = sp;
  13254. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  13255. _MatrixTranspose($6);
  13256. $8 = HEAP32[5155]|0;
  13257. 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));
  13258. 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));
  13259. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  13260. 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));
  13261. STACKTOP = sp;return;
  13262. }
  13263. function _ClearBackground($0) {
  13264. $0 = $0|0;
  13265. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  13266. sp = STACKTOP;
  13267. $1 = HEAP8[$0>>0]|0;
  13268. $2 = ((($0)) + 1|0);
  13269. $3 = HEAP8[$2>>0]|0;
  13270. $4 = ((($0)) + 2|0);
  13271. $5 = HEAP8[$4>>0]|0;
  13272. $6 = ((($0)) + 3|0);
  13273. $7 = HEAP8[$6>>0]|0;
  13274. _rlClearColor($1,$3,$5,$7);
  13275. return;
  13276. }
  13277. function _rlClearColor($0,$1,$2,$3) {
  13278. $0 = $0|0;
  13279. $1 = $1|0;
  13280. $2 = $2|0;
  13281. $3 = $3|0;
  13282. 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;
  13283. sp = STACKTOP;
  13284. $4 = (+($0&255));
  13285. $5 = $4 / 255.0;
  13286. $6 = (+($1&255));
  13287. $7 = $6 / 255.0;
  13288. $8 = (+($2&255));
  13289. $9 = $8 / 255.0;
  13290. $10 = (+($3&255));
  13291. $11 = $10 / 255.0;
  13292. _glClearColor((+$5),(+$7),(+$9),(+$11));
  13293. return;
  13294. }
  13295. function _rlViewport($0,$1,$2,$3) {
  13296. $0 = $0|0;
  13297. $1 = $1|0;
  13298. $2 = $2|0;
  13299. $3 = $3|0;
  13300. var label = 0, sp = 0;
  13301. sp = STACKTOP;
  13302. _glViewport(($0|0),($1|0),($2|0),($3|0));
  13303. return;
  13304. }
  13305. function _LoadDefaultShader($0) {
  13306. $0 = $0|0;
  13307. 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;
  13308. sp = STACKTOP;
  13309. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  13310. $vararg_buffer1 = sp + 8|0;
  13311. $vararg_buffer = sp;
  13312. $1 = sp + 16|0;
  13313. $2 = sp + 513|0;
  13314. $3 = sp + 72|0;
  13315. _memcpy(($2|0),(7951|0),489)|0;
  13316. _memcpy(($3|0),(8440|0),441)|0;
  13317. $4 = (_LoadShaderProgram($2,$3)|0);
  13318. HEAP32[$1>>2] = $4;
  13319. $5 = ($4|0)==(0);
  13320. if ($5) {
  13321. HEAP32[$vararg_buffer1>>2] = $4;
  13322. _TraceLog(2,8929,$vararg_buffer1);
  13323. } else {
  13324. HEAP32[$vararg_buffer>>2] = $4;
  13325. _TraceLog(0,8881,$vararg_buffer);
  13326. }
  13327. $6 = HEAP32[$1>>2]|0;
  13328. $7 = ($6|0)==(0);
  13329. if (!($7)) {
  13330. _LoadDefaultShaderLocations($1);
  13331. }
  13332. 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));
  13333. STACKTOP = sp;return;
  13334. }
  13335. function _LoadDefaultBuffers() {
  13336. 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;
  13337. 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;
  13338. 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;
  13339. 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;
  13340. 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;
  13341. 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;
  13342. 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;
  13343. sp = STACKTOP;
  13344. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13345. $vararg_buffer17 = sp + 48|0;
  13346. $vararg_buffer14 = sp + 40|0;
  13347. $vararg_buffer10 = sp + 32|0;
  13348. $vararg_buffer7 = sp + 24|0;
  13349. $vararg_buffer3 = sp + 16|0;
  13350. $vararg_buffer1 = sp + 8|0;
  13351. $vararg_buffer = sp;
  13352. $0 = (_malloc(24576)|0);
  13353. HEAP32[(21960)>>2] = $0;
  13354. $1 = (_malloc(8192)|0);
  13355. HEAP32[(21968)>>2] = $1;
  13356. HEAP32[(21964)>>2] = 0;
  13357. HEAP32[(21972)>>2] = 0;
  13358. _memset(($0|0),0,24576)|0;
  13359. $$05972 = 0;
  13360. while(1) {
  13361. $2 = HEAP32[(21968)>>2]|0;
  13362. $3 = (($2) + ($$05972)|0);
  13363. HEAP8[$3>>0] = 0;
  13364. $4 = (($$05972) + 1)|0;
  13365. $exitcond80 = ($4|0)==(8192);
  13366. if ($exitcond80) {
  13367. break;
  13368. } else {
  13369. $$05972 = $4;
  13370. }
  13371. }
  13372. HEAP32[5487] = 0;
  13373. HEAP32[(21956)>>2] = 0;
  13374. HEAP32[(21952)>>2] = 0;
  13375. $5 = (_malloc(73728)|0);
  13376. HEAP32[(22008)>>2] = $5;
  13377. $6 = (_malloc(24576)|0);
  13378. HEAP32[(22016)>>2] = $6;
  13379. HEAP32[(22012)>>2] = 0;
  13380. HEAP32[(22020)>>2] = 0;
  13381. _memset(($5|0),0,73728)|0;
  13382. $$05770 = 0;
  13383. while(1) {
  13384. $7 = HEAP32[(22016)>>2]|0;
  13385. $8 = (($7) + ($$05770)|0);
  13386. HEAP8[$8>>0] = 0;
  13387. $9 = (($$05770) + 1)|0;
  13388. $exitcond78 = ($9|0)==(24576);
  13389. if ($exitcond78) {
  13390. break;
  13391. } else {
  13392. $$05770 = $9;
  13393. }
  13394. }
  13395. HEAP32[5499] = 0;
  13396. HEAP32[(22004)>>2] = 0;
  13397. HEAP32[(22000)>>2] = 0;
  13398. $10 = (_malloc(49152)|0);
  13399. HEAP32[(22056)>>2] = $10;
  13400. $11 = (_malloc(32768)|0);
  13401. HEAP32[(22060)>>2] = $11;
  13402. $12 = (_malloc(16384)|0);
  13403. HEAP32[(22064)>>2] = $12;
  13404. $13 = (_malloc(12288)|0);
  13405. HEAP32[(22068)>>2] = $13;
  13406. $14 = HEAP32[(22056)>>2]|0;
  13407. _memset(($14|0),0,49152)|0;
  13408. $15 = HEAP32[(22060)>>2]|0;
  13409. _memset(($15|0),0,32768)|0;
  13410. $$05467 = 0;
  13411. while(1) {
  13412. $17 = HEAP32[(22064)>>2]|0;
  13413. $18 = (($17) + ($$05467)|0);
  13414. HEAP8[$18>>0] = 0;
  13415. $19 = (($$05467) + 1)|0;
  13416. $exitcond75 = ($19|0)==(16384);
  13417. if ($exitcond75) {
  13418. break;
  13419. } else {
  13420. $$05467 = $19;
  13421. }
  13422. }
  13423. $16 = HEAP32[(22068)>>2]|0;
  13424. $$05365 = 0;$$066 = 0;
  13425. while(1) {
  13426. $22 = $$05365 << 2;
  13427. $23 = $22&65535;
  13428. $24 = (($16) + ($$066<<1)|0);
  13429. HEAP16[$24>>1] = $23;
  13430. $25 = $22 | 1;
  13431. $26 = $25&65535;
  13432. $27 = $$066 | 1;
  13433. $28 = (($16) + ($27<<1)|0);
  13434. HEAP16[$28>>1] = $26;
  13435. $29 = $22 | 2;
  13436. $30 = $29&65535;
  13437. $31 = (($$066) + 2)|0;
  13438. $32 = (($16) + ($31<<1)|0);
  13439. HEAP16[$32>>1] = $30;
  13440. $33 = (($$066) + 3)|0;
  13441. $34 = (($16) + ($33<<1)|0);
  13442. HEAP16[$34>>1] = $23;
  13443. $35 = (($$066) + 4)|0;
  13444. $36 = (($16) + ($35<<1)|0);
  13445. HEAP16[$36>>1] = $30;
  13446. $37 = $22 | 3;
  13447. $38 = $37&65535;
  13448. $39 = (($$066) + 5)|0;
  13449. $40 = (($16) + ($39<<1)|0);
  13450. HEAP16[$40>>1] = $38;
  13451. $41 = (($$05365) + 1)|0;
  13452. $42 = (($$066) + 6)|0;
  13453. $exitcond = ($41|0)==(1024);
  13454. if ($exitcond) {
  13455. break;
  13456. } else {
  13457. $$05365 = $41;$$066 = $42;
  13458. }
  13459. }
  13460. HEAP32[5511] = 0;
  13461. HEAP32[(22048)>>2] = 0;
  13462. HEAP32[(22052)>>2] = 0;
  13463. _TraceLog(0,7422,$vararg_buffer);
  13464. $20 = HEAP32[5189]|0;
  13465. $21 = ($20|0)==(0);
  13466. if (!($21)) {
  13467. $43 = HEAP32[5190]|0;
  13468. FUNCTION_TABLE_vii[$43 & 63](1,(21976));
  13469. $44 = HEAP32[5191]|0;
  13470. $45 = HEAP32[(21976)>>2]|0;
  13471. FUNCTION_TABLE_vi[$44 & 31]($45);
  13472. }
  13473. _glGenBuffers(2,((21980)|0));
  13474. $46 = HEAP32[(21980)>>2]|0;
  13475. _glBindBuffer(34962,($46|0));
  13476. $47 = HEAP32[(21960)>>2]|0;
  13477. _glBufferData(34962,24576,($47|0),35048);
  13478. $48 = HEAP32[(20848)>>2]|0;
  13479. _glEnableVertexAttribArray(($48|0));
  13480. $49 = HEAP32[(20848)>>2]|0;
  13481. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  13482. _glGenBuffers(2,((21984)|0));
  13483. $50 = HEAP32[(21984)>>2]|0;
  13484. _glBindBuffer(34962,($50|0));
  13485. $51 = HEAP32[(21968)>>2]|0;
  13486. _glBufferData(34962,8192,($51|0),35048);
  13487. $52 = HEAP32[(20868)>>2]|0;
  13488. _glEnableVertexAttribArray(($52|0));
  13489. $53 = HEAP32[(20868)>>2]|0;
  13490. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  13491. $54 = HEAP32[5189]|0;
  13492. $55 = ($54|0)==(0);
  13493. if ($55) {
  13494. $57 = HEAP32[(21980)>>2]|0;
  13495. $58 = HEAP32[(21984)>>2]|0;
  13496. HEAP32[$vararg_buffer3>>2] = $57;
  13497. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  13498. HEAP32[$vararg_ptr6>>2] = $58;
  13499. _TraceLog(0,7560,$vararg_buffer3);
  13500. } else {
  13501. $56 = HEAP32[(21976)>>2]|0;
  13502. HEAP32[$vararg_buffer1>>2] = $56;
  13503. _TraceLog(0,7495,$vararg_buffer1);
  13504. }
  13505. $59 = HEAP32[5189]|0;
  13506. $60 = ($59|0)==(0);
  13507. if (!($60)) {
  13508. $61 = HEAP32[5190]|0;
  13509. FUNCTION_TABLE_vii[$61 & 63](1,(22024));
  13510. $62 = HEAP32[5191]|0;
  13511. $63 = HEAP32[(22024)>>2]|0;
  13512. FUNCTION_TABLE_vi[$62 & 31]($63);
  13513. }
  13514. _glGenBuffers(1,((22028)|0));
  13515. $64 = HEAP32[(22028)>>2]|0;
  13516. _glBindBuffer(34962,($64|0));
  13517. $65 = HEAP32[(22008)>>2]|0;
  13518. _glBufferData(34962,73728,($65|0),35048);
  13519. $66 = HEAP32[(20848)>>2]|0;
  13520. _glEnableVertexAttribArray(($66|0));
  13521. $67 = HEAP32[(20848)>>2]|0;
  13522. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  13523. _glGenBuffers(1,((22032)|0));
  13524. $68 = HEAP32[(22032)>>2]|0;
  13525. _glBindBuffer(34962,($68|0));
  13526. $69 = HEAP32[(22016)>>2]|0;
  13527. _glBufferData(34962,24576,($69|0),35048);
  13528. $70 = HEAP32[(20868)>>2]|0;
  13529. _glEnableVertexAttribArray(($70|0));
  13530. $71 = HEAP32[(20868)>>2]|0;
  13531. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  13532. $72 = HEAP32[5189]|0;
  13533. $73 = ($72|0)==(0);
  13534. if ($73) {
  13535. $75 = HEAP32[(22028)>>2]|0;
  13536. $76 = HEAP32[(22032)>>2]|0;
  13537. HEAP32[$vararg_buffer10>>2] = $75;
  13538. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  13539. HEAP32[$vararg_ptr13>>2] = $76;
  13540. _TraceLog(0,7706,$vararg_buffer10);
  13541. } else {
  13542. $74 = HEAP32[(22024)>>2]|0;
  13543. HEAP32[$vararg_buffer7>>2] = $74;
  13544. _TraceLog(0,7637,$vararg_buffer7);
  13545. }
  13546. $77 = HEAP32[5189]|0;
  13547. $78 = ($77|0)==(0);
  13548. if (!($78)) {
  13549. $79 = HEAP32[5190]|0;
  13550. FUNCTION_TABLE_vii[$79 & 63](1,(22072));
  13551. $80 = HEAP32[5191]|0;
  13552. $81 = HEAP32[(22072)>>2]|0;
  13553. FUNCTION_TABLE_vi[$80 & 31]($81);
  13554. }
  13555. _glGenBuffers(1,((22076)|0));
  13556. $82 = HEAP32[(22076)>>2]|0;
  13557. _glBindBuffer(34962,($82|0));
  13558. $83 = HEAP32[(22056)>>2]|0;
  13559. _glBufferData(34962,49152,($83|0),35048);
  13560. $84 = HEAP32[(20848)>>2]|0;
  13561. _glEnableVertexAttribArray(($84|0));
  13562. $85 = HEAP32[(20848)>>2]|0;
  13563. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  13564. _glGenBuffers(1,((22080)|0));
  13565. $86 = HEAP32[(22080)>>2]|0;
  13566. _glBindBuffer(34962,($86|0));
  13567. $87 = HEAP32[(22060)>>2]|0;
  13568. _glBufferData(34962,32768,($87|0),35048);
  13569. $88 = HEAP32[(20852)>>2]|0;
  13570. _glEnableVertexAttribArray(($88|0));
  13571. $89 = HEAP32[(20852)>>2]|0;
  13572. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  13573. _glGenBuffers(1,((22084)|0));
  13574. $90 = HEAP32[(22084)>>2]|0;
  13575. _glBindBuffer(34962,($90|0));
  13576. $91 = HEAP32[(22064)>>2]|0;
  13577. _glBufferData(34962,16384,($91|0),35048);
  13578. $92 = HEAP32[(20868)>>2]|0;
  13579. _glEnableVertexAttribArray(($92|0));
  13580. $93 = HEAP32[(20868)>>2]|0;
  13581. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  13582. _glGenBuffers(1,((22088)|0));
  13583. $94 = HEAP32[(22088)>>2]|0;
  13584. _glBindBuffer(34963,($94|0));
  13585. $95 = HEAP32[(22068)>>2]|0;
  13586. _glBufferData(34963,12288,($95|0),35044);
  13587. $96 = HEAP32[5189]|0;
  13588. $97 = ($96|0)==(0);
  13589. if ($97) {
  13590. $99 = HEAP32[(22076)>>2]|0;
  13591. $100 = HEAP32[(22080)>>2]|0;
  13592. $101 = HEAP32[(22084)>>2]|0;
  13593. $102 = HEAP32[(22088)>>2]|0;
  13594. HEAP32[$vararg_buffer17>>2] = $99;
  13595. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  13596. HEAP32[$vararg_ptr20>>2] = $100;
  13597. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  13598. HEAP32[$vararg_ptr21>>2] = $101;
  13599. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  13600. HEAP32[$vararg_ptr22>>2] = $102;
  13601. _TraceLog(0,7852,$vararg_buffer17);
  13602. } else {
  13603. $98 = HEAP32[(22072)>>2]|0;
  13604. HEAP32[$vararg_buffer14>>2] = $98;
  13605. _TraceLog(0,7787,$vararg_buffer14);
  13606. }
  13607. $103 = HEAP32[5189]|0;
  13608. $104 = ($103|0)==(0);
  13609. if ($104) {
  13610. STACKTOP = sp;return;
  13611. }
  13612. $105 = HEAP32[5191]|0;
  13613. FUNCTION_TABLE_vi[$105 & 31](0);
  13614. STACKTOP = sp;return;
  13615. }
  13616. function _LoadShaderProgram($0,$1) {
  13617. $0 = $0|0;
  13618. $1 = $1|0;
  13619. 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;
  13620. 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;
  13621. sp = STACKTOP;
  13622. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  13623. $vararg_buffer22 = sp + 64|0;
  13624. $vararg_buffer19 = sp + 56|0;
  13625. $vararg_buffer16 = sp + 48|0;
  13626. $vararg_buffer13 = sp + 40|0;
  13627. $vararg_buffer10 = sp + 32|0;
  13628. $vararg_buffer7 = sp + 24|0;
  13629. $vararg_buffer4 = sp + 16|0;
  13630. $vararg_buffer1 = sp + 8|0;
  13631. $vararg_buffer = sp;
  13632. $2 = sp + 80|0;
  13633. $3 = sp + 76|0;
  13634. $4 = sp + 72|0;
  13635. $5 = sp + 68|0;
  13636. $6 = (_glCreateShader(35633)|0);
  13637. $7 = (_glCreateShader(35632)|0);
  13638. HEAP32[$2>>2] = $0;
  13639. HEAP32[$3>>2] = $1;
  13640. _glShaderSource(($6|0),1,($2|0),(0|0));
  13641. _glShaderSource(($7|0),1,($3|0),(0|0));
  13642. HEAP32[$4>>2] = 0;
  13643. _glCompileShader(($6|0));
  13644. _glGetShaderiv(($6|0),35713,($4|0));
  13645. $8 = HEAP32[$4>>2]|0;
  13646. $9 = ($8|0)==(1);
  13647. if ($9) {
  13648. HEAP32[$vararg_buffer4>>2] = $6;
  13649. _TraceLog(0,9185,$vararg_buffer4);
  13650. } else {
  13651. HEAP32[$vararg_buffer>>2] = $6;
  13652. _TraceLog(2,9133,$vararg_buffer);
  13653. HEAP32[$vararg_buffer>>2] = 0;
  13654. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  13655. $10 = HEAP32[$vararg_buffer>>2]|0;
  13656. $11 = (_llvm_stacksave()|0);
  13657. $$alloca_mul = $10;
  13658. $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);;
  13659. $13 = HEAP32[$vararg_buffer>>2]|0;
  13660. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  13661. HEAP32[$vararg_buffer1>>2] = $12;
  13662. _TraceLog(0,9182,$vararg_buffer1);
  13663. _llvm_stackrestore(($11|0));
  13664. }
  13665. _glCompileShader(($7|0));
  13666. _glGetShaderiv(($7|0),35713,($4|0));
  13667. $14 = HEAP32[$4>>2]|0;
  13668. $15 = ($14|0)==(1);
  13669. if ($15) {
  13670. HEAP32[$vararg_buffer13>>2] = $7;
  13671. _TraceLog(0,9286,$vararg_buffer13);
  13672. } else {
  13673. HEAP32[$vararg_buffer7>>2] = $7;
  13674. _TraceLog(2,9235,$vararg_buffer7);
  13675. HEAP32[$vararg_buffer7>>2] = 0;
  13676. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  13677. $16 = HEAP32[$vararg_buffer7>>2]|0;
  13678. $17 = (_llvm_stacksave()|0);
  13679. $$alloca_mul34 = $16;
  13680. $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);;
  13681. $19 = HEAP32[$vararg_buffer7>>2]|0;
  13682. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  13683. HEAP32[$vararg_buffer10>>2] = $18;
  13684. _TraceLog(0,9182,$vararg_buffer10);
  13685. _llvm_stackrestore(($17|0));
  13686. }
  13687. $20 = (_glCreateProgram()|0);
  13688. _glAttachShader(($20|0),($6|0));
  13689. _glAttachShader(($20|0),($7|0));
  13690. _glBindAttribLocation(($20|0),0,(8977|0));
  13691. _glBindAttribLocation(($20|0),1,(8992|0));
  13692. _glBindAttribLocation(($20|0),2,(9023|0));
  13693. _glBindAttribLocation(($20|0),3,(9050|0));
  13694. _glBindAttribLocation(($20|0),4,(9036|0));
  13695. _glBindAttribLocation(($20|0),5,(9007|0));
  13696. _glLinkProgram(($20|0));
  13697. _glGetProgramiv(($20|0),35714,($4|0));
  13698. $21 = HEAP32[$4>>2]|0;
  13699. $22 = ($21|0)==(0);
  13700. if ($22) {
  13701. HEAP32[$vararg_buffer16>>2] = $20;
  13702. _TraceLog(2,9338,$vararg_buffer16);
  13703. HEAP32[$vararg_buffer16>>2] = 0;
  13704. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  13705. $23 = HEAP32[$vararg_buffer16>>2]|0;
  13706. $24 = (_llvm_stacksave()|0);
  13707. $$alloca_mul36 = $23;
  13708. $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);;
  13709. $26 = HEAP32[$vararg_buffer16>>2]|0;
  13710. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  13711. HEAP32[$vararg_buffer19>>2] = $25;
  13712. _TraceLog(0,9182,$vararg_buffer19);
  13713. _glDeleteProgram(($20|0));
  13714. _llvm_stackrestore(($24|0));
  13715. $$0 = 0;
  13716. _glDeleteShader(($6|0));
  13717. _glDeleteShader(($7|0));
  13718. STACKTOP = sp;return ($$0|0);
  13719. } else {
  13720. HEAP32[$vararg_buffer22>>2] = $20;
  13721. _TraceLog(0,9384,$vararg_buffer22);
  13722. $$0 = $20;
  13723. _glDeleteShader(($6|0));
  13724. _glDeleteShader(($7|0));
  13725. STACKTOP = sp;return ($$0|0);
  13726. }
  13727. return (0)|0;
  13728. }
  13729. function _LoadDefaultShaderLocations($0) {
  13730. $0 = $0|0;
  13731. 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;
  13732. 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;
  13733. var sp = 0;
  13734. sp = STACKTOP;
  13735. $1 = HEAP32[$0>>2]|0;
  13736. $2 = (_glGetAttribLocation(($1|0),(8977|0))|0);
  13737. $3 = ((($0)) + 4|0);
  13738. HEAP32[$3>>2] = $2;
  13739. $4 = HEAP32[$0>>2]|0;
  13740. $5 = (_glGetAttribLocation(($4|0),(8992|0))|0);
  13741. $6 = ((($0)) + 8|0);
  13742. HEAP32[$6>>2] = $5;
  13743. $7 = HEAP32[$0>>2]|0;
  13744. $8 = (_glGetAttribLocation(($7|0),(9007|0))|0);
  13745. $9 = ((($0)) + 12|0);
  13746. HEAP32[$9>>2] = $8;
  13747. $10 = HEAP32[$0>>2]|0;
  13748. $11 = (_glGetAttribLocation(($10|0),(9023|0))|0);
  13749. $12 = ((($0)) + 16|0);
  13750. HEAP32[$12>>2] = $11;
  13751. $13 = HEAP32[$0>>2]|0;
  13752. $14 = (_glGetAttribLocation(($13|0),(9036|0))|0);
  13753. $15 = ((($0)) + 20|0);
  13754. HEAP32[$15>>2] = $14;
  13755. $16 = HEAP32[$0>>2]|0;
  13756. $17 = (_glGetAttribLocation(($16|0),(9050|0))|0);
  13757. $18 = ((($0)) + 24|0);
  13758. HEAP32[$18>>2] = $17;
  13759. $19 = HEAP32[$0>>2]|0;
  13760. $20 = (_glGetUniformLocation(($19|0),(9062|0))|0);
  13761. $21 = ((($0)) + 28|0);
  13762. HEAP32[$21>>2] = $20;
  13763. $22 = HEAP32[$0>>2]|0;
  13764. $23 = (_glGetUniformLocation(($22|0),(9072|0))|0);
  13765. $24 = ((($0)) + 32|0);
  13766. HEAP32[$24>>2] = $23;
  13767. $25 = HEAP32[$0>>2]|0;
  13768. $26 = (_glGetUniformLocation(($25|0),(9083|0))|0);
  13769. $27 = ((($0)) + 36|0);
  13770. HEAP32[$27>>2] = $26;
  13771. $28 = HEAP32[$0>>2]|0;
  13772. $29 = (_glGetUniformLocation(($28|0),(9094|0))|0);
  13773. $30 = ((($0)) + 40|0);
  13774. HEAP32[$30>>2] = $29;
  13775. $31 = HEAP32[$0>>2]|0;
  13776. $32 = (_glGetUniformLocation(($31|0),(9106|0))|0);
  13777. $33 = ((($0)) + 44|0);
  13778. HEAP32[$33>>2] = $32;
  13779. $34 = HEAP32[$0>>2]|0;
  13780. $35 = (_glGetUniformLocation(($34|0),(9115|0))|0);
  13781. $36 = ((($0)) + 48|0);
  13782. HEAP32[$36>>2] = $35;
  13783. $37 = HEAP32[$0>>2]|0;
  13784. $38 = (_glGetUniformLocation(($37|0),(9124|0))|0);
  13785. $39 = ((($0)) + 52|0);
  13786. HEAP32[$39>>2] = $38;
  13787. return;
  13788. }
  13789. function _IsMouseButtonPressed($0) {
  13790. $0 = $0|0;
  13791. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  13792. sp = STACKTOP;
  13793. $1 = (23265 + ($0)|0);
  13794. $2 = HEAP8[$1>>0]|0;
  13795. $3 = (23268 + ($0)|0);
  13796. $4 = HEAP8[$3>>0]|0;
  13797. $5 = ($2<<24>>24)!=($4<<24>>24);
  13798. $6 = ($2<<24>>24)==(1);
  13799. $or$cond = $6 & $5;
  13800. $$0 = $or$cond&1;
  13801. return ($$0|0);
  13802. }
  13803. function _IsMouseButtonReleased($0) {
  13804. $0 = $0|0;
  13805. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  13806. sp = STACKTOP;
  13807. $1 = (23265 + ($0)|0);
  13808. $2 = HEAP8[$1>>0]|0;
  13809. $3 = (23268 + ($0)|0);
  13810. $4 = HEAP8[$3>>0]|0;
  13811. $5 = ($2<<24>>24)!=($4<<24>>24);
  13812. $6 = ($2<<24>>24)==(0);
  13813. $or$cond = $6 & $5;
  13814. $$0 = $or$cond&1;
  13815. return ($$0|0);
  13816. }
  13817. function _rlClearScreenBuffers() {
  13818. var label = 0, sp = 0;
  13819. sp = STACKTOP;
  13820. _glClear(16640);
  13821. return;
  13822. }
  13823. function _CloseWindow() {
  13824. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13825. sp = STACKTOP;
  13826. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13827. $vararg_buffer = sp;
  13828. _UnloadDefaultFont();
  13829. _rlglClose();
  13830. $0 = HEAP32[5108]|0;
  13831. _glfwDestroyWindow(($0|0));
  13832. _glfwTerminate();
  13833. _TraceLog(0,9696,$vararg_buffer);
  13834. STACKTOP = sp;return;
  13835. }
  13836. function _UnloadDefaultFont() {
  13837. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  13838. sp = STACKTOP;
  13839. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  13840. $$byval_copy = sp;
  13841. ;HEAP32[$$byval_copy>>2]=HEAP32[20472>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[20472+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[20472+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[20472+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[20472+16>>2]|0;
  13842. _UnloadTexture($$byval_copy);
  13843. $0 = HEAP32[(20500)>>2]|0;
  13844. _free($0);
  13845. STACKTOP = sp;return;
  13846. }
  13847. function _rlglClose() {
  13848. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13849. sp = STACKTOP;
  13850. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13851. $vararg_buffer = sp;
  13852. _UnloadDefaultShader();
  13853. _UnloadDefaultBuffers();
  13854. _glDeleteTextures(1,(20784|0));
  13855. $0 = HEAP32[5196]|0;
  13856. HEAP32[$vararg_buffer>>2] = $0;
  13857. _TraceLog(0,9723,$vararg_buffer);
  13858. $1 = HEAP32[5226]|0;
  13859. _free($1);
  13860. STACKTOP = sp;return;
  13861. }
  13862. function _UnloadDefaultShader() {
  13863. var $0 = 0, label = 0, sp = 0;
  13864. sp = STACKTOP;
  13865. _glUseProgram(0);
  13866. $0 = HEAP32[5197]|0;
  13867. _glDeleteProgram(($0|0));
  13868. return;
  13869. }
  13870. function _UnloadDefaultBuffers() {
  13871. 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;
  13872. sp = STACKTOP;
  13873. $0 = HEAP32[5189]|0;
  13874. $1 = ($0|0)==(0);
  13875. if (!($1)) {
  13876. $2 = HEAP32[5191]|0;
  13877. FUNCTION_TABLE_vi[$2 & 31](0);
  13878. }
  13879. _glDisableVertexAttribArray(0);
  13880. _glDisableVertexAttribArray(1);
  13881. _glDisableVertexAttribArray(2);
  13882. _glDisableVertexAttribArray(3);
  13883. _glBindBuffer(34962,0);
  13884. _glBindBuffer(34963,0);
  13885. _glDeleteBuffers(1,((21980)|0));
  13886. _glDeleteBuffers(1,((21984)|0));
  13887. _glDeleteBuffers(1,((22028)|0));
  13888. _glDeleteBuffers(1,((22032)|0));
  13889. _glDeleteBuffers(1,((22076)|0));
  13890. _glDeleteBuffers(1,((22080)|0));
  13891. _glDeleteBuffers(1,((22084)|0));
  13892. _glDeleteBuffers(1,((22088)|0));
  13893. $3 = HEAP32[5189]|0;
  13894. $4 = ($3|0)==(0);
  13895. if (!($4)) {
  13896. $5 = HEAP32[5192]|0;
  13897. FUNCTION_TABLE_vii[$5 & 63](1,(21976));
  13898. $6 = HEAP32[5192]|0;
  13899. FUNCTION_TABLE_vii[$6 & 63](1,(22024));
  13900. $7 = HEAP32[5192]|0;
  13901. FUNCTION_TABLE_vii[$7 & 63](1,(22072));
  13902. }
  13903. $8 = HEAP32[(21960)>>2]|0;
  13904. _free($8);
  13905. $9 = HEAP32[(21968)>>2]|0;
  13906. _free($9);
  13907. $10 = HEAP32[(22008)>>2]|0;
  13908. _free($10);
  13909. $11 = HEAP32[(22016)>>2]|0;
  13910. _free($11);
  13911. $12 = HEAP32[(22056)>>2]|0;
  13912. _free($12);
  13913. $13 = HEAP32[(22060)>>2]|0;
  13914. _free($13);
  13915. $14 = HEAP32[(22064)>>2]|0;
  13916. _free($14);
  13917. $15 = HEAP32[(22068)>>2]|0;
  13918. _free($15);
  13919. return;
  13920. }
  13921. function _UnloadTexture($0) {
  13922. $0 = $0|0;
  13923. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13924. sp = STACKTOP;
  13925. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13926. $vararg_buffer = sp;
  13927. $1 = HEAP32[$0>>2]|0;
  13928. $2 = ($1|0)==(0);
  13929. if ($2) {
  13930. STACKTOP = sp;return;
  13931. }
  13932. _rlDeleteTextures($1);
  13933. $3 = HEAP32[$0>>2]|0;
  13934. HEAP32[$vararg_buffer>>2] = $3;
  13935. _TraceLog(0,9788,$vararg_buffer);
  13936. STACKTOP = sp;return;
  13937. }
  13938. function _rlDeleteTextures($0) {
  13939. $0 = $0|0;
  13940. var $1 = 0, $2 = 0, label = 0, sp = 0;
  13941. sp = STACKTOP;
  13942. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13943. $1 = sp;
  13944. HEAP32[$1>>2] = $0;
  13945. $2 = ($0|0)==(0);
  13946. if (!($2)) {
  13947. _glDeleteTextures(1,($1|0));
  13948. }
  13949. STACKTOP = sp;return;
  13950. }
  13951. function _BeginDrawing() {
  13952. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13953. sp = STACKTOP;
  13954. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13955. $downscaleView$byval_copy = sp;
  13956. $0 = (+_GetTime());
  13957. HEAPF64[2504] = $0;
  13958. $1 = +HEAPF64[2487];
  13959. $2 = $0 - $1;
  13960. HEAPF64[2505] = $2;
  13961. HEAPF64[2487] = $0;
  13962. _rlClearScreenBuffers();
  13963. _rlLoadIdentity();
  13964. dest=$downscaleView$byval_copy; src=20528; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  13965. (_MatrixToFloat($downscaleView$byval_copy)|0);
  13966. _rlMultMatrixf(22100);
  13967. STACKTOP = sp;return;
  13968. }
  13969. function _MatrixToFloat($0) {
  13970. $0 = $0|0;
  13971. 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;
  13972. 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;
  13973. sp = STACKTOP;
  13974. $1 = HEAP32[$0>>2]|0;
  13975. HEAP32[5525] = $1;
  13976. $2 = ((($0)) + 4|0);
  13977. $3 = HEAP32[$2>>2]|0;
  13978. HEAP32[(22104)>>2] = $3;
  13979. $4 = ((($0)) + 8|0);
  13980. $5 = HEAP32[$4>>2]|0;
  13981. HEAP32[(22108)>>2] = $5;
  13982. $6 = ((($0)) + 12|0);
  13983. $7 = HEAP32[$6>>2]|0;
  13984. HEAP32[(22112)>>2] = $7;
  13985. $8 = ((($0)) + 16|0);
  13986. $9 = HEAP32[$8>>2]|0;
  13987. HEAP32[(22116)>>2] = $9;
  13988. $10 = ((($0)) + 20|0);
  13989. $11 = HEAP32[$10>>2]|0;
  13990. HEAP32[(22120)>>2] = $11;
  13991. $12 = ((($0)) + 24|0);
  13992. $13 = HEAP32[$12>>2]|0;
  13993. HEAP32[(22124)>>2] = $13;
  13994. $14 = ((($0)) + 28|0);
  13995. $15 = HEAP32[$14>>2]|0;
  13996. HEAP32[(22128)>>2] = $15;
  13997. $16 = ((($0)) + 32|0);
  13998. $17 = HEAP32[$16>>2]|0;
  13999. HEAP32[(22132)>>2] = $17;
  14000. $18 = ((($0)) + 36|0);
  14001. $19 = HEAP32[$18>>2]|0;
  14002. HEAP32[(22136)>>2] = $19;
  14003. $20 = ((($0)) + 40|0);
  14004. $21 = HEAP32[$20>>2]|0;
  14005. HEAP32[(22140)>>2] = $21;
  14006. $22 = ((($0)) + 44|0);
  14007. $23 = HEAP32[$22>>2]|0;
  14008. HEAP32[(22144)>>2] = $23;
  14009. $24 = ((($0)) + 48|0);
  14010. $25 = HEAP32[$24>>2]|0;
  14011. HEAP32[(22148)>>2] = $25;
  14012. $26 = ((($0)) + 52|0);
  14013. $27 = HEAP32[$26>>2]|0;
  14014. HEAP32[(22152)>>2] = $27;
  14015. $28 = ((($0)) + 56|0);
  14016. $29 = HEAP32[$28>>2]|0;
  14017. HEAP32[(22156)>>2] = $29;
  14018. $30 = ((($0)) + 60|0);
  14019. $31 = HEAP32[$30>>2]|0;
  14020. HEAP32[(22160)>>2] = $31;
  14021. return (22100|0);
  14022. }
  14023. function _rlMultMatrixf($0) {
  14024. $0 = $0|0;
  14025. 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;
  14026. 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;
  14027. 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;
  14028. sp = STACKTOP;
  14029. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14030. $$byval_copy1 = sp + 192|0;
  14031. $$byval_copy = sp + 128|0;
  14032. $1 = sp + 64|0;
  14033. $2 = sp;
  14034. $3 = HEAP32[$0>>2]|0;
  14035. HEAP32[$1>>2] = $3;
  14036. $4 = ((($1)) + 4|0);
  14037. $5 = ((($0)) + 4|0);
  14038. $6 = HEAP32[$5>>2]|0;
  14039. HEAP32[$4>>2] = $6;
  14040. $7 = ((($1)) + 8|0);
  14041. $8 = ((($0)) + 8|0);
  14042. $9 = HEAP32[$8>>2]|0;
  14043. HEAP32[$7>>2] = $9;
  14044. $10 = ((($1)) + 12|0);
  14045. $11 = ((($0)) + 12|0);
  14046. $12 = HEAP32[$11>>2]|0;
  14047. HEAP32[$10>>2] = $12;
  14048. $13 = ((($1)) + 16|0);
  14049. $14 = ((($0)) + 16|0);
  14050. $15 = HEAP32[$14>>2]|0;
  14051. HEAP32[$13>>2] = $15;
  14052. $16 = ((($1)) + 20|0);
  14053. $17 = ((($0)) + 20|0);
  14054. $18 = HEAP32[$17>>2]|0;
  14055. HEAP32[$16>>2] = $18;
  14056. $19 = ((($1)) + 24|0);
  14057. $20 = ((($0)) + 24|0);
  14058. $21 = HEAP32[$20>>2]|0;
  14059. HEAP32[$19>>2] = $21;
  14060. $22 = ((($1)) + 28|0);
  14061. $23 = ((($0)) + 28|0);
  14062. $24 = HEAP32[$23>>2]|0;
  14063. HEAP32[$22>>2] = $24;
  14064. $25 = ((($1)) + 32|0);
  14065. $26 = ((($0)) + 32|0);
  14066. $27 = HEAP32[$26>>2]|0;
  14067. HEAP32[$25>>2] = $27;
  14068. $28 = ((($1)) + 36|0);
  14069. $29 = ((($0)) + 36|0);
  14070. $30 = HEAP32[$29>>2]|0;
  14071. HEAP32[$28>>2] = $30;
  14072. $31 = ((($1)) + 40|0);
  14073. $32 = ((($0)) + 40|0);
  14074. $33 = HEAP32[$32>>2]|0;
  14075. HEAP32[$31>>2] = $33;
  14076. $34 = ((($1)) + 44|0);
  14077. $35 = ((($0)) + 44|0);
  14078. $36 = HEAP32[$35>>2]|0;
  14079. HEAP32[$34>>2] = $36;
  14080. $37 = ((($1)) + 48|0);
  14081. $38 = ((($0)) + 48|0);
  14082. $39 = HEAP32[$38>>2]|0;
  14083. HEAP32[$37>>2] = $39;
  14084. $40 = ((($1)) + 52|0);
  14085. $41 = ((($0)) + 52|0);
  14086. $42 = HEAP32[$41>>2]|0;
  14087. HEAP32[$40>>2] = $42;
  14088. $43 = ((($1)) + 56|0);
  14089. $44 = ((($0)) + 56|0);
  14090. $45 = HEAP32[$44>>2]|0;
  14091. HEAP32[$43>>2] = $45;
  14092. $46 = ((($1)) + 60|0);
  14093. $47 = ((($0)) + 60|0);
  14094. $48 = HEAP32[$47>>2]|0;
  14095. HEAP32[$46>>2] = $48;
  14096. $49 = HEAP32[5155]|0;
  14097. 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));
  14098. 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));
  14099. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  14100. 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));
  14101. STACKTOP = sp;return;
  14102. }
  14103. function _EndDrawing() {
  14104. 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;
  14105. sp = STACKTOP;
  14106. _rlglDraw();
  14107. _SwapBuffers();
  14108. _PollInputEvents();
  14109. $0 = (+_GetTime());
  14110. HEAPF64[2504] = $0;
  14111. $1 = +HEAPF64[2487];
  14112. $2 = $0 - $1;
  14113. HEAPF64[2506] = $2;
  14114. HEAPF64[2487] = $0;
  14115. $3 = +HEAPF64[2505];
  14116. $4 = $2 + $3;
  14117. HEAPF64[2507] = $4;
  14118. $5 = +HEAPF64[2484];
  14119. $6 = $4 < $5;
  14120. if (!($6)) {
  14121. return;
  14122. }
  14123. $7 = $5 - $4;
  14124. $8 = $7 * 1000.0;
  14125. $9 = $8;
  14126. _Wait($9);
  14127. $10 = (+_GetTime());
  14128. HEAPF64[2504] = $10;
  14129. $11 = +HEAPF64[2487];
  14130. $12 = $10 - $11;
  14131. HEAPF64[2487] = $10;
  14132. $13 = +HEAPF64[2507];
  14133. $14 = $12 + $13;
  14134. HEAPF64[2507] = $14;
  14135. return;
  14136. }
  14137. function _rlglDraw() {
  14138. var label = 0, sp = 0;
  14139. sp = STACKTOP;
  14140. _UpdateDefaultBuffers();
  14141. _DrawDefaultBuffers();
  14142. return;
  14143. }
  14144. function _SwapBuffers() {
  14145. var $0 = 0, label = 0, sp = 0;
  14146. sp = STACKTOP;
  14147. $0 = HEAP32[5108]|0;
  14148. _glfwSwapBuffers(($0|0));
  14149. return;
  14150. }
  14151. function _PollInputEvents() {
  14152. 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;
  14153. 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;
  14154. 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;
  14155. sp = STACKTOP;
  14156. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  14157. $0 = sp + 1440|0;
  14158. $1 = sp + 1432|0;
  14159. $2 = sp;
  14160. _UpdateGestures();
  14161. HEAP32[749] = -1;
  14162. HEAP32[751] = -1;
  14163. HEAP32[5541] = 0;
  14164. $3 = HEAP32[5108]|0;
  14165. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  14166. $4 = +HEAPF64[$0>>3];
  14167. $5 = $4;
  14168. HEAPF32[4966] = $5;
  14169. $6 = +HEAPF64[$1>>3];
  14170. $7 = $6;
  14171. HEAPF32[(19868)>>2] = $7;
  14172. _memcpy((23783|0),(23271|0),512)|0;
  14173. ;HEAP8[23268>>0]=HEAP8[23265>>0]|0;HEAP8[23268+1>>0]=HEAP8[23265+1>>0]|0;HEAP8[23268+2>>0]=HEAP8[23265+2>>0]|0;
  14174. $8 = HEAP32[5524]|0;
  14175. HEAP32[5111] = $8;
  14176. HEAP32[5524] = 0;
  14177. $9 = (_emscripten_get_num_gamepads()|0);
  14178. $10 = ($9|0)>(0);
  14179. if (!($10)) {
  14180. STACKTOP = sp;return;
  14181. }
  14182. $11 = ((($2)) + 12|0);
  14183. $12 = ((($2)) + 8|0);
  14184. $$05160 = 0;
  14185. while(1) {
  14186. $scevgep = (24295 + ($$05160<<5)|0);
  14187. $scevgep67 = (24423 + ($$05160<<5)|0);
  14188. 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));
  14189. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  14190. $14 = ($13|0)==(0);
  14191. if ($14) {
  14192. $15 = HEAP32[$11>>2]|0;
  14193. $16 = ($15|0)>(0);
  14194. if ($16) {
  14195. $17 = HEAP32[$11>>2]|0;
  14196. $$04857 = 0;
  14197. while(1) {
  14198. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  14199. $22 = HEAP32[$21>>2]|0;
  14200. $23 = ($22|0)==(1);
  14201. $24 = ((24423 + ($$05160<<5)|0) + ($$04857)|0);
  14202. if ($23) {
  14203. HEAP8[$24>>0] = 1;
  14204. HEAP32[751] = $$04857;
  14205. } else {
  14206. HEAP8[$24>>0] = 0;
  14207. }
  14208. $25 = (($$04857) + 1)|0;
  14209. $26 = ($25|0)<($17|0);
  14210. $27 = ($25|0)<(32);
  14211. $28 = $27 & $26;
  14212. if ($28) {
  14213. $$04857 = $25;
  14214. } else {
  14215. break;
  14216. }
  14217. }
  14218. }
  14219. $18 = HEAP32[$12>>2]|0;
  14220. $19 = ($18|0)>(0);
  14221. if ($19) {
  14222. $20 = HEAP32[$12>>2]|0;
  14223. $$058 = 0;
  14224. while(1) {
  14225. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  14226. $30 = +HEAPF64[$29>>3];
  14227. $31 = $30;
  14228. $32 = ((22168 + ($$05160<<5)|0) + ($$058<<2)|0);
  14229. HEAPF32[$32>>2] = $31;
  14230. $33 = (($$058) + 1)|0;
  14231. $34 = ($33|0)<($20|0);
  14232. $35 = ($33|0)<(8);
  14233. $36 = $35 & $34;
  14234. if ($36) {
  14235. $$058 = $33;
  14236. } else {
  14237. $$lcssa = $20;
  14238. break;
  14239. }
  14240. }
  14241. } else {
  14242. $$lcssa = $18;
  14243. }
  14244. HEAP32[5541] = $$lcssa;
  14245. }
  14246. $37 = (($$05160) + 1)|0;
  14247. $38 = ($37|0)<($9|0);
  14248. $39 = ($37|0)<(4);
  14249. $40 = $38 & $39;
  14250. if ($40) {
  14251. $$05160 = $37;
  14252. } else {
  14253. break;
  14254. }
  14255. }
  14256. STACKTOP = sp;return;
  14257. }
  14258. function _Wait($0) {
  14259. $0 = +$0;
  14260. 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;
  14261. sp = STACKTOP;
  14262. $1 = (+_GetTime());
  14263. $2 = 0.0 - $1;
  14264. $3 = $0 / 1000.0;
  14265. $4 = $3;
  14266. $5 = $2 < $4;
  14267. if (!($5)) {
  14268. return;
  14269. }
  14270. while(1) {
  14271. $6 = (+_GetTime());
  14272. $7 = $6 - $1;
  14273. $8 = $7 < $4;
  14274. if (!($8)) {
  14275. break;
  14276. }
  14277. }
  14278. return;
  14279. }
  14280. function _UpdateDefaultBuffers() {
  14281. 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;
  14282. 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;
  14283. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  14284. sp = STACKTOP;
  14285. $0 = HEAP32[5487]|0;
  14286. $1 = ($0|0)>(0);
  14287. if ($1) {
  14288. $2 = HEAP32[5189]|0;
  14289. $3 = ($2|0)==(0);
  14290. if (!($3)) {
  14291. $4 = HEAP32[5191]|0;
  14292. $5 = HEAP32[(21976)>>2]|0;
  14293. FUNCTION_TABLE_vi[$4 & 31]($5);
  14294. }
  14295. $6 = HEAP32[(21980)>>2]|0;
  14296. _glBindBuffer(34962,($6|0));
  14297. $7 = HEAP32[5487]|0;
  14298. $8 = ($7*12)|0;
  14299. $9 = HEAP32[(21960)>>2]|0;
  14300. _glBufferSubData(34962,0,($8|0),($9|0));
  14301. $10 = HEAP32[(21984)>>2]|0;
  14302. _glBindBuffer(34962,($10|0));
  14303. $11 = HEAP32[(21956)>>2]|0;
  14304. $12 = $11 << 2;
  14305. $13 = HEAP32[(21968)>>2]|0;
  14306. _glBufferSubData(34962,0,($12|0),($13|0));
  14307. }
  14308. $14 = HEAP32[5499]|0;
  14309. $15 = ($14|0)>(0);
  14310. if ($15) {
  14311. $16 = HEAP32[5189]|0;
  14312. $17 = ($16|0)==(0);
  14313. if (!($17)) {
  14314. $18 = HEAP32[5191]|0;
  14315. $19 = HEAP32[(22024)>>2]|0;
  14316. FUNCTION_TABLE_vi[$18 & 31]($19);
  14317. }
  14318. $20 = HEAP32[(22028)>>2]|0;
  14319. _glBindBuffer(34962,($20|0));
  14320. $21 = HEAP32[5499]|0;
  14321. $22 = ($21*12)|0;
  14322. $23 = HEAP32[(22008)>>2]|0;
  14323. _glBufferSubData(34962,0,($22|0),($23|0));
  14324. $24 = HEAP32[(22032)>>2]|0;
  14325. _glBindBuffer(34962,($24|0));
  14326. $25 = HEAP32[(22004)>>2]|0;
  14327. $26 = $25 << 2;
  14328. $27 = HEAP32[(22016)>>2]|0;
  14329. _glBufferSubData(34962,0,($26|0),($27|0));
  14330. }
  14331. $28 = HEAP32[5511]|0;
  14332. $29 = ($28|0)>(0);
  14333. if ($29) {
  14334. $30 = HEAP32[5189]|0;
  14335. $31 = ($30|0)==(0);
  14336. if (!($31)) {
  14337. $32 = HEAP32[5191]|0;
  14338. $33 = HEAP32[(22072)>>2]|0;
  14339. FUNCTION_TABLE_vi[$32 & 31]($33);
  14340. }
  14341. $34 = HEAP32[(22076)>>2]|0;
  14342. _glBindBuffer(34962,($34|0));
  14343. $35 = HEAP32[5511]|0;
  14344. $36 = ($35*12)|0;
  14345. $37 = HEAP32[(22056)>>2]|0;
  14346. _glBufferSubData(34962,0,($36|0),($37|0));
  14347. $38 = HEAP32[(22080)>>2]|0;
  14348. _glBindBuffer(34962,($38|0));
  14349. $39 = HEAP32[5511]|0;
  14350. $40 = $39 << 3;
  14351. $41 = HEAP32[(22060)>>2]|0;
  14352. _glBufferSubData(34962,0,($40|0),($41|0));
  14353. $42 = HEAP32[(22084)>>2]|0;
  14354. _glBindBuffer(34962,($42|0));
  14355. $43 = HEAP32[5511]|0;
  14356. $44 = $43 << 2;
  14357. $45 = HEAP32[(22064)>>2]|0;
  14358. _glBufferSubData(34962,0,($44|0),($45|0));
  14359. }
  14360. $46 = HEAP32[5189]|0;
  14361. $47 = ($46|0)==(0);
  14362. if ($47) {
  14363. return;
  14364. }
  14365. $48 = HEAP32[5191]|0;
  14366. FUNCTION_TABLE_vi[$48 & 31](0);
  14367. return;
  14368. }
  14369. function _DrawDefaultBuffers() {
  14370. 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;
  14371. 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;
  14372. 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;
  14373. 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;
  14374. 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;
  14375. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14376. sp = STACKTOP;
  14377. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  14378. $$byval_copy2 = sp + 256|0;
  14379. $modelview$byval_copy = sp + 192|0;
  14380. $0 = sp + 128|0;
  14381. $1 = sp + 64|0;
  14382. $2 = sp;
  14383. dest=$0; src=20624; stop=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. dest=$1; src=20688; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14385. $3 = HEAP32[5574]|0;
  14386. $4 = ($3|0)!=(0);
  14387. $$ = $4 ? 2 : 1;
  14388. $$02932 = 0;
  14389. while(1) {
  14390. if ($4) {
  14391. 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));
  14392. 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));
  14393. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  14394. }
  14395. $8 = HEAP32[5487]|0;
  14396. $9 = ($8|0)>(0);
  14397. $10 = HEAP32[5499]|0;
  14398. $11 = ($10|0)>(0);
  14399. $or$cond = $9 | $11;
  14400. $12 = HEAP32[5511]|0;
  14401. $13 = ($12|0)>(0);
  14402. $or$cond3 = $or$cond | $13;
  14403. if ($or$cond3) {
  14404. $14 = HEAP32[5211]|0;
  14405. _glUseProgram(($14|0));
  14406. dest=$modelview$byval_copy; src=20688; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14407. dest=$$byval_copy2; src=20624; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14408. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  14409. $15 = HEAP32[(20872)>>2]|0;
  14410. 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));
  14411. $16 = (_MatrixToFloat($$byval_copy2)|0);
  14412. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  14413. $17 = HEAP32[(20876)>>2]|0;
  14414. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  14415. $18 = HEAP32[(20888)>>2]|0;
  14416. _glUniform1i(($18|0),0);
  14417. }
  14418. $19 = HEAP32[5487]|0;
  14419. $20 = ($19|0)>(0);
  14420. if ($20) {
  14421. $21 = HEAP32[5196]|0;
  14422. _glBindTexture(3553,($21|0));
  14423. $22 = HEAP32[5189]|0;
  14424. $23 = ($22|0)==(0);
  14425. if ($23) {
  14426. $26 = HEAP32[(21980)>>2]|0;
  14427. _glBindBuffer(34962,($26|0));
  14428. $27 = HEAP32[(20848)>>2]|0;
  14429. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  14430. $28 = HEAP32[(20848)>>2]|0;
  14431. _glEnableVertexAttribArray(($28|0));
  14432. $29 = HEAP32[(21984)>>2]|0;
  14433. _glBindBuffer(34962,($29|0));
  14434. $30 = HEAP32[(20868)>>2]|0;
  14435. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  14436. $31 = HEAP32[(20868)>>2]|0;
  14437. _glEnableVertexAttribArray(($31|0));
  14438. } else {
  14439. $24 = HEAP32[5191]|0;
  14440. $25 = HEAP32[(21976)>>2]|0;
  14441. FUNCTION_TABLE_vi[$24 & 31]($25);
  14442. }
  14443. $32 = HEAP32[5487]|0;
  14444. _glDrawArrays(1,0,($32|0));
  14445. $33 = HEAP32[5189]|0;
  14446. $34 = ($33|0)==(0);
  14447. if ($34) {
  14448. _glBindBuffer(34962,0);
  14449. }
  14450. _glBindTexture(3553,0);
  14451. }
  14452. $35 = HEAP32[5499]|0;
  14453. $36 = ($35|0)>(0);
  14454. if ($36) {
  14455. $37 = HEAP32[5196]|0;
  14456. _glBindTexture(3553,($37|0));
  14457. $38 = HEAP32[5189]|0;
  14458. $39 = ($38|0)==(0);
  14459. if ($39) {
  14460. $42 = HEAP32[(22028)>>2]|0;
  14461. _glBindBuffer(34962,($42|0));
  14462. $43 = HEAP32[(20848)>>2]|0;
  14463. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  14464. $44 = HEAP32[(20848)>>2]|0;
  14465. _glEnableVertexAttribArray(($44|0));
  14466. $45 = HEAP32[(22032)>>2]|0;
  14467. _glBindBuffer(34962,($45|0));
  14468. $46 = HEAP32[(20868)>>2]|0;
  14469. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  14470. $47 = HEAP32[(20868)>>2]|0;
  14471. _glEnableVertexAttribArray(($47|0));
  14472. } else {
  14473. $40 = HEAP32[5191]|0;
  14474. $41 = HEAP32[(22024)>>2]|0;
  14475. FUNCTION_TABLE_vi[$40 & 31]($41);
  14476. }
  14477. $48 = HEAP32[5499]|0;
  14478. _glDrawArrays(4,0,($48|0));
  14479. $49 = HEAP32[5189]|0;
  14480. $50 = ($49|0)==(0);
  14481. if ($50) {
  14482. _glBindBuffer(34962,0);
  14483. }
  14484. _glBindTexture(3553,0);
  14485. }
  14486. $51 = HEAP32[5511]|0;
  14487. $52 = ($51|0)>(0);
  14488. if ($52) {
  14489. $53 = HEAP32[5189]|0;
  14490. $54 = ($53|0)==(0);
  14491. if ($54) {
  14492. $57 = HEAP32[(22076)>>2]|0;
  14493. _glBindBuffer(34962,($57|0));
  14494. $58 = HEAP32[(20848)>>2]|0;
  14495. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  14496. $59 = HEAP32[(20848)>>2]|0;
  14497. _glEnableVertexAttribArray(($59|0));
  14498. $60 = HEAP32[(22080)>>2]|0;
  14499. _glBindBuffer(34962,($60|0));
  14500. $61 = HEAP32[(20852)>>2]|0;
  14501. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  14502. $62 = HEAP32[(20852)>>2]|0;
  14503. _glEnableVertexAttribArray(($62|0));
  14504. $63 = HEAP32[(22084)>>2]|0;
  14505. _glBindBuffer(34962,($63|0));
  14506. $64 = HEAP32[(20868)>>2]|0;
  14507. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  14508. $65 = HEAP32[(20868)>>2]|0;
  14509. _glEnableVertexAttribArray(($65|0));
  14510. $66 = HEAP32[(22088)>>2]|0;
  14511. _glBindBuffer(34963,($66|0));
  14512. } else {
  14513. $55 = HEAP32[5191]|0;
  14514. $56 = HEAP32[(22072)>>2]|0;
  14515. FUNCTION_TABLE_vi[$55 & 31]($56);
  14516. }
  14517. $67 = HEAP32[5227]|0;
  14518. $68 = ($67|0)>(0);
  14519. if ($68) {
  14520. $$02830 = 0;$$031 = 0;
  14521. while(1) {
  14522. $71 = HEAP32[5226]|0;
  14523. $72 = (($71) + (($$031*144)|0)|0);
  14524. $73 = HEAP32[$72>>2]|0;
  14525. $74 = (($73|0) / 4)&-1;
  14526. $75 = ($74*6)|0;
  14527. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  14528. $77 = HEAP32[$76>>2]|0;
  14529. _glBindTexture(3553,($77|0));
  14530. $78 = $$02830 << 1;
  14531. $79 = $78;
  14532. _glDrawElements(4,($75|0),5123,($79|0));
  14533. $80 = HEAP32[5226]|0;
  14534. $81 = (($80) + (($$031*144)|0)|0);
  14535. $82 = HEAP32[$81>>2]|0;
  14536. $83 = (($82|0) / 4)&-1;
  14537. $84 = ($83*6)|0;
  14538. $85 = (($84) + ($$02830))|0;
  14539. $86 = (($$031) + 1)|0;
  14540. $87 = HEAP32[5227]|0;
  14541. $88 = ($86|0)<($87|0);
  14542. if ($88) {
  14543. $$02830 = $85;$$031 = $86;
  14544. } else {
  14545. break;
  14546. }
  14547. }
  14548. }
  14549. $69 = HEAP32[5189]|0;
  14550. $70 = ($69|0)==(0);
  14551. if ($70) {
  14552. _glBindBuffer(34962,0);
  14553. _glBindBuffer(34963,0);
  14554. }
  14555. _glBindTexture(3553,0);
  14556. }
  14557. $89 = HEAP32[5189]|0;
  14558. $90 = ($89|0)==(0);
  14559. if (!($90)) {
  14560. $91 = HEAP32[5191]|0;
  14561. FUNCTION_TABLE_vi[$91 & 31](0);
  14562. }
  14563. _glUseProgram(0);
  14564. $92 = (($$02932) + 1)|0;
  14565. $93 = ($92|0)<($$|0);
  14566. if ($93) {
  14567. $$02932 = $92;
  14568. } else {
  14569. break;
  14570. }
  14571. }
  14572. HEAP32[5227] = 1;
  14573. $5 = HEAP32[5196]|0;
  14574. $6 = HEAP32[5226]|0;
  14575. $7 = ((($6)) + 8|0);
  14576. HEAP32[$7>>2] = $5;
  14577. HEAP32[$6>>2] = 0;
  14578. HEAP32[5487] = 0;
  14579. HEAP32[(21956)>>2] = 0;
  14580. HEAP32[5499] = 0;
  14581. HEAP32[(22004)>>2] = 0;
  14582. HEAP32[5511] = 0;
  14583. HEAP32[(22048)>>2] = 0;
  14584. HEAP32[(22052)>>2] = 0;
  14585. HEAPF32[752] = -1.0;
  14586. dest=20624; 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));
  14587. dest=20688; 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));
  14588. STACKTOP = sp;return;
  14589. }
  14590. function _SetStereoView($0,$1,$2) {
  14591. $0 = $0|0;
  14592. $1 = $1|0;
  14593. $2 = $2|0;
  14594. 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;
  14595. sp = STACKTOP;
  14596. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14597. $$byval_copy3 = sp + 192|0;
  14598. $$byval_copy = sp + 64|0;
  14599. $3 = sp;
  14600. $4 = sp + 128|0;
  14601. 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));
  14602. $5 = HEAP32[5485]|0;
  14603. $6 = Math_imul($5, $0)|0;
  14604. $7 = (($6|0) / 2)&-1;
  14605. $8 = (($5|0) / 2)&-1;
  14606. $9 = HEAP32[5486]|0;
  14607. _rlViewport($7,0,$8,$9);
  14608. $10 = (22528 + ($0<<6)|0);
  14609. 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));
  14610. 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));
  14611. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  14612. $11 = (22400 + ($0<<6)|0);
  14613. 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));
  14614. 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));
  14615. _SetMatrixModelview($$byval_copy3);
  14616. 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));
  14617. _SetMatrixProjection($$byval_copy3);
  14618. STACKTOP = sp;return;
  14619. }
  14620. function _SetMatrixModelview($0) {
  14621. $0 = $0|0;
  14622. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14623. sp = STACKTOP;
  14624. dest=20688; 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));
  14625. return;
  14626. }
  14627. function _SetMatrixProjection($0) {
  14628. $0 = $0|0;
  14629. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14630. sp = STACKTOP;
  14631. dest=20624; 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));
  14632. return;
  14633. }
  14634. function _rlPushMatrix() {
  14635. 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;
  14636. sp = STACKTOP;
  14637. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14638. $vararg_buffer = sp;
  14639. $0 = HEAP32[5664]|0;
  14640. $1 = ($0|0)==(15);
  14641. if ($1) {
  14642. HEAP32[$vararg_buffer>>2] = 16;
  14643. _TraceLog(1,9838,$vararg_buffer);
  14644. }
  14645. $2 = HEAP32[5664]|0;
  14646. $3 = (20916 + ($2<<6)|0);
  14647. $4 = HEAP32[5155]|0;
  14648. 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));
  14649. _rlLoadIdentity();
  14650. $5 = HEAP32[5664]|0;
  14651. $6 = (($5) + 1)|0;
  14652. HEAP32[5664] = $6;
  14653. $7 = HEAP32[5188]|0;
  14654. $8 = ($7|0)==(5888);
  14655. if (!($8)) {
  14656. STACKTOP = sp;return;
  14657. }
  14658. HEAP32[5665] = 1;
  14659. STACKTOP = sp;return;
  14660. }
  14661. function _rlPopMatrix() {
  14662. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  14663. sp = STACKTOP;
  14664. $0 = HEAP32[5664]|0;
  14665. $1 = ($0|0)>(0);
  14666. if (!($1)) {
  14667. return;
  14668. }
  14669. $2 = HEAP32[5664]|0;
  14670. $3 = (($2) + -1)|0;
  14671. $4 = (20916 + ($3<<6)|0);
  14672. $5 = HEAP32[5155]|0;
  14673. _memmove(($5|0),($4|0),64)|0;
  14674. $6 = (($2) + -1)|0;
  14675. HEAP32[5664] = $6;
  14676. return;
  14677. }
  14678. function _IsFileExtension($0,$1) {
  14679. $0 = $0|0;
  14680. $1 = $1|0;
  14681. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  14682. sp = STACKTOP;
  14683. $2 = (_strrchr($0,46)|0);
  14684. $3 = ($2|0)==(0|0);
  14685. if ($3) {
  14686. return 0;
  14687. } else {
  14688. $4 = (_strcmp($2,$1)|0);
  14689. $5 = ($4|0)==(0);
  14690. $$ = $5&1;
  14691. return ($$|0);
  14692. }
  14693. return (0)|0;
  14694. }
  14695. function _rlTranslatef($0,$1,$2) {
  14696. $0 = +$0;
  14697. $1 = +$1;
  14698. $2 = +$2;
  14699. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14700. sp = STACKTOP;
  14701. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14702. $$byval_copy1 = sp + 192|0;
  14703. $$byval_copy = sp + 128|0;
  14704. $3 = sp + 64|0;
  14705. $4 = sp;
  14706. _MatrixTranslate($3,$0,$1,$2);
  14707. _MatrixTranspose($3);
  14708. $5 = HEAP32[5155]|0;
  14709. 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));
  14710. 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));
  14711. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  14712. 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));
  14713. STACKTOP = sp;return;
  14714. }
  14715. function _rlRotatef($0,$1,$2,$3) {
  14716. $0 = +$0;
  14717. $1 = +$1;
  14718. $2 = +$2;
  14719. $3 = +$3;
  14720. 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;
  14721. sp = STACKTOP;
  14722. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  14723. $$byval_copy2 = sp + 272|0;
  14724. $$byval_copy1 = sp + 208|0;
  14725. $4 = sp + 144|0;
  14726. $5 = sp + 64|0;
  14727. $6 = sp + 80|0;
  14728. $7 = sp;
  14729. _MatrixIdentity($4);
  14730. HEAPF32[$5>>2] = $1;
  14731. $8 = ((($5)) + 4|0);
  14732. HEAPF32[$8>>2] = $2;
  14733. $9 = ((($5)) + 8|0);
  14734. HEAPF32[$9>>2] = $3;
  14735. _VectorNormalize($5);
  14736. $10 = $0 * 0.01745329238474369;
  14737. ;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;
  14738. _MatrixRotate($6,$$byval_copy2,$10);
  14739. 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));
  14740. _MatrixTranspose($4);
  14741. $11 = HEAP32[5155]|0;
  14742. 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));
  14743. 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));
  14744. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  14745. 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));
  14746. STACKTOP = sp;return;
  14747. }
  14748. function _rlBegin($0) {
  14749. $0 = $0|0;
  14750. var label = 0, sp = 0;
  14751. sp = STACKTOP;
  14752. HEAP32[5228] = $0;
  14753. return;
  14754. }
  14755. function _rlEnd() {
  14756. 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;
  14757. 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;
  14758. 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;
  14759. 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;
  14760. 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;
  14761. 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;
  14762. 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;
  14763. 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;
  14764. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14765. sp = STACKTOP;
  14766. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14767. $$byval_copy = sp;
  14768. $0 = HEAP32[5665]|0;
  14769. $1 = ($0|0)==(0);
  14770. if (!($1)) {
  14771. $2 = HEAP32[5666]|0;
  14772. $3 = ($2|0)>(0);
  14773. if ($3) {
  14774. $$03956 = 0;
  14775. while(1) {
  14776. $6 = HEAP32[5225]|0;
  14777. $7 = (($6) + (($$03956*12)|0)|0);
  14778. $8 = HEAP32[5155]|0;
  14779. 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));
  14780. _VectorTransform($7,$$byval_copy);
  14781. $9 = (($$03956) + 1)|0;
  14782. $5 = HEAP32[5666]|0;
  14783. $10 = ($9|0)<($5|0);
  14784. if ($10) {
  14785. $$03956 = $9;
  14786. } else {
  14787. break;
  14788. }
  14789. }
  14790. HEAP32[5665] = 0;
  14791. $4 = ($5|0)>(0);
  14792. if ($4) {
  14793. $$04154 = 0;
  14794. while(1) {
  14795. $11 = HEAP32[5225]|0;
  14796. $12 = (($11) + (($$04154*12)|0)|0);
  14797. $13 = +HEAPF32[$12>>2];
  14798. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  14799. $15 = +HEAPF32[$14>>2];
  14800. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  14801. $17 = +HEAPF32[$16>>2];
  14802. _rlVertex3f($13,$15,$17);
  14803. $18 = (($$04154) + 1)|0;
  14804. $19 = HEAP32[5666]|0;
  14805. $20 = ($18|0)<($19|0);
  14806. if ($20) {
  14807. $$04154 = $18;
  14808. } else {
  14809. break;
  14810. }
  14811. }
  14812. }
  14813. } else {
  14814. HEAP32[5665] = 0;
  14815. }
  14816. HEAP32[5666] = 0;
  14817. }
  14818. $21 = HEAP32[5228]|0;
  14819. switch ($21|0) {
  14820. case 1: {
  14821. $22 = HEAP32[5487]|0;
  14822. $23 = HEAP32[(21956)>>2]|0;
  14823. $24 = ($22|0)==($23|0);
  14824. if ($24) {
  14825. $148 = +HEAPF32[752];
  14826. $149 = $148 + 4.9999998736893758E-5;
  14827. HEAPF32[752] = $149;
  14828. STACKTOP = sp;return;
  14829. }
  14830. $25 = (($22) - ($23))|0;
  14831. $26 = ($25|0)>(0);
  14832. if ($26) {
  14833. $$04347 = 0;
  14834. } else {
  14835. $148 = +HEAPF32[752];
  14836. $149 = $148 + 4.9999998736893758E-5;
  14837. HEAPF32[752] = $149;
  14838. STACKTOP = sp;return;
  14839. }
  14840. while(1) {
  14841. $27 = HEAP32[(21968)>>2]|0;
  14842. $28 = HEAP32[(21956)>>2]|0;
  14843. $29 = $28 << 2;
  14844. $30 = (($29) + -4)|0;
  14845. $31 = (($27) + ($30)|0);
  14846. $32 = HEAP8[$31>>0]|0;
  14847. $33 = (($27) + ($29)|0);
  14848. HEAP8[$33>>0] = $32;
  14849. $34 = HEAP32[(21968)>>2]|0;
  14850. $35 = HEAP32[(21956)>>2]|0;
  14851. $36 = $35 << 2;
  14852. $37 = (($36) + -3)|0;
  14853. $38 = (($34) + ($37)|0);
  14854. $39 = HEAP8[$38>>0]|0;
  14855. $40 = $36 | 1;
  14856. $41 = (($34) + ($40)|0);
  14857. HEAP8[$41>>0] = $39;
  14858. $42 = HEAP32[(21968)>>2]|0;
  14859. $43 = HEAP32[(21956)>>2]|0;
  14860. $44 = $43 << 2;
  14861. $45 = (($44) + -2)|0;
  14862. $46 = (($42) + ($45)|0);
  14863. $47 = HEAP8[$46>>0]|0;
  14864. $48 = $44 | 2;
  14865. $49 = (($42) + ($48)|0);
  14866. HEAP8[$49>>0] = $47;
  14867. $50 = HEAP32[(21968)>>2]|0;
  14868. $51 = HEAP32[(21956)>>2]|0;
  14869. $52 = $51 << 2;
  14870. $53 = (($52) + -1)|0;
  14871. $54 = (($50) + ($53)|0);
  14872. $55 = HEAP8[$54>>0]|0;
  14873. $56 = $52 | 3;
  14874. $57 = (($50) + ($56)|0);
  14875. HEAP8[$57>>0] = $55;
  14876. $58 = HEAP32[(21956)>>2]|0;
  14877. $59 = (($58) + 1)|0;
  14878. HEAP32[(21956)>>2] = $59;
  14879. $60 = (($$04347) + 1)|0;
  14880. $exitcond = ($60|0)==($25|0);
  14881. if ($exitcond) {
  14882. break;
  14883. } else {
  14884. $$04347 = $60;
  14885. }
  14886. }
  14887. $148 = +HEAPF32[752];
  14888. $149 = $148 + 4.9999998736893758E-5;
  14889. HEAPF32[752] = $149;
  14890. STACKTOP = sp;return;
  14891. break;
  14892. }
  14893. case 4: {
  14894. $61 = HEAP32[5499]|0;
  14895. $62 = HEAP32[(22004)>>2]|0;
  14896. $63 = ($61|0)==($62|0);
  14897. if ($63) {
  14898. $148 = +HEAPF32[752];
  14899. $149 = $148 + 4.9999998736893758E-5;
  14900. HEAPF32[752] = $149;
  14901. STACKTOP = sp;return;
  14902. }
  14903. $64 = (($61) - ($62))|0;
  14904. $65 = ($64|0)>(0);
  14905. if ($65) {
  14906. $$04248 = 0;
  14907. } else {
  14908. $148 = +HEAPF32[752];
  14909. $149 = $148 + 4.9999998736893758E-5;
  14910. HEAPF32[752] = $149;
  14911. STACKTOP = sp;return;
  14912. }
  14913. while(1) {
  14914. $66 = HEAP32[(22016)>>2]|0;
  14915. $67 = HEAP32[(22004)>>2]|0;
  14916. $68 = $67 << 2;
  14917. $69 = (($68) + -4)|0;
  14918. $70 = (($66) + ($69)|0);
  14919. $71 = HEAP8[$70>>0]|0;
  14920. $72 = (($66) + ($68)|0);
  14921. HEAP8[$72>>0] = $71;
  14922. $73 = HEAP32[(22016)>>2]|0;
  14923. $74 = HEAP32[(22004)>>2]|0;
  14924. $75 = $74 << 2;
  14925. $76 = (($75) + -3)|0;
  14926. $77 = (($73) + ($76)|0);
  14927. $78 = HEAP8[$77>>0]|0;
  14928. $79 = $75 | 1;
  14929. $80 = (($73) + ($79)|0);
  14930. HEAP8[$80>>0] = $78;
  14931. $81 = HEAP32[(22016)>>2]|0;
  14932. $82 = HEAP32[(22004)>>2]|0;
  14933. $83 = $82 << 2;
  14934. $84 = (($83) + -2)|0;
  14935. $85 = (($81) + ($84)|0);
  14936. $86 = HEAP8[$85>>0]|0;
  14937. $87 = $83 | 2;
  14938. $88 = (($81) + ($87)|0);
  14939. HEAP8[$88>>0] = $86;
  14940. $89 = HEAP32[(22016)>>2]|0;
  14941. $90 = HEAP32[(22004)>>2]|0;
  14942. $91 = $90 << 2;
  14943. $92 = (($91) + -1)|0;
  14944. $93 = (($89) + ($92)|0);
  14945. $94 = HEAP8[$93>>0]|0;
  14946. $95 = $91 | 3;
  14947. $96 = (($89) + ($95)|0);
  14948. HEAP8[$96>>0] = $94;
  14949. $97 = HEAP32[(22004)>>2]|0;
  14950. $98 = (($97) + 1)|0;
  14951. HEAP32[(22004)>>2] = $98;
  14952. $99 = (($$04248) + 1)|0;
  14953. $exitcond60 = ($99|0)==($64|0);
  14954. if ($exitcond60) {
  14955. break;
  14956. } else {
  14957. $$04248 = $99;
  14958. }
  14959. }
  14960. $148 = +HEAPF32[752];
  14961. $149 = $148 + 4.9999998736893758E-5;
  14962. HEAPF32[752] = $149;
  14963. STACKTOP = sp;return;
  14964. break;
  14965. }
  14966. case 7: {
  14967. $100 = HEAP32[5511]|0;
  14968. $101 = HEAP32[(22052)>>2]|0;
  14969. $102 = ($100|0)==($101|0);
  14970. if (!($102)) {
  14971. $103 = (($100) - ($101))|0;
  14972. $104 = ($103|0)>(0);
  14973. if ($104) {
  14974. $$04052 = 0;
  14975. while(1) {
  14976. $105 = HEAP32[(22064)>>2]|0;
  14977. $106 = HEAP32[(22052)>>2]|0;
  14978. $107 = $106 << 2;
  14979. $108 = (($107) + -4)|0;
  14980. $109 = (($105) + ($108)|0);
  14981. $110 = HEAP8[$109>>0]|0;
  14982. $111 = (($105) + ($107)|0);
  14983. HEAP8[$111>>0] = $110;
  14984. $112 = HEAP32[(22064)>>2]|0;
  14985. $113 = HEAP32[(22052)>>2]|0;
  14986. $114 = $113 << 2;
  14987. $115 = (($114) + -3)|0;
  14988. $116 = (($112) + ($115)|0);
  14989. $117 = HEAP8[$116>>0]|0;
  14990. $118 = $114 | 1;
  14991. $119 = (($112) + ($118)|0);
  14992. HEAP8[$119>>0] = $117;
  14993. $120 = HEAP32[(22064)>>2]|0;
  14994. $121 = HEAP32[(22052)>>2]|0;
  14995. $122 = $121 << 2;
  14996. $123 = (($122) + -2)|0;
  14997. $124 = (($120) + ($123)|0);
  14998. $125 = HEAP8[$124>>0]|0;
  14999. $126 = $122 | 2;
  15000. $127 = (($120) + ($126)|0);
  15001. HEAP8[$127>>0] = $125;
  15002. $128 = HEAP32[(22064)>>2]|0;
  15003. $129 = HEAP32[(22052)>>2]|0;
  15004. $130 = $129 << 2;
  15005. $131 = (($130) + -1)|0;
  15006. $132 = (($128) + ($131)|0);
  15007. $133 = HEAP8[$132>>0]|0;
  15008. $134 = $130 | 3;
  15009. $135 = (($128) + ($134)|0);
  15010. HEAP8[$135>>0] = $133;
  15011. $136 = HEAP32[(22052)>>2]|0;
  15012. $137 = (($136) + 1)|0;
  15013. HEAP32[(22052)>>2] = $137;
  15014. $138 = (($$04052) + 1)|0;
  15015. $exitcond63 = ($138|0)==($103|0);
  15016. if ($exitcond63) {
  15017. break;
  15018. } else {
  15019. $$04052 = $138;
  15020. }
  15021. }
  15022. }
  15023. }
  15024. $139 = HEAP32[5511]|0;
  15025. $140 = HEAP32[(22048)>>2]|0;
  15026. $141 = ($139|0)>($140|0);
  15027. if (!($141)) {
  15028. $148 = +HEAPF32[752];
  15029. $149 = $148 + 4.9999998736893758E-5;
  15030. HEAPF32[752] = $149;
  15031. STACKTOP = sp;return;
  15032. }
  15033. $142 = HEAP32[(22060)>>2]|0;
  15034. $$promoted = HEAP32[(22048)>>2]|0;
  15035. $143 = $$promoted << 1;
  15036. $scevgep = (($142) + ($143<<2)|0);
  15037. $144 = (($139) - ($140))|0;
  15038. $145 = $144 << 3;
  15039. _memset(($scevgep|0),0,($145|0))|0;
  15040. $146 = (($139) + ($$promoted))|0;
  15041. $147 = (($146) - ($140))|0;
  15042. HEAP32[(22048)>>2] = $147;
  15043. $148 = +HEAPF32[752];
  15044. $149 = $148 + 4.9999998736893758E-5;
  15045. HEAPF32[752] = $149;
  15046. STACKTOP = sp;return;
  15047. break;
  15048. }
  15049. default: {
  15050. $148 = +HEAPF32[752];
  15051. $149 = $148 + 4.9999998736893758E-5;
  15052. HEAPF32[752] = $149;
  15053. STACKTOP = sp;return;
  15054. }
  15055. }
  15056. }
  15057. function _rlVertex3f($0,$1,$2) {
  15058. $0 = +$0;
  15059. $1 = +$1;
  15060. $2 = +$2;
  15061. 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;
  15062. 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;
  15063. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  15064. sp = STACKTOP;
  15065. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15066. $vararg_buffer3 = sp + 16|0;
  15067. $vararg_buffer1 = sp + 8|0;
  15068. $vararg_buffer = sp;
  15069. $3 = HEAP32[5665]|0;
  15070. $4 = ($3|0)==(0);
  15071. if (!($4)) {
  15072. $5 = HEAP32[5225]|0;
  15073. $6 = HEAP32[5666]|0;
  15074. $7 = (($5) + (($6*12)|0)|0);
  15075. HEAPF32[$7>>2] = $0;
  15076. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  15077. HEAPF32[$8>>2] = $1;
  15078. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  15079. HEAPF32[$9>>2] = $2;
  15080. $10 = (($6) + 1)|0;
  15081. HEAP32[5666] = $10;
  15082. STACKTOP = sp;return;
  15083. }
  15084. $11 = HEAP32[5228]|0;
  15085. switch ($11|0) {
  15086. case 1: {
  15087. $12 = HEAP32[5487]|0;
  15088. $13 = ($12|0)<(2048);
  15089. if ($13) {
  15090. $14 = HEAP32[(21960)>>2]|0;
  15091. $15 = ($12*3)|0;
  15092. $16 = (($14) + ($15<<2)|0);
  15093. HEAPF32[$16>>2] = $0;
  15094. $17 = (($15) + 1)|0;
  15095. $18 = (($14) + ($17<<2)|0);
  15096. HEAPF32[$18>>2] = $1;
  15097. $19 = (($15) + 2)|0;
  15098. $20 = (($14) + ($19<<2)|0);
  15099. HEAPF32[$20>>2] = $2;
  15100. $21 = (($12) + 1)|0;
  15101. HEAP32[5487] = $21;
  15102. STACKTOP = sp;return;
  15103. } else {
  15104. _TraceLog(1,9876,$vararg_buffer);
  15105. STACKTOP = sp;return;
  15106. }
  15107. break;
  15108. }
  15109. case 4: {
  15110. $22 = HEAP32[5499]|0;
  15111. $23 = ($22|0)<(6144);
  15112. if ($23) {
  15113. $24 = HEAP32[(22008)>>2]|0;
  15114. $25 = ($22*3)|0;
  15115. $26 = (($24) + ($25<<2)|0);
  15116. HEAPF32[$26>>2] = $0;
  15117. $27 = (($25) + 1)|0;
  15118. $28 = (($24) + ($27<<2)|0);
  15119. HEAPF32[$28>>2] = $1;
  15120. $29 = (($25) + 2)|0;
  15121. $30 = (($24) + ($29<<2)|0);
  15122. HEAPF32[$30>>2] = $2;
  15123. $31 = (($22) + 1)|0;
  15124. HEAP32[5499] = $31;
  15125. STACKTOP = sp;return;
  15126. } else {
  15127. _TraceLog(1,9901,$vararg_buffer1);
  15128. STACKTOP = sp;return;
  15129. }
  15130. break;
  15131. }
  15132. case 7: {
  15133. $32 = HEAP32[5511]|0;
  15134. $33 = ($32|0)<(4096);
  15135. if ($33) {
  15136. $34 = HEAP32[(22056)>>2]|0;
  15137. $35 = ($32*3)|0;
  15138. $36 = (($34) + ($35<<2)|0);
  15139. HEAPF32[$36>>2] = $0;
  15140. $37 = (($35) + 1)|0;
  15141. $38 = (($34) + ($37<<2)|0);
  15142. HEAPF32[$38>>2] = $1;
  15143. $39 = (($35) + 2)|0;
  15144. $40 = (($34) + ($39<<2)|0);
  15145. HEAPF32[$40>>2] = $2;
  15146. $41 = (($32) + 1)|0;
  15147. HEAP32[5511] = $41;
  15148. $42 = HEAP32[5226]|0;
  15149. $43 = HEAP32[5227]|0;
  15150. $44 = (($43) + -1)|0;
  15151. $45 = (($42) + (($44*144)|0)|0);
  15152. $46 = HEAP32[$45>>2]|0;
  15153. $47 = (($46) + 1)|0;
  15154. HEAP32[$45>>2] = $47;
  15155. STACKTOP = sp;return;
  15156. } else {
  15157. _TraceLog(1,9930,$vararg_buffer3);
  15158. STACKTOP = sp;return;
  15159. }
  15160. break;
  15161. }
  15162. default: {
  15163. STACKTOP = sp;return;
  15164. }
  15165. }
  15166. }
  15167. function _rlVertex2f($0,$1) {
  15168. $0 = +$0;
  15169. $1 = +$1;
  15170. var $2 = 0.0, label = 0, sp = 0;
  15171. sp = STACKTOP;
  15172. $2 = +HEAPF32[752];
  15173. _rlVertex3f($0,$1,$2);
  15174. return;
  15175. }
  15176. function _rlVertex2i($0,$1) {
  15177. $0 = $0|0;
  15178. $1 = $1|0;
  15179. var $2 = 0.0, $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  15180. sp = STACKTOP;
  15181. $2 = (+($0|0));
  15182. $3 = (+($1|0));
  15183. $4 = +HEAPF32[752];
  15184. _rlVertex3f($2,$3,$4);
  15185. return;
  15186. }
  15187. function _rlTexCoord2f($0,$1) {
  15188. $0 = +$0;
  15189. $1 = +$1;
  15190. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15191. sp = STACKTOP;
  15192. $2 = HEAP32[5228]|0;
  15193. $3 = ($2|0)==(7);
  15194. if (!($3)) {
  15195. return;
  15196. }
  15197. $4 = HEAP32[(22060)>>2]|0;
  15198. $5 = HEAP32[(22048)>>2]|0;
  15199. $6 = $5 << 1;
  15200. $7 = (($4) + ($6<<2)|0);
  15201. HEAPF32[$7>>2] = $0;
  15202. $8 = $6 | 1;
  15203. $9 = (($4) + ($8<<2)|0);
  15204. HEAPF32[$9>>2] = $1;
  15205. $10 = (($5) + 1)|0;
  15206. HEAP32[(22048)>>2] = $10;
  15207. return;
  15208. }
  15209. function _rlNormal3f($0,$1,$2) {
  15210. $0 = +$0;
  15211. $1 = +$1;
  15212. $2 = +$2;
  15213. var label = 0, sp = 0;
  15214. sp = STACKTOP;
  15215. return;
  15216. }
  15217. function _rlColor4ub($0,$1,$2,$3) {
  15218. $0 = $0|0;
  15219. $1 = $1|0;
  15220. $2 = $2|0;
  15221. $3 = $3|0;
  15222. 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;
  15223. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15224. sp = STACKTOP;
  15225. $4 = HEAP32[5228]|0;
  15226. switch ($4|0) {
  15227. case 1: {
  15228. $$sink37 = (21956);$$sink38 = (21968);
  15229. break;
  15230. }
  15231. case 4: {
  15232. $$sink37 = (22004);$$sink38 = (22016);
  15233. break;
  15234. }
  15235. case 7: {
  15236. $$sink37 = (22052);$$sink38 = (22064);
  15237. break;
  15238. }
  15239. default: {
  15240. return;
  15241. }
  15242. }
  15243. $5 = HEAP32[$$sink38>>2]|0;
  15244. $6 = HEAP32[$$sink37>>2]|0;
  15245. $7 = $6 << 2;
  15246. $8 = (($5) + ($7)|0);
  15247. HEAP8[$8>>0] = $0;
  15248. $9 = HEAP32[$$sink38>>2]|0;
  15249. $10 = HEAP32[$$sink37>>2]|0;
  15250. $11 = $10 << 2;
  15251. $12 = $11 | 1;
  15252. $13 = (($9) + ($12)|0);
  15253. HEAP8[$13>>0] = $1;
  15254. $14 = HEAP32[$$sink38>>2]|0;
  15255. $15 = HEAP32[$$sink37>>2]|0;
  15256. $16 = $15 << 2;
  15257. $17 = $16 | 2;
  15258. $18 = (($14) + ($17)|0);
  15259. HEAP8[$18>>0] = $2;
  15260. $19 = HEAP32[$$sink38>>2]|0;
  15261. $20 = HEAP32[$$sink37>>2]|0;
  15262. $21 = $20 << 2;
  15263. $22 = $21 | 3;
  15264. $23 = (($19) + ($22)|0);
  15265. HEAP8[$23>>0] = $3;
  15266. $24 = HEAP32[$$sink37>>2]|0;
  15267. $25 = (($24) + 1)|0;
  15268. HEAP32[$$sink37>>2] = $25;
  15269. return;
  15270. }
  15271. function _rlEnableTexture($0) {
  15272. $0 = $0|0;
  15273. 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;
  15274. sp = STACKTOP;
  15275. $1 = HEAP32[5226]|0;
  15276. $2 = HEAP32[5227]|0;
  15277. $3 = (($2) + -1)|0;
  15278. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  15279. $5 = HEAP32[$4>>2]|0;
  15280. $6 = ($5|0)==($0|0);
  15281. if ($6) {
  15282. return;
  15283. }
  15284. $7 = (($1) + (($3*144)|0)|0);
  15285. $8 = HEAP32[$7>>2]|0;
  15286. $9 = ($8|0)>(0);
  15287. if ($9) {
  15288. $10 = (($2) + 1)|0;
  15289. HEAP32[5227] = $10;
  15290. }
  15291. $11 = HEAP32[5227]|0;
  15292. $12 = (($11) + -1)|0;
  15293. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  15294. HEAP32[$13>>2] = $0;
  15295. $14 = (($1) + (($12*144)|0)|0);
  15296. HEAP32[$14>>2] = 0;
  15297. return;
  15298. }
  15299. function _rlDisableTexture() {
  15300. var $0 = 0, $1 = 0, label = 0, sp = 0;
  15301. sp = STACKTOP;
  15302. $0 = HEAP32[5511]|0;
  15303. $1 = ($0|0)>(4095);
  15304. if (!($1)) {
  15305. return;
  15306. }
  15307. _rlglDraw();
  15308. return;
  15309. }
  15310. function _rlTextureParameters($0,$1,$2) {
  15311. $0 = $0|0;
  15312. $1 = $1|0;
  15313. $2 = $2|0;
  15314. var $10 = 0.0, $3 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0, $9 = 0, $or$cond = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_ptr3 = 0, label = 0, sp = 0;
  15315. sp = STACKTOP;
  15316. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15317. $vararg_buffer4 = sp + 24|0;
  15318. $vararg_buffer1 = sp + 8|0;
  15319. $vararg_buffer = sp;
  15320. _glBindTexture(3553,($0|0));
  15321. L1: do {
  15322. switch ($1|0) {
  15323. case 10243: case 10242: {
  15324. $3 = ($2|0)!=(34626);
  15325. $4 = HEAP32[5195]|0;
  15326. $5 = ($4|0)!=(0);
  15327. $or$cond = $3 | $5;
  15328. if ($or$cond) {
  15329. _glTexParameteri(3553,($1|0),($2|0));
  15330. break L1;
  15331. } else {
  15332. _TraceLog(2,9955,$vararg_buffer);
  15333. break L1;
  15334. }
  15335. break;
  15336. }
  15337. case 10241: case 10240: {
  15338. _glTexParameteri(3553,($1|0),($2|0));
  15339. break;
  15340. }
  15341. case 12288: {
  15342. $6 = (+($2|0));
  15343. $7 = +HEAPF32[5194];
  15344. $8 = !($6 <= $7);
  15345. if (!($8)) {
  15346. _glTexParameterf(3553,34046,(+$6));
  15347. break L1;
  15348. }
  15349. $9 = $7 > 0.0;
  15350. if ($9) {
  15351. $10 = $7;
  15352. HEAP32[$vararg_buffer1>>2] = $0;
  15353. $vararg_ptr3 = ((($vararg_buffer1)) + 8|0);
  15354. HEAPF64[$vararg_ptr3>>3] = $10;
  15355. _TraceLog(2,9992,$vararg_buffer1);
  15356. _glTexParameterf(3553,34046,(+$6));
  15357. break L1;
  15358. } else {
  15359. _TraceLog(2,10054,$vararg_buffer4);
  15360. break L1;
  15361. }
  15362. break;
  15363. }
  15364. default: {
  15365. }
  15366. }
  15367. } while(0);
  15368. _glBindTexture(3553,0);
  15369. STACKTOP = sp;return;
  15370. }
  15371. function _DrawLine($0,$1,$2,$3,$4) {
  15372. $0 = $0|0;
  15373. $1 = $1|0;
  15374. $2 = $2|0;
  15375. $3 = $3|0;
  15376. $4 = $4|0;
  15377. var $10 = 0, $11 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15378. sp = STACKTOP;
  15379. _rlBegin(1);
  15380. $5 = HEAP8[$4>>0]|0;
  15381. $6 = ((($4)) + 1|0);
  15382. $7 = HEAP8[$6>>0]|0;
  15383. $8 = ((($4)) + 2|0);
  15384. $9 = HEAP8[$8>>0]|0;
  15385. $10 = ((($4)) + 3|0);
  15386. $11 = HEAP8[$10>>0]|0;
  15387. _rlColor4ub($5,$7,$9,$11);
  15388. _rlVertex2i($0,$1);
  15389. _rlVertex2i($2,$3);
  15390. _rlEnd();
  15391. return;
  15392. }
  15393. function _stbi__err($0) {
  15394. $0 = $0|0;
  15395. var label = 0, sp = 0;
  15396. sp = STACKTOP;
  15397. HEAP32[5667] = $0;
  15398. return;
  15399. }
  15400. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  15401. $0 = $0|0;
  15402. $1 = $1|0;
  15403. $2 = $2|0;
  15404. $3 = $3|0;
  15405. $4 = $4|0;
  15406. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15407. sp = STACKTOP;
  15408. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  15409. $5 = sp;
  15410. _stbi__start_file($5,$0);
  15411. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  15412. $7 = ($6|0)==(0|0);
  15413. if ($7) {
  15414. STACKTOP = sp;return ($6|0);
  15415. }
  15416. $8 = ((($5)) + 172|0);
  15417. $9 = HEAP32[$8>>2]|0;
  15418. $10 = ((($5)) + 168|0);
  15419. $11 = HEAP32[$10>>2]|0;
  15420. $12 = (($11) - ($9))|0;
  15421. (_fseek($0,$12,1)|0);
  15422. STACKTOP = sp;return ($6|0);
  15423. }
  15424. function _stbi__start_file($0,$1) {
  15425. $0 = $0|0;
  15426. $1 = $1|0;
  15427. var label = 0, sp = 0;
  15428. sp = STACKTOP;
  15429. _stbi__start_callbacks($0,3124,$1);
  15430. return;
  15431. }
  15432. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  15433. $0 = $0|0;
  15434. $1 = $1|0;
  15435. $2 = $2|0;
  15436. $3 = $3|0;
  15437. $4 = $4|0;
  15438. 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;
  15439. 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;
  15440. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  15441. sp = STACKTOP;
  15442. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15443. $5 = sp;
  15444. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  15445. $7 = ($6|0)==(0|0);
  15446. if ($7) {
  15447. $$0 = 0;
  15448. STACKTOP = sp;return ($$0|0);
  15449. }
  15450. $8 = HEAP32[$5>>2]|0;
  15451. switch ($8|0) {
  15452. case 8: {
  15453. $$070 = $6;
  15454. break;
  15455. }
  15456. case 16: {
  15457. label = 4;
  15458. break;
  15459. }
  15460. default: {
  15461. ___assert_fail((10090|0),(10116|0),1041,(10139|0));
  15462. // unreachable;
  15463. }
  15464. }
  15465. if ((label|0) == 4) {
  15466. $9 = HEAP32[$1>>2]|0;
  15467. $10 = HEAP32[$2>>2]|0;
  15468. $11 = ($4|0)==(0);
  15469. if ($11) {
  15470. $12 = HEAP32[$3>>2]|0;
  15471. $13 = $12;
  15472. } else {
  15473. $13 = $4;
  15474. }
  15475. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  15476. HEAP32[$5>>2] = 8;
  15477. $$070 = $14;
  15478. }
  15479. $15 = HEAP32[5668]|0;
  15480. $16 = ($15|0)==(0);
  15481. if ($16) {
  15482. $$0 = $$070;
  15483. STACKTOP = sp;return ($$0|0);
  15484. }
  15485. $17 = HEAP32[$1>>2]|0;
  15486. $18 = HEAP32[$2>>2]|0;
  15487. $19 = ($4|0)==(0);
  15488. if ($19) {
  15489. $20 = HEAP32[$3>>2]|0;
  15490. $25 = $20;
  15491. } else {
  15492. $25 = $4;
  15493. }
  15494. $21 = $18 >> 1;
  15495. $22 = ($21|0)>(0);
  15496. if (!($22)) {
  15497. $$0 = $$070;
  15498. STACKTOP = sp;return ($$0|0);
  15499. }
  15500. $23 = ($17|0)>(0);
  15501. $24 = ($25|0)>(0);
  15502. $26 = (($18) + -1)|0;
  15503. $$07378 = 0;
  15504. while(1) {
  15505. if ($23) {
  15506. $27 = Math_imul($$07378, $17)|0;
  15507. $28 = (($26) - ($$07378))|0;
  15508. $29 = Math_imul($28, $17)|0;
  15509. $$07276 = 0;
  15510. while(1) {
  15511. if ($24) {
  15512. $30 = (($$07276) + ($27))|0;
  15513. $31 = Math_imul($30, $25)|0;
  15514. $32 = (($$07276) + ($29))|0;
  15515. $33 = Math_imul($32, $25)|0;
  15516. $$07175 = 0;
  15517. while(1) {
  15518. $34 = (($$07175) + ($31))|0;
  15519. $35 = (($$070) + ($34)|0);
  15520. $36 = HEAP8[$35>>0]|0;
  15521. $37 = (($$07175) + ($33))|0;
  15522. $38 = (($$070) + ($37)|0);
  15523. $39 = HEAP8[$38>>0]|0;
  15524. HEAP8[$35>>0] = $39;
  15525. HEAP8[$38>>0] = $36;
  15526. $40 = (($$07175) + 1)|0;
  15527. $exitcond = ($40|0)==($25|0);
  15528. if ($exitcond) {
  15529. break;
  15530. } else {
  15531. $$07175 = $40;
  15532. }
  15533. }
  15534. }
  15535. $41 = (($$07276) + 1)|0;
  15536. $exitcond79 = ($41|0)==($17|0);
  15537. if ($exitcond79) {
  15538. break;
  15539. } else {
  15540. $$07276 = $41;
  15541. }
  15542. }
  15543. }
  15544. $42 = (($$07378) + 1)|0;
  15545. $exitcond80 = ($42|0)==($21|0);
  15546. if ($exitcond80) {
  15547. $$0 = $$070;
  15548. break;
  15549. } else {
  15550. $$07378 = $42;
  15551. }
  15552. }
  15553. STACKTOP = sp;return ($$0|0);
  15554. }
  15555. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  15556. $0 = $0|0;
  15557. $1 = $1|0;
  15558. $2 = $2|0;
  15559. $3 = $3|0;
  15560. $4 = $4|0;
  15561. $5 = $5|0;
  15562. var $$0 = 0, $10 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15563. sp = STACKTOP;
  15564. HEAP32[$5>>2] = 8;
  15565. $6 = ((($5)) + 8|0);
  15566. HEAP32[$6>>2] = 0;
  15567. $7 = ((($5)) + 4|0);
  15568. HEAP32[$7>>2] = 0;
  15569. $8 = (_stbi__png_test($0)|0);
  15570. $9 = ($8|0)==(0);
  15571. if ($9) {
  15572. _stbi__err(10180);
  15573. $$0 = 0;
  15574. return ($$0|0);
  15575. } else {
  15576. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  15577. $$0 = $10;
  15578. return ($$0|0);
  15579. }
  15580. return (0)|0;
  15581. }
  15582. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  15583. $0 = $0|0;
  15584. $1 = $1|0;
  15585. $2 = $2|0;
  15586. $3 = $3|0;
  15587. 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;
  15588. sp = STACKTOP;
  15589. $4 = Math_imul($2, $1)|0;
  15590. $5 = Math_imul($4, $3)|0;
  15591. $6 = (_stbi__malloc($5)|0);
  15592. $7 = ($6|0)==(0|0);
  15593. if ($7) {
  15594. _stbi__err(10171);
  15595. $$0 = 0;
  15596. return ($$0|0);
  15597. }
  15598. $8 = ($5|0)>(0);
  15599. if ($8) {
  15600. $$01819 = 0;
  15601. while(1) {
  15602. $9 = (($0) + ($$01819<<1)|0);
  15603. $10 = HEAP16[$9>>1]|0;
  15604. $11 = ($10&65535) >>> 8;
  15605. $12 = $11&255;
  15606. $13 = (($6) + ($$01819)|0);
  15607. HEAP8[$13>>0] = $12;
  15608. $14 = (($$01819) + 1)|0;
  15609. $exitcond = ($14|0)==($5|0);
  15610. if ($exitcond) {
  15611. break;
  15612. } else {
  15613. $$01819 = $14;
  15614. }
  15615. }
  15616. }
  15617. _free($0);
  15618. $$0 = $6;
  15619. return ($$0|0);
  15620. }
  15621. function _stbi__malloc($0) {
  15622. $0 = $0|0;
  15623. var $1 = 0, label = 0, sp = 0;
  15624. sp = STACKTOP;
  15625. $1 = (_malloc($0)|0);
  15626. return ($1|0);
  15627. }
  15628. function _stbi__png_test($0) {
  15629. $0 = $0|0;
  15630. var $1 = 0, label = 0, sp = 0;
  15631. sp = STACKTOP;
  15632. $1 = (_stbi__check_png_header($0)|0);
  15633. _stbi__rewind($0);
  15634. return ($1|0);
  15635. }
  15636. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  15637. $0 = $0|0;
  15638. $1 = $1|0;
  15639. $2 = $2|0;
  15640. $3 = $3|0;
  15641. $4 = $4|0;
  15642. $5 = $5|0;
  15643. var $6 = 0, $7 = 0, label = 0, sp = 0;
  15644. sp = STACKTOP;
  15645. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15646. $6 = sp;
  15647. HEAP32[$6>>2] = $0;
  15648. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  15649. STACKTOP = sp;return ($7|0);
  15650. }
  15651. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  15652. $0 = $0|0;
  15653. $1 = $1|0;
  15654. $2 = $2|0;
  15655. $3 = $3|0;
  15656. $4 = $4|0;
  15657. $5 = $5|0;
  15658. 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;
  15659. 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;
  15660. var $9 = 0, label = 0, sp = 0;
  15661. sp = STACKTOP;
  15662. $6 = ($4>>>0)>(4);
  15663. if ($6) {
  15664. _stbi__err(10199);
  15665. $$045 = 0;
  15666. return ($$045|0);
  15667. }
  15668. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  15669. $8 = ($7|0)==(0);
  15670. if ($8) {
  15671. $$2 = 0;
  15672. } else {
  15673. $9 = ((($0)) + 16|0);
  15674. $10 = HEAP32[$9>>2]|0;
  15675. $11 = ($10|0)>(8);
  15676. $$ = $11 ? $10 : 8;
  15677. HEAP32[$5>>2] = $$;
  15678. $12 = ((($0)) + 12|0);
  15679. $13 = HEAP32[$12>>2]|0;
  15680. HEAP32[$12>>2] = 0;
  15681. $14 = ($4|0)==(0);
  15682. if ($14) {
  15683. $$1 = $13;
  15684. } else {
  15685. $15 = HEAP32[$0>>2]|0;
  15686. $16 = ((($15)) + 12|0);
  15687. $17 = HEAP32[$16>>2]|0;
  15688. $18 = ($17|0)==($4|0);
  15689. if ($18) {
  15690. $$1 = $13;
  15691. } else {
  15692. $19 = HEAP32[$5>>2]|0;
  15693. $20 = ($19|0)==(8);
  15694. $21 = ((($15)) + 4|0);
  15695. $22 = HEAP32[$21>>2]|0;
  15696. $23 = HEAP32[$15>>2]|0;
  15697. if ($20) {
  15698. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  15699. $$0 = $24;
  15700. } else {
  15701. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  15702. $$0 = $25;
  15703. }
  15704. $26 = HEAP32[$0>>2]|0;
  15705. $27 = ((($26)) + 12|0);
  15706. HEAP32[$27>>2] = $4;
  15707. $28 = ($$0|0)==(0|0);
  15708. if ($28) {
  15709. $$045 = 0;
  15710. return ($$045|0);
  15711. } else {
  15712. $$1 = $$0;
  15713. }
  15714. }
  15715. }
  15716. $29 = HEAP32[$0>>2]|0;
  15717. $30 = HEAP32[$29>>2]|0;
  15718. HEAP32[$1>>2] = $30;
  15719. $31 = ((($29)) + 4|0);
  15720. $32 = HEAP32[$31>>2]|0;
  15721. HEAP32[$2>>2] = $32;
  15722. $33 = ($3|0)==(0|0);
  15723. if ($33) {
  15724. $$2 = $$1;
  15725. } else {
  15726. $34 = ((($29)) + 8|0);
  15727. $35 = HEAP32[$34>>2]|0;
  15728. HEAP32[$3>>2] = $35;
  15729. $$2 = $$1;
  15730. }
  15731. }
  15732. $36 = ((($0)) + 12|0);
  15733. $37 = HEAP32[$36>>2]|0;
  15734. _free($37);
  15735. HEAP32[$36>>2] = 0;
  15736. $38 = ((($0)) + 8|0);
  15737. $39 = HEAP32[$38>>2]|0;
  15738. _free($39);
  15739. HEAP32[$38>>2] = 0;
  15740. $40 = ((($0)) + 4|0);
  15741. $41 = HEAP32[$40>>2]|0;
  15742. _free($41);
  15743. HEAP32[$40>>2] = 0;
  15744. $$045 = $$2;
  15745. return ($$045|0);
  15746. }
  15747. function _stbi__parse_png_file($0,$1,$2) {
  15748. $0 = $0|0;
  15749. $1 = $1|0;
  15750. $2 = $2|0;
  15751. 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;
  15752. 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;
  15753. 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;
  15754. 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;
  15755. 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;
  15756. 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;
  15757. 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;
  15758. 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;
  15759. 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;
  15760. 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;
  15761. 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;
  15762. 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;
  15763. 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;
  15764. sp = STACKTOP;
  15765. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  15766. $3 = sp + 32|0;
  15767. $4 = sp + 22|0;
  15768. $5 = sp + 16|0;
  15769. $6 = sp + 8|0;
  15770. $7 = sp;
  15771. $8 = HEAP32[$0>>2]|0;
  15772. $9 = ((($0)) + 8|0);
  15773. HEAP32[$9>>2] = 0;
  15774. $10 = ((($0)) + 4|0);
  15775. HEAP32[$10>>2] = 0;
  15776. $11 = ((($0)) + 12|0);
  15777. HEAP32[$11>>2] = 0;
  15778. $12 = (_stbi__check_png_header($8)|0);
  15779. $13 = ($12|0)==(0);
  15780. if ($13) {
  15781. $$7 = 0;
  15782. STACKTOP = sp;return ($$7|0);
  15783. }
  15784. $14 = ($1|0)==(1);
  15785. if ($14) {
  15786. $$7 = 1;
  15787. STACKTOP = sp;return ($$7|0);
  15788. }
  15789. $15 = ((($6)) + 4|0);
  15790. $16 = ((($8)) + 4|0);
  15791. $17 = ((($0)) + 16|0);
  15792. $18 = ((($8)) + 8|0);
  15793. $19 = ($1|0)==(2);
  15794. $20 = ((($8)) + 8|0);
  15795. $21 = ((($8)) + 8|0);
  15796. $22 = ((($0)) + 16|0);
  15797. $23 = ($1|0)==(2);
  15798. $24 = ($1|0)==(2);
  15799. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  15800. L7: while(1) {
  15801. _stbi__get_chunk_header($6,$8);
  15802. $25 = HEAP32[$15>>2]|0;
  15803. $switch$split2D = ($25|0)<(1229472850);
  15804. L9: do {
  15805. if ($switch$split2D) {
  15806. $switch$split52D = ($25|0)<(1229209940);
  15807. if ($switch$split52D) {
  15808. switch ($25|0) {
  15809. case 1130840649: {
  15810. break;
  15811. }
  15812. default: {
  15813. label = 103;
  15814. break L9;
  15815. }
  15816. }
  15817. $26 = HEAP32[$6>>2]|0;
  15818. _stbi__skip($8,$26);
  15819. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  15820. break;
  15821. }
  15822. $switch$split112D = ($25|0)<(1229278788);
  15823. if (!($switch$split112D)) {
  15824. switch ($25|0) {
  15825. case 1229278788: {
  15826. label = 85;
  15827. break L7;
  15828. break;
  15829. }
  15830. default: {
  15831. label = 103;
  15832. break L9;
  15833. }
  15834. }
  15835. }
  15836. switch ($25|0) {
  15837. case 1229209940: {
  15838. break;
  15839. }
  15840. default: {
  15841. label = 103;
  15842. break L9;
  15843. }
  15844. }
  15845. $130 = ($$0241|0)==(0);
  15846. if (!($130)) {
  15847. label = 70;
  15848. break L7;
  15849. }
  15850. $131 = ($$0206<<24>>24)==(0);
  15851. $132 = ($$0245|0)!=(0);
  15852. $or$cond = $132 | $131;
  15853. if (!($or$cond)) {
  15854. label = 72;
  15855. break L7;
  15856. }
  15857. if ($24) {
  15858. label = 74;
  15859. break L7;
  15860. }
  15861. $135 = HEAP32[$6>>2]|0;
  15862. $136 = (($135) + ($$0214))|0;
  15863. $137 = ($136|0)<($$0214|0);
  15864. if ($137) {
  15865. $$6$ph = 0;
  15866. break L7;
  15867. }
  15868. $138 = ($136>>>0)>($$0217>>>0);
  15869. if ($138) {
  15870. $139 = ($$0217|0)==(0);
  15871. $140 = ($135>>>0)>(4096);
  15872. $141 = $140 ? $135 : 4096;
  15873. $$$0217 = $139 ? $141 : $$0217;
  15874. $142 = HEAP32[$6>>2]|0;
  15875. $143 = (($142) + ($$0214))|0;
  15876. $$1218 = $$$0217;
  15877. while(1) {
  15878. $144 = ($143>>>0)>($$1218>>>0);
  15879. $145 = $$1218 << 1;
  15880. if ($144) {
  15881. $$1218 = $145;
  15882. } else {
  15883. break;
  15884. }
  15885. }
  15886. $146 = HEAP32[$10>>2]|0;
  15887. $147 = (_realloc($146,$$1218)|0);
  15888. $148 = ($147|0)==(0|0);
  15889. if ($148) {
  15890. label = 81;
  15891. break L7;
  15892. }
  15893. HEAP32[$10>>2] = $147;
  15894. $$2219 = $$1218;
  15895. } else {
  15896. $$2219 = $$0217;
  15897. }
  15898. $149 = HEAP32[$10>>2]|0;
  15899. $150 = (($149) + ($$0214)|0);
  15900. $151 = HEAP32[$6>>2]|0;
  15901. $152 = (_stbi__getn($8,$150,$151)|0);
  15902. $153 = ($152|0)==(0);
  15903. if ($153) {
  15904. label = 83;
  15905. break L7;
  15906. }
  15907. $154 = HEAP32[$6>>2]|0;
  15908. $155 = (($154) + ($$0214))|0;
  15909. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  15910. } else {
  15911. $switch$split82D = ($25|0)<(1347179589);
  15912. if ($switch$split82D) {
  15913. switch ($25|0) {
  15914. case 1229472850: {
  15915. break;
  15916. }
  15917. default: {
  15918. label = 103;
  15919. break L9;
  15920. }
  15921. }
  15922. $27 = ($$0241|0)==(0);
  15923. if ($27) {
  15924. label = 7;
  15925. break L7;
  15926. }
  15927. $28 = HEAP32[$6>>2]|0;
  15928. $29 = ($28|0)==(13);
  15929. if (!($29)) {
  15930. label = 9;
  15931. break L7;
  15932. }
  15933. $30 = (_stbi__get32be($8)|0);
  15934. HEAP32[$8>>2] = $30;
  15935. $31 = ($30>>>0)>(16777216);
  15936. if ($31) {
  15937. label = 11;
  15938. break L7;
  15939. }
  15940. $32 = (_stbi__get32be($8)|0);
  15941. HEAP32[$16>>2] = $32;
  15942. $33 = ($32>>>0)>(16777216);
  15943. if ($33) {
  15944. label = 13;
  15945. break L7;
  15946. }
  15947. $34 = (_stbi__get8($8)|0);
  15948. $35 = $34&255;
  15949. HEAP32[$17>>2] = $35;
  15950. switch ($34<<24>>24) {
  15951. case 16: case 8: case 4: case 2: case 1: {
  15952. break;
  15953. }
  15954. default: {
  15955. label = 15;
  15956. break L7;
  15957. }
  15958. }
  15959. $36 = (_stbi__get8($8)|0);
  15960. $37 = $36&255;
  15961. $38 = ($36&255)>(6);
  15962. if ($38) {
  15963. label = 17;
  15964. break L7;
  15965. }
  15966. $39 = ($36<<24>>24)==(3);
  15967. if ($39) {
  15968. $40 = HEAP32[$17>>2]|0;
  15969. $41 = ($40|0)==(16);
  15970. if ($41) {
  15971. label = 20;
  15972. break L7;
  15973. } else {
  15974. $$1207 = 3;
  15975. }
  15976. } else {
  15977. $42 = $37 & 1;
  15978. $43 = ($42|0)==(0);
  15979. if ($43) {
  15980. $$1207 = $$0206;
  15981. } else {
  15982. label = 22;
  15983. break L7;
  15984. }
  15985. }
  15986. $44 = (_stbi__get8($8)|0);
  15987. $45 = ($44<<24>>24)==(0);
  15988. if (!($45)) {
  15989. label = 24;
  15990. break L7;
  15991. }
  15992. $46 = (_stbi__get8($8)|0);
  15993. $47 = ($46<<24>>24)==(0);
  15994. if (!($47)) {
  15995. label = 26;
  15996. break L7;
  15997. }
  15998. $48 = (_stbi__get8($8)|0);
  15999. $49 = $48&255;
  16000. $50 = ($48&255)>(1);
  16001. if ($50) {
  16002. label = 28;
  16003. break L7;
  16004. }
  16005. $51 = HEAP32[$8>>2]|0;
  16006. $52 = ($51|0)==(0);
  16007. if ($52) {
  16008. label = 31;
  16009. break L7;
  16010. }
  16011. $53 = HEAP32[$16>>2]|0;
  16012. $54 = ($53|0)==(0);
  16013. if ($54) {
  16014. label = 31;
  16015. break L7;
  16016. }
  16017. $55 = ($$1207<<24>>24)==(0);
  16018. $56 = (1073741824 / ($51>>>0))&-1;
  16019. if (!($55)) {
  16020. HEAP32[$20>>2] = 1;
  16021. $63 = $56 >>> 2;
  16022. $64 = ($63>>>0)<($53>>>0);
  16023. if ($64) {
  16024. label = 37;
  16025. break L7;
  16026. } else {
  16027. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  16028. break;
  16029. }
  16030. }
  16031. $57 = $37 & 2;
  16032. $58 = $57 | 1;
  16033. $59 = $37 >>> 2;
  16034. $$lobit = $59 & 1;
  16035. $60 = (($58) + ($$lobit))|0;
  16036. HEAP32[$18>>2] = $60;
  16037. $61 = (($56>>>0) / ($60>>>0))&-1;
  16038. $62 = ($61>>>0)<($53>>>0);
  16039. if ($62) {
  16040. label = 34;
  16041. break L7;
  16042. }
  16043. if ($19) {
  16044. $$6$ph = 1;
  16045. break L7;
  16046. } else {
  16047. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16048. break;
  16049. }
  16050. }
  16051. $switch$split142D = ($25|0)<(1951551059);
  16052. if ($switch$split142D) {
  16053. switch ($25|0) {
  16054. case 1347179589: {
  16055. break;
  16056. }
  16057. default: {
  16058. label = 103;
  16059. break L9;
  16060. }
  16061. }
  16062. $65 = ($$0241|0)==(0);
  16063. if (!($65)) {
  16064. label = 39;
  16065. break L7;
  16066. }
  16067. $66 = HEAP32[$6>>2]|0;
  16068. $67 = ($66>>>0)>(768);
  16069. if ($67) {
  16070. label = 41;
  16071. break L7;
  16072. }
  16073. $68 = (($66>>>0) / 3)&-1;
  16074. $69 = ($68*3)|0;
  16075. $70 = ($69|0)==($66|0);
  16076. if (!($70)) {
  16077. label = 44;
  16078. break L7;
  16079. }
  16080. $71 = ($66>>>0)>(2);
  16081. if ($71) {
  16082. $$0226593 = 0;
  16083. } else {
  16084. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16085. break;
  16086. }
  16087. while(1) {
  16088. $72 = (_stbi__get8($8)|0);
  16089. $73 = $$0226593 << 2;
  16090. $74 = (($3) + ($73)|0);
  16091. HEAP8[$74>>0] = $72;
  16092. $75 = (_stbi__get8($8)|0);
  16093. $76 = $73 | 1;
  16094. $77 = (($3) + ($76)|0);
  16095. HEAP8[$77>>0] = $75;
  16096. $78 = (_stbi__get8($8)|0);
  16097. $79 = $73 | 2;
  16098. $80 = (($3) + ($79)|0);
  16099. HEAP8[$80>>0] = $78;
  16100. $81 = $73 | 3;
  16101. $82 = (($3) + ($81)|0);
  16102. HEAP8[$82>>0] = -1;
  16103. $83 = (($$0226593) + 1)|0;
  16104. $84 = ($83>>>0)<($68>>>0);
  16105. if ($84) {
  16106. $$0226593 = $83;
  16107. } else {
  16108. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16109. break L9;
  16110. }
  16111. }
  16112. }
  16113. switch ($25|0) {
  16114. case 1951551059: {
  16115. break;
  16116. }
  16117. default: {
  16118. label = 103;
  16119. break L9;
  16120. }
  16121. }
  16122. $85 = ($$0241|0)==(0);
  16123. if (!($85)) {
  16124. label = 47;
  16125. break L7;
  16126. }
  16127. $86 = HEAP32[$10>>2]|0;
  16128. $87 = ($86|0)==(0|0);
  16129. if (!($87)) {
  16130. label = 49;
  16131. break L7;
  16132. }
  16133. $88 = ($$0206<<24>>24)==(0);
  16134. if (!($88)) {
  16135. if ($23) {
  16136. label = 52;
  16137. break L7;
  16138. }
  16139. $90 = ($$0245|0)==(0);
  16140. if ($90) {
  16141. label = 54;
  16142. break L7;
  16143. }
  16144. $91 = HEAP32[$6>>2]|0;
  16145. $92 = ($91>>>0)>($$0245>>>0);
  16146. if ($92) {
  16147. label = 58;
  16148. break L7;
  16149. }
  16150. $93 = HEAP32[$6>>2]|0;
  16151. $94 = ($93|0)==(0);
  16152. if ($94) {
  16153. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  16154. break;
  16155. }
  16156. $95 = HEAP32[$6>>2]|0;
  16157. $$1227588 = 0;
  16158. while(1) {
  16159. $96 = (_stbi__get8($8)|0);
  16160. $97 = $$1227588 << 2;
  16161. $98 = $97 | 3;
  16162. $99 = (($3) + ($98)|0);
  16163. HEAP8[$99>>0] = $96;
  16164. $100 = (($$1227588) + 1)|0;
  16165. $101 = ($100>>>0)<($95>>>0);
  16166. if ($101) {
  16167. $$1227588 = $100;
  16168. } else {
  16169. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  16170. break L9;
  16171. }
  16172. }
  16173. }
  16174. $102 = HEAP32[$21>>2]|0;
  16175. $103 = $102 & 1;
  16176. $104 = ($103|0)==(0);
  16177. if ($104) {
  16178. label = 61;
  16179. break L7;
  16180. }
  16181. $105 = HEAP32[$6>>2]|0;
  16182. $106 = $102 << 1;
  16183. $107 = ($105|0)==($106|0);
  16184. if (!($107)) {
  16185. label = 63;
  16186. break L7;
  16187. }
  16188. $108 = HEAP32[$22>>2]|0;
  16189. $109 = ($108|0)==(16);
  16190. $110 = HEAP32[$21>>2]|0;
  16191. $111 = ($110|0)>(0);
  16192. if ($109) {
  16193. if ($111) {
  16194. $$0239591 = 0;
  16195. } else {
  16196. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16197. break;
  16198. }
  16199. while(1) {
  16200. $112 = (_stbi__get16be($8)|0);
  16201. $113 = $112&65535;
  16202. $114 = (($5) + ($$0239591<<1)|0);
  16203. HEAP16[$114>>1] = $113;
  16204. $115 = (($$0239591) + 1)|0;
  16205. $116 = HEAP32[$21>>2]|0;
  16206. $117 = ($115|0)<($116|0);
  16207. if ($117) {
  16208. $$0239591 = $115;
  16209. } else {
  16210. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16211. break;
  16212. }
  16213. }
  16214. } else {
  16215. if ($111) {
  16216. $$1240589 = 0;
  16217. } else {
  16218. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16219. break;
  16220. }
  16221. while(1) {
  16222. $118 = (_stbi__get16be($8)|0);
  16223. $119 = $118 & 255;
  16224. $120 = HEAP32[$22>>2]|0;
  16225. $121 = (10513 + ($120)|0);
  16226. $122 = HEAP8[$121>>0]|0;
  16227. $123 = $122&255;
  16228. $124 = Math_imul($123, $119)|0;
  16229. $125 = $124&255;
  16230. $126 = (($4) + ($$1240589)|0);
  16231. HEAP8[$126>>0] = $125;
  16232. $127 = (($$1240589) + 1)|0;
  16233. $128 = HEAP32[$21>>2]|0;
  16234. $129 = ($127|0)<($128|0);
  16235. if ($129) {
  16236. $$1240589 = $127;
  16237. } else {
  16238. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16239. break;
  16240. }
  16241. }
  16242. }
  16243. }
  16244. } while(0);
  16245. if ((label|0) == 103) {
  16246. label = 0;
  16247. $202 = ($$0241|0)==(0);
  16248. if (!($202)) {
  16249. label = 104;
  16250. break;
  16251. }
  16252. $203 = $25 & 536870912;
  16253. $204 = ($203|0)==(0);
  16254. if ($204) {
  16255. label = 106;
  16256. break;
  16257. }
  16258. $213 = HEAP32[$6>>2]|0;
  16259. _stbi__skip($8,$213);
  16260. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16261. }
  16262. (_stbi__get32be($8)|0);
  16263. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  16264. }
  16265. switch (label|0) {
  16266. case 7: {
  16267. _stbi__err(10287);
  16268. $$6$ph = 0;
  16269. break;
  16270. }
  16271. case 9: {
  16272. _stbi__err(10301);
  16273. $$6$ph = 0;
  16274. break;
  16275. }
  16276. case 11: {
  16277. _stbi__err(10314);
  16278. $$6$ph = 0;
  16279. break;
  16280. }
  16281. case 13: {
  16282. _stbi__err(10314);
  16283. $$6$ph = 0;
  16284. break;
  16285. }
  16286. case 15: {
  16287. _stbi__err(10324);
  16288. $$6$ph = 0;
  16289. break;
  16290. }
  16291. case 17: {
  16292. _stbi__err(10344);
  16293. $$6$ph = 0;
  16294. break;
  16295. }
  16296. case 20: {
  16297. _stbi__err(10344);
  16298. $$6$ph = 0;
  16299. break;
  16300. }
  16301. case 22: {
  16302. _stbi__err(10344);
  16303. $$6$ph = 0;
  16304. break;
  16305. }
  16306. case 24: {
  16307. _stbi__err(10354);
  16308. $$6$ph = 0;
  16309. break;
  16310. }
  16311. case 26: {
  16312. _stbi__err(10370);
  16313. $$6$ph = 0;
  16314. break;
  16315. }
  16316. case 28: {
  16317. _stbi__err(10388);
  16318. $$6$ph = 0;
  16319. break;
  16320. }
  16321. case 31: {
  16322. _stbi__err(10409);
  16323. $$6$ph = 0;
  16324. break;
  16325. }
  16326. case 34: {
  16327. _stbi__err(10314);
  16328. $$6$ph = 0;
  16329. break;
  16330. }
  16331. case 37: {
  16332. _stbi__err(10314);
  16333. $$6$ph = 0;
  16334. break;
  16335. }
  16336. case 39: {
  16337. _stbi__err(10423);
  16338. $$6$ph = 0;
  16339. break;
  16340. }
  16341. case 41: {
  16342. _stbi__err(10438);
  16343. $$6$ph = 0;
  16344. break;
  16345. }
  16346. case 44: {
  16347. _stbi__err(10438);
  16348. $$6$ph = 0;
  16349. break;
  16350. }
  16351. case 47: {
  16352. _stbi__err(10423);
  16353. $$6$ph = 0;
  16354. break;
  16355. }
  16356. case 49: {
  16357. _stbi__err(10451);
  16358. $$6$ph = 0;
  16359. break;
  16360. }
  16361. case 52: {
  16362. $89 = ((($8)) + 8|0);
  16363. HEAP32[$89>>2] = 4;
  16364. $$6$ph = 1;
  16365. break;
  16366. }
  16367. case 54: {
  16368. _stbi__err(10467);
  16369. $$6$ph = 0;
  16370. break;
  16371. }
  16372. case 58: {
  16373. _stbi__err(10484);
  16374. $$6$ph = 0;
  16375. break;
  16376. }
  16377. case 61: {
  16378. _stbi__err(10497);
  16379. $$6$ph = 0;
  16380. break;
  16381. }
  16382. case 63: {
  16383. _stbi__err(10484);
  16384. $$6$ph = 0;
  16385. break;
  16386. }
  16387. case 70: {
  16388. _stbi__err(10423);
  16389. $$6$ph = 0;
  16390. break;
  16391. }
  16392. case 72: {
  16393. _stbi__err(10522);
  16394. $$6$ph = 0;
  16395. break;
  16396. }
  16397. case 74: {
  16398. $133 = $$0206&255;
  16399. $134 = ((($8)) + 8|0);
  16400. HEAP32[$134>>2] = $133;
  16401. $$6$ph = 1;
  16402. break;
  16403. }
  16404. case 81: {
  16405. _stbi__err(10171);
  16406. $$6$ph = 0;
  16407. break;
  16408. }
  16409. case 83: {
  16410. _stbi__err(10530);
  16411. $$6$ph = 0;
  16412. break;
  16413. }
  16414. case 85: {
  16415. $156 = ($$0241|0)==(0);
  16416. do {
  16417. if ($156) {
  16418. $157 = ($1|0)==(0);
  16419. if ($157) {
  16420. $158 = HEAP32[$10>>2]|0;
  16421. $159 = ($158|0)==(0|0);
  16422. if ($159) {
  16423. _stbi__err(10540);
  16424. $$4 = 0;
  16425. break;
  16426. }
  16427. $160 = HEAP32[$8>>2]|0;
  16428. $161 = ((($0)) + 16|0);
  16429. $162 = HEAP32[$161>>2]|0;
  16430. $163 = Math_imul($162, $160)|0;
  16431. $164 = (($163) + 7)|0;
  16432. $165 = $164 >>> 3;
  16433. $166 = ((($8)) + 4|0);
  16434. $167 = HEAP32[$166>>2]|0;
  16435. $168 = ((($8)) + 8|0);
  16436. $169 = HEAP32[$168>>2]|0;
  16437. $170 = Math_imul($169, $167)|0;
  16438. $171 = Math_imul($170, $165)|0;
  16439. $172 = (($171) + ($167))|0;
  16440. HEAP32[$7>>2] = $172;
  16441. $173 = ($$0228|0)!=(0);
  16442. $174 = $173 ^ 1;
  16443. $175 = $174&1;
  16444. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  16445. HEAP32[$9>>2] = $176;
  16446. $177 = ($176|0)==(0|0);
  16447. if ($177) {
  16448. $$4 = 0;
  16449. } else {
  16450. $178 = HEAP32[$10>>2]|0;
  16451. _free($178);
  16452. HEAP32[$10>>2] = 0;
  16453. $179 = HEAP32[$168>>2]|0;
  16454. $180 = (($179) + 1)|0;
  16455. $notlhs = ($180|0)!=($2|0);
  16456. $notrhs = ($2|0)==(3);
  16457. $or$cond5$not = $notrhs | $notlhs;
  16458. $181 = ($$0206<<24>>24)!=(0);
  16459. $or$cond7 = $181 | $or$cond5$not;
  16460. $182 = ($$0211<<24>>24)==(0);
  16461. $or$cond248 = $182 & $or$cond7;
  16462. $$254 = $or$cond248 ? $179 : $180;
  16463. $183 = ((($8)) + 12|0);
  16464. HEAP32[$183>>2] = $$254;
  16465. $184 = HEAP32[$9>>2]|0;
  16466. $185 = HEAP32[$7>>2]|0;
  16467. $186 = HEAP32[$161>>2]|0;
  16468. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  16469. $188 = ($187|0)==(0);
  16470. if ($188) {
  16471. $$4 = 0;
  16472. } else {
  16473. do {
  16474. if (!($182)) {
  16475. $189 = HEAP32[$161>>2]|0;
  16476. $190 = ($189|0)==(16);
  16477. if ($190) {
  16478. $191 = HEAP32[$183>>2]|0;
  16479. _stbi__compute_transparency16($0,$5,$191);
  16480. break;
  16481. } else {
  16482. $192 = HEAP32[$183>>2]|0;
  16483. _stbi__compute_transparency($0,$4,$192);
  16484. break;
  16485. }
  16486. }
  16487. } while(0);
  16488. $193 = HEAP32[5669]|0;
  16489. $194 = ($193|0)!=(0);
  16490. $or$cond11 = $173 & $194;
  16491. if ($or$cond11) {
  16492. $195 = HEAP32[$183>>2]|0;
  16493. $196 = ($195|0)>(2);
  16494. if ($196) {
  16495. _stbi__de_iphone($0);
  16496. }
  16497. }
  16498. if ($181) {
  16499. $197 = $$0206&255;
  16500. HEAP32[$168>>2] = $197;
  16501. $198 = ($2|0)>(2);
  16502. $$ = $198 ? $2 : $197;
  16503. HEAP32[$183>>2] = $$;
  16504. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  16505. $200 = ($199|0)==(0);
  16506. if ($200) {
  16507. $$4 = 0;
  16508. break;
  16509. }
  16510. }
  16511. $201 = HEAP32[$9>>2]|0;
  16512. _free($201);
  16513. HEAP32[$9>>2] = 0;
  16514. $$4 = 1;
  16515. }
  16516. }
  16517. } else {
  16518. $$4 = 1;
  16519. }
  16520. } else {
  16521. _stbi__err(10423);
  16522. $$4 = 0;
  16523. }
  16524. } while(0);
  16525. $$6$ph = $$4;
  16526. break;
  16527. }
  16528. case 104: {
  16529. _stbi__err(10423);
  16530. $$6$ph = 0;
  16531. break;
  16532. }
  16533. case 106: {
  16534. $205 = $25 >>> 24;
  16535. $206 = $205&255;
  16536. HEAP8[10548] = $206;
  16537. $207 = HEAP32[$15>>2]|0;
  16538. $208 = $207 >>> 16;
  16539. $209 = $208&255;
  16540. HEAP8[(10549)>>0] = $209;
  16541. $210 = $207 >>> 8;
  16542. $211 = $210&255;
  16543. HEAP8[(10550)>>0] = $211;
  16544. $212 = $207&255;
  16545. HEAP8[(10551)>>0] = $212;
  16546. _stbi__err(10548);
  16547. $$6$ph = 0;
  16548. break;
  16549. }
  16550. }
  16551. $$7 = $$6$ph;
  16552. STACKTOP = sp;return ($$7|0);
  16553. }
  16554. function _stbi__convert_format($0,$1,$2,$3,$4) {
  16555. $0 = $0|0;
  16556. $1 = $1|0;
  16557. $2 = $2|0;
  16558. $3 = $3|0;
  16559. $4 = $4|0;
  16560. 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;
  16561. 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;
  16562. 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;
  16563. 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;
  16564. 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;
  16565. 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;
  16566. 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;
  16567. 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;
  16568. 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;
  16569. 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;
  16570. var sp = 0;
  16571. sp = STACKTOP;
  16572. $5 = ($2|0)==($1|0);
  16573. if ($5) {
  16574. $$0163 = $0;
  16575. return ($$0163|0);
  16576. }
  16577. $$off = (($2) + -1)|0;
  16578. $6 = ($$off>>>0)<(4);
  16579. if (!($6)) {
  16580. ___assert_fail((10212|0),(10116|0),1477,(10266|0));
  16581. // unreachable;
  16582. }
  16583. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  16584. $8 = ($7|0)==(0|0);
  16585. if ($8) {
  16586. _free($0);
  16587. _stbi__err(10171);
  16588. $$0163 = 0;
  16589. return ($$0163|0);
  16590. }
  16591. $9 = ($4|0)>(0);
  16592. L11: do {
  16593. if ($9) {
  16594. $10 = $1 << 3;
  16595. $11 = (($10) + ($2))|0;
  16596. $$0165254 = (($3) + -1)|0;
  16597. $12 = ($$0165254|0)>(-1);
  16598. $$1166249 = (($3) + -1)|0;
  16599. $13 = ($$1166249|0)>(-1);
  16600. $$2167244 = (($3) + -1)|0;
  16601. $14 = ($$2167244|0)>(-1);
  16602. $$3168239 = (($3) + -1)|0;
  16603. $15 = ($$3168239|0)>(-1);
  16604. $$4169234 = (($3) + -1)|0;
  16605. $16 = ($$4169234|0)>(-1);
  16606. $$5170229 = (($3) + -1)|0;
  16607. $17 = ($$5170229|0)>(-1);
  16608. $$6171224 = (($3) + -1)|0;
  16609. $18 = ($$6171224|0)>(-1);
  16610. $$7172219 = (($3) + -1)|0;
  16611. $19 = ($$7172219|0)>(-1);
  16612. $$8173214 = (($3) + -1)|0;
  16613. $20 = ($$8173214|0)>(-1);
  16614. $$9174209 = (($3) + -1)|0;
  16615. $21 = ($$9174209|0)>(-1);
  16616. $$10175204 = (($3) + -1)|0;
  16617. $22 = ($$10175204|0)>(-1);
  16618. $$11176200 = (($3) + -1)|0;
  16619. $23 = ($$11176200|0)>(-1);
  16620. $$0164259 = 0;
  16621. L13: while(1) {
  16622. $24 = Math_imul($$0164259, $3)|0;
  16623. $25 = Math_imul($24, $1)|0;
  16624. $26 = (($0) + ($25)|0);
  16625. $27 = Math_imul($24, $2)|0;
  16626. $28 = (($7) + ($27)|0);
  16627. do {
  16628. switch ($11|0) {
  16629. case 10: {
  16630. if ($12) {
  16631. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  16632. while(1) {
  16633. $29 = HEAP8[$$0151255>>0]|0;
  16634. HEAP8[$$0256>>0] = $29;
  16635. $30 = ((($$0256)) + 1|0);
  16636. HEAP8[$30>>0] = -1;
  16637. $31 = ((($$0151255)) + 1|0);
  16638. $32 = ((($$0256)) + 2|0);
  16639. $$0165 = (($$0165257) + -1)|0;
  16640. $33 = ($$0165|0)>(-1);
  16641. if ($33) {
  16642. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  16643. } else {
  16644. break;
  16645. }
  16646. }
  16647. }
  16648. break;
  16649. }
  16650. case 11: {
  16651. if ($13) {
  16652. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  16653. while(1) {
  16654. $34 = HEAP8[$$1152250>>0]|0;
  16655. $35 = ((($$1251)) + 2|0);
  16656. HEAP8[$35>>0] = $34;
  16657. $36 = ((($$1251)) + 1|0);
  16658. HEAP8[$36>>0] = $34;
  16659. HEAP8[$$1251>>0] = $34;
  16660. $37 = ((($$1152250)) + 1|0);
  16661. $38 = ((($$1251)) + 3|0);
  16662. $$1166 = (($$1166252) + -1)|0;
  16663. $39 = ($$1166|0)>(-1);
  16664. if ($39) {
  16665. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  16666. } else {
  16667. break;
  16668. }
  16669. }
  16670. }
  16671. break;
  16672. }
  16673. case 12: {
  16674. if ($14) {
  16675. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  16676. while(1) {
  16677. $40 = HEAP8[$$2153245>>0]|0;
  16678. $41 = ((($$2246)) + 2|0);
  16679. HEAP8[$41>>0] = $40;
  16680. $42 = ((($$2246)) + 1|0);
  16681. HEAP8[$42>>0] = $40;
  16682. HEAP8[$$2246>>0] = $40;
  16683. $43 = ((($$2246)) + 3|0);
  16684. HEAP8[$43>>0] = -1;
  16685. $44 = ((($$2153245)) + 1|0);
  16686. $45 = ((($$2246)) + 4|0);
  16687. $$2167 = (($$2167247) + -1)|0;
  16688. $46 = ($$2167|0)>(-1);
  16689. if ($46) {
  16690. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  16691. } else {
  16692. break;
  16693. }
  16694. }
  16695. }
  16696. break;
  16697. }
  16698. case 17: {
  16699. if ($15) {
  16700. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  16701. while(1) {
  16702. $47 = HEAP8[$$3154240>>0]|0;
  16703. HEAP8[$$3241>>0] = $47;
  16704. $48 = ((($$3154240)) + 2|0);
  16705. $49 = ((($$3241)) + 1|0);
  16706. $$3168 = (($$3168242) + -1)|0;
  16707. $50 = ($$3168|0)>(-1);
  16708. if ($50) {
  16709. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  16710. } else {
  16711. break;
  16712. }
  16713. }
  16714. }
  16715. break;
  16716. }
  16717. case 19: {
  16718. if ($16) {
  16719. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  16720. while(1) {
  16721. $51 = HEAP8[$$4155235>>0]|0;
  16722. $52 = ((($$4236)) + 2|0);
  16723. HEAP8[$52>>0] = $51;
  16724. $53 = ((($$4236)) + 1|0);
  16725. HEAP8[$53>>0] = $51;
  16726. HEAP8[$$4236>>0] = $51;
  16727. $54 = ((($$4155235)) + 2|0);
  16728. $55 = ((($$4236)) + 3|0);
  16729. $$4169 = (($$4169237) + -1)|0;
  16730. $56 = ($$4169|0)>(-1);
  16731. if ($56) {
  16732. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  16733. } else {
  16734. break;
  16735. }
  16736. }
  16737. }
  16738. break;
  16739. }
  16740. case 20: {
  16741. if ($17) {
  16742. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  16743. while(1) {
  16744. $57 = HEAP8[$$5156230>>0]|0;
  16745. $58 = ((($$5231)) + 2|0);
  16746. HEAP8[$58>>0] = $57;
  16747. $59 = ((($$5231)) + 1|0);
  16748. HEAP8[$59>>0] = $57;
  16749. HEAP8[$$5231>>0] = $57;
  16750. $60 = ((($$5156230)) + 1|0);
  16751. $61 = HEAP8[$60>>0]|0;
  16752. $62 = ((($$5231)) + 3|0);
  16753. HEAP8[$62>>0] = $61;
  16754. $63 = ((($$5156230)) + 2|0);
  16755. $64 = ((($$5231)) + 4|0);
  16756. $$5170 = (($$5170232) + -1)|0;
  16757. $65 = ($$5170|0)>(-1);
  16758. if ($65) {
  16759. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  16760. } else {
  16761. break;
  16762. }
  16763. }
  16764. }
  16765. break;
  16766. }
  16767. case 28: {
  16768. if ($18) {
  16769. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  16770. while(1) {
  16771. $66 = HEAP8[$$6157225>>0]|0;
  16772. HEAP8[$$6226>>0] = $66;
  16773. $67 = ((($$6157225)) + 1|0);
  16774. $68 = HEAP8[$67>>0]|0;
  16775. $69 = ((($$6226)) + 1|0);
  16776. HEAP8[$69>>0] = $68;
  16777. $70 = ((($$6157225)) + 2|0);
  16778. $71 = HEAP8[$70>>0]|0;
  16779. $72 = ((($$6226)) + 2|0);
  16780. HEAP8[$72>>0] = $71;
  16781. $73 = ((($$6226)) + 3|0);
  16782. HEAP8[$73>>0] = -1;
  16783. $74 = ((($$6157225)) + 3|0);
  16784. $75 = ((($$6226)) + 4|0);
  16785. $$6171 = (($$6171227) + -1)|0;
  16786. $76 = ($$6171|0)>(-1);
  16787. if ($76) {
  16788. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  16789. } else {
  16790. break;
  16791. }
  16792. }
  16793. }
  16794. break;
  16795. }
  16796. case 25: {
  16797. if ($19) {
  16798. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  16799. while(1) {
  16800. $77 = HEAP8[$$7158220>>0]|0;
  16801. $78 = $77&255;
  16802. $79 = ((($$7158220)) + 1|0);
  16803. $80 = HEAP8[$79>>0]|0;
  16804. $81 = $80&255;
  16805. $82 = ((($$7158220)) + 2|0);
  16806. $83 = HEAP8[$82>>0]|0;
  16807. $84 = $83&255;
  16808. $85 = (_stbi__compute_y($78,$81,$84)|0);
  16809. HEAP8[$$7221>>0] = $85;
  16810. $86 = ((($$7158220)) + 3|0);
  16811. $87 = ((($$7221)) + 1|0);
  16812. $$7172 = (($$7172222) + -1)|0;
  16813. $88 = ($$7172|0)>(-1);
  16814. if ($88) {
  16815. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  16816. } else {
  16817. break;
  16818. }
  16819. }
  16820. }
  16821. break;
  16822. }
  16823. case 26: {
  16824. if ($20) {
  16825. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  16826. while(1) {
  16827. $89 = HEAP8[$$8159215>>0]|0;
  16828. $90 = $89&255;
  16829. $91 = ((($$8159215)) + 1|0);
  16830. $92 = HEAP8[$91>>0]|0;
  16831. $93 = $92&255;
  16832. $94 = ((($$8159215)) + 2|0);
  16833. $95 = HEAP8[$94>>0]|0;
  16834. $96 = $95&255;
  16835. $97 = (_stbi__compute_y($90,$93,$96)|0);
  16836. HEAP8[$$8216>>0] = $97;
  16837. $98 = ((($$8216)) + 1|0);
  16838. HEAP8[$98>>0] = -1;
  16839. $99 = ((($$8159215)) + 3|0);
  16840. $100 = ((($$8216)) + 2|0);
  16841. $$8173 = (($$8173217) + -1)|0;
  16842. $101 = ($$8173|0)>(-1);
  16843. if ($101) {
  16844. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  16845. } else {
  16846. break;
  16847. }
  16848. }
  16849. }
  16850. break;
  16851. }
  16852. case 33: {
  16853. if ($21) {
  16854. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  16855. while(1) {
  16856. $102 = HEAP8[$$9160210>>0]|0;
  16857. $103 = $102&255;
  16858. $104 = ((($$9160210)) + 1|0);
  16859. $105 = HEAP8[$104>>0]|0;
  16860. $106 = $105&255;
  16861. $107 = ((($$9160210)) + 2|0);
  16862. $108 = HEAP8[$107>>0]|0;
  16863. $109 = $108&255;
  16864. $110 = (_stbi__compute_y($103,$106,$109)|0);
  16865. HEAP8[$$9211>>0] = $110;
  16866. $111 = ((($$9160210)) + 4|0);
  16867. $112 = ((($$9211)) + 1|0);
  16868. $$9174 = (($$9174212) + -1)|0;
  16869. $113 = ($$9174|0)>(-1);
  16870. if ($113) {
  16871. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  16872. } else {
  16873. break;
  16874. }
  16875. }
  16876. }
  16877. break;
  16878. }
  16879. case 34: {
  16880. if ($22) {
  16881. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  16882. while(1) {
  16883. $114 = HEAP8[$$10161205>>0]|0;
  16884. $115 = $114&255;
  16885. $116 = ((($$10161205)) + 1|0);
  16886. $117 = HEAP8[$116>>0]|0;
  16887. $118 = $117&255;
  16888. $119 = ((($$10161205)) + 2|0);
  16889. $120 = HEAP8[$119>>0]|0;
  16890. $121 = $120&255;
  16891. $122 = (_stbi__compute_y($115,$118,$121)|0);
  16892. HEAP8[$$10206>>0] = $122;
  16893. $123 = ((($$10161205)) + 3|0);
  16894. $124 = HEAP8[$123>>0]|0;
  16895. $125 = ((($$10206)) + 1|0);
  16896. HEAP8[$125>>0] = $124;
  16897. $126 = ((($$10161205)) + 4|0);
  16898. $127 = ((($$10206)) + 2|0);
  16899. $$10175 = (($$10175207) + -1)|0;
  16900. $128 = ($$10175|0)>(-1);
  16901. if ($128) {
  16902. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  16903. } else {
  16904. break;
  16905. }
  16906. }
  16907. }
  16908. break;
  16909. }
  16910. case 35: {
  16911. if ($23) {
  16912. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  16913. while(1) {
  16914. $129 = HEAP8[$$11162201>>0]|0;
  16915. HEAP8[$$11202>>0] = $129;
  16916. $130 = ((($$11162201)) + 1|0);
  16917. $131 = HEAP8[$130>>0]|0;
  16918. $132 = ((($$11202)) + 1|0);
  16919. HEAP8[$132>>0] = $131;
  16920. $133 = ((($$11162201)) + 2|0);
  16921. $134 = HEAP8[$133>>0]|0;
  16922. $135 = ((($$11202)) + 2|0);
  16923. HEAP8[$135>>0] = $134;
  16924. $136 = ((($$11162201)) + 4|0);
  16925. $137 = ((($$11202)) + 3|0);
  16926. $$11176 = (($$11176203) + -1)|0;
  16927. $138 = ($$11176|0)>(-1);
  16928. if ($138) {
  16929. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  16930. } else {
  16931. break;
  16932. }
  16933. }
  16934. }
  16935. break;
  16936. }
  16937. default: {
  16938. break L13;
  16939. }
  16940. }
  16941. } while(0);
  16942. $139 = (($$0164259) + 1)|0;
  16943. $140 = ($139|0)<($4|0);
  16944. if ($140) {
  16945. $$0164259 = $139;
  16946. } else {
  16947. break L11;
  16948. }
  16949. }
  16950. ___assert_fail((13672|0),(10116|0),1506,(10266|0));
  16951. // unreachable;
  16952. }
  16953. } while(0);
  16954. _free($0);
  16955. $$0163 = $7;
  16956. return ($$0163|0);
  16957. }
  16958. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  16959. $0 = $0|0;
  16960. $1 = $1|0;
  16961. $2 = $2|0;
  16962. $3 = $3|0;
  16963. $4 = $4|0;
  16964. 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;
  16965. 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;
  16966. 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;
  16967. 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;
  16968. 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;
  16969. 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;
  16970. 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;
  16971. 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;
  16972. 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;
  16973. 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;
  16974. var $98 = 0, $99 = 0, label = 0, sp = 0;
  16975. sp = STACKTOP;
  16976. $5 = ($2|0)==($1|0);
  16977. if ($5) {
  16978. $$0163 = $0;
  16979. return ($$0163|0);
  16980. }
  16981. $$off = (($2) + -1)|0;
  16982. $6 = ($$off>>>0)<(4);
  16983. if (!($6)) {
  16984. ___assert_fail((10212|0),(10116|0),1526,(10243|0));
  16985. // unreachable;
  16986. }
  16987. $7 = $2 << 1;
  16988. $8 = Math_imul($7, $3)|0;
  16989. $9 = Math_imul($8, $4)|0;
  16990. $10 = (_stbi__malloc($9)|0);
  16991. $11 = ($10|0)==(0|0);
  16992. if ($11) {
  16993. _free($0);
  16994. _stbi__err(10171);
  16995. $$0163 = 0;
  16996. return ($$0163|0);
  16997. }
  16998. $12 = ($4|0)>(0);
  16999. L11: do {
  17000. if ($12) {
  17001. $13 = $1 << 3;
  17002. $14 = (($13) + ($2))|0;
  17003. $$0165254 = (($3) + -1)|0;
  17004. $15 = ($$0165254|0)>(-1);
  17005. $$1166249 = (($3) + -1)|0;
  17006. $16 = ($$1166249|0)>(-1);
  17007. $$2167244 = (($3) + -1)|0;
  17008. $17 = ($$2167244|0)>(-1);
  17009. $$3168239 = (($3) + -1)|0;
  17010. $18 = ($$3168239|0)>(-1);
  17011. $$4169234 = (($3) + -1)|0;
  17012. $19 = ($$4169234|0)>(-1);
  17013. $$5170229 = (($3) + -1)|0;
  17014. $20 = ($$5170229|0)>(-1);
  17015. $$6171224 = (($3) + -1)|0;
  17016. $21 = ($$6171224|0)>(-1);
  17017. $$7172219 = (($3) + -1)|0;
  17018. $22 = ($$7172219|0)>(-1);
  17019. $$8173214 = (($3) + -1)|0;
  17020. $23 = ($$8173214|0)>(-1);
  17021. $$9174209 = (($3) + -1)|0;
  17022. $24 = ($$9174209|0)>(-1);
  17023. $$10175204 = (($3) + -1)|0;
  17024. $25 = ($$10175204|0)>(-1);
  17025. $$11176200 = (($3) + -1)|0;
  17026. $26 = ($$11176200|0)>(-1);
  17027. $$0164259 = 0;
  17028. L13: while(1) {
  17029. $27 = Math_imul($$0164259, $3)|0;
  17030. $28 = Math_imul($27, $1)|0;
  17031. $29 = (($0) + ($28<<1)|0);
  17032. $30 = Math_imul($27, $2)|0;
  17033. $31 = (($10) + ($30<<1)|0);
  17034. do {
  17035. switch ($14|0) {
  17036. case 10: {
  17037. if ($15) {
  17038. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  17039. while(1) {
  17040. $32 = HEAP16[$$0151255>>1]|0;
  17041. HEAP16[$$0256>>1] = $32;
  17042. $33 = ((($$0256)) + 2|0);
  17043. HEAP16[$33>>1] = -1;
  17044. $34 = ((($$0151255)) + 2|0);
  17045. $35 = ((($$0256)) + 4|0);
  17046. $$0165 = (($$0165257) + -1)|0;
  17047. $36 = ($$0165|0)>(-1);
  17048. if ($36) {
  17049. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  17050. } else {
  17051. break;
  17052. }
  17053. }
  17054. }
  17055. break;
  17056. }
  17057. case 11: {
  17058. if ($16) {
  17059. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  17060. while(1) {
  17061. $37 = HEAP16[$$1152250>>1]|0;
  17062. $38 = ((($$1251)) + 4|0);
  17063. HEAP16[$38>>1] = $37;
  17064. $39 = ((($$1251)) + 2|0);
  17065. HEAP16[$39>>1] = $37;
  17066. HEAP16[$$1251>>1] = $37;
  17067. $40 = ((($$1152250)) + 2|0);
  17068. $41 = ((($$1251)) + 6|0);
  17069. $$1166 = (($$1166252) + -1)|0;
  17070. $42 = ($$1166|0)>(-1);
  17071. if ($42) {
  17072. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  17073. } else {
  17074. break;
  17075. }
  17076. }
  17077. }
  17078. break;
  17079. }
  17080. case 12: {
  17081. if ($17) {
  17082. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  17083. while(1) {
  17084. $43 = HEAP16[$$2153245>>1]|0;
  17085. $44 = ((($$2246)) + 4|0);
  17086. HEAP16[$44>>1] = $43;
  17087. $45 = ((($$2246)) + 2|0);
  17088. HEAP16[$45>>1] = $43;
  17089. HEAP16[$$2246>>1] = $43;
  17090. $46 = ((($$2246)) + 6|0);
  17091. HEAP16[$46>>1] = -1;
  17092. $47 = ((($$2153245)) + 2|0);
  17093. $48 = ((($$2246)) + 8|0);
  17094. $$2167 = (($$2167247) + -1)|0;
  17095. $49 = ($$2167|0)>(-1);
  17096. if ($49) {
  17097. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  17098. } else {
  17099. break;
  17100. }
  17101. }
  17102. }
  17103. break;
  17104. }
  17105. case 17: {
  17106. if ($18) {
  17107. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  17108. while(1) {
  17109. $50 = HEAP16[$$3154240>>1]|0;
  17110. HEAP16[$$3241>>1] = $50;
  17111. $51 = ((($$3154240)) + 4|0);
  17112. $52 = ((($$3241)) + 2|0);
  17113. $$3168 = (($$3168242) + -1)|0;
  17114. $53 = ($$3168|0)>(-1);
  17115. if ($53) {
  17116. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  17117. } else {
  17118. break;
  17119. }
  17120. }
  17121. }
  17122. break;
  17123. }
  17124. case 19: {
  17125. if ($19) {
  17126. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  17127. while(1) {
  17128. $54 = HEAP16[$$4155235>>1]|0;
  17129. $55 = ((($$4236)) + 4|0);
  17130. HEAP16[$55>>1] = $54;
  17131. $56 = ((($$4236)) + 2|0);
  17132. HEAP16[$56>>1] = $54;
  17133. HEAP16[$$4236>>1] = $54;
  17134. $57 = ((($$4155235)) + 4|0);
  17135. $58 = ((($$4236)) + 6|0);
  17136. $$4169 = (($$4169237) + -1)|0;
  17137. $59 = ($$4169|0)>(-1);
  17138. if ($59) {
  17139. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  17140. } else {
  17141. break;
  17142. }
  17143. }
  17144. }
  17145. break;
  17146. }
  17147. case 20: {
  17148. if ($20) {
  17149. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  17150. while(1) {
  17151. $60 = HEAP16[$$5156230>>1]|0;
  17152. $61 = ((($$5231)) + 4|0);
  17153. HEAP16[$61>>1] = $60;
  17154. $62 = ((($$5231)) + 2|0);
  17155. HEAP16[$62>>1] = $60;
  17156. HEAP16[$$5231>>1] = $60;
  17157. $63 = ((($$5156230)) + 2|0);
  17158. $64 = HEAP16[$63>>1]|0;
  17159. $65 = ((($$5231)) + 6|0);
  17160. HEAP16[$65>>1] = $64;
  17161. $66 = ((($$5156230)) + 4|0);
  17162. $67 = ((($$5231)) + 8|0);
  17163. $$5170 = (($$5170232) + -1)|0;
  17164. $68 = ($$5170|0)>(-1);
  17165. if ($68) {
  17166. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  17167. } else {
  17168. break;
  17169. }
  17170. }
  17171. }
  17172. break;
  17173. }
  17174. case 28: {
  17175. if ($21) {
  17176. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  17177. while(1) {
  17178. $69 = HEAP16[$$6157225>>1]|0;
  17179. HEAP16[$$6226>>1] = $69;
  17180. $70 = ((($$6157225)) + 2|0);
  17181. $71 = HEAP16[$70>>1]|0;
  17182. $72 = ((($$6226)) + 2|0);
  17183. HEAP16[$72>>1] = $71;
  17184. $73 = ((($$6157225)) + 4|0);
  17185. $74 = HEAP16[$73>>1]|0;
  17186. $75 = ((($$6226)) + 4|0);
  17187. HEAP16[$75>>1] = $74;
  17188. $76 = ((($$6226)) + 6|0);
  17189. HEAP16[$76>>1] = -1;
  17190. $77 = ((($$6157225)) + 6|0);
  17191. $78 = ((($$6226)) + 8|0);
  17192. $$6171 = (($$6171227) + -1)|0;
  17193. $79 = ($$6171|0)>(-1);
  17194. if ($79) {
  17195. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  17196. } else {
  17197. break;
  17198. }
  17199. }
  17200. }
  17201. break;
  17202. }
  17203. case 25: {
  17204. if ($22) {
  17205. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  17206. while(1) {
  17207. $80 = HEAP16[$$7158220>>1]|0;
  17208. $81 = $80&65535;
  17209. $82 = ((($$7158220)) + 2|0);
  17210. $83 = HEAP16[$82>>1]|0;
  17211. $84 = $83&65535;
  17212. $85 = ((($$7158220)) + 4|0);
  17213. $86 = HEAP16[$85>>1]|0;
  17214. $87 = $86&65535;
  17215. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  17216. HEAP16[$$7221>>1] = $88;
  17217. $89 = ((($$7158220)) + 6|0);
  17218. $90 = ((($$7221)) + 2|0);
  17219. $$7172 = (($$7172222) + -1)|0;
  17220. $91 = ($$7172|0)>(-1);
  17221. if ($91) {
  17222. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  17223. } else {
  17224. break;
  17225. }
  17226. }
  17227. }
  17228. break;
  17229. }
  17230. case 26: {
  17231. if ($23) {
  17232. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  17233. while(1) {
  17234. $92 = HEAP16[$$8159215>>1]|0;
  17235. $93 = $92&65535;
  17236. $94 = ((($$8159215)) + 2|0);
  17237. $95 = HEAP16[$94>>1]|0;
  17238. $96 = $95&65535;
  17239. $97 = ((($$8159215)) + 4|0);
  17240. $98 = HEAP16[$97>>1]|0;
  17241. $99 = $98&65535;
  17242. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  17243. HEAP16[$$8216>>1] = $100;
  17244. $101 = ((($$8216)) + 2|0);
  17245. HEAP16[$101>>1] = -1;
  17246. $102 = ((($$8159215)) + 6|0);
  17247. $103 = ((($$8216)) + 4|0);
  17248. $$8173 = (($$8173217) + -1)|0;
  17249. $104 = ($$8173|0)>(-1);
  17250. if ($104) {
  17251. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  17252. } else {
  17253. break;
  17254. }
  17255. }
  17256. }
  17257. break;
  17258. }
  17259. case 33: {
  17260. if ($24) {
  17261. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  17262. while(1) {
  17263. $105 = HEAP16[$$9160210>>1]|0;
  17264. $106 = $105&65535;
  17265. $107 = ((($$9160210)) + 2|0);
  17266. $108 = HEAP16[$107>>1]|0;
  17267. $109 = $108&65535;
  17268. $110 = ((($$9160210)) + 4|0);
  17269. $111 = HEAP16[$110>>1]|0;
  17270. $112 = $111&65535;
  17271. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  17272. HEAP16[$$9211>>1] = $113;
  17273. $114 = ((($$9160210)) + 8|0);
  17274. $115 = ((($$9211)) + 2|0);
  17275. $$9174 = (($$9174212) + -1)|0;
  17276. $116 = ($$9174|0)>(-1);
  17277. if ($116) {
  17278. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  17279. } else {
  17280. break;
  17281. }
  17282. }
  17283. }
  17284. break;
  17285. }
  17286. case 34: {
  17287. if ($25) {
  17288. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  17289. while(1) {
  17290. $117 = HEAP16[$$10161205>>1]|0;
  17291. $118 = $117&65535;
  17292. $119 = ((($$10161205)) + 2|0);
  17293. $120 = HEAP16[$119>>1]|0;
  17294. $121 = $120&65535;
  17295. $122 = ((($$10161205)) + 4|0);
  17296. $123 = HEAP16[$122>>1]|0;
  17297. $124 = $123&65535;
  17298. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  17299. HEAP16[$$10206>>1] = $125;
  17300. $126 = ((($$10161205)) + 6|0);
  17301. $127 = HEAP16[$126>>1]|0;
  17302. $128 = ((($$10206)) + 2|0);
  17303. HEAP16[$128>>1] = $127;
  17304. $129 = ((($$10161205)) + 8|0);
  17305. $130 = ((($$10206)) + 4|0);
  17306. $$10175 = (($$10175207) + -1)|0;
  17307. $131 = ($$10175|0)>(-1);
  17308. if ($131) {
  17309. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  17310. } else {
  17311. break;
  17312. }
  17313. }
  17314. }
  17315. break;
  17316. }
  17317. case 35: {
  17318. if ($26) {
  17319. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  17320. while(1) {
  17321. $132 = HEAP16[$$11162201>>1]|0;
  17322. HEAP16[$$11202>>1] = $132;
  17323. $133 = ((($$11162201)) + 2|0);
  17324. $134 = HEAP16[$133>>1]|0;
  17325. $135 = ((($$11202)) + 2|0);
  17326. HEAP16[$135>>1] = $134;
  17327. $136 = ((($$11162201)) + 4|0);
  17328. $137 = HEAP16[$136>>1]|0;
  17329. $138 = ((($$11202)) + 4|0);
  17330. HEAP16[$138>>1] = $137;
  17331. $139 = ((($$11162201)) + 8|0);
  17332. $140 = ((($$11202)) + 6|0);
  17333. $$11176 = (($$11176203) + -1)|0;
  17334. $141 = ($$11176|0)>(-1);
  17335. if ($141) {
  17336. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  17337. } else {
  17338. break;
  17339. }
  17340. }
  17341. }
  17342. break;
  17343. }
  17344. default: {
  17345. break L13;
  17346. }
  17347. }
  17348. } while(0);
  17349. $142 = (($$0164259) + 1)|0;
  17350. $143 = ($142|0)<($4|0);
  17351. if ($143) {
  17352. $$0164259 = $142;
  17353. } else {
  17354. break L11;
  17355. }
  17356. }
  17357. ___assert_fail((13672|0),(10116|0),1555,(10243|0));
  17358. // unreachable;
  17359. }
  17360. } while(0);
  17361. _free($0);
  17362. $$0163 = $10;
  17363. return ($$0163|0);
  17364. }
  17365. function _stbi__compute_y_16($0,$1,$2) {
  17366. $0 = $0|0;
  17367. $1 = $1|0;
  17368. $2 = $2|0;
  17369. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17370. sp = STACKTOP;
  17371. $3 = ($0*77)|0;
  17372. $4 = ($1*150)|0;
  17373. $5 = (($4) + ($3))|0;
  17374. $6 = ($2*29)|0;
  17375. $7 = (($5) + ($6))|0;
  17376. $8 = $7 >>> 8;
  17377. $9 = $8&65535;
  17378. return ($9|0);
  17379. }
  17380. function _stbi__malloc_mad3($0,$1,$2) {
  17381. $0 = $0|0;
  17382. $1 = $1|0;
  17383. $2 = $2|0;
  17384. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  17385. sp = STACKTOP;
  17386. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  17387. $4 = ($3|0)==(0);
  17388. if ($4) {
  17389. $$0 = 0;
  17390. return ($$0|0);
  17391. }
  17392. $5 = Math_imul($1, $0)|0;
  17393. $6 = Math_imul($5, $2)|0;
  17394. $7 = (_stbi__malloc($6)|0);
  17395. $$0 = $7;
  17396. return ($$0|0);
  17397. }
  17398. function _stbi__compute_y($0,$1,$2) {
  17399. $0 = $0|0;
  17400. $1 = $1|0;
  17401. $2 = $2|0;
  17402. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17403. sp = STACKTOP;
  17404. $3 = ($0*77)|0;
  17405. $4 = ($1*150)|0;
  17406. $5 = (($4) + ($3))|0;
  17407. $6 = ($2*29)|0;
  17408. $7 = (($5) + ($6))|0;
  17409. $8 = $7 >>> 8;
  17410. $9 = $8&255;
  17411. return ($9|0);
  17412. }
  17413. function _stbi__mad3sizes_valid($0,$1,$2) {
  17414. $0 = $0|0;
  17415. $1 = $1|0;
  17416. $2 = $2|0;
  17417. 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;
  17418. sp = STACKTOP;
  17419. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  17420. $4 = ($3|0)==(0);
  17421. if ($4) {
  17422. $12 = 0;
  17423. } else {
  17424. $5 = Math_imul($1, $0)|0;
  17425. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  17426. $7 = ($6|0)==(0);
  17427. if ($7) {
  17428. $12 = 0;
  17429. } else {
  17430. $8 = Math_imul($5, $2)|0;
  17431. $9 = (_stbi__addsizes_valid($8)|0);
  17432. $10 = ($9|0)!=(0);
  17433. $12 = $10;
  17434. }
  17435. }
  17436. $11 = $12&1;
  17437. return ($11|0);
  17438. }
  17439. function _stbi__mul2sizes_valid($0,$1) {
  17440. $0 = $0|0;
  17441. $1 = $1|0;
  17442. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  17443. sp = STACKTOP;
  17444. $2 = $1 | $0;
  17445. $3 = ($2|0)<(0);
  17446. if ($3) {
  17447. $$0 = 0;
  17448. } else {
  17449. $4 = ($1|0)==(0);
  17450. if ($4) {
  17451. $$0 = 1;
  17452. } else {
  17453. $5 = (2147483647 / ($1|0))&-1;
  17454. $6 = ($5|0)>=($0|0);
  17455. $7 = $6&1;
  17456. $$0 = $7;
  17457. }
  17458. }
  17459. return ($$0|0);
  17460. }
  17461. function _stbi__addsizes_valid($0) {
  17462. $0 = $0|0;
  17463. var label = 0, sp = 0;
  17464. sp = STACKTOP;
  17465. return 1;
  17466. }
  17467. function _stbi__check_png_header($0) {
  17468. $0 = $0|0;
  17469. 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;
  17470. sp = STACKTOP;
  17471. $1 = (_stbi__get8($0)|0);
  17472. $2 = ($1<<24>>24)==(-119);
  17473. if ($2) {
  17474. $3 = (_stbi__get8($0)|0);
  17475. $4 = ($3<<24>>24)==(80);
  17476. if ($4) {
  17477. $5 = (_stbi__get8($0)|0);
  17478. $6 = ($5<<24>>24)==(78);
  17479. if ($6) {
  17480. $7 = (_stbi__get8($0)|0);
  17481. $8 = ($7<<24>>24)==(71);
  17482. if ($8) {
  17483. $9 = (_stbi__get8($0)|0);
  17484. $10 = ($9<<24>>24)==(13);
  17485. if ($10) {
  17486. $11 = (_stbi__get8($0)|0);
  17487. $12 = ($11<<24>>24)==(10);
  17488. if ($12) {
  17489. $13 = (_stbi__get8($0)|0);
  17490. $14 = ($13<<24>>24)==(26);
  17491. if ($14) {
  17492. $15 = (_stbi__get8($0)|0);
  17493. $16 = ($15<<24>>24)==(10);
  17494. if ($16) {
  17495. $$05 = 1;
  17496. return ($$05|0);
  17497. }
  17498. }
  17499. }
  17500. }
  17501. }
  17502. }
  17503. }
  17504. }
  17505. _stbi__err(11525);
  17506. $$05 = 0;
  17507. return ($$05|0);
  17508. }
  17509. function _stbi__get_chunk_header($0,$1) {
  17510. $0 = $0|0;
  17511. $1 = $1|0;
  17512. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  17513. sp = STACKTOP;
  17514. $2 = (_stbi__get32be($1)|0);
  17515. $3 = (_stbi__get32be($1)|0);
  17516. HEAP32[$0>>2] = $2;
  17517. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  17518. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  17519. return;
  17520. }
  17521. function _stbi__skip($0,$1) {
  17522. $0 = $0|0;
  17523. $1 = $1|0;
  17524. 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;
  17525. var $8 = 0, $9 = 0, label = 0, sp = 0;
  17526. sp = STACKTOP;
  17527. $2 = ($1|0)<(0);
  17528. if ($2) {
  17529. $3 = ((($0)) + 172|0);
  17530. $4 = HEAP32[$3>>2]|0;
  17531. $5 = ((($0)) + 168|0);
  17532. HEAP32[$5>>2] = $4;
  17533. return;
  17534. }
  17535. $6 = ((($0)) + 16|0);
  17536. $7 = HEAP32[$6>>2]|0;
  17537. $8 = ($7|0)==(0|0);
  17538. if (!($8)) {
  17539. $9 = ((($0)) + 172|0);
  17540. $10 = HEAP32[$9>>2]|0;
  17541. $11 = ((($0)) + 168|0);
  17542. $12 = HEAP32[$11>>2]|0;
  17543. $13 = $10;
  17544. $14 = (($13) - ($12))|0;
  17545. $15 = ($14|0)<($1|0);
  17546. if ($15) {
  17547. HEAP32[$11>>2] = $10;
  17548. $16 = ((($0)) + 20|0);
  17549. $17 = HEAP32[$16>>2]|0;
  17550. $18 = ((($0)) + 28|0);
  17551. $19 = HEAP32[$18>>2]|0;
  17552. $20 = (($1) - ($14))|0;
  17553. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  17554. return;
  17555. }
  17556. }
  17557. $21 = ((($0)) + 168|0);
  17558. $22 = HEAP32[$21>>2]|0;
  17559. $23 = (($22) + ($1)|0);
  17560. HEAP32[$21>>2] = $23;
  17561. return;
  17562. }
  17563. function _stbi__get32be($0) {
  17564. $0 = $0|0;
  17565. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  17566. sp = STACKTOP;
  17567. $1 = (_stbi__get16be($0)|0);
  17568. $2 = $1 << 16;
  17569. $3 = (_stbi__get16be($0)|0);
  17570. $4 = (($2) + ($3))|0;
  17571. return ($4|0);
  17572. }
  17573. function _stbi__get8($0) {
  17574. $0 = $0|0;
  17575. 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;
  17576. sp = STACKTOP;
  17577. $1 = ((($0)) + 168|0);
  17578. $2 = HEAP32[$1>>2]|0;
  17579. $3 = ((($0)) + 172|0);
  17580. $4 = HEAP32[$3>>2]|0;
  17581. $5 = ($2>>>0)<($4>>>0);
  17582. do {
  17583. if ($5) {
  17584. $$sink6 = $2;
  17585. } else {
  17586. $6 = ((($0)) + 32|0);
  17587. $7 = HEAP32[$6>>2]|0;
  17588. $8 = ($7|0)==(0);
  17589. if ($8) {
  17590. $$0 = 0;
  17591. return ($$0|0);
  17592. } else {
  17593. _stbi__refill_buffer($0);
  17594. $9 = HEAP32[$1>>2]|0;
  17595. $$sink6 = $9;
  17596. break;
  17597. }
  17598. }
  17599. } while(0);
  17600. $10 = ((($$sink6)) + 1|0);
  17601. HEAP32[$1>>2] = $10;
  17602. $11 = HEAP8[$$sink6>>0]|0;
  17603. $$0 = $11;
  17604. return ($$0|0);
  17605. }
  17606. function _stbi__get16be($0) {
  17607. $0 = $0|0;
  17608. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  17609. sp = STACKTOP;
  17610. $1 = (_stbi__get8($0)|0);
  17611. $2 = $1&255;
  17612. $3 = $2 << 8;
  17613. $4 = (_stbi__get8($0)|0);
  17614. $5 = $4&255;
  17615. $6 = $3 | $5;
  17616. return ($6|0);
  17617. }
  17618. function _stbi__getn($0,$1,$2) {
  17619. $0 = $0|0;
  17620. $1 = $1|0;
  17621. $2 = $2|0;
  17622. 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;
  17623. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17624. sp = STACKTOP;
  17625. $3 = ((($0)) + 16|0);
  17626. $4 = HEAP32[$3>>2]|0;
  17627. $5 = ($4|0)==(0|0);
  17628. if (!($5)) {
  17629. $6 = ((($0)) + 172|0);
  17630. $7 = HEAP32[$6>>2]|0;
  17631. $8 = ((($0)) + 168|0);
  17632. $9 = HEAP32[$8>>2]|0;
  17633. $10 = $9;
  17634. $11 = (($7) - ($10))|0;
  17635. $12 = ($11|0)<($2|0);
  17636. if ($12) {
  17637. _memcpy(($1|0),($9|0),($11|0))|0;
  17638. $13 = HEAP32[$3>>2]|0;
  17639. $14 = ((($0)) + 28|0);
  17640. $15 = HEAP32[$14>>2]|0;
  17641. $16 = (($1) + ($11)|0);
  17642. $17 = (($2) - ($11))|0;
  17643. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  17644. $19 = ($18|0)==($17|0);
  17645. $20 = $19&1;
  17646. $21 = HEAP32[$6>>2]|0;
  17647. HEAP32[$8>>2] = $21;
  17648. $$1 = $20;
  17649. return ($$1|0);
  17650. }
  17651. }
  17652. $22 = ((($0)) + 168|0);
  17653. $23 = HEAP32[$22>>2]|0;
  17654. $24 = (($23) + ($2)|0);
  17655. $25 = ((($0)) + 172|0);
  17656. $26 = HEAP32[$25>>2]|0;
  17657. $27 = ($24>>>0)>($26>>>0);
  17658. if ($27) {
  17659. $$1 = 0;
  17660. return ($$1|0);
  17661. }
  17662. _memcpy(($1|0),($23|0),($2|0))|0;
  17663. $28 = HEAP32[$22>>2]|0;
  17664. $29 = (($28) + ($2)|0);
  17665. HEAP32[$22>>2] = $29;
  17666. $$1 = 1;
  17667. return ($$1|0);
  17668. }
  17669. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  17670. $0 = $0|0;
  17671. $1 = $1|0;
  17672. $2 = $2|0;
  17673. $3 = $3|0;
  17674. $4 = $4|0;
  17675. 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;
  17676. sp = STACKTOP;
  17677. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  17678. $5 = sp;
  17679. $6 = (_stbi__malloc($2)|0);
  17680. $7 = ($6|0)==(0|0);
  17681. do {
  17682. if ($7) {
  17683. $$0 = 0;
  17684. } else {
  17685. HEAP32[$5>>2] = $0;
  17686. $8 = (($0) + ($1)|0);
  17687. $9 = ((($5)) + 4|0);
  17688. HEAP32[$9>>2] = $8;
  17689. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  17690. $11 = ($10|0)==(0);
  17691. $12 = ((($5)) + 20|0);
  17692. $13 = HEAP32[$12>>2]|0;
  17693. if ($11) {
  17694. _free($13);
  17695. $$0 = 0;
  17696. break;
  17697. }
  17698. $14 = ($3|0)==(0|0);
  17699. if ($14) {
  17700. $$0 = $13;
  17701. } else {
  17702. $15 = ((($5)) + 16|0);
  17703. $16 = HEAP32[$15>>2]|0;
  17704. $17 = $13;
  17705. $18 = (($16) - ($17))|0;
  17706. HEAP32[$3>>2] = $18;
  17707. $$0 = $13;
  17708. }
  17709. }
  17710. } while(0);
  17711. STACKTOP = sp;return ($$0|0);
  17712. }
  17713. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  17714. $0 = $0|0;
  17715. $1 = $1|0;
  17716. $2 = $2|0;
  17717. $3 = $3|0;
  17718. $4 = $4|0;
  17719. $5 = $5|0;
  17720. $6 = $6|0;
  17721. 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;
  17722. 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;
  17723. 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;
  17724. 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;
  17725. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  17726. sp = STACKTOP;
  17727. $7 = ($4|0)==(16);
  17728. $8 = $7 ? 2 : 1;
  17729. $9 = Math_imul($8, $3)|0;
  17730. $10 = ($6|0)==(0);
  17731. $11 = HEAP32[$0>>2]|0;
  17732. $12 = HEAP32[$11>>2]|0;
  17733. $13 = ((($11)) + 4|0);
  17734. $14 = HEAP32[$13>>2]|0;
  17735. if ($10) {
  17736. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  17737. $$4 = $15;
  17738. return ($$4|0);
  17739. }
  17740. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  17741. $17 = ((($0)) + 12|0);
  17742. $18 = ((($0)) + 12|0);
  17743. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  17744. while(1) {
  17745. $19 = HEAP32[$0>>2]|0;
  17746. $20 = HEAP32[$19>>2]|0;
  17747. $21 = (3012 + ($$0103117<<2)|0);
  17748. $22 = HEAP32[$21>>2]|0;
  17749. $23 = (3040 + ($$0103117<<2)|0);
  17750. $24 = HEAP32[$23>>2]|0;
  17751. $25 = (($20) + -1)|0;
  17752. $26 = (($25) - ($22))|0;
  17753. $27 = (($26) + ($24))|0;
  17754. $28 = (($27>>>0) / ($24>>>0))&-1;
  17755. $29 = ((($19)) + 4|0);
  17756. $30 = HEAP32[$29>>2]|0;
  17757. $31 = (3068 + ($$0103117<<2)|0);
  17758. $32 = HEAP32[$31>>2]|0;
  17759. $33 = (3096 + ($$0103117<<2)|0);
  17760. $34 = HEAP32[$33>>2]|0;
  17761. $35 = (($30) + -1)|0;
  17762. $36 = (($35) - ($32))|0;
  17763. $37 = (($36) + ($34))|0;
  17764. $38 = (($37>>>0) / ($34>>>0))&-1;
  17765. $39 = ($24>>>0)<=($27>>>0);
  17766. $40 = ($34>>>0)<=($37>>>0);
  17767. $or$cond = $39 & $40;
  17768. if ($or$cond) {
  17769. $41 = ((($19)) + 8|0);
  17770. $42 = HEAP32[$41>>2]|0;
  17771. $43 = Math_imul($28, $4)|0;
  17772. $44 = Math_imul($43, $42)|0;
  17773. $45 = (($44) + 7)|0;
  17774. $46 = $45 >> 3;
  17775. $47 = (($46) + 1)|0;
  17776. $48 = Math_imul($47, $38)|0;
  17777. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  17778. $50 = ($49|0)==(0);
  17779. if ($50) {
  17780. label = 13;
  17781. break;
  17782. }
  17783. $51 = ($38|0)>(0);
  17784. if ($51) {
  17785. $52 = ($28|0)>(0);
  17786. $$0106116 = 0;
  17787. while(1) {
  17788. if ($52) {
  17789. $53 = HEAP32[$33>>2]|0;
  17790. $54 = Math_imul($53, $$0106116)|0;
  17791. $55 = HEAP32[$31>>2]|0;
  17792. $56 = (($54) + ($55))|0;
  17793. $57 = HEAP32[$23>>2]|0;
  17794. $58 = HEAP32[$21>>2]|0;
  17795. $59 = Math_imul($56, $9)|0;
  17796. $60 = Math_imul($$0106116, $28)|0;
  17797. $$0107115 = 0;
  17798. while(1) {
  17799. $61 = Math_imul($57, $$0107115)|0;
  17800. $62 = (($61) + ($58))|0;
  17801. $63 = HEAP32[$0>>2]|0;
  17802. $64 = HEAP32[$63>>2]|0;
  17803. $65 = Math_imul($59, $64)|0;
  17804. $66 = (($16) + ($65)|0);
  17805. $67 = Math_imul($62, $9)|0;
  17806. $68 = (($66) + ($67)|0);
  17807. $69 = HEAP32[$18>>2]|0;
  17808. $70 = (($$0107115) + ($60))|0;
  17809. $71 = Math_imul($70, $9)|0;
  17810. $72 = (($69) + ($71)|0);
  17811. _memcpy(($68|0),($72|0),($9|0))|0;
  17812. $73 = (($$0107115) + 1)|0;
  17813. $74 = ($73|0)<($28|0);
  17814. if ($74) {
  17815. $$0107115 = $73;
  17816. } else {
  17817. break;
  17818. }
  17819. }
  17820. }
  17821. $75 = (($$0106116) + 1)|0;
  17822. $76 = ($75|0)<($38|0);
  17823. if ($76) {
  17824. $$0106116 = $75;
  17825. } else {
  17826. break;
  17827. }
  17828. }
  17829. }
  17830. $77 = HEAP32[$17>>2]|0;
  17831. _free($77);
  17832. $78 = (($$095119) + ($48)|0);
  17833. $79 = (($$099118) - ($48))|0;
  17834. $$3102$ph = $79;$$398$ph = $78;
  17835. } else {
  17836. $$3102$ph = $$099118;$$398$ph = $$095119;
  17837. }
  17838. $80 = (($$0103117) + 1)|0;
  17839. $81 = ($80|0)<(7);
  17840. if ($81) {
  17841. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  17842. } else {
  17843. label = 15;
  17844. break;
  17845. }
  17846. }
  17847. if ((label|0) == 13) {
  17848. _free($16);
  17849. $$4 = 0;
  17850. return ($$4|0);
  17851. }
  17852. else if ((label|0) == 15) {
  17853. $82 = ((($0)) + 12|0);
  17854. HEAP32[$82>>2] = $16;
  17855. $$4 = 1;
  17856. return ($$4|0);
  17857. }
  17858. return (0)|0;
  17859. }
  17860. function _stbi__compute_transparency16($0,$1,$2) {
  17861. $0 = $0|0;
  17862. $1 = $1|0;
  17863. $2 = $2|0;
  17864. 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;
  17865. 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;
  17866. sp = STACKTOP;
  17867. $3 = HEAP32[$0>>2]|0;
  17868. $4 = HEAP32[$3>>2]|0;
  17869. $5 = ((($3)) + 4|0);
  17870. $6 = HEAP32[$5>>2]|0;
  17871. $7 = Math_imul($6, $4)|0;
  17872. $8 = ((($0)) + 12|0);
  17873. $9 = HEAP32[$8>>2]|0;
  17874. switch ($2|0) {
  17875. case 2: {
  17876. $13 = ($7|0)==(0);
  17877. if ($13) {
  17878. return;
  17879. } else {
  17880. $$0323 = 0;$$04 = $9;
  17881. }
  17882. while(1) {
  17883. $14 = HEAP16[$$04>>1]|0;
  17884. $15 = HEAP16[$1>>1]|0;
  17885. $not$ = ($14<<16>>16)!=($15<<16>>16);
  17886. $16 = $not$ << 31 >> 31;
  17887. $17 = ((($$04)) + 2|0);
  17888. HEAP16[$17>>1] = $16;
  17889. $18 = ((($$04)) + 4|0);
  17890. $19 = (($$0323) + 1)|0;
  17891. $exitcond = ($19|0)==($7|0);
  17892. if ($exitcond) {
  17893. break;
  17894. } else {
  17895. $$0323 = $19;$$04 = $18;
  17896. }
  17897. }
  17898. return;
  17899. break;
  17900. }
  17901. case 4: {
  17902. $10 = ($7|0)==(0);
  17903. if ($10) {
  17904. return;
  17905. }
  17906. $11 = ((($1)) + 2|0);
  17907. $12 = ((($1)) + 4|0);
  17908. $$1335 = 0;$$16 = $9;
  17909. while(1) {
  17910. $20 = HEAP16[$$16>>1]|0;
  17911. $21 = HEAP16[$1>>1]|0;
  17912. $22 = ($20<<16>>16)==($21<<16>>16);
  17913. if ($22) {
  17914. $23 = ((($$16)) + 2|0);
  17915. $24 = HEAP16[$23>>1]|0;
  17916. $25 = HEAP16[$11>>1]|0;
  17917. $26 = ($24<<16>>16)==($25<<16>>16);
  17918. if ($26) {
  17919. $27 = ((($$16)) + 4|0);
  17920. $28 = HEAP16[$27>>1]|0;
  17921. $29 = HEAP16[$12>>1]|0;
  17922. $30 = ($28<<16>>16)==($29<<16>>16);
  17923. if ($30) {
  17924. $31 = ((($$16)) + 6|0);
  17925. HEAP16[$31>>1] = 0;
  17926. }
  17927. }
  17928. }
  17929. $32 = ((($$16)) + 8|0);
  17930. $33 = (($$1335) + 1)|0;
  17931. $exitcond9 = ($33|0)==($7|0);
  17932. if ($exitcond9) {
  17933. break;
  17934. } else {
  17935. $$1335 = $33;$$16 = $32;
  17936. }
  17937. }
  17938. return;
  17939. break;
  17940. }
  17941. default: {
  17942. ___assert_fail((10607|0),(10116|0),4569,(10659|0));
  17943. // unreachable;
  17944. }
  17945. }
  17946. }
  17947. function _stbi__compute_transparency($0,$1,$2) {
  17948. $0 = $0|0;
  17949. $1 = $1|0;
  17950. $2 = $2|0;
  17951. 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;
  17952. 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;
  17953. sp = STACKTOP;
  17954. $3 = HEAP32[$0>>2]|0;
  17955. $4 = HEAP32[$3>>2]|0;
  17956. $5 = ((($3)) + 4|0);
  17957. $6 = HEAP32[$5>>2]|0;
  17958. $7 = Math_imul($6, $4)|0;
  17959. $8 = ((($0)) + 12|0);
  17960. $9 = HEAP32[$8>>2]|0;
  17961. switch ($2|0) {
  17962. case 2: {
  17963. $13 = ($7|0)==(0);
  17964. if ($13) {
  17965. return;
  17966. } else {
  17967. $$0323 = 0;$$04 = $9;
  17968. }
  17969. while(1) {
  17970. $14 = HEAP8[$$04>>0]|0;
  17971. $15 = HEAP8[$1>>0]|0;
  17972. $not$ = ($14<<24>>24)!=($15<<24>>24);
  17973. $16 = $not$ << 31 >> 31;
  17974. $17 = ((($$04)) + 1|0);
  17975. HEAP8[$17>>0] = $16;
  17976. $18 = ((($$04)) + 2|0);
  17977. $19 = (($$0323) + 1)|0;
  17978. $exitcond = ($19|0)==($7|0);
  17979. if ($exitcond) {
  17980. break;
  17981. } else {
  17982. $$0323 = $19;$$04 = $18;
  17983. }
  17984. }
  17985. return;
  17986. break;
  17987. }
  17988. case 4: {
  17989. $10 = ($7|0)==(0);
  17990. if ($10) {
  17991. return;
  17992. }
  17993. $11 = ((($1)) + 1|0);
  17994. $12 = ((($1)) + 2|0);
  17995. $$1335 = 0;$$16 = $9;
  17996. while(1) {
  17997. $20 = HEAP8[$$16>>0]|0;
  17998. $21 = HEAP8[$1>>0]|0;
  17999. $22 = ($20<<24>>24)==($21<<24>>24);
  18000. if ($22) {
  18001. $23 = ((($$16)) + 1|0);
  18002. $24 = HEAP8[$23>>0]|0;
  18003. $25 = HEAP8[$11>>0]|0;
  18004. $26 = ($24<<24>>24)==($25<<24>>24);
  18005. if ($26) {
  18006. $27 = ((($$16)) + 2|0);
  18007. $28 = HEAP8[$27>>0]|0;
  18008. $29 = HEAP8[$12>>0]|0;
  18009. $30 = ($28<<24>>24)==($29<<24>>24);
  18010. if ($30) {
  18011. $31 = ((($$16)) + 3|0);
  18012. HEAP8[$31>>0] = 0;
  18013. }
  18014. }
  18015. }
  18016. $32 = ((($$16)) + 4|0);
  18017. $33 = (($$1335) + 1)|0;
  18018. $exitcond9 = ($33|0)==($7|0);
  18019. if ($exitcond9) {
  18020. break;
  18021. } else {
  18022. $$1335 = $33;$$16 = $32;
  18023. }
  18024. }
  18025. return;
  18026. break;
  18027. }
  18028. default: {
  18029. ___assert_fail((10607|0),(10116|0),4544,(10632|0));
  18030. // unreachable;
  18031. }
  18032. }
  18033. }
  18034. function _stbi__de_iphone($0) {
  18035. $0 = $0|0;
  18036. 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;
  18037. 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;
  18038. 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;
  18039. sp = STACKTOP;
  18040. $1 = HEAP32[$0>>2]|0;
  18041. $2 = HEAP32[$1>>2]|0;
  18042. $3 = ((($1)) + 4|0);
  18043. $4 = HEAP32[$3>>2]|0;
  18044. $5 = Math_imul($4, $2)|0;
  18045. $6 = ((($0)) + 12|0);
  18046. $7 = HEAP32[$6>>2]|0;
  18047. $8 = ((($1)) + 12|0);
  18048. $9 = HEAP32[$8>>2]|0;
  18049. switch ($9|0) {
  18050. case 3: {
  18051. $10 = ($5|0)==(0);
  18052. if ($10) {
  18053. return;
  18054. } else {
  18055. $$05158 = $7;$$059 = 0;
  18056. }
  18057. while(1) {
  18058. $11 = HEAP8[$$05158>>0]|0;
  18059. $12 = ((($$05158)) + 2|0);
  18060. $13 = HEAP8[$12>>0]|0;
  18061. HEAP8[$$05158>>0] = $13;
  18062. HEAP8[$12>>0] = $11;
  18063. $14 = ((($$05158)) + 3|0);
  18064. $15 = (($$059) + 1)|0;
  18065. $exitcond = ($15|0)==($5|0);
  18066. if ($exitcond) {
  18067. break;
  18068. } else {
  18069. $$05158 = $14;$$059 = $15;
  18070. }
  18071. }
  18072. return;
  18073. break;
  18074. }
  18075. case 4: {
  18076. $16 = HEAP32[5670]|0;
  18077. $17 = ($16|0)==(0);
  18078. $18 = ($5|0)!=(0);
  18079. if ($17) {
  18080. if ($18) {
  18081. $$25360 = $7;$$261 = 0;
  18082. } else {
  18083. return;
  18084. }
  18085. while(1) {
  18086. $42 = HEAP8[$$25360>>0]|0;
  18087. $43 = ((($$25360)) + 2|0);
  18088. $44 = HEAP8[$43>>0]|0;
  18089. HEAP8[$$25360>>0] = $44;
  18090. HEAP8[$43>>0] = $42;
  18091. $45 = ((($$25360)) + 4|0);
  18092. $46 = (($$261) + 1)|0;
  18093. $exitcond68 = ($46|0)==($5|0);
  18094. if ($exitcond68) {
  18095. break;
  18096. } else {
  18097. $$25360 = $45;$$261 = $46;
  18098. }
  18099. }
  18100. return;
  18101. }
  18102. if ($18) {
  18103. $$15263 = $7;$$164 = 0;
  18104. } else {
  18105. return;
  18106. }
  18107. while(1) {
  18108. $19 = ((($$15263)) + 3|0);
  18109. $20 = HEAP8[$19>>0]|0;
  18110. $21 = HEAP8[$$15263>>0]|0;
  18111. $22 = ($20<<24>>24)==(0);
  18112. $23 = ((($$15263)) + 2|0);
  18113. $24 = HEAP8[$23>>0]|0;
  18114. if ($22) {
  18115. HEAP8[$$15263>>0] = $24;
  18116. $$sink = $21;
  18117. } else {
  18118. $25 = $24&255;
  18119. $26 = ($25*255)|0;
  18120. $27 = $20&255;
  18121. $28 = (($26>>>0) / ($27>>>0))&-1;
  18122. $29 = $28&255;
  18123. HEAP8[$$15263>>0] = $29;
  18124. $30 = ((($$15263)) + 1|0);
  18125. $31 = HEAP8[$30>>0]|0;
  18126. $32 = $31&255;
  18127. $33 = ($32*255)|0;
  18128. $34 = (($33>>>0) / ($27>>>0))&-1;
  18129. $35 = $34&255;
  18130. HEAP8[$30>>0] = $35;
  18131. $36 = $21&255;
  18132. $37 = ($36*255)|0;
  18133. $38 = (($37>>>0) / ($27>>>0))&-1;
  18134. $39 = $38&255;
  18135. $$sink = $39;
  18136. }
  18137. HEAP8[$23>>0] = $$sink;
  18138. $40 = ((($$15263)) + 4|0);
  18139. $41 = (($$164) + 1)|0;
  18140. $exitcond69 = ($41|0)==($5|0);
  18141. if ($exitcond69) {
  18142. break;
  18143. } else {
  18144. $$15263 = $40;$$164 = $41;
  18145. }
  18146. }
  18147. return;
  18148. break;
  18149. }
  18150. default: {
  18151. ___assert_fail((10573|0),(10116|0),4650,(10591|0));
  18152. // unreachable;
  18153. }
  18154. }
  18155. }
  18156. function _stbi__expand_png_palette($0,$1,$2) {
  18157. $0 = $0|0;
  18158. $1 = $1|0;
  18159. $2 = $2|0;
  18160. 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;
  18161. 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;
  18162. 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;
  18163. sp = STACKTOP;
  18164. $3 = HEAP32[$0>>2]|0;
  18165. $4 = HEAP32[$3>>2]|0;
  18166. $5 = ((($3)) + 4|0);
  18167. $6 = HEAP32[$5>>2]|0;
  18168. $7 = Math_imul($6, $4)|0;
  18169. $8 = ((($0)) + 12|0);
  18170. $9 = HEAP32[$8>>2]|0;
  18171. $10 = (_stbi__malloc_mad2($7,$2)|0);
  18172. $11 = ($10|0)==(0|0);
  18173. if ($11) {
  18174. _stbi__err(10171);
  18175. $$0 = 0;
  18176. return ($$0|0);
  18177. }
  18178. $12 = ($2|0)==(3);
  18179. $13 = ($7|0)!=(0);
  18180. if ($12) {
  18181. if ($13) {
  18182. $$0574 = 0;$$0583 = $10;
  18183. while(1) {
  18184. $14 = (($9) + ($$0574)|0);
  18185. $15 = HEAP8[$14>>0]|0;
  18186. $16 = $15&255;
  18187. $17 = $16 << 2;
  18188. $18 = (($1) + ($17)|0);
  18189. $19 = HEAP8[$18>>0]|0;
  18190. HEAP8[$$0583>>0] = $19;
  18191. $20 = $17 | 1;
  18192. $21 = (($1) + ($20)|0);
  18193. $22 = HEAP8[$21>>0]|0;
  18194. $23 = ((($$0583)) + 1|0);
  18195. HEAP8[$23>>0] = $22;
  18196. $24 = $17 | 2;
  18197. $25 = (($1) + ($24)|0);
  18198. $26 = HEAP8[$25>>0]|0;
  18199. $27 = ((($$0583)) + 2|0);
  18200. HEAP8[$27>>0] = $26;
  18201. $28 = ((($$0583)) + 3|0);
  18202. $29 = (($$0574) + 1)|0;
  18203. $exitcond = ($29|0)==($7|0);
  18204. if ($exitcond) {
  18205. break;
  18206. } else {
  18207. $$0574 = $29;$$0583 = $28;
  18208. }
  18209. }
  18210. }
  18211. } else {
  18212. if ($13) {
  18213. $$1595 = $10;$$16 = 0;
  18214. while(1) {
  18215. $30 = (($9) + ($$16)|0);
  18216. $31 = HEAP8[$30>>0]|0;
  18217. $32 = $31&255;
  18218. $33 = $32 << 2;
  18219. $34 = (($1) + ($33)|0);
  18220. $35 = HEAP8[$34>>0]|0;
  18221. HEAP8[$$1595>>0] = $35;
  18222. $36 = $33 | 1;
  18223. $37 = (($1) + ($36)|0);
  18224. $38 = HEAP8[$37>>0]|0;
  18225. $39 = ((($$1595)) + 1|0);
  18226. HEAP8[$39>>0] = $38;
  18227. $40 = $33 | 2;
  18228. $41 = (($1) + ($40)|0);
  18229. $42 = HEAP8[$41>>0]|0;
  18230. $43 = ((($$1595)) + 2|0);
  18231. HEAP8[$43>>0] = $42;
  18232. $44 = $33 | 3;
  18233. $45 = (($1) + ($44)|0);
  18234. $46 = HEAP8[$45>>0]|0;
  18235. $47 = ((($$1595)) + 3|0);
  18236. HEAP8[$47>>0] = $46;
  18237. $48 = ((($$1595)) + 4|0);
  18238. $49 = (($$16) + 1)|0;
  18239. $exitcond9 = ($49|0)==($7|0);
  18240. if ($exitcond9) {
  18241. break;
  18242. } else {
  18243. $$1595 = $48;$$16 = $49;
  18244. }
  18245. }
  18246. }
  18247. }
  18248. $50 = HEAP32[$8>>2]|0;
  18249. _free($50);
  18250. HEAP32[$8>>2] = $10;
  18251. $$0 = 1;
  18252. return ($$0|0);
  18253. }
  18254. function _stbi__malloc_mad2($0,$1) {
  18255. $0 = $0|0;
  18256. $1 = $1|0;
  18257. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  18258. sp = STACKTOP;
  18259. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  18260. $3 = ($2|0)==(0);
  18261. if ($3) {
  18262. $$0 = 0;
  18263. return ($$0|0);
  18264. }
  18265. $4 = Math_imul($1, $0)|0;
  18266. $5 = (_stbi__malloc($4)|0);
  18267. $$0 = $5;
  18268. return ($$0|0);
  18269. }
  18270. function _stbi__mad2sizes_valid($0,$1) {
  18271. $0 = $0|0;
  18272. $1 = $1|0;
  18273. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  18274. sp = STACKTOP;
  18275. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  18276. $3 = ($2|0)==(0);
  18277. if ($3) {
  18278. $8 = 0;
  18279. $7 = $8&1;
  18280. return ($7|0);
  18281. }
  18282. $4 = Math_imul($1, $0)|0;
  18283. $5 = (_stbi__addsizes_valid($4)|0);
  18284. $6 = ($5|0)!=(0);
  18285. $8 = $6;
  18286. $7 = $8&1;
  18287. return ($7|0);
  18288. }
  18289. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  18290. $0 = $0|0;
  18291. $1 = $1|0;
  18292. $2 = $2|0;
  18293. $3 = $3|0;
  18294. $4 = $4|0;
  18295. $5 = $5|0;
  18296. $6 = $6|0;
  18297. $7 = $7|0;
  18298. 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;
  18299. 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;
  18300. 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;
  18301. 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;
  18302. 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;
  18303. 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;
  18304. 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;
  18305. 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;
  18306. 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;
  18307. 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;
  18308. 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;
  18309. 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;
  18310. 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;
  18311. 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;
  18312. 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;
  18313. 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;
  18314. 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;
  18315. 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;
  18316. 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;
  18317. 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;
  18318. 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;
  18319. 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;
  18320. 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;
  18321. 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;
  18322. 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;
  18323. 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;
  18324. 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;
  18325. 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;
  18326. 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;
  18327. 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;
  18328. 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;
  18329. 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;
  18330. 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;
  18331. 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;
  18332. 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;
  18333. 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;
  18334. 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;
  18335. 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;
  18336. sp = STACKTOP;
  18337. $8 = ($6|0)==(16);
  18338. $9 = $8 ? 2 : 1;
  18339. $10 = HEAP32[$0>>2]|0;
  18340. $11 = Math_imul($4, $3)|0;
  18341. $12 = Math_imul($9, $11)|0;
  18342. $13 = ((($10)) + 8|0);
  18343. $14 = HEAP32[$13>>2]|0;
  18344. $15 = Math_imul($9, $3)|0;
  18345. $16 = Math_imul($14, $9)|0;
  18346. $17 = ($14|0)==($3|0);
  18347. $18 = (($14) + 1)|0;
  18348. $19 = ($18|0)==($3|0);
  18349. $or$cond = $17 | $19;
  18350. if (!($or$cond)) {
  18351. ___assert_fail((10688|0),(10116|0),4294,(10729|0));
  18352. // unreachable;
  18353. }
  18354. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  18355. $21 = ((($0)) + 12|0);
  18356. HEAP32[$21>>2] = $20;
  18357. $22 = ($20|0)==(0|0);
  18358. if ($22) {
  18359. _stbi__err(10171);
  18360. $$2 = 0;
  18361. return ($$2|0);
  18362. }
  18363. $23 = Math_imul($14, $4)|0;
  18364. $24 = Math_imul($23, $6)|0;
  18365. $25 = (($24) + 7)|0;
  18366. $26 = $25 >>> 3;
  18367. $27 = (($26) + 1)|0;
  18368. $28 = Math_imul($27, $5)|0;
  18369. $29 = HEAP32[$10>>2]|0;
  18370. $30 = ($29|0)==($4|0);
  18371. if ($30) {
  18372. $31 = ((($10)) + 4|0);
  18373. $32 = HEAP32[$31>>2]|0;
  18374. $33 = ($32|0)==($5|0);
  18375. if ($33) {
  18376. $34 = ($28|0)==($2|0);
  18377. if (!($34)) {
  18378. _stbi__err(10756);
  18379. $$2 = 0;
  18380. return ($$2|0);
  18381. }
  18382. } else {
  18383. label = 9;
  18384. }
  18385. } else {
  18386. label = 9;
  18387. }
  18388. if ((label|0) == 9) {
  18389. $35 = ($28>>>0)>($2>>>0);
  18390. if ($35) {
  18391. _stbi__err(10756);
  18392. $$2 = 0;
  18393. return ($$2|0);
  18394. }
  18395. }
  18396. $36 = ($5|0)==(0);
  18397. L18: do {
  18398. if (!($36)) {
  18399. $37 = ($6|0)<(8);
  18400. $38 = ($26>>>0)>($4>>>0);
  18401. $39 = (($11) - ($26))|0;
  18402. $40 = (0 - ($12))|0;
  18403. $41 = ($6|0)==(8);
  18404. $brmerge = $37 | $17;
  18405. $42 = ($4|0)==(0);
  18406. $$0614793 = (($4) + -1)|0;
  18407. $43 = ($$0614793|0)==(0);
  18408. $$1615785 = (($4) + -1)|0;
  18409. $44 = ($$1615785|0)==(0);
  18410. $$2616776 = (($4) + -1)|0;
  18411. $45 = ($$2616776|0)==(0);
  18412. $$3617767 = (($4) + -1)|0;
  18413. $46 = ($$3617767|0)==(0);
  18414. $$4618758 = (($4) + -1)|0;
  18415. $47 = ($$4618758|0)==(0);
  18416. $$5619750 = (($4) + -1)|0;
  18417. $48 = ($$5619750|0)==(0);
  18418. $$6620742 = (($4) + -1)|0;
  18419. $49 = ($$6620742|0)==(0);
  18420. $$not = $8 ^ 1;
  18421. $brmerge894 = $42 | $$not;
  18422. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  18423. while(1) {
  18424. $50 = HEAP32[$21>>2]|0;
  18425. $51 = Math_imul($$0623814, $12)|0;
  18426. $52 = (($50) + ($51)|0);
  18427. $53 = ((($$0577817)) + 1|0);
  18428. $54 = HEAP8[$$0577817>>0]|0;
  18429. $55 = $54&255;
  18430. $56 = ($54&255)>(4);
  18431. if ($56) {
  18432. label = 105;
  18433. break;
  18434. }
  18435. if ($37) {
  18436. if ($38) {
  18437. label = 16;
  18438. break;
  18439. }
  18440. $57 = (($52) + ($39)|0);
  18441. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  18442. } else {
  18443. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  18444. }
  18445. $58 = (($$0597) + ($40)|0);
  18446. $59 = ($$0623814|0)==(0);
  18447. if ($59) {
  18448. $60 = (10795 + ($55)|0);
  18449. $61 = HEAP8[$60>>0]|0;
  18450. $62 = $61&255;
  18451. $$0588 = $62;
  18452. } else {
  18453. $$0588 = $55;
  18454. }
  18455. $63 = ($$1612|0)>(0);
  18456. L30: do {
  18457. if ($63) {
  18458. $trunc638 = $$0588&255;
  18459. $$0625734 = 0;
  18460. while(1) {
  18461. switch ($trunc638<<24>>24) {
  18462. case 0: {
  18463. $64 = (($53) + ($$0625734)|0);
  18464. $65 = HEAP8[$64>>0]|0;
  18465. $$sink = $65;
  18466. label = 30;
  18467. break;
  18468. }
  18469. case 1: {
  18470. $66 = (($53) + ($$0625734)|0);
  18471. $67 = HEAP8[$66>>0]|0;
  18472. $$sink = $67;
  18473. label = 30;
  18474. break;
  18475. }
  18476. case 2: {
  18477. $68 = (($53) + ($$0625734)|0);
  18478. $69 = HEAP8[$68>>0]|0;
  18479. $70 = $69&255;
  18480. $71 = (($58) + ($$0625734)|0);
  18481. $72 = HEAP8[$71>>0]|0;
  18482. $73 = $72&255;
  18483. $74 = (($73) + ($70))|0;
  18484. $75 = $74&255;
  18485. $$sink = $75;
  18486. label = 30;
  18487. break;
  18488. }
  18489. case 3: {
  18490. $76 = (($53) + ($$0625734)|0);
  18491. $77 = HEAP8[$76>>0]|0;
  18492. $78 = $77&255;
  18493. $79 = (($58) + ($$0625734)|0);
  18494. $80 = HEAP8[$79>>0]|0;
  18495. $81 = $80&255;
  18496. $82 = $81 >>> 1;
  18497. $83 = (($82) + ($78))|0;
  18498. $84 = $83&255;
  18499. $$sink = $84;
  18500. label = 30;
  18501. break;
  18502. }
  18503. case 4: {
  18504. $85 = (($53) + ($$0625734)|0);
  18505. $86 = HEAP8[$85>>0]|0;
  18506. $87 = $86&255;
  18507. $88 = (($58) + ($$0625734)|0);
  18508. $89 = HEAP8[$88>>0]|0;
  18509. $90 = $89&255;
  18510. $91 = (_stbi__paeth(0,$90,0)|0);
  18511. $92 = (($91) + ($87))|0;
  18512. $93 = $92&255;
  18513. $$sink = $93;
  18514. label = 30;
  18515. break;
  18516. }
  18517. case 5: {
  18518. $94 = (($53) + ($$0625734)|0);
  18519. $95 = HEAP8[$94>>0]|0;
  18520. $$sink = $95;
  18521. label = 30;
  18522. break;
  18523. }
  18524. case 6: {
  18525. $96 = (($53) + ($$0625734)|0);
  18526. $97 = HEAP8[$96>>0]|0;
  18527. $$sink = $97;
  18528. label = 30;
  18529. break;
  18530. }
  18531. default: {
  18532. }
  18533. }
  18534. if ((label|0) == 30) {
  18535. label = 0;
  18536. $$sink1 = (($$0597) + ($$0625734)|0);
  18537. HEAP8[$$sink1>>0] = $$sink;
  18538. }
  18539. $98 = (($$0625734) + 1)|0;
  18540. $exitcond864 = ($98|0)==($$1612|0);
  18541. if ($exitcond864) {
  18542. break L30;
  18543. } else {
  18544. $$0625734 = $98;
  18545. }
  18546. }
  18547. }
  18548. } while(0);
  18549. do {
  18550. if ($41) {
  18551. if (!($17)) {
  18552. $99 = (($$0597) + ($14)|0);
  18553. HEAP8[$99>>0] = -1;
  18554. }
  18555. $100 = (($53) + ($14)|0);
  18556. $$1578 = $100;$$sink641 = $3;
  18557. } else {
  18558. if (!($8)) {
  18559. $105 = ((($$0577817)) + 2|0);
  18560. $$1578 = $105;$$sink641 = 1;
  18561. break;
  18562. }
  18563. if (!($17)) {
  18564. $101 = (($$1612) + 1)|0;
  18565. $102 = (($$0597) + ($101)|0);
  18566. $103 = (($$0597) + ($$1612)|0);
  18567. HEAP8[$103>>0] = -1;
  18568. HEAP8[$102>>0] = -1;
  18569. }
  18570. $104 = (($53) + ($$1612)|0);
  18571. $$1578 = $104;$$sink641 = $15;
  18572. }
  18573. } while(0);
  18574. $106 = (($$0597) + ($$sink641)|0);
  18575. $107 = (($58) + ($$sink641)|0);
  18576. if ($brmerge) {
  18577. $108 = (($$1609) + -1)|0;
  18578. $109 = Math_imul($108, $$1612)|0;
  18579. $trunc637 = $$0588&255;
  18580. switch ($trunc637<<24>>24) {
  18581. case 0: {
  18582. _memcpy(($106|0),($$1578|0),($109|0))|0;
  18583. break;
  18584. }
  18585. case 1: {
  18586. $115 = ($109|0)>(0);
  18587. if ($115) {
  18588. $$1626812 = 0;
  18589. while(1) {
  18590. $116 = (($$1578) + ($$1626812)|0);
  18591. $117 = HEAP8[$116>>0]|0;
  18592. $118 = $117&255;
  18593. $119 = (($$1626812) - ($$1612))|0;
  18594. $120 = (($106) + ($119)|0);
  18595. $121 = HEAP8[$120>>0]|0;
  18596. $122 = $121&255;
  18597. $123 = (($122) + ($118))|0;
  18598. $124 = $123&255;
  18599. $125 = (($106) + ($$1626812)|0);
  18600. HEAP8[$125>>0] = $124;
  18601. $126 = (($$1626812) + 1)|0;
  18602. $exitcond886 = ($126|0)==($109|0);
  18603. if ($exitcond886) {
  18604. break;
  18605. } else {
  18606. $$1626812 = $126;
  18607. }
  18608. }
  18609. }
  18610. break;
  18611. }
  18612. case 2: {
  18613. $114 = ($109|0)>(0);
  18614. if ($114) {
  18615. $$2627810 = 0;
  18616. while(1) {
  18617. $127 = (($$1578) + ($$2627810)|0);
  18618. $128 = HEAP8[$127>>0]|0;
  18619. $129 = $128&255;
  18620. $130 = (($107) + ($$2627810)|0);
  18621. $131 = HEAP8[$130>>0]|0;
  18622. $132 = $131&255;
  18623. $133 = (($132) + ($129))|0;
  18624. $134 = $133&255;
  18625. $135 = (($106) + ($$2627810)|0);
  18626. HEAP8[$135>>0] = $134;
  18627. $136 = (($$2627810) + 1)|0;
  18628. $exitcond885 = ($136|0)==($109|0);
  18629. if ($exitcond885) {
  18630. break;
  18631. } else {
  18632. $$2627810 = $136;
  18633. }
  18634. }
  18635. }
  18636. break;
  18637. }
  18638. case 3: {
  18639. $113 = ($109|0)>(0);
  18640. if ($113) {
  18641. $$3628808 = 0;
  18642. while(1) {
  18643. $137 = (($$1578) + ($$3628808)|0);
  18644. $138 = HEAP8[$137>>0]|0;
  18645. $139 = $138&255;
  18646. $140 = (($107) + ($$3628808)|0);
  18647. $141 = HEAP8[$140>>0]|0;
  18648. $142 = $141&255;
  18649. $143 = (($$3628808) - ($$1612))|0;
  18650. $144 = (($106) + ($143)|0);
  18651. $145 = HEAP8[$144>>0]|0;
  18652. $146 = $145&255;
  18653. $147 = (($146) + ($142))|0;
  18654. $148 = $147 >>> 1;
  18655. $149 = (($148) + ($139))|0;
  18656. $150 = $149&255;
  18657. $151 = (($106) + ($$3628808)|0);
  18658. HEAP8[$151>>0] = $150;
  18659. $152 = (($$3628808) + 1)|0;
  18660. $exitcond884 = ($152|0)==($109|0);
  18661. if ($exitcond884) {
  18662. break;
  18663. } else {
  18664. $$3628808 = $152;
  18665. }
  18666. }
  18667. }
  18668. break;
  18669. }
  18670. case 4: {
  18671. $112 = ($109|0)>(0);
  18672. if ($112) {
  18673. $$4629806 = 0;
  18674. while(1) {
  18675. $153 = (($$1578) + ($$4629806)|0);
  18676. $154 = HEAP8[$153>>0]|0;
  18677. $155 = $154&255;
  18678. $156 = (($$4629806) - ($$1612))|0;
  18679. $157 = (($106) + ($156)|0);
  18680. $158 = HEAP8[$157>>0]|0;
  18681. $159 = $158&255;
  18682. $160 = (($107) + ($$4629806)|0);
  18683. $161 = HEAP8[$160>>0]|0;
  18684. $162 = $161&255;
  18685. $163 = (($107) + ($156)|0);
  18686. $164 = HEAP8[$163>>0]|0;
  18687. $165 = $164&255;
  18688. $166 = (_stbi__paeth($159,$162,$165)|0);
  18689. $167 = (($166) + ($155))|0;
  18690. $168 = $167&255;
  18691. $169 = (($106) + ($$4629806)|0);
  18692. HEAP8[$169>>0] = $168;
  18693. $170 = (($$4629806) + 1)|0;
  18694. $exitcond883 = ($170|0)==($109|0);
  18695. if ($exitcond883) {
  18696. break;
  18697. } else {
  18698. $$4629806 = $170;
  18699. }
  18700. }
  18701. }
  18702. break;
  18703. }
  18704. case 5: {
  18705. $111 = ($109|0)>(0);
  18706. if ($111) {
  18707. $$5630804 = 0;
  18708. while(1) {
  18709. $171 = (($$1578) + ($$5630804)|0);
  18710. $172 = HEAP8[$171>>0]|0;
  18711. $173 = $172&255;
  18712. $174 = (($$5630804) - ($$1612))|0;
  18713. $175 = (($106) + ($174)|0);
  18714. $176 = HEAP8[$175>>0]|0;
  18715. $177 = $176&255;
  18716. $178 = $177 >>> 1;
  18717. $179 = (($178) + ($173))|0;
  18718. $180 = $179&255;
  18719. $181 = (($106) + ($$5630804)|0);
  18720. HEAP8[$181>>0] = $180;
  18721. $182 = (($$5630804) + 1)|0;
  18722. $exitcond882 = ($182|0)==($109|0);
  18723. if ($exitcond882) {
  18724. break;
  18725. } else {
  18726. $$5630804 = $182;
  18727. }
  18728. }
  18729. }
  18730. break;
  18731. }
  18732. case 6: {
  18733. $110 = ($109|0)>(0);
  18734. if ($110) {
  18735. $$6631802 = 0;
  18736. while(1) {
  18737. $183 = (($$1578) + ($$6631802)|0);
  18738. $184 = HEAP8[$183>>0]|0;
  18739. $185 = $184&255;
  18740. $186 = (($$6631802) - ($$1612))|0;
  18741. $187 = (($106) + ($186)|0);
  18742. $188 = HEAP8[$187>>0]|0;
  18743. $189 = $188&255;
  18744. $190 = (_stbi__paeth($189,0,0)|0);
  18745. $191 = (($190) + ($185))|0;
  18746. $192 = $191&255;
  18747. $193 = (($106) + ($$6631802)|0);
  18748. HEAP8[$193>>0] = $192;
  18749. $194 = (($$6631802) + 1)|0;
  18750. $exitcond881 = ($194|0)==($109|0);
  18751. if ($exitcond881) {
  18752. break;
  18753. } else {
  18754. $$6631802 = $194;
  18755. }
  18756. }
  18757. }
  18758. break;
  18759. }
  18760. default: {
  18761. }
  18762. }
  18763. $195 = (($$1578) + ($109)|0);
  18764. $$11$ph = $195;
  18765. } else {
  18766. if (!($19)) {
  18767. label = 58;
  18768. break;
  18769. }
  18770. $trunc = $$0588&255;
  18771. switch ($trunc<<24>>24) {
  18772. case 0: {
  18773. if ($43) {
  18774. $$9586 = $$1578;
  18775. } else {
  18776. $208 = ($$1612|0)>(0);
  18777. $209 = Math_imul($$6620742, $$1612)|0;
  18778. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  18779. while(1) {
  18780. if ($208) {
  18781. $$7632790 = 0;
  18782. while(1) {
  18783. $210 = (($$2579795) + ($$7632790)|0);
  18784. $211 = HEAP8[$210>>0]|0;
  18785. $212 = (($$2599794) + ($$7632790)|0);
  18786. HEAP8[$212>>0] = $211;
  18787. $213 = (($$7632790) + 1)|0;
  18788. $exitcond877 = ($213|0)==($$1612|0);
  18789. if ($exitcond877) {
  18790. break;
  18791. } else {
  18792. $$7632790 = $213;
  18793. }
  18794. }
  18795. }
  18796. $214 = (($$2599794) + ($$1612)|0);
  18797. HEAP8[$214>>0] = -1;
  18798. $215 = (($$2579795) + ($$1612)|0);
  18799. $216 = (($$2599794) + ($15)|0);
  18800. $$0614 = (($$0614796) + -1)|0;
  18801. $217 = ($$0614|0)==(0);
  18802. if ($217) {
  18803. break;
  18804. } else {
  18805. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  18806. }
  18807. }
  18808. $scevgep879 = (($$1578) + ($209)|0);
  18809. $$9586 = $scevgep879;
  18810. }
  18811. break;
  18812. }
  18813. case 1: {
  18814. if ($44) {
  18815. $$9586 = $$1578;
  18816. } else {
  18817. $206 = ($$1612|0)>(0);
  18818. $207 = Math_imul($$6620742, $$1612)|0;
  18819. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  18820. while(1) {
  18821. if ($206) {
  18822. $$8633782 = 0;
  18823. while(1) {
  18824. $218 = (($$3580787) + ($$8633782)|0);
  18825. $219 = HEAP8[$218>>0]|0;
  18826. $220 = $219&255;
  18827. $221 = (($$8633782) - ($15))|0;
  18828. $222 = (($$3600786) + ($221)|0);
  18829. $223 = HEAP8[$222>>0]|0;
  18830. $224 = $223&255;
  18831. $225 = (($224) + ($220))|0;
  18832. $226 = $225&255;
  18833. $227 = (($$3600786) + ($$8633782)|0);
  18834. HEAP8[$227>>0] = $226;
  18835. $228 = (($$8633782) + 1)|0;
  18836. $exitcond875 = ($228|0)==($$1612|0);
  18837. if ($exitcond875) {
  18838. break;
  18839. } else {
  18840. $$8633782 = $228;
  18841. }
  18842. }
  18843. }
  18844. $229 = (($$3600786) + ($$1612)|0);
  18845. HEAP8[$229>>0] = -1;
  18846. $230 = (($$3580787) + ($$1612)|0);
  18847. $231 = (($$3600786) + ($15)|0);
  18848. $$1615 = (($$1615788) + -1)|0;
  18849. $232 = ($$1615|0)==(0);
  18850. if ($232) {
  18851. break;
  18852. } else {
  18853. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  18854. }
  18855. }
  18856. $scevgep876 = (($$1578) + ($207)|0);
  18857. $$9586 = $scevgep876;
  18858. }
  18859. break;
  18860. }
  18861. case 2: {
  18862. if ($45) {
  18863. $$9586 = $$1578;
  18864. } else {
  18865. $204 = ($$1612|0)>(0);
  18866. $205 = Math_imul($$6620742, $$1612)|0;
  18867. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  18868. while(1) {
  18869. if ($204) {
  18870. $$9634773 = 0;
  18871. while(1) {
  18872. $233 = (($$4581779) + ($$9634773)|0);
  18873. $234 = HEAP8[$233>>0]|0;
  18874. $235 = $234&255;
  18875. $236 = (($$3592778) + ($$9634773)|0);
  18876. $237 = HEAP8[$236>>0]|0;
  18877. $238 = $237&255;
  18878. $239 = (($238) + ($235))|0;
  18879. $240 = $239&255;
  18880. $241 = (($$4601777) + ($$9634773)|0);
  18881. HEAP8[$241>>0] = $240;
  18882. $242 = (($$9634773) + 1)|0;
  18883. $exitcond873 = ($242|0)==($$1612|0);
  18884. if ($exitcond873) {
  18885. break;
  18886. } else {
  18887. $$9634773 = $242;
  18888. }
  18889. }
  18890. }
  18891. $243 = (($$4601777) + ($$1612)|0);
  18892. HEAP8[$243>>0] = -1;
  18893. $244 = (($$4581779) + ($$1612)|0);
  18894. $245 = (($$4601777) + ($15)|0);
  18895. $246 = (($$3592778) + ($15)|0);
  18896. $$2616 = (($$2616780) + -1)|0;
  18897. $247 = ($$2616|0)==(0);
  18898. if ($247) {
  18899. break;
  18900. } else {
  18901. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  18902. }
  18903. }
  18904. $scevgep874 = (($$1578) + ($205)|0);
  18905. $$9586 = $scevgep874;
  18906. }
  18907. break;
  18908. }
  18909. case 3: {
  18910. if ($46) {
  18911. $$9586 = $$1578;
  18912. } else {
  18913. $202 = ($$1612|0)>(0);
  18914. $203 = Math_imul($$6620742, $$1612)|0;
  18915. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  18916. while(1) {
  18917. if ($202) {
  18918. $$10635764 = 0;
  18919. while(1) {
  18920. $248 = (($$5582770) + ($$10635764)|0);
  18921. $249 = HEAP8[$248>>0]|0;
  18922. $250 = $249&255;
  18923. $251 = (($$4593769) + ($$10635764)|0);
  18924. $252 = HEAP8[$251>>0]|0;
  18925. $253 = $252&255;
  18926. $254 = (($$10635764) - ($15))|0;
  18927. $255 = (($$5602768) + ($254)|0);
  18928. $256 = HEAP8[$255>>0]|0;
  18929. $257 = $256&255;
  18930. $258 = (($257) + ($253))|0;
  18931. $259 = $258 >>> 1;
  18932. $260 = (($259) + ($250))|0;
  18933. $261 = $260&255;
  18934. $262 = (($$5602768) + ($$10635764)|0);
  18935. HEAP8[$262>>0] = $261;
  18936. $263 = (($$10635764) + 1)|0;
  18937. $exitcond871 = ($263|0)==($$1612|0);
  18938. if ($exitcond871) {
  18939. break;
  18940. } else {
  18941. $$10635764 = $263;
  18942. }
  18943. }
  18944. }
  18945. $264 = (($$5602768) + ($$1612)|0);
  18946. HEAP8[$264>>0] = -1;
  18947. $265 = (($$5582770) + ($$1612)|0);
  18948. $266 = (($$5602768) + ($15)|0);
  18949. $267 = (($$4593769) + ($15)|0);
  18950. $$3617 = (($$3617771) + -1)|0;
  18951. $268 = ($$3617|0)==(0);
  18952. if ($268) {
  18953. break;
  18954. } else {
  18955. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  18956. }
  18957. }
  18958. $scevgep872 = (($$1578) + ($203)|0);
  18959. $$9586 = $scevgep872;
  18960. }
  18961. break;
  18962. }
  18963. case 4: {
  18964. if ($47) {
  18965. $$9586 = $$1578;
  18966. } else {
  18967. $200 = ($$1612|0)>(0);
  18968. $201 = Math_imul($$6620742, $$1612)|0;
  18969. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  18970. while(1) {
  18971. if ($200) {
  18972. $$11636755 = 0;
  18973. while(1) {
  18974. $269 = (($$6583761) + ($$11636755)|0);
  18975. $270 = HEAP8[$269>>0]|0;
  18976. $271 = $270&255;
  18977. $272 = (($$11636755) - ($15))|0;
  18978. $273 = (($$6603759) + ($272)|0);
  18979. $274 = HEAP8[$273>>0]|0;
  18980. $275 = $274&255;
  18981. $276 = (($$5594760) + ($$11636755)|0);
  18982. $277 = HEAP8[$276>>0]|0;
  18983. $278 = $277&255;
  18984. $279 = (($$5594760) + ($272)|0);
  18985. $280 = HEAP8[$279>>0]|0;
  18986. $281 = $280&255;
  18987. $282 = (_stbi__paeth($275,$278,$281)|0);
  18988. $283 = (($282) + ($271))|0;
  18989. $284 = $283&255;
  18990. $285 = (($$6603759) + ($$11636755)|0);
  18991. HEAP8[$285>>0] = $284;
  18992. $286 = (($$11636755) + 1)|0;
  18993. $exitcond869 = ($286|0)==($$1612|0);
  18994. if ($exitcond869) {
  18995. break;
  18996. } else {
  18997. $$11636755 = $286;
  18998. }
  18999. }
  19000. }
  19001. $287 = (($$6603759) + ($$1612)|0);
  19002. HEAP8[$287>>0] = -1;
  19003. $288 = (($$6583761) + ($$1612)|0);
  19004. $289 = (($$6603759) + ($15)|0);
  19005. $290 = (($$5594760) + ($15)|0);
  19006. $$4618 = (($$4618762) + -1)|0;
  19007. $291 = ($$4618|0)==(0);
  19008. if ($291) {
  19009. break;
  19010. } else {
  19011. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  19012. }
  19013. }
  19014. $scevgep870 = (($$1578) + ($201)|0);
  19015. $$9586 = $scevgep870;
  19016. }
  19017. break;
  19018. }
  19019. case 5: {
  19020. if ($48) {
  19021. $$9586 = $$1578;
  19022. } else {
  19023. $198 = ($$1612|0)>(0);
  19024. $199 = Math_imul($$6620742, $$1612)|0;
  19025. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  19026. while(1) {
  19027. if ($198) {
  19028. $$12747 = 0;
  19029. while(1) {
  19030. $292 = (($$7584752) + ($$12747)|0);
  19031. $293 = HEAP8[$292>>0]|0;
  19032. $294 = $293&255;
  19033. $295 = (($$12747) - ($15))|0;
  19034. $296 = (($$7604751) + ($295)|0);
  19035. $297 = HEAP8[$296>>0]|0;
  19036. $298 = $297&255;
  19037. $299 = $298 >>> 1;
  19038. $300 = (($299) + ($294))|0;
  19039. $301 = $300&255;
  19040. $302 = (($$7604751) + ($$12747)|0);
  19041. HEAP8[$302>>0] = $301;
  19042. $303 = (($$12747) + 1)|0;
  19043. $exitcond867 = ($303|0)==($$1612|0);
  19044. if ($exitcond867) {
  19045. break;
  19046. } else {
  19047. $$12747 = $303;
  19048. }
  19049. }
  19050. }
  19051. $304 = (($$7604751) + ($$1612)|0);
  19052. HEAP8[$304>>0] = -1;
  19053. $305 = (($$7584752) + ($$1612)|0);
  19054. $306 = (($$7604751) + ($15)|0);
  19055. $$5619 = (($$5619753) + -1)|0;
  19056. $307 = ($$5619|0)==(0);
  19057. if ($307) {
  19058. break;
  19059. } else {
  19060. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  19061. }
  19062. }
  19063. $scevgep868 = (($$1578) + ($199)|0);
  19064. $$9586 = $scevgep868;
  19065. }
  19066. break;
  19067. }
  19068. case 6: {
  19069. if ($49) {
  19070. $$9586 = $$1578;
  19071. } else {
  19072. $196 = ($$1612|0)>(0);
  19073. $197 = Math_imul($$6620742, $$1612)|0;
  19074. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  19075. while(1) {
  19076. if ($196) {
  19077. $$13739 = 0;
  19078. while(1) {
  19079. $308 = (($$8585744) + ($$13739)|0);
  19080. $309 = HEAP8[$308>>0]|0;
  19081. $310 = $309&255;
  19082. $311 = (($$13739) - ($15))|0;
  19083. $312 = (($$8605743) + ($311)|0);
  19084. $313 = HEAP8[$312>>0]|0;
  19085. $314 = $313&255;
  19086. $315 = (_stbi__paeth($314,0,0)|0);
  19087. $316 = (($315) + ($310))|0;
  19088. $317 = $316&255;
  19089. $318 = (($$8605743) + ($$13739)|0);
  19090. HEAP8[$318>>0] = $317;
  19091. $319 = (($$13739) + 1)|0;
  19092. $exitcond865 = ($319|0)==($$1612|0);
  19093. if ($exitcond865) {
  19094. break;
  19095. } else {
  19096. $$13739 = $319;
  19097. }
  19098. }
  19099. }
  19100. $320 = (($$8605743) + ($$1612)|0);
  19101. HEAP8[$320>>0] = -1;
  19102. $321 = (($$8585744) + ($$1612)|0);
  19103. $322 = (($$8605743) + ($15)|0);
  19104. $$6620 = (($$6620745) + -1)|0;
  19105. $323 = ($$6620|0)==(0);
  19106. if ($323) {
  19107. break;
  19108. } else {
  19109. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  19110. }
  19111. }
  19112. $scevgep866 = (($$1578) + ($197)|0);
  19113. $$9586 = $scevgep866;
  19114. }
  19115. break;
  19116. }
  19117. default: {
  19118. $$9586 = $$1578;
  19119. }
  19120. }
  19121. if ($brmerge894) {
  19122. $$11$ph = $$9586;
  19123. } else {
  19124. $324 = HEAP32[$21>>2]|0;
  19125. $325 = (($324) + ($51)|0);
  19126. $326 = (($$1612) + 1)|0;
  19127. $$7621798 = 0;$$9606799 = $325;
  19128. while(1) {
  19129. $327 = (($$9606799) + ($326)|0);
  19130. HEAP8[$327>>0] = -1;
  19131. $328 = (($$7621798) + 1)|0;
  19132. $329 = (($$9606799) + ($15)|0);
  19133. $exitcond880 = ($328|0)==($4|0);
  19134. if ($exitcond880) {
  19135. $$11$ph = $$9586;
  19136. break;
  19137. } else {
  19138. $$7621798 = $328;$$9606799 = $329;
  19139. }
  19140. }
  19141. }
  19142. }
  19143. $330 = (($$0623814) + 1)|0;
  19144. $331 = ($330>>>0)<($5>>>0);
  19145. if ($331) {
  19146. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  19147. } else {
  19148. break L18;
  19149. }
  19150. }
  19151. if ((label|0) == 16) {
  19152. ___assert_fail((10774|0),(10116|0),4315,(10729|0));
  19153. // unreachable;
  19154. }
  19155. else if ((label|0) == 58) {
  19156. ___assert_fail((10800|0),(10116|0),4377,(10729|0));
  19157. // unreachable;
  19158. }
  19159. else if ((label|0) == 105) {
  19160. _stbi__err(10817);
  19161. $$2 = 0;
  19162. return ($$2|0);
  19163. }
  19164. }
  19165. } while(0);
  19166. $332 = ($6|0)<(8);
  19167. if (!($332)) {
  19168. if (!($8)) {
  19169. $$2 = 1;
  19170. return ($$2|0);
  19171. }
  19172. $601 = Math_imul($4, $3)|0;
  19173. $602 = Math_imul($601, $5)|0;
  19174. $603 = ($602|0)==(0);
  19175. if ($603) {
  19176. $$2 = 1;
  19177. return ($$2|0);
  19178. }
  19179. $604 = HEAP32[$21>>2]|0;
  19180. $$0731 = $604;$$8622729 = 0;
  19181. while(1) {
  19182. $605 = HEAP8[$$0731>>0]|0;
  19183. $606 = $605&255;
  19184. $607 = $606 << 8;
  19185. $608 = ((($$0731)) + 1|0);
  19186. $609 = HEAP8[$608>>0]|0;
  19187. $610 = $609&255;
  19188. $611 = $607 | $610;
  19189. $612 = $611&65535;
  19190. HEAP16[$$0731>>1] = $612;
  19191. $613 = (($$8622729) + 1)|0;
  19192. $614 = ((($$0731)) + 2|0);
  19193. $exitcond = ($613|0)==($602|0);
  19194. if ($exitcond) {
  19195. $$2 = 1;
  19196. break;
  19197. } else {
  19198. $$0731 = $614;$$8622729 = $613;
  19199. }
  19200. }
  19201. return ($$2|0);
  19202. }
  19203. $333 = ($5|0)==(0);
  19204. if ($333) {
  19205. $$2 = 1;
  19206. return ($$2|0);
  19207. }
  19208. $334 = (0 - ($26))|0;
  19209. $335 = ($7|0)==(0);
  19210. $336 = (10513 + ($6)|0);
  19211. $$0568724 = (($4) + -1)|0;
  19212. $337 = ($$0568724|0)>(-1);
  19213. $$1721 = (($4) + -1)|0;
  19214. $338 = ($$1721|0)>(-1);
  19215. $339 = ($23|0)>(1);
  19216. $340 = ($23|0)>(3);
  19217. $341 = ($23|0)>(7);
  19218. $342 = (($23) + -8)|0;
  19219. $343 = $342 >>> 3;
  19220. $344 = $343 << 3;
  19221. $345 = (($344) + 8)|0;
  19222. $346 = (($342) - ($344))|0;
  19223. $347 = (($343) + ($11))|0;
  19224. $348 = (($347) + 1)|0;
  19225. $349 = (($348) - ($26))|0;
  19226. $350 = (($23) + -4)|0;
  19227. $351 = $350 >>> 2;
  19228. $352 = $351 << 2;
  19229. $353 = (($352) + 4)|0;
  19230. $354 = (($350) - ($352))|0;
  19231. $355 = (($351) + ($11))|0;
  19232. $356 = (($355) + 1)|0;
  19233. $357 = (($356) - ($26))|0;
  19234. $358 = (($23) + -2)|0;
  19235. $359 = $358 >>> 1;
  19236. $360 = $359 << 1;
  19237. $361 = (($360) + 2)|0;
  19238. $362 = (($358) - ($360))|0;
  19239. $363 = (($359) + ($11))|0;
  19240. $364 = (($363) + 1)|0;
  19241. $365 = (($364) - ($26))|0;
  19242. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  19243. L174: while(1) {
  19244. $366 = HEAP32[$21>>2]|0;
  19245. $367 = Math_imul($$1624727, $12)|0;
  19246. $368 = (($366) + ($367)|0);
  19247. $369 = (($368) + ($11)|0);
  19248. $370 = (($369) + ($334)|0);
  19249. if ($335) {
  19250. $371 = HEAP8[$336>>0]|0;
  19251. $372 = $371&255;
  19252. $377 = $372;
  19253. } else {
  19254. $377 = 1;
  19255. }
  19256. switch ($6|0) {
  19257. case 4: {
  19258. if ($339) {
  19259. $scevgep859 = (($366) + ($indvars$iv857)|0);
  19260. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  19261. while(1) {
  19262. $373 = HEAP8[$$0571715>>0]|0;
  19263. $374 = $373&255;
  19264. $375 = $374 >>> 4;
  19265. $376 = Math_imul($375, $377)|0;
  19266. $378 = $376&255;
  19267. $379 = ((($$0574714)) + 1|0);
  19268. HEAP8[$$0574714>>0] = $378;
  19269. $380 = HEAP8[$$0571715>>0]|0;
  19270. $381 = $380 & 15;
  19271. $382 = $381&255;
  19272. $383 = Math_imul($382, $377)|0;
  19273. $384 = $383&255;
  19274. $385 = ((($$0574714)) + 2|0);
  19275. HEAP8[$379>>0] = $384;
  19276. $386 = (($$14713) + -2)|0;
  19277. $387 = ((($$0571715)) + 1|0);
  19278. $388 = ($386|0)>(1);
  19279. if ($388) {
  19280. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  19281. } else {
  19282. break;
  19283. }
  19284. }
  19285. $scevgep862 = (($366) + ($indvars$iv860)|0);
  19286. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  19287. } else {
  19288. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  19289. }
  19290. $389 = ($$14$lcssa|0)==(1);
  19291. if ($389) {
  19292. $390 = HEAP8[$$0571$lcssa>>0]|0;
  19293. $391 = $390&255;
  19294. $392 = $391 >>> 4;
  19295. $393 = Math_imul($392, $377)|0;
  19296. $394 = $393&255;
  19297. HEAP8[$$0574$lcssa>>0] = $394;
  19298. }
  19299. break;
  19300. }
  19301. case 2: {
  19302. if ($340) {
  19303. $scevgep853 = (($366) + ($indvars$iv851)|0);
  19304. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  19305. while(1) {
  19306. $395 = HEAP8[$$1572707>>0]|0;
  19307. $396 = $395&255;
  19308. $397 = $396 >>> 6;
  19309. $398 = Math_imul($397, $377)|0;
  19310. $399 = $398&255;
  19311. $400 = ((($$1575706)) + 1|0);
  19312. HEAP8[$$1575706>>0] = $399;
  19313. $401 = HEAP8[$$1572707>>0]|0;
  19314. $402 = $401&255;
  19315. $403 = $402 >>> 4;
  19316. $404 = $403 & 3;
  19317. $405 = Math_imul($404, $377)|0;
  19318. $406 = $405&255;
  19319. $407 = ((($$1575706)) + 2|0);
  19320. HEAP8[$400>>0] = $406;
  19321. $408 = HEAP8[$$1572707>>0]|0;
  19322. $409 = $408&255;
  19323. $410 = $409 >>> 2;
  19324. $411 = $410 & 3;
  19325. $412 = Math_imul($411, $377)|0;
  19326. $413 = $412&255;
  19327. $414 = ((($$1575706)) + 3|0);
  19328. HEAP8[$407>>0] = $413;
  19329. $415 = HEAP8[$$1572707>>0]|0;
  19330. $416 = $415 & 3;
  19331. $417 = $416&255;
  19332. $418 = Math_imul($417, $377)|0;
  19333. $419 = $418&255;
  19334. $420 = ((($$1575706)) + 4|0);
  19335. HEAP8[$414>>0] = $419;
  19336. $421 = (($$15705) + -4)|0;
  19337. $422 = ((($$1572707)) + 1|0);
  19338. $423 = ($421|0)>(3);
  19339. if ($423) {
  19340. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  19341. } else {
  19342. break;
  19343. }
  19344. }
  19345. $scevgep856 = (($366) + ($indvars$iv854)|0);
  19346. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  19347. } else {
  19348. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  19349. }
  19350. $424 = ($$15$lcssa|0)>(0);
  19351. if ($424) {
  19352. $425 = HEAP8[$$1572$lcssa>>0]|0;
  19353. $426 = $425&255;
  19354. $427 = $426 >>> 6;
  19355. $428 = Math_imul($427, $377)|0;
  19356. $429 = $428&255;
  19357. HEAP8[$$1575$lcssa>>0] = $429;
  19358. $430 = ($$15$lcssa|0)==(1);
  19359. if (!($430)) {
  19360. $431 = ((($$1575$lcssa)) + 1|0);
  19361. $432 = HEAP8[$$1572$lcssa>>0]|0;
  19362. $433 = $432&255;
  19363. $434 = $433 >>> 4;
  19364. $435 = $434 & 3;
  19365. $436 = Math_imul($435, $377)|0;
  19366. $437 = $436&255;
  19367. HEAP8[$431>>0] = $437;
  19368. $438 = ($$15$lcssa|0)>(2);
  19369. if ($438) {
  19370. $439 = ((($$1575$lcssa)) + 2|0);
  19371. $440 = HEAP8[$$1572$lcssa>>0]|0;
  19372. $441 = $440&255;
  19373. $442 = $441 >>> 2;
  19374. $443 = $442 & 3;
  19375. $444 = Math_imul($443, $377)|0;
  19376. $445 = $444&255;
  19377. HEAP8[$439>>0] = $445;
  19378. }
  19379. }
  19380. }
  19381. break;
  19382. }
  19383. case 1: {
  19384. if ($341) {
  19385. $scevgep = (($366) + ($indvars$iv)|0);
  19386. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  19387. while(1) {
  19388. $446 = HEAP8[$$2573702>>0]|0;
  19389. $447 = $446&255;
  19390. $448 = $447 >>> 7;
  19391. $449 = (0 - ($448))|0;
  19392. $450 = $377 & $449;
  19393. $451 = $450&255;
  19394. $452 = ((($$4701)) + 1|0);
  19395. HEAP8[$$4701>>0] = $451;
  19396. $453 = HEAP8[$$2573702>>0]|0;
  19397. $454 = $453&255;
  19398. $455 = $454 >>> 6;
  19399. $456 = $455 & 1;
  19400. $457 = (0 - ($456))|0;
  19401. $458 = $377 & $457;
  19402. $459 = $458&255;
  19403. $460 = ((($$4701)) + 2|0);
  19404. HEAP8[$452>>0] = $459;
  19405. $461 = HEAP8[$$2573702>>0]|0;
  19406. $462 = $461&255;
  19407. $463 = $462 >>> 5;
  19408. $464 = $463 & 1;
  19409. $465 = (0 - ($464))|0;
  19410. $466 = $377 & $465;
  19411. $467 = $466&255;
  19412. $468 = ((($$4701)) + 3|0);
  19413. HEAP8[$460>>0] = $467;
  19414. $469 = HEAP8[$$2573702>>0]|0;
  19415. $470 = $469&255;
  19416. $471 = $470 >>> 4;
  19417. $472 = $471 & 1;
  19418. $473 = (0 - ($472))|0;
  19419. $474 = $377 & $473;
  19420. $475 = $474&255;
  19421. $476 = ((($$4701)) + 4|0);
  19422. HEAP8[$468>>0] = $475;
  19423. $477 = HEAP8[$$2573702>>0]|0;
  19424. $478 = $477&255;
  19425. $479 = $478 >>> 3;
  19426. $480 = $479 & 1;
  19427. $481 = (0 - ($480))|0;
  19428. $482 = $377 & $481;
  19429. $483 = $482&255;
  19430. $484 = ((($$4701)) + 5|0);
  19431. HEAP8[$476>>0] = $483;
  19432. $485 = HEAP8[$$2573702>>0]|0;
  19433. $486 = $485&255;
  19434. $487 = $486 >>> 2;
  19435. $488 = $487 & 1;
  19436. $489 = (0 - ($488))|0;
  19437. $490 = $377 & $489;
  19438. $491 = $490&255;
  19439. $492 = ((($$4701)) + 6|0);
  19440. HEAP8[$484>>0] = $491;
  19441. $493 = HEAP8[$$2573702>>0]|0;
  19442. $494 = $493&255;
  19443. $495 = $494 >>> 1;
  19444. $496 = $495 & 1;
  19445. $497 = (0 - ($496))|0;
  19446. $498 = $377 & $497;
  19447. $499 = $498&255;
  19448. $500 = ((($$4701)) + 7|0);
  19449. HEAP8[$492>>0] = $499;
  19450. $501 = HEAP8[$$2573702>>0]|0;
  19451. $502 = $501 & 1;
  19452. $503 = $502&255;
  19453. $504 = (0 - ($503))|0;
  19454. $505 = $377 & $504;
  19455. $506 = $505&255;
  19456. $507 = ((($$4701)) + 8|0);
  19457. HEAP8[$500>>0] = $506;
  19458. $508 = (($$16700) + -8)|0;
  19459. $509 = ((($$2573702)) + 1|0);
  19460. $510 = ($508|0)>(7);
  19461. if ($510) {
  19462. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  19463. } else {
  19464. break;
  19465. }
  19466. }
  19467. $scevgep850 = (($366) + ($indvars$iv848)|0);
  19468. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  19469. } else {
  19470. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  19471. }
  19472. $511 = ($$16$lcssa|0)>(0);
  19473. if ($511) {
  19474. $512 = HEAP8[$$2573$lcssa>>0]|0;
  19475. $513 = $512&255;
  19476. $514 = $513 >>> 7;
  19477. $515 = (0 - ($514))|0;
  19478. $516 = $377 & $515;
  19479. $517 = $516&255;
  19480. HEAP8[$$4$lcssa>>0] = $517;
  19481. $518 = ($$16$lcssa|0)==(1);
  19482. if (!($518)) {
  19483. $519 = ((($$4$lcssa)) + 1|0);
  19484. $520 = HEAP8[$$2573$lcssa>>0]|0;
  19485. $521 = $520&255;
  19486. $522 = $521 >>> 6;
  19487. $523 = $522 & 1;
  19488. $524 = (0 - ($523))|0;
  19489. $525 = $377 & $524;
  19490. $526 = $525&255;
  19491. HEAP8[$519>>0] = $526;
  19492. $527 = ($$16$lcssa|0)>(2);
  19493. if ($527) {
  19494. $528 = ((($$4$lcssa)) + 2|0);
  19495. $529 = HEAP8[$$2573$lcssa>>0]|0;
  19496. $530 = $529&255;
  19497. $531 = $530 >>> 5;
  19498. $532 = $531 & 1;
  19499. $533 = (0 - ($532))|0;
  19500. $534 = $377 & $533;
  19501. $535 = $534&255;
  19502. HEAP8[$528>>0] = $535;
  19503. $536 = ($$16$lcssa|0)==(3);
  19504. if (!($536)) {
  19505. $537 = ((($$4$lcssa)) + 3|0);
  19506. $538 = HEAP8[$$2573$lcssa>>0]|0;
  19507. $539 = $538&255;
  19508. $540 = $539 >>> 4;
  19509. $541 = $540 & 1;
  19510. $542 = (0 - ($541))|0;
  19511. $543 = $377 & $542;
  19512. $544 = $543&255;
  19513. HEAP8[$537>>0] = $544;
  19514. $545 = ($$16$lcssa|0)>(4);
  19515. if ($545) {
  19516. $546 = ((($$4$lcssa)) + 4|0);
  19517. $547 = HEAP8[$$2573$lcssa>>0]|0;
  19518. $548 = $547&255;
  19519. $549 = $548 >>> 3;
  19520. $550 = $549 & 1;
  19521. $551 = (0 - ($550))|0;
  19522. $552 = $377 & $551;
  19523. $553 = $552&255;
  19524. HEAP8[$546>>0] = $553;
  19525. $554 = ($$16$lcssa|0)==(5);
  19526. if (!($554)) {
  19527. $555 = ((($$4$lcssa)) + 5|0);
  19528. $556 = HEAP8[$$2573$lcssa>>0]|0;
  19529. $557 = $556&255;
  19530. $558 = $557 >>> 2;
  19531. $559 = $558 & 1;
  19532. $560 = (0 - ($559))|0;
  19533. $561 = $377 & $560;
  19534. $562 = $561&255;
  19535. HEAP8[$555>>0] = $562;
  19536. $563 = ($$16$lcssa|0)>(6);
  19537. if ($563) {
  19538. $564 = ((($$4$lcssa)) + 6|0);
  19539. $565 = HEAP8[$$2573$lcssa>>0]|0;
  19540. $566 = $565&255;
  19541. $567 = $566 >>> 1;
  19542. $568 = $567 & 1;
  19543. $569 = (0 - ($568))|0;
  19544. $570 = $377 & $569;
  19545. $571 = $570&255;
  19546. HEAP8[$564>>0] = $571;
  19547. }
  19548. }
  19549. }
  19550. }
  19551. }
  19552. }
  19553. }
  19554. break;
  19555. }
  19556. default: {
  19557. }
  19558. }
  19559. L213: do {
  19560. if (!($17)) {
  19561. $572 = HEAP32[$21>>2]|0;
  19562. $573 = (($572) + ($367)|0);
  19563. switch ($14|0) {
  19564. case 1: {
  19565. if ($337) {
  19566. $$0568725 = $$0568724;
  19567. } else {
  19568. break L213;
  19569. }
  19570. while(1) {
  19571. $574 = $$0568725 << 1;
  19572. $575 = $574 | 1;
  19573. $576 = (($573) + ($575)|0);
  19574. HEAP8[$576>>0] = -1;
  19575. $577 = (($573) + ($$0568725)|0);
  19576. $578 = HEAP8[$577>>0]|0;
  19577. $579 = (($573) + ($574)|0);
  19578. HEAP8[$579>>0] = $578;
  19579. $$0568 = (($$0568725) + -1)|0;
  19580. $580 = ($$0568|0)>(-1);
  19581. if ($580) {
  19582. $$0568725 = $$0568;
  19583. } else {
  19584. break;
  19585. }
  19586. }
  19587. break;
  19588. }
  19589. case 3: {
  19590. if ($338) {
  19591. $$1722 = $$1721;
  19592. } else {
  19593. break L213;
  19594. }
  19595. while(1) {
  19596. $581 = $$1722 << 2;
  19597. $582 = $581 | 3;
  19598. $583 = (($573) + ($582)|0);
  19599. HEAP8[$583>>0] = -1;
  19600. $584 = ($$1722*3)|0;
  19601. $585 = (($584) + 2)|0;
  19602. $586 = (($573) + ($585)|0);
  19603. $587 = HEAP8[$586>>0]|0;
  19604. $588 = $581 | 2;
  19605. $589 = (($573) + ($588)|0);
  19606. HEAP8[$589>>0] = $587;
  19607. $590 = (($584) + 1)|0;
  19608. $591 = (($573) + ($590)|0);
  19609. $592 = HEAP8[$591>>0]|0;
  19610. $593 = $581 | 1;
  19611. $594 = (($573) + ($593)|0);
  19612. HEAP8[$594>>0] = $592;
  19613. $595 = (($573) + ($584)|0);
  19614. $596 = HEAP8[$595>>0]|0;
  19615. $597 = (($573) + ($581)|0);
  19616. HEAP8[$597>>0] = $596;
  19617. $$1 = (($$1722) + -1)|0;
  19618. $598 = ($$1|0)>(-1);
  19619. if ($598) {
  19620. $$1722 = $$1;
  19621. } else {
  19622. break;
  19623. }
  19624. }
  19625. break;
  19626. }
  19627. default: {
  19628. label = 144;
  19629. break L174;
  19630. }
  19631. }
  19632. }
  19633. } while(0);
  19634. $599 = (($$1624727) + 1)|0;
  19635. $600 = ($599>>>0)<($5>>>0);
  19636. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  19637. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  19638. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  19639. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  19640. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  19641. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  19642. if ($600) {
  19643. $$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;
  19644. } else {
  19645. $$2 = 1;
  19646. label = 151;
  19647. break;
  19648. }
  19649. }
  19650. if ((label|0) == 144) {
  19651. ___assert_fail((10832|0),(10116|0),4466,(10729|0));
  19652. // unreachable;
  19653. }
  19654. else if ((label|0) == 151) {
  19655. return ($$2|0);
  19656. }
  19657. return (0)|0;
  19658. }
  19659. function _stbi__paeth($0,$1,$2) {
  19660. $0 = $0|0;
  19661. $1 = $1|0;
  19662. $2 = $2|0;
  19663. 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;
  19664. var label = 0, sp = 0;
  19665. sp = STACKTOP;
  19666. $3 = (($1) + ($0))|0;
  19667. $4 = (($3) - ($2))|0;
  19668. $5 = (($4) - ($0))|0;
  19669. $ispos = ($5|0)>(-1);
  19670. $neg = (0 - ($5))|0;
  19671. $6 = $ispos ? $5 : $neg;
  19672. $7 = (($4) - ($1))|0;
  19673. $ispos26 = ($7|0)>(-1);
  19674. $neg27 = (0 - ($7))|0;
  19675. $8 = $ispos26 ? $7 : $neg27;
  19676. $9 = (($4) - ($2))|0;
  19677. $ispos28 = ($9|0)>(-1);
  19678. $neg29 = (0 - ($9))|0;
  19679. $10 = $ispos28 ? $9 : $neg29;
  19680. $11 = ($6|0)>($8|0);
  19681. $12 = ($6|0)>($10|0);
  19682. $or$cond = $11 | $12;
  19683. $13 = ($8|0)>($10|0);
  19684. $$ = $13 ? $2 : $1;
  19685. $$0 = $or$cond ? $$ : $0;
  19686. return ($$0|0);
  19687. }
  19688. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  19689. $0 = $0|0;
  19690. $1 = $1|0;
  19691. $2 = $2|0;
  19692. $3 = $3|0;
  19693. $4 = $4|0;
  19694. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19695. sp = STACKTOP;
  19696. $5 = ((($0)) + 20|0);
  19697. HEAP32[$5>>2] = $1;
  19698. $6 = ((($0)) + 16|0);
  19699. HEAP32[$6>>2] = $1;
  19700. $7 = (($1) + ($2)|0);
  19701. $8 = ((($0)) + 24|0);
  19702. HEAP32[$8>>2] = $7;
  19703. $9 = ((($0)) + 28|0);
  19704. HEAP32[$9>>2] = $3;
  19705. $10 = (_stbi__parse_zlib($0,$4)|0);
  19706. return ($10|0);
  19707. }
  19708. function _stbi__parse_zlib($0,$1) {
  19709. $0 = $0|0;
  19710. $1 = $1|0;
  19711. 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;
  19712. var $9 = 0, label = 0, sp = 0;
  19713. sp = STACKTOP;
  19714. $2 = ($1|0)==(0);
  19715. if (!($2)) {
  19716. $3 = (_stbi__parse_zlib_header($0)|0);
  19717. $4 = ($3|0)==(0);
  19718. if ($4) {
  19719. $$0 = 0;
  19720. return ($$0|0);
  19721. }
  19722. }
  19723. $5 = ((($0)) + 8|0);
  19724. HEAP32[$5>>2] = 0;
  19725. $6 = ((($0)) + 12|0);
  19726. HEAP32[$6>>2] = 0;
  19727. $7 = ((($0)) + 32|0);
  19728. $8 = ((($0)) + 2052|0);
  19729. L5: while(1) {
  19730. $9 = (_stbi__zreceive($0,1)|0);
  19731. $10 = (_stbi__zreceive($0,2)|0);
  19732. switch ($10|0) {
  19733. case 3: {
  19734. $$0 = 0;
  19735. label = 11;
  19736. break L5;
  19737. break;
  19738. }
  19739. case 0: {
  19740. $11 = (_stbi__parse_uncompressed_block($0)|0);
  19741. $12 = ($11|0)==(0);
  19742. if ($12) {
  19743. $$0 = 0;
  19744. label = 11;
  19745. break L5;
  19746. }
  19747. break;
  19748. }
  19749. case 1: {
  19750. $13 = (_stbi__zbuild_huffman($7,10843,288)|0);
  19751. $14 = ($13|0)==(0);
  19752. if ($14) {
  19753. $$0 = 0;
  19754. label = 11;
  19755. break L5;
  19756. }
  19757. $15 = (_stbi__zbuild_huffman($8,11131,32)|0);
  19758. $16 = ($15|0)==(0);
  19759. if ($16) {
  19760. $$0 = 0;
  19761. label = 11;
  19762. break L5;
  19763. } else {
  19764. label = 9;
  19765. }
  19766. break;
  19767. }
  19768. default: {
  19769. $17 = (_stbi__compute_huffman_codes($0)|0);
  19770. $18 = ($17|0)==(0);
  19771. if ($18) {
  19772. $$0 = 0;
  19773. label = 11;
  19774. break L5;
  19775. } else {
  19776. label = 9;
  19777. }
  19778. }
  19779. }
  19780. if ((label|0) == 9) {
  19781. label = 0;
  19782. $19 = (_stbi__parse_huffman_block($0)|0);
  19783. $20 = ($19|0)==(0);
  19784. if ($20) {
  19785. $$0 = 0;
  19786. label = 11;
  19787. break;
  19788. }
  19789. }
  19790. $21 = ($9|0)==(0);
  19791. if (!($21)) {
  19792. $$0 = 1;
  19793. label = 11;
  19794. break;
  19795. }
  19796. }
  19797. if ((label|0) == 11) {
  19798. return ($$0|0);
  19799. }
  19800. return (0)|0;
  19801. }
  19802. function _stbi__parse_zlib_header($0) {
  19803. $0 = $0|0;
  19804. 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;
  19805. sp = STACKTOP;
  19806. $1 = (_stbi__zget8($0)|0);
  19807. $2 = $1&255;
  19808. $3 = $2 & 15;
  19809. $4 = (_stbi__zget8($0)|0);
  19810. $5 = $4&255;
  19811. $6 = $2 << 8;
  19812. $7 = $6 | $5;
  19813. $8 = (($7>>>0) % 31)&-1;
  19814. $9 = ($8|0)==(0);
  19815. if (!($9)) {
  19816. _stbi__err(11478);
  19817. $$0 = 0;
  19818. return ($$0|0);
  19819. }
  19820. $10 = $5 & 32;
  19821. $11 = ($10|0)==(0);
  19822. if (!($11)) {
  19823. _stbi__err(11494);
  19824. $$0 = 0;
  19825. return ($$0|0);
  19826. }
  19827. $12 = ($3|0)==(8);
  19828. if ($12) {
  19829. $$0 = 1;
  19830. return ($$0|0);
  19831. }
  19832. _stbi__err(11509);
  19833. $$0 = 0;
  19834. return ($$0|0);
  19835. }
  19836. function _stbi__zreceive($0,$1) {
  19837. $0 = $0|0;
  19838. $1 = $1|0;
  19839. 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;
  19840. sp = STACKTOP;
  19841. $2 = ((($0)) + 8|0);
  19842. $3 = HEAP32[$2>>2]|0;
  19843. $4 = ($3|0)<($1|0);
  19844. if ($4) {
  19845. _stbi__fill_bits($0);
  19846. }
  19847. $5 = ((($0)) + 12|0);
  19848. $6 = HEAP32[$5>>2]|0;
  19849. $7 = 1 << $1;
  19850. $8 = (($7) + -1)|0;
  19851. $9 = $6 & $8;
  19852. $10 = $6 >>> $1;
  19853. HEAP32[$5>>2] = $10;
  19854. $11 = HEAP32[$2>>2]|0;
  19855. $12 = (($11) - ($1))|0;
  19856. HEAP32[$2>>2] = $12;
  19857. return ($9|0);
  19858. }
  19859. function _stbi__parse_uncompressed_block($0) {
  19860. $0 = $0|0;
  19861. 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;
  19862. 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;
  19863. 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;
  19864. 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;
  19865. sp = STACKTOP;
  19866. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  19867. $1 = sp;
  19868. $2 = ((($0)) + 8|0);
  19869. $3 = HEAP32[$2>>2]|0;
  19870. $4 = $3 & 7;
  19871. $5 = ($4|0)==(0);
  19872. if ($5) {
  19873. $$ph = $3;
  19874. } else {
  19875. (_stbi__zreceive($0,$4)|0);
  19876. $$pr = HEAP32[$2>>2]|0;
  19877. $$ph = $$pr;
  19878. }
  19879. $6 = ($$ph|0)>(0);
  19880. if ($6) {
  19881. $7 = ((($0)) + 12|0);
  19882. $$promoted = HEAP32[$7>>2]|0;
  19883. $8 = $$ph ^ -1;
  19884. $9 = ($8|0)>(-9);
  19885. $smax = $9 ? $8 : -9;
  19886. $10 = (($$ph) + ($smax))|0;
  19887. $11 = (($10) + 8)|0;
  19888. $12 = $11 >>> 3;
  19889. $13 = (($12) + 1)|0;
  19890. $14 = $12 << 3;
  19891. $$037 = 0;$16 = $$promoted;
  19892. while(1) {
  19893. $15 = $16&255;
  19894. $17 = (($$037) + 1)|0;
  19895. $18 = (($1) + ($$037)|0);
  19896. HEAP8[$18>>0] = $15;
  19897. $19 = $16 >>> 8;
  19898. $exitcond47 = ($17|0)==($13|0);
  19899. if ($exitcond47) {
  19900. break;
  19901. } else {
  19902. $$037 = $17;$16 = $19;
  19903. }
  19904. }
  19905. $20 = (($$ph) + -8)|0;
  19906. $21 = (($20) - ($14))|0;
  19907. HEAP32[$7>>2] = $19;
  19908. HEAP32[$2>>2] = $21;
  19909. $$0$lcssa = $13;$$lcssa = $21;
  19910. } else {
  19911. $$0$lcssa = 0;$$lcssa = $$ph;
  19912. }
  19913. $22 = ($$lcssa|0)==(0);
  19914. if (!($22)) {
  19915. ___assert_fail((11400|0),(10116|0),4033,(11417|0));
  19916. // unreachable;
  19917. }
  19918. $23 = ($$0$lcssa|0)<(4);
  19919. if ($23) {
  19920. $$136 = $$0$lcssa;
  19921. while(1) {
  19922. $24 = (_stbi__zget8($0)|0);
  19923. $25 = (($$136) + 1)|0;
  19924. $26 = (($1) + ($$136)|0);
  19925. HEAP8[$26>>0] = $24;
  19926. $exitcond = ($25|0)==(4);
  19927. if ($exitcond) {
  19928. break;
  19929. } else {
  19930. $$136 = $25;
  19931. }
  19932. }
  19933. }
  19934. $27 = ((($1)) + 1|0);
  19935. $28 = HEAP8[$27>>0]|0;
  19936. $29 = $28&255;
  19937. $30 = $29 << 8;
  19938. $31 = HEAP8[$1>>0]|0;
  19939. $32 = $31&255;
  19940. $33 = $30 | $32;
  19941. $34 = ((($1)) + 3|0);
  19942. $35 = HEAP8[$34>>0]|0;
  19943. $36 = $35&255;
  19944. $37 = $36 << 8;
  19945. $38 = ((($1)) + 2|0);
  19946. $39 = HEAP8[$38>>0]|0;
  19947. $40 = $39&255;
  19948. $41 = $37 | $40;
  19949. $42 = $33 ^ 65535;
  19950. $43 = ($41|0)==($42|0);
  19951. if (!($43)) {
  19952. _stbi__err(11448);
  19953. $$034 = 0;
  19954. STACKTOP = sp;return ($$034|0);
  19955. }
  19956. $44 = HEAP32[$0>>2]|0;
  19957. $45 = (($44) + ($33)|0);
  19958. $46 = ((($0)) + 4|0);
  19959. $47 = HEAP32[$46>>2]|0;
  19960. $48 = ($45>>>0)>($47>>>0);
  19961. if ($48) {
  19962. _stbi__err(11461);
  19963. $$034 = 0;
  19964. STACKTOP = sp;return ($$034|0);
  19965. }
  19966. $49 = ((($0)) + 16|0);
  19967. $50 = HEAP32[$49>>2]|0;
  19968. $51 = (($50) + ($33)|0);
  19969. $52 = ((($0)) + 24|0);
  19970. $53 = HEAP32[$52>>2]|0;
  19971. $54 = ($51>>>0)>($53>>>0);
  19972. if ($54) {
  19973. $55 = (_stbi__zexpand($0,$50,$33)|0);
  19974. $56 = ($55|0)==(0);
  19975. if ($56) {
  19976. $$034 = 0;
  19977. STACKTOP = sp;return ($$034|0);
  19978. }
  19979. }
  19980. $57 = HEAP32[$49>>2]|0;
  19981. $58 = HEAP32[$0>>2]|0;
  19982. _memcpy(($57|0),($58|0),($33|0))|0;
  19983. $59 = HEAP32[$0>>2]|0;
  19984. $60 = (($59) + ($33)|0);
  19985. HEAP32[$0>>2] = $60;
  19986. $61 = HEAP32[$49>>2]|0;
  19987. $62 = (($61) + ($33)|0);
  19988. HEAP32[$49>>2] = $62;
  19989. $$034 = 1;
  19990. STACKTOP = sp;return ($$034|0);
  19991. }
  19992. function _stbi__zbuild_huffman($0,$1,$2) {
  19993. $0 = $0|0;
  19994. $1 = $1|0;
  19995. $2 = $2|0;
  19996. 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;
  19997. 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;
  19998. 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;
  19999. 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;
  20000. 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;
  20001. 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;
  20002. sp = STACKTOP;
  20003. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  20004. $3 = sp + 72|0;
  20005. $4 = sp;
  20006. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  20007. _memset(($0|0),0,1024)|0;
  20008. $5 = ($2|0)>(0);
  20009. if ($5) {
  20010. $$07688 = 0;
  20011. while(1) {
  20012. $6 = (($1) + ($$07688)|0);
  20013. $7 = HEAP8[$6>>0]|0;
  20014. $8 = $7&255;
  20015. $9 = (($4) + ($8<<2)|0);
  20016. $10 = HEAP32[$9>>2]|0;
  20017. $11 = (($10) + 1)|0;
  20018. HEAP32[$9>>2] = $11;
  20019. $12 = (($$07688) + 1)|0;
  20020. $exitcond91 = ($12|0)==($2|0);
  20021. if ($exitcond91) {
  20022. break;
  20023. } else {
  20024. $$07688 = $12;
  20025. }
  20026. }
  20027. }
  20028. HEAP32[$4>>2] = 0;
  20029. $16 = ((($4)) + 4|0);
  20030. $17 = HEAP32[$16>>2]|0;
  20031. $18 = ($17|0)>(2);
  20032. if (!($18)) {
  20033. $13 = ((($4)) + 8|0);
  20034. $14 = HEAP32[$13>>2]|0;
  20035. $15 = ($14|0)>(4);
  20036. if (!($15)) {
  20037. $69 = ((($4)) + 12|0);
  20038. $70 = HEAP32[$69>>2]|0;
  20039. $71 = ($70|0)>(8);
  20040. if (!($71)) {
  20041. $72 = ((($4)) + 16|0);
  20042. $73 = HEAP32[$72>>2]|0;
  20043. $74 = ($73|0)>(16);
  20044. if (!($74)) {
  20045. $75 = ((($4)) + 20|0);
  20046. $76 = HEAP32[$75>>2]|0;
  20047. $77 = ($76|0)>(32);
  20048. if (!($77)) {
  20049. $78 = ((($4)) + 24|0);
  20050. $79 = HEAP32[$78>>2]|0;
  20051. $80 = ($79|0)>(64);
  20052. if (!($80)) {
  20053. $81 = ((($4)) + 28|0);
  20054. $82 = HEAP32[$81>>2]|0;
  20055. $83 = ($82|0)>(128);
  20056. if (!($83)) {
  20057. $84 = ((($4)) + 32|0);
  20058. $85 = HEAP32[$84>>2]|0;
  20059. $86 = ($85|0)>(256);
  20060. if (!($86)) {
  20061. $87 = ((($4)) + 36|0);
  20062. $88 = HEAP32[$87>>2]|0;
  20063. $89 = ($88|0)>(512);
  20064. if (!($89)) {
  20065. $90 = ((($4)) + 40|0);
  20066. $91 = HEAP32[$90>>2]|0;
  20067. $92 = ($91|0)>(1024);
  20068. if (!($92)) {
  20069. $93 = ((($4)) + 44|0);
  20070. $94 = HEAP32[$93>>2]|0;
  20071. $95 = ($94|0)>(2048);
  20072. if (!($95)) {
  20073. $96 = ((($4)) + 48|0);
  20074. $97 = HEAP32[$96>>2]|0;
  20075. $98 = ($97|0)>(4096);
  20076. if (!($98)) {
  20077. $99 = ((($4)) + 52|0);
  20078. $100 = HEAP32[$99>>2]|0;
  20079. $101 = ($100|0)>(8192);
  20080. if (!($101)) {
  20081. $102 = ((($4)) + 56|0);
  20082. $103 = HEAP32[$102>>2]|0;
  20083. $104 = ($103|0)>(16384);
  20084. if (!($104)) {
  20085. $105 = ((($4)) + 60|0);
  20086. $106 = HEAP32[$105>>2]|0;
  20087. $107 = ($106|0)>(32768);
  20088. if (!($107)) {
  20089. $$07785 = 0;$$07884 = 0;$$286 = 1;
  20090. while(1) {
  20091. $19 = (($3) + ($$286<<2)|0);
  20092. HEAP32[$19>>2] = $$07884;
  20093. $20 = $$07884&65535;
  20094. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  20095. HEAP16[$21>>1] = $20;
  20096. $22 = $$07785&65535;
  20097. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  20098. HEAP16[$23>>1] = $22;
  20099. $24 = (($4) + ($$286<<2)|0);
  20100. $25 = HEAP32[$24>>2]|0;
  20101. $26 = (($25) + ($$07884))|0;
  20102. $27 = ($25|0)!=(0);
  20103. $28 = 1 << $$286;
  20104. $29 = ($26|0)>($28|0);
  20105. $or$cond = $27 & $29;
  20106. if ($or$cond) {
  20107. label = 7;
  20108. break;
  20109. }
  20110. $30 = (16 - ($$286))|0;
  20111. $31 = $26 << $30;
  20112. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  20113. HEAP32[$32>>2] = $31;
  20114. $33 = $26 << 1;
  20115. $34 = (($25) + ($$07785))|0;
  20116. $35 = (($$286) + 1)|0;
  20117. $36 = ($35|0)<(16);
  20118. if ($36) {
  20119. $$07785 = $34;$$07884 = $33;$$286 = $35;
  20120. } else {
  20121. break;
  20122. }
  20123. }
  20124. if ((label|0) == 7) {
  20125. _stbi__err(11338);
  20126. $$075 = 0;
  20127. STACKTOP = sp;return ($$075|0);
  20128. }
  20129. $37 = ((($0)) + 1120|0);
  20130. HEAP32[$37>>2] = 65536;
  20131. $38 = ($2|0)>(0);
  20132. if ($38) {
  20133. $$382 = 0;
  20134. } else {
  20135. $$075 = 1;
  20136. STACKTOP = sp;return ($$075|0);
  20137. }
  20138. while(1) {
  20139. $39 = (($1) + ($$382)|0);
  20140. $40 = HEAP8[$39>>0]|0;
  20141. $41 = $40&255;
  20142. $42 = ($40<<24>>24)==(0);
  20143. if (!($42)) {
  20144. $43 = (($3) + ($41<<2)|0);
  20145. $44 = HEAP32[$43>>2]|0;
  20146. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  20147. $46 = HEAP16[$45>>1]|0;
  20148. $47 = $46&65535;
  20149. $48 = (($44) - ($47))|0;
  20150. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  20151. $50 = HEAP16[$49>>1]|0;
  20152. $51 = $50&65535;
  20153. $52 = (($48) + ($51))|0;
  20154. $53 = $41 << 9;
  20155. $54 = $53 | $$382;
  20156. $55 = $54&65535;
  20157. $56 = (((($0)) + 1156|0) + ($52)|0);
  20158. HEAP8[$56>>0] = $40;
  20159. $57 = $$382&65535;
  20160. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  20161. HEAP16[$58>>1] = $57;
  20162. $59 = ($40&255)<(10);
  20163. do {
  20164. if ($59) {
  20165. $60 = (_stbi__bit_reverse($44,$41)|0);
  20166. $61 = ($60|0)<(512);
  20167. if (!($61)) {
  20168. break;
  20169. }
  20170. $62 = 1 << $41;
  20171. $$081 = $60;
  20172. while(1) {
  20173. $63 = (($0) + ($$081<<1)|0);
  20174. HEAP16[$63>>1] = $55;
  20175. $64 = (($$081) + ($62))|0;
  20176. $65 = ($64|0)<(512);
  20177. if ($65) {
  20178. $$081 = $64;
  20179. } else {
  20180. break;
  20181. }
  20182. }
  20183. }
  20184. } while(0);
  20185. $66 = HEAP32[$43>>2]|0;
  20186. $67 = (($66) + 1)|0;
  20187. HEAP32[$43>>2] = $67;
  20188. }
  20189. $68 = (($$382) + 1)|0;
  20190. $exitcond = ($68|0)==($2|0);
  20191. if ($exitcond) {
  20192. $$075 = 1;
  20193. break;
  20194. } else {
  20195. $$382 = $68;
  20196. }
  20197. }
  20198. STACKTOP = sp;return ($$075|0);
  20199. }
  20200. }
  20201. }
  20202. }
  20203. }
  20204. }
  20205. }
  20206. }
  20207. }
  20208. }
  20209. }
  20210. }
  20211. }
  20212. }
  20213. }
  20214. _stbi__err(11390);
  20215. $$075 = 0;
  20216. STACKTOP = sp;return ($$075|0);
  20217. }
  20218. function _stbi__compute_huffman_codes($0) {
  20219. $0 = $0|0;
  20220. 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;
  20221. 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;
  20222. 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;
  20223. var label = 0, sp = 0, stop = 0;
  20224. sp = STACKTOP;
  20225. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  20226. $1 = sp;
  20227. $2 = sp + 2039|0;
  20228. $3 = sp + 2020|0;
  20229. $4 = (_stbi__zreceive($0,5)|0);
  20230. $5 = (($4) + 257)|0;
  20231. $6 = (_stbi__zreceive($0,5)|0);
  20232. $7 = (($6) + 1)|0;
  20233. $8 = (_stbi__zreceive($0,4)|0);
  20234. $9 = (($8) + 4)|0;
  20235. $10 = (($7) + ($5))|0;
  20236. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  20237. $11 = ($9|0)>(0);
  20238. if ($11) {
  20239. $$06579 = 0;
  20240. while(1) {
  20241. $12 = (_stbi__zreceive($0,3)|0);
  20242. $13 = $12&255;
  20243. $14 = (12175 + ($$06579)|0);
  20244. $15 = HEAP8[$14>>0]|0;
  20245. $16 = $15&255;
  20246. $17 = (($3) + ($16)|0);
  20247. HEAP8[$17>>0] = $13;
  20248. $18 = (($$06579) + 1)|0;
  20249. $exitcond = ($18|0)==($9|0);
  20250. if ($exitcond) {
  20251. break;
  20252. } else {
  20253. $$06579 = $18;
  20254. }
  20255. }
  20256. }
  20257. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  20258. $20 = ($19|0)==(0);
  20259. if ($20) {
  20260. $$4 = 0;
  20261. STACKTOP = sp;return ($$4|0);
  20262. }
  20263. $21 = ($10|0)>(0);
  20264. L8: do {
  20265. if ($21) {
  20266. $$06678 = 0;
  20267. L9: while(1) {
  20268. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  20269. $23 = ($22>>>0)>(18);
  20270. if ($23) {
  20271. label = 6;
  20272. break;
  20273. }
  20274. $24 = ($22|0)<(16);
  20275. if ($24) {
  20276. $25 = $22&255;
  20277. $26 = (($$06678) + 1)|0;
  20278. $27 = (($2) + ($$06678)|0);
  20279. HEAP8[$27>>0] = $25;
  20280. $$066$be = $26;
  20281. } else {
  20282. switch ($22|0) {
  20283. case 16: {
  20284. $28 = (_stbi__zreceive($0,2)|0);
  20285. $29 = ($$06678|0)==(0);
  20286. if ($29) {
  20287. label = 11;
  20288. break L9;
  20289. }
  20290. $30 = (($28) + 3)|0;
  20291. $31 = (($$06678) + -1)|0;
  20292. $32 = (($2) + ($31)|0);
  20293. $33 = HEAP8[$32>>0]|0;
  20294. $$0 = $33;$$061 = $30;
  20295. break;
  20296. }
  20297. case 17: {
  20298. $34 = (_stbi__zreceive($0,3)|0);
  20299. $35 = (($34) + 3)|0;
  20300. $$0 = 0;$$061 = $35;
  20301. break;
  20302. }
  20303. case 18: {
  20304. $36 = (_stbi__zreceive($0,7)|0);
  20305. $37 = (($36) + 11)|0;
  20306. $$0 = 0;$$061 = $37;
  20307. break;
  20308. }
  20309. default: {
  20310. label = 14;
  20311. break L9;
  20312. }
  20313. }
  20314. $38 = (($10) - ($$06678))|0;
  20315. $39 = ($38|0)<($$061|0);
  20316. if ($39) {
  20317. label = 17;
  20318. break;
  20319. }
  20320. $40 = (($2) + ($$06678)|0);
  20321. _memset(($40|0),($$0|0),($$061|0))|0;
  20322. $41 = (($$061) + ($$06678))|0;
  20323. $$066$be = $41;
  20324. }
  20325. $42 = ($10|0)>($$066$be|0);
  20326. if ($42) {
  20327. $$06678 = $$066$be;
  20328. } else {
  20329. $$066$lcssa = $$066$be;
  20330. break L8;
  20331. }
  20332. }
  20333. if ((label|0) == 6) {
  20334. _stbi__err(11338);
  20335. $$4 = 0;
  20336. STACKTOP = sp;return ($$4|0);
  20337. }
  20338. else if ((label|0) == 11) {
  20339. _stbi__err(11338);
  20340. $$4 = 0;
  20341. STACKTOP = sp;return ($$4|0);
  20342. }
  20343. else if ((label|0) == 14) {
  20344. ___assert_fail((11354|0),(10116|0),4006,(11362|0));
  20345. // unreachable;
  20346. }
  20347. else if ((label|0) == 17) {
  20348. _stbi__err(11338);
  20349. $$4 = 0;
  20350. STACKTOP = sp;return ($$4|0);
  20351. }
  20352. } else {
  20353. $$066$lcssa = 0;
  20354. }
  20355. } while(0);
  20356. $43 = ($10|0)==($$066$lcssa|0);
  20357. if (!($43)) {
  20358. _stbi__err(11338);
  20359. $$4 = 0;
  20360. STACKTOP = sp;return ($$4|0);
  20361. }
  20362. $44 = ((($0)) + 32|0);
  20363. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  20364. $46 = ($45|0)==(0);
  20365. if ($46) {
  20366. $$4 = 0;
  20367. STACKTOP = sp;return ($$4|0);
  20368. }
  20369. $47 = ((($0)) + 2052|0);
  20370. $48 = (($2) + ($5)|0);
  20371. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  20372. $not$ = ($49|0)!=(0);
  20373. $$ = $not$&1;
  20374. $$4 = $$;
  20375. STACKTOP = sp;return ($$4|0);
  20376. }
  20377. function _stbi__parse_huffman_block($0) {
  20378. $0 = $0|0;
  20379. 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;
  20380. 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;
  20381. 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;
  20382. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  20383. sp = STACKTOP;
  20384. $1 = ((($0)) + 16|0);
  20385. $2 = HEAP32[$1>>2]|0;
  20386. $3 = ((($0)) + 32|0);
  20387. $4 = ((($0)) + 24|0);
  20388. $5 = ((($0)) + 2052|0);
  20389. $6 = ((($0)) + 20|0);
  20390. $7 = ((($0)) + 24|0);
  20391. $$070 = $2;
  20392. while(1) {
  20393. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  20394. $11 = ($10|0)<(256);
  20395. if ($11) {
  20396. $12 = ($10|0)<(0);
  20397. if ($12) {
  20398. label = 6;
  20399. break;
  20400. }
  20401. $13 = HEAP32[$4>>2]|0;
  20402. $14 = ($$070>>>0)<($13>>>0);
  20403. if ($14) {
  20404. $$171 = $$070;
  20405. } else {
  20406. $15 = (_stbi__zexpand($0,$$070,1)|0);
  20407. $16 = ($15|0)==(0);
  20408. if ($16) {
  20409. $$3$ph = 0;
  20410. label = 28;
  20411. break;
  20412. }
  20413. $17 = HEAP32[$1>>2]|0;
  20414. $$171 = $17;
  20415. }
  20416. $18 = $10&255;
  20417. $19 = ((($$171)) + 1|0);
  20418. HEAP8[$$171>>0] = $18;
  20419. $$070 = $19;
  20420. continue;
  20421. }
  20422. $20 = ($10|0)==(256);
  20423. if ($20) {
  20424. label = 12;
  20425. break;
  20426. }
  20427. $21 = (($10) + -257)|0;
  20428. $22 = (3272 + ($21<<2)|0);
  20429. $23 = HEAP32[$22>>2]|0;
  20430. $24 = (($10) + -265)|0;
  20431. $25 = ($24>>>0)<(20);
  20432. if ($25) {
  20433. $26 = (3148 + ($21<<2)|0);
  20434. $27 = HEAP32[$26>>2]|0;
  20435. $28 = (_stbi__zreceive($0,$27)|0);
  20436. $29 = (($28) + ($23))|0;
  20437. $$064 = $29;
  20438. } else {
  20439. $$064 = $23;
  20440. }
  20441. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  20442. $31 = ($30|0)<(0);
  20443. if ($31) {
  20444. label = 16;
  20445. break;
  20446. }
  20447. $32 = (3524 + ($30<<2)|0);
  20448. $33 = HEAP32[$32>>2]|0;
  20449. $34 = (($30) + -4)|0;
  20450. $35 = ($34>>>0)<(26);
  20451. if ($35) {
  20452. $36 = (3396 + ($30<<2)|0);
  20453. $37 = HEAP32[$36>>2]|0;
  20454. $38 = (_stbi__zreceive($0,$37)|0);
  20455. $39 = (($38) + ($33))|0;
  20456. $$063 = $39;
  20457. } else {
  20458. $$063 = $33;
  20459. }
  20460. $40 = HEAP32[$6>>2]|0;
  20461. $41 = $$070;
  20462. $42 = (($41) - ($40))|0;
  20463. $43 = ($42|0)<($$063|0);
  20464. if ($43) {
  20465. label = 20;
  20466. break;
  20467. }
  20468. $44 = (($$070) + ($$064)|0);
  20469. $45 = HEAP32[$7>>2]|0;
  20470. $46 = ($44>>>0)>($45>>>0);
  20471. if ($46) {
  20472. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  20473. $48 = ($47|0)==(0);
  20474. if ($48) {
  20475. $$3$ph = 0;
  20476. label = 28;
  20477. break;
  20478. }
  20479. $49 = HEAP32[$1>>2]|0;
  20480. $$272 = $49;
  20481. } else {
  20482. $$272 = $$070;
  20483. }
  20484. $50 = (0 - ($$063))|0;
  20485. $9 = (($$272) + ($50)|0);
  20486. $51 = ($$063|0)==(1);
  20487. $52 = ($$064|0)!=(0);
  20488. if ($51) {
  20489. if (!($52)) {
  20490. $$070 = $$272;
  20491. continue;
  20492. }
  20493. $8 = HEAP8[$9>>0]|0;
  20494. _memset(($$272|0),($8|0),($$064|0))|0;
  20495. $scevgep92 = (($$272) + ($$064)|0);
  20496. $$070 = $scevgep92;
  20497. continue;
  20498. }
  20499. if ($52) {
  20500. $$067 = $9;$$266 = $$064;$$5 = $$272;
  20501. } else {
  20502. $$070 = $$272;
  20503. continue;
  20504. }
  20505. while(1) {
  20506. $53 = ((($$067)) + 1|0);
  20507. $54 = HEAP8[$$067>>0]|0;
  20508. $55 = ((($$5)) + 1|0);
  20509. HEAP8[$$5>>0] = $54;
  20510. $56 = (($$266) + -1)|0;
  20511. $57 = ($56|0)==(0);
  20512. if ($57) {
  20513. break;
  20514. } else {
  20515. $$067 = $53;$$266 = $56;$$5 = $55;
  20516. }
  20517. }
  20518. $scevgep = (($$272) + ($$064)|0);
  20519. $$070 = $scevgep;
  20520. }
  20521. if ((label|0) == 6) {
  20522. _stbi__err(11163);
  20523. $$3$ph = 0;
  20524. return ($$3$ph|0);
  20525. }
  20526. else if ((label|0) == 12) {
  20527. HEAP32[$1>>2] = $$070;
  20528. $$3$ph = 1;
  20529. return ($$3$ph|0);
  20530. }
  20531. else if ((label|0) == 16) {
  20532. _stbi__err(11163);
  20533. $$3$ph = 0;
  20534. return ($$3$ph|0);
  20535. }
  20536. else if ((label|0) == 20) {
  20537. _stbi__err(11180);
  20538. $$3$ph = 0;
  20539. return ($$3$ph|0);
  20540. }
  20541. else if ((label|0) == 28) {
  20542. return ($$3$ph|0);
  20543. }
  20544. return (0)|0;
  20545. }
  20546. function _stbi__zhuffman_decode($0,$1) {
  20547. $0 = $0|0;
  20548. $1 = $1|0;
  20549. 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;
  20550. sp = STACKTOP;
  20551. $2 = ((($0)) + 8|0);
  20552. $3 = HEAP32[$2>>2]|0;
  20553. $4 = ($3|0)<(16);
  20554. if ($4) {
  20555. _stbi__fill_bits($0);
  20556. }
  20557. $5 = ((($0)) + 12|0);
  20558. $6 = HEAP32[$5>>2]|0;
  20559. $7 = $6 & 511;
  20560. $8 = (($1) + ($7<<1)|0);
  20561. $9 = HEAP16[$8>>1]|0;
  20562. $10 = $9&65535;
  20563. $11 = ($9<<16>>16)==(0);
  20564. if ($11) {
  20565. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  20566. $$0 = $17;
  20567. return ($$0|0);
  20568. } else {
  20569. $12 = $10 >>> 9;
  20570. $13 = $6 >>> $12;
  20571. HEAP32[$5>>2] = $13;
  20572. $14 = HEAP32[$2>>2]|0;
  20573. $15 = (($14) - ($12))|0;
  20574. HEAP32[$2>>2] = $15;
  20575. $16 = $10 & 511;
  20576. $$0 = $16;
  20577. return ($$0|0);
  20578. }
  20579. return (0)|0;
  20580. }
  20581. function _stbi__zexpand($0,$1,$2) {
  20582. $0 = $0|0;
  20583. $1 = $1|0;
  20584. $2 = $2|0;
  20585. 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;
  20586. var $9 = 0, label = 0, sp = 0;
  20587. sp = STACKTOP;
  20588. $3 = ((($0)) + 16|0);
  20589. HEAP32[$3>>2] = $1;
  20590. $4 = ((($0)) + 28|0);
  20591. $5 = HEAP32[$4>>2]|0;
  20592. $6 = ($5|0)==(0);
  20593. if ($6) {
  20594. _stbi__err(11189);
  20595. $$0 = 0;
  20596. return ($$0|0);
  20597. }
  20598. $7 = ((($0)) + 20|0);
  20599. $8 = HEAP32[$7>>2]|0;
  20600. $9 = $1;
  20601. $10 = $8;
  20602. $11 = (($9) - ($10))|0;
  20603. $12 = ((($0)) + 24|0);
  20604. $13 = HEAP32[$12>>2]|0;
  20605. $14 = (($13) - ($10))|0;
  20606. $15 = (($11) + ($2))|0;
  20607. $$029 = $14;
  20608. while(1) {
  20609. $16 = ($15|0)>($$029|0);
  20610. $17 = $$029 << 1;
  20611. if ($16) {
  20612. $$029 = $17;
  20613. } else {
  20614. break;
  20615. }
  20616. }
  20617. $18 = (_realloc($8,$$029)|0);
  20618. $19 = ($18|0)==(0|0);
  20619. if ($19) {
  20620. _stbi__err(10171);
  20621. $$0 = 0;
  20622. return ($$0|0);
  20623. } else {
  20624. HEAP32[$7>>2] = $18;
  20625. $20 = (($18) + ($11)|0);
  20626. HEAP32[$3>>2] = $20;
  20627. $21 = (($18) + ($$029)|0);
  20628. HEAP32[$12>>2] = $21;
  20629. $$0 = 1;
  20630. return ($$0|0);
  20631. }
  20632. return (0)|0;
  20633. }
  20634. function _stbi__fill_bits($0) {
  20635. $0 = $0|0;
  20636. 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;
  20637. sp = STACKTOP;
  20638. $1 = ((($0)) + 12|0);
  20639. $2 = ((($0)) + 8|0);
  20640. while(1) {
  20641. $3 = HEAP32[$1>>2]|0;
  20642. $4 = HEAP32[$2>>2]|0;
  20643. $5 = 1 << $4;
  20644. $6 = ($3>>>0)<($5>>>0);
  20645. if (!($6)) {
  20646. label = 3;
  20647. break;
  20648. }
  20649. $7 = (_stbi__zget8($0)|0);
  20650. $8 = $7&255;
  20651. $9 = HEAP32[$2>>2]|0;
  20652. $10 = $8 << $9;
  20653. $11 = HEAP32[$1>>2]|0;
  20654. $12 = $11 | $10;
  20655. HEAP32[$1>>2] = $12;
  20656. $13 = (($9) + 8)|0;
  20657. HEAP32[$2>>2] = $13;
  20658. $14 = ($13|0)<(25);
  20659. if (!($14)) {
  20660. label = 5;
  20661. break;
  20662. }
  20663. }
  20664. if ((label|0) == 3) {
  20665. ___assert_fail((11285|0),(10116|0),3848,(11322|0));
  20666. // unreachable;
  20667. }
  20668. else if ((label|0) == 5) {
  20669. return;
  20670. }
  20671. }
  20672. function _stbi__zhuffman_decode_slowpath($0,$1) {
  20673. $0 = $0|0;
  20674. $1 = $1|0;
  20675. 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;
  20676. 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;
  20677. sp = STACKTOP;
  20678. $2 = ((($0)) + 12|0);
  20679. $3 = HEAP32[$2>>2]|0;
  20680. $4 = (_stbi__bit_reverse($3,16)|0);
  20681. $$025 = 10;
  20682. while(1) {
  20683. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  20684. $6 = HEAP32[$5>>2]|0;
  20685. $7 = ($4|0)<($6|0);
  20686. $8 = (($$025) + 1)|0;
  20687. if ($7) {
  20688. break;
  20689. } else {
  20690. $$025 = $8;
  20691. }
  20692. }
  20693. $9 = ($$025|0)==(16);
  20694. if ($9) {
  20695. $$0 = -1;
  20696. return ($$0|0);
  20697. }
  20698. $10 = (16 - ($$025))|0;
  20699. $11 = $4 >> $10;
  20700. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  20701. $13 = HEAP16[$12>>1]|0;
  20702. $14 = $13&65535;
  20703. $15 = (($11) - ($14))|0;
  20704. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  20705. $17 = HEAP16[$16>>1]|0;
  20706. $18 = $17&65535;
  20707. $19 = (($15) + ($18))|0;
  20708. $20 = (((($1)) + 1156|0) + ($19)|0);
  20709. $21 = HEAP8[$20>>0]|0;
  20710. $22 = $21&255;
  20711. $23 = ($22|0)==($$025|0);
  20712. if (!($23)) {
  20713. ___assert_fail((11209|0),(10116|0),3876,(11225|0));
  20714. // unreachable;
  20715. }
  20716. $24 = HEAP32[$2>>2]|0;
  20717. $25 = $24 >>> $$025;
  20718. HEAP32[$2>>2] = $25;
  20719. $26 = ((($0)) + 8|0);
  20720. $27 = HEAP32[$26>>2]|0;
  20721. $28 = (($27) - ($$025))|0;
  20722. HEAP32[$26>>2] = $28;
  20723. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  20724. $30 = HEAP16[$29>>1]|0;
  20725. $31 = $30&65535;
  20726. $$0 = $31;
  20727. return ($$0|0);
  20728. }
  20729. function _stbi__bit_reverse($0,$1) {
  20730. $0 = $0|0;
  20731. $1 = $1|0;
  20732. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20733. sp = STACKTOP;
  20734. $2 = ($1|0)<(17);
  20735. if ($2) {
  20736. $3 = (_stbi__bitreverse16($0)|0);
  20737. $4 = (16 - ($1))|0;
  20738. $5 = $3 >> $4;
  20739. return ($5|0);
  20740. } else {
  20741. ___assert_fail((11256|0),(10116|0),3766,(11267|0));
  20742. // unreachable;
  20743. }
  20744. return (0)|0;
  20745. }
  20746. function _stbi__bitreverse16($0) {
  20747. $0 = $0|0;
  20748. 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;
  20749. var sp = 0;
  20750. sp = STACKTOP;
  20751. $1 = $0 >>> 1;
  20752. $2 = $1 & 21845;
  20753. $3 = $0 << 1;
  20754. $4 = $3 & 43690;
  20755. $5 = $2 | $4;
  20756. $6 = $5 >>> 2;
  20757. $7 = $6 & 13107;
  20758. $8 = $5 << 2;
  20759. $9 = $8 & 52428;
  20760. $10 = $7 | $9;
  20761. $11 = $10 >>> 4;
  20762. $12 = $11 & 3855;
  20763. $13 = $10 << 4;
  20764. $14 = $13 & 61680;
  20765. $15 = $12 | $14;
  20766. $16 = $15 >>> 8;
  20767. $17 = $15 << 8;
  20768. $18 = $17 & 65280;
  20769. $19 = $18 | $16;
  20770. return ($19|0);
  20771. }
  20772. function _stbi__zget8($0) {
  20773. $0 = $0|0;
  20774. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20775. sp = STACKTOP;
  20776. $1 = HEAP32[$0>>2]|0;
  20777. $2 = ((($0)) + 4|0);
  20778. $3 = HEAP32[$2>>2]|0;
  20779. $4 = ($1>>>0)<($3>>>0);
  20780. if (!($4)) {
  20781. $$0 = 0;
  20782. return ($$0|0);
  20783. }
  20784. $5 = ((($1)) + 1|0);
  20785. HEAP32[$0>>2] = $5;
  20786. $6 = HEAP8[$1>>0]|0;
  20787. $$0 = $6;
  20788. return ($$0|0);
  20789. }
  20790. function _stbi__refill_buffer($0) {
  20791. $0 = $0|0;
  20792. 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;
  20793. sp = STACKTOP;
  20794. $1 = ((($0)) + 16|0);
  20795. $2 = HEAP32[$1>>2]|0;
  20796. $3 = ((($0)) + 28|0);
  20797. $4 = HEAP32[$3>>2]|0;
  20798. $5 = ((($0)) + 40|0);
  20799. $6 = ((($0)) + 36|0);
  20800. $7 = HEAP32[$6>>2]|0;
  20801. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  20802. $9 = ($8|0)==(0);
  20803. if ($9) {
  20804. $10 = ((($0)) + 32|0);
  20805. HEAP32[$10>>2] = 0;
  20806. $11 = ((($0)) + 168|0);
  20807. HEAP32[$11>>2] = $5;
  20808. $12 = ((($0)) + 41|0);
  20809. $13 = ((($0)) + 172|0);
  20810. HEAP32[$13>>2] = $12;
  20811. HEAP8[$5>>0] = 0;
  20812. return;
  20813. } else {
  20814. $14 = ((($0)) + 168|0);
  20815. HEAP32[$14>>2] = $5;
  20816. $15 = (((($0)) + 40|0) + ($8)|0);
  20817. $16 = ((($0)) + 172|0);
  20818. HEAP32[$16>>2] = $15;
  20819. return;
  20820. }
  20821. }
  20822. function _stbi__rewind($0) {
  20823. $0 = $0|0;
  20824. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20825. sp = STACKTOP;
  20826. $1 = ((($0)) + 176|0);
  20827. $2 = HEAP32[$1>>2]|0;
  20828. $3 = ((($0)) + 168|0);
  20829. HEAP32[$3>>2] = $2;
  20830. $4 = ((($0)) + 180|0);
  20831. $5 = HEAP32[$4>>2]|0;
  20832. $6 = ((($0)) + 172|0);
  20833. HEAP32[$6>>2] = $5;
  20834. return;
  20835. }
  20836. function _stbi__start_callbacks($0,$1,$2) {
  20837. $0 = $0|0;
  20838. $1 = $1|0;
  20839. $2 = $2|0;
  20840. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20841. sp = STACKTOP;
  20842. $3 = ((($0)) + 16|0);
  20843. ;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;
  20844. $4 = ((($0)) + 28|0);
  20845. HEAP32[$4>>2] = $2;
  20846. $5 = ((($0)) + 36|0);
  20847. HEAP32[$5>>2] = 128;
  20848. $6 = ((($0)) + 32|0);
  20849. HEAP32[$6>>2] = 1;
  20850. $7 = ((($0)) + 40|0);
  20851. $8 = ((($0)) + 176|0);
  20852. HEAP32[$8>>2] = $7;
  20853. _stbi__refill_buffer($0);
  20854. $9 = ((($0)) + 172|0);
  20855. $10 = HEAP32[$9>>2]|0;
  20856. $11 = ((($0)) + 180|0);
  20857. HEAP32[$11>>2] = $10;
  20858. return;
  20859. }
  20860. function _stbi__stdio_read($0,$1,$2) {
  20861. $0 = $0|0;
  20862. $1 = $1|0;
  20863. $2 = $2|0;
  20864. var $3 = 0, label = 0, sp = 0;
  20865. sp = STACKTOP;
  20866. $3 = (_fread($1,1,$2,$0)|0);
  20867. return ($3|0);
  20868. }
  20869. function _stbi__stdio_skip($0,$1) {
  20870. $0 = $0|0;
  20871. $1 = $1|0;
  20872. var label = 0, sp = 0;
  20873. sp = STACKTOP;
  20874. (_fseek($0,$1,1)|0);
  20875. return;
  20876. }
  20877. function _stbi__stdio_eof($0) {
  20878. $0 = $0|0;
  20879. var $1 = 0, label = 0, sp = 0;
  20880. sp = STACKTOP;
  20881. $1 = (_feof($0)|0);
  20882. return ($1|0);
  20883. }
  20884. function _LoadImage($0,$1) {
  20885. $0 = $0|0;
  20886. $1 = $1|0;
  20887. 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;
  20888. 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;
  20889. 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;
  20890. var $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, label = 0, sp = 0;
  20891. sp = STACKTOP;
  20892. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  20893. $vararg_buffer9 = sp + 32|0;
  20894. $vararg_buffer4 = sp + 16|0;
  20895. $vararg_buffer1 = sp + 8|0;
  20896. $vararg_buffer = sp;
  20897. $2 = sp + 48|0;
  20898. $3 = sp + 44|0;
  20899. $4 = sp + 40|0;
  20900. $5 = sp + 36|0;
  20901. $6 = (_IsFileExtension($1,12362)|0);
  20902. $7 = ($6|0)==(0);
  20903. do {
  20904. if ($7) {
  20905. $19 = (_IsFileExtension($1,11584)|0);
  20906. $20 = ($19|0)==(0);
  20907. if ($20) {
  20908. HEAP32[$vararg_buffer1>>2] = $1;
  20909. _TraceLog(2,11589,$vararg_buffer1);
  20910. $$sroa$10$141 = 0;$$sroa$13$147 = 0;$$sroa$15$249 = 0;$$sroa$7$143 = 0;
  20911. break;
  20912. }
  20913. HEAP32[$3>>2] = 0;
  20914. HEAP32[$4>>2] = 0;
  20915. HEAP32[$5>>2] = 0;
  20916. $21 = (_fopen($1,13035)|0);
  20917. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  20918. (_fclose($21)|0);
  20919. $23 = HEAP32[$3>>2]|0;
  20920. $24 = HEAP32[$4>>2]|0;
  20921. $25 = HEAP32[$5>>2]|0;
  20922. switch ($25|0) {
  20923. case 1: {
  20924. $$sink = 1;
  20925. label = 11;
  20926. break;
  20927. }
  20928. case 2: {
  20929. $$sink = 2;
  20930. label = 11;
  20931. break;
  20932. }
  20933. case 3: {
  20934. $$sink = 4;
  20935. label = 11;
  20936. break;
  20937. }
  20938. case 4: {
  20939. $$sink = 7;
  20940. label = 11;
  20941. break;
  20942. }
  20943. default: {
  20944. $$sroa$15$1 = 0;
  20945. }
  20946. }
  20947. if ((label|0) == 11) {
  20948. $$sroa$15$1 = $$sink;
  20949. }
  20950. $$sroa$0$1 = $22;$$sroa$10$1 = $24;$$sroa$13$1 = 1;$$sroa$15$2 = $$sroa$15$1;$$sroa$7$1 = $23;
  20951. label = 14;
  20952. } else {
  20953. $8 = (_LoadResource($1,0)|0);
  20954. $9 = HEAP32[$8>>2]|0;
  20955. $10 = ($9|0)==(1);
  20956. if ($10) {
  20957. $11 = ((($8)) + 20|0);
  20958. $12 = HEAP32[$11>>2]|0;
  20959. $13 = ((($8)) + 4|0);
  20960. $14 = HEAP32[$13>>2]|0;
  20961. $15 = ((($8)) + 8|0);
  20962. $16 = HEAP32[$15>>2]|0;
  20963. $17 = ((($8)) + 12|0);
  20964. $18 = HEAP32[$17>>2]|0;
  20965. _LoadImagePro($2,$12,$14,$16,$18);
  20966. $$sroa$0$0$copyload = HEAP32[$2>>2]|0;
  20967. $$sroa$7$0$$sroa_idx15 = ((($2)) + 4|0);
  20968. $$sroa$7$0$copyload = HEAP32[$$sroa$7$0$$sroa_idx15>>2]|0;
  20969. $$sroa$10$0$$sroa_idx19 = ((($2)) + 8|0);
  20970. $$sroa$10$0$copyload = HEAP32[$$sroa$10$0$$sroa_idx19>>2]|0;
  20971. $$sroa$13$0$$sroa_idx23 = ((($2)) + 12|0);
  20972. $$sroa$13$0$copyload = HEAP32[$$sroa$13$0$$sroa_idx23>>2]|0;
  20973. $$sroa$15$0$$sroa_idx27 = ((($2)) + 16|0);
  20974. $$sroa$15$0$copyload = HEAP32[$$sroa$15$0$$sroa_idx27>>2]|0;
  20975. $$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;
  20976. } else {
  20977. HEAP32[$vararg_buffer>>2] = $1;
  20978. _TraceLog(2,11537,$vararg_buffer);
  20979. $$sroa$0$0 = 0;$$sroa$10$0 = 0;$$sroa$13$0 = 0;$$sroa$15$0 = 0;$$sroa$7$0 = 0;
  20980. }
  20981. _UnloadResource($8);
  20982. $$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;
  20983. label = 14;
  20984. }
  20985. } while(0);
  20986. if ((label|0) == 14) {
  20987. $26 = ($$sroa$0$1|0)==(0|0);
  20988. if ($26) {
  20989. $$sroa$10$141 = $$sroa$10$1;$$sroa$13$147 = $$sroa$13$1;$$sroa$15$249 = $$sroa$15$2;$$sroa$7$143 = $$sroa$7$1;
  20990. } else {
  20991. HEAP32[$vararg_buffer4>>2] = $1;
  20992. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  20993. HEAP32[$vararg_ptr7>>2] = $$sroa$7$1;
  20994. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  20995. HEAP32[$vararg_ptr8>>2] = $$sroa$10$1;
  20996. _TraceLog(0,11625,$vararg_buffer4);
  20997. $$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;
  20998. HEAP32[$0>>2] = $$sroa$0$144;
  20999. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  21000. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  21001. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  21002. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  21003. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  21004. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  21005. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  21006. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  21007. STACKTOP = sp;return;
  21008. }
  21009. }
  21010. HEAP32[$vararg_buffer9>>2] = $1;
  21011. _TraceLog(2,11664,$vararg_buffer9);
  21012. $$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;
  21013. HEAP32[$0>>2] = $$sroa$0$144;
  21014. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  21015. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  21016. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  21017. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  21018. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  21019. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  21020. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  21021. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  21022. STACKTOP = sp;return;
  21023. }
  21024. function _LoadResource($0,$1) {
  21025. $0 = $0|0;
  21026. $1 = $1|0;
  21027. 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;
  21028. 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;
  21029. 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;
  21030. 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;
  21031. 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;
  21032. sp = STACKTOP;
  21033. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  21034. $vararg_buffer8 = sp + 24|0;
  21035. $vararg_buffer4 = sp + 16|0;
  21036. $vararg_buffer1 = sp + 8|0;
  21037. $vararg_buffer = sp;
  21038. $2 = sp + 64|0;
  21039. $3 = sp + 32|0;
  21040. $4 = (_fopen($0,13035)|0);
  21041. $5 = ($4|0)==(0|0);
  21042. if ($5) {
  21043. HEAP32[$vararg_buffer>>2] = $0;
  21044. _TraceLog(2,11723,$vararg_buffer);
  21045. $$2 = 0;
  21046. STACKTOP = sp;return ($$2|0);
  21047. }
  21048. (_fread($2,1,1,$4)|0);
  21049. $6 = ((($2)) + 1|0);
  21050. (_fread($6,1,1,$4)|0);
  21051. $7 = ((($2)) + 2|0);
  21052. (_fread($7,1,1,$4)|0);
  21053. $8 = ((($2)) + 3|0);
  21054. (_fread($8,1,1,$4)|0);
  21055. $9 = ((($2)) + 4|0);
  21056. (_fread($9,2,1,$4)|0);
  21057. $10 = ((($2)) + 6|0);
  21058. (_fread($10,2,1,$4)|0);
  21059. $11 = HEAP8[$2>>0]|0;
  21060. $12 = ($11<<24>>24)==(114);
  21061. $13 = HEAP8[$6>>0]|0;
  21062. $14 = ($13<<24>>24)==(82);
  21063. $or$cond = $12 | $14;
  21064. $15 = HEAP8[$7>>0]|0;
  21065. $16 = ($15<<24>>24)==(69);
  21066. $or$cond60 = $or$cond | $16;
  21067. $17 = HEAP8[$8>>0]|0;
  21068. $18 = ($17<<24>>24)==(83);
  21069. $or$cond62 = $or$cond60 | $18;
  21070. if ($or$cond62) {
  21071. $19 = HEAP16[$10>>1]|0;
  21072. $20 = ($19<<16>>16)==(0);
  21073. if ($20) {
  21074. $$0$lcssa = 0;
  21075. } else {
  21076. $21 = ((($3)) + 7|0);
  21077. $22 = HEAP16[$10>>1]|0;
  21078. $23 = $22&65535;
  21079. $24 = ((($3)) + 8|0);
  21080. $25 = ((($3)) + 4|0);
  21081. $26 = ((($3)) + 16|0);
  21082. $27 = ((($3)) + 20|0);
  21083. $28 = ((($3)) + 24|0);
  21084. $29 = ((($3)) + 28|0);
  21085. $30 = ((($3)) + 8|0);
  21086. $31 = ((($3)) + 5|0);
  21087. $32 = ((($3)) + 12|0);
  21088. $$05665 = 0;
  21089. while(1) {
  21090. (_fread($3,32,1,$4)|0);
  21091. $36 = HEAP8[$21>>0]|0;
  21092. $37 = $36&255;
  21093. $38 = ($37*24)|0;
  21094. $39 = (_malloc($38)|0);
  21095. $40 = HEAP32[$3>>2]|0;
  21096. $41 = ($40|0)==($1|0);
  21097. if ($41) {
  21098. $42 = HEAP8[$21>>0]|0;
  21099. $43 = ($42<<24>>24)==(0);
  21100. if (!($43)) {
  21101. $$05764 = 0;
  21102. while(1) {
  21103. $44 = HEAP8[$25>>0]|0;
  21104. $45 = $44&255;
  21105. $46 = (($39) + (($$05764*24)|0)|0);
  21106. HEAP32[$46>>2] = $45;
  21107. $47 = HEAP32[$26>>2]|0;
  21108. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  21109. HEAP32[$48>>2] = $47;
  21110. $49 = HEAP32[$27>>2]|0;
  21111. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  21112. HEAP32[$50>>2] = $49;
  21113. $51 = HEAP32[$28>>2]|0;
  21114. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  21115. HEAP32[$52>>2] = $51;
  21116. $53 = HEAP32[$29>>2]|0;
  21117. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  21118. HEAP32[$54>>2] = $53;
  21119. $55 = HEAP32[$30>>2]|0;
  21120. $56 = (_malloc($55)|0);
  21121. (_fread($56,$55,1,$4)|0);
  21122. $57 = HEAP8[$31>>0]|0;
  21123. $58 = ($57<<24>>24)==(1);
  21124. if ($58) {
  21125. $59 = HEAP32[$30>>2]|0;
  21126. $60 = HEAP32[$32>>2]|0;
  21127. $61 = (_DecompressData($56,$59,$60)|0);
  21128. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21129. HEAP32[$62>>2] = $61;
  21130. _free($56);
  21131. } else {
  21132. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21133. HEAP32[$63>>2] = $56;
  21134. }
  21135. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21136. $65 = HEAP32[$64>>2]|0;
  21137. $66 = ($65|0)==(0|0);
  21138. if (!($66)) {
  21139. $67 = HEAP32[$3>>2]|0;
  21140. HEAP32[$vararg_buffer4>>2] = $0;
  21141. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  21142. HEAP32[$vararg_ptr7>>2] = $67;
  21143. _TraceLog(0,11820,$vararg_buffer4);
  21144. }
  21145. (_fread($3,32,1,$4)|0);
  21146. $68 = (($$05764) + 1)|0;
  21147. $69 = HEAP8[$21>>0]|0;
  21148. $70 = $69&255;
  21149. $71 = ($68|0)<($70|0);
  21150. if ($71) {
  21151. $$05764 = $68;
  21152. } else {
  21153. break;
  21154. }
  21155. }
  21156. }
  21157. } else {
  21158. $72 = HEAP32[$24>>2]|0;
  21159. (_fseek($4,$72,1)|0);
  21160. }
  21161. $73 = (($$05665) + 1)|0;
  21162. $74 = ($73|0)<($23|0);
  21163. if ($74) {
  21164. $$05665 = $73;
  21165. } else {
  21166. $$0$lcssa = $39;
  21167. break;
  21168. }
  21169. }
  21170. }
  21171. $33 = ((($$0$lcssa)) + 20|0);
  21172. $34 = HEAP32[$33>>2]|0;
  21173. $35 = ($34|0)==(0|0);
  21174. if ($35) {
  21175. HEAP32[$vararg_buffer8>>2] = $0;
  21176. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  21177. HEAP32[$vararg_ptr11>>2] = $1;
  21178. _TraceLog(2,11866,$vararg_buffer8);
  21179. $$1 = $$0$lcssa;
  21180. } else {
  21181. $$1 = $$0$lcssa;
  21182. }
  21183. } else {
  21184. HEAP32[$vararg_buffer1>>2] = $0;
  21185. _TraceLog(2,11774,$vararg_buffer1);
  21186. $$1 = 0;
  21187. }
  21188. (_fclose($4)|0);
  21189. $$2 = $$1;
  21190. STACKTOP = sp;return ($$2|0);
  21191. }
  21192. function _LoadImagePro($0,$1,$2,$3,$4) {
  21193. $0 = $0|0;
  21194. $1 = $1|0;
  21195. $2 = $2|0;
  21196. $3 = $3|0;
  21197. $4 = $4|0;
  21198. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21199. sp = STACKTOP;
  21200. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  21201. $$byval_copy = sp + 20|0;
  21202. $5 = sp;
  21203. HEAP32[$5>>2] = $1;
  21204. $6 = ((($5)) + 4|0);
  21205. HEAP32[$6>>2] = $2;
  21206. $7 = ((($5)) + 8|0);
  21207. HEAP32[$7>>2] = $3;
  21208. $8 = ((($5)) + 12|0);
  21209. HEAP32[$8>>2] = 1;
  21210. $9 = ((($5)) + 16|0);
  21211. HEAP32[$9>>2] = $4;
  21212. ;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;
  21213. _ImageCopy($0,$$byval_copy);
  21214. STACKTOP = sp;return;
  21215. }
  21216. function _UnloadResource($0) {
  21217. $0 = $0|0;
  21218. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  21219. sp = STACKTOP;
  21220. $1 = ((($0)) + 20|0);
  21221. $2 = HEAP32[$1>>2]|0;
  21222. $3 = ($2|0)==(0|0);
  21223. if ($3) {
  21224. return;
  21225. }
  21226. _free($2);
  21227. return;
  21228. }
  21229. function _ImageCopy($0,$1) {
  21230. $0 = $0|0;
  21231. $1 = $1|0;
  21232. 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;
  21233. 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;
  21234. sp = STACKTOP;
  21235. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  21236. $vararg_buffer = sp;
  21237. $2 = ((($1)) + 4|0);
  21238. $3 = HEAP32[$2>>2]|0;
  21239. $4 = ((($1)) + 8|0);
  21240. $5 = HEAP32[$4>>2]|0;
  21241. $6 = Math_imul($5, $3)|0;
  21242. $7 = ((($1)) + 16|0);
  21243. $8 = HEAP32[$7>>2]|0;
  21244. switch ($8|0) {
  21245. case 17: case 14: case 11: case 10: case 1: {
  21246. $$0 = $6;
  21247. break;
  21248. }
  21249. case 6: case 5: case 3: case 2: {
  21250. $9 = $6 << 1;
  21251. $$0 = $9;
  21252. break;
  21253. }
  21254. case 4: {
  21255. $10 = ($6*3)|0;
  21256. $$0 = $10;
  21257. break;
  21258. }
  21259. case 7: {
  21260. $11 = $6 << 2;
  21261. $$0 = $11;
  21262. break;
  21263. }
  21264. case 16: case 15: case 13: case 12: case 9: case 8: {
  21265. $12 = (($6|0) / 2)&-1;
  21266. $$0 = $12;
  21267. break;
  21268. }
  21269. case 18: {
  21270. $13 = (($6|0) / 4)&-1;
  21271. $$0 = $13;
  21272. break;
  21273. }
  21274. default: {
  21275. _TraceLog(2,11695,$vararg_buffer);
  21276. $$0 = $6;
  21277. }
  21278. }
  21279. $14 = (_malloc($$0)|0);
  21280. $15 = ($14|0)==(0|0);
  21281. if ($15) {
  21282. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  21283. } else {
  21284. $16 = HEAP32[$1>>2]|0;
  21285. _memcpy(($14|0),($16|0),($$0|0))|0;
  21286. $17 = HEAP32[$2>>2]|0;
  21287. $18 = HEAP32[$4>>2]|0;
  21288. $19 = ((($1)) + 12|0);
  21289. $20 = HEAP32[$19>>2]|0;
  21290. $21 = HEAP32[$7>>2]|0;
  21291. $$sroa$6$0 = $17;$$sroa$7$0 = $18;$$sroa$8$0 = $20;$$sroa$9$0 = $21;
  21292. }
  21293. HEAP32[$0>>2] = $14;
  21294. $$sroa$6$0$$sroa_idx10 = ((($0)) + 4|0);
  21295. HEAP32[$$sroa$6$0$$sroa_idx10>>2] = $$sroa$6$0;
  21296. $$sroa$7$0$$sroa_idx12 = ((($0)) + 8|0);
  21297. HEAP32[$$sroa$7$0$$sroa_idx12>>2] = $$sroa$7$0;
  21298. $$sroa$8$0$$sroa_idx14 = ((($0)) + 12|0);
  21299. HEAP32[$$sroa$8$0$$sroa_idx14>>2] = $$sroa$8$0;
  21300. $$sroa$9$0$$sroa_idx16 = ((($0)) + 16|0);
  21301. HEAP32[$$sroa$9$0$$sroa_idx16>>2] = $$sroa$9$0;
  21302. STACKTOP = sp;return;
  21303. }
  21304. function _DecompressData($0,$1,$2) {
  21305. $0 = $0|0;
  21306. $1 = $1|0;
  21307. $2 = $2|0;
  21308. 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;
  21309. sp = STACKTOP;
  21310. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  21311. $vararg_buffer10 = sp + 40|0;
  21312. $vararg_buffer7 = sp + 32|0;
  21313. $vararg_buffer5 = sp + 24|0;
  21314. $vararg_buffer3 = sp + 16|0;
  21315. $vararg_buffer1 = sp + 8|0;
  21316. $vararg_buffer = sp;
  21317. $3 = (_malloc($2)|0);
  21318. $4 = ($3|0)==(0|0);
  21319. if ($4) {
  21320. _TraceLog(2,11916,$vararg_buffer);
  21321. STACKTOP = sp;return ($3|0);
  21322. }
  21323. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  21324. $6 = ($5|0)==(-1);
  21325. if ($6) {
  21326. _TraceLog(2,11955,$vararg_buffer1);
  21327. _free($3);
  21328. }
  21329. $7 = ($5|0)==($2|0);
  21330. if (!($7)) {
  21331. _TraceLog(2,11981,$vararg_buffer3);
  21332. HEAP32[$vararg_buffer5>>2] = $2;
  21333. _TraceLog(2,12044,$vararg_buffer5);
  21334. HEAP32[$vararg_buffer7>>2] = $5;
  21335. _TraceLog(2,12079,$vararg_buffer7);
  21336. }
  21337. HEAP32[$vararg_buffer10>>2] = $1;
  21338. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  21339. HEAP32[$vararg_ptr13>>2] = $5;
  21340. _TraceLog(0,12114,$vararg_buffer10);
  21341. STACKTOP = sp;return ($3|0);
  21342. }
  21343. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  21344. $0 = $0|0;
  21345. $1 = $1|0;
  21346. $2 = $2|0;
  21347. $3 = $3|0;
  21348. $4 = $4|0;
  21349. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21350. sp = STACKTOP;
  21351. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  21352. $5 = sp + 11000|0;
  21353. $6 = sp;
  21354. $7 = sp + 8|0;
  21355. HEAP32[$5>>2] = $1;
  21356. HEAP32[$6>>2] = $3;
  21357. HEAP32[$7>>2] = 0;
  21358. $8 = $4 & -7;
  21359. $9 = $8 | 4;
  21360. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  21361. $11 = ($10|0)!=(0);
  21362. $12 = HEAP32[$5>>2]|0;
  21363. $13 = $11 ? -1 : $12;
  21364. STACKTOP = sp;return ($13|0);
  21365. }
  21366. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  21367. $0 = $0|0;
  21368. $1 = $1|0;
  21369. $2 = $2|0;
  21370. $3 = $3|0;
  21371. $4 = $4|0;
  21372. $5 = $5|0;
  21373. $6 = $6|0;
  21374. 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;
  21375. 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;
  21376. 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;
  21377. 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;
  21378. 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;
  21379. 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;
  21380. 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;
  21381. 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;
  21382. 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;
  21383. 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;
  21384. 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;
  21385. 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;
  21386. 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;
  21387. 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;
  21388. 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;
  21389. 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;
  21390. 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;
  21391. 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;
  21392. 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;
  21393. 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;
  21394. 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;
  21395. 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;
  21396. 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;
  21397. 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;
  21398. 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;
  21399. 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;
  21400. 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;
  21401. 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;
  21402. 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;
  21403. 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;
  21404. 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;
  21405. 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;
  21406. 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;
  21407. 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;
  21408. 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;
  21409. 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;
  21410. 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;
  21411. 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;
  21412. 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;
  21413. 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;
  21414. 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;
  21415. 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;
  21416. 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;
  21417. 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;
  21418. 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;
  21419. 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;
  21420. 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;
  21421. 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;
  21422. 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;
  21423. 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;
  21424. 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;
  21425. 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;
  21426. 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;
  21427. 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;
  21428. 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;
  21429. 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;
  21430. 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;
  21431. 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;
  21432. 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;
  21433. 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;
  21434. 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;
  21435. 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;
  21436. 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;
  21437. 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;
  21438. 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;
  21439. 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;
  21440. 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;
  21441. 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;
  21442. 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;
  21443. 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;
  21444. 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;
  21445. 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;
  21446. 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;
  21447. 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;
  21448. 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;
  21449. 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;
  21450. 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;
  21451. 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;
  21452. 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;
  21453. 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;
  21454. 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;
  21455. 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;
  21456. 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;
  21457. 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;
  21458. 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;
  21459. 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;
  21460. 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;
  21461. 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;
  21462. 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;
  21463. 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;
  21464. 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;
  21465. 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;
  21466. 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;
  21467. 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;
  21468. 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;
  21469. 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;
  21470. 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;
  21471. sp = STACKTOP;
  21472. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  21473. $7 = sp + 64|0;
  21474. $8 = sp;
  21475. $9 = HEAP32[$2>>2]|0;
  21476. $10 = (($1) + ($9)|0);
  21477. $11 = HEAP32[$5>>2]|0;
  21478. $12 = (($4) + ($11)|0);
  21479. $13 = $6 & 4;
  21480. $14 = ($13|0)!=(0);
  21481. $15 = $4;
  21482. $16 = $3;
  21483. $17 = $16 ^ -1;
  21484. $18 = (($15) + ($17))|0;
  21485. $19 = (($18) + ($11))|0;
  21486. $$1753 = $14 ? -1 : $19;
  21487. $20 = (($$1753) + 1)|0;
  21488. $21 = $20 & $$1753;
  21489. $22 = ($21|0)!=(0);
  21490. $23 = ($4>>>0)<($3>>>0);
  21491. $or$cond1702 = $23 | $22;
  21492. if ($or$cond1702) {
  21493. HEAP32[$5>>2] = 0;
  21494. HEAP32[$2>>2] = 0;
  21495. $$0951 = -3;
  21496. STACKTOP = sp;return ($$0951|0);
  21497. }
  21498. $24 = ((($0)) + 4|0);
  21499. $25 = HEAP32[$24>>2]|0;
  21500. $26 = ((($0)) + 56|0);
  21501. $27 = HEAP32[$26>>2]|0;
  21502. $28 = ((($0)) + 32|0);
  21503. $29 = HEAP32[$28>>2]|0;
  21504. $30 = ((($0)) + 36|0);
  21505. $31 = HEAP32[$30>>2]|0;
  21506. $32 = ((($0)) + 40|0);
  21507. $33 = HEAP32[$32>>2]|0;
  21508. $34 = ((($0)) + 60|0);
  21509. $35 = HEAP32[$34>>2]|0;
  21510. $36 = HEAP32[$0>>2]|0;
  21511. L5: do {
  21512. switch ($36|0) {
  21513. case 0: {
  21514. $37 = ((($0)) + 12|0);
  21515. HEAP32[$37>>2] = 0;
  21516. $38 = ((($0)) + 8|0);
  21517. HEAP32[$38>>2] = 0;
  21518. $39 = ((($0)) + 28|0);
  21519. HEAP32[$39>>2] = 1;
  21520. $40 = ((($0)) + 16|0);
  21521. HEAP32[$40>>2] = 1;
  21522. $41 = $6 & 1;
  21523. $42 = ($41|0)==(0);
  21524. if ($42) {
  21525. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  21526. label = 14;
  21527. } else {
  21528. $43 = ($9|0)<(1);
  21529. if ($43) {
  21530. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  21531. label = 6;
  21532. } else {
  21533. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  21534. label = 8;
  21535. }
  21536. }
  21537. break;
  21538. }
  21539. case 1: {
  21540. $46 = ($9|0)>(0);
  21541. if ($46) {
  21542. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  21543. label = 8;
  21544. } else {
  21545. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  21546. label = 6;
  21547. }
  21548. break;
  21549. }
  21550. case 2: {
  21551. $53 = ($9|0)>(0);
  21552. if ($53) {
  21553. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  21554. label = 12;
  21555. } else {
  21556. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  21557. label = 10;
  21558. }
  21559. break;
  21560. }
  21561. case 36: {
  21562. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  21563. label = 243;
  21564. break;
  21565. }
  21566. case 3: {
  21567. $75 = ($9|0)>(0);
  21568. if ($75) {
  21569. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  21570. label = 18;
  21571. } else {
  21572. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  21573. label = 16;
  21574. }
  21575. break;
  21576. }
  21577. case 5: {
  21578. $90 = ($9|0)>(0);
  21579. if ($90) {
  21580. $91 = ((($1)) + 1|0);
  21581. $92 = HEAP8[$1>>0]|0;
  21582. $93 = $92&255;
  21583. $$01412 = $93;$$111518 = $91;
  21584. } else {
  21585. $88 = $6 & 2;
  21586. $89 = ($88|0)==(0);
  21587. if ($89) {
  21588. $$01412 = 0;$$111518 = $1;
  21589. } else {
  21590. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  21591. label = 243;
  21592. break L5;
  21593. }
  21594. }
  21595. $94 = $$01412 << $25;
  21596. $95 = $94 | $27;
  21597. $96 = (($25) + 8)|0;
  21598. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  21599. label = 25;
  21600. break;
  21601. }
  21602. case 6: {
  21603. $106 = ($9|0)>(0);
  21604. if ($106) {
  21605. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  21606. label = 32;
  21607. } else {
  21608. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  21609. label = 30;
  21610. }
  21611. break;
  21612. }
  21613. case 7: {
  21614. $120 = ($9|0)>(0);
  21615. if ($120) {
  21616. $121 = ((($1)) + 1|0);
  21617. $122 = HEAP8[$1>>0]|0;
  21618. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  21619. label = 39;
  21620. } else {
  21621. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  21622. label = 36;
  21623. }
  21624. break;
  21625. }
  21626. case 39: {
  21627. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  21628. label = 43;
  21629. break;
  21630. }
  21631. case 51: {
  21632. $152 = ($9|0)>(0);
  21633. if ($152) {
  21634. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  21635. label = 49;
  21636. } else {
  21637. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  21638. label = 47;
  21639. }
  21640. break;
  21641. }
  21642. case 52: {
  21643. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  21644. label = 52;
  21645. break;
  21646. }
  21647. case 9: {
  21648. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  21649. label = 55;
  21650. break;
  21651. }
  21652. case 38: {
  21653. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  21654. label = 56;
  21655. break;
  21656. }
  21657. case 40: {
  21658. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  21659. label = 58;
  21660. break;
  21661. }
  21662. case 10: {
  21663. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  21664. label = 60;
  21665. break;
  21666. }
  21667. case 11: {
  21668. $193 = ($9|0)>(0);
  21669. if ($193) {
  21670. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  21671. label = 66;
  21672. } else {
  21673. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  21674. label = 64;
  21675. }
  21676. break;
  21677. }
  21678. case 14: {
  21679. $224 = ($9|0)>(0);
  21680. if ($224) {
  21681. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  21682. label = 75;
  21683. } else {
  21684. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  21685. label = 73;
  21686. }
  21687. break;
  21688. }
  21689. case 35: {
  21690. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  21691. label = 86;
  21692. break;
  21693. }
  21694. case 16: {
  21695. $452 = ($9|0)>(0);
  21696. if ($452) {
  21697. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  21698. label = 116;
  21699. } else {
  21700. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  21701. label = 114;
  21702. }
  21703. break;
  21704. }
  21705. case 17: {
  21706. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  21707. label = 125;
  21708. break;
  21709. }
  21710. case 18: {
  21711. $503 = ($9|0)>(0);
  21712. if ($503) {
  21713. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  21714. label = 130;
  21715. } else {
  21716. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  21717. label = 128;
  21718. }
  21719. break;
  21720. }
  21721. case 21: {
  21722. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  21723. label = 136;
  21724. break;
  21725. }
  21726. case 23: {
  21727. $572 = ($9|0)>(0);
  21728. if ($572) {
  21729. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  21730. label = 153;
  21731. } else {
  21732. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  21733. label = 151;
  21734. }
  21735. break;
  21736. }
  21737. case 24: {
  21738. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  21739. label = 160;
  21740. break;
  21741. }
  21742. case 25: {
  21743. $696 = ($9|0)>(0);
  21744. if ($696) {
  21745. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  21746. label = 182;
  21747. } else {
  21748. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  21749. label = 180;
  21750. }
  21751. break;
  21752. }
  21753. case 26: {
  21754. $737 = ($9|0)>(0);
  21755. if ($737) {
  21756. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  21757. label = 195;
  21758. } else {
  21759. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  21760. label = 193;
  21761. }
  21762. break;
  21763. }
  21764. case 27: {
  21765. $784 = ($9|0)>(0);
  21766. if ($784) {
  21767. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  21768. label = 206;
  21769. } else {
  21770. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  21771. label = 204;
  21772. }
  21773. break;
  21774. }
  21775. case 37: {
  21776. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  21777. label = 210;
  21778. break;
  21779. }
  21780. case 53: {
  21781. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  21782. label = 213;
  21783. break;
  21784. }
  21785. case 32: {
  21786. $842 = ($9|0)>(0);
  21787. if ($842) {
  21788. $843 = ((($1)) + 1|0);
  21789. $844 = HEAP8[$1>>0]|0;
  21790. $845 = $844&255;
  21791. $$0949 = $845;$$881595 = $843;
  21792. } else {
  21793. $840 = $6 & 2;
  21794. $841 = ($840|0)==(0);
  21795. if ($841) {
  21796. $$0949 = 0;$$881595 = $1;
  21797. } else {
  21798. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  21799. label = 243;
  21800. break L5;
  21801. }
  21802. }
  21803. $846 = $$0949 << $25;
  21804. $847 = $846 | $27;
  21805. $848 = (($25) + 8)|0;
  21806. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  21807. label = 226;
  21808. break;
  21809. }
  21810. case 41: {
  21811. $858 = ($9|0)>(0);
  21812. if ($858) {
  21813. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  21814. label = 233;
  21815. } else {
  21816. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  21817. label = 231;
  21818. }
  21819. break;
  21820. }
  21821. case 42: {
  21822. $871 = ($9|0)>(0);
  21823. if ($871) {
  21824. $872 = ((($1)) + 1|0);
  21825. $873 = HEAP8[$1>>0]|0;
  21826. $874 = $873&255;
  21827. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  21828. label = 241;
  21829. } else {
  21830. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  21831. label = 237;
  21832. }
  21833. break;
  21834. }
  21835. case 34: {
  21836. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  21837. label = 242;
  21838. break;
  21839. }
  21840. default: {
  21841. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  21842. label = 244;
  21843. }
  21844. }
  21845. } while(0);
  21846. if ((label|0) == 6) {
  21847. $44 = $6 & 2;
  21848. $45 = ($44|0)==(0);
  21849. if ($45) {
  21850. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  21851. label = 9;
  21852. } else {
  21853. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  21854. label = 243;
  21855. }
  21856. }
  21857. else if ((label|0) == 8) {
  21858. $47 = ((($1)) + 1|0);
  21859. $48 = HEAP8[$1>>0]|0;
  21860. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  21861. label = 9;
  21862. }
  21863. if ((label|0) == 9) {
  21864. $$sink3 = $$sink3$shrunk&255;
  21865. $49 = ((($0)) + 8|0);
  21866. HEAP32[$49>>2] = $$sink3;
  21867. $50 = ($$01507>>>0)<($10>>>0);
  21868. if ($50) {
  21869. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  21870. label = 12;
  21871. } else {
  21872. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  21873. label = 10;
  21874. }
  21875. }
  21876. if ((label|0) == 10) {
  21877. $51 = $6 & 2;
  21878. $52 = ($51|0)==(0);
  21879. if ($52) {
  21880. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  21881. label = 13;
  21882. } else {
  21883. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  21884. label = 243;
  21885. }
  21886. }
  21887. else if ((label|0) == 12) {
  21888. $54 = ((($$sink1705)) + 1|0);
  21889. $55 = HEAP8[$$sink1705>>0]|0;
  21890. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  21891. label = 13;
  21892. }
  21893. if ((label|0) == 13) {
  21894. $$sink9 = $$sink9$shrunk&255;
  21895. $56 = ((($0)) + 12|0);
  21896. HEAP32[$56>>2] = $$sink9;
  21897. $57 = ((($0)) + 8|0);
  21898. $58 = HEAP32[$57>>2]|0;
  21899. $59 = $58 << 8;
  21900. $60 = $59 | $$sink9;
  21901. $61 = (($60>>>0) % 31)&-1;
  21902. $62 = $$sink9 & 32;
  21903. $63 = $61 | $62;
  21904. $64 = $58 & 15;
  21905. $65 = ($64|0)!=(8);
  21906. $not$ = ($63|0)!=(0);
  21907. $$1754 = $65 | $not$;
  21908. $66 = $58 >>> 4;
  21909. $67 = 256 << $66;
  21910. $68 = ($67>>>0)>(32768);
  21911. $69 = ($20>>>0)<($67>>>0);
  21912. $$ = $68 | $69;
  21913. $not$1755 = $14 ^ 1;
  21914. $70 = $$ & $not$1755;
  21915. $$31100$v = $70 | $$1754;
  21916. if ($$31100$v) {
  21917. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  21918. label = 243;
  21919. } else {
  21920. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  21921. label = 14;
  21922. }
  21923. }
  21924. L46: while(1) {
  21925. switch (label|0) {
  21926. case 14: {
  21927. label = 0;
  21928. $71 = ($$5>>>0)<(3);
  21929. if ($71) {
  21930. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  21931. label = 15;
  21932. } else {
  21933. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  21934. label = 20;
  21935. }
  21936. break;
  21937. }
  21938. case 16: {
  21939. label = 0;
  21940. $73 = $6 & 2;
  21941. $74 = ($73|0)==(0);
  21942. if ($74) {
  21943. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  21944. label = 19;
  21945. } else {
  21946. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  21947. label = 243;
  21948. continue L46;
  21949. }
  21950. break;
  21951. }
  21952. case 18: {
  21953. label = 0;
  21954. $76 = ((($$sink1710)) + 1|0);
  21955. $77 = HEAP8[$$sink1710>>0]|0;
  21956. $$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;
  21957. label = 19;
  21958. break;
  21959. }
  21960. case 25: {
  21961. label = 0;
  21962. $97 = $$13 & 7;
  21963. $98 = $$131322 >>> $97;
  21964. $99 = (($$13) - ($97))|0;
  21965. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  21966. label = 26;
  21967. break;
  21968. }
  21969. case 30: {
  21970. label = 0;
  21971. $104 = $6 & 2;
  21972. $105 = ($104|0)==(0);
  21973. if ($105) {
  21974. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  21975. label = 33;
  21976. } else {
  21977. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  21978. label = 243;
  21979. continue L46;
  21980. }
  21981. break;
  21982. }
  21983. case 32: {
  21984. label = 0;
  21985. $107 = ((($$sink1713)) + 1|0);
  21986. $108 = HEAP8[$$sink1713>>0]|0;
  21987. $$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;
  21988. label = 33;
  21989. break;
  21990. }
  21991. case 36: {
  21992. label = 0;
  21993. $118 = $6 & 2;
  21994. $119 = ($118|0)==(0);
  21995. if ($119) {
  21996. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  21997. label = 39;
  21998. continue L46;
  21999. } else {
  22000. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  22001. label = 243;
  22002. continue L46;
  22003. }
  22004. break;
  22005. }
  22006. case 39: {
  22007. label = 0;
  22008. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  22009. HEAP8[$$sink13>>0] = $$sink12;
  22010. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  22011. label = 41;
  22012. break;
  22013. }
  22014. case 43: {
  22015. label = 0;
  22016. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  22017. label = 243;
  22018. continue L46;
  22019. break;
  22020. }
  22021. case 47: {
  22022. label = 0;
  22023. $150 = $6 & 2;
  22024. $151 = ($150|0)==(0);
  22025. if ($151) {
  22026. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  22027. label = 50;
  22028. } else {
  22029. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  22030. label = 243;
  22031. continue L46;
  22032. }
  22033. break;
  22034. }
  22035. case 49: {
  22036. label = 0;
  22037. $153 = ((($$sink1716)) + 1|0);
  22038. $154 = HEAP8[$$sink1716>>0]|0;
  22039. $$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;
  22040. label = 50;
  22041. break;
  22042. }
  22043. case 52: {
  22044. label = 0;
  22045. $162 = ($$231630>>>0)<($12>>>0);
  22046. if (!($162)) {
  22047. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  22048. label = 243;
  22049. continue L46;
  22050. }
  22051. $163 = $$271018&255;
  22052. $164 = ((($$231630)) + 1|0);
  22053. HEAP8[$$231630>>0] = $163;
  22054. $165 = (($$271124) + -1)|0;
  22055. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  22056. label = 44;
  22057. break;
  22058. }
  22059. case 55: {
  22060. label = 0;
  22061. $167 = ($$251632>>>0)<($12>>>0);
  22062. if ($167) {
  22063. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  22064. label = 56;
  22065. continue L46;
  22066. } else {
  22067. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  22068. label = 243;
  22069. continue L46;
  22070. }
  22071. break;
  22072. }
  22073. case 56: {
  22074. label = 0;
  22075. $168 = ($$301537>>>0)<($10>>>0);
  22076. if ($168) {
  22077. $171 = $12;
  22078. $172 = $$261633;
  22079. $173 = (($171) - ($172))|0;
  22080. $174 = $10;
  22081. $175 = $$301537;
  22082. $176 = (($174) - ($175))|0;
  22083. $177 = ($173>>>0)<($176>>>0);
  22084. $$sink17 = $177 ? $12 : $10;
  22085. $$sink16 = $177 ? $$261633 : $$301537;
  22086. $178 = $$sink17;
  22087. $179 = $$sink16;
  22088. $180 = (($178) - ($179))|0;
  22089. $181 = ($180>>>0)<($$301127>>>0);
  22090. $$$301127 = $181 ? $180 : $$301127;
  22091. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  22092. $182 = (($$301537) + ($$$301127)|0);
  22093. $183 = (($$261633) + ($$$301127)|0);
  22094. $184 = (($$301127) - ($$$301127))|0;
  22095. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  22096. label = 54;
  22097. break;
  22098. } else {
  22099. $169 = $6 & 2;
  22100. $170 = ($169|0)==(0);
  22101. if ($170) {
  22102. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  22103. label = 58;
  22104. continue L46;
  22105. } else {
  22106. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  22107. label = 243;
  22108. continue L46;
  22109. }
  22110. }
  22111. break;
  22112. }
  22113. case 58: {
  22114. label = 0;
  22115. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  22116. label = 243;
  22117. continue L46;
  22118. break;
  22119. }
  22120. case 60: {
  22121. label = 0;
  22122. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  22123. label = 243;
  22124. continue L46;
  22125. break;
  22126. }
  22127. case 64: {
  22128. label = 0;
  22129. $191 = $6 & 2;
  22130. $192 = ($191|0)==(0);
  22131. if ($192) {
  22132. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  22133. label = 67;
  22134. } else {
  22135. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  22136. label = 243;
  22137. continue L46;
  22138. }
  22139. break;
  22140. }
  22141. case 66: {
  22142. label = 0;
  22143. $194 = ((($$sink1719)) + 1|0);
  22144. $195 = HEAP8[$$sink1719>>0]|0;
  22145. $$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;
  22146. label = 67;
  22147. break;
  22148. }
  22149. case 73: {
  22150. label = 0;
  22151. $222 = $6 & 2;
  22152. $223 = ($222|0)==(0);
  22153. if ($223) {
  22154. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  22155. label = 76;
  22156. } else {
  22157. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  22158. label = 243;
  22159. continue L46;
  22160. }
  22161. break;
  22162. }
  22163. case 75: {
  22164. label = 0;
  22165. $225 = ((($$sink1722)) + 1|0);
  22166. $226 = HEAP8[$$sink1722>>0]|0;
  22167. $$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;
  22168. label = 76;
  22169. break;
  22170. }
  22171. case 86: {
  22172. label = 0;
  22173. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  22174. label = 243;
  22175. continue L46;
  22176. break;
  22177. }
  22178. case 114: {
  22179. label = 0;
  22180. $450 = $6 & 2;
  22181. $451 = ($450|0)==(0);
  22182. if ($451) {
  22183. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  22184. label = 117;
  22185. } else {
  22186. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  22187. label = 243;
  22188. continue L46;
  22189. }
  22190. break;
  22191. }
  22192. case 116: {
  22193. label = 0;
  22194. $453 = ((($$sink1729)) + 1|0);
  22195. $454 = HEAP8[$$sink1729>>0]|0;
  22196. $$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;
  22197. label = 117;
  22198. break;
  22199. }
  22200. case 125: {
  22201. label = 0;
  22202. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  22203. label = 243;
  22204. continue L46;
  22205. break;
  22206. }
  22207. case 128: {
  22208. label = 0;
  22209. $501 = $6 & 2;
  22210. $502 = ($501|0)==(0);
  22211. if ($502) {
  22212. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  22213. label = 131;
  22214. } else {
  22215. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  22216. label = 243;
  22217. continue L46;
  22218. }
  22219. break;
  22220. }
  22221. case 130: {
  22222. label = 0;
  22223. $504 = ((($$sink1732)) + 1|0);
  22224. $505 = HEAP8[$$sink1732>>0]|0;
  22225. $$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;
  22226. label = 131;
  22227. break;
  22228. }
  22229. case 136: {
  22230. label = 0;
  22231. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  22232. label = 243;
  22233. continue L46;
  22234. break;
  22235. }
  22236. case 151: {
  22237. label = 0;
  22238. $570 = $6 & 2;
  22239. $571 = ($570|0)==(0);
  22240. if ($571) {
  22241. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  22242. label = 154;
  22243. } else {
  22244. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  22245. label = 243;
  22246. continue L46;
  22247. }
  22248. break;
  22249. }
  22250. case 153: {
  22251. label = 0;
  22252. $573 = ((($$sink1736)) + 1|0);
  22253. $574 = HEAP8[$$sink1736>>0]|0;
  22254. $$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;
  22255. label = 154;
  22256. break;
  22257. }
  22258. case 160: {
  22259. label = 0;
  22260. $610 = ($$591666>>>0)<($12>>>0);
  22261. if (!($610)) {
  22262. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  22263. label = 243;
  22264. continue L46;
  22265. }
  22266. $611 = $$621159&255;
  22267. $612 = ((($$591666)) + 1|0);
  22268. HEAP8[$$591666>>0] = $611;
  22269. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  22270. label = 140;
  22271. break;
  22272. }
  22273. case 180: {
  22274. label = 0;
  22275. $694 = $6 & 2;
  22276. $695 = ($694|0)==(0);
  22277. if ($695) {
  22278. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  22279. label = 183;
  22280. } else {
  22281. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  22282. label = 243;
  22283. continue L46;
  22284. }
  22285. break;
  22286. }
  22287. case 182: {
  22288. label = 0;
  22289. $697 = ((($$sink1739)) + 1|0);
  22290. $698 = HEAP8[$$sink1739>>0]|0;
  22291. $$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;
  22292. label = 183;
  22293. break;
  22294. }
  22295. case 193: {
  22296. label = 0;
  22297. $735 = $6 & 2;
  22298. $736 = ($735|0)==(0);
  22299. if ($736) {
  22300. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  22301. label = 196;
  22302. } else {
  22303. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  22304. label = 243;
  22305. continue L46;
  22306. }
  22307. break;
  22308. }
  22309. case 195: {
  22310. label = 0;
  22311. $738 = ((($$sink1743)) + 1|0);
  22312. $739 = HEAP8[$$sink1743>>0]|0;
  22313. $$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;
  22314. label = 196;
  22315. break;
  22316. }
  22317. case 204: {
  22318. label = 0;
  22319. $782 = $6 & 2;
  22320. $783 = ($782|0)==(0);
  22321. if ($783) {
  22322. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  22323. label = 207;
  22324. } else {
  22325. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  22326. label = 243;
  22327. continue L46;
  22328. }
  22329. break;
  22330. }
  22331. case 206: {
  22332. label = 0;
  22333. $785 = ((($$sink1746)) + 1|0);
  22334. $786 = HEAP8[$$sink1746>>0]|0;
  22335. $$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;
  22336. label = 207;
  22337. break;
  22338. }
  22339. case 210: {
  22340. label = 0;
  22341. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  22342. label = 243;
  22343. continue L46;
  22344. break;
  22345. }
  22346. case 213: {
  22347. label = 0;
  22348. $809 = ($$781685>>>0)<($12>>>0);
  22349. if (!($809)) {
  22350. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  22351. label = 243;
  22352. continue L46;
  22353. }
  22354. $810 = (($$751491) + 1)|0;
  22355. $811 = (($$751491) - ($$791070))|0;
  22356. $812 = $811 & $$1753;
  22357. $813 = (($3) + ($812)|0);
  22358. $814 = HEAP8[$813>>0]|0;
  22359. $815 = ((($$781685)) + 1|0);
  22360. HEAP8[$$781685>>0] = $814;
  22361. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  22362. label = 212;
  22363. break;
  22364. }
  22365. case 226: {
  22366. label = 0;
  22367. $849 = $$90 & 7;
  22368. $850 = $$901399 >>> $849;
  22369. $851 = (($$90) - ($849))|0;
  22370. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  22371. label = 227;
  22372. break;
  22373. }
  22374. case 231: {
  22375. label = 0;
  22376. $856 = $6 & 2;
  22377. $857 = ($856|0)==(0);
  22378. if ($857) {
  22379. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  22380. label = 234;
  22381. } else {
  22382. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  22383. label = 243;
  22384. continue L46;
  22385. }
  22386. break;
  22387. }
  22388. case 233: {
  22389. label = 0;
  22390. $859 = ((($$sink1750)) + 1|0);
  22391. $860 = HEAP8[$$sink1750>>0]|0;
  22392. $$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;
  22393. label = 234;
  22394. break;
  22395. }
  22396. case 237: {
  22397. label = 0;
  22398. $869 = $6 & 2;
  22399. $870 = ($869|0)==(0);
  22400. if ($870) {
  22401. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  22402. label = 241;
  22403. continue L46;
  22404. } else {
  22405. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  22406. label = 243;
  22407. continue L46;
  22408. }
  22409. break;
  22410. }
  22411. case 241: {
  22412. label = 0;
  22413. $878 = ((($0)) + 16|0);
  22414. $879 = HEAP32[$878>>2]|0;
  22415. $880 = $879 << 8;
  22416. $881 = $880 | $$0948;
  22417. HEAP32[$878>>2] = $881;
  22418. $882 = (($$931190) + 1)|0;
  22419. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  22420. label = 227;
  22421. break;
  22422. }
  22423. case 242: {
  22424. label = 0;
  22425. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  22426. label = 243;
  22427. continue L46;
  22428. break;
  22429. }
  22430. case 243: {
  22431. label = 0;
  22432. HEAP32[$0>>2] = $$sink30;
  22433. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  22434. label = 244;
  22435. continue L46;
  22436. break;
  22437. }
  22438. case 244: {
  22439. label = 0;
  22440. HEAP32[$24>>2] = $$100;
  22441. HEAP32[$26>>2] = $$1001409;
  22442. HEAP32[$28>>2] = $$941085;
  22443. HEAP32[$30>>2] = $$961193;
  22444. HEAP32[$32>>2] = $$961299;
  22445. HEAP32[$34>>2] = $$901506;
  22446. $883 = $$991606;
  22447. $884 = $1;
  22448. $885 = (($883) - ($884))|0;
  22449. HEAP32[$2>>2] = $885;
  22450. $886 = $$941701;
  22451. $887 = $4;
  22452. $888 = (($886) - ($887))|0;
  22453. HEAP32[$5>>2] = $888;
  22454. $889 = $6 & 9;
  22455. $890 = ($889|0)!=(0);
  22456. $891 = ($$1961|0)>(-1);
  22457. $or$cond29 = $890 & $891;
  22458. if ($or$cond29) {
  22459. break L46;
  22460. } else {
  22461. $$0951 = $$1961;
  22462. label = 258;
  22463. break L46;
  22464. }
  22465. break;
  22466. }
  22467. }
  22468. switch (label|0) {
  22469. case 19: {
  22470. label = 0;
  22471. $$01413 = $$01413$shrunk&255;
  22472. $78 = $$01413 << $$8;
  22473. $79 = $78 | $$81317;
  22474. $80 = (($$8) + 8)|0;
  22475. $81 = ($80>>>0)<(3);
  22476. if ($81) {
  22477. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  22478. label = 15;
  22479. } else {
  22480. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  22481. label = 20;
  22482. }
  22483. break;
  22484. }
  22485. case 33: {
  22486. label = 0;
  22487. $$01411 = $$01411$shrunk&255;
  22488. $109 = $$01411 << $$17;
  22489. $110 = $109 | $$171326;
  22490. $111 = (($$17) + 8)|0;
  22491. $112 = ($$17>>>0)>(4294967287);
  22492. if ($112) {
  22493. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  22494. label = 29;
  22495. } else {
  22496. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  22497. label = 34;
  22498. }
  22499. break;
  22500. }
  22501. case 50: {
  22502. label = 0;
  22503. $$01410 = $$01410$shrunk&255;
  22504. $155 = $$01410 << $$26;
  22505. $156 = $155 | $$261335;
  22506. $157 = (($$26) + 8)|0;
  22507. $158 = ($$26>>>0)>(4294967287);
  22508. if ($158) {
  22509. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  22510. label = 46;
  22511. } else {
  22512. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  22513. label = 51;
  22514. }
  22515. break;
  22516. }
  22517. case 67: {
  22518. label = 0;
  22519. $$01300 = $$01300$shrunk&255;
  22520. $196 = $$01300 << $$37;
  22521. $197 = $196 | $$371346;
  22522. $198 = (($$37) + 8)|0;
  22523. $199 = (12171 + ($$361133)|0);
  22524. $200 = HEAP8[$199>>0]|0;
  22525. $201 = $200 << 24 >> 24;
  22526. $202 = ($198>>>0)<($201>>>0);
  22527. if ($202) {
  22528. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  22529. label = 63;
  22530. } else {
  22531. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  22532. label = 68;
  22533. }
  22534. break;
  22535. }
  22536. case 76: {
  22537. label = 0;
  22538. $$01202 = $$01202$shrunk&255;
  22539. $227 = $$01202 << $$42;
  22540. $228 = $227 | $$421351;
  22541. $229 = (($$42) + 8)|0;
  22542. $230 = ($229>>>0)<(3);
  22543. if ($230) {
  22544. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  22545. label = 72;
  22546. } else {
  22547. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  22548. label = 77;
  22549. }
  22550. break;
  22551. }
  22552. case 117: {
  22553. label = 0;
  22554. $$0980 = $$0980$shrunk&255;
  22555. $455 = $$0980 << $$49;
  22556. $456 = $455 | $$491358;
  22557. $457 = (($$49) + 8)|0;
  22558. $458 = ($457>>>0)<(15);
  22559. if ($458) {
  22560. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  22561. label = 108;
  22562. } else {
  22563. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  22564. label = 119;
  22565. }
  22566. break;
  22567. }
  22568. case 131: {
  22569. label = 0;
  22570. $$0979 = $$0979$shrunk&255;
  22571. $506 = $$0979 << $$54;
  22572. $507 = $506 | $$541363;
  22573. $508 = (($$54) + 8)|0;
  22574. $509 = ($508>>>0)<($$541257>>>0);
  22575. if ($509) {
  22576. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  22577. label = 127;
  22578. } else {
  22579. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  22580. label = 132;
  22581. }
  22582. break;
  22583. }
  22584. case 154: {
  22585. label = 0;
  22586. $$0971 = $$0971$shrunk&255;
  22587. $575 = $$0971 << $$62;
  22588. $576 = $575 | $$621371;
  22589. $577 = (($$62) + 8)|0;
  22590. $578 = ($577>>>0)<(15);
  22591. if ($578) {
  22592. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  22593. label = 145;
  22594. } else {
  22595. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  22596. label = 156;
  22597. }
  22598. break;
  22599. }
  22600. case 183: {
  22601. label = 0;
  22602. $$0959 = $$0959$shrunk&255;
  22603. $699 = $$0959 << $$71;
  22604. $700 = $699 | $$711380;
  22605. $701 = (($$71) + 8)|0;
  22606. $702 = ($701>>>0)<($$681271>>>0);
  22607. if ($702) {
  22608. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  22609. label = 179;
  22610. } else {
  22611. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  22612. label = 184;
  22613. }
  22614. break;
  22615. }
  22616. case 196: {
  22617. label = 0;
  22618. $$0952 = $$0952$shrunk&255;
  22619. $740 = $$0952 << $$76;
  22620. $741 = $740 | $$761385;
  22621. $742 = (($$76) + 8)|0;
  22622. $743 = ($742>>>0)<(15);
  22623. if ($743) {
  22624. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  22625. label = 187;
  22626. } else {
  22627. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  22628. label = 198;
  22629. }
  22630. break;
  22631. }
  22632. case 207: {
  22633. label = 0;
  22634. $$0950 = $$0950$shrunk&255;
  22635. $787 = $$0950 << $$80;
  22636. $788 = $787 | $$801389;
  22637. $789 = (($$80) + 8)|0;
  22638. $790 = ($789>>>0)<($$761279>>>0);
  22639. if ($790) {
  22640. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  22641. label = 203;
  22642. } else {
  22643. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  22644. label = 208;
  22645. }
  22646. break;
  22647. }
  22648. case 227: {
  22649. label = 0;
  22650. $852 = ($$871184>>>0)<(4);
  22651. if (!($852)) {
  22652. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  22653. label = 242;
  22654. continue L46;
  22655. }
  22656. $853 = ($$91|0)==(0);
  22657. if (!($853)) {
  22658. $854 = ($$91>>>0)<(8);
  22659. if ($854) {
  22660. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  22661. label = 230;
  22662. break;
  22663. } else {
  22664. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  22665. label = 235;
  22666. break;
  22667. }
  22668. }
  22669. $868 = ($$901597>>>0)<($10>>>0);
  22670. if (!($868)) {
  22671. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  22672. label = 237;
  22673. continue L46;
  22674. }
  22675. $875 = ((($$901597)) + 1|0);
  22676. $876 = HEAP8[$$901597>>0]|0;
  22677. $877 = $876&255;
  22678. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  22679. label = 241;
  22680. continue L46;
  22681. break;
  22682. }
  22683. case 234: {
  22684. label = 0;
  22685. $$0947 = $$0947$shrunk&255;
  22686. $861 = $$0947 << $$94;
  22687. $862 = $861 | $$941403;
  22688. $863 = (($$94) + 8)|0;
  22689. $864 = ($$94>>>0)>(4294967287);
  22690. if ($864) {
  22691. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  22692. label = 230;
  22693. } else {
  22694. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  22695. label = 235;
  22696. }
  22697. break;
  22698. }
  22699. }
  22700. L119: do {
  22701. if ((label|0) == 15) {
  22702. label = 0;
  22703. $72 = ($$51512>>>0)<($10>>>0);
  22704. if ($72) {
  22705. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  22706. label = 18;
  22707. continue L46;
  22708. } else {
  22709. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  22710. label = 16;
  22711. continue L46;
  22712. }
  22713. }
  22714. else if ((label|0) == 20) {
  22715. label = 0;
  22716. $82 = $$91318 & 7;
  22717. $83 = ((($0)) + 20|0);
  22718. HEAP32[$83>>2] = $82;
  22719. $84 = $$91318 >>> 3;
  22720. $85 = (($$9) + -3)|0;
  22721. $86 = $82 >>> 1;
  22722. $87 = ((($0)) + 24|0);
  22723. HEAP32[$87>>2] = $86;
  22724. $trunc = $86&255;
  22725. $trunc$clear = $trunc & 3;
  22726. switch ($trunc$clear<<24>>24) {
  22727. case 0: {
  22728. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  22729. label = 25;
  22730. continue L46;
  22731. break;
  22732. }
  22733. case 3: {
  22734. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  22735. label = 60;
  22736. continue L46;
  22737. break;
  22738. }
  22739. case 1: {
  22740. break;
  22741. }
  22742. default: {
  22743. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  22744. label = 61;
  22745. break L119;
  22746. }
  22747. }
  22748. $240 = ((($0)) + 44|0);
  22749. HEAP32[$240>>2] = 288;
  22750. $241 = ((($0)) + 48|0);
  22751. HEAP32[$241>>2] = 32;
  22752. $242 = ((($0)) + 3552|0);
  22753. ;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;
  22754. $scevgep19611962 = ((($0)) + 64|0);
  22755. _memset(($scevgep19611962|0),8,144)|0;
  22756. $scevgep1959 = ((($0)) + 208|0);
  22757. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22758. $scevgep1957 = ((($0)) + 320|0);
  22759. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22760. $scevgep1955 = ((($0)) + 344|0);
  22761. $243 = $scevgep1955;
  22762. $244 = $243;
  22763. 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;
  22764. $245 = (($243) + 4)|0;
  22765. $246 = $245;
  22766. 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;
  22767. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  22768. label = 80;
  22769. }
  22770. else if ((label|0) == 230) {
  22771. label = 0;
  22772. $855 = ($$911598>>>0)<($10>>>0);
  22773. if ($855) {
  22774. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  22775. label = 233;
  22776. continue L46;
  22777. } else {
  22778. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  22779. label = 231;
  22780. continue L46;
  22781. }
  22782. }
  22783. else if ((label|0) == 235) {
  22784. label = 0;
  22785. $865 = $$951404 & 255;
  22786. $866 = $$951404 >>> 8;
  22787. $867 = (($$95) + -8)|0;
  22788. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  22789. label = 241;
  22790. continue L46;
  22791. }
  22792. } while(0);
  22793. L125: while(1) {
  22794. L126: switch (label|0) {
  22795. case 26: {
  22796. label = 0;
  22797. $100 = ($$131110>>>0)<(4);
  22798. if (!($100)) {
  22799. $127 = ((($0)) + 10528|0);
  22800. $128 = HEAP8[$127>>0]|0;
  22801. $129 = $128&255;
  22802. $130 = ((($0)) + 10529|0);
  22803. $131 = HEAP8[$130>>0]|0;
  22804. $132 = $131&255;
  22805. $133 = $132 << 8;
  22806. $134 = $133 | $129;
  22807. $135 = ((($0)) + 10530|0);
  22808. $136 = HEAP8[$135>>0]|0;
  22809. $137 = $136&255;
  22810. $138 = ((($0)) + 10531|0);
  22811. $139 = HEAP8[$138>>0]|0;
  22812. $140 = $139&255;
  22813. $141 = $140 << 8;
  22814. $142 = $141 | $137;
  22815. $143 = $142 ^ 65535;
  22816. $144 = ($134|0)==($143|0);
  22817. if ($144) {
  22818. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  22819. label = 44;
  22820. continue L125;
  22821. } else {
  22822. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  22823. label = 43;
  22824. continue L46;
  22825. }
  22826. }
  22827. $101 = ($$14|0)==(0);
  22828. if (!($101)) {
  22829. $102 = ($$14>>>0)<(8);
  22830. if ($102) {
  22831. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  22832. label = 29;
  22833. continue L125;
  22834. } else {
  22835. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  22836. label = 34;
  22837. continue L125;
  22838. }
  22839. }
  22840. $117 = ($$131520>>>0)<($10>>>0);
  22841. if (!($117)) {
  22842. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  22843. label = 36;
  22844. continue L46;
  22845. }
  22846. $123 = ((($$131520)) + 1|0);
  22847. $124 = HEAP8[$$131520>>0]|0;
  22848. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  22849. HEAP8[$125>>0] = $124;
  22850. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  22851. label = 41;
  22852. continue L125;
  22853. break;
  22854. }
  22855. case 29: {
  22856. label = 0;
  22857. $103 = ($$141521>>>0)<($10>>>0);
  22858. if ($103) {
  22859. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  22860. label = 32;
  22861. continue L46;
  22862. } else {
  22863. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  22864. label = 30;
  22865. continue L46;
  22866. }
  22867. break;
  22868. }
  22869. case 34: {
  22870. label = 0;
  22871. $113 = $$181327&255;
  22872. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  22873. HEAP8[$114>>0] = $113;
  22874. $115 = $$181327 >>> 8;
  22875. $116 = (($$18) + -8)|0;
  22876. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  22877. label = 41;
  22878. continue L125;
  22879. break;
  22880. }
  22881. case 41: {
  22882. label = 0;
  22883. $126 = (($$201117) + 1)|0;
  22884. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  22885. label = 26;
  22886. continue L125;
  22887. break;
  22888. }
  22889. case 44: {
  22890. label = 0;
  22891. $145 = ($$221119|0)!=(0);
  22892. $146 = ($$23|0)!=(0);
  22893. $147 = $145 & $146;
  22894. if (!($147)) {
  22895. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  22896. label = 54;
  22897. continue L125;
  22898. }
  22899. $148 = ($$23>>>0)<(8);
  22900. if ($148) {
  22901. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  22902. label = 46;
  22903. continue L125;
  22904. } else {
  22905. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  22906. label = 51;
  22907. continue L125;
  22908. }
  22909. break;
  22910. }
  22911. case 46: {
  22912. label = 0;
  22913. $149 = ($$231530>>>0)<($10>>>0);
  22914. if ($149) {
  22915. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  22916. label = 49;
  22917. continue L46;
  22918. } else {
  22919. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  22920. label = 47;
  22921. continue L46;
  22922. }
  22923. break;
  22924. }
  22925. case 51: {
  22926. label = 0;
  22927. $159 = $$271336 & 255;
  22928. $160 = $$271336 >>> 8;
  22929. $161 = (($$27) + -8)|0;
  22930. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  22931. label = 52;
  22932. continue L46;
  22933. break;
  22934. }
  22935. case 54: {
  22936. label = 0;
  22937. $166 = ($$281125|0)==(0);
  22938. if ($166) {
  22939. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  22940. label = 220;
  22941. break L125;
  22942. } else {
  22943. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  22944. label = 55;
  22945. continue L46;
  22946. }
  22947. break;
  22948. }
  22949. case 61: {
  22950. label = 0;
  22951. $185 = ($$331130>>>0)<(3);
  22952. if ($185) {
  22953. $186 = (12171 + ($$331130)|0);
  22954. $187 = HEAP8[$186>>0]|0;
  22955. $188 = $187 << 24 >> 24;
  22956. $189 = ($$34>>>0)<($188>>>0);
  22957. if ($189) {
  22958. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  22959. label = 63;
  22960. continue L125;
  22961. } else {
  22962. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  22963. label = 68;
  22964. continue L125;
  22965. }
  22966. } else {
  22967. $216 = ((($0)) + 7040|0);
  22968. _memset(($216|0),0,288)|0;
  22969. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  22970. label = 70;
  22971. break;
  22972. }
  22973. break;
  22974. }
  22975. case 63: {
  22976. label = 0;
  22977. $190 = ($$341541>>>0)<($10>>>0);
  22978. if ($190) {
  22979. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  22980. label = 66;
  22981. continue L46;
  22982. } else {
  22983. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  22984. label = 64;
  22985. continue L46;
  22986. }
  22987. break;
  22988. }
  22989. case 68: {
  22990. label = 0;
  22991. $203 = (12171 + ($$371134)|0);
  22992. $204 = HEAP8[$203>>0]|0;
  22993. $205 = $204 << 24 >> 24;
  22994. $206 = 1 << $205;
  22995. $207 = (($206) + -1)|0;
  22996. $208 = $207 & $$381347;
  22997. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  22998. $210 = $$381347 >>> $205;
  22999. $211 = (($$38) - ($205))|0;
  23000. $212 = (3136 + ($$371134<<2)|0);
  23001. $213 = HEAP32[$212>>2]|0;
  23002. $214 = (($208) + ($213))|0;
  23003. HEAP32[$209>>2] = $214;
  23004. $215 = (($$371134) + 1)|0;
  23005. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  23006. label = 61;
  23007. continue L125;
  23008. break;
  23009. }
  23010. case 72: {
  23011. label = 0;
  23012. $221 = ($$391546>>>0)<($10>>>0);
  23013. if ($221) {
  23014. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  23015. label = 75;
  23016. continue L46;
  23017. } else {
  23018. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  23019. label = 73;
  23020. continue L46;
  23021. }
  23022. break;
  23023. }
  23024. case 77: {
  23025. label = 0;
  23026. $231 = $$431352 & 7;
  23027. $232 = $$431352 >>> 3;
  23028. $233 = (($$43) + -3)|0;
  23029. $234 = $231&255;
  23030. $235 = (12175 + ($$421139)|0);
  23031. $236 = HEAP8[$235>>0]|0;
  23032. $237 = $236&255;
  23033. $238 = (((($0)) + 7040|0) + ($237)|0);
  23034. HEAP8[$238>>0] = $234;
  23035. $239 = (($$421139) + 1)|0;
  23036. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  23037. label = 70;
  23038. break;
  23039. }
  23040. case 80: {
  23041. label = 0;
  23042. $247 = ((($0)) + 24|0);
  23043. $248 = HEAP32[$247>>2]|0;
  23044. $249 = ($248|0)>(-1);
  23045. if ($249) {
  23046. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  23047. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  23048. _memset(($250|0),0,3200)|0;
  23049. $251 = HEAP32[$247>>2]|0;
  23050. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  23051. $253 = HEAP32[$252>>2]|0;
  23052. $254 = ($253|0)==(0);
  23053. if (!($254)) {
  23054. $255 = HEAP32[$247>>2]|0;
  23055. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  23056. $257 = HEAP32[$256>>2]|0;
  23057. $$010951864 = 0;
  23058. while(1) {
  23059. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  23060. $259 = HEAP8[$258>>0]|0;
  23061. $260 = $259&255;
  23062. $261 = (($8) + ($260<<2)|0);
  23063. $262 = HEAP32[$261>>2]|0;
  23064. $263 = (($262) + 1)|0;
  23065. HEAP32[$261>>2] = $263;
  23066. $264 = (($$010951864) + 1)|0;
  23067. $265 = ($264>>>0)<($257>>>0);
  23068. if ($265) {
  23069. $$010951864 = $264;
  23070. } else {
  23071. break;
  23072. }
  23073. }
  23074. }
  23075. $266 = ((($7)) + 4|0);
  23076. HEAP32[$266>>2] = 0;
  23077. HEAP32[$7>>2] = 0;
  23078. $267 = ((($8)) + 4|0);
  23079. $268 = HEAP32[$267>>2]|0;
  23080. $269 = $268 << 1;
  23081. $270 = ((($7)) + 8|0);
  23082. HEAP32[$270>>2] = $269;
  23083. $271 = ((($8)) + 8|0);
  23084. $272 = HEAP32[$271>>2]|0;
  23085. $273 = (($272) + ($268))|0;
  23086. $274 = (($272) + ($269))|0;
  23087. $275 = $274 << 1;
  23088. $276 = ((($7)) + 12|0);
  23089. HEAP32[$276>>2] = $275;
  23090. $277 = ((($8)) + 12|0);
  23091. $278 = HEAP32[$277>>2]|0;
  23092. $279 = (($278) + ($273))|0;
  23093. $280 = (($278) + ($275))|0;
  23094. $281 = $280 << 1;
  23095. $282 = ((($7)) + 16|0);
  23096. HEAP32[$282>>2] = $281;
  23097. $283 = ((($8)) + 16|0);
  23098. $284 = HEAP32[$283>>2]|0;
  23099. $285 = (($284) + ($279))|0;
  23100. $286 = (($284) + ($281))|0;
  23101. $287 = $286 << 1;
  23102. $288 = ((($7)) + 20|0);
  23103. HEAP32[$288>>2] = $287;
  23104. $289 = ((($8)) + 20|0);
  23105. $290 = HEAP32[$289>>2]|0;
  23106. $291 = (($290) + ($285))|0;
  23107. $292 = (($290) + ($287))|0;
  23108. $293 = $292 << 1;
  23109. $294 = ((($7)) + 24|0);
  23110. HEAP32[$294>>2] = $293;
  23111. $295 = ((($8)) + 24|0);
  23112. $296 = HEAP32[$295>>2]|0;
  23113. $297 = (($296) + ($291))|0;
  23114. $298 = (($296) + ($293))|0;
  23115. $299 = $298 << 1;
  23116. $300 = ((($7)) + 28|0);
  23117. HEAP32[$300>>2] = $299;
  23118. $301 = ((($8)) + 28|0);
  23119. $302 = HEAP32[$301>>2]|0;
  23120. $303 = (($302) + ($297))|0;
  23121. $304 = (($302) + ($299))|0;
  23122. $305 = $304 << 1;
  23123. $306 = ((($7)) + 32|0);
  23124. HEAP32[$306>>2] = $305;
  23125. $307 = ((($8)) + 32|0);
  23126. $308 = HEAP32[$307>>2]|0;
  23127. $309 = (($308) + ($303))|0;
  23128. $310 = (($308) + ($305))|0;
  23129. $311 = $310 << 1;
  23130. $312 = ((($7)) + 36|0);
  23131. HEAP32[$312>>2] = $311;
  23132. $313 = ((($8)) + 36|0);
  23133. $314 = HEAP32[$313>>2]|0;
  23134. $315 = (($314) + ($309))|0;
  23135. $316 = (($314) + ($311))|0;
  23136. $317 = $316 << 1;
  23137. $318 = ((($7)) + 40|0);
  23138. HEAP32[$318>>2] = $317;
  23139. $319 = ((($8)) + 40|0);
  23140. $320 = HEAP32[$319>>2]|0;
  23141. $321 = (($320) + ($315))|0;
  23142. $322 = (($320) + ($317))|0;
  23143. $323 = $322 << 1;
  23144. $324 = ((($7)) + 44|0);
  23145. HEAP32[$324>>2] = $323;
  23146. $325 = ((($8)) + 44|0);
  23147. $326 = HEAP32[$325>>2]|0;
  23148. $327 = (($326) + ($321))|0;
  23149. $328 = (($326) + ($323))|0;
  23150. $329 = $328 << 1;
  23151. $330 = ((($7)) + 48|0);
  23152. HEAP32[$330>>2] = $329;
  23153. $331 = ((($8)) + 48|0);
  23154. $332 = HEAP32[$331>>2]|0;
  23155. $333 = (($332) + ($327))|0;
  23156. $334 = (($332) + ($329))|0;
  23157. $335 = $334 << 1;
  23158. $336 = ((($7)) + 52|0);
  23159. HEAP32[$336>>2] = $335;
  23160. $337 = ((($8)) + 52|0);
  23161. $338 = HEAP32[$337>>2]|0;
  23162. $339 = (($338) + ($333))|0;
  23163. $340 = (($338) + ($335))|0;
  23164. $341 = $340 << 1;
  23165. $342 = ((($7)) + 56|0);
  23166. HEAP32[$342>>2] = $341;
  23167. $343 = ((($8)) + 56|0);
  23168. $344 = HEAP32[$343>>2]|0;
  23169. $345 = (($344) + ($339))|0;
  23170. $346 = (($344) + ($341))|0;
  23171. $347 = $346 << 1;
  23172. $348 = ((($7)) + 60|0);
  23173. HEAP32[$348>>2] = $347;
  23174. $349 = ((($8)) + 60|0);
  23175. $350 = HEAP32[$349>>2]|0;
  23176. $351 = (($350) + ($345))|0;
  23177. $352 = (($350) + ($347))|0;
  23178. $353 = $352 << 1;
  23179. $354 = ((($7)) + 64|0);
  23180. HEAP32[$354>>2] = $353;
  23181. $355 = ($353|0)!=(65536);
  23182. $356 = ($351>>>0)>(1);
  23183. $or$cond = $355 & $356;
  23184. if ($or$cond) {
  23185. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  23186. label = 86;
  23187. continue L46;
  23188. }
  23189. $357 = HEAP32[$247>>2]|0;
  23190. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  23191. $359 = HEAP32[$358>>2]|0;
  23192. $360 = ($359|0)==(0);
  23193. if ($360) {
  23194. $$lcssa1779 = $357;
  23195. } else {
  23196. $$010911856 = 0;$$011971855 = -1;
  23197. while(1) {
  23198. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  23199. $362 = HEAP8[$361>>0]|0;
  23200. $363 = $362&255;
  23201. $364 = ($362<<24>>24)==(0);
  23202. L142: do {
  23203. if ($364) {
  23204. $$41201 = $$011971855;
  23205. } else {
  23206. $365 = (($7) + ($363<<2)|0);
  23207. $366 = HEAP32[$365>>2]|0;
  23208. $367 = (($366) + 1)|0;
  23209. HEAP32[$365>>2] = $367;
  23210. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  23211. while(1) {
  23212. $368 = $$010881838 << 1;
  23213. $369 = $$010861840 & 1;
  23214. $370 = $369 | $368;
  23215. $371 = (($$010871839) + -1)|0;
  23216. $372 = $$010861840 >>> 1;
  23217. $373 = ($371|0)==(0);
  23218. if ($373) {
  23219. break;
  23220. } else {
  23221. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  23222. }
  23223. }
  23224. $374 = ($362&255)<(11);
  23225. if ($374) {
  23226. $375 = $363 << 9;
  23227. $376 = $375 | $$010911856;
  23228. $377 = $376&65535;
  23229. $378 = ($370>>>0)<(1024);
  23230. if (!($378)) {
  23231. $$41201 = $$011971855;
  23232. break;
  23233. }
  23234. $379 = 1 << $363;
  23235. $$110891852 = $370;
  23236. while(1) {
  23237. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  23238. HEAP16[$380>>1] = $377;
  23239. $381 = (($$110891852) + ($379))|0;
  23240. $382 = ($381>>>0)<(1024);
  23241. if ($382) {
  23242. $$110891852 = $381;
  23243. } else {
  23244. $$41201 = $$011971855;
  23245. break L142;
  23246. }
  23247. }
  23248. }
  23249. $383 = $370 & 1023;
  23250. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  23251. $385 = HEAP16[$384>>1]|0;
  23252. $386 = $385 << 16 >> 16;
  23253. $387 = ($385<<16>>16)==(0);
  23254. if ($387) {
  23255. $388 = (($$011971855) + -2)|0;
  23256. $389 = $$011971855&65535;
  23257. HEAP16[$384>>1] = $389;
  23258. $$01194 = $$011971855;$$11198 = $388;
  23259. } else {
  23260. $$01194 = $386;$$11198 = $$011971855;
  23261. }
  23262. $390 = $$010881838 >>> 9;
  23263. $391 = ($362&255)>(11);
  23264. $392 = $390 & 1;
  23265. $393 = (($392) - ($$01194))|0;
  23266. $394 = (($393) + -1)|0;
  23267. if ($391) {
  23268. $395 = $390 & 4194303;
  23269. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  23270. while(1) {
  23271. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  23272. $398 = HEAP16[$396>>1]|0;
  23273. $399 = ($398<<16>>16)==(0);
  23274. if ($399) {
  23275. $400 = $$211991845&65535;
  23276. HEAP16[$396>>1] = $400;
  23277. $401 = (($$211991845) + -2)|0;
  23278. $$21196 = $$211991845;$$31200 = $401;
  23279. } else {
  23280. $402 = $398 << 16 >> 16;
  23281. $$21196 = $402;$$31200 = $$211991845;
  23282. }
  23283. $403 = (($$010941846) + -1)|0;
  23284. $404 = ($403>>>0)>(11);
  23285. $405 = $406 >>> 1;
  23286. $407 = $405 & 1;
  23287. $408 = (($407) - ($$21196))|0;
  23288. $409 = (($408) + -1)|0;
  23289. if ($404) {
  23290. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  23291. } else {
  23292. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  23293. break;
  23294. }
  23295. }
  23296. } else {
  23297. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  23298. }
  23299. $410 = $$010911856&65535;
  23300. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  23301. HEAP16[$411>>1] = $410;
  23302. $$41201 = $$21199$lcssa;
  23303. }
  23304. } while(0);
  23305. $412 = (($$010911856) + 1)|0;
  23306. $413 = HEAP32[$247>>2]|0;
  23307. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  23308. $415 = HEAP32[$414>>2]|0;
  23309. $416 = ($412>>>0)<($415>>>0);
  23310. if ($416) {
  23311. $$010911856 = $412;$$011971855 = $$41201;
  23312. } else {
  23313. $$lcssa1779 = $413;
  23314. break;
  23315. }
  23316. }
  23317. }
  23318. $417 = ($$lcssa1779|0)==(2);
  23319. if ($417) {
  23320. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  23321. label = 105;
  23322. } else {
  23323. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  23324. label = 138;
  23325. }
  23326. } else {
  23327. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  23328. label = 139;
  23329. }
  23330. break;
  23331. }
  23332. case 108: {
  23333. label = 0;
  23334. $429 = $$471356 & 1023;
  23335. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  23336. $431 = HEAP16[$430>>1]|0;
  23337. $432 = $431 << 16 >> 16;
  23338. $433 = ($431<<16>>16)>(-1);
  23339. if ($433) {
  23340. $434 = $432 >> 9;
  23341. $435 = (($434) + -1)|0;
  23342. $436 = ($435>>>0)<($$47>>>0);
  23343. if ($436) {
  23344. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  23345. label = 119;
  23346. continue L125;
  23347. } else {
  23348. label = 113;
  23349. break L125;
  23350. }
  23351. }
  23352. $437 = ($$47>>>0)>(10);
  23353. if ($437) {
  23354. $$0981 = 10;$$0984 = $432;
  23355. } else {
  23356. label = 113;
  23357. break L125;
  23358. }
  23359. while(1) {
  23360. $438 = $$0984 ^ -1;
  23361. $439 = $$471356 >>> $$0981;
  23362. $440 = $439 & 1;
  23363. $441 = (($440) + ($438))|0;
  23364. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  23365. $443 = HEAP16[$442>>1]|0;
  23366. $444 = ($443<<16>>16)<(0);
  23367. if (!($444)) {
  23368. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  23369. label = 119;
  23370. continue L125;
  23371. }
  23372. $445 = (($$0981) + 1)|0;
  23373. $446 = $443 << 16 >> 16;
  23374. $447 = (($$0981) + 2)|0;
  23375. $448 = ($$47>>>0)<($447>>>0);
  23376. if ($448) {
  23377. label = 113;
  23378. break L125;
  23379. } else {
  23380. $$0981 = $445;$$0984 = $446;
  23381. }
  23382. }
  23383. break;
  23384. }
  23385. case 119: {
  23386. label = 0;
  23387. $471 = $$501359 & 1023;
  23388. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  23389. $473 = HEAP16[$472>>1]|0;
  23390. $474 = $473 << 16 >> 16;
  23391. $475 = ($473<<16>>16)>(-1);
  23392. if ($475) {
  23393. $476 = $474 >> 9;
  23394. $477 = $474 & 511;
  23395. $$2983 = $476;$$2986 = $477;
  23396. } else {
  23397. $$1982 = 10;$$1985 = $474;
  23398. while(1) {
  23399. $478 = $$1985 ^ -1;
  23400. $479 = (($$1982) + 1)|0;
  23401. $480 = $$501359 >>> $$1982;
  23402. $481 = $480 & 1;
  23403. $482 = (($481) + ($478))|0;
  23404. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  23405. $484 = HEAP16[$483>>1]|0;
  23406. $485 = $484 << 16 >> 16;
  23407. $486 = ($484<<16>>16)<(0);
  23408. if ($486) {
  23409. $$1982 = $479;$$1985 = $485;
  23410. } else {
  23411. $$2983 = $479;$$2986 = $485;
  23412. break;
  23413. }
  23414. }
  23415. }
  23416. $487 = $$501359 >>> $$2983;
  23417. $488 = (($$50) - ($$2983))|0;
  23418. $489 = ($$2986>>>0)<(16);
  23419. if ($489) {
  23420. $490 = $$2986&255;
  23421. $491 = (($$491146) + 1)|0;
  23422. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  23423. HEAP8[$492>>0] = $490;
  23424. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  23425. label = 105;
  23426. break;
  23427. }
  23428. $493 = ($$2986|0)!=(16);
  23429. $494 = ($$491146|0)!=(0);
  23430. $or$cond24 = $494 | $493;
  23431. if (!($or$cond24)) {
  23432. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  23433. label = 125;
  23434. continue L46;
  23435. }
  23436. $495 = (($$2986) + -16)|0;
  23437. $496 = (12194 + ($495)|0);
  23438. $497 = HEAP8[$496>>0]|0;
  23439. $498 = $497 << 24 >> 24;
  23440. $499 = ($488>>>0)<($498>>>0);
  23441. if ($499) {
  23442. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  23443. label = 127;
  23444. continue L125;
  23445. } else {
  23446. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  23447. label = 132;
  23448. continue L125;
  23449. }
  23450. break;
  23451. }
  23452. case 127: {
  23453. label = 0;
  23454. $500 = ($$511558>>>0)<($10>>>0);
  23455. if ($500) {
  23456. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  23457. label = 130;
  23458. continue L46;
  23459. } else {
  23460. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  23461. label = 128;
  23462. continue L46;
  23463. }
  23464. break;
  23465. }
  23466. case 132: {
  23467. label = 0;
  23468. $510 = 1 << $$551258;
  23469. $511 = (($510) + -1)|0;
  23470. $512 = $511 & $$551364;
  23471. $513 = $$551364 >>> $$551258;
  23472. $514 = (($$55) - ($$551258))|0;
  23473. $515 = (($$531044) + -16)|0;
  23474. $516 = (12198 + ($515)|0);
  23475. $517 = HEAP8[$516>>0]|0;
  23476. $518 = $517 << 24 >> 24;
  23477. $519 = (($518) + ($512))|0;
  23478. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  23479. $521 = ($$531044|0)==(16);
  23480. if ($521) {
  23481. $522 = (($$541151) + -1)|0;
  23482. $523 = (((($0)) + 10532|0) + ($522)|0);
  23483. $524 = HEAP8[$523>>0]|0;
  23484. $525 = $524&255;
  23485. $527 = $525;
  23486. } else {
  23487. $527 = 0;
  23488. }
  23489. $526 = $527&255;
  23490. _memset(($520|0),($526|0),($519|0))|0;
  23491. $528 = (($519) + ($$541151))|0;
  23492. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  23493. label = 105;
  23494. break;
  23495. }
  23496. case 140: {
  23497. label = 0;
  23498. $539 = $10;
  23499. $540 = $$581565$ph;
  23500. $541 = (($539) - ($540))|0;
  23501. $542 = ($541|0)<(4);
  23502. $543 = ($$59$ph>>>0)<(15);
  23503. L241: do {
  23504. if ($542) {
  23505. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  23506. } else {
  23507. $544 = $12;
  23508. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  23509. while(1) {
  23510. $545 = $$5416611868;
  23511. $546 = (($544) - ($545))|0;
  23512. $547 = ($546|0)<(2);
  23513. if ($547) {
  23514. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  23515. break L241;
  23516. }
  23517. if ($965) {
  23518. $613 = HEAP8[$$5815651869>>0]|0;
  23519. $614 = $613&255;
  23520. $615 = ((($$5815651869)) + 1|0);
  23521. $616 = HEAP8[$615>>0]|0;
  23522. $617 = $616&255;
  23523. $618 = $617 << 8;
  23524. $619 = $618 | $614;
  23525. $620 = $619 << $$591872;
  23526. $621 = $620 | $$5913681870;
  23527. $622 = ((($$5815651869)) + 2|0);
  23528. $623 = (($$591872) + 16)|0;
  23529. $$641571 = $622;$$65 = $623;$$651374 = $621;
  23530. } else {
  23531. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  23532. }
  23533. $624 = $$651374 & 1023;
  23534. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  23535. $626 = HEAP16[$625>>1]|0;
  23536. $627 = $626 << 16 >> 16;
  23537. $628 = ($626<<16>>16)>(-1);
  23538. if ($628) {
  23539. $629 = $627 >> 9;
  23540. $$1964 = $629;$$1968 = $627;
  23541. } else {
  23542. $$0963 = 10;$$0967 = $627;
  23543. while(1) {
  23544. $630 = $$0967 ^ -1;
  23545. $631 = (($$0963) + 1)|0;
  23546. $632 = $$651374 >>> $$0963;
  23547. $633 = $632 & 1;
  23548. $634 = (($633) + ($630))|0;
  23549. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  23550. $636 = HEAP16[$635>>1]|0;
  23551. $637 = $636 << 16 >> 16;
  23552. $638 = ($636<<16>>16)<(0);
  23553. if ($638) {
  23554. $$0963 = $631;$$0967 = $637;
  23555. } else {
  23556. $$1964 = $631;$$1968 = $637;
  23557. break;
  23558. }
  23559. }
  23560. }
  23561. $639 = $$651374 >>> $$1964;
  23562. $640 = (($$65) - ($$1964))|0;
  23563. $641 = $$1968 & 256;
  23564. $642 = ($641|0)==(0);
  23565. if (!($642)) {
  23566. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  23567. label = 176;
  23568. break L126;
  23569. }
  23570. $643 = ($640>>>0)<(15);
  23571. if ($643) {
  23572. $644 = HEAP8[$$641571>>0]|0;
  23573. $645 = $644&255;
  23574. $646 = ((($$641571)) + 1|0);
  23575. $647 = HEAP8[$646>>0]|0;
  23576. $648 = $647&255;
  23577. $649 = $648 << 8;
  23578. $650 = $649 | $645;
  23579. $651 = $650 << $640;
  23580. $652 = $651 | $639;
  23581. $653 = ((($$641571)) + 2|0);
  23582. $654 = (($640) + 16)|0;
  23583. $$651572 = $653;$$66 = $654;$$661375 = $652;
  23584. } else {
  23585. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  23586. }
  23587. $655 = $$661375 & 1023;
  23588. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  23589. $657 = HEAP16[$656>>1]|0;
  23590. $658 = $657 << 16 >> 16;
  23591. $659 = ($657<<16>>16)>(-1);
  23592. if ($659) {
  23593. $660 = $658 >> 9;
  23594. $$3966 = $660;$$3970 = $658;
  23595. } else {
  23596. $$2965 = 10;$$2969 = $658;
  23597. while(1) {
  23598. $661 = $$2969 ^ -1;
  23599. $662 = (($$2965) + 1)|0;
  23600. $663 = $$661375 >>> $$2965;
  23601. $664 = $663 & 1;
  23602. $665 = (($664) + ($661))|0;
  23603. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  23604. $667 = HEAP16[$666>>1]|0;
  23605. $668 = $667 << 16 >> 16;
  23606. $669 = ($667<<16>>16)<(0);
  23607. if ($669) {
  23608. $$2965 = $662;$$2969 = $668;
  23609. } else {
  23610. $$3966 = $662;$$3970 = $668;
  23611. break;
  23612. }
  23613. }
  23614. }
  23615. $670 = $$661375 >>> $$3966;
  23616. $671 = (($$66) - ($$3966))|0;
  23617. $672 = $$1968&255;
  23618. HEAP8[$$5416611868>>0] = $672;
  23619. $673 = $$3970 & 256;
  23620. $674 = ($673|0)==(0);
  23621. if (!($674)) {
  23622. break;
  23623. }
  23624. $676 = $$3970&255;
  23625. $677 = ((($$5416611868)) + 1|0);
  23626. HEAP8[$677>>0] = $676;
  23627. $678 = ((($$5416611868)) + 2|0);
  23628. $679 = $$651572;
  23629. $680 = (($539) - ($679))|0;
  23630. $681 = ($680|0)<(4);
  23631. $682 = ($671>>>0)<(15);
  23632. if ($681) {
  23633. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  23634. break L241;
  23635. } else {
  23636. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  23637. }
  23638. }
  23639. $675 = ((($$5416611868)) + 1|0);
  23640. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  23641. label = 176;
  23642. break L126;
  23643. }
  23644. } while(0);
  23645. if (!($$lcssa1799)) {
  23646. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  23647. label = 156;
  23648. continue L125;
  23649. }
  23650. $548 = ($$lcssa1802|0)<(2);
  23651. if ($548) {
  23652. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  23653. label = 145;
  23654. continue L125;
  23655. }
  23656. $579 = HEAP8[$$581565$lcssa>>0]|0;
  23657. $580 = $579&255;
  23658. $581 = $580 << $$59$lcssa;
  23659. $582 = ((($$581565$lcssa)) + 1|0);
  23660. $583 = HEAP8[$582>>0]|0;
  23661. $584 = $583&255;
  23662. $585 = (($$59$lcssa) + 8)|0;
  23663. $586 = $584 << $585;
  23664. $587 = $581 | $$591368$lcssa;
  23665. $588 = $587 | $586;
  23666. $589 = ((($$581565$lcssa)) + 2|0);
  23667. $590 = (($$59$lcssa) + 16)|0;
  23668. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  23669. label = 156;
  23670. continue L125;
  23671. break;
  23672. }
  23673. case 145: {
  23674. label = 0;
  23675. $549 = $$601369 & 1023;
  23676. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  23677. $551 = HEAP16[$550>>1]|0;
  23678. $552 = $551 << 16 >> 16;
  23679. $553 = ($551<<16>>16)>(-1);
  23680. if ($553) {
  23681. $554 = $552 >> 9;
  23682. $555 = (($554) + -1)|0;
  23683. $556 = ($555>>>0)<($$60>>>0);
  23684. if ($556) {
  23685. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  23686. label = 156;
  23687. continue L125;
  23688. } else {
  23689. label = 150;
  23690. break L125;
  23691. }
  23692. }
  23693. $557 = ($$60>>>0)>(10);
  23694. if ($557) {
  23695. $$0972 = 10;$$0975 = $552;
  23696. } else {
  23697. label = 150;
  23698. break L125;
  23699. }
  23700. while(1) {
  23701. $558 = $$0975 ^ -1;
  23702. $559 = $$601369 >>> $$0972;
  23703. $560 = $559 & 1;
  23704. $561 = (($560) + ($558))|0;
  23705. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  23706. $563 = HEAP16[$562>>1]|0;
  23707. $564 = ($563<<16>>16)<(0);
  23708. if (!($564)) {
  23709. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  23710. label = 156;
  23711. continue L125;
  23712. }
  23713. $565 = (($$0972) + 1)|0;
  23714. $566 = $563 << 16 >> 16;
  23715. $567 = (($$0972) + 2)|0;
  23716. $568 = ($$60>>>0)<($567>>>0);
  23717. if ($568) {
  23718. label = 150;
  23719. break L125;
  23720. } else {
  23721. $$0972 = $565;$$0975 = $566;
  23722. }
  23723. }
  23724. break;
  23725. }
  23726. case 156: {
  23727. label = 0;
  23728. $591 = $$631372 & 1023;
  23729. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  23730. $593 = HEAP16[$592>>1]|0;
  23731. $594 = $593 << 16 >> 16;
  23732. $595 = ($593<<16>>16)>(-1);
  23733. if ($595) {
  23734. $596 = $594 >> 9;
  23735. $597 = $594 & 511;
  23736. $$2974 = $596;$$2977 = $597;
  23737. } else {
  23738. $$1973 = 10;$$1976 = $594;
  23739. while(1) {
  23740. $598 = $$1976 ^ -1;
  23741. $599 = (($$1973) + 1)|0;
  23742. $600 = $$631372 >>> $$1973;
  23743. $601 = $600 & 1;
  23744. $602 = (($601) + ($598))|0;
  23745. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  23746. $604 = HEAP16[$603>>1]|0;
  23747. $605 = $604 << 16 >> 16;
  23748. $606 = ($604<<16>>16)<(0);
  23749. if ($606) {
  23750. $$1973 = $599;$$1976 = $605;
  23751. } else {
  23752. $$2974 = $599;$$2977 = $605;
  23753. break;
  23754. }
  23755. }
  23756. }
  23757. $607 = $$631372 >>> $$2974;
  23758. $608 = (($$63) - ($$2974))|0;
  23759. $609 = ($$2977>>>0)>(255);
  23760. if ($609) {
  23761. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  23762. label = 176;
  23763. } else {
  23764. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  23765. label = 160;
  23766. continue L46;
  23767. }
  23768. break;
  23769. }
  23770. case 179: {
  23771. label = 0;
  23772. $693 = ($$681575>>>0)<($10>>>0);
  23773. if ($693) {
  23774. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  23775. label = 182;
  23776. continue L46;
  23777. } else {
  23778. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  23779. label = 180;
  23780. continue L46;
  23781. }
  23782. break;
  23783. }
  23784. case 184: {
  23785. label = 0;
  23786. $703 = 1 << $$691272;
  23787. $704 = (($703) + -1)|0;
  23788. $705 = $704 & $$721381;
  23789. $706 = $$721381 >>> $$691272;
  23790. $707 = (($$72) - ($$691272))|0;
  23791. $708 = (($705) + ($$681165))|0;
  23792. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  23793. label = 185;
  23794. break;
  23795. }
  23796. case 187: {
  23797. label = 0;
  23798. $714 = $$741383 & 1023;
  23799. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  23800. $716 = HEAP16[$715>>1]|0;
  23801. $717 = $716 << 16 >> 16;
  23802. $718 = ($716<<16>>16)>(-1);
  23803. if ($718) {
  23804. $719 = $717 >> 9;
  23805. $720 = (($719) + -1)|0;
  23806. $721 = ($720>>>0)<($$74>>>0);
  23807. if ($721) {
  23808. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  23809. label = 198;
  23810. continue L125;
  23811. } else {
  23812. label = 192;
  23813. break L125;
  23814. }
  23815. }
  23816. $722 = ($$74>>>0)>(10);
  23817. if ($722) {
  23818. $$0953 = 10;$$0956 = $717;
  23819. } else {
  23820. label = 192;
  23821. break L125;
  23822. }
  23823. while(1) {
  23824. $723 = $$0956 ^ -1;
  23825. $724 = $$741383 >>> $$0953;
  23826. $725 = $724 & 1;
  23827. $726 = (($725) + ($723))|0;
  23828. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  23829. $728 = HEAP16[$727>>1]|0;
  23830. $729 = ($728<<16>>16)<(0);
  23831. if (!($729)) {
  23832. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  23833. label = 198;
  23834. continue L125;
  23835. }
  23836. $730 = (($$0953) + 1)|0;
  23837. $731 = $728 << 16 >> 16;
  23838. $732 = (($$0953) + 2)|0;
  23839. $733 = ($$74>>>0)<($732>>>0);
  23840. if ($733) {
  23841. label = 192;
  23842. break L125;
  23843. } else {
  23844. $$0953 = $730;$$0956 = $731;
  23845. }
  23846. }
  23847. break;
  23848. }
  23849. case 198: {
  23850. label = 0;
  23851. $756 = $$771386 & 1023;
  23852. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  23853. $758 = HEAP16[$757>>1]|0;
  23854. $759 = $758 << 16 >> 16;
  23855. $760 = ($758<<16>>16)>(-1);
  23856. if ($760) {
  23857. $761 = $759 >> 9;
  23858. $762 = $759 & 511;
  23859. $$2955 = $761;$$2958 = $762;
  23860. } else {
  23861. $$1954 = 10;$$1957 = $759;
  23862. while(1) {
  23863. $763 = $$1957 ^ -1;
  23864. $764 = (($$1954) + 1)|0;
  23865. $765 = $$771386 >>> $$1954;
  23866. $766 = $765 & 1;
  23867. $767 = (($766) + ($763))|0;
  23868. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  23869. $769 = HEAP16[$768>>1]|0;
  23870. $770 = $769 << 16 >> 16;
  23871. $771 = ($769<<16>>16)<(0);
  23872. if ($771) {
  23873. $$1954 = $764;$$1957 = $770;
  23874. } else {
  23875. $$2955 = $764;$$2958 = $770;
  23876. break;
  23877. }
  23878. }
  23879. }
  23880. $772 = $$771386 >>> $$2955;
  23881. $773 = (($$77) - ($$2955))|0;
  23882. $774 = (3396 + ($$2958<<2)|0);
  23883. $775 = HEAP32[$774>>2]|0;
  23884. $776 = (3524 + ($$2958<<2)|0);
  23885. $777 = HEAP32[$776>>2]|0;
  23886. $778 = (($$2958) + -4)|0;
  23887. $779 = ($778>>>0)<(26);
  23888. if ($779) {
  23889. $780 = ($773>>>0)<($775>>>0);
  23890. if ($780) {
  23891. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  23892. label = 203;
  23893. continue L125;
  23894. } else {
  23895. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  23896. label = 208;
  23897. continue L125;
  23898. }
  23899. } else {
  23900. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  23901. label = 209;
  23902. }
  23903. break;
  23904. }
  23905. case 203: {
  23906. label = 0;
  23907. $781 = ($$771584>>>0)<($10>>>0);
  23908. if ($781) {
  23909. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  23910. label = 206;
  23911. continue L46;
  23912. } else {
  23913. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  23914. label = 204;
  23915. continue L46;
  23916. }
  23917. break;
  23918. }
  23919. case 208: {
  23920. label = 0;
  23921. $791 = 1 << $$771280;
  23922. $792 = (($791) + -1)|0;
  23923. $793 = $792 & $$811390;
  23924. $794 = $$811390 >>> $$771280;
  23925. $795 = (($$81) - ($$771280))|0;
  23926. $796 = (($793) + ($$751066))|0;
  23927. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  23928. label = 209;
  23929. break;
  23930. }
  23931. case 212: {
  23932. label = 0;
  23933. $807 = (($$801177) + -1)|0;
  23934. $808 = ($$801177|0)==(0);
  23935. if ($808) {
  23936. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  23937. label = 139;
  23938. } else {
  23939. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  23940. label = 213;
  23941. continue L46;
  23942. }
  23943. break;
  23944. }
  23945. }
  23946. do {
  23947. if ((label|0) == 70) {
  23948. label = 0;
  23949. $217 = ((($0)) + 52|0);
  23950. $218 = HEAP32[$217>>2]|0;
  23951. $219 = ($$381135>>>0)<($218>>>0);
  23952. if ($219) {
  23953. $220 = ($$39>>>0)<(3);
  23954. if ($220) {
  23955. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  23956. label = 72;
  23957. continue L125;
  23958. } else {
  23959. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  23960. label = 77;
  23961. continue L125;
  23962. }
  23963. } else {
  23964. HEAP32[$217>>2] = 19;
  23965. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  23966. label = 80;
  23967. continue L125;
  23968. }
  23969. }
  23970. else if ((label|0) == 105) {
  23971. label = 0;
  23972. $418 = ((($0)) + 44|0);
  23973. $419 = HEAP32[$418>>2]|0;
  23974. $420 = ((($0)) + 48|0);
  23975. $421 = HEAP32[$420>>2]|0;
  23976. $422 = (($421) + ($419))|0;
  23977. $423 = ($$451142>>>0)<($422>>>0);
  23978. if (!($423)) {
  23979. $529 = ($422|0)==($$451142|0);
  23980. if (!($529)) {
  23981. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  23982. label = 136;
  23983. continue L46;
  23984. }
  23985. $530 = ((($0)) + 64|0);
  23986. $531 = ((($0)) + 10532|0);
  23987. _memcpy(($530|0),($531|0),($419|0))|0;
  23988. $532 = ((($0)) + 3552|0);
  23989. $533 = HEAP32[$418>>2]|0;
  23990. $534 = (((($0)) + 10532|0) + ($533)|0);
  23991. $535 = HEAP32[$420>>2]|0;
  23992. _memcpy(($532|0),($534|0),($535|0))|0;
  23993. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  23994. label = 138;
  23995. break;
  23996. }
  23997. $424 = ($$46>>>0)<(15);
  23998. if (!($424)) {
  23999. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  24000. label = 119;
  24001. continue L125;
  24002. }
  24003. $425 = $10;
  24004. $426 = $$451552;
  24005. $427 = (($425) - ($426))|0;
  24006. $428 = ($427|0)<(2);
  24007. if ($428) {
  24008. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  24009. label = 108;
  24010. continue L125;
  24011. }
  24012. $459 = HEAP8[$$451552>>0]|0;
  24013. $460 = $459&255;
  24014. $461 = $460 << $$46;
  24015. $462 = ((($$451552)) + 1|0);
  24016. $463 = HEAP8[$462>>0]|0;
  24017. $464 = $463&255;
  24018. $465 = (($$46) + 8)|0;
  24019. $466 = $464 << $465;
  24020. $467 = $461 | $$461355;
  24021. $468 = $467 | $466;
  24022. $469 = ((($$451552)) + 2|0);
  24023. $470 = (($$46) + 16)|0;
  24024. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  24025. label = 119;
  24026. continue L125;
  24027. }
  24028. else if ((label|0) == 176) {
  24029. label = 0;
  24030. $683 = $$641161 & 511;
  24031. $684 = ($683|0)==(256);
  24032. if ($684) {
  24033. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  24034. label = 220;
  24035. break L125;
  24036. }
  24037. $685 = (($683) + -257)|0;
  24038. $686 = (3148 + ($685<<2)|0);
  24039. $687 = HEAP32[$686>>2]|0;
  24040. $688 = (3272 + ($685<<2)|0);
  24041. $689 = HEAP32[$688>>2]|0;
  24042. $690 = (($683) + -265)|0;
  24043. $691 = ($690>>>0)<(20);
  24044. if ($691) {
  24045. $692 = ($$68>>>0)<($687>>>0);
  24046. if ($692) {
  24047. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  24048. label = 179;
  24049. continue L125;
  24050. } else {
  24051. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  24052. label = 184;
  24053. continue L125;
  24054. }
  24055. } else {
  24056. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  24057. label = 185;
  24058. }
  24059. }
  24060. else if ((label|0) == 209) {
  24061. label = 0;
  24062. $797 = $$751682;
  24063. $798 = $3;
  24064. $799 = (($797) - ($798))|0;
  24065. $$not = ($799>>>0)>=($$761067>>>0);
  24066. $$not1747 = $14 ^ 1;
  24067. $brmerge = $$not | $$not1747;
  24068. if (!($brmerge)) {
  24069. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  24070. label = 210;
  24071. continue L46;
  24072. }
  24073. $800 = (($799) - ($$761067))|0;
  24074. $801 = $800 & $$1753;
  24075. $802 = (($3) + ($801)|0);
  24076. $803 = ($$751682>>>0)>($802>>>0);
  24077. $804 = $803 ? $$751682 : $802;
  24078. $805 = (($804) + ($$781175)|0);
  24079. $806 = ($805>>>0)>($12>>>0);
  24080. if ($806) {
  24081. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  24082. label = 212;
  24083. continue L125;
  24084. } else {
  24085. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  24086. }
  24087. while(1) {
  24088. $816 = HEAP8[$$0978>>0]|0;
  24089. HEAP8[$$791686>>0] = $816;
  24090. $817 = ((($$0978)) + 1|0);
  24091. $818 = HEAP8[$817>>0]|0;
  24092. $819 = ((($$791686)) + 1|0);
  24093. HEAP8[$819>>0] = $818;
  24094. $820 = ((($$0978)) + 2|0);
  24095. $821 = HEAP8[$820>>0]|0;
  24096. $822 = ((($$791686)) + 2|0);
  24097. HEAP8[$822>>0] = $821;
  24098. $823 = ((($$791686)) + 3|0);
  24099. $824 = ((($$0978)) + 3|0);
  24100. $825 = (($$821179) + -3)|0;
  24101. $826 = ($825|0)>(2);
  24102. if ($826) {
  24103. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  24104. } else {
  24105. break;
  24106. }
  24107. }
  24108. $827 = ($825|0)>(0);
  24109. if ($827) {
  24110. $828 = HEAP8[$824>>0]|0;
  24111. HEAP8[$823>>0] = $828;
  24112. $829 = ($825|0)==(1);
  24113. if (!($829)) {
  24114. $830 = ((($$0978)) + 4|0);
  24115. $831 = HEAP8[$830>>0]|0;
  24116. $832 = ((($$791686)) + 4|0);
  24117. HEAP8[$832>>0] = $831;
  24118. }
  24119. $833 = (($823) + ($825)|0);
  24120. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  24121. label = 139;
  24122. } else {
  24123. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  24124. label = 139;
  24125. }
  24126. }
  24127. } while(0);
  24128. if ((label|0) == 138) {
  24129. label = 0;
  24130. $536 = ((($0)) + 24|0);
  24131. $537 = HEAP32[$536>>2]|0;
  24132. $538 = (($537) + -1)|0;
  24133. HEAP32[$536>>2] = $538;
  24134. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  24135. label = 80;
  24136. continue;
  24137. }
  24138. else if ((label|0) == 139) {
  24139. label = 0;
  24140. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  24141. label = 140;
  24142. continue;
  24143. }
  24144. else if ((label|0) == 185) {
  24145. label = 0;
  24146. $709 = ($$73>>>0)<(15);
  24147. if (!($709)) {
  24148. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  24149. label = 198;
  24150. continue;
  24151. }
  24152. $710 = $10;
  24153. $711 = $$721579;
  24154. $712 = (($710) - ($711))|0;
  24155. $713 = ($712|0)<(2);
  24156. if ($713) {
  24157. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  24158. label = 187;
  24159. continue;
  24160. }
  24161. $744 = HEAP8[$$721579>>0]|0;
  24162. $745 = $744&255;
  24163. $746 = $745 << $$73;
  24164. $747 = ((($$721579)) + 1|0);
  24165. $748 = HEAP8[$747>>0]|0;
  24166. $749 = $748&255;
  24167. $750 = (($$73) + 8)|0;
  24168. $751 = $749 << $750;
  24169. $752 = $746 | $$731382;
  24170. $753 = $752 | $751;
  24171. $754 = ((($$721579)) + 2|0);
  24172. $755 = (($$73) + 16)|0;
  24173. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  24174. label = 198;
  24175. continue;
  24176. }
  24177. }
  24178. if ((label|0) == 113) {
  24179. label = 0;
  24180. $449 = ($$461553>>>0)<($10>>>0);
  24181. if ($449) {
  24182. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  24183. label = 116;
  24184. continue;
  24185. } else {
  24186. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  24187. label = 114;
  24188. continue;
  24189. }
  24190. }
  24191. else if ((label|0) == 150) {
  24192. label = 0;
  24193. $569 = ($$591566>>>0)<($10>>>0);
  24194. if ($569) {
  24195. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  24196. label = 153;
  24197. continue;
  24198. } else {
  24199. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  24200. label = 151;
  24201. continue;
  24202. }
  24203. }
  24204. else if ((label|0) == 192) {
  24205. label = 0;
  24206. $734 = ($$731580>>>0)<($10>>>0);
  24207. if ($734) {
  24208. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  24209. label = 195;
  24210. continue;
  24211. } else {
  24212. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  24213. label = 193;
  24214. continue;
  24215. }
  24216. }
  24217. else if ((label|0) == 220) {
  24218. label = 0;
  24219. $834 = ((($0)) + 20|0);
  24220. $835 = HEAP32[$834>>2]|0;
  24221. $836 = $835 & 1;
  24222. $837 = ($836|0)==(0);
  24223. if ($837) {
  24224. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  24225. label = 14;
  24226. continue;
  24227. }
  24228. $838 = $6 & 1;
  24229. $839 = ($838|0)==(0);
  24230. if ($839) {
  24231. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  24232. label = 242;
  24233. continue;
  24234. } else {
  24235. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  24236. label = 226;
  24237. continue;
  24238. }
  24239. }
  24240. }
  24241. if ((label|0) == 258) {
  24242. STACKTOP = sp;return ($$0951|0);
  24243. }
  24244. $892 = ((($0)) + 28|0);
  24245. $893 = HEAP32[$892>>2]|0;
  24246. $894 = $893 & 65535;
  24247. $895 = $893 >>> 16;
  24248. $896 = ($888|0)==(0);
  24249. if ($896) {
  24250. $$0937$lcssa = $895;$$0938$lcssa = $894;
  24251. } else {
  24252. $897 = (($888>>>0) % 5552)&-1;
  24253. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  24254. while(1) {
  24255. $898 = ($$01834>>>0)>(7);
  24256. if ($898) {
  24257. $899 = (($$01834) + -8)|0;
  24258. $900 = $899 & -8;
  24259. $scevgep = ((($$09441830)) + 8|0);
  24260. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  24261. while(1) {
  24262. $904 = HEAP8[$$19451815>>0]|0;
  24263. $905 = $904&255;
  24264. $906 = (($905) + ($$19391817))|0;
  24265. $907 = (($906) + ($$11818))|0;
  24266. $908 = ((($$19451815)) + 1|0);
  24267. $909 = HEAP8[$908>>0]|0;
  24268. $910 = $909&255;
  24269. $911 = (($906) + ($910))|0;
  24270. $912 = (($907) + ($911))|0;
  24271. $913 = ((($$19451815)) + 2|0);
  24272. $914 = HEAP8[$913>>0]|0;
  24273. $915 = $914&255;
  24274. $916 = (($911) + ($915))|0;
  24275. $917 = (($912) + ($916))|0;
  24276. $918 = ((($$19451815)) + 3|0);
  24277. $919 = HEAP8[$918>>0]|0;
  24278. $920 = $919&255;
  24279. $921 = (($916) + ($920))|0;
  24280. $922 = (($917) + ($921))|0;
  24281. $923 = ((($$19451815)) + 4|0);
  24282. $924 = HEAP8[$923>>0]|0;
  24283. $925 = $924&255;
  24284. $926 = (($921) + ($925))|0;
  24285. $927 = (($922) + ($926))|0;
  24286. $928 = ((($$19451815)) + 5|0);
  24287. $929 = HEAP8[$928>>0]|0;
  24288. $930 = $929&255;
  24289. $931 = (($926) + ($930))|0;
  24290. $932 = (($927) + ($931))|0;
  24291. $933 = ((($$19451815)) + 6|0);
  24292. $934 = HEAP8[$933>>0]|0;
  24293. $935 = $934&255;
  24294. $936 = (($931) + ($935))|0;
  24295. $937 = (($932) + ($936))|0;
  24296. $938 = ((($$19451815)) + 7|0);
  24297. $939 = HEAP8[$938>>0]|0;
  24298. $940 = $939&255;
  24299. $941 = (($936) + ($940))|0;
  24300. $942 = (($937) + ($941))|0;
  24301. $943 = (($$09411816) + 8)|0;
  24302. $944 = ((($$19451815)) + 8|0);
  24303. $945 = $943 | 7;
  24304. $946 = ($945>>>0)<($$01834>>>0);
  24305. if ($946) {
  24306. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  24307. } else {
  24308. break;
  24309. }
  24310. }
  24311. $901 = (($900) + 8)|0;
  24312. $scevgep1947 = (($scevgep) + ($900)|0);
  24313. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  24314. } else {
  24315. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  24316. }
  24317. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  24318. if ($902) {
  24319. $903 = (($$01834) - ($$0941$lcssa))|0;
  24320. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  24321. while(1) {
  24322. $947 = ((($$29461822)) + 1|0);
  24323. $948 = HEAP8[$$29461822>>0]|0;
  24324. $949 = $948&255;
  24325. $950 = (($949) + ($$29401824))|0;
  24326. $951 = (($950) + ($$21825))|0;
  24327. $952 = (($$19421823) + 1)|0;
  24328. $exitcond = ($952|0)==($$01834|0);
  24329. if ($exitcond) {
  24330. break;
  24331. } else {
  24332. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  24333. }
  24334. }
  24335. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  24336. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  24337. } else {
  24338. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  24339. }
  24340. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  24341. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  24342. $955 = (($$09431831) - ($$01834))|0;
  24343. $956 = ($955|0)==(0);
  24344. if ($956) {
  24345. $$0937$lcssa = $954;$$0938$lcssa = $953;
  24346. break;
  24347. } else {
  24348. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  24349. }
  24350. }
  24351. }
  24352. $957 = $$0937$lcssa << 16;
  24353. $958 = $957 | $$0938$lcssa;
  24354. HEAP32[$892>>2] = $958;
  24355. $959 = ($$1961|0)!=(0);
  24356. $960 = $6 & 1;
  24357. $961 = ($960|0)==(0);
  24358. $or$cond1752 = $961 | $959;
  24359. if ($or$cond1752) {
  24360. $$0951 = $$1961;
  24361. STACKTOP = sp;return ($$0951|0);
  24362. } else {
  24363. $962 = ((($0)) + 16|0);
  24364. $963 = HEAP32[$962>>2]|0;
  24365. $964 = ($958|0)==($963|0);
  24366. $$1961$ = $964 ? $$1961 : -2;
  24367. STACKTOP = sp;return ($$1961$|0);
  24368. }
  24369. return (0)|0;
  24370. }
  24371. function _ImageAlphaMask($0,$1) {
  24372. $0 = $0|0;
  24373. $1 = $1|0;
  24374. var $$0 = 0, $$031 = 0, $$032 = 0, $$033 = 0, $$byval_copy3 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  24375. 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;
  24376. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, label = 0;
  24377. var sp = 0;
  24378. sp = STACKTOP;
  24379. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  24380. $$byval_copy3 = sp + 32|0;
  24381. $vararg_buffer1 = sp + 8|0;
  24382. $vararg_buffer = sp;
  24383. $2 = sp + 12|0;
  24384. $3 = ((($0)) + 4|0);
  24385. $4 = HEAP32[$3>>2]|0;
  24386. $5 = ((($1)) + 4|0);
  24387. $6 = HEAP32[$5>>2]|0;
  24388. $7 = ($4|0)==($6|0);
  24389. if ($7) {
  24390. $8 = ((($0)) + 8|0);
  24391. $9 = HEAP32[$8>>2]|0;
  24392. $10 = ((($1)) + 8|0);
  24393. $11 = HEAP32[$10>>2]|0;
  24394. $12 = ($9|0)==($11|0);
  24395. if ($12) {
  24396. $13 = ((($0)) + 16|0);
  24397. $14 = HEAP32[$13>>2]|0;
  24398. $15 = ($14|0)>(7);
  24399. if ($15) {
  24400. _TraceLog(2,12240,$vararg_buffer1);
  24401. STACKTOP = sp;return;
  24402. }
  24403. ;HEAP32[$$byval_copy3>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy3+16>>2]=HEAP32[$1+16>>2]|0;
  24404. _ImageCopy($2,$$byval_copy3);
  24405. $16 = ((($2)) + 16|0);
  24406. $17 = HEAP32[$16>>2]|0;
  24407. $18 = ($17|0)==(1);
  24408. if (!($18)) {
  24409. _ImageFormat($2,1);
  24410. }
  24411. $19 = HEAP32[$13>>2]|0;
  24412. L11: do {
  24413. switch ($19|0) {
  24414. case 1: {
  24415. _ImageFormat($0,2);
  24416. $20 = ((($2)) + 4|0);
  24417. $21 = HEAP32[$20>>2]|0;
  24418. $22 = ((($2)) + 8|0);
  24419. $23 = HEAP32[$22>>2]|0;
  24420. $24 = Math_imul($23, $21)|0;
  24421. $25 = HEAP32[$2>>2]|0;
  24422. $$032 = 1;$$033 = 0;
  24423. while(1) {
  24424. $26 = ($$033|0)<($24|0);
  24425. if (!($26)) {
  24426. $27 = HEAP32[$3>>2]|0;
  24427. $28 = HEAP32[$8>>2]|0;
  24428. $29 = Math_imul($28, $27)|0;
  24429. $30 = ($$033|0)<($29|0);
  24430. if (!($30)) {
  24431. break L11;
  24432. }
  24433. }
  24434. $31 = (($25) + ($$033)|0);
  24435. $32 = HEAP8[$31>>0]|0;
  24436. $33 = HEAP32[$0>>2]|0;
  24437. $34 = (($33) + ($$032)|0);
  24438. HEAP8[$34>>0] = $32;
  24439. $35 = (($$033) + 1)|0;
  24440. $36 = (($$032) + 2)|0;
  24441. $$032 = $36;$$033 = $35;
  24442. }
  24443. break;
  24444. }
  24445. case 7: {
  24446. label = 14;
  24447. break;
  24448. }
  24449. default: {
  24450. _ImageFormat($0,7);
  24451. label = 14;
  24452. }
  24453. }
  24454. } while(0);
  24455. L19: do {
  24456. if ((label|0) == 14) {
  24457. $37 = ((($2)) + 4|0);
  24458. $38 = HEAP32[$37>>2]|0;
  24459. $39 = ((($2)) + 8|0);
  24460. $40 = HEAP32[$39>>2]|0;
  24461. $41 = Math_imul($40, $38)|0;
  24462. $42 = HEAP32[$2>>2]|0;
  24463. $$0 = 3;$$031 = 0;
  24464. while(1) {
  24465. $43 = ($$031|0)<($41|0);
  24466. if (!($43)) {
  24467. $44 = HEAP32[$3>>2]|0;
  24468. $45 = HEAP32[$8>>2]|0;
  24469. $46 = Math_imul($45, $44)|0;
  24470. $47 = ($$031|0)<($46|0);
  24471. if (!($47)) {
  24472. break L19;
  24473. }
  24474. }
  24475. $48 = (($42) + ($$031)|0);
  24476. $49 = HEAP8[$48>>0]|0;
  24477. $50 = HEAP32[$0>>2]|0;
  24478. $51 = (($50) + ($$0)|0);
  24479. HEAP8[$51>>0] = $49;
  24480. $52 = (($$031) + 1)|0;
  24481. $53 = (($$0) + 4)|0;
  24482. $$0 = $53;$$031 = $52;
  24483. }
  24484. }
  24485. } while(0);
  24486. ;HEAP32[$$byval_copy3>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy3+16>>2]=HEAP32[$2+16>>2]|0;
  24487. _UnloadImage($$byval_copy3);
  24488. STACKTOP = sp;return;
  24489. }
  24490. }
  24491. _TraceLog(2,12202,$vararg_buffer);
  24492. STACKTOP = sp;return;
  24493. }
  24494. function _GetDefaultFont($0) {
  24495. $0 = $0|0;
  24496. var label = 0, sp = 0;
  24497. sp = STACKTOP;
  24498. ;HEAP32[$0>>2]=HEAP32[20472>>2]|0;HEAP32[$0+4>>2]=HEAP32[20472+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[20472+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[20472+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[20472+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[20472+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[20472+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[20472+28>>2]|0;
  24499. return;
  24500. }
  24501. function _MeasureTextEx($0,$1,$2,$3,$4) {
  24502. $0 = $0|0;
  24503. $1 = $1|0;
  24504. $2 = $2|0;
  24505. $3 = +$3;
  24506. $4 = $4|0;
  24507. var $$0$lcssa = 0, $$05064 = 0, $$052$lcssa = 0.0, $$05263 = 0.0, $$05462 = 0, $$055$lcssa = 0.0, $$05561 = 0.0, $$058$lcssa = 0.0, $$05860 = 0.0, $$065 = 0, $$151 = 0, $$151$$0 = 0, $$153 = 0.0, $$156 = 0.0, $$159 = 0.0, $$2 = 0.0, $$257 = 0.0, $$3 = 0.0, $$byval_copy = 0, $$pn = 0.0;
  24508. var $$pn$in = 0, $$sroa$4$0$$sroa_idx2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  24509. var $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0, $39 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, $exitcond = 0, $phitmp = 0, label = 0;
  24510. var sp = 0;
  24511. sp = STACKTOP;
  24512. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  24513. $$byval_copy = sp;
  24514. $5 = (_strlen($2)|0);
  24515. $6 = ((($1)) + 20|0);
  24516. $7 = HEAP32[$6>>2]|0;
  24517. $8 = (+($7|0));
  24518. $9 = $3 / $8;
  24519. $10 = ($5|0)>(0);
  24520. if (!($10)) {
  24521. $$0$lcssa = -1;$$052$lcssa = 0.0;$$055$lcssa = 0.0;$$058$lcssa = $8;
  24522. $12 = $$055$lcssa < $$052$lcssa;
  24523. $$3 = $12 ? $$052$lcssa : $$055$lcssa;
  24524. $13 = $9 * $$3;
  24525. $14 = Math_imul($$0$lcssa, $4)|0;
  24526. $15 = (+($14|0));
  24527. $16 = $13 + $15;
  24528. $17 = $9 * $$058$lcssa;
  24529. HEAPF32[$0>>2] = $16;
  24530. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24531. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $17;
  24532. STACKTOP = sp;return;
  24533. }
  24534. $11 = ((($1)) + 28|0);
  24535. $$05064 = 0;$$05263 = 0.0;$$05462 = 0;$$05561 = 0.0;$$05860 = $8;$$065 = 0;
  24536. while(1) {
  24537. $18 = (($$05064) + 1)|0;
  24538. $19 = (($2) + ($$05462)|0);
  24539. $20 = HEAP8[$19>>0]|0;
  24540. $21 = ($20<<24>>24)==(10);
  24541. if ($21) {
  24542. $33 = $$05561 < $$05263;
  24543. $$156 = $33 ? $$05263 : $$05561;
  24544. $34 = HEAP32[$6>>2]|0;
  24545. $35 = (+($34|0));
  24546. $36 = $35 * 1.5;
  24547. $37 = $$05860 + $36;
  24548. $$151 = 0;$$159 = $37;$$2 = 0.0;$$257 = $$156;
  24549. } else {
  24550. $22 = $20 << 24 >> 24;
  24551. ;HEAP32[$$byval_copy>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$1+16>>2]|0;HEAP32[$$byval_copy+20>>2]=HEAP32[$1+20>>2]|0;HEAP32[$$byval_copy+24>>2]=HEAP32[$1+24>>2]|0;HEAP32[$$byval_copy+28>>2]=HEAP32[$1+28>>2]|0;
  24552. $23 = (_GetCharIndex($$byval_copy,$22)|0);
  24553. $24 = HEAP32[$11>>2]|0;
  24554. $25 = (((($24) + ($23<<5)|0)) + 28|0);
  24555. $26 = HEAP32[$25>>2]|0;
  24556. $27 = ($26|0)==(0);
  24557. if ($27) {
  24558. $28 = (((($24) + ($23<<5)|0)) + 20|0);
  24559. $29 = (((($24) + ($23<<5)|0)) + 12|0);
  24560. $30 = HEAP32[$29>>2]|0;
  24561. $31 = HEAP32[$28>>2]|0;
  24562. $32 = (($31) + ($30))|0;
  24563. $$pn$in = $32;
  24564. } else {
  24565. $$pn$in = $26;
  24566. }
  24567. $$pn = (+($$pn$in|0));
  24568. $$153 = $$05263 + $$pn;
  24569. $$151 = $18;$$159 = $$05860;$$2 = $$153;$$257 = $$05561;
  24570. }
  24571. $38 = ($$065|0)<($$151|0);
  24572. $$151$$0 = $38 ? $$151 : $$065;
  24573. $39 = (($$05462) + 1)|0;
  24574. $exitcond = ($39|0)==($5|0);
  24575. if ($exitcond) {
  24576. break;
  24577. } else {
  24578. $$05064 = $$151;$$05263 = $$2;$$05462 = $39;$$05561 = $$257;$$05860 = $$159;$$065 = $$151$$0;
  24579. }
  24580. }
  24581. $phitmp = (($$151$$0) + -1)|0;
  24582. $$0$lcssa = $phitmp;$$052$lcssa = $$2;$$055$lcssa = $$257;$$058$lcssa = $$159;
  24583. $12 = $$055$lcssa < $$052$lcssa;
  24584. $$3 = $12 ? $$052$lcssa : $$055$lcssa;
  24585. $13 = $9 * $$3;
  24586. $14 = Math_imul($$0$lcssa, $4)|0;
  24587. $15 = (+($14|0));
  24588. $16 = $13 + $15;
  24589. $17 = $9 * $$058$lcssa;
  24590. HEAPF32[$0>>2] = $16;
  24591. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24592. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $17;
  24593. STACKTOP = sp;return;
  24594. }
  24595. function _GetCharIndex($0,$1) {
  24596. $0 = $0|0;
  24597. $1 = $1|0;
  24598. 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;
  24599. sp = STACKTOP;
  24600. $2 = ((($0)) + 24|0);
  24601. $3 = HEAP32[$2>>2]|0;
  24602. $4 = ($3|0)>(0);
  24603. if (!($4)) {
  24604. $$08 = 0;
  24605. return ($$08|0);
  24606. }
  24607. $5 = ((($0)) + 28|0);
  24608. $6 = HEAP32[$5>>2]|0;
  24609. $$09 = 0;
  24610. while(1) {
  24611. $7 = (($6) + ($$09<<5)|0);
  24612. $8 = HEAP32[$7>>2]|0;
  24613. $9 = ($8|0)==($1|0);
  24614. if ($9) {
  24615. $$08 = $$09;
  24616. label = 5;
  24617. break;
  24618. }
  24619. $10 = (($$09) + 1)|0;
  24620. $11 = HEAP32[$2>>2]|0;
  24621. $12 = ($10|0)<($11|0);
  24622. if ($12) {
  24623. $$09 = $10;
  24624. } else {
  24625. $$08 = 0;
  24626. label = 5;
  24627. break;
  24628. }
  24629. }
  24630. if ((label|0) == 5) {
  24631. return ($$08|0);
  24632. }
  24633. return (0)|0;
  24634. }
  24635. function _SetTextureFilter($0,$1) {
  24636. $0 = $0|0;
  24637. $1 = $1|0;
  24638. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
  24639. var $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24640. sp = STACKTOP;
  24641. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  24642. $vararg_buffer = sp;
  24643. switch ($1|0) {
  24644. case 0: {
  24645. $2 = ((($0)) + 12|0);
  24646. $3 = HEAP32[$2>>2]|0;
  24647. $4 = ($3|0)>(1);
  24648. $5 = HEAP32[$0>>2]|0;
  24649. if ($4) {
  24650. _rlTextureParameters($5,10241,9984);
  24651. $6 = HEAP32[$0>>2]|0;
  24652. _rlTextureParameters($6,10240,9728);
  24653. STACKTOP = sp;return;
  24654. } else {
  24655. _rlTextureParameters($5,10241,9728);
  24656. $7 = HEAP32[$0>>2]|0;
  24657. _rlTextureParameters($7,10240,9728);
  24658. STACKTOP = sp;return;
  24659. }
  24660. break;
  24661. }
  24662. case 1: {
  24663. $8 = ((($0)) + 12|0);
  24664. $9 = HEAP32[$8>>2]|0;
  24665. $10 = ($9|0)>(1);
  24666. $11 = HEAP32[$0>>2]|0;
  24667. if ($10) {
  24668. _rlTextureParameters($11,10241,9985);
  24669. $12 = HEAP32[$0>>2]|0;
  24670. _rlTextureParameters($12,10240,9729);
  24671. STACKTOP = sp;return;
  24672. } else {
  24673. _rlTextureParameters($11,10241,9729);
  24674. $13 = HEAP32[$0>>2]|0;
  24675. _rlTextureParameters($13,10240,9729);
  24676. STACKTOP = sp;return;
  24677. }
  24678. break;
  24679. }
  24680. case 2: {
  24681. $14 = ((($0)) + 12|0);
  24682. $15 = HEAP32[$14>>2]|0;
  24683. $16 = ($15|0)>(1);
  24684. $17 = HEAP32[$0>>2]|0;
  24685. if ($16) {
  24686. _rlTextureParameters($17,10241,9987);
  24687. $18 = HEAP32[$0>>2]|0;
  24688. _rlTextureParameters($18,10240,9729);
  24689. STACKTOP = sp;return;
  24690. } else {
  24691. HEAP32[$vararg_buffer>>2] = $17;
  24692. _TraceLog(2,12297,$vararg_buffer);
  24693. $19 = HEAP32[$0>>2]|0;
  24694. _rlTextureParameters($19,10241,9729);
  24695. _rlTextureParameters($19,10240,9729);
  24696. STACKTOP = sp;return;
  24697. }
  24698. break;
  24699. }
  24700. case 3: {
  24701. $20 = HEAP32[$0>>2]|0;
  24702. _rlTextureParameters($20,12288,4);
  24703. STACKTOP = sp;return;
  24704. break;
  24705. }
  24706. case 4: {
  24707. $21 = HEAP32[$0>>2]|0;
  24708. _rlTextureParameters($21,12288,8);
  24709. STACKTOP = sp;return;
  24710. break;
  24711. }
  24712. case 5: {
  24713. $22 = HEAP32[$0>>2]|0;
  24714. _rlTextureParameters($22,12288,16);
  24715. STACKTOP = sp;return;
  24716. break;
  24717. }
  24718. default: {
  24719. STACKTOP = sp;return;
  24720. }
  24721. }
  24722. }
  24723. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  24724. $0 = $0|0;
  24725. $1 = $1|0;
  24726. $2 = $2|0;
  24727. $3 = $3|0;
  24728. $4 = +$4;
  24729. $5 = $5|0;
  24730. 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;
  24731. 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;
  24732. 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;
  24733. 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;
  24734. 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;
  24735. sp = STACKTOP;
  24736. $6 = HEAP32[$0>>2]|0;
  24737. $7 = ($6|0)==(0);
  24738. if ($7) {
  24739. return;
  24740. }
  24741. $8 = ((($1)) + 8|0);
  24742. $9 = HEAP32[$8>>2]|0;
  24743. $10 = ($9|0)<(0);
  24744. if ($10) {
  24745. $11 = HEAP32[$1>>2]|0;
  24746. $12 = (($11) - ($9))|0;
  24747. HEAP32[$1>>2] = $12;
  24748. }
  24749. $13 = ((($1)) + 12|0);
  24750. $14 = HEAP32[$13>>2]|0;
  24751. $15 = ($14|0)<(0);
  24752. if ($15) {
  24753. $16 = ((($1)) + 4|0);
  24754. $17 = HEAP32[$16>>2]|0;
  24755. $18 = (($17) - ($14))|0;
  24756. HEAP32[$16>>2] = $18;
  24757. }
  24758. $19 = HEAP32[$0>>2]|0;
  24759. _rlEnableTexture($19);
  24760. _rlPushMatrix();
  24761. $20 = HEAP32[$2>>2]|0;
  24762. $21 = (+($20|0));
  24763. $22 = ((($2)) + 4|0);
  24764. $23 = HEAP32[$22>>2]|0;
  24765. $24 = (+($23|0));
  24766. _rlTranslatef($21,$24,0.0);
  24767. _rlRotatef($4,0.0,0.0,1.0);
  24768. $25 = +HEAPF32[$3>>2];
  24769. $26 = -$25;
  24770. $27 = ((($3)) + 4|0);
  24771. $28 = +HEAPF32[$27>>2];
  24772. $29 = -$28;
  24773. _rlTranslatef($26,$29,0.0);
  24774. _rlBegin(7);
  24775. $30 = HEAP8[$5>>0]|0;
  24776. $31 = ((($5)) + 1|0);
  24777. $32 = HEAP8[$31>>0]|0;
  24778. $33 = ((($5)) + 2|0);
  24779. $34 = HEAP8[$33>>0]|0;
  24780. $35 = ((($5)) + 3|0);
  24781. $36 = HEAP8[$35>>0]|0;
  24782. _rlColor4ub($30,$32,$34,$36);
  24783. $37 = HEAP32[$1>>2]|0;
  24784. $38 = (+($37|0));
  24785. $39 = ((($0)) + 4|0);
  24786. $40 = HEAP32[$39>>2]|0;
  24787. $41 = (+($40|0));
  24788. $42 = $38 / $41;
  24789. $43 = ((($1)) + 4|0);
  24790. $44 = HEAP32[$43>>2]|0;
  24791. $45 = (+($44|0));
  24792. $46 = ((($0)) + 8|0);
  24793. $47 = HEAP32[$46>>2]|0;
  24794. $48 = (+($47|0));
  24795. $49 = $45 / $48;
  24796. _rlTexCoord2f($42,$49);
  24797. _rlVertex2f(0.0,0.0);
  24798. $50 = HEAP32[$1>>2]|0;
  24799. $51 = (+($50|0));
  24800. $52 = HEAP32[$39>>2]|0;
  24801. $53 = (+($52|0));
  24802. $54 = $51 / $53;
  24803. $55 = HEAP32[$43>>2]|0;
  24804. $56 = HEAP32[$13>>2]|0;
  24805. $57 = (($56) + ($55))|0;
  24806. $58 = (+($57|0));
  24807. $59 = HEAP32[$46>>2]|0;
  24808. $60 = (+($59|0));
  24809. $61 = $58 / $60;
  24810. _rlTexCoord2f($54,$61);
  24811. $62 = ((($2)) + 12|0);
  24812. $63 = HEAP32[$62>>2]|0;
  24813. $64 = (+($63|0));
  24814. _rlVertex2f(0.0,$64);
  24815. $65 = HEAP32[$1>>2]|0;
  24816. $66 = HEAP32[$8>>2]|0;
  24817. $67 = (($66) + ($65))|0;
  24818. $68 = (+($67|0));
  24819. $69 = HEAP32[$39>>2]|0;
  24820. $70 = (+($69|0));
  24821. $71 = $68 / $70;
  24822. $72 = HEAP32[$43>>2]|0;
  24823. $73 = HEAP32[$13>>2]|0;
  24824. $74 = (($73) + ($72))|0;
  24825. $75 = (+($74|0));
  24826. $76 = HEAP32[$46>>2]|0;
  24827. $77 = (+($76|0));
  24828. $78 = $75 / $77;
  24829. _rlTexCoord2f($71,$78);
  24830. $79 = ((($2)) + 8|0);
  24831. $80 = HEAP32[$79>>2]|0;
  24832. $81 = (+($80|0));
  24833. $82 = HEAP32[$62>>2]|0;
  24834. $83 = (+($82|0));
  24835. _rlVertex2f($81,$83);
  24836. $84 = HEAP32[$1>>2]|0;
  24837. $85 = HEAP32[$8>>2]|0;
  24838. $86 = (($85) + ($84))|0;
  24839. $87 = (+($86|0));
  24840. $88 = HEAP32[$39>>2]|0;
  24841. $89 = (+($88|0));
  24842. $90 = $87 / $89;
  24843. $91 = HEAP32[$43>>2]|0;
  24844. $92 = (+($91|0));
  24845. $93 = HEAP32[$46>>2]|0;
  24846. $94 = (+($93|0));
  24847. $95 = $92 / $94;
  24848. _rlTexCoord2f($90,$95);
  24849. $96 = HEAP32[$79>>2]|0;
  24850. $97 = (+($96|0));
  24851. _rlVertex2f($97,0.0);
  24852. _rlEnd();
  24853. _rlPopMatrix();
  24854. _rlDisableTexture();
  24855. return;
  24856. }
  24857. function _LoadSpriteFont($0,$1) {
  24858. $0 = $0|0;
  24859. $1 = $1|0;
  24860. var $$byval_copy2 = 0, $$byval_copy5 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  24861. 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;
  24862. var $45 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24863. sp = STACKTOP;
  24864. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  24865. $$byval_copy5 = sp + 232|0;
  24866. $$byval_copy2 = sp + 212|0;
  24867. $vararg_buffer = sp;
  24868. $2 = sp + 96|0;
  24869. $3 = sp + 192|0;
  24870. $4 = sp + 160|0;
  24871. $5 = sp + 128|0;
  24872. $6 = sp + 40|0;
  24873. $7 = sp + 252|0;
  24874. $8 = sp + 64|0;
  24875. $9 = sp + 8|0;
  24876. ;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;
  24877. $10 = (_IsFileExtension($1,12362)|0);
  24878. $11 = ($10|0)==(0);
  24879. do {
  24880. if ($11) {
  24881. $35 = (_IsFileExtension($1,12368)|0);
  24882. $36 = ($35|0)==(0);
  24883. if (!($36)) {
  24884. _LoadSpriteFontTTF($4,$1,32,0,0);
  24885. ;HEAP32[$2>>2]=HEAP32[$4>>2]|0;HEAP32[$2+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$4+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$4+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$4+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$4+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$4+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$4+28>>2]|0;
  24886. break;
  24887. }
  24888. $37 = (_IsFileExtension($1,12373)|0);
  24889. $38 = ($37|0)==(0);
  24890. if (!($38)) {
  24891. _LoadBMFont($5,$1);
  24892. ;HEAP32[$2>>2]=HEAP32[$5>>2]|0;HEAP32[$2+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$5+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$5+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$5+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$5+28>>2]|0;
  24893. break;
  24894. }
  24895. _LoadImage($6,$1);
  24896. $39 = HEAP32[$6>>2]|0;
  24897. $40 = ($39|0)==(0|0);
  24898. if (!($40)) {
  24899. HEAP8[$7>>0] = -1;
  24900. $41 = ((($7)) + 1|0);
  24901. HEAP8[$41>>0] = 0;
  24902. $42 = ((($7)) + 2|0);
  24903. HEAP8[$42>>0] = -1;
  24904. $43 = ((($7)) + 3|0);
  24905. HEAP8[$43>>0] = -1;
  24906. ;HEAP32[$$byval_copy2>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[$$byval_copy2+12>>2]=HEAP32[$6+12>>2]|0;HEAP32[$$byval_copy2+16>>2]=HEAP32[$6+16>>2]|0;
  24907. ;HEAP8[$$byval_copy5>>0]=HEAP8[$7>>0]|0;HEAP8[$$byval_copy5+1>>0]=HEAP8[$7+1>>0]|0;HEAP8[$$byval_copy5+2>>0]=HEAP8[$7+2>>0]|0;HEAP8[$$byval_copy5+3>>0]=HEAP8[$7+3>>0]|0;
  24908. _LoadImageFont($8,$$byval_copy2,$$byval_copy5);
  24909. ;HEAP32[$2>>2]=HEAP32[$8>>2]|0;HEAP32[$2+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$8+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$8+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$8+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$8+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$8+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$8+28>>2]|0;
  24910. }
  24911. ;HEAP32[$$byval_copy5>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$6+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$6+16>>2]|0;
  24912. _UnloadImage($$byval_copy5);
  24913. } else {
  24914. $12 = (_LoadResource($1,0)|0);
  24915. $13 = HEAP32[$12>>2]|0;
  24916. $14 = ($13|0)==(5);
  24917. if ($14) {
  24918. $15 = ((($12)) + 20|0);
  24919. $16 = HEAP32[$15>>2]|0;
  24920. $17 = ((($12)) + 4|0);
  24921. $18 = HEAP32[$17>>2]|0;
  24922. $19 = ((($12)) + 8|0);
  24923. $20 = HEAP32[$19>>2]|0;
  24924. $21 = ((($12)) + 12|0);
  24925. $22 = HEAP32[$21>>2]|0;
  24926. _LoadImagePro($$byval_copy2,$16,$18,$20,$22);
  24927. ;HEAP32[$$byval_copy5>>2]=HEAP32[$$byval_copy2>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$$byval_copy2+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$$byval_copy2+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$$byval_copy2+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$$byval_copy2+16>>2]|0;
  24928. _LoadTextureFromImage($3,$$byval_copy5);
  24929. ;HEAP32[$2>>2]=HEAP32[$3>>2]|0;HEAP32[$2+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$3+16>>2]|0;
  24930. ;HEAP32[$$byval_copy5>>2]=HEAP32[$$byval_copy2>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$$byval_copy2+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$$byval_copy2+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$$byval_copy2+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$$byval_copy2+16>>2]|0;
  24931. _UnloadImage($$byval_copy5);
  24932. }
  24933. $23 = ((($12)) + 24|0);
  24934. $24 = HEAP32[$23>>2]|0;
  24935. $25 = ($24|0)==(6);
  24936. if ($25) {
  24937. $26 = ((($12)) + 28|0);
  24938. $27 = HEAP32[$26>>2]|0;
  24939. $28 = ((($2)) + 20|0);
  24940. HEAP32[$28>>2] = $27;
  24941. $29 = ((($12)) + 32|0);
  24942. $30 = HEAP32[$29>>2]|0;
  24943. $31 = ((($2)) + 24|0);
  24944. HEAP32[$31>>2] = $30;
  24945. $32 = ((($12)) + 44|0);
  24946. $33 = HEAP32[$32>>2]|0;
  24947. $34 = ((($2)) + 28|0);
  24948. HEAP32[$34>>2] = $33;
  24949. }
  24950. }
  24951. } while(0);
  24952. $44 = HEAP32[$2>>2]|0;
  24953. $45 = ($44|0)==(0);
  24954. if ($45) {
  24955. HEAP32[$vararg_buffer>>2] = $1;
  24956. _TraceLog(2,12378,$vararg_buffer);
  24957. _GetDefaultFont($9);
  24958. ;HEAP32[$2>>2]=HEAP32[$9>>2]|0;HEAP32[$2+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$9+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$9+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$9+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$9+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$9+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$9+28>>2]|0;
  24959. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  24960. STACKTOP = sp;return;
  24961. } else {
  24962. ;HEAP32[$$byval_copy5>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$2+16>>2]|0;
  24963. _SetTextureFilter($$byval_copy5,0);
  24964. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  24965. STACKTOP = sp;return;
  24966. }
  24967. }
  24968. function _LoadSpriteFontTTF($0,$1,$2,$3,$4) {
  24969. $0 = $0|0;
  24970. $1 = $1|0;
  24971. $2 = $2|0;
  24972. $3 = $3|0;
  24973. $4 = $4|0;
  24974. var $$048 = 0, $$sroa$0$0 = 0, $$sroa$0$0$copyload = 0, $$sroa$0$0$copyload15 = 0, $$sroa$0$0$copyload17 = 0, $$sroa$0$1 = 0, $$sroa$8 = 0, $$sroa$8$0$$sroa_idx = 0, $$sroa$8$0$$sroa_idx23 = 0, $$sroa$8$0$$sroa_idx26 = 0, $$sroa$8$0$$sroa_idx29 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $5 = 0, $6 = 0;
  24975. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $or$cond = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24976. sp = STACKTOP;
  24977. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  24978. $vararg_buffer = sp;
  24979. $$sroa$8 = sp + 104|0;
  24980. $5 = sp + 72|0;
  24981. $6 = sp + 40|0;
  24982. $7 = sp + 8|0;
  24983. ;HEAP32[$$sroa$8>>2]=0|0;HEAP32[$$sroa$8+4>>2]=0|0;HEAP32[$$sroa$8+8>>2]=0|0;HEAP32[$$sroa$8+12>>2]=0|0;HEAP32[$$sroa$8+16>>2]=0|0;HEAP32[$$sroa$8+20>>2]=0|0;HEAP32[$$sroa$8+24>>2]=0|0;
  24984. $8 = (_IsFileExtension($1,12368)|0);
  24985. $9 = ($8|0)==(0);
  24986. if (!($9)) {
  24987. $10 = ($4|0)==(0|0);
  24988. $11 = ($3|0)==(0);
  24989. $or$cond = $11 | $10;
  24990. if ($or$cond) {
  24991. $12 = (_malloc(380)|0);
  24992. $$048 = 0;
  24993. while(1) {
  24994. $13 = (($$048) + 32)|0;
  24995. $14 = (($12) + ($$048<<2)|0);
  24996. HEAP32[$14>>2] = $13;
  24997. $15 = (($$048) + 1)|0;
  24998. $exitcond = ($15|0)==(95);
  24999. if ($exitcond) {
  25000. break;
  25001. } else {
  25002. $$048 = $15;
  25003. }
  25004. }
  25005. _LoadTTF($5,$1,$2,95,$12);
  25006. $$sroa$0$0$copyload = HEAP32[$5>>2]|0;
  25007. $$sroa$8$0$$sroa_idx = ((($5)) + 4|0);
  25008. ;HEAP32[$$sroa$8>>2]=HEAP32[$$sroa$8$0$$sroa_idx>>2]|0;HEAP32[$$sroa$8+4>>2]=HEAP32[$$sroa$8$0$$sroa_idx+4>>2]|0;HEAP32[$$sroa$8+8>>2]=HEAP32[$$sroa$8$0$$sroa_idx+8>>2]|0;HEAP32[$$sroa$8+12>>2]=HEAP32[$$sroa$8$0$$sroa_idx+12>>2]|0;HEAP32[$$sroa$8+16>>2]=HEAP32[$$sroa$8$0$$sroa_idx+16>>2]|0;HEAP32[$$sroa$8+20>>2]=HEAP32[$$sroa$8$0$$sroa_idx+20>>2]|0;HEAP32[$$sroa$8+24>>2]=HEAP32[$$sroa$8$0$$sroa_idx+24>>2]|0;
  25009. $$sroa$0$0 = $$sroa$0$0$copyload;
  25010. } else {
  25011. _LoadTTF($6,$1,$2,$3,$4);
  25012. $$sroa$0$0$copyload15 = HEAP32[$6>>2]|0;
  25013. $$sroa$8$0$$sroa_idx23 = ((($6)) + 4|0);
  25014. ;HEAP32[$$sroa$8>>2]=HEAP32[$$sroa$8$0$$sroa_idx23>>2]|0;HEAP32[$$sroa$8+4>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+4>>2]|0;HEAP32[$$sroa$8+8>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+8>>2]|0;HEAP32[$$sroa$8+12>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+12>>2]|0;HEAP32[$$sroa$8+16>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+16>>2]|0;HEAP32[$$sroa$8+20>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+20>>2]|0;HEAP32[$$sroa$8+24>>2]=HEAP32[$$sroa$8$0$$sroa_idx23+24>>2]|0;
  25015. $$sroa$0$0 = $$sroa$0$0$copyload15;
  25016. }
  25017. $16 = ($$sroa$0$0|0)==(0);
  25018. if (!($16)) {
  25019. $$sroa$0$1 = $$sroa$0$0;
  25020. HEAP32[$0>>2] = $$sroa$0$1;
  25021. $$sroa$8$0$$sroa_idx29 = ((($0)) + 4|0);
  25022. ;HEAP32[$$sroa$8$0$$sroa_idx29>>2]=HEAP32[$$sroa$8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+4>>2]=HEAP32[$$sroa$8+4>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+8>>2]=HEAP32[$$sroa$8+8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+12>>2]=HEAP32[$$sroa$8+12>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+16>>2]=HEAP32[$$sroa$8+16>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+20>>2]=HEAP32[$$sroa$8+20>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+24>>2]=HEAP32[$$sroa$8+24>>2]|0;
  25023. STACKTOP = sp;return;
  25024. }
  25025. }
  25026. HEAP32[$vararg_buffer>>2] = $1;
  25027. _TraceLog(2,12922,$vararg_buffer);
  25028. _GetDefaultFont($7);
  25029. $$sroa$0$0$copyload17 = HEAP32[$7>>2]|0;
  25030. $$sroa$8$0$$sroa_idx26 = ((($7)) + 4|0);
  25031. ;HEAP32[$$sroa$8>>2]=HEAP32[$$sroa$8$0$$sroa_idx26>>2]|0;HEAP32[$$sroa$8+4>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+4>>2]|0;HEAP32[$$sroa$8+8>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+8>>2]|0;HEAP32[$$sroa$8+12>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+12>>2]|0;HEAP32[$$sroa$8+16>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+16>>2]|0;HEAP32[$$sroa$8+20>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+20>>2]|0;HEAP32[$$sroa$8+24>>2]=HEAP32[$$sroa$8$0$$sroa_idx26+24>>2]|0;
  25032. $$sroa$0$1 = $$sroa$0$0$copyload17;
  25033. HEAP32[$0>>2] = $$sroa$0$1;
  25034. $$sroa$8$0$$sroa_idx29 = ((($0)) + 4|0);
  25035. ;HEAP32[$$sroa$8$0$$sroa_idx29>>2]=HEAP32[$$sroa$8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+4>>2]=HEAP32[$$sroa$8+4>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+8>>2]=HEAP32[$$sroa$8+8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+12>>2]=HEAP32[$$sroa$8+12>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+16>>2]=HEAP32[$$sroa$8+16>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+20>>2]=HEAP32[$$sroa$8+20>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx29+24>>2]=HEAP32[$$sroa$8+24>>2]|0;
  25036. STACKTOP = sp;return;
  25037. }
  25038. function _LoadBMFont($0,$1) {
  25039. $0 = $0|0;
  25040. $1 = $1|0;
  25041. var $$05355 = 0, $$056 = 0, $$byval_copy52 = 0, $$sroa$0$0$$sroa_idx = 0, $$sroa$2$0$$sroa_idx1 = 0, $$sroa$3$0$$sroa_idx2 = 0, $$sroa$4$0$$sroa_idx3 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0;
  25042. 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;
  25043. 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;
  25044. 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;
  25045. var $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer11 = 0, $vararg_buffer16 = 0, $vararg_buffer19 = 0, $vararg_buffer23 = 0, $vararg_buffer26 = 0, $vararg_buffer34 = 0, $vararg_buffer44 = 0, $vararg_buffer7 = 0, $vararg_ptr10 = 0;
  25046. var $vararg_ptr14 = 0, $vararg_ptr15 = 0, $vararg_ptr22 = 0, $vararg_ptr29 = 0, $vararg_ptr33 = 0, $vararg_ptr37 = 0, $vararg_ptr38 = 0, $vararg_ptr39 = 0, $vararg_ptr4 = 0, $vararg_ptr40 = 0, $vararg_ptr41 = 0, $vararg_ptr42 = 0, $vararg_ptr43 = 0, $vararg_ptr5 = 0, $vararg_ptr6 = 0, label = 0, sp = 0;
  25047. sp = STACKTOP;
  25048. STACKTOP = STACKTOP + 704|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(704|0);
  25049. $$byval_copy52 = sp + 152|0;
  25050. $vararg_buffer44 = sp + 144|0;
  25051. $vararg_buffer34 = sp + 112|0;
  25052. $vararg_buffer26 = sp + 88|0;
  25053. $vararg_buffer23 = sp + 64|0;
  25054. $vararg_buffer19 = sp + 56|0;
  25055. $vararg_buffer16 = sp + 48|0;
  25056. $vararg_buffer11 = sp + 32|0;
  25057. $vararg_buffer7 = sp + 24|0;
  25058. $vararg_buffer1 = sp + 8|0;
  25059. $vararg_buffer = sp;
  25060. $2 = sp + 288|0;
  25061. $3 = sp + 448|0;
  25062. $4 = sp + 260|0;
  25063. $5 = sp + 236|0;
  25064. $6 = sp + 232|0;
  25065. $7 = sp + 320|0;
  25066. $8 = sp + 196|0;
  25067. $9 = sp + 192|0;
  25068. $10 = sp + 264|0;
  25069. $11 = sp + 240|0;
  25070. $12 = sp + 188|0;
  25071. $13 = sp + 184|0;
  25072. $14 = sp + 200|0;
  25073. ;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;
  25074. HEAP32[$4>>2] = 0;
  25075. HEAP32[$8>>2] = 0;
  25076. $15 = (_fopen($1,12520)|0);
  25077. $16 = ($15|0)==(0|0);
  25078. if ($16) {
  25079. HEAP32[$vararg_buffer>>2] = $1;
  25080. _TraceLog(2,12523,$vararg_buffer);
  25081. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  25082. STACKTOP = sp;return;
  25083. }
  25084. (_fgets($3,256,$15)|0);
  25085. (_fgets($3,256,$15)|0);
  25086. $17 = (_strstr($3,12557)|0);
  25087. HEAP32[$vararg_buffer1>>2] = $4;
  25088. $vararg_ptr4 = ((($vararg_buffer1)) + 4|0);
  25089. HEAP32[$vararg_ptr4>>2] = $9;
  25090. $vararg_ptr5 = ((($vararg_buffer1)) + 8|0);
  25091. HEAP32[$vararg_ptr5>>2] = $5;
  25092. $vararg_ptr6 = ((($vararg_buffer1)) + 12|0);
  25093. HEAP32[$vararg_ptr6>>2] = $6;
  25094. (_sscanf($17,12568,$vararg_buffer1)|0);
  25095. $18 = HEAP32[$4>>2]|0;
  25096. HEAP32[$vararg_buffer7>>2] = $1;
  25097. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  25098. HEAP32[$vararg_ptr10>>2] = $18;
  25099. _TraceLog(3,12610,$vararg_buffer7);
  25100. $19 = HEAP32[$5>>2]|0;
  25101. $20 = HEAP32[$6>>2]|0;
  25102. HEAP32[$vararg_buffer11>>2] = $1;
  25103. $vararg_ptr14 = ((($vararg_buffer11)) + 4|0);
  25104. HEAP32[$vararg_ptr14>>2] = $19;
  25105. $vararg_ptr15 = ((($vararg_buffer11)) + 8|0);
  25106. HEAP32[$vararg_ptr15>>2] = $20;
  25107. _TraceLog(3,12629,$vararg_buffer11);
  25108. (_fgets($3,256,$15)|0);
  25109. $21 = (_strstr($3,12660)|0);
  25110. HEAP32[$vararg_buffer16>>2] = $7;
  25111. (_sscanf($21,12665,$vararg_buffer16)|0);
  25112. HEAP32[$vararg_buffer19>>2] = $1;
  25113. $vararg_ptr22 = ((($vararg_buffer19)) + 4|0);
  25114. HEAP32[$vararg_ptr22>>2] = $7;
  25115. _TraceLog(3,12681,$vararg_buffer19);
  25116. (_fgets($3,256,$15)|0);
  25117. $22 = (_strstr($3,12712)|0);
  25118. HEAP32[$vararg_buffer23>>2] = $8;
  25119. (_sscanf($22,12718,$vararg_buffer23)|0);
  25120. $23 = HEAP32[$8>>2]|0;
  25121. HEAP32[$vararg_buffer26>>2] = $1;
  25122. $vararg_ptr29 = ((($vararg_buffer26)) + 4|0);
  25123. HEAP32[$vararg_ptr29>>2] = $23;
  25124. _TraceLog(3,12727,$vararg_buffer26);
  25125. $24 = (_strrchr($1,47)|0);
  25126. $25 = (_strlen($1)|0);
  25127. $26 = (_strlen($24)|0);
  25128. $27 = (_strlen($7)|0);
  25129. $28 = (($25) + 4)|0;
  25130. $29 = (($28) - ($26))|0;
  25131. $30 = (($29) + ($27))|0;
  25132. $31 = (_malloc($30)|0);
  25133. HEAP8[$31>>0] = 0;
  25134. $32 = (_strlen($1)|0);
  25135. $33 = (_strlen($24)|0);
  25136. $34 = (($32) + 1)|0;
  25137. $35 = (($34) - ($33))|0;
  25138. (_strncat($31,$1,$35)|0);
  25139. $36 = (_strlen($7)|0);
  25140. (_strncat($31,$7,$36)|0);
  25141. HEAP32[$$byval_copy52>>2] = $1;
  25142. $vararg_ptr33 = ((($$byval_copy52)) + 4|0);
  25143. HEAP32[$vararg_ptr33>>2] = $31;
  25144. _TraceLog(3,12751,$$byval_copy52);
  25145. _LoadImage($vararg_buffer26,$31);
  25146. $37 = ((($vararg_buffer26)) + 16|0);
  25147. $38 = HEAP32[$37>>2]|0;
  25148. $39 = ($38|0)==(1);
  25149. if ($39) {
  25150. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25151. _ImageCopy($vararg_buffer23,$$byval_copy52);
  25152. $40 = ((($vararg_buffer23)) + 4|0);
  25153. $41 = HEAP32[$40>>2]|0;
  25154. $42 = ((($vararg_buffer23)) + 8|0);
  25155. $43 = HEAP32[$42>>2]|0;
  25156. $44 = Math_imul($43, $41)|0;
  25157. $45 = ($44|0)>(0);
  25158. if ($45) {
  25159. $$056 = 0;
  25160. while(1) {
  25161. $46 = HEAP32[$vararg_buffer23>>2]|0;
  25162. $47 = (($46) + ($$056)|0);
  25163. HEAP8[$47>>0] = -1;
  25164. $48 = (($$056) + 1)|0;
  25165. $49 = HEAP32[$40>>2]|0;
  25166. $50 = HEAP32[$42>>2]|0;
  25167. $51 = Math_imul($50, $49)|0;
  25168. $52 = ($48|0)<($51|0);
  25169. if ($52) {
  25170. $$056 = $48;
  25171. } else {
  25172. break;
  25173. }
  25174. }
  25175. }
  25176. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25177. _ImageAlphaMask($vararg_buffer23,$$byval_copy52);
  25178. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer23>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer23+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer23+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer23+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer23+16>>2]|0;
  25179. _LoadTextureFromImage($10,$$byval_copy52);
  25180. ;HEAP32[$2>>2]=HEAP32[$10>>2]|0;HEAP32[$2+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$10+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$10+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$10+16>>2]|0;
  25181. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer23>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer23+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer23+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer23+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer23+16>>2]|0;
  25182. _UnloadImage($$byval_copy52);
  25183. } else {
  25184. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25185. _LoadTextureFromImage($11,$$byval_copy52);
  25186. ;HEAP32[$2>>2]=HEAP32[$11>>2]|0;HEAP32[$2+4>>2]=HEAP32[$11+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$11+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$11+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$11+16>>2]|0;
  25187. }
  25188. $53 = HEAP32[$4>>2]|0;
  25189. $54 = ((($2)) + 20|0);
  25190. HEAP32[$54>>2] = $53;
  25191. $55 = HEAP32[$8>>2]|0;
  25192. $56 = ((($2)) + 24|0);
  25193. HEAP32[$56>>2] = $55;
  25194. $57 = $55 << 5;
  25195. $58 = (_malloc($57)|0);
  25196. $59 = ((($2)) + 28|0);
  25197. HEAP32[$59>>2] = $58;
  25198. ;HEAP32[$$byval_copy52>>2]=HEAP32[$vararg_buffer26>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$vararg_buffer26+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$vararg_buffer26+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$vararg_buffer26+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$vararg_buffer26+16>>2]|0;
  25199. _UnloadImage($$byval_copy52);
  25200. _free($31);
  25201. $60 = HEAP32[$8>>2]|0;
  25202. $61 = ($60|0)>(0);
  25203. if ($61) {
  25204. $$05355 = 0;
  25205. while(1) {
  25206. (_fgets($3,256,$15)|0);
  25207. HEAP32[$vararg_buffer34>>2] = $vararg_buffer23;
  25208. $vararg_ptr37 = ((($vararg_buffer34)) + 4|0);
  25209. HEAP32[$vararg_ptr37>>2] = $vararg_buffer19;
  25210. $vararg_ptr38 = ((($vararg_buffer34)) + 8|0);
  25211. HEAP32[$vararg_ptr38>>2] = $vararg_buffer16;
  25212. $vararg_ptr39 = ((($vararg_buffer34)) + 12|0);
  25213. HEAP32[$vararg_ptr39>>2] = $vararg_buffer11;
  25214. $vararg_ptr40 = ((($vararg_buffer34)) + 16|0);
  25215. HEAP32[$vararg_ptr40>>2] = $vararg_buffer7;
  25216. $vararg_ptr41 = ((($vararg_buffer34)) + 20|0);
  25217. HEAP32[$vararg_ptr41>>2] = $vararg_buffer1;
  25218. $vararg_ptr42 = ((($vararg_buffer34)) + 24|0);
  25219. HEAP32[$vararg_ptr42>>2] = $12;
  25220. $vararg_ptr43 = ((($vararg_buffer34)) + 28|0);
  25221. HEAP32[$vararg_ptr43>>2] = $13;
  25222. (_sscanf($3,12786,$vararg_buffer34)|0);
  25223. $64 = HEAP32[$vararg_buffer23>>2]|0;
  25224. $65 = HEAP32[$59>>2]|0;
  25225. $66 = (($65) + ($$05355<<5)|0);
  25226. HEAP32[$66>>2] = $64;
  25227. $67 = HEAP32[$59>>2]|0;
  25228. $68 = HEAP32[$vararg_buffer19>>2]|0;
  25229. $69 = HEAP32[$vararg_buffer16>>2]|0;
  25230. $70 = HEAP32[$vararg_buffer11>>2]|0;
  25231. $71 = HEAP32[$vararg_buffer7>>2]|0;
  25232. $$sroa$0$0$$sroa_idx = (((($67) + ($$05355<<5)|0)) + 4|0);
  25233. HEAP32[$$sroa$0$0$$sroa_idx>>2] = $68;
  25234. $$sroa$2$0$$sroa_idx1 = (((($67) + ($$05355<<5)|0)) + 8|0);
  25235. HEAP32[$$sroa$2$0$$sroa_idx1>>2] = $69;
  25236. $$sroa$3$0$$sroa_idx2 = (((($67) + ($$05355<<5)|0)) + 12|0);
  25237. HEAP32[$$sroa$3$0$$sroa_idx2>>2] = $70;
  25238. $$sroa$4$0$$sroa_idx3 = (((($67) + ($$05355<<5)|0)) + 16|0);
  25239. HEAP32[$$sroa$4$0$$sroa_idx3>>2] = $71;
  25240. $72 = HEAP32[$vararg_buffer1>>2]|0;
  25241. $73 = HEAP32[$59>>2]|0;
  25242. $74 = (((($73) + ($$05355<<5)|0)) + 20|0);
  25243. HEAP32[$74>>2] = $72;
  25244. $75 = HEAP32[$12>>2]|0;
  25245. $76 = HEAP32[$59>>2]|0;
  25246. $77 = (((($76) + ($$05355<<5)|0)) + 24|0);
  25247. HEAP32[$77>>2] = $75;
  25248. $78 = HEAP32[$13>>2]|0;
  25249. $79 = HEAP32[$59>>2]|0;
  25250. $80 = (((($79) + ($$05355<<5)|0)) + 28|0);
  25251. HEAP32[$80>>2] = $78;
  25252. $81 = (($$05355) + 1)|0;
  25253. $82 = HEAP32[$8>>2]|0;
  25254. $83 = ($81|0)<($82|0);
  25255. if ($83) {
  25256. $$05355 = $81;
  25257. } else {
  25258. break;
  25259. }
  25260. }
  25261. }
  25262. (_fclose($15)|0);
  25263. $62 = HEAP32[$2>>2]|0;
  25264. $63 = ($62|0)==(0);
  25265. if ($63) {
  25266. ;HEAP32[$$byval_copy52>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$$byval_copy52+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$$byval_copy52+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$$byval_copy52+28>>2]=HEAP32[$2+28>>2]|0;
  25267. _UnloadSpriteFont($$byval_copy52);
  25268. _GetDefaultFont($14);
  25269. ;HEAP32[$2>>2]=HEAP32[$14>>2]|0;HEAP32[$2+4>>2]=HEAP32[$14+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$14+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$14+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$14+16>>2]|0;HEAP32[$2+20>>2]=HEAP32[$14+20>>2]|0;HEAP32[$2+24>>2]=HEAP32[$14+24>>2]|0;HEAP32[$2+28>>2]=HEAP32[$14+28>>2]|0;
  25270. } else {
  25271. HEAP32[$vararg_buffer44>>2] = $1;
  25272. _TraceLog(0,12860,$vararg_buffer44);
  25273. }
  25274. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$2+28>>2]|0;
  25275. STACKTOP = sp;return;
  25276. }
  25277. function _LoadImageFont($0,$1,$2) {
  25278. $0 = $0|0;
  25279. $1 = $1|0;
  25280. $2 = $2|0;
  25281. var $$0195$lcssa = 0, $$019552 = 0, $$019622 = 0, $$0197 = 0, $$020032 = 0, $$0201$lcssa = 0, $$020131 = 0, $$0203 = 0, $$021 = 0, $$1$lcssa = 0, $$119927 = 0, $$1202$lcssa = 0, $$120226 = 0, $$135 = 0, $$2 = 0, $$byval_copy4 = 0, $$sroa$0 = 0, $$sroa$5$0$$sroa_idx15 = 0, $$sroa$6$0$$sroa_idx17 = 0, $$sroa$9$0$$sroa_idx20 = 0;
  25282. 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;
  25283. 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;
  25284. 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;
  25285. 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;
  25286. var $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  25287. 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;
  25288. 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;
  25289. 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;
  25290. 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;
  25291. var $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, label = 0, sp = 0;
  25292. sp = STACKTOP;
  25293. STACKTOP = STACKTOP + 5232|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(5232|0);
  25294. $$byval_copy4 = sp + 5200|0;
  25295. $vararg_buffer1 = sp + 48|0;
  25296. $vararg_buffer = sp + 24|0;
  25297. $3 = sp + 4176|0;
  25298. $4 = sp + 56|0;
  25299. $$sroa$0 = sp;
  25300. $5 = sp + 4152|0;
  25301. ;HEAP32[$$byval_copy4>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy4+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy4+16>>2]=HEAP32[$1+16>>2]|0;
  25302. $6 = (_GetImageData($$byval_copy4)|0);
  25303. $7 = ((($1)) + 8|0);
  25304. $8 = HEAP32[$7>>2]|0;
  25305. $9 = ($8|0)>(0);
  25306. L1: do {
  25307. if ($9) {
  25308. $10 = ((($1)) + 4|0);
  25309. $11 = HEAP32[$10>>2]|0;
  25310. $12 = ($11|0)>(0);
  25311. $13 = HEAP8[$2>>0]|0;
  25312. $14 = ((($2)) + 1|0);
  25313. $15 = HEAP8[$14>>0]|0;
  25314. $16 = ((($2)) + 2|0);
  25315. $17 = HEAP8[$16>>0]|0;
  25316. $18 = ((($2)) + 3|0);
  25317. $19 = HEAP8[$18>>0]|0;
  25318. $20 = HEAP8[$2>>0]|0;
  25319. $21 = ((($2)) + 1|0);
  25320. $22 = HEAP8[$21>>0]|0;
  25321. $23 = ((($2)) + 2|0);
  25322. $24 = HEAP8[$23>>0]|0;
  25323. $25 = ((($2)) + 3|0);
  25324. $26 = HEAP8[$25>>0]|0;
  25325. $27 = HEAP32[$10>>2]|0;
  25326. $$019552 = 0;
  25327. while(1) {
  25328. L5: do {
  25329. if ($12) {
  25330. $$135 = 0;$29 = $11;
  25331. while(1) {
  25332. $28 = Math_imul($29, $$019552)|0;
  25333. $30 = (($28) + ($$135))|0;
  25334. $31 = (($6) + ($30<<2)|0);
  25335. $32 = HEAP8[$31>>0]|0;
  25336. $33 = ($32<<24>>24)==($20<<24>>24);
  25337. if (!($33)) {
  25338. $$1$lcssa = $$135;
  25339. break L5;
  25340. }
  25341. $34 = (((($6) + ($30<<2)|0)) + 1|0);
  25342. $35 = HEAP8[$34>>0]|0;
  25343. $36 = ($35<<24>>24)==($22<<24>>24);
  25344. if (!($36)) {
  25345. $$1$lcssa = $$135;
  25346. break L5;
  25347. }
  25348. $37 = (((($6) + ($30<<2)|0)) + 2|0);
  25349. $38 = HEAP8[$37>>0]|0;
  25350. $39 = ($38<<24>>24)==($24<<24>>24);
  25351. if (!($39)) {
  25352. $$1$lcssa = $$135;
  25353. break L5;
  25354. }
  25355. $40 = (((($6) + ($30<<2)|0)) + 3|0);
  25356. $41 = HEAP8[$40>>0]|0;
  25357. $42 = ($41<<24>>24)==($26<<24>>24);
  25358. if (!($42)) {
  25359. $$1$lcssa = $$135;
  25360. break L5;
  25361. }
  25362. $43 = (($$135) + 1)|0;
  25363. $44 = HEAP32[$10>>2]|0;
  25364. $45 = ($43|0)<($44|0);
  25365. if ($45) {
  25366. $$135 = $43;$29 = $44;
  25367. } else {
  25368. $$1$lcssa = $43;
  25369. break;
  25370. }
  25371. }
  25372. } else {
  25373. $$1$lcssa = 0;
  25374. }
  25375. } while(0);
  25376. $46 = Math_imul($27, $$019552)|0;
  25377. $47 = (($46) + ($$1$lcssa))|0;
  25378. $48 = (($6) + ($47<<2)|0);
  25379. $49 = HEAP8[$48>>0]|0;
  25380. $50 = ($49<<24>>24)==($13<<24>>24);
  25381. if (!($50)) {
  25382. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25383. break L1;
  25384. }
  25385. $51 = (((($6) + ($47<<2)|0)) + 1|0);
  25386. $52 = HEAP8[$51>>0]|0;
  25387. $53 = ($52<<24>>24)==($15<<24>>24);
  25388. if (!($53)) {
  25389. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25390. break L1;
  25391. }
  25392. $54 = (((($6) + ($47<<2)|0)) + 2|0);
  25393. $55 = HEAP8[$54>>0]|0;
  25394. $56 = ($55<<24>>24)==($17<<24>>24);
  25395. if (!($56)) {
  25396. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25397. break L1;
  25398. }
  25399. $57 = (((($6) + ($47<<2)|0)) + 3|0);
  25400. $58 = HEAP8[$57>>0]|0;
  25401. $59 = ($58<<24>>24)==($19<<24>>24);
  25402. if (!($59)) {
  25403. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25404. break L1;
  25405. }
  25406. $60 = (($$019552) + 1)|0;
  25407. $61 = HEAP32[$7>>2]|0;
  25408. $62 = ($60|0)<($61|0);
  25409. if ($62) {
  25410. $$019552 = $60;
  25411. } else {
  25412. $$0195$lcssa = $60;$$2 = $$1$lcssa;
  25413. break;
  25414. }
  25415. }
  25416. } else {
  25417. $$0195$lcssa = 0;$$2 = 0;
  25418. }
  25419. } while(0);
  25420. $63 = ((($1)) + 4|0);
  25421. $64 = HEAP32[$63>>2]|0;
  25422. $65 = HEAP8[$2>>0]|0;
  25423. $66 = ((($2)) + 1|0);
  25424. $67 = HEAP8[$66>>0]|0;
  25425. $68 = ((($2)) + 2|0);
  25426. $69 = HEAP8[$68>>0]|0;
  25427. $70 = ((($2)) + 3|0);
  25428. $71 = HEAP8[$70>>0]|0;
  25429. $$0203 = 0;
  25430. while(1) {
  25431. $72 = (($$0203) + ($$0195$lcssa))|0;
  25432. $73 = Math_imul($72, $64)|0;
  25433. $74 = (($73) + ($$2))|0;
  25434. $75 = (($6) + ($74<<2)|0);
  25435. $76 = HEAP8[$75>>0]|0;
  25436. $77 = ($76<<24>>24)==($65<<24>>24);
  25437. if ($77) {
  25438. $78 = (((($6) + ($74<<2)|0)) + 1|0);
  25439. $79 = HEAP8[$78>>0]|0;
  25440. $80 = ($79<<24>>24)==($67<<24>>24);
  25441. if ($80) {
  25442. $81 = (((($6) + ($74<<2)|0)) + 2|0);
  25443. $82 = HEAP8[$81>>0]|0;
  25444. $83 = ($82<<24>>24)==($69<<24>>24);
  25445. if ($83) {
  25446. $84 = (((($6) + ($74<<2)|0)) + 3|0);
  25447. $85 = HEAP8[$84>>0]|0;
  25448. $86 = ($85<<24>>24)==($71<<24>>24);
  25449. if ($86) {
  25450. break;
  25451. }
  25452. }
  25453. }
  25454. }
  25455. $96 = (($$0203) + 1)|0;
  25456. $$0203 = $96;
  25457. }
  25458. $87 = HEAP32[$7>>2]|0;
  25459. $88 = ($$0195$lcssa|0)<($87|0);
  25460. if ($88) {
  25461. $89 = HEAP32[$63>>2]|0;
  25462. $90 = ($$2|0)<($89|0);
  25463. $91 = HEAP32[$7>>2]|0;
  25464. $92 = HEAP8[$2>>0]|0;
  25465. $93 = HEAP8[$66>>0]|0;
  25466. $94 = HEAP8[$68>>0]|0;
  25467. $95 = HEAP8[$70>>0]|0;
  25468. $$020032 = 0;$$020131 = 0;$99 = $$0195$lcssa;
  25469. while(1) {
  25470. L30: do {
  25471. if ($90) {
  25472. $$119927 = $$2;$$120226 = $$020131;$98 = $89;
  25473. while(1) {
  25474. $97 = Math_imul($98, $99)|0;
  25475. $100 = (($97) + ($$119927))|0;
  25476. $101 = (($6) + ($100<<2)|0);
  25477. $102 = HEAP8[$101>>0]|0;
  25478. $103 = ($102<<24>>24)==($92<<24>>24);
  25479. if ($103) {
  25480. $104 = (((($6) + ($100<<2)|0)) + 1|0);
  25481. $105 = HEAP8[$104>>0]|0;
  25482. $106 = ($105<<24>>24)==($93<<24>>24);
  25483. if ($106) {
  25484. $107 = (((($6) + ($100<<2)|0)) + 2|0);
  25485. $108 = HEAP8[$107>>0]|0;
  25486. $109 = ($108<<24>>24)==($94<<24>>24);
  25487. if ($109) {
  25488. $110 = (((($6) + ($100<<2)|0)) + 3|0);
  25489. $111 = HEAP8[$110>>0]|0;
  25490. $112 = ($111<<24>>24)==($95<<24>>24);
  25491. if ($112) {
  25492. $$1202$lcssa = $$120226;
  25493. break L30;
  25494. }
  25495. }
  25496. }
  25497. }
  25498. $113 = (($$120226) + 32)|0;
  25499. $114 = (($3) + ($$120226<<2)|0);
  25500. HEAP32[$114>>2] = $113;
  25501. $115 = (($4) + ($$120226<<4)|0);
  25502. HEAP32[$115>>2] = $$119927;
  25503. $116 = (((($4) + ($$120226<<4)|0)) + 4|0);
  25504. HEAP32[$116>>2] = $99;
  25505. $117 = (((($4) + ($$120226<<4)|0)) + 12|0);
  25506. HEAP32[$117>>2] = $$0203;
  25507. $118 = HEAP32[$63>>2]|0;
  25508. $119 = Math_imul($118, $99)|0;
  25509. $$0197 = 0;
  25510. while(1) {
  25511. $120 = (($$0197) + ($$119927))|0;
  25512. $121 = (($120) + ($119))|0;
  25513. $122 = (($6) + ($121<<2)|0);
  25514. $123 = HEAP8[$122>>0]|0;
  25515. $124 = ($123<<24>>24)==($92<<24>>24);
  25516. if ($124) {
  25517. $125 = (((($6) + ($121<<2)|0)) + 1|0);
  25518. $126 = HEAP8[$125>>0]|0;
  25519. $127 = ($126<<24>>24)==($93<<24>>24);
  25520. if ($127) {
  25521. $128 = (((($6) + ($121<<2)|0)) + 2|0);
  25522. $129 = HEAP8[$128>>0]|0;
  25523. $130 = ($129<<24>>24)==($94<<24>>24);
  25524. if ($130) {
  25525. $131 = (((($6) + ($121<<2)|0)) + 3|0);
  25526. $132 = HEAP8[$131>>0]|0;
  25527. $133 = ($132<<24>>24)==($95<<24>>24);
  25528. if ($133) {
  25529. break;
  25530. }
  25531. }
  25532. }
  25533. }
  25534. $134 = (($$0197) + 1)|0;
  25535. $$0197 = $134;
  25536. }
  25537. $135 = (((($4) + ($$120226<<4)|0)) + 8|0);
  25538. HEAP32[$135>>2] = $$0197;
  25539. $136 = (($$120226) + 1)|0;
  25540. $137 = (($$119927) + ($$2))|0;
  25541. $138 = (($137) + ($$0197))|0;
  25542. $139 = HEAP32[$63>>2]|0;
  25543. $140 = ($138|0)<($139|0);
  25544. if ($140) {
  25545. $$119927 = $138;$$120226 = $136;$98 = $139;
  25546. } else {
  25547. $$1202$lcssa = $136;
  25548. break;
  25549. }
  25550. }
  25551. } else {
  25552. $$1202$lcssa = $$020131;
  25553. }
  25554. } while(0);
  25555. $141 = (($$020032) + 1)|0;
  25556. $142 = Math_imul($141, $72)|0;
  25557. $143 = (($142) + ($$0195$lcssa))|0;
  25558. $144 = ($143|0)<($91|0);
  25559. if ($144) {
  25560. $$020032 = $141;$$020131 = $$1202$lcssa;$99 = $143;
  25561. } else {
  25562. $$0201$lcssa = $$1202$lcssa;
  25563. break;
  25564. }
  25565. }
  25566. } else {
  25567. $$0201$lcssa = 0;
  25568. }
  25569. _TraceLog(3,12434,$vararg_buffer);
  25570. $145 = HEAP32[$7>>2]|0;
  25571. $146 = HEAP32[$63>>2]|0;
  25572. $147 = Math_imul($146, $145)|0;
  25573. $148 = ($147|0)>(0);
  25574. if ($148) {
  25575. $149 = HEAP8[$2>>0]|0;
  25576. $150 = HEAP8[$66>>0]|0;
  25577. $151 = HEAP8[$68>>0]|0;
  25578. $152 = HEAP8[$70>>0]|0;
  25579. $$019622 = 0;
  25580. while(1) {
  25581. $158 = (($6) + ($$019622<<2)|0);
  25582. $159 = HEAP8[$158>>0]|0;
  25583. $160 = ($159<<24>>24)==($149<<24>>24);
  25584. if ($160) {
  25585. $161 = (((($6) + ($$019622<<2)|0)) + 1|0);
  25586. $162 = HEAP8[$161>>0]|0;
  25587. $163 = ($162<<24>>24)==($150<<24>>24);
  25588. if ($163) {
  25589. $164 = (((($6) + ($$019622<<2)|0)) + 2|0);
  25590. $165 = HEAP8[$164>>0]|0;
  25591. $166 = ($165<<24>>24)==($151<<24>>24);
  25592. if ($166) {
  25593. $167 = (((($6) + ($$019622<<2)|0)) + 3|0);
  25594. $168 = HEAP8[$167>>0]|0;
  25595. $169 = ($168<<24>>24)==($152<<24>>24);
  25596. if ($169) {
  25597. HEAP8[$158>>0]=0&255;HEAP8[$158+1>>0]=(0>>8)&255;HEAP8[$158+2>>0]=(0>>16)&255;HEAP8[$158+3>>0]=0>>24;
  25598. }
  25599. }
  25600. }
  25601. }
  25602. $170 = (($$019622) + 1)|0;
  25603. $171 = HEAP32[$7>>2]|0;
  25604. $172 = HEAP32[$63>>2]|0;
  25605. $173 = Math_imul($172, $171)|0;
  25606. $174 = ($170|0)<($173|0);
  25607. if ($174) {
  25608. $$019622 = $170;
  25609. } else {
  25610. break;
  25611. }
  25612. }
  25613. }
  25614. $153 = HEAP32[$63>>2]|0;
  25615. $154 = HEAP32[$7>>2]|0;
  25616. _LoadImageEx($vararg_buffer,$6,$153,$154);
  25617. _free($6);
  25618. ;HEAP32[$$sroa$0>>2]=0|0;HEAP32[$$sroa$0+4>>2]=0|0;HEAP32[$$sroa$0+8>>2]=0|0;HEAP32[$$sroa$0+12>>2]=0|0;HEAP32[$$sroa$0+16>>2]=0|0;
  25619. ;HEAP32[$$byval_copy4>>2]=HEAP32[$vararg_buffer>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$vararg_buffer+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$vararg_buffer+8>>2]|0;HEAP32[$$byval_copy4+12>>2]=HEAP32[$vararg_buffer+12>>2]|0;HEAP32[$$byval_copy4+16>>2]=HEAP32[$vararg_buffer+16>>2]|0;
  25620. _LoadTextureFromImage($5,$$byval_copy4);
  25621. ;HEAP32[$$sroa$0>>2]=HEAP32[$5>>2]|0;HEAP32[$$sroa$0+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$sroa$0+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$sroa$0+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$$sroa$0+16>>2]=HEAP32[$5+16>>2]|0;
  25622. ;HEAP32[$$byval_copy4>>2]=HEAP32[$vararg_buffer>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$vararg_buffer+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$vararg_buffer+8>>2]|0;HEAP32[$$byval_copy4+12>>2]=HEAP32[$vararg_buffer+12>>2]|0;HEAP32[$$byval_copy4+16>>2]=HEAP32[$vararg_buffer+16>>2]|0;
  25623. _UnloadImage($$byval_copy4);
  25624. $155 = $$0201$lcssa << 5;
  25625. $156 = (_malloc($155)|0);
  25626. $157 = ($$0201$lcssa|0)>(0);
  25627. if ($157) {
  25628. $$021 = 0;
  25629. } else {
  25630. $175 = ((($156)) + 16|0);
  25631. $176 = HEAP32[$175>>2]|0;
  25632. _TraceLog(0,12478,$vararg_buffer1);
  25633. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25634. $$sroa$5$0$$sroa_idx15 = ((($0)) + 20|0);
  25635. HEAP32[$$sroa$5$0$$sroa_idx15>>2] = $176;
  25636. $$sroa$6$0$$sroa_idx17 = ((($0)) + 24|0);
  25637. HEAP32[$$sroa$6$0$$sroa_idx17>>2] = $$0201$lcssa;
  25638. $$sroa$9$0$$sroa_idx20 = ((($0)) + 28|0);
  25639. HEAP32[$$sroa$9$0$$sroa_idx20>>2] = $156;
  25640. STACKTOP = sp;return;
  25641. }
  25642. while(1) {
  25643. $177 = (($3) + ($$021<<2)|0);
  25644. $178 = HEAP32[$177>>2]|0;
  25645. $179 = (($156) + ($$021<<5)|0);
  25646. HEAP32[$179>>2] = $178;
  25647. $180 = (((($156) + ($$021<<5)|0)) + 4|0);
  25648. $181 = (($4) + ($$021<<4)|0);
  25649. ;HEAP32[$180>>2]=HEAP32[$181>>2]|0;HEAP32[$180+4>>2]=HEAP32[$181+4>>2]|0;HEAP32[$180+8>>2]=HEAP32[$181+8>>2]|0;HEAP32[$180+12>>2]=HEAP32[$181+12>>2]|0;
  25650. $182 = (((($156) + ($$021<<5)|0)) + 20|0);
  25651. HEAP32[$182>>2] = 0;
  25652. $183 = (((($156) + ($$021<<5)|0)) + 24|0);
  25653. HEAP32[$183>>2] = 0;
  25654. $184 = (((($156) + ($$021<<5)|0)) + 28|0);
  25655. HEAP32[$184>>2] = 0;
  25656. $185 = (($$021) + 1)|0;
  25657. $exitcond = ($185|0)==($$0201$lcssa|0);
  25658. if ($exitcond) {
  25659. break;
  25660. } else {
  25661. $$021 = $185;
  25662. }
  25663. }
  25664. $175 = ((($156)) + 16|0);
  25665. $176 = HEAP32[$175>>2]|0;
  25666. _TraceLog(0,12478,$vararg_buffer1);
  25667. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25668. $$sroa$5$0$$sroa_idx15 = ((($0)) + 20|0);
  25669. HEAP32[$$sroa$5$0$$sroa_idx15>>2] = $176;
  25670. $$sroa$6$0$$sroa_idx17 = ((($0)) + 24|0);
  25671. HEAP32[$$sroa$6$0$$sroa_idx17>>2] = $$0201$lcssa;
  25672. $$sroa$9$0$$sroa_idx20 = ((($0)) + 28|0);
  25673. HEAP32[$$sroa$9$0$$sroa_idx20>>2] = $156;
  25674. STACKTOP = sp;return;
  25675. }
  25676. function _UnloadSpriteFont($0) {
  25677. $0 = $0|0;
  25678. var $$byval_copy = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  25679. sp = STACKTOP;
  25680. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  25681. $$byval_copy = sp + 40|0;
  25682. $vararg_buffer = sp;
  25683. $1 = sp + 8|0;
  25684. $2 = HEAP32[$0>>2]|0;
  25685. _GetDefaultFont($1);
  25686. $3 = HEAP32[$1>>2]|0;
  25687. $4 = ($2|0)==($3|0);
  25688. if ($4) {
  25689. STACKTOP = sp;return;
  25690. }
  25691. ;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;
  25692. _UnloadTexture($$byval_copy);
  25693. $5 = ((($0)) + 28|0);
  25694. $6 = HEAP32[$5>>2]|0;
  25695. _free($6);
  25696. _TraceLog(3,12896,$vararg_buffer);
  25697. STACKTOP = sp;return;
  25698. }
  25699. function _LoadTTF($0,$1,$2,$3,$4) {
  25700. $0 = $0|0;
  25701. $1 = $1|0;
  25702. $2 = $2|0;
  25703. $3 = $3|0;
  25704. $4 = $4|0;
  25705. var $$0124130 = 0, $$0125129 = 0, $$0128 = 0, $$byval_copy9 = 0, $$sroa$0 = 0, $$sroa$10$0$$sroa_idx58 = 0, $$sroa$10$0$$sroa_idx59 = 0, $$sroa$6$0$$sroa_idx49 = 0, $$sroa$6$0$$sroa_idx50 = 0, $$sroa$7$0$$sroa_idx53 = 0, $$sroa$7$0$$sroa_idx54 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0;
  25706. var $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
  25707. var $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0;
  25708. var $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0.0, $70 = 0, $71 = 0.0, $72 = 0, $73 = 0, $74 = 0, $75 = 0.0;
  25709. var $76 = 0, $77 = 0, $78 = 0, $79 = 0.0, $8 = 0.0, $80 = 0, $81 = 0, $82 = 0, $9 = 0.0, $exitcond = 0, $exp2 = 0.0, $vararg_buffer2 = 0, $vararg_buffer5 = 0, $vararg_buffer7 = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  25710. sp = STACKTOP;
  25711. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  25712. $$byval_copy9 = sp + 48|0;
  25713. $vararg_buffer7 = sp + 40|0;
  25714. $vararg_buffer5 = sp + 32|0;
  25715. $vararg_buffer2 = sp + 24|0;
  25716. $$sroa$0 = sp;
  25717. $5 = sp + 68|0;
  25718. $6 = sp + 88|0;
  25719. $7 = (+($2|0));
  25720. $8 = $7 * 3.0;
  25721. $9 = $8 * 0.25;
  25722. $10 = (+Math_ceil((+$9)));
  25723. $11 = (+($3|0));
  25724. $12 = (+Math_sqrt((+$11)));
  25725. $13 = (+Math_ceil((+$12)));
  25726. $14 = $10 * $13;
  25727. $15 = (+Math_log((+$14)));
  25728. $16 = $15 / 0.69314718246459961;
  25729. $17 = (+Math_ceil((+$16)));
  25730. $exp2 = (+_llvm_exp2_f32((+$17)));
  25731. $18 = (~~(($exp2)));
  25732. HEAP32[$$byval_copy9>>2] = $18;
  25733. $vararg_ptr1 = ((($$byval_copy9)) + 4|0);
  25734. HEAP32[$vararg_ptr1>>2] = $18;
  25735. _TraceLog(0,12981,$$byval_copy9);
  25736. $19 = (_malloc(16777216)|0);
  25737. $20 = Math_imul($18, $18)|0;
  25738. $21 = (_malloc($20)|0);
  25739. $22 = ($3*20)|0;
  25740. $23 = (_malloc($22)|0);
  25741. ;HEAP32[$$sroa$0>>2]=0|0;HEAP32[$$sroa$0+4>>2]=0|0;HEAP32[$$sroa$0+8>>2]=0|0;HEAP32[$$sroa$0+12>>2]=0|0;HEAP32[$$sroa$0+16>>2]=0|0;
  25742. $24 = (_fopen($1,13035)|0);
  25743. $25 = ($24|0)==(0|0);
  25744. if ($25) {
  25745. HEAP32[$vararg_buffer2>>2] = $1;
  25746. _TraceLog(2,13038,$vararg_buffer2);
  25747. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25748. $$sroa$6$0$$sroa_idx49 = ((($0)) + 20|0);
  25749. HEAP32[$$sroa$6$0$$sroa_idx49>>2] = 0;
  25750. $$sroa$7$0$$sroa_idx53 = ((($0)) + 24|0);
  25751. HEAP32[$$sroa$7$0$$sroa_idx53>>2] = 0;
  25752. $$sroa$10$0$$sroa_idx58 = ((($0)) + 28|0);
  25753. HEAP32[$$sroa$10$0$$sroa_idx58>>2] = 0;
  25754. STACKTOP = sp;return;
  25755. }
  25756. (_fread($19,1,16777216,$24)|0);
  25757. $26 = HEAP32[$4>>2]|0;
  25758. $27 = ($26|0)==(32);
  25759. if (!($27)) {
  25760. _TraceLog(2,13072,$vararg_buffer5);
  25761. }
  25762. $28 = HEAP32[$4>>2]|0;
  25763. $29 = (_stbtt_BakeFontBitmap($19,$7,$21,$18,$18,$28,$3,$23)|0);
  25764. $30 = ($29|0)<(0);
  25765. if ($30) {
  25766. _TraceLog(2,13139,$vararg_buffer7);
  25767. }
  25768. _free($19);
  25769. $31 = $20 << 1;
  25770. $32 = (_malloc($31)|0);
  25771. $33 = ($20|0)==(0);
  25772. if (!($33)) {
  25773. $$0124130 = 0;$$0125129 = 0;
  25774. while(1) {
  25775. $41 = (($32) + ($$0124130)|0);
  25776. HEAP8[$41>>0] = -1;
  25777. $42 = (($21) + ($$0125129)|0);
  25778. $43 = HEAP8[$42>>0]|0;
  25779. $44 = $$0124130 | 1;
  25780. $45 = (($32) + ($44)|0);
  25781. HEAP8[$45>>0] = $43;
  25782. $46 = (($$0125129) + 1)|0;
  25783. $47 = (($$0124130) + 2)|0;
  25784. $48 = ($46|0)<($20|0);
  25785. if ($48) {
  25786. $$0124130 = $47;$$0125129 = $46;
  25787. } else {
  25788. break;
  25789. }
  25790. }
  25791. }
  25792. _free($21);
  25793. $34 = ((($5)) + 4|0);
  25794. HEAP32[$34>>2] = $18;
  25795. $35 = ((($5)) + 8|0);
  25796. HEAP32[$35>>2] = $18;
  25797. $36 = ((($5)) + 12|0);
  25798. HEAP32[$36>>2] = 1;
  25799. $37 = ((($5)) + 16|0);
  25800. HEAP32[$37>>2] = 2;
  25801. HEAP32[$5>>2] = $32;
  25802. ;HEAP32[$$byval_copy9>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy9+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy9+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$byval_copy9+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$$byval_copy9+16>>2]=HEAP32[$5+16>>2]|0;
  25803. _LoadTextureFromImage($6,$$byval_copy9);
  25804. ;HEAP32[$$sroa$0>>2]=HEAP32[$6>>2]|0;HEAP32[$$sroa$0+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$sroa$0+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[$$sroa$0+12>>2]=HEAP32[$6+12>>2]|0;HEAP32[$$sroa$0+16>>2]=HEAP32[$6+16>>2]|0;
  25805. ;HEAP32[$$byval_copy9>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy9+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy9+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$byval_copy9+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$$byval_copy9+16>>2]=HEAP32[$5+16>>2]|0;
  25806. _UnloadImage($$byval_copy9);
  25807. $38 = $3 << 5;
  25808. $39 = (_malloc($38)|0);
  25809. $40 = ($3|0)>(0);
  25810. if ($40) {
  25811. $$0128 = 0;
  25812. while(1) {
  25813. $49 = (($4) + ($$0128<<2)|0);
  25814. $50 = HEAP32[$49>>2]|0;
  25815. $51 = (($39) + ($$0128<<5)|0);
  25816. HEAP32[$51>>2] = $50;
  25817. $52 = (($23) + (($$0128*20)|0)|0);
  25818. $53 = HEAP16[$52>>1]|0;
  25819. $54 = $53&65535;
  25820. $55 = (((($39) + ($$0128<<5)|0)) + 4|0);
  25821. HEAP32[$55>>2] = $54;
  25822. $56 = (((($23) + (($$0128*20)|0)|0)) + 2|0);
  25823. $57 = HEAP16[$56>>1]|0;
  25824. $58 = $57&65535;
  25825. $59 = (((($39) + ($$0128<<5)|0)) + 8|0);
  25826. HEAP32[$59>>2] = $58;
  25827. $60 = (((($23) + (($$0128*20)|0)|0)) + 4|0);
  25828. $61 = HEAP16[$60>>1]|0;
  25829. $62 = $61&65535;
  25830. $63 = (($62) - ($54))|0;
  25831. $64 = (((($39) + ($$0128<<5)|0)) + 12|0);
  25832. HEAP32[$64>>2] = $63;
  25833. $65 = (((($23) + (($$0128*20)|0)|0)) + 6|0);
  25834. $66 = HEAP16[$65>>1]|0;
  25835. $67 = $66&65535;
  25836. $68 = (($67) - ($58))|0;
  25837. $69 = (((($39) + ($$0128<<5)|0)) + 16|0);
  25838. HEAP32[$69>>2] = $68;
  25839. $70 = (((($23) + (($$0128*20)|0)|0)) + 8|0);
  25840. $71 = +HEAPF32[$70>>2];
  25841. $72 = (~~(($71)));
  25842. $73 = (((($39) + ($$0128<<5)|0)) + 20|0);
  25843. HEAP32[$73>>2] = $72;
  25844. $74 = (((($23) + (($$0128*20)|0)|0)) + 12|0);
  25845. $75 = +HEAPF32[$74>>2];
  25846. $76 = (~~(($75)));
  25847. $77 = (((($39) + ($$0128<<5)|0)) + 24|0);
  25848. HEAP32[$77>>2] = $76;
  25849. $78 = (((($23) + (($$0128*20)|0)|0)) + 16|0);
  25850. $79 = +HEAPF32[$78>>2];
  25851. $80 = (~~(($79)));
  25852. $81 = (((($39) + ($$0128<<5)|0)) + 28|0);
  25853. HEAP32[$81>>2] = $80;
  25854. $82 = (($$0128) + 1)|0;
  25855. $exitcond = ($82|0)==($3|0);
  25856. if ($exitcond) {
  25857. break;
  25858. } else {
  25859. $$0128 = $82;
  25860. }
  25861. }
  25862. }
  25863. _free($23);
  25864. ;HEAP32[$0>>2]=HEAP32[$$sroa$0>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$sroa$0+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$sroa$0+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$sroa$0+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$sroa$0+16>>2]|0;
  25865. $$sroa$6$0$$sroa_idx50 = ((($0)) + 20|0);
  25866. HEAP32[$$sroa$6$0$$sroa_idx50>>2] = $2;
  25867. $$sroa$7$0$$sroa_idx54 = ((($0)) + 24|0);
  25868. HEAP32[$$sroa$7$0$$sroa_idx54>>2] = $3;
  25869. $$sroa$10$0$$sroa_idx59 = ((($0)) + 28|0);
  25870. HEAP32[$$sroa$10$0$$sroa_idx59>>2] = $39;
  25871. STACKTOP = sp;return;
  25872. }
  25873. function _stbtt_BakeFontBitmap($0,$1,$2,$3,$4,$5,$6,$7) {
  25874. $0 = $0|0;
  25875. $1 = +$1;
  25876. $2 = $2|0;
  25877. $3 = $3|0;
  25878. $4 = $4|0;
  25879. $5 = $5|0;
  25880. $6 = $6|0;
  25881. $7 = $7|0;
  25882. var $8 = 0, label = 0, sp = 0;
  25883. sp = STACKTOP;
  25884. $8 = (_stbtt_BakeFontBitmap_internal($0,$1,$2,$3,$4,$5,$6,$7)|0);
  25885. return ($8|0);
  25886. }
  25887. function _stbtt_BakeFontBitmap_internal($0,$1,$2,$3,$4,$5,$6,$7) {
  25888. $0 = $0|0;
  25889. $1 = +$1;
  25890. $2 = $2|0;
  25891. $3 = $3|0;
  25892. $4 = $4|0;
  25893. $5 = $5|0;
  25894. $6 = $6|0;
  25895. $7 = $7|0;
  25896. var $$05 = 0, $$084$ = 0, $$0844 = 0, $$087$$091 = 0, $$0873 = 0, $$089 = 0, $$0902 = 0, $$091$ = 0, $$0911 = 0, $$1 = 0, $$2 = 0, $$286 = 0, $$293 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
  25897. var $17 = 0, $18 = 0.0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0;
  25898. var $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0, $54 = 0, $55 = 0.0, $56 = 0;
  25899. var $57 = 0, $58 = 0.0, $59 = 0, $60 = 0, $61 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  25900. sp = STACKTOP;
  25901. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  25902. $8 = sp + 24|0;
  25903. $9 = sp + 20|0;
  25904. $10 = sp + 16|0;
  25905. $11 = sp + 12|0;
  25906. $12 = sp + 8|0;
  25907. $13 = sp + 4|0;
  25908. $14 = sp;
  25909. HEAP32[$8>>2] = 0;
  25910. $15 = (_stbtt_InitFont($8,$0)|0);
  25911. $16 = ($15|0)==(0);
  25912. if ($16) {
  25913. $$2 = -1;
  25914. STACKTOP = sp;return ($$2|0);
  25915. }
  25916. $17 = Math_imul($4, $3)|0;
  25917. _memset(($2|0),0,($17|0))|0;
  25918. $18 = (+_stbtt_ScaleForPixelHeight($8,$1));
  25919. $19 = ($6|0)>(0);
  25920. if (!($19)) {
  25921. $$2 = 1;
  25922. STACKTOP = sp;return ($$2|0);
  25923. }
  25924. $$05 = 0;$$0844 = 1;$$0873 = 1;$$0902 = 0;$$0911 = 1;
  25925. while(1) {
  25926. $22 = (($$0902) + ($5))|0;
  25927. $23 = (_stbtt_FindGlyphIndex($8,$22)|0);
  25928. _stbtt_GetGlyphHMetrics($8,$23,$9,$10);
  25929. _stbtt_GetGlyphBitmapBox($8,$23,$18,$18,$11,$12,$13,$14);
  25930. $24 = HEAP32[$13>>2]|0;
  25931. $25 = HEAP32[$11>>2]|0;
  25932. $26 = (($24) - ($25))|0;
  25933. $27 = HEAP32[$14>>2]|0;
  25934. $28 = HEAP32[$12>>2]|0;
  25935. $29 = (($27) - ($28))|0;
  25936. $30 = (($$0844) + 1)|0;
  25937. $31 = (($30) + ($26))|0;
  25938. $32 = ($31|0)<($3|0);
  25939. $$087$$091 = $32 ? $$0873 : $$0911;
  25940. $$084$ = $32 ? $$0844 : 1;
  25941. $33 = (($$087$$091) + ($29))|0;
  25942. $34 = (($33) + 1)|0;
  25943. $35 = ($34|0)<($4|0);
  25944. if ($35) {
  25945. $37 = (($$084$) + ($26))|0;
  25946. $38 = ($37|0)<($3|0);
  25947. if (!($38)) {
  25948. label = 8;
  25949. break;
  25950. }
  25951. $39 = (($2) + ($$084$)|0);
  25952. $40 = Math_imul($$087$$091, $3)|0;
  25953. $41 = (($39) + ($40)|0);
  25954. _stbtt_MakeGlyphBitmap($8,$41,$26,$29,$3,$18,$18,$23);
  25955. $42 = $$084$&65535;
  25956. $43 = (($7) + (($$0902*20)|0)|0);
  25957. HEAP16[$43>>1] = $42;
  25958. $44 = $$087$$091&65535;
  25959. $45 = (((($7) + (($$0902*20)|0)|0)) + 2|0);
  25960. HEAP16[$45>>1] = $44;
  25961. $46 = $37&65535;
  25962. $47 = (((($7) + (($$0902*20)|0)|0)) + 4|0);
  25963. HEAP16[$47>>1] = $46;
  25964. $48 = $33&65535;
  25965. $49 = (((($7) + (($$0902*20)|0)|0)) + 6|0);
  25966. HEAP16[$49>>1] = $48;
  25967. $50 = HEAP32[$9>>2]|0;
  25968. $51 = (+($50|0));
  25969. $52 = $18 * $51;
  25970. $53 = (((($7) + (($$0902*20)|0)|0)) + 16|0);
  25971. HEAPF32[$53>>2] = $52;
  25972. $54 = HEAP32[$11>>2]|0;
  25973. $55 = (+($54|0));
  25974. $56 = (((($7) + (($$0902*20)|0)|0)) + 8|0);
  25975. HEAPF32[$56>>2] = $55;
  25976. $57 = HEAP32[$12>>2]|0;
  25977. $58 = (+($57|0));
  25978. $59 = (((($7) + (($$0902*20)|0)|0)) + 12|0);
  25979. HEAPF32[$59>>2] = $58;
  25980. $60 = (($37) + 1)|0;
  25981. $61 = ($33|0)<($$0911|0);
  25982. $$091$ = $61 ? $$0911 : $34;
  25983. $$089 = 1;$$1 = $$05;$$286 = $60;$$293 = $$091$;
  25984. } else {
  25985. $36 = (0 - ($$0902))|0;
  25986. $$089 = 0;$$1 = $36;$$286 = $$084$;$$293 = $$0911;
  25987. }
  25988. $21 = (($$0902) + 1)|0;
  25989. if (!($$089)) {
  25990. $$2 = $$1;
  25991. label = 11;
  25992. break;
  25993. }
  25994. $20 = ($21|0)<($6|0);
  25995. if ($20) {
  25996. $$05 = $$1;$$0844 = $$286;$$0873 = $$087$$091;$$0902 = $21;$$0911 = $$293;
  25997. } else {
  25998. $$2 = $$293;
  25999. label = 11;
  26000. break;
  26001. }
  26002. }
  26003. if ((label|0) == 8) {
  26004. ___assert_fail((13202|0),(13212|0),3274,(13238|0));
  26005. // unreachable;
  26006. }
  26007. else if ((label|0) == 11) {
  26008. STACKTOP = sp;return ($$2|0);
  26009. }
  26010. return (0)|0;
  26011. }
  26012. function _stbtt_InitFont($0,$1) {
  26013. $0 = $0|0;
  26014. $1 = $1|0;
  26015. var $2 = 0, label = 0, sp = 0;
  26016. sp = STACKTOP;
  26017. $2 = (_stbtt_InitFont_internal($0,$1)|0);
  26018. return ($2|0);
  26019. }
  26020. function _stbtt_ScaleForPixelHeight($0,$1) {
  26021. $0 = $0|0;
  26022. $1 = +$1;
  26023. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26024. sp = STACKTOP;
  26025. $2 = ((($0)) + 4|0);
  26026. $3 = HEAP32[$2>>2]|0;
  26027. $4 = ((($0)) + 28|0);
  26028. $5 = HEAP32[$4>>2]|0;
  26029. $6 = (($3) + ($5)|0);
  26030. $7 = ((($6)) + 4|0);
  26031. $8 = (_ttSHORT($7)|0);
  26032. $9 = $8 << 16 >> 16;
  26033. $10 = ((($6)) + 6|0);
  26034. $11 = (_ttSHORT($10)|0);
  26035. $12 = $11 << 16 >> 16;
  26036. $13 = (($9) - ($12))|0;
  26037. $14 = (+($13|0));
  26038. $15 = $1 / $14;
  26039. return (+$15);
  26040. }
  26041. function _stbtt_FindGlyphIndex($0,$1) {
  26042. $0 = $0|0;
  26043. $1 = $1|0;
  26044. var $$ = 0, $$$1172 = 0, $$0163180 = 0, $$0164179 = 0, $$0165 = 0, $$0165$ph = 0, $$0168$ph = 0, $$1172$lcssa = 0, $$1172178 = 0, $$2 = 0, $$2$shrunk = 0, $$5 = 0, $$8 = 0, $$neg = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0;
  26045. var $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0;
  26046. var $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  26047. 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;
  26048. 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;
  26049. 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;
  26050. 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;
  26051. var $switch = 0, label = 0, sp = 0;
  26052. sp = STACKTOP;
  26053. $2 = ((($0)) + 4|0);
  26054. $3 = HEAP32[$2>>2]|0;
  26055. $4 = ((($0)) + 40|0);
  26056. $5 = HEAP32[$4>>2]|0;
  26057. $6 = (($3) + ($5)|0);
  26058. $7 = (_ttUSHORT($6)|0);
  26059. switch ($7<<16>>16) {
  26060. case 0: {
  26061. $8 = ((($6)) + 2|0);
  26062. $9 = (_ttUSHORT($8)|0);
  26063. $10 = $9&65535;
  26064. $11 = (($10) + -6)|0;
  26065. $12 = ($11|0)>($1|0);
  26066. if (!($12)) {
  26067. $$8 = 0;
  26068. return ($$8|0);
  26069. }
  26070. $13 = ((($6)) + 6|0);
  26071. $14 = (($13) + ($1)|0);
  26072. $15 = HEAP8[$14>>0]|0;
  26073. $16 = $15&255;
  26074. $$8 = $16;
  26075. return ($$8|0);
  26076. break;
  26077. }
  26078. case 6: {
  26079. $17 = ((($6)) + 6|0);
  26080. $18 = (_ttUSHORT($17)|0);
  26081. $19 = $18&65535;
  26082. $20 = ($19>>>0)>($1>>>0);
  26083. if ($20) {
  26084. $$8 = 0;
  26085. return ($$8|0);
  26086. }
  26087. $21 = ((($6)) + 8|0);
  26088. $22 = (_ttUSHORT($21)|0);
  26089. $23 = $22&65535;
  26090. $24 = (($23) + ($19))|0;
  26091. $25 = ($24>>>0)>($1>>>0);
  26092. if (!($25)) {
  26093. $$8 = 0;
  26094. return ($$8|0);
  26095. }
  26096. $26 = ((($6)) + 10|0);
  26097. $27 = (($1) - ($19))|0;
  26098. $28 = $27 << 1;
  26099. $29 = (($26) + ($28)|0);
  26100. $30 = (_ttUSHORT($29)|0);
  26101. $31 = $30&65535;
  26102. $$8 = $31;
  26103. return ($$8|0);
  26104. break;
  26105. }
  26106. case 2: {
  26107. ___assert_fail((13672|0),(13212|0),1347,(14014|0));
  26108. // unreachable;
  26109. break;
  26110. }
  26111. case 4: {
  26112. $32 = ((($6)) + 6|0);
  26113. $33 = (_ttUSHORT($32)|0);
  26114. $34 = ($33&65535) >>> 1;
  26115. $35 = ($1|0)>(65535);
  26116. if ($35) {
  26117. $$8 = 0;
  26118. return ($$8|0);
  26119. }
  26120. $36 = (($5) + 14)|0;
  26121. $37 = ((($6)) + 12|0);
  26122. $38 = (_ttUSHORT($37)|0);
  26123. $39 = ((($6)) + 10|0);
  26124. $40 = (_ttUSHORT($39)|0);
  26125. $41 = $38 & -2;
  26126. $42 = (($3) + ($36)|0);
  26127. $43 = $41&65535;
  26128. $44 = (($42) + ($43)|0);
  26129. $45 = (_ttUSHORT($44)|0);
  26130. $46 = $45&65535;
  26131. $47 = ($46|0)>($1|0);
  26132. $48 = $47 ? 0 : $43;
  26133. $$ = (($5) + 12)|0;
  26134. $49 = (($$) + ($48))|0;
  26135. $50 = ($40<<16>>16)==(0);
  26136. if ($50) {
  26137. $$1172$lcssa = $49;
  26138. } else {
  26139. $51 = ((($6)) + 8|0);
  26140. $52 = (_ttUSHORT($51)|0);
  26141. $53 = ($52&65535) >>> 1;
  26142. $$0163180 = $53;$$0164179 = $40;$$1172178 = $49;
  26143. while(1) {
  26144. $54 = ($$0163180&65535) >>> 1;
  26145. $55 = (($3) + ($$1172178)|0);
  26146. $56 = ($54 << 1)&65535;
  26147. $57 = $56&65535;
  26148. $58 = (($55) + ($57)|0);
  26149. $59 = (_ttUSHORT($58)|0);
  26150. $60 = $59&65535;
  26151. $61 = ($60|0)<($1|0);
  26152. $62 = $61 ? $57 : 0;
  26153. $$$1172 = (($62) + ($$1172178))|0;
  26154. $63 = (($$0164179) + -1)<<16>>16;
  26155. $64 = ($63<<16>>16)==(0);
  26156. if ($64) {
  26157. $$1172$lcssa = $$$1172;
  26158. break;
  26159. } else {
  26160. $$0163180 = $54;$$0164179 = $63;$$1172178 = $$$1172;
  26161. }
  26162. }
  26163. }
  26164. $$neg = (-14 - ($5))|0;
  26165. $65 = (($$neg) + 2)|0;
  26166. $66 = (($65) + ($$1172$lcssa))|0;
  26167. $67 = $66 & 131070;
  26168. $68 = (($42) + ($67)|0);
  26169. $69 = (_ttUSHORT($68)|0);
  26170. $70 = $69&65535;
  26171. $71 = ($70|0)<($1|0);
  26172. if ($71) {
  26173. ___assert_fail((14035|0),(13212|0),1383,(14014|0));
  26174. // unreachable;
  26175. }
  26176. $72 = ((($6)) + 14|0);
  26177. $73 = $34&65535;
  26178. $74 = ($34 << 1)&65535;
  26179. $75 = $74&65535;
  26180. $76 = (($72) + ($75)|0);
  26181. $77 = ((($76)) + 2|0);
  26182. $78 = (($77) + ($67)|0);
  26183. $79 = (_ttUSHORT($78)|0);
  26184. $80 = $79&65535;
  26185. $81 = ($80|0)>($1|0);
  26186. do {
  26187. if ($81) {
  26188. $$2$shrunk = 0;
  26189. } else {
  26190. $82 = ($73*6)|0;
  26191. $83 = (($72) + ($82)|0);
  26192. $84 = ((($83)) + 2|0);
  26193. $85 = (($84) + ($67)|0);
  26194. $86 = (_ttUSHORT($85)|0);
  26195. $87 = ($86<<16>>16)==(0);
  26196. if ($87) {
  26197. $88 = $73 << 2;
  26198. $89 = (($72) + ($88)|0);
  26199. $90 = ((($89)) + 2|0);
  26200. $91 = (($90) + ($67)|0);
  26201. $92 = (_ttSHORT($91)|0);
  26202. $93 = $92&65535;
  26203. $94 = (($93) + ($1))|0;
  26204. $95 = $94&65535;
  26205. $$2$shrunk = $95;
  26206. break;
  26207. } else {
  26208. $96 = $86&65535;
  26209. $97 = (($3) + ($96)|0);
  26210. $98 = (($1) - ($80))|0;
  26211. $99 = $98 << 1;
  26212. $100 = (($97) + ($99)|0);
  26213. $101 = (($100) + ($5)|0);
  26214. $102 = ((($101)) + 14|0);
  26215. $103 = (($102) + ($82)|0);
  26216. $104 = ((($103)) + 2|0);
  26217. $105 = (($104) + ($67)|0);
  26218. $106 = (_ttUSHORT($105)|0);
  26219. $$2$shrunk = $106;
  26220. break;
  26221. }
  26222. }
  26223. } while(0);
  26224. $$2 = $$2$shrunk&65535;
  26225. $$8 = $$2;
  26226. return ($$8|0);
  26227. break;
  26228. }
  26229. default: {
  26230. $107 = ($7<<16>>16)==(12);
  26231. $108 = $7 & -2;
  26232. $switch = ($108<<16>>16)==(12);
  26233. if (!($switch)) {
  26234. ___assert_fail((13672|0),(13212|0),1418,(14014|0));
  26235. // unreachable;
  26236. }
  26237. $109 = ((($6)) + 12|0);
  26238. $110 = (_ttULONG($109)|0);
  26239. $111 = ((($6)) + 16|0);
  26240. $$0165$ph = $110;$$0168$ph = 0;
  26241. L6: while(1) {
  26242. $$0165 = $$0165$ph;
  26243. while(1) {
  26244. $112 = ($$0165|0)>($$0168$ph|0);
  26245. if (!($112)) {
  26246. $$8 = 0;
  26247. label = 27;
  26248. break L6;
  26249. }
  26250. $113 = (($$0165) - ($$0168$ph))|0;
  26251. $114 = $113 >> 1;
  26252. $115 = (($114) + ($$0168$ph))|0;
  26253. $116 = ($115*12)|0;
  26254. $117 = (($111) + ($116)|0);
  26255. $118 = (_ttULONG($117)|0);
  26256. $119 = ($118>>>0)>($1>>>0);
  26257. if ($119) {
  26258. $$0165 = $115;
  26259. } else {
  26260. break;
  26261. }
  26262. }
  26263. $120 = ((($117)) + 4|0);
  26264. $121 = (_ttULONG($120)|0);
  26265. $122 = ($121>>>0)<($1>>>0);
  26266. $123 = (($115) + 1)|0;
  26267. if ($122) {
  26268. $$0165$ph = $$0165;$$0168$ph = $123;
  26269. } else {
  26270. break;
  26271. }
  26272. }
  26273. if ((label|0) == 27) {
  26274. return ($$8|0);
  26275. }
  26276. $124 = ((($117)) + 8|0);
  26277. $125 = (_ttULONG($124)|0);
  26278. $126 = (($1) - ($118))|0;
  26279. $127 = $107 ? $126 : 0;
  26280. $$5 = (($125) + ($127))|0;
  26281. $$8 = $$5;
  26282. return ($$8|0);
  26283. }
  26284. }
  26285. return (0)|0;
  26286. }
  26287. function _stbtt_GetGlyphHMetrics($0,$1,$2,$3) {
  26288. $0 = $0|0;
  26289. $1 = $1|0;
  26290. $2 = $2|0;
  26291. $3 = $3|0;
  26292. 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;
  26293. 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;
  26294. var $49 = 0, $5 = 0, $50 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26295. sp = STACKTOP;
  26296. $4 = ((($0)) + 4|0);
  26297. $5 = HEAP32[$4>>2]|0;
  26298. $6 = ((($0)) + 28|0);
  26299. $7 = HEAP32[$6>>2]|0;
  26300. $8 = (($5) + ($7)|0);
  26301. $9 = ((($8)) + 34|0);
  26302. $10 = (_ttUSHORT($9)|0);
  26303. $11 = $10&65535;
  26304. $12 = ($11|0)>($1|0);
  26305. $13 = ($2|0)!=(0|0);
  26306. if ($12) {
  26307. if ($13) {
  26308. $14 = ((($0)) + 32|0);
  26309. $15 = HEAP32[$14>>2]|0;
  26310. $16 = (($5) + ($15)|0);
  26311. $17 = $1 << 2;
  26312. $18 = (($16) + ($17)|0);
  26313. $19 = (_ttSHORT($18)|0);
  26314. $20 = $19 << 16 >> 16;
  26315. HEAP32[$2>>2] = $20;
  26316. }
  26317. $21 = ($3|0)==(0|0);
  26318. if ($21) {
  26319. return;
  26320. }
  26321. $22 = HEAP32[$4>>2]|0;
  26322. $23 = ((($0)) + 32|0);
  26323. $24 = HEAP32[$23>>2]|0;
  26324. $25 = (($22) + ($24)|0);
  26325. $26 = $1 << 2;
  26326. $27 = (($25) + ($26)|0);
  26327. $28 = ((($27)) + 2|0);
  26328. $29 = (_ttSHORT($28)|0);
  26329. $30 = $29 << 16 >> 16;
  26330. HEAP32[$3>>2] = $30;
  26331. return;
  26332. } else {
  26333. if ($13) {
  26334. $31 = ((($0)) + 32|0);
  26335. $32 = HEAP32[$31>>2]|0;
  26336. $33 = (($5) + ($32)|0);
  26337. $34 = $11 << 2;
  26338. $35 = (($34) + -4)|0;
  26339. $36 = (($33) + ($35)|0);
  26340. $37 = (_ttSHORT($36)|0);
  26341. $38 = $37 << 16 >> 16;
  26342. HEAP32[$2>>2] = $38;
  26343. }
  26344. $39 = ($3|0)==(0|0);
  26345. if ($39) {
  26346. return;
  26347. }
  26348. $40 = HEAP32[$4>>2]|0;
  26349. $41 = ((($0)) + 32|0);
  26350. $42 = HEAP32[$41>>2]|0;
  26351. $43 = (($40) + ($42)|0);
  26352. $44 = $11 << 2;
  26353. $45 = (($43) + ($44)|0);
  26354. $46 = (($1) - ($11))|0;
  26355. $47 = $46 << 1;
  26356. $48 = (($45) + ($47)|0);
  26357. $49 = (_ttSHORT($48)|0);
  26358. $50 = $49 << 16 >> 16;
  26359. HEAP32[$3>>2] = $50;
  26360. return;
  26361. }
  26362. }
  26363. function _stbtt_GetGlyphBitmapBox($0,$1,$2,$3,$4,$5,$6,$7) {
  26364. $0 = $0|0;
  26365. $1 = $1|0;
  26366. $2 = +$2;
  26367. $3 = +$3;
  26368. $4 = $4|0;
  26369. $5 = $5|0;
  26370. $6 = $6|0;
  26371. $7 = $7|0;
  26372. var label = 0, sp = 0;
  26373. sp = STACKTOP;
  26374. _stbtt_GetGlyphBitmapBoxSubpixel($0,$1,$2,$3,$4,$5,$6,$7);
  26375. return;
  26376. }
  26377. function _stbtt_MakeGlyphBitmap($0,$1,$2,$3,$4,$5,$6,$7) {
  26378. $0 = $0|0;
  26379. $1 = $1|0;
  26380. $2 = $2|0;
  26381. $3 = $3|0;
  26382. $4 = $4|0;
  26383. $5 = +$5;
  26384. $6 = +$6;
  26385. $7 = $7|0;
  26386. var label = 0, sp = 0;
  26387. sp = STACKTOP;
  26388. _stbtt_MakeGlyphBitmapSubpixel($0,$1,$2,$3,$4,$5,$6,$7);
  26389. return;
  26390. }
  26391. function _stbtt_MakeGlyphBitmapSubpixel($0,$1,$2,$3,$4,$5,$6,$7) {
  26392. $0 = $0|0;
  26393. $1 = $1|0;
  26394. $2 = $2|0;
  26395. $3 = $3|0;
  26396. $4 = $4|0;
  26397. $5 = +$5;
  26398. $6 = +$6;
  26399. $7 = $7|0;
  26400. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  26401. sp = STACKTOP;
  26402. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  26403. $8 = sp + 24|0;
  26404. $9 = sp + 20|0;
  26405. $10 = sp + 16|0;
  26406. $11 = sp;
  26407. $12 = (_stbtt_GetGlyphShape($0,$7,$10)|0);
  26408. _stbtt_GetGlyphBitmapBoxSubpixel($0,$7,$5,$6,$8,$9,0,0);
  26409. $13 = ((($11)) + 12|0);
  26410. HEAP32[$13>>2] = $1;
  26411. HEAP32[$11>>2] = $2;
  26412. $14 = ((($11)) + 4|0);
  26413. HEAP32[$14>>2] = $3;
  26414. $15 = ((($11)) + 8|0);
  26415. HEAP32[$15>>2] = $4;
  26416. $16 = ($2|0)==(0);
  26417. $17 = ($3|0)==(0);
  26418. $or$cond = $16 | $17;
  26419. if ($or$cond) {
  26420. $21 = HEAP32[$10>>2]|0;
  26421. _free($21);
  26422. STACKTOP = sp;return;
  26423. }
  26424. $18 = HEAP32[$10>>2]|0;
  26425. $19 = HEAP32[$8>>2]|0;
  26426. $20 = HEAP32[$9>>2]|0;
  26427. _stbtt_Rasterize($11,$18,$12,$5,$6,$19,$20);
  26428. $21 = HEAP32[$10>>2]|0;
  26429. _free($21);
  26430. STACKTOP = sp;return;
  26431. }
  26432. function _stbtt_GetGlyphShape($0,$1,$2) {
  26433. $0 = $0|0;
  26434. $1 = $1|0;
  26435. $2 = $2|0;
  26436. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  26437. sp = STACKTOP;
  26438. $3 = ((($0)) + 56|0);
  26439. $4 = HEAP32[$3>>2]|0;
  26440. $5 = ($4|0)==(0);
  26441. if ($5) {
  26442. $6 = (_stbtt__GetGlyphShapeTT($0,$1,$2)|0);
  26443. $$0 = $6;
  26444. return ($$0|0);
  26445. } else {
  26446. $7 = (_stbtt__GetGlyphShapeT2($0,$1,$2)|0);
  26447. $$0 = $7;
  26448. return ($$0|0);
  26449. }
  26450. return (0)|0;
  26451. }
  26452. function _stbtt_GetGlyphBitmapBoxSubpixel($0,$1,$2,$3,$4,$5,$6,$7) {
  26453. $0 = $0|0;
  26454. $1 = $1|0;
  26455. $2 = +$2;
  26456. $3 = +$3;
  26457. $4 = $4|0;
  26458. $5 = $5|0;
  26459. $6 = $6|0;
  26460. $7 = $7|0;
  26461. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0;
  26462. var $30 = 0, $31 = 0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0.0, $40 = 0.0, $41 = 0.0, $42 = 0, $8 = 0, $9 = 0, $ceilf = 0.0, $ceilf1 = 0.0, $floorf = 0.0, $floorf2 = 0.0, label = 0;
  26463. var sp = 0;
  26464. sp = STACKTOP;
  26465. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26466. $8 = sp + 12|0;
  26467. $9 = sp + 8|0;
  26468. $10 = sp + 4|0;
  26469. $11 = sp;
  26470. HEAP32[$8>>2] = 0;
  26471. HEAP32[$9>>2] = 0;
  26472. $12 = (_stbtt_GetGlyphBox($0,$1,$8,$9,$10,$11)|0);
  26473. $13 = ($12|0)==(0);
  26474. $14 = ($4|0)!=(0|0);
  26475. if ($13) {
  26476. if ($14) {
  26477. HEAP32[$4>>2] = 0;
  26478. }
  26479. $15 = ($5|0)==(0|0);
  26480. if (!($15)) {
  26481. HEAP32[$5>>2] = 0;
  26482. }
  26483. $16 = ($6|0)==(0|0);
  26484. if (!($16)) {
  26485. HEAP32[$6>>2] = 0;
  26486. }
  26487. $17 = ($7|0)==(0|0);
  26488. if ($17) {
  26489. STACKTOP = sp;return;
  26490. }
  26491. HEAP32[$7>>2] = 0;
  26492. STACKTOP = sp;return;
  26493. } else {
  26494. if ($14) {
  26495. $18 = HEAP32[$8>>2]|0;
  26496. $19 = (+($18|0));
  26497. $20 = $19 * $2;
  26498. $21 = $20 + 0.0;
  26499. $floorf2 = (+Math_floor((+$21)));
  26500. $22 = (~~(($floorf2)));
  26501. HEAP32[$4>>2] = $22;
  26502. }
  26503. $23 = ($5|0)==(0|0);
  26504. if (!($23)) {
  26505. $24 = HEAP32[$11>>2]|0;
  26506. $25 = (0 - ($24))|0;
  26507. $26 = (+($25|0));
  26508. $27 = $26 * $3;
  26509. $28 = $27 + 0.0;
  26510. $floorf = (+Math_floor((+$28)));
  26511. $29 = (~~(($floorf)));
  26512. HEAP32[$5>>2] = $29;
  26513. }
  26514. $30 = ($6|0)==(0|0);
  26515. if (!($30)) {
  26516. $31 = HEAP32[$10>>2]|0;
  26517. $32 = (+($31|0));
  26518. $33 = $32 * $2;
  26519. $34 = $33 + 0.0;
  26520. $ceilf1 = (+Math_ceil((+$34)));
  26521. $35 = (~~(($ceilf1)));
  26522. HEAP32[$6>>2] = $35;
  26523. }
  26524. $36 = ($7|0)==(0|0);
  26525. if ($36) {
  26526. STACKTOP = sp;return;
  26527. }
  26528. $37 = HEAP32[$9>>2]|0;
  26529. $38 = (0 - ($37))|0;
  26530. $39 = (+($38|0));
  26531. $40 = $39 * $3;
  26532. $41 = $40 + 0.0;
  26533. $ceilf = (+Math_ceil((+$41)));
  26534. $42 = (~~(($ceilf)));
  26535. HEAP32[$7>>2] = $42;
  26536. STACKTOP = sp;return;
  26537. }
  26538. }
  26539. function _stbtt_Rasterize($0,$1,$2,$3,$4,$5,$6) {
  26540. $0 = $0|0;
  26541. $1 = $1|0;
  26542. $2 = $2|0;
  26543. $3 = +$3;
  26544. $4 = +$4;
  26545. $5 = $5|0;
  26546. $6 = $6|0;
  26547. var $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26548. sp = STACKTOP;
  26549. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26550. $7 = sp + 4|0;
  26551. $8 = sp;
  26552. $9 = $3 > $4;
  26553. $10 = $9 ? $4 : $3;
  26554. $11 = 0.34999999403953552 / $10;
  26555. $12 = (_stbtt_FlattenCurves($1,$2,$11,$8,$7)|0);
  26556. $13 = ($12|0)==(0|0);
  26557. if ($13) {
  26558. STACKTOP = sp;return;
  26559. }
  26560. $14 = HEAP32[$8>>2]|0;
  26561. $15 = HEAP32[$7>>2]|0;
  26562. _stbtt__rasterize($0,$12,$14,$15,$3,$4,$5,$6);
  26563. _free($14);
  26564. _free($12);
  26565. STACKTOP = sp;return;
  26566. }
  26567. function _stbtt_FlattenCurves($0,$1,$2,$3,$4) {
  26568. $0 = $0|0;
  26569. $1 = $1|0;
  26570. $2 = +$2;
  26571. $3 = $3|0;
  26572. $4 = $4|0;
  26573. var $$$0113 = 0, $$010 = 0.0, $$01079 = 0.0, $$011014 = 0, $$011113 = 0, $$011316 = 0, $$011715 = 0, $$0119 = 0, $$012012 = 0, $$1 = 0.0, $$1108 = 0.0, $$1112$lcssa = 0, $$11128 = 0, $$11185 = 0, $$1121 = 0, $$2 = 0, $$2115$lcssa = 0, $$21157 = 0, $$3116 = 0, $10 = 0;
  26574. var $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0;
  26575. var $31 = 0, $32 = 0, $33 = 0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0.0, $38 = 0, $39 = 0, $40 = 0.0, $41 = 0, $42 = 0, $43 = 0.0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0.0, $49 = 0, $5 = 0;
  26576. var $50 = 0, $51 = 0.0, $52 = 0, $53 = 0.0, $54 = 0, $55 = 0, $56 = 0.0, $57 = 0, $58 = 0.0, $59 = 0, $6 = 0.0, $60 = 0.0, $61 = 0, $62 = 0, $63 = 0.0, $64 = 0, $65 = 0, $66 = 0.0, $67 = 0, $68 = 0;
  26577. var $69 = 0.0, $7 = 0, $70 = 0, $71 = 0, $72 = 0.0, $73 = 0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0.0, $78 = 0, $79 = 0.0, $8 = 0, $80 = 0, $81 = 0.0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0;
  26578. var $87 = 0, $88 = 0, $89 = 0, $9 = 0, $exitcond = 0, $exitcond21 = 0, label = 0, sp = 0;
  26579. sp = STACKTOP;
  26580. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26581. $5 = sp;
  26582. HEAP32[$5>>2] = 0;
  26583. $6 = $2 * $2;
  26584. $7 = ($1|0)>(0);
  26585. if ($7) {
  26586. $$011316 = 0;$$011715 = 0;
  26587. } else {
  26588. HEAP32[$4>>2] = 0;
  26589. $$0119 = 0;
  26590. STACKTOP = sp;return ($$0119|0);
  26591. }
  26592. while(1) {
  26593. $8 = (((($0) + (($$011715*14)|0)|0)) + 12|0);
  26594. $9 = HEAP8[$8>>0]|0;
  26595. $10 = ($9<<24>>24)==(1);
  26596. $11 = $10&1;
  26597. $$$0113 = (($11) + ($$011316))|0;
  26598. $12 = (($$011715) + 1)|0;
  26599. $exitcond21 = ($12|0)==($1|0);
  26600. if ($exitcond21) {
  26601. break;
  26602. } else {
  26603. $$011316 = $$$0113;$$011715 = $12;
  26604. }
  26605. }
  26606. HEAP32[$4>>2] = $$$0113;
  26607. $13 = ($$$0113|0)==(0);
  26608. if ($13) {
  26609. $$0119 = 0;
  26610. STACKTOP = sp;return ($$0119|0);
  26611. }
  26612. $14 = $$$0113 << 2;
  26613. $15 = (_malloc($14)|0);
  26614. HEAP32[$3>>2] = $15;
  26615. $16 = ($15|0)==(0|0);
  26616. if ($16) {
  26617. HEAP32[$4>>2] = 0;
  26618. $$0119 = 0;
  26619. STACKTOP = sp;return ($$0119|0);
  26620. }
  26621. $17 = ($1|0)>(0);
  26622. $$011014 = 0;$$011113 = 0;$$012012 = 0;
  26623. while(1) {
  26624. $18 = ($$011014|0)==(1);
  26625. if ($18) {
  26626. $19 = HEAP32[$5>>2]|0;
  26627. $20 = $19 << 3;
  26628. $21 = (_malloc($20)|0);
  26629. $22 = ($21|0)==(0|0);
  26630. if ($22) {
  26631. break;
  26632. } else {
  26633. $$1121 = $21;
  26634. }
  26635. } else {
  26636. $$1121 = $$012012;
  26637. }
  26638. HEAP32[$5>>2] = 0;
  26639. L19: do {
  26640. if ($17) {
  26641. $$010 = 0.0;$$01079 = 0.0;$$11128 = $$011113;$$11185 = 0;$$21157 = -1;
  26642. while(1) {
  26643. $23 = (($0) + (($$11185*14)|0)|0);
  26644. $24 = (((($0) + (($$11185*14)|0)|0)) + 12|0);
  26645. $25 = HEAP8[$24>>0]|0;
  26646. switch ($25<<24>>24) {
  26647. case 1: {
  26648. $26 = ($$21157|0)>(-1);
  26649. if ($26) {
  26650. $27 = HEAP32[$5>>2]|0;
  26651. $28 = (($27) - ($$11128))|0;
  26652. $29 = HEAP32[$3>>2]|0;
  26653. $30 = (($29) + ($$21157<<2)|0);
  26654. HEAP32[$30>>2] = $28;
  26655. }
  26656. $31 = (($$21157) + 1)|0;
  26657. $32 = HEAP32[$5>>2]|0;
  26658. $33 = HEAP16[$23>>1]|0;
  26659. $34 = (+($33<<16>>16));
  26660. $35 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26661. $36 = HEAP16[$35>>1]|0;
  26662. $37 = (+($36<<16>>16));
  26663. $38 = (($32) + 1)|0;
  26664. HEAP32[$5>>2] = $38;
  26665. _stbtt__add_point($$1121,$32,$34,$37);
  26666. $$1 = $37;$$1108 = $34;$$2 = $32;$$3116 = $31;
  26667. break;
  26668. }
  26669. case 2: {
  26670. $39 = HEAP16[$23>>1]|0;
  26671. $40 = (+($39<<16>>16));
  26672. $41 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26673. $42 = HEAP16[$41>>1]|0;
  26674. $43 = (+($42<<16>>16));
  26675. $44 = HEAP32[$5>>2]|0;
  26676. $45 = (($44) + 1)|0;
  26677. HEAP32[$5>>2] = $45;
  26678. _stbtt__add_point($$1121,$44,$40,$43);
  26679. $$1 = $43;$$1108 = $40;$$2 = $$11128;$$3116 = $$21157;
  26680. break;
  26681. }
  26682. case 3: {
  26683. $46 = (((($0) + (($$11185*14)|0)|0)) + 4|0);
  26684. $47 = HEAP16[$46>>1]|0;
  26685. $48 = (+($47<<16>>16));
  26686. $49 = (((($0) + (($$11185*14)|0)|0)) + 6|0);
  26687. $50 = HEAP16[$49>>1]|0;
  26688. $51 = (+($50<<16>>16));
  26689. $52 = HEAP16[$23>>1]|0;
  26690. $53 = (+($52<<16>>16));
  26691. $54 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26692. $55 = HEAP16[$54>>1]|0;
  26693. $56 = (+($55<<16>>16));
  26694. _stbtt__tesselate_curve($$1121,$5,$$01079,$$010,$48,$51,$53,$56,$6,0);
  26695. $57 = HEAP16[$23>>1]|0;
  26696. $58 = (+($57<<16>>16));
  26697. $59 = HEAP16[$54>>1]|0;
  26698. $60 = (+($59<<16>>16));
  26699. $$1 = $60;$$1108 = $58;$$2 = $$11128;$$3116 = $$21157;
  26700. break;
  26701. }
  26702. case 4: {
  26703. $61 = (((($0) + (($$11185*14)|0)|0)) + 4|0);
  26704. $62 = HEAP16[$61>>1]|0;
  26705. $63 = (+($62<<16>>16));
  26706. $64 = (((($0) + (($$11185*14)|0)|0)) + 6|0);
  26707. $65 = HEAP16[$64>>1]|0;
  26708. $66 = (+($65<<16>>16));
  26709. $67 = (((($0) + (($$11185*14)|0)|0)) + 8|0);
  26710. $68 = HEAP16[$67>>1]|0;
  26711. $69 = (+($68<<16>>16));
  26712. $70 = (((($0) + (($$11185*14)|0)|0)) + 10|0);
  26713. $71 = HEAP16[$70>>1]|0;
  26714. $72 = (+($71<<16>>16));
  26715. $73 = HEAP16[$23>>1]|0;
  26716. $74 = (+($73<<16>>16));
  26717. $75 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26718. $76 = HEAP16[$75>>1]|0;
  26719. $77 = (+($76<<16>>16));
  26720. _stbtt__tesselate_cubic($$1121,$5,$$01079,$$010,$63,$66,$69,$72,$74,$77,$6,0);
  26721. $78 = HEAP16[$23>>1]|0;
  26722. $79 = (+($78<<16>>16));
  26723. $80 = HEAP16[$75>>1]|0;
  26724. $81 = (+($80<<16>>16));
  26725. $$1 = $81;$$1108 = $79;$$2 = $$11128;$$3116 = $$21157;
  26726. break;
  26727. }
  26728. default: {
  26729. $$1 = $$010;$$1108 = $$01079;$$2 = $$11128;$$3116 = $$21157;
  26730. }
  26731. }
  26732. $82 = (($$11185) + 1)|0;
  26733. $exitcond = ($82|0)==($1|0);
  26734. if ($exitcond) {
  26735. $$1112$lcssa = $$2;$$2115$lcssa = $$3116;
  26736. break L19;
  26737. } else {
  26738. $$010 = $$1;$$01079 = $$1108;$$11128 = $$2;$$11185 = $82;$$21157 = $$3116;
  26739. }
  26740. }
  26741. } else {
  26742. $$1112$lcssa = $$011113;$$2115$lcssa = -1;
  26743. }
  26744. } while(0);
  26745. $83 = HEAP32[$5>>2]|0;
  26746. $84 = (($83) - ($$1112$lcssa))|0;
  26747. $85 = HEAP32[$3>>2]|0;
  26748. $86 = (($85) + ($$2115$lcssa<<2)|0);
  26749. HEAP32[$86>>2] = $84;
  26750. $87 = (($$011014) + 1)|0;
  26751. $88 = ($87|0)<(2);
  26752. if ($88) {
  26753. $$011014 = $87;$$011113 = $$1112$lcssa;$$012012 = $$1121;
  26754. } else {
  26755. $$0119 = $$1121;
  26756. label = 21;
  26757. break;
  26758. }
  26759. }
  26760. if ((label|0) == 21) {
  26761. STACKTOP = sp;return ($$0119|0);
  26762. }
  26763. $89 = HEAP32[$3>>2]|0;
  26764. _free($89);
  26765. HEAP32[$3>>2] = 0;
  26766. HEAP32[$4>>2] = 0;
  26767. $$0119 = 0;
  26768. STACKTOP = sp;return ($$0119|0);
  26769. }
  26770. function _stbtt__rasterize($0,$1,$2,$3,$4,$5,$6,$7) {
  26771. $0 = $0|0;
  26772. $1 = $1|0;
  26773. $2 = $2|0;
  26774. $3 = $3|0;
  26775. $4 = +$4;
  26776. $5 = +$5;
  26777. $6 = $6|0;
  26778. $7 = $7|0;
  26779. var $$0 = 0, $$0101 = 0, $$0102$lcssa = 0, $$010211 = 0, $$010410 = 0, $$01064 = 0, $$01072 = 0, $$01081 = 0, $$01081$phi = 0, $$1$lcssa = 0, $$11055 = 0, $$16 = 0, $$2$lcssa = 0, $$23 = 0, $$3 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0;
  26780. var $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0.0, $27 = 0, $28 = 0, $29 = 0.0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0.0;
  26781. var $35 = 0.0, $36 = 0.0, $37 = 0, $38 = 0, $39 = 0.0, $40 = 0.0, $41 = 0.0, $42 = 0, $43 = 0, $44 = 0.0, $45 = 0.0, $46 = 0.0, $47 = 0, $48 = 0, $49 = 0.0, $50 = 0.0, $51 = 0.0, $52 = 0, $53 = 0, $54 = 0;
  26782. var $55 = 0, $56 = 0, $8 = 0.0, $9 = 0, $exitcond = 0, $exitcond16 = 0, $phitmp = 0, $phitmp17 = 0, $storemerge = 0, label = 0, sp = 0;
  26783. sp = STACKTOP;
  26784. $8 = -$5;
  26785. $9 = ($3|0)>(0);
  26786. if ($9) {
  26787. $$010211 = 0;$$010410 = 0;
  26788. while(1) {
  26789. $10 = (($2) + ($$010410<<2)|0);
  26790. $11 = HEAP32[$10>>2]|0;
  26791. $12 = (($11) + ($$010211))|0;
  26792. $13 = (($$010410) + 1)|0;
  26793. $exitcond16 = ($13|0)==($3|0);
  26794. if ($exitcond16) {
  26795. break;
  26796. } else {
  26797. $$010211 = $12;$$010410 = $13;
  26798. }
  26799. }
  26800. $phitmp = ($12*20)|0;
  26801. $phitmp17 = (($phitmp) + 20)|0;
  26802. $$0102$lcssa = $phitmp17;
  26803. } else {
  26804. $$0102$lcssa = 20;
  26805. }
  26806. $14 = (_malloc($$0102$lcssa)|0);
  26807. $15 = ($14|0)==(0|0);
  26808. if ($15) {
  26809. return;
  26810. }
  26811. $16 = ($3|0)>(0);
  26812. if ($16) {
  26813. $$01064 = 0;$$11055 = 0;$$16 = 0;
  26814. while(1) {
  26815. $17 = (($1) + ($$01064<<3)|0);
  26816. $18 = (($2) + ($$11055<<2)|0);
  26817. $19 = HEAP32[$18>>2]|0;
  26818. $20 = (($19) + ($$01064))|0;
  26819. $21 = ($19|0)>(0);
  26820. if ($21) {
  26821. $22 = (($19) + -1)|0;
  26822. $23 = HEAP32[$18>>2]|0;
  26823. $$01072 = 0;$$01081 = $22;$$23 = $$16;
  26824. while(1) {
  26825. $24 = (($17) + ($$01081<<3)|0);
  26826. $25 = ((($24)) + 4|0);
  26827. $26 = +HEAPF32[$25>>2];
  26828. $27 = (($17) + ($$01072<<3)|0);
  26829. $28 = ((($27)) + 4|0);
  26830. $29 = +HEAPF32[$28>>2];
  26831. $30 = $26 == $29;
  26832. if ($30) {
  26833. $$3 = $$23;
  26834. } else {
  26835. $31 = (((($14) + (($$23*20)|0)|0)) + 16|0);
  26836. $32 = $26 > $29;
  26837. $storemerge = $32&1;
  26838. $$0101 = $32 ? $$01081 : $$01072;
  26839. $$0 = $32 ? $$01072 : $$01081;
  26840. HEAP32[$31>>2] = $storemerge;
  26841. $33 = (($17) + ($$0101<<3)|0);
  26842. $34 = +HEAPF32[$33>>2];
  26843. $35 = $34 * $4;
  26844. $36 = $35 + 0.0;
  26845. $37 = (($14) + (($$23*20)|0)|0);
  26846. HEAPF32[$37>>2] = $36;
  26847. $38 = ((($33)) + 4|0);
  26848. $39 = +HEAPF32[$38>>2];
  26849. $40 = $39 * $8;
  26850. $41 = $40 + 0.0;
  26851. $42 = (((($14) + (($$23*20)|0)|0)) + 4|0);
  26852. HEAPF32[$42>>2] = $41;
  26853. $43 = (($17) + ($$0<<3)|0);
  26854. $44 = +HEAPF32[$43>>2];
  26855. $45 = $44 * $4;
  26856. $46 = $45 + 0.0;
  26857. $47 = (((($14) + (($$23*20)|0)|0)) + 8|0);
  26858. HEAPF32[$47>>2] = $46;
  26859. $48 = ((($43)) + 4|0);
  26860. $49 = +HEAPF32[$48>>2];
  26861. $50 = $49 * $8;
  26862. $51 = $50 + 0.0;
  26863. $52 = (((($14) + (($$23*20)|0)|0)) + 12|0);
  26864. HEAPF32[$52>>2] = $51;
  26865. $53 = (($$23) + 1)|0;
  26866. $$3 = $53;
  26867. }
  26868. $54 = (($$01072) + 1)|0;
  26869. $55 = ($54|0)<($23|0);
  26870. if ($55) {
  26871. $$01081$phi = $$01072;$$01072 = $54;$$23 = $$3;$$01081 = $$01081$phi;
  26872. } else {
  26873. $$2$lcssa = $$3;
  26874. break;
  26875. }
  26876. }
  26877. } else {
  26878. $$2$lcssa = $$16;
  26879. }
  26880. $56 = (($$11055) + 1)|0;
  26881. $exitcond = ($56|0)==($3|0);
  26882. if ($exitcond) {
  26883. $$1$lcssa = $$2$lcssa;
  26884. break;
  26885. } else {
  26886. $$01064 = $20;$$11055 = $56;$$16 = $$2$lcssa;
  26887. }
  26888. }
  26889. } else {
  26890. $$1$lcssa = 0;
  26891. }
  26892. _stbtt__sort_edges($14,$$1$lcssa);
  26893. _stbtt__rasterize_sorted_edges($0,$14,$$1$lcssa,$6,$7);
  26894. _free($14);
  26895. return;
  26896. }
  26897. function _stbtt__sort_edges($0,$1) {
  26898. $0 = $0|0;
  26899. $1 = $1|0;
  26900. var label = 0, sp = 0;
  26901. sp = STACKTOP;
  26902. _stbtt__sort_edges_quicksort($0,$1);
  26903. _stbtt__sort_edges_ins_sort($0,$1);
  26904. return;
  26905. }
  26906. function _stbtt__rasterize_sorted_edges($0,$1,$2,$3,$4) {
  26907. $0 = $0|0;
  26908. $1 = $1|0;
  26909. $2 = $2|0;
  26910. $3 = $3|0;
  26911. $4 = $4|0;
  26912. var $$ = 0, $$010025 = 0, $$010123 = 0, $$010219 = 0.0, $$010318 = 0, $$0104 = 0, $$0105$ph15 = 0, $$026 = 0, $$1$lcssa = 0, $$116 = 0, $$sroa$0 = 0, $$sroa$0$0$$sroa$0$0$$0$1 = 0, $$sroa$0$0$$sroa$0$0$$0$1079 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
  26913. var $17 = 0.0, $18 = 0.0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0.0, $26 = 0.0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0.0, $34 = 0, $35 = 0, $36 = 0;
  26914. var $37 = 0.0, $38 = 0, $39 = 0, $40 = 0, $41 = 0.0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0.0, $49 = 0, $5 = 0, $50 = 0.0, $51 = 0, $52 = 0, $53 = 0, $54 = 0.0, $55 = 0;
  26915. var $56 = 0, $57 = 0, $58 = 0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0, $71 = 0.0, $72 = 0.0, $73 = 0.0;
  26916. var $74 = 0.0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0.0, $89 = 0, $9 = 0, $90 = 0.0, $91 = 0.0;
  26917. var $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $fabsf = 0.0, label = 0, sp = 0;
  26918. sp = STACKTOP;
  26919. STACKTOP = STACKTOP + 544|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(544|0);
  26920. $5 = sp + 520|0;
  26921. $$sroa$0 = sp + 516|0;
  26922. $6 = sp;
  26923. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  26924. HEAP32[$$sroa$0>>2] = 0;
  26925. $7 = HEAP32[$0>>2]|0;
  26926. $8 = ($7|0)>(64);
  26927. if ($8) {
  26928. $9 = $7 << 3;
  26929. $10 = $9 | 4;
  26930. $11 = (_malloc($10)|0);
  26931. $$0104 = $11;
  26932. } else {
  26933. $$0104 = $6;
  26934. }
  26935. $12 = HEAP32[$0>>2]|0;
  26936. $13 = (($$0104) + ($12<<2)|0);
  26937. $14 = ((($0)) + 4|0);
  26938. $15 = HEAP32[$14>>2]|0;
  26939. $16 = (($15) + ($4))|0;
  26940. $17 = (+($16|0));
  26941. $18 = $17 + 1.0;
  26942. $19 = (((($1) + (($2*20)|0)|0)) + 4|0);
  26943. HEAPF32[$19>>2] = $18;
  26944. $20 = HEAP32[$14>>2]|0;
  26945. $21 = ($20|0)>(0);
  26946. L5: do {
  26947. if ($21) {
  26948. $22 = ((($13)) + 4|0);
  26949. $23 = ((($0)) + 12|0);
  26950. $24 = ((($0)) + 8|0);
  26951. $$010025 = $4;$$010123 = 0;$$026 = $1;
  26952. L7: while(1) {
  26953. $25 = (+($$010025|0));
  26954. $26 = $25 + 1.0;
  26955. $27 = HEAP32[$0>>2]|0;
  26956. $28 = $27 << 2;
  26957. _memset(($$0104|0),0,($28|0))|0;
  26958. $29 = (($28) + 4)|0;
  26959. _memset(($13|0),0,($29|0))|0;
  26960. $30 = HEAP32[$$sroa$0>>2]|0;
  26961. $31 = ($30|0)==(0|0);
  26962. L9: do {
  26963. if (!($31)) {
  26964. $$0105$ph15 = $$sroa$0;$99 = $30;
  26965. while(1) {
  26966. $36 = $99;
  26967. while(1) {
  26968. $35 = ((($36)) + 24|0);
  26969. $37 = +HEAPF32[$35>>2];
  26970. $38 = !($37 <= $25);
  26971. if ($38) {
  26972. break;
  26973. }
  26974. $39 = HEAP32[$36>>2]|0;
  26975. HEAP32[$$0105$ph15>>2] = $39;
  26976. $40 = ((($36)) + 16|0);
  26977. $41 = +HEAPF32[$40>>2];
  26978. $42 = $41 != 0.0;
  26979. if (!($42)) {
  26980. label = 11;
  26981. break L7;
  26982. }
  26983. HEAPF32[$40>>2] = 0.0;
  26984. _stbtt__hheap_free($5,$36);
  26985. $43 = HEAP32[$$0105$ph15>>2]|0;
  26986. $44 = ($43|0)==(0|0);
  26987. if ($44) {
  26988. break L9;
  26989. } else {
  26990. $36 = $43;
  26991. }
  26992. }
  26993. $45 = HEAP32[$36>>2]|0;
  26994. $46 = ($45|0)==(0|0);
  26995. if ($46) {
  26996. break;
  26997. } else {
  26998. $$0105$ph15 = $36;$99 = $45;
  26999. }
  27000. }
  27001. }
  27002. } while(0);
  27003. $32 = ((($$026)) + 4|0);
  27004. $33 = +HEAPF32[$32>>2];
  27005. $34 = !($33 <= $26);
  27006. if ($34) {
  27007. $$1$lcssa = $$026;
  27008. } else {
  27009. $$116 = $$026;$50 = $33;
  27010. while(1) {
  27011. $47 = ((($$116)) + 12|0);
  27012. $48 = +HEAPF32[$47>>2];
  27013. $49 = $50 != $48;
  27014. if ($49) {
  27015. $51 = (_stbtt__new_active($5,$$116,$3,$25)|0);
  27016. $52 = ($51|0)==(0|0);
  27017. if (!($52)) {
  27018. $53 = ((($51)) + 24|0);
  27019. $54 = +HEAPF32[$53>>2];
  27020. $55 = !($54 >= $25);
  27021. if ($55) {
  27022. label = 17;
  27023. break L7;
  27024. }
  27025. $$sroa$0$0$$sroa$0$0$$0$1 = HEAP32[$$sroa$0>>2]|0;
  27026. HEAP32[$51>>2] = $$sroa$0$0$$sroa$0$0$$0$1;
  27027. $56 = $51;
  27028. HEAP32[$$sroa$0>>2] = $56;
  27029. }
  27030. }
  27031. $57 = ((($$116)) + 20|0);
  27032. $58 = ((($$116)) + 24|0);
  27033. $59 = +HEAPF32[$58>>2];
  27034. $60 = !($59 <= $26);
  27035. if ($60) {
  27036. $$1$lcssa = $57;
  27037. break;
  27038. } else {
  27039. $$116 = $57;$50 = $59;
  27040. }
  27041. }
  27042. }
  27043. $$sroa$0$0$$sroa$0$0$$0$1079 = HEAP32[$$sroa$0>>2]|0;
  27044. $61 = ($$sroa$0$0$$sroa$0$0$$0$1079|0)==(0|0);
  27045. if (!($61)) {
  27046. $62 = HEAP32[$0>>2]|0;
  27047. _stbtt__fill_active_edges_new($$0104,$22,$62,$$sroa$0$0$$sroa$0$0$$0$1079,$25);
  27048. }
  27049. $63 = HEAP32[$0>>2]|0;
  27050. $64 = ($63|0)>(0);
  27051. if ($64) {
  27052. $$010219 = 0.0;$$010318 = 0;
  27053. while(1) {
  27054. $67 = (($13) + ($$010318<<2)|0);
  27055. $68 = +HEAPF32[$67>>2];
  27056. $69 = $$010219 + $68;
  27057. $70 = (($$0104) + ($$010318<<2)|0);
  27058. $71 = +HEAPF32[$70>>2];
  27059. $72 = $71 + $69;
  27060. $fabsf = (+Math_abs((+$72)));
  27061. $73 = $fabsf * 255.0;
  27062. $74 = $73 + 0.5;
  27063. $75 = (~~(($74)));
  27064. $76 = ($75|0)<(255);
  27065. $$ = $76 ? $75 : 255;
  27066. $77 = $$&255;
  27067. $78 = HEAP32[$23>>2]|0;
  27068. $79 = HEAP32[$24>>2]|0;
  27069. $80 = Math_imul($79, $$010123)|0;
  27070. $81 = (($80) + ($$010318))|0;
  27071. $82 = (($78) + ($81)|0);
  27072. HEAP8[$82>>0] = $77;
  27073. $83 = (($$010318) + 1)|0;
  27074. $84 = HEAP32[$0>>2]|0;
  27075. $85 = ($83|0)<($84|0);
  27076. if ($85) {
  27077. $$010219 = $69;$$010318 = $83;
  27078. } else {
  27079. break;
  27080. }
  27081. }
  27082. }
  27083. $65 = HEAP32[$$sroa$0>>2]|0;
  27084. $66 = ($65|0)==(0|0);
  27085. if (!($66)) {
  27086. $87 = $65;
  27087. while(1) {
  27088. $86 = ((($87)) + 8|0);
  27089. $88 = +HEAPF32[$86>>2];
  27090. $89 = ((($87)) + 4|0);
  27091. $90 = +HEAPF32[$89>>2];
  27092. $91 = $88 + $90;
  27093. HEAPF32[$89>>2] = $91;
  27094. $92 = HEAP32[$87>>2]|0;
  27095. $93 = ($92|0)==(0|0);
  27096. if ($93) {
  27097. break;
  27098. } else {
  27099. $87 = $92;
  27100. }
  27101. }
  27102. }
  27103. $94 = (($$010025) + 1)|0;
  27104. $95 = (($$010123) + 1)|0;
  27105. $96 = HEAP32[$14>>2]|0;
  27106. $97 = ($95|0)<($96|0);
  27107. if ($97) {
  27108. $$010025 = $94;$$010123 = $95;$$026 = $$1$lcssa;
  27109. } else {
  27110. break L5;
  27111. }
  27112. }
  27113. if ((label|0) == 11) {
  27114. ___assert_fail((13268|0),(13212|0),2775,(13281|0));
  27115. // unreachable;
  27116. }
  27117. else if ((label|0) == 17) {
  27118. ___assert_fail((13311|0),(13212|0),2788,(13281|0));
  27119. // unreachable;
  27120. }
  27121. }
  27122. } while(0);
  27123. _stbtt__hheap_cleanup($5);
  27124. $98 = ($$0104|0)==($6|0);
  27125. if ($98) {
  27126. STACKTOP = sp;return;
  27127. }
  27128. _free($$0104);
  27129. STACKTOP = sp;return;
  27130. }
  27131. function _stbtt__hheap_free($0,$1) {
  27132. $0 = $0|0;
  27133. $1 = $1|0;
  27134. var $2 = 0, $3 = 0, label = 0, sp = 0;
  27135. sp = STACKTOP;
  27136. $2 = ((($0)) + 4|0);
  27137. $3 = HEAP32[$2>>2]|0;
  27138. HEAP32[$1>>2] = $3;
  27139. HEAP32[$2>>2] = $1;
  27140. return;
  27141. }
  27142. function _stbtt__new_active($0,$1,$2,$3) {
  27143. $0 = $0|0;
  27144. $1 = $1|0;
  27145. $2 = $2|0;
  27146. $3 = +$3;
  27147. var $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0, $16 = 0, $17 = 0, $18 = 0.0, $19 = 0.0, $20 = 0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0;
  27148. var $30 = 0, $31 = 0, $32 = 0.0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  27149. sp = STACKTOP;
  27150. $4 = (_stbtt__hheap_alloc($0)|0);
  27151. $5 = ((($1)) + 8|0);
  27152. $6 = +HEAPF32[$5>>2];
  27153. $7 = +HEAPF32[$1>>2];
  27154. $8 = $6 - $7;
  27155. $9 = ((($1)) + 12|0);
  27156. $10 = +HEAPF32[$9>>2];
  27157. $11 = ((($1)) + 4|0);
  27158. $12 = +HEAPF32[$11>>2];
  27159. $13 = $10 - $12;
  27160. $14 = $8 / $13;
  27161. $15 = ($4|0)==(0|0);
  27162. if ($15) {
  27163. ___assert_fail((13601|0),(13212|0),2374,(13617|0));
  27164. // unreachable;
  27165. } else {
  27166. $16 = ((($4)) + 8|0);
  27167. HEAPF32[$16>>2] = $14;
  27168. $17 = $14 != 0.0;
  27169. $18 = 1.0 / $14;
  27170. $19 = $17 ? $18 : 0.0;
  27171. $20 = ((($4)) + 12|0);
  27172. HEAPF32[$20>>2] = $19;
  27173. $21 = +HEAPF32[$1>>2];
  27174. $22 = +HEAPF32[$11>>2];
  27175. $23 = $3 - $22;
  27176. $24 = $14 * $23;
  27177. $25 = $21 + $24;
  27178. $26 = ((($4)) + 4|0);
  27179. $27 = (+($2|0));
  27180. $28 = $25 - $27;
  27181. HEAPF32[$26>>2] = $28;
  27182. $29 = ((($1)) + 16|0);
  27183. $30 = HEAP32[$29>>2]|0;
  27184. $31 = ($30|0)!=(0);
  27185. $32 = $31 ? 1.0 : -1.0;
  27186. $33 = ((($4)) + 16|0);
  27187. HEAPF32[$33>>2] = $32;
  27188. $34 = ((($4)) + 20|0);
  27189. HEAPF32[$34>>2] = $22;
  27190. $35 = HEAP32[$9>>2]|0;
  27191. $36 = ((($4)) + 24|0);
  27192. HEAP32[$36>>2] = $35;
  27193. HEAP32[$4>>2] = 0;
  27194. return ($4|0);
  27195. }
  27196. return (0)|0;
  27197. }
  27198. function _stbtt__fill_active_edges_new($0,$1,$2,$3,$4) {
  27199. $0 = $0|0;
  27200. $1 = $1|0;
  27201. $2 = $2|0;
  27202. $3 = $3|0;
  27203. $4 = +$4;
  27204. var $$0350 = 0.0, $$0351 = 0.0, $$0352 = 0.0, $$0354 = 0.0, $$0356370 = 0, $$0357 = 0.0, $$0359$lcssa = 0.0, $$0359372 = 0.0, $$0360 = 0.0, $$0361371 = 0, $$0374 = 0, $$1 = 0.0, $$1353 = 0.0, $$1355 = 0.0, $$1358 = 0.0, $10 = 0.0, $100 = 0.0, $101 = 0, $102 = 0, $103 = 0;
  27205. var $104 = 0.0, $105 = 0.0, $106 = 0.0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0, $110 = 0.0, $111 = 0.0, $112 = 0.0, $113 = 0.0, $114 = 0.0, $115 = 0.0, $116 = 0, $117 = 0.0, $118 = 0.0, $119 = 0.0, $12 = 0, $120 = 0.0, $121 = 0;
  27206. var $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0.0, $130 = 0.0, $131 = 0.0, $132 = 0.0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0;
  27207. var $140 = 0, $141 = 0, $142 = 0, $15 = 0, $16 = 0.0, $17 = 0, $18 = 0, $19 = 0.0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0.0, $25 = 0, $26 = 0.0, $27 = 0, $28 = 0.0, $29 = 0, $30 = 0, $31 = 0.0;
  27208. var $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0.0, $47 = 0, $48 = 0, $49 = 0, $5 = 0.0, $50 = 0.0;
  27209. var $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0, $6 = 0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0, $65 = 0.0, $66 = 0.0, $67 = 0, $68 = 0.0, $69 = 0.0;
  27210. var $7 = 0.0, $70 = 0.0, $71 = 0.0, $72 = 0.0, $73 = 0, $74 = 0, $75 = 0, $76 = 0.0, $77 = 0.0, $78 = 0.0, $79 = 0.0, $8 = 0, $80 = 0, $81 = 0.0, $82 = 0.0, $83 = 0.0, $84 = 0.0, $85 = 0.0, $86 = 0.0, $87 = 0.0;
  27211. var $88 = 0.0, $89 = 0.0, $9 = 0, $90 = 0, $91 = 0.0, $92 = 0.0, $93 = 0.0, $94 = 0, $95 = 0.0, $96 = 0.0, $97 = 0, $98 = 0.0, $99 = 0.0, $exitcond = 0, $exitcond380 = 0, $fabsf = 0.0, $or$cond = 0, $or$cond362 = 0, $or$cond363 = 0, $or$cond364 = 0;
  27212. var $or$cond365 = 0, $or$cond366 = 0, $or$cond367 = 0, $or$cond368 = 0, $or$cond369 = 0, label = 0, sp = 0;
  27213. sp = STACKTOP;
  27214. $5 = $4 + 1.0;
  27215. $6 = ($3|0)==(0|0);
  27216. if ($6) {
  27217. return;
  27218. }
  27219. $7 = (+($2|0));
  27220. $8 = ((($1)) + -4|0);
  27221. $9 = ((($1)) + -4|0);
  27222. $10 = (+($2|0));
  27223. $11 = ($2|0)>(0);
  27224. $$0374 = $3;
  27225. L4: while(1) {
  27226. $12 = ((($$0374)) + 24|0);
  27227. $13 = +HEAPF32[$12>>2];
  27228. $14 = !($13 >= $4);
  27229. if ($14) {
  27230. label = 4;
  27231. break;
  27232. }
  27233. $15 = ((($$0374)) + 8|0);
  27234. $16 = +HEAPF32[$15>>2];
  27235. $17 = $16 == 0.0;
  27236. $18 = ((($$0374)) + 4|0);
  27237. $19 = +HEAPF32[$18>>2];
  27238. do {
  27239. if ($17) {
  27240. $20 = $19 < $7;
  27241. if ($20) {
  27242. $21 = !($19 >= 0.0);
  27243. if ($21) {
  27244. _stbtt__handle_clipped_edge($8,0,$$0374,$19,$4,$19,$5);
  27245. break;
  27246. } else {
  27247. $22 = (~~(($19)));
  27248. _stbtt__handle_clipped_edge($0,$22,$$0374,$19,$4,$19,$5);
  27249. $23 = (($22) + 1)|0;
  27250. _stbtt__handle_clipped_edge($9,$23,$$0374,$19,$4,$19,$5);
  27251. break;
  27252. }
  27253. }
  27254. } else {
  27255. $24 = $16 + $19;
  27256. $25 = ((($$0374)) + 12|0);
  27257. $26 = +HEAPF32[$25>>2];
  27258. $27 = ((($$0374)) + 20|0);
  27259. $28 = +HEAPF32[$27>>2];
  27260. $29 = !($28 <= $5);
  27261. if ($29) {
  27262. label = 11;
  27263. break L4;
  27264. }
  27265. $30 = $28 > $4;
  27266. $31 = $28 - $4;
  27267. $32 = $16 * $31;
  27268. $33 = $19 + $32;
  27269. $$0354 = $30 ? $28 : $4;
  27270. $$0351 = $30 ? $33 : $19;
  27271. $34 = +HEAPF32[$12>>2];
  27272. $35 = $34 < $5;
  27273. $36 = $34 - $4;
  27274. $37 = $16 * $36;
  27275. $38 = $19 + $37;
  27276. $$0357 = $35 ? $34 : $5;
  27277. $$0352 = $35 ? $38 : $24;
  27278. $39 = $$0351 >= 0.0;
  27279. $40 = $$0352 >= 0.0;
  27280. $or$cond = $39 & $40;
  27281. if ($or$cond) {
  27282. $41 = $$0351 < $10;
  27283. $42 = $$0352 < $10;
  27284. $or$cond362 = $41 & $42;
  27285. if ($or$cond362) {
  27286. $43 = (~~(($$0351)));
  27287. $44 = (~~(($$0352)));
  27288. $45 = ($43|0)==($44|0);
  27289. if ($45) {
  27290. $46 = $$0357 - $$0354;
  27291. $47 = ($43|0)>(-1);
  27292. $48 = ($43|0)<($2|0);
  27293. $or$cond363 = $47 & $48;
  27294. if (!($or$cond363)) {
  27295. label = 17;
  27296. break L4;
  27297. }
  27298. $49 = ((($$0374)) + 16|0);
  27299. $50 = +HEAPF32[$49>>2];
  27300. $51 = (+($43|0));
  27301. $52 = $$0351 - $51;
  27302. $53 = $$0352 - $51;
  27303. $54 = $52 + $53;
  27304. $55 = $54 * 0.5;
  27305. $56 = 1.0 - $55;
  27306. $57 = $56 * $50;
  27307. $58 = $46 * $57;
  27308. $59 = (($0) + ($43<<2)|0);
  27309. $60 = +HEAPF32[$59>>2];
  27310. $61 = $60 + $58;
  27311. HEAPF32[$59>>2] = $61;
  27312. $62 = +HEAPF32[$49>>2];
  27313. $63 = $46 * $62;
  27314. $64 = (($1) + ($43<<2)|0);
  27315. $65 = +HEAPF32[$64>>2];
  27316. $66 = $65 + $63;
  27317. HEAPF32[$64>>2] = $66;
  27318. break;
  27319. }
  27320. $67 = $$0351 > $$0352;
  27321. if ($67) {
  27322. $68 = -$26;
  27323. $69 = $$0357 - $4;
  27324. $70 = $5 - $69;
  27325. $71 = $$0354 - $4;
  27326. $72 = $5 - $71;
  27327. $$0350 = $24;$$0360 = $68;$$1 = $$0352;$$1353 = $$0351;$$1355 = $70;$$1358 = $72;
  27328. } else {
  27329. $$0350 = $19;$$0360 = $26;$$1 = $$0351;$$1353 = $$0352;$$1355 = $$0354;$$1358 = $$0357;
  27330. }
  27331. $73 = (~~(($$1)));
  27332. $74 = (~~(($$1353)));
  27333. $75 = (($73) + 1)|0;
  27334. $76 = (+($75|0));
  27335. $77 = $76 - $$0350;
  27336. $78 = $$0360 * $77;
  27337. $79 = $78 + $4;
  27338. $80 = ((($$0374)) + 16|0);
  27339. $81 = +HEAPF32[$80>>2];
  27340. $82 = $79 - $$1355;
  27341. $83 = $81 * $82;
  27342. $84 = (+($73|0));
  27343. $85 = $$1 - $84;
  27344. $86 = $85 + 1.0;
  27345. $87 = $86 * 0.5;
  27346. $88 = 1.0 - $87;
  27347. $89 = $88 * $83;
  27348. $90 = (($0) + ($73<<2)|0);
  27349. $91 = +HEAPF32[$90>>2];
  27350. $92 = $91 + $89;
  27351. HEAPF32[$90>>2] = $92;
  27352. $93 = $$0360 * $81;
  27353. $94 = ($74|0)>($75|0);
  27354. if ($94) {
  27355. $95 = $93 * 0.5;
  27356. $$0359372 = $83;$$0361371 = $75;
  27357. while(1) {
  27358. $96 = $95 + $$0359372;
  27359. $97 = (($0) + ($$0361371<<2)|0);
  27360. $98 = +HEAPF32[$97>>2];
  27361. $99 = $96 + $98;
  27362. HEAPF32[$97>>2] = $99;
  27363. $100 = $93 + $$0359372;
  27364. $101 = (($$0361371) + 1)|0;
  27365. $exitcond380 = ($101|0)==($74|0);
  27366. if ($exitcond380) {
  27367. $$0359$lcssa = $100;
  27368. break;
  27369. } else {
  27370. $$0359372 = $100;$$0361371 = $101;
  27371. }
  27372. }
  27373. } else {
  27374. $$0359$lcssa = $83;
  27375. }
  27376. $fabsf = (+Math_abs((+$$0359$lcssa)));
  27377. $102 = !($fabsf <= 1.0099999904632568);
  27378. if ($102) {
  27379. label = 25;
  27380. break L4;
  27381. }
  27382. $103 = (($74) - ($75))|0;
  27383. $104 = (+($103|0));
  27384. $105 = $$0360 * $104;
  27385. $106 = $105 + $79;
  27386. $107 = (+($74|0));
  27387. $108 = $$1353 - $107;
  27388. $109 = $108 + 0.0;
  27389. $110 = $109 * 0.5;
  27390. $111 = 1.0 - $110;
  27391. $112 = $81 * $111;
  27392. $113 = $$1358 - $106;
  27393. $114 = $112 * $113;
  27394. $115 = $114 + $$0359$lcssa;
  27395. $116 = (($0) + ($74<<2)|0);
  27396. $117 = +HEAPF32[$116>>2];
  27397. $118 = $115 + $117;
  27398. HEAPF32[$116>>2] = $118;
  27399. $119 = $$1358 - $$1355;
  27400. $120 = $119 * $81;
  27401. $121 = (($1) + ($74<<2)|0);
  27402. $122 = +HEAPF32[$121>>2];
  27403. $123 = $120 + $122;
  27404. HEAPF32[$121>>2] = $123;
  27405. break;
  27406. }
  27407. }
  27408. if ($11) {
  27409. $$0356370 = 0;
  27410. while(1) {
  27411. $124 = (+($$0356370|0));
  27412. $125 = (($$0356370) + 1)|0;
  27413. $126 = (+($125|0));
  27414. $127 = $124 - $19;
  27415. $128 = $127 / $16;
  27416. $129 = $128 + $4;
  27417. $130 = $126 - $19;
  27418. $131 = $130 / $16;
  27419. $132 = $131 + $4;
  27420. $133 = $19 < $124;
  27421. $134 = $24 > $126;
  27422. $or$cond364 = $133 & $134;
  27423. do {
  27424. if ($or$cond364) {
  27425. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27426. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$126,$132);
  27427. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27428. } else {
  27429. $135 = $24 < $124;
  27430. $136 = $19 > $126;
  27431. $or$cond365 = $135 & $136;
  27432. if ($or$cond365) {
  27433. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27434. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$124,$129);
  27435. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27436. break;
  27437. }
  27438. $137 = $24 > $124;
  27439. $or$cond366 = $133 & $137;
  27440. if ($or$cond366) {
  27441. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27442. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27443. break;
  27444. }
  27445. $138 = $19 > $124;
  27446. $or$cond367 = $135 & $138;
  27447. if ($or$cond367) {
  27448. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27449. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27450. break;
  27451. }
  27452. $139 = $19 < $126;
  27453. $or$cond368 = $139 & $134;
  27454. if ($or$cond368) {
  27455. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27456. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27457. break;
  27458. }
  27459. $140 = $24 < $126;
  27460. $or$cond369 = $140 & $136;
  27461. if ($or$cond369) {
  27462. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27463. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27464. break;
  27465. } else {
  27466. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$24,$5);
  27467. break;
  27468. }
  27469. }
  27470. } while(0);
  27471. $exitcond = ($125|0)==($2|0);
  27472. if ($exitcond) {
  27473. break;
  27474. } else {
  27475. $$0356370 = $125;
  27476. }
  27477. }
  27478. }
  27479. }
  27480. } while(0);
  27481. $141 = HEAP32[$$0374>>2]|0;
  27482. $142 = ($141|0)==(0|0);
  27483. if ($142) {
  27484. label = 42;
  27485. break;
  27486. } else {
  27487. $$0374 = $141;
  27488. }
  27489. }
  27490. if ((label|0) == 4) {
  27491. ___assert_fail((13331|0),(13212|0),2586,(13346|0));
  27492. // unreachable;
  27493. }
  27494. else if ((label|0) == 11) {
  27495. ___assert_fail((13375|0),(13212|0),2605,(13346|0));
  27496. // unreachable;
  27497. }
  27498. else if ((label|0) == 17) {
  27499. ___assert_fail((13411|0),(13212|0),2633,(13346|0));
  27500. // unreachable;
  27501. }
  27502. else if ((label|0) == 25) {
  27503. ___assert_fail((13429|0),(13212|0),2670,(13346|0));
  27504. // unreachable;
  27505. }
  27506. else if ((label|0) == 42) {
  27507. return;
  27508. }
  27509. }
  27510. function _stbtt__hheap_cleanup($0) {
  27511. $0 = $0|0;
  27512. var $$in12 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  27513. sp = STACKTOP;
  27514. $1 = HEAP32[$0>>2]|0;
  27515. $2 = ($1|0)==(0|0);
  27516. if ($2) {
  27517. return;
  27518. } else {
  27519. $$in12 = $1;
  27520. }
  27521. while(1) {
  27522. $3 = HEAP32[$$in12>>2]|0;
  27523. _free($$in12);
  27524. $4 = ($3|0)==(0|0);
  27525. if ($4) {
  27526. break;
  27527. } else {
  27528. $$in12 = $3;
  27529. }
  27530. }
  27531. return;
  27532. }
  27533. function _stbtt__handle_clipped_edge($0,$1,$2,$3,$4,$5,$6) {
  27534. $0 = $0|0;
  27535. $1 = $1|0;
  27536. $2 = $2|0;
  27537. $3 = +$3;
  27538. $4 = +$4;
  27539. $5 = +$5;
  27540. $6 = +$6;
  27541. var $$0 = 0.0, $$077 = 0.0, $$078 = 0.0, $$079 = 0.0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0, $25 = 0.0;
  27542. var $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0, $33 = 0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0;
  27543. var $46 = 0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0, $65 = 0.0;
  27544. var $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0, $7 = 0, $70 = 0.0, $71 = 0.0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond80 = 0, $or$cond81 = 0, $or$cond82 = 0, $or$cond83 = 0, $or$cond84 = 0, $or$cond85 = 0, label = 0, sp = 0;
  27545. sp = STACKTOP;
  27546. $7 = $4 == $6;
  27547. if ($7) {
  27548. return;
  27549. }
  27550. $8 = $4 < $6;
  27551. if (!($8)) {
  27552. ___assert_fail((13449|0),(13212|0),2544,(13457|0));
  27553. // unreachable;
  27554. }
  27555. $9 = ((($2)) + 20|0);
  27556. $10 = +HEAPF32[$9>>2];
  27557. $11 = ((($2)) + 24|0);
  27558. $12 = +HEAPF32[$11>>2];
  27559. $13 = !($10 <= $12);
  27560. if ($13) {
  27561. ___assert_fail((13484|0),(13212|0),2545,(13457|0));
  27562. // unreachable;
  27563. }
  27564. $14 = $12 < $4;
  27565. $15 = $10 > $6;
  27566. $or$cond = $15 | $14;
  27567. if ($or$cond) {
  27568. return;
  27569. }
  27570. $16 = $10 > $4;
  27571. if ($16) {
  27572. $17 = $5 - $3;
  27573. $18 = $10 - $4;
  27574. $19 = $17 * $18;
  27575. $20 = $6 - $4;
  27576. $21 = $19 / $20;
  27577. $22 = $21 + $3;
  27578. $$078 = $10;$$079 = $22;
  27579. } else {
  27580. $$078 = $4;$$079 = $3;
  27581. }
  27582. $23 = +HEAPF32[$11>>2];
  27583. $24 = $23 < $6;
  27584. if ($24) {
  27585. $25 = $5 - $$079;
  27586. $26 = $23 - $6;
  27587. $27 = $25 * $26;
  27588. $28 = $6 - $$078;
  27589. $29 = $27 / $28;
  27590. $30 = $29 + $5;
  27591. $$0 = $23;$$077 = $30;
  27592. } else {
  27593. $$0 = $6;$$077 = $5;
  27594. }
  27595. $31 = (+($1|0));
  27596. $32 = $$079 == $31;
  27597. $33 = (($1) + 1)|0;
  27598. $34 = (+($33|0));
  27599. do {
  27600. if ($32) {
  27601. $35 = !($$077 <= $34);
  27602. if ($35) {
  27603. ___assert_fail((13499|0),(13212|0),2558,(13457|0));
  27604. // unreachable;
  27605. }
  27606. } else {
  27607. $36 = $$079 == $34;
  27608. if ($36) {
  27609. $37 = !($$077 >= $31);
  27610. if (!($37)) {
  27611. break;
  27612. }
  27613. ___assert_fail((13509|0),(13212|0),2560,(13457|0));
  27614. // unreachable;
  27615. }
  27616. $38 = !($$079 <= $31);
  27617. if (!($38)) {
  27618. $39 = !($$077 <= $31);
  27619. if (!($39)) {
  27620. break;
  27621. }
  27622. ___assert_fail((13517|0),(13212|0),2562,(13457|0));
  27623. // unreachable;
  27624. }
  27625. $40 = !($$079 >= $34);
  27626. if ($40) {
  27627. $42 = !($$077 >= $31);
  27628. $43 = !($$077 <= $34);
  27629. $or$cond80 = $42 | $43;
  27630. if (!($or$cond80)) {
  27631. break;
  27632. }
  27633. ___assert_fail((13535|0),(13212|0),2566,(13457|0));
  27634. // unreachable;
  27635. } else {
  27636. $41 = !($$077 >= $34);
  27637. if (!($41)) {
  27638. break;
  27639. }
  27640. ___assert_fail((13525|0),(13212|0),2564,(13457|0));
  27641. // unreachable;
  27642. }
  27643. }
  27644. } while(0);
  27645. $44 = !($$079 <= $31);
  27646. $45 = !($$077 <= $31);
  27647. $or$cond81 = $44 | $45;
  27648. if (!($or$cond81)) {
  27649. $46 = ((($2)) + 16|0);
  27650. $47 = +HEAPF32[$46>>2];
  27651. $48 = $$0 - $$078;
  27652. $49 = $48 * $47;
  27653. $50 = (($0) + ($1<<2)|0);
  27654. $51 = +HEAPF32[$50>>2];
  27655. $52 = $51 + $49;
  27656. HEAPF32[$50>>2] = $52;
  27657. return;
  27658. }
  27659. $53 = !($$079 >= $34);
  27660. $54 = !($$077 >= $34);
  27661. $or$cond82 = $53 | $54;
  27662. if (!($or$cond82)) {
  27663. return;
  27664. }
  27665. $55 = !($$079 >= $31);
  27666. $56 = !($$079 <= $34);
  27667. $or$cond83 = $55 | $56;
  27668. $57 = !($$077 >= $31);
  27669. $or$cond84 = $or$cond83 | $57;
  27670. $58 = !($$077 <= $34);
  27671. $or$cond85 = $58 | $or$cond84;
  27672. if ($or$cond85) {
  27673. ___assert_fail((13556|0),(13212|0),2573,(13457|0));
  27674. // unreachable;
  27675. }
  27676. $59 = ((($2)) + 16|0);
  27677. $60 = +HEAPF32[$59>>2];
  27678. $61 = $$0 - $$078;
  27679. $62 = $61 * $60;
  27680. $63 = $$079 - $31;
  27681. $64 = $$077 - $31;
  27682. $65 = $63 + $64;
  27683. $66 = $65 * 0.5;
  27684. $67 = 1.0 - $66;
  27685. $68 = $67 * $62;
  27686. $69 = (($0) + ($1<<2)|0);
  27687. $70 = +HEAPF32[$69>>2];
  27688. $71 = $70 + $68;
  27689. HEAPF32[$69>>2] = $71;
  27690. return;
  27691. }
  27692. function _stbtt__hheap_alloc($0) {
  27693. $0 = $0|0;
  27694. var $$1 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  27695. sp = STACKTOP;
  27696. $1 = ((($0)) + 4|0);
  27697. $2 = HEAP32[$1>>2]|0;
  27698. $3 = ($2|0)==(0|0);
  27699. if (!($3)) {
  27700. $4 = HEAP32[$2>>2]|0;
  27701. HEAP32[$1>>2] = $4;
  27702. $$1 = $2;
  27703. return ($$1|0);
  27704. }
  27705. $5 = ((($0)) + 8|0);
  27706. $6 = HEAP32[$5>>2]|0;
  27707. $7 = ($6|0)==(0);
  27708. do {
  27709. if ($7) {
  27710. $8 = (_malloc(56004)|0);
  27711. $9 = ($8|0)==(0|0);
  27712. if ($9) {
  27713. $$1 = 0;
  27714. return ($$1|0);
  27715. } else {
  27716. $10 = HEAP32[$0>>2]|0;
  27717. HEAP32[$8>>2] = $10;
  27718. HEAP32[$0>>2] = $8;
  27719. HEAP32[$5>>2] = 2000;
  27720. break;
  27721. }
  27722. }
  27723. } while(0);
  27724. $11 = HEAP32[$5>>2]|0;
  27725. $12 = (($11) + -1)|0;
  27726. HEAP32[$5>>2] = $12;
  27727. $13 = HEAP32[$0>>2]|0;
  27728. $14 = ($12*28)|0;
  27729. $15 = (($13) + ($14)|0);
  27730. $$1 = $15;
  27731. return ($$1|0);
  27732. }
  27733. function _stbtt__sort_edges_quicksort($0,$1) {
  27734. $0 = $0|0;
  27735. $1 = $1|0;
  27736. var $$079 = 0, $$081 = 0, $$08390 = 0, $$091 = 0, $$1 = 0, $$180 = 0, $$182 = 0, $$184 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $2 = 0, $20 = 0;
  27737. var $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0.0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0;
  27738. var $8 = 0, $9 = 0.0, $tmp = 0, label = 0, sp = 0;
  27739. sp = STACKTOP;
  27740. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  27741. $2 = sp;
  27742. $3 = ($1|0)>(12);
  27743. if (!($3)) {
  27744. STACKTOP = sp;return;
  27745. }
  27746. $$08390 = $1;$$091 = $0;
  27747. while(1) {
  27748. $4 = $$08390 >>> 1;
  27749. $5 = ((($$091)) + 4|0);
  27750. $6 = +HEAPF32[$5>>2];
  27751. $7 = (($$091) + (($4*20)|0)|0);
  27752. $8 = (((($$091) + (($4*20)|0)|0)) + 4|0);
  27753. $9 = +HEAPF32[$8>>2];
  27754. $10 = $6 < $9;
  27755. $11 = (($$08390) + -1)|0;
  27756. $12 = (((($$091) + (($11*20)|0)|0)) + 4|0);
  27757. $13 = +HEAPF32[$12>>2];
  27758. $14 = $9 < $13;
  27759. $15 = $10 ^ $14;
  27760. $16 = $6 < $13;
  27761. $tmp = $16 ^ $14;
  27762. $17 = $tmp ? $11 : 0;
  27763. $18 = (($$091) + (($17*20)|0)|0);
  27764. if ($15) {
  27765. ;HEAP32[$2>>2]=HEAP32[$18>>2]|0;HEAP32[$2+4>>2]=HEAP32[$18+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$18+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$18+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$18+16>>2]|0;
  27766. ;HEAP32[$18>>2]=HEAP32[$7>>2]|0;HEAP32[$18+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$18+8>>2]=HEAP32[$7+8>>2]|0;HEAP32[$18+12>>2]=HEAP32[$7+12>>2]|0;HEAP32[$18+16>>2]=HEAP32[$7+16>>2]|0;
  27767. ;HEAP32[$7>>2]=HEAP32[$2>>2]|0;HEAP32[$7+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$7+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$7+16>>2]=HEAP32[$2+16>>2]|0;
  27768. }
  27769. ;HEAP32[$2>>2]=HEAP32[$$091>>2]|0;HEAP32[$2+4>>2]=HEAP32[$$091+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$$091+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$$091+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$$091+16>>2]|0;
  27770. ;HEAP32[$$091>>2]=HEAP32[$7>>2]|0;HEAP32[$$091+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$091+8>>2]=HEAP32[$7+8>>2]|0;HEAP32[$$091+12>>2]=HEAP32[$7+12>>2]|0;HEAP32[$$091+16>>2]=HEAP32[$7+16>>2]|0;
  27771. ;HEAP32[$7>>2]=HEAP32[$2>>2]|0;HEAP32[$7+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$7+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$7+16>>2]=HEAP32[$2+16>>2]|0;
  27772. $$079 = $11;$$081 = 1;
  27773. while(1) {
  27774. $19 = +HEAPF32[$5>>2];
  27775. $$182 = $$081;
  27776. while(1) {
  27777. $20 = (((($$091) + (($$182*20)|0)|0)) + 4|0);
  27778. $21 = +HEAPF32[$20>>2];
  27779. $22 = $21 < $19;
  27780. $23 = (($$182) + 1)|0;
  27781. if ($22) {
  27782. $$182 = $23;
  27783. } else {
  27784. $$180 = $$079;
  27785. break;
  27786. }
  27787. }
  27788. while(1) {
  27789. $24 = (((($$091) + (($$180*20)|0)|0)) + 4|0);
  27790. $25 = +HEAPF32[$24>>2];
  27791. $26 = $19 < $25;
  27792. $27 = (($$180) + -1)|0;
  27793. if ($26) {
  27794. $$180 = $27;
  27795. } else {
  27796. break;
  27797. }
  27798. }
  27799. $28 = (($$091) + (($$182*20)|0)|0);
  27800. $29 = ($$182|0)<($$180|0);
  27801. if (!($29)) {
  27802. break;
  27803. }
  27804. $30 = (($$091) + (($$180*20)|0)|0);
  27805. ;HEAP32[$2>>2]=HEAP32[$28>>2]|0;HEAP32[$2+4>>2]=HEAP32[$28+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$28+8>>2]|0;HEAP32[$2+12>>2]=HEAP32[$28+12>>2]|0;HEAP32[$2+16>>2]=HEAP32[$28+16>>2]|0;
  27806. ;HEAP32[$28>>2]=HEAP32[$30>>2]|0;HEAP32[$28+4>>2]=HEAP32[$30+4>>2]|0;HEAP32[$28+8>>2]=HEAP32[$30+8>>2]|0;HEAP32[$28+12>>2]=HEAP32[$30+12>>2]|0;HEAP32[$28+16>>2]=HEAP32[$30+16>>2]|0;
  27807. ;HEAP32[$30>>2]=HEAP32[$2>>2]|0;HEAP32[$30+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$30+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$30+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$30+16>>2]=HEAP32[$2+16>>2]|0;
  27808. $31 = (($$182) + 1)|0;
  27809. $32 = (($$180) + -1)|0;
  27810. $$079 = $32;$$081 = $31;
  27811. }
  27812. $33 = (($$08390) - ($$182))|0;
  27813. $34 = ($$180|0)<($33|0);
  27814. if ($34) {
  27815. _stbtt__sort_edges_quicksort($$091,$$180);
  27816. $$1 = $28;$$184 = $33;
  27817. } else {
  27818. _stbtt__sort_edges_quicksort($28,$33);
  27819. $$1 = $$091;$$184 = $$180;
  27820. }
  27821. $35 = ($$184|0)>(12);
  27822. if ($35) {
  27823. $$08390 = $$184;$$091 = $$1;
  27824. } else {
  27825. break;
  27826. }
  27827. }
  27828. STACKTOP = sp;return;
  27829. }
  27830. function _stbtt__sort_edges_ins_sort($0,$1) {
  27831. $0 = $0|0;
  27832. $1 = $1|0;
  27833. var $$03251 = 0, $$033 = 0, $$2$ph = 0, $$sroa$0$0$copyload48 = 0, $$sroa$4$0$$sroa_idx37 = 0, $$sroa$4$0$$sroa_idx38 = 0, $$sroa$4$0$copyload = 0.0, $$sroa$5 = 0, $$sroa$5$0$$sroa_idx = 0, $$sroa$5$0$$sroa_idx42 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0;
  27834. var $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
  27835. sp = STACKTOP;
  27836. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27837. $$sroa$5 = sp;
  27838. $2 = ($1|0)>(1);
  27839. if (!($2)) {
  27840. STACKTOP = sp;return;
  27841. }
  27842. $$03251 = 1;
  27843. while(1) {
  27844. $3 = (($0) + (($$03251*20)|0)|0);
  27845. $$sroa$0$0$copyload48 = HEAP32[$3>>2]|0;
  27846. $$sroa$4$0$$sroa_idx37 = (((($0) + (($$03251*20)|0)|0)) + 4|0);
  27847. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx37>>2];
  27848. $$sroa$5$0$$sroa_idx = (((($0) + (($$03251*20)|0)|0)) + 8|0);
  27849. ;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;
  27850. $$033 = $$03251;
  27851. while(1) {
  27852. $4 = (($$033) + -1)|0;
  27853. $5 = (((($0) + (($4*20)|0)|0)) + 4|0);
  27854. $6 = +HEAPF32[$5>>2];
  27855. $7 = $$sroa$4$0$copyload < $6;
  27856. if (!($7)) {
  27857. $$2$ph = $$033;
  27858. break;
  27859. }
  27860. $8 = (($0) + (($4*20)|0)|0);
  27861. $9 = (($0) + (($$033*20)|0)|0);
  27862. ;HEAP32[$9>>2]=HEAP32[$8>>2]|0;HEAP32[$9+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$9+8>>2]=HEAP32[$8+8>>2]|0;HEAP32[$9+12>>2]=HEAP32[$8+12>>2]|0;HEAP32[$9+16>>2]=HEAP32[$8+16>>2]|0;
  27863. $10 = ($$033|0)>(1);
  27864. if ($10) {
  27865. $$033 = $4;
  27866. } else {
  27867. $$2$ph = $4;
  27868. break;
  27869. }
  27870. }
  27871. $11 = ($$03251|0)==($$2$ph|0);
  27872. if (!($11)) {
  27873. $$sroa$5$0$$sroa_idx42 = (((($0) + (($$2$ph*20)|0)|0)) + 8|0);
  27874. $$sroa$4$0$$sroa_idx38 = (((($0) + (($$2$ph*20)|0)|0)) + 4|0);
  27875. $12 = (($0) + (($$2$ph*20)|0)|0);
  27876. HEAP32[$12>>2] = $$sroa$0$0$copyload48;
  27877. HEAPF32[$$sroa$4$0$$sroa_idx38>>2] = $$sroa$4$0$copyload;
  27878. ;HEAP32[$$sroa$5$0$$sroa_idx42>>2]=HEAP32[$$sroa$5>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx42+4>>2]=HEAP32[$$sroa$5+4>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx42+8>>2]=HEAP32[$$sroa$5+8>>2]|0;
  27879. }
  27880. $13 = (($$03251) + 1)|0;
  27881. $exitcond = ($13|0)==($1|0);
  27882. if ($exitcond) {
  27883. break;
  27884. } else {
  27885. $$03251 = $13;
  27886. }
  27887. }
  27888. STACKTOP = sp;return;
  27889. }
  27890. function _stbtt__add_point($0,$1,$2,$3) {
  27891. $0 = $0|0;
  27892. $1 = $1|0;
  27893. $2 = +$2;
  27894. $3 = +$3;
  27895. var $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  27896. sp = STACKTOP;
  27897. $4 = ($0|0)==(0|0);
  27898. if ($4) {
  27899. return;
  27900. }
  27901. $5 = (((($0) + ($1<<3)|0)) + 4|0);
  27902. $6 = (($0) + ($1<<3)|0);
  27903. HEAPF32[$6>>2] = $2;
  27904. HEAPF32[$5>>2] = $3;
  27905. return;
  27906. }
  27907. function _stbtt__tesselate_curve($0,$1,$2,$3,$4,$5,$6,$7,$8,$9) {
  27908. $0 = $0|0;
  27909. $1 = $1|0;
  27910. $2 = +$2;
  27911. $3 = +$3;
  27912. $4 = +$4;
  27913. $5 = +$5;
  27914. $6 = +$6;
  27915. $7 = +$7;
  27916. $8 = +$8;
  27917. $9 = $9|0;
  27918. var $$tr210 = 0.0, $$tr210$phi = 0.0, $$tr311 = 0.0, $$tr311$phi = 0.0, $$tr412 = 0.0, $$tr513 = 0.0, $$tr914 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0;
  27919. var $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $40 = 0.0, $41 = 0.0, $42 = 0.0;
  27920. var $43 = 0.0, $44 = 0.0, $45 = 0.0, $46 = 0.0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, label = 0, sp = 0;
  27921. sp = STACKTOP;
  27922. $10 = $4 * 2.0;
  27923. $11 = $10 + $2;
  27924. $12 = $11 + $6;
  27925. $13 = $12 * 0.25;
  27926. $14 = $5 * 2.0;
  27927. $15 = $14 + $3;
  27928. $16 = $15 + $7;
  27929. $17 = $16 * 0.25;
  27930. $18 = ($9|0)>(16);
  27931. if ($18) {
  27932. return;
  27933. }
  27934. $19 = $7 + $3;
  27935. $20 = $19 * 0.5;
  27936. $21 = $20 - $17;
  27937. $22 = $6 + $2;
  27938. $23 = $22 * 0.5;
  27939. $24 = $23 - $13;
  27940. $$tr210 = $2;$$tr311 = $3;$$tr412 = $4;$$tr513 = $5;$$tr914 = $9;$26 = $24;$28 = $21;$36 = $13;$37 = $17;
  27941. while(1) {
  27942. $25 = $26 * $26;
  27943. $27 = $28 * $28;
  27944. $29 = $25 + $27;
  27945. $30 = $29 > $8;
  27946. if (!($30)) {
  27947. break;
  27948. }
  27949. $31 = $$tr210 + $$tr412;
  27950. $32 = $31 * 0.5;
  27951. $33 = $$tr311 + $$tr513;
  27952. $34 = $33 * 0.5;
  27953. $35 = (($$tr914) + 1)|0;
  27954. _stbtt__tesselate_curve($0,$1,$$tr210,$$tr311,$32,$34,$36,$37,$8,$35);
  27955. $38 = $$tr412 + $6;
  27956. $39 = $38 * 0.5;
  27957. $40 = $$tr513 + $7;
  27958. $41 = $40 * 0.5;
  27959. $42 = $39 * 2.0;
  27960. $43 = $36 + $42;
  27961. $44 = $43 + $6;
  27962. $45 = $44 * 0.25;
  27963. $46 = $41 * 2.0;
  27964. $47 = $37 + $46;
  27965. $48 = $47 + $7;
  27966. $49 = $48 * 0.25;
  27967. $50 = $36 + $6;
  27968. $51 = $50 * 0.5;
  27969. $52 = $51 - $45;
  27970. $53 = $37 + $7;
  27971. $54 = $53 * 0.5;
  27972. $55 = $54 - $49;
  27973. $56 = ($$tr914|0)>(15);
  27974. if ($56) {
  27975. label = 6;
  27976. break;
  27977. } else {
  27978. $$tr311$phi = $37;$$tr210$phi = $36;$$tr412 = $39;$$tr513 = $41;$$tr914 = $35;$26 = $52;$28 = $55;$36 = $45;$37 = $49;$$tr311 = $$tr311$phi;$$tr210 = $$tr210$phi;
  27979. }
  27980. }
  27981. if ((label|0) == 6) {
  27982. return;
  27983. }
  27984. $57 = HEAP32[$1>>2]|0;
  27985. _stbtt__add_point($0,$57,$6,$7);
  27986. $58 = HEAP32[$1>>2]|0;
  27987. $59 = (($58) + 1)|0;
  27988. HEAP32[$1>>2] = $59;
  27989. return;
  27990. }
  27991. function _stbtt__tesselate_cubic($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) {
  27992. $0 = $0|0;
  27993. $1 = $1|0;
  27994. $2 = +$2;
  27995. $3 = +$3;
  27996. $4 = +$4;
  27997. $5 = +$5;
  27998. $6 = +$6;
  27999. $7 = +$7;
  28000. $8 = +$8;
  28001. $9 = +$9;
  28002. $10 = +$10;
  28003. $11 = $11|0;
  28004. var $$tr138 = 0.0, $$tr139 = 0.0, $$tr140 = 0.0, $$tr141 = 0.0, $$tr142 = 0.0, $$tr143 = 0.0, $$tr147 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0;
  28005. var $25 = 0.0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $40 = 0.0, $41 = 0, $42 = 0.0, $43 = 0.0, $44 = 0.0;
  28006. var $45 = 0, $46 = 0.0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0.0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0;
  28007. var $65 = 0.0, $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $sqrtf = 0.0, label = 0, sp = 0;
  28008. sp = STACKTOP;
  28009. $$tr138 = $2;$$tr139 = $3;$$tr140 = $4;$$tr141 = $5;$$tr142 = $6;$$tr143 = $7;$$tr147 = $11;
  28010. while(1) {
  28011. $12 = $$tr140 - $$tr138;
  28012. $13 = $$tr141 - $$tr139;
  28013. $14 = $$tr142 - $$tr140;
  28014. $15 = $$tr143 - $$tr141;
  28015. $16 = $8 - $$tr142;
  28016. $17 = $9 - $$tr143;
  28017. $18 = $8 - $$tr138;
  28018. $19 = $9 - $$tr139;
  28019. $20 = $12 * $12;
  28020. $21 = $13 * $13;
  28021. $22 = $20 + $21;
  28022. $23 = $22;
  28023. $24 = (+Math_sqrt((+$23)));
  28024. $25 = $14 * $14;
  28025. $26 = $15 * $15;
  28026. $27 = $25 + $26;
  28027. $28 = $27;
  28028. $29 = (+Math_sqrt((+$28)));
  28029. $30 = $24 + $29;
  28030. $31 = $16 * $16;
  28031. $32 = $17 * $17;
  28032. $33 = $31 + $32;
  28033. $34 = $33;
  28034. $35 = (+Math_sqrt((+$34)));
  28035. $36 = $30 + $35;
  28036. $37 = $36;
  28037. $38 = $18 * $18;
  28038. $39 = $19 * $19;
  28039. $40 = $38 + $39;
  28040. $sqrtf = (+Math_sqrt((+$40)));
  28041. $41 = ($$tr147|0)>(16);
  28042. if ($41) {
  28043. label = 6;
  28044. break;
  28045. }
  28046. $42 = $37 * $37;
  28047. $43 = $sqrtf * $sqrtf;
  28048. $44 = $42 - $43;
  28049. $45 = $44 > $10;
  28050. if (!($45)) {
  28051. break;
  28052. }
  28053. $46 = $$tr138 + $$tr140;
  28054. $47 = $46 * 0.5;
  28055. $48 = $$tr139 + $$tr141;
  28056. $49 = $48 * 0.5;
  28057. $50 = $$tr140 + $$tr142;
  28058. $51 = $50 * 0.5;
  28059. $52 = $$tr141 + $$tr143;
  28060. $53 = $52 * 0.5;
  28061. $54 = $$tr142 + $8;
  28062. $55 = $54 * 0.5;
  28063. $56 = $$tr143 + $9;
  28064. $57 = $56 * 0.5;
  28065. $58 = $47 + $51;
  28066. $59 = $58 * 0.5;
  28067. $60 = $49 + $53;
  28068. $61 = $60 * 0.5;
  28069. $62 = $51 + $55;
  28070. $63 = $62 * 0.5;
  28071. $64 = $53 + $57;
  28072. $65 = $64 * 0.5;
  28073. $66 = $59 + $63;
  28074. $67 = $66 * 0.5;
  28075. $68 = $61 + $65;
  28076. $69 = $68 * 0.5;
  28077. $70 = (($$tr147) + 1)|0;
  28078. _stbtt__tesselate_cubic($0,$1,$$tr138,$$tr139,$47,$49,$59,$61,$67,$69,$10,$70);
  28079. $$tr138 = $67;$$tr139 = $69;$$tr140 = $63;$$tr141 = $65;$$tr142 = $55;$$tr143 = $57;$$tr147 = $70;
  28080. }
  28081. if ((label|0) == 6) {
  28082. return;
  28083. }
  28084. $71 = HEAP32[$1>>2]|0;
  28085. _stbtt__add_point($0,$71,$8,$9);
  28086. $72 = HEAP32[$1>>2]|0;
  28087. $73 = (($72) + 1)|0;
  28088. HEAP32[$1>>2] = $73;
  28089. return;
  28090. }
  28091. function _stbtt_GetGlyphBox($0,$1,$2,$3,$4,$5) {
  28092. $0 = $0|0;
  28093. $1 = $1|0;
  28094. $2 = $2|0;
  28095. $3 = $3|0;
  28096. $4 = $4|0;
  28097. $5 = $5|0;
  28098. 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;
  28099. var $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  28100. sp = STACKTOP;
  28101. $6 = ((($0)) + 56|0);
  28102. $7 = HEAP32[$6>>2]|0;
  28103. $8 = ($7|0)==(0);
  28104. if (!($8)) {
  28105. _stbtt__GetGlyphInfoT2($0,$1,$2,$3,$4,$5);
  28106. $$1 = 1;
  28107. return ($$1|0);
  28108. }
  28109. $9 = (_stbtt__GetGlyfOffset($0,$1)|0);
  28110. $10 = ($9|0)<(0);
  28111. if ($10) {
  28112. $$1 = 0;
  28113. return ($$1|0);
  28114. }
  28115. $11 = ($2|0)==(0|0);
  28116. if (!($11)) {
  28117. $12 = ((($0)) + 4|0);
  28118. $13 = HEAP32[$12>>2]|0;
  28119. $14 = (($13) + ($9)|0);
  28120. $15 = ((($14)) + 2|0);
  28121. $16 = (_ttSHORT($15)|0);
  28122. $17 = $16 << 16 >> 16;
  28123. HEAP32[$2>>2] = $17;
  28124. }
  28125. $18 = ($3|0)==(0|0);
  28126. if (!($18)) {
  28127. $19 = ((($0)) + 4|0);
  28128. $20 = HEAP32[$19>>2]|0;
  28129. $21 = (($20) + ($9)|0);
  28130. $22 = ((($21)) + 4|0);
  28131. $23 = (_ttSHORT($22)|0);
  28132. $24 = $23 << 16 >> 16;
  28133. HEAP32[$3>>2] = $24;
  28134. }
  28135. $25 = ($4|0)==(0|0);
  28136. if (!($25)) {
  28137. $26 = ((($0)) + 4|0);
  28138. $27 = HEAP32[$26>>2]|0;
  28139. $28 = (($27) + ($9)|0);
  28140. $29 = ((($28)) + 6|0);
  28141. $30 = (_ttSHORT($29)|0);
  28142. $31 = $30 << 16 >> 16;
  28143. HEAP32[$4>>2] = $31;
  28144. }
  28145. $32 = ($5|0)==(0|0);
  28146. if ($32) {
  28147. $$1 = 1;
  28148. return ($$1|0);
  28149. }
  28150. $33 = ((($0)) + 4|0);
  28151. $34 = HEAP32[$33>>2]|0;
  28152. $35 = (($34) + ($9)|0);
  28153. $36 = ((($35)) + 8|0);
  28154. $37 = (_ttSHORT($36)|0);
  28155. $38 = $37 << 16 >> 16;
  28156. HEAP32[$5>>2] = $38;
  28157. $$1 = 1;
  28158. return ($$1|0);
  28159. }
  28160. function _stbtt__GetGlyphInfoT2($0,$1,$2,$3,$4,$5) {
  28161. $0 = $0|0;
  28162. $1 = $1|0;
  28163. $2 = $2|0;
  28164. $3 = $3|0;
  28165. $4 = $4|0;
  28166. $5 = $5|0;
  28167. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0;
  28168. var stop = 0;
  28169. sp = STACKTOP;
  28170. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  28171. $6 = sp;
  28172. $7 = ((($6)) + 4|0);
  28173. dest=$7; stop=dest+44|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  28174. HEAP32[$6>>2] = 1;
  28175. $8 = (_stbtt__run_charstring($0,$1,$6)|0);
  28176. $9 = ($2|0)==(0|0);
  28177. $10 = ($8|0)!=(0);
  28178. if ($9) {
  28179. STACKTOP = sp;return;
  28180. }
  28181. $11 = ((($6)) + 24|0);
  28182. $12 = HEAP32[$11>>2]|0;
  28183. $13 = $10 ? $12 : 0;
  28184. HEAP32[$2>>2] = $13;
  28185. $14 = ((($6)) + 32|0);
  28186. $15 = HEAP32[$14>>2]|0;
  28187. $16 = $10 ? $15 : 0;
  28188. HEAP32[$3>>2] = $16;
  28189. $17 = ((($6)) + 28|0);
  28190. $18 = HEAP32[$17>>2]|0;
  28191. $19 = $10 ? $18 : 0;
  28192. HEAP32[$4>>2] = $19;
  28193. $20 = ((($6)) + 36|0);
  28194. $21 = HEAP32[$20>>2]|0;
  28195. $22 = $10 ? $21 : 0;
  28196. HEAP32[$5>>2] = $22;
  28197. STACKTOP = sp;return;
  28198. }
  28199. function _stbtt__GetGlyfOffset($0,$1) {
  28200. $0 = $0|0;
  28201. $1 = $1|0;
  28202. var $$023 = 0, $$024 = 0, $$pn = 0, $$sink = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  28203. var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  28204. sp = STACKTOP;
  28205. $2 = ((($0)) + 56|0);
  28206. $3 = HEAP32[$2>>2]|0;
  28207. $4 = ($3|0)==(0);
  28208. if (!($4)) {
  28209. ___assert_fail((13635|0),(13212|0),1440,(13651|0));
  28210. // unreachable;
  28211. }
  28212. $5 = ((($0)) + 12|0);
  28213. $6 = HEAP32[$5>>2]|0;
  28214. $7 = ($6|0)>($1|0);
  28215. if (!($7)) {
  28216. $$024 = -1;
  28217. return ($$024|0);
  28218. }
  28219. $8 = ((($0)) + 44|0);
  28220. $9 = HEAP32[$8>>2]|0;
  28221. $10 = ($9|0)>(1);
  28222. if ($10) {
  28223. $$024 = -1;
  28224. return ($$024|0);
  28225. }
  28226. $11 = ($9|0)==(0);
  28227. $12 = ((($0)) + 24|0);
  28228. $13 = HEAP32[$12>>2]|0;
  28229. $14 = ((($0)) + 4|0);
  28230. $15 = HEAP32[$14>>2]|0;
  28231. $16 = ((($0)) + 16|0);
  28232. $17 = HEAP32[$16>>2]|0;
  28233. $18 = (($15) + ($17)|0);
  28234. if ($11) {
  28235. $19 = $1 << 1;
  28236. $20 = (($18) + ($19)|0);
  28237. $21 = (_ttUSHORT($20)|0);
  28238. $22 = $21&65535;
  28239. $23 = $22 << 1;
  28240. $24 = ((($20)) + 2|0);
  28241. $25 = (_ttUSHORT($24)|0);
  28242. $26 = $25&65535;
  28243. $27 = $26 << 1;
  28244. $$pn = $23;$$sink = $27;
  28245. } else {
  28246. $28 = $1 << 2;
  28247. $29 = (($18) + ($28)|0);
  28248. $30 = (_ttULONG($29)|0);
  28249. $31 = ((($29)) + 4|0);
  28250. $32 = (_ttULONG($31)|0);
  28251. $$pn = $30;$$sink = $32;
  28252. }
  28253. $33 = (($$sink) + ($13))|0;
  28254. $$023 = (($$pn) + ($13))|0;
  28255. $34 = ($$023|0)==($33|0);
  28256. $35 = $34 ? -1 : $$023;
  28257. $$024 = $35;
  28258. return ($$024|0);
  28259. }
  28260. function _ttSHORT($0) {
  28261. $0 = $0|0;
  28262. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  28263. sp = STACKTOP;
  28264. $1 = HEAP8[$0>>0]|0;
  28265. $2 = $1&255;
  28266. $3 = $2 << 8;
  28267. $4 = ((($0)) + 1|0);
  28268. $5 = HEAP8[$4>>0]|0;
  28269. $6 = $5&255;
  28270. $7 = $3 | $6;
  28271. $8 = $7&65535;
  28272. return ($8|0);
  28273. }
  28274. function _ttUSHORT($0) {
  28275. $0 = $0|0;
  28276. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  28277. sp = STACKTOP;
  28278. $1 = HEAP8[$0>>0]|0;
  28279. $2 = $1&255;
  28280. $3 = $2 << 8;
  28281. $4 = ((($0)) + 1|0);
  28282. $5 = HEAP8[$4>>0]|0;
  28283. $6 = $5&255;
  28284. $7 = $3 | $6;
  28285. $8 = $7&65535;
  28286. return ($8|0);
  28287. }
  28288. function _ttULONG($0) {
  28289. $0 = $0|0;
  28290. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  28291. sp = STACKTOP;
  28292. $1 = HEAP8[$0>>0]|0;
  28293. $2 = $1&255;
  28294. $3 = $2 << 24;
  28295. $4 = ((($0)) + 1|0);
  28296. $5 = HEAP8[$4>>0]|0;
  28297. $6 = $5&255;
  28298. $7 = $6 << 16;
  28299. $8 = $7 | $3;
  28300. $9 = ((($0)) + 2|0);
  28301. $10 = HEAP8[$9>>0]|0;
  28302. $11 = $10&255;
  28303. $12 = $11 << 8;
  28304. $13 = $8 | $12;
  28305. $14 = ((($0)) + 3|0);
  28306. $15 = HEAP8[$14>>0]|0;
  28307. $16 = $15&255;
  28308. $17 = $13 | $16;
  28309. return ($17|0);
  28310. }
  28311. function _stbtt__run_charstring($0,$1,$2) {
  28312. $0 = $0|0;
  28313. $1 = $1|0;
  28314. $2 = $2|0;
  28315. var $$ = 0, $$0274$be = 0, $$0274335 = 0, $$0276$be = 0, $$0276334 = 0, $$0279 = 0.0, $$0280 = 0.0, $$0282318 = 0.0, $$0285$be = 0, $$0285333 = 0, $$0288$be = 0, $$0288332 = 0, $$0290329 = 0, $$0294$be = 0, $$0294331 = 0, $$1277 = 0, $$1283 = 0.0, $$1286 = 0, $$1291 = 0, $$2292 = 0;
  28316. var $$3 = 0, $$3293 = 0, $$363 = 0.0, $$4 = 0, $$5327 = 0, $$6$lcssa = 0, $$6322 = 0, $$7$lcssa = 0, $$7319 = 0, $$8317 = 0, $$byval_copy1 = 0, $$lcssa = 0, $$lcssa316 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0.0, $103 = 0, $104 = 0, $105 = 0.0;
  28317. var $106 = 0, $107 = 0.0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0.0, $113 = 0.0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0.0, $119 = 0, $12 = 0, $120 = 0, $121 = 0.0, $122 = 0, $123 = 0;
  28318. var $124 = 0.0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0.0, $13 = 0, $130 = 0, $131 = 0.0, $132 = 0.0, $133 = 0, $134 = 0, $135 = 0, $136 = 0.0, $137 = 0, $138 = 0, $139 = 0.0, $14 = 0, $140 = 0, $141 = 0;
  28319. var $142 = 0.0, $143 = 0, $144 = 0, $145 = 0.0, $146 = 0, $147 = 0, $148 = 0.0, $149 = 0, $15 = 0, $150 = 0, $151 = 0.0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0.0, $16 = 0;
  28320. var $160 = 0, $161 = 0, $162 = 0.0, $163 = 0, $164 = 0, $165 = 0.0, $166 = 0, $167 = 0, $168 = 0.0, $169 = 0, $17 = 0, $170 = 0, $171 = 0.0, $172 = 0, $173 = 0, $174 = 0.0, $175 = 0, $176 = 0, $177 = 0, $178 = 0;
  28321. var $179 = 0, $18 = 0, $180 = 0, $181 = 0.0, $182 = 0, $183 = 0.0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0.0, $189 = 0, $19 = 0, $190 = 0, $191 = 0.0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0;
  28322. var $197 = 0, $198 = 0.0, $199 = 0, $20 = 0, $200 = 0.0, $201 = 0, $202 = 0, $203 = 0.0, $204 = 0, $205 = 0, $206 = 0.0, $207 = 0, $208 = 0, $209 = 0.0, $21 = 0, $210 = 0, $211 = 0.0, $212 = 0, $213 = 0, $214 = 0;
  28323. var $215 = 0, $216 = 0, $217 = 0.0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0.0, $223 = 0, $224 = 0.0, $225 = 0, $226 = 0.0, $227 = 0, $228 = 0, $229 = 0.0, $23 = 0, $230 = 0, $231 = 0, $232 = 0;
  28324. var $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0.0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0;
  28325. var $251 = 0, $252 = 0.0, $253 = 0.0, $254 = 0.0, $255 = 0.0, $256 = 0.0, $257 = 0.0, $258 = 0.0, $259 = 0.0, $26 = 0, $260 = 0, $261 = 0.0, $262 = 0.0, $263 = 0.0, $264 = 0.0, $265 = 0.0, $266 = 0.0, $267 = 0.0, $268 = 0.0, $269 = 0.0;
  28326. var $27 = 0, $270 = 0.0, $271 = 0.0, $272 = 0.0, $273 = 0, $274 = 0.0, $275 = 0.0, $276 = 0.0, $277 = 0.0, $278 = 0.0, $279 = 0.0, $28 = 0, $280 = 0.0, $281 = 0.0, $282 = 0.0, $283 = 0.0, $284 = 0.0, $285 = 0.0, $286 = 0, $287 = 0.0;
  28327. var $288 = 0.0, $289 = 0.0, $29 = 0, $290 = 0.0, $291 = 0.0, $292 = 0.0, $293 = 0.0, $294 = 0.0, $295 = 0.0, $296 = 0.0, $297 = 0.0, $298 = 0.0, $299 = 0.0, $3 = 0, $30 = 0, $300 = 0.0, $301 = 0.0, $302 = 0.0, $303 = 0.0, $304 = 0.0;
  28328. var $305 = 0.0, $306 = 0, $307 = 0.0, $308 = 0.0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0.0, $316 = 0.0, $317 = 0, $318 = 0, $319 = 0.0, $32 = 0, $320 = 0, $321 = 0, $322 = 0;
  28329. var $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0;
  28330. var $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0.0, $64 = 0, $65 = 0, $66 = 0.0, $67 = 0, $68 = 0, $69 = 0;
  28331. var $7 = 0, $70 = 0.0, $71 = 0, $72 = 0, $73 = 0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0.0, $78 = 0, $79 = 0, $8 = 0, $80 = 0.0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0;
  28332. var $88 = 0.0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0.0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0.0, $fabsf = 0.0, $fabsf296 = 0.0, $not$ = 0, $or$cond3 = 0, label = 0, sp = 0;
  28333. sp = STACKTOP;
  28334. STACKTOP = STACKTOP + 368|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(368|0);
  28335. $$byval_copy1 = sp + 352|0;
  28336. $3 = sp + 160|0;
  28337. $4 = sp + 40|0;
  28338. $5 = sp + 24|0;
  28339. $6 = sp;
  28340. $7 = sp + 12|0;
  28341. $8 = ((($0)) + 84|0);
  28342. ;HEAP32[$5>>2]=HEAP32[$8>>2]|0;HEAP32[$5+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$5+8>>2]=HEAP32[$8+8>>2]|0;
  28343. $9 = ((($0)) + 60|0);
  28344. ;HEAP32[$$byval_copy1>>2]=HEAP32[$9>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$9+8>>2]|0;
  28345. _stbtt__cff_index_get($6,$$byval_copy1,$1);
  28346. $10 = ((($6)) + 4|0);
  28347. $11 = HEAP32[$10>>2]|0;
  28348. $12 = ((($6)) + 8|0);
  28349. $13 = HEAP32[$12>>2]|0;
  28350. $14 = ($11|0)<($13|0);
  28351. if (!($14)) {
  28352. $$3 = 0;
  28353. STACKTOP = sp;return ($$3|0);
  28354. }
  28355. $15 = ((($0)) + 116|0);
  28356. $16 = ((($0)) + 72|0);
  28357. $17 = ((($3)) + 4|0);
  28358. $18 = ((($3)) + 8|0);
  28359. $19 = ((($3)) + 12|0);
  28360. $20 = ((($3)) + 16|0);
  28361. $21 = ((($3)) + 20|0);
  28362. $22 = ((($3)) + 24|0);
  28363. $23 = ((($3)) + 4|0);
  28364. $24 = ((($3)) + 8|0);
  28365. $25 = ((($3)) + 12|0);
  28366. $26 = ((($3)) + 16|0);
  28367. $27 = ((($3)) + 20|0);
  28368. $28 = ((($3)) + 24|0);
  28369. $29 = ((($3)) + 28|0);
  28370. $30 = ((($3)) + 32|0);
  28371. $31 = ((($3)) + 36|0);
  28372. $32 = ((($3)) + 40|0);
  28373. $33 = ((($3)) + 44|0);
  28374. $34 = ((($3)) + 4|0);
  28375. $35 = ((($3)) + 8|0);
  28376. $36 = ((($3)) + 12|0);
  28377. $37 = ((($3)) + 16|0);
  28378. $38 = ((($3)) + 20|0);
  28379. $39 = ((($3)) + 24|0);
  28380. $40 = ((($3)) + 28|0);
  28381. $41 = ((($3)) + 32|0);
  28382. $42 = ((($3)) + 4|0);
  28383. $43 = ((($3)) + 8|0);
  28384. $44 = ((($3)) + 12|0);
  28385. $45 = ((($3)) + 16|0);
  28386. $46 = ((($3)) + 20|0);
  28387. $47 = ((($3)) + 24|0);
  28388. $48 = ((($3)) + 28|0);
  28389. $49 = ((($3)) + 32|0);
  28390. $50 = ((($3)) + 36|0);
  28391. $51 = ((($3)) + 40|0);
  28392. $$0274335 = 1;$$0276334 = 0;$$0285333 = 0;$$0288332 = 0;$$0294331 = 0;
  28393. L4: while(1) {
  28394. $52 = (_stbtt__buf_get8($6)|0);
  28395. L6: do {
  28396. switch ($52<<24>>24) {
  28397. case 14: {
  28398. label = 63;
  28399. break L4;
  28400. break;
  28401. }
  28402. case 20: case 19: {
  28403. $53 = ($$0274335|0)==(0);
  28404. if ($53) {
  28405. $$1277 = $$0276334;
  28406. } else {
  28407. $54 = (($$0294331|0) / 2)&-1;
  28408. $55 = (($$0276334) + ($54))|0;
  28409. $$1277 = $55;
  28410. }
  28411. $56 = (($$1277) + 7)|0;
  28412. $57 = (($56|0) / 8)&-1;
  28413. _stbtt__buf_skip($6,$57);
  28414. $$0274$be = 0;$$0276$be = $$1277;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28415. label = 73;
  28416. break;
  28417. }
  28418. case 23: case 18: case 3: case 1: {
  28419. $58 = (($$0294331|0) / 2)&-1;
  28420. $59 = (($$0276334) + ($58))|0;
  28421. $$0274$be = $$0274335;$$0276$be = $59;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28422. label = 73;
  28423. break;
  28424. }
  28425. case 21: {
  28426. $60 = ($$0294331|0)<(2);
  28427. if ($60) {
  28428. $$3 = 0;
  28429. label = 80;
  28430. break L4;
  28431. }
  28432. $61 = (($$0294331) + -2)|0;
  28433. $62 = (($3) + ($61<<2)|0);
  28434. $63 = +HEAPF32[$62>>2];
  28435. $64 = (($$0294331) + -1)|0;
  28436. $65 = (($3) + ($64<<2)|0);
  28437. $66 = +HEAPF32[$65>>2];
  28438. _stbtt__csctx_rmove_to($2,$63,$66);
  28439. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28440. label = 73;
  28441. break;
  28442. }
  28443. case 4: {
  28444. $67 = ($$0294331|0)<(1);
  28445. if ($67) {
  28446. $$3 = 0;
  28447. label = 80;
  28448. break L4;
  28449. }
  28450. $68 = (($$0294331) + -1)|0;
  28451. $69 = (($3) + ($68<<2)|0);
  28452. $70 = +HEAPF32[$69>>2];
  28453. _stbtt__csctx_rmove_to($2,0.0,$70);
  28454. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28455. label = 73;
  28456. break;
  28457. }
  28458. case 22: {
  28459. $71 = ($$0294331|0)<(1);
  28460. if ($71) {
  28461. $$3 = 0;
  28462. label = 80;
  28463. break L4;
  28464. }
  28465. $72 = (($$0294331) + -1)|0;
  28466. $73 = (($3) + ($72<<2)|0);
  28467. $74 = +HEAPF32[$73>>2];
  28468. _stbtt__csctx_rmove_to($2,$74,0.0);
  28469. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28470. label = 73;
  28471. break;
  28472. }
  28473. case 5: {
  28474. $75 = ($$0294331|0)<(2);
  28475. if ($75) {
  28476. $$3 = 0;
  28477. label = 80;
  28478. break L4;
  28479. } else {
  28480. $$0290329 = 0;$79 = 1;
  28481. }
  28482. while(1) {
  28483. $76 = (($3) + ($$0290329<<2)|0);
  28484. $77 = +HEAPF32[$76>>2];
  28485. $78 = (($3) + ($79<<2)|0);
  28486. $80 = +HEAPF32[$78>>2];
  28487. _stbtt__csctx_rline_to($2,$77,$80);
  28488. $81 = (($$0290329) + 2)|0;
  28489. $82 = $81 | 1;
  28490. $83 = ($82|0)<($$0294331|0);
  28491. if ($83) {
  28492. $$0290329 = $81;$79 = $82;
  28493. } else {
  28494. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28495. label = 73;
  28496. break;
  28497. }
  28498. }
  28499. break;
  28500. }
  28501. case 7: {
  28502. $84 = ($$0294331|0)<(1);
  28503. if ($84) {
  28504. $$3 = 0;
  28505. label = 80;
  28506. break L4;
  28507. } else {
  28508. $$2292 = 0;
  28509. label = 20;
  28510. }
  28511. break;
  28512. }
  28513. case 6: {
  28514. $85 = ($$0294331|0)<(1);
  28515. if ($85) {
  28516. $$3 = 0;
  28517. label = 80;
  28518. break L4;
  28519. } else {
  28520. $$1291 = 0;
  28521. label = 18;
  28522. }
  28523. break;
  28524. }
  28525. case 31: {
  28526. $94 = ($$0294331|0)<(4);
  28527. if ($94) {
  28528. $$3 = 0;
  28529. label = 80;
  28530. break L4;
  28531. } else {
  28532. $$4 = 0;
  28533. label = 28;
  28534. }
  28535. break;
  28536. }
  28537. case 30: {
  28538. $95 = ($$0294331|0)<(4);
  28539. if ($95) {
  28540. $$3 = 0;
  28541. label = 80;
  28542. break L4;
  28543. } else {
  28544. $$3293 = 0;
  28545. label = 24;
  28546. }
  28547. break;
  28548. }
  28549. case 8: {
  28550. $134 = ($$0294331|0)<(6);
  28551. if ($134) {
  28552. $$3 = 0;
  28553. label = 80;
  28554. break L4;
  28555. } else {
  28556. $$5327 = 0;$150 = 5;
  28557. }
  28558. while(1) {
  28559. $135 = (($3) + ($$5327<<2)|0);
  28560. $136 = +HEAPF32[$135>>2];
  28561. $137 = $$5327 | 1;
  28562. $138 = (($3) + ($137<<2)|0);
  28563. $139 = +HEAPF32[$138>>2];
  28564. $140 = (($$5327) + 2)|0;
  28565. $141 = (($3) + ($140<<2)|0);
  28566. $142 = +HEAPF32[$141>>2];
  28567. $143 = (($$5327) + 3)|0;
  28568. $144 = (($3) + ($143<<2)|0);
  28569. $145 = +HEAPF32[$144>>2];
  28570. $146 = (($$5327) + 4)|0;
  28571. $147 = (($3) + ($146<<2)|0);
  28572. $148 = +HEAPF32[$147>>2];
  28573. $149 = (($3) + ($150<<2)|0);
  28574. $151 = +HEAPF32[$149>>2];
  28575. _stbtt__csctx_rccurve_to($2,$136,$139,$142,$145,$148,$151);
  28576. $152 = (($$5327) + 6)|0;
  28577. $153 = (($$5327) + 11)|0;
  28578. $154 = ($153|0)<($$0294331|0);
  28579. if ($154) {
  28580. $$5327 = $152;$150 = $153;
  28581. } else {
  28582. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28583. label = 73;
  28584. break;
  28585. }
  28586. }
  28587. break;
  28588. }
  28589. case 24: {
  28590. $155 = ($$0294331|0)<(8);
  28591. if ($155) {
  28592. $$3 = 0;
  28593. label = 80;
  28594. break L4;
  28595. }
  28596. $156 = (($$0294331) + -2)|0;
  28597. $157 = ($156|0)>(5);
  28598. if ($157) {
  28599. $$6322 = 0;$161 = 1;$173 = 5;
  28600. while(1) {
  28601. $158 = (($3) + ($$6322<<2)|0);
  28602. $159 = +HEAPF32[$158>>2];
  28603. $160 = (($3) + ($161<<2)|0);
  28604. $162 = +HEAPF32[$160>>2];
  28605. $163 = (($$6322) + 2)|0;
  28606. $164 = (($3) + ($163<<2)|0);
  28607. $165 = +HEAPF32[$164>>2];
  28608. $166 = (($$6322) + 3)|0;
  28609. $167 = (($3) + ($166<<2)|0);
  28610. $168 = +HEAPF32[$167>>2];
  28611. $169 = (($$6322) + 4)|0;
  28612. $170 = (($3) + ($169<<2)|0);
  28613. $171 = +HEAPF32[$170>>2];
  28614. $172 = (($3) + ($173<<2)|0);
  28615. $174 = +HEAPF32[$172>>2];
  28616. _stbtt__csctx_rccurve_to($2,$159,$162,$165,$168,$171,$174);
  28617. $175 = (($$6322) + 6)|0;
  28618. $176 = (($$6322) + 11)|0;
  28619. $177 = ($176|0)<($156|0);
  28620. $178 = $175 | 1;
  28621. if ($177) {
  28622. $$6322 = $175;$161 = $178;$173 = $176;
  28623. } else {
  28624. $$6$lcssa = $175;$$lcssa316 = $178;
  28625. break;
  28626. }
  28627. }
  28628. } else {
  28629. $$6$lcssa = 0;$$lcssa316 = 1;
  28630. }
  28631. $179 = ($$lcssa316|0)<($$0294331|0);
  28632. if (!($179)) {
  28633. $$3 = 0;
  28634. label = 80;
  28635. break L4;
  28636. }
  28637. $180 = (($3) + ($$6$lcssa<<2)|0);
  28638. $181 = +HEAPF32[$180>>2];
  28639. $182 = (($3) + ($$lcssa316<<2)|0);
  28640. $183 = +HEAPF32[$182>>2];
  28641. _stbtt__csctx_rline_to($2,$181,$183);
  28642. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28643. label = 73;
  28644. break;
  28645. }
  28646. case 25: {
  28647. $184 = ($$0294331|0)<(8);
  28648. if ($184) {
  28649. $$3 = 0;
  28650. label = 80;
  28651. break L4;
  28652. }
  28653. $185 = (($$0294331) + -6)|0;
  28654. $186 = ($185|0)>(1);
  28655. if ($186) {
  28656. $$7319 = 0;$190 = 1;
  28657. while(1) {
  28658. $187 = (($3) + ($$7319<<2)|0);
  28659. $188 = +HEAPF32[$187>>2];
  28660. $189 = (($3) + ($190<<2)|0);
  28661. $191 = +HEAPF32[$189>>2];
  28662. _stbtt__csctx_rline_to($2,$188,$191);
  28663. $192 = (($$7319) + 2)|0;
  28664. $193 = $192 | 1;
  28665. $194 = ($193|0)<($185|0);
  28666. if ($194) {
  28667. $$7319 = $192;$190 = $193;
  28668. } else {
  28669. $$7$lcssa = $192;$$lcssa = $193;
  28670. break;
  28671. }
  28672. }
  28673. } else {
  28674. $$7$lcssa = 0;$$lcssa = 1;
  28675. }
  28676. $195 = (($$7$lcssa) + 5)|0;
  28677. $196 = ($195|0)<($$0294331|0);
  28678. if (!($196)) {
  28679. $$3 = 0;
  28680. label = 80;
  28681. break L4;
  28682. }
  28683. $197 = (($3) + ($$7$lcssa<<2)|0);
  28684. $198 = +HEAPF32[$197>>2];
  28685. $199 = (($3) + ($$lcssa<<2)|0);
  28686. $200 = +HEAPF32[$199>>2];
  28687. $201 = (($$7$lcssa) + 2)|0;
  28688. $202 = (($3) + ($201<<2)|0);
  28689. $203 = +HEAPF32[$202>>2];
  28690. $204 = (($$7$lcssa) + 3)|0;
  28691. $205 = (($3) + ($204<<2)|0);
  28692. $206 = +HEAPF32[$205>>2];
  28693. $207 = (($$7$lcssa) + 4)|0;
  28694. $208 = (($3) + ($207<<2)|0);
  28695. $209 = +HEAPF32[$208>>2];
  28696. $210 = (($3) + ($195<<2)|0);
  28697. $211 = +HEAPF32[$210>>2];
  28698. _stbtt__csctx_rccurve_to($2,$198,$200,$203,$206,$209,$211);
  28699. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28700. label = 73;
  28701. break;
  28702. }
  28703. case 27: case 26: {
  28704. $212 = ($$0294331|0)<(4);
  28705. if ($212) {
  28706. $$3 = 0;
  28707. label = 80;
  28708. break L4;
  28709. }
  28710. $213 = $$0294331 & 1;
  28711. $214 = ($213|0)==(0);
  28712. $215 = (($213) + 3)|0;
  28713. $216 = ($215|0)<($$0294331|0);
  28714. if ($216) {
  28715. $not$ = $214 ^ 1;
  28716. $$ = $not$&1;
  28717. $217 = +HEAPF32[$3>>2];
  28718. $$363 = $214 ? 0.0 : $217;
  28719. $218 = ($52<<24>>24)==(27);
  28720. $$0282318 = $$363;$$8317 = $$;$228 = $215;
  28721. while(1) {
  28722. $219 = (($$8317) + 2)|0;
  28723. $220 = (($$8317) + 1)|0;
  28724. $221 = (($3) + ($219<<2)|0);
  28725. $222 = +HEAPF32[$221>>2];
  28726. $223 = (($3) + ($$8317<<2)|0);
  28727. $224 = +HEAPF32[$223>>2];
  28728. $225 = (($3) + ($220<<2)|0);
  28729. $226 = +HEAPF32[$225>>2];
  28730. $227 = (($3) + ($228<<2)|0);
  28731. $229 = +HEAPF32[$227>>2];
  28732. if ($218) {
  28733. _stbtt__csctx_rccurve_to($2,$224,$$0282318,$226,$222,$229,0.0);
  28734. } else {
  28735. _stbtt__csctx_rccurve_to($2,$$0282318,$224,$226,$222,0.0,$229);
  28736. }
  28737. $230 = (($$8317) + 4)|0;
  28738. $231 = (($$8317) + 7)|0;
  28739. $232 = ($231|0)<($$0294331|0);
  28740. if ($232) {
  28741. $$0282318 = 0.0;$$8317 = $230;$228 = $231;
  28742. } else {
  28743. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28744. label = 73;
  28745. break;
  28746. }
  28747. }
  28748. } else {
  28749. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28750. label = 73;
  28751. }
  28752. break;
  28753. }
  28754. case 10: {
  28755. $233 = ($$0285333|0)==(0);
  28756. if ($233) {
  28757. $234 = HEAP32[$15>>2]|0;
  28758. $235 = ($234|0)==(0);
  28759. if ($235) {
  28760. $$1286 = 1;
  28761. label = 54;
  28762. } else {
  28763. _stbtt__cid_get_glyph_subrs($5,$0,$1);
  28764. $$1286 = 1;
  28765. label = 54;
  28766. }
  28767. } else {
  28768. $$1286 = $$0285333;
  28769. label = 54;
  28770. }
  28771. break;
  28772. }
  28773. case 29: {
  28774. $$1286 = $$0285333;
  28775. label = 54;
  28776. break;
  28777. }
  28778. case 11: {
  28779. $247 = ($$0288332|0)<(1);
  28780. if ($247) {
  28781. $$3 = 0;
  28782. label = 80;
  28783. break L4;
  28784. }
  28785. $248 = (($$0288332) + -1)|0;
  28786. $249 = (($4) + (($248*12)|0)|0);
  28787. ;HEAP32[$6>>2]=HEAP32[$249>>2]|0;HEAP32[$6+4>>2]=HEAP32[$249+4>>2]|0;HEAP32[$6+8>>2]=HEAP32[$249+8>>2]|0;
  28788. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $248;$$0294$be = $$0294331;
  28789. label = 73;
  28790. break;
  28791. }
  28792. case 12: {
  28793. $250 = (_stbtt__buf_get8($6)|0);
  28794. switch ($250<<24>>24) {
  28795. case 34: {
  28796. $251 = ($$0294331|0)<(7);
  28797. if ($251) {
  28798. $$3 = 0;
  28799. label = 80;
  28800. break L4;
  28801. }
  28802. $252 = +HEAPF32[$3>>2];
  28803. $253 = +HEAPF32[$17>>2];
  28804. $254 = +HEAPF32[$18>>2];
  28805. $255 = +HEAPF32[$19>>2];
  28806. $256 = +HEAPF32[$20>>2];
  28807. $257 = +HEAPF32[$21>>2];
  28808. $258 = +HEAPF32[$22>>2];
  28809. _stbtt__csctx_rccurve_to($2,$252,0.0,$253,$254,$255,0.0);
  28810. $259 = -$254;
  28811. _stbtt__csctx_rccurve_to($2,$256,0.0,$257,$259,$258,0.0);
  28812. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28813. label = 73;
  28814. break L6;
  28815. break;
  28816. }
  28817. case 35: {
  28818. $260 = ($$0294331|0)<(13);
  28819. if ($260) {
  28820. $$3 = 0;
  28821. label = 80;
  28822. break L4;
  28823. }
  28824. $261 = +HEAPF32[$3>>2];
  28825. $262 = +HEAPF32[$23>>2];
  28826. $263 = +HEAPF32[$24>>2];
  28827. $264 = +HEAPF32[$25>>2];
  28828. $265 = +HEAPF32[$26>>2];
  28829. $266 = +HEAPF32[$27>>2];
  28830. $267 = +HEAPF32[$28>>2];
  28831. $268 = +HEAPF32[$29>>2];
  28832. $269 = +HEAPF32[$30>>2];
  28833. $270 = +HEAPF32[$31>>2];
  28834. $271 = +HEAPF32[$32>>2];
  28835. $272 = +HEAPF32[$33>>2];
  28836. _stbtt__csctx_rccurve_to($2,$261,$262,$263,$264,$265,$266);
  28837. _stbtt__csctx_rccurve_to($2,$267,$268,$269,$270,$271,$272);
  28838. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28839. label = 73;
  28840. break L6;
  28841. break;
  28842. }
  28843. case 36: {
  28844. $273 = ($$0294331|0)<(9);
  28845. if ($273) {
  28846. $$3 = 0;
  28847. label = 80;
  28848. break L4;
  28849. }
  28850. $274 = +HEAPF32[$3>>2];
  28851. $275 = +HEAPF32[$34>>2];
  28852. $276 = +HEAPF32[$35>>2];
  28853. $277 = +HEAPF32[$36>>2];
  28854. $278 = +HEAPF32[$37>>2];
  28855. $279 = +HEAPF32[$38>>2];
  28856. $280 = +HEAPF32[$39>>2];
  28857. $281 = +HEAPF32[$40>>2];
  28858. $282 = +HEAPF32[$41>>2];
  28859. _stbtt__csctx_rccurve_to($2,$274,$275,$276,$277,$278,0.0);
  28860. $283 = $275 + $277;
  28861. $284 = $283 + $281;
  28862. $285 = -$284;
  28863. _stbtt__csctx_rccurve_to($2,$279,0.0,$280,$281,$282,$285);
  28864. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28865. label = 73;
  28866. break L6;
  28867. break;
  28868. }
  28869. case 37: {
  28870. $286 = ($$0294331|0)<(11);
  28871. if ($286) {
  28872. $$3 = 0;
  28873. label = 80;
  28874. break L4;
  28875. }
  28876. $287 = +HEAPF32[$3>>2];
  28877. $288 = +HEAPF32[$42>>2];
  28878. $289 = +HEAPF32[$43>>2];
  28879. $290 = +HEAPF32[$44>>2];
  28880. $291 = +HEAPF32[$45>>2];
  28881. $292 = +HEAPF32[$46>>2];
  28882. $293 = +HEAPF32[$47>>2];
  28883. $294 = +HEAPF32[$48>>2];
  28884. $295 = +HEAPF32[$49>>2];
  28885. $296 = +HEAPF32[$50>>2];
  28886. $297 = +HEAPF32[$51>>2];
  28887. $298 = $287 + $289;
  28888. $299 = $298 + $291;
  28889. $300 = $299 + $293;
  28890. $301 = $300 + $295;
  28891. $302 = $288 + $290;
  28892. $303 = $302 + $292;
  28893. $304 = $303 + $294;
  28894. $305 = $304 + $296;
  28895. $fabsf = (+Math_abs((+$301)));
  28896. $fabsf296 = (+Math_abs((+$305)));
  28897. $306 = $fabsf > $fabsf296;
  28898. $307 = -$305;
  28899. $308 = -$301;
  28900. $$0280 = $306 ? $297 : $308;
  28901. $$0279 = $306 ? $307 : $297;
  28902. _stbtt__csctx_rccurve_to($2,$287,$288,$289,$290,$291,$292);
  28903. _stbtt__csctx_rccurve_to($2,$293,$294,$295,$296,$$0280,$$0279);
  28904. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28905. label = 73;
  28906. break L6;
  28907. break;
  28908. }
  28909. default: {
  28910. $$3 = 0;
  28911. label = 80;
  28912. break L4;
  28913. }
  28914. }
  28915. break;
  28916. }
  28917. case -1: {
  28918. label = 76;
  28919. break;
  28920. }
  28921. case 28: {
  28922. label = 77;
  28923. break;
  28924. }
  28925. default: {
  28926. $312 = ($52&255)<(32);
  28927. $313 = ($52<<24>>24)==(-1);
  28928. $or$cond3 = $312 | $313;
  28929. if ($or$cond3) {
  28930. $$3 = 0;
  28931. label = 80;
  28932. break L4;
  28933. }
  28934. if ($313) {
  28935. label = 76;
  28936. } else {
  28937. label = 77;
  28938. }
  28939. }
  28940. }
  28941. } while(0);
  28942. if ((label|0) == 54) {
  28943. label = 0;
  28944. $236 = ($$0294331|0)<(1);
  28945. if ($236) {
  28946. $$3 = 0;
  28947. label = 80;
  28948. break;
  28949. }
  28950. $237 = (($$0294331) + -1)|0;
  28951. $238 = (($3) + ($237<<2)|0);
  28952. $239 = +HEAPF32[$238>>2];
  28953. $240 = (~~(($239)));
  28954. $241 = ($$0288332|0)>(9);
  28955. if ($241) {
  28956. $$3 = 0;
  28957. label = 80;
  28958. break;
  28959. }
  28960. $242 = (($$0288332) + 1)|0;
  28961. $243 = (($4) + (($$0288332*12)|0)|0);
  28962. ;HEAP32[$243>>2]=HEAP32[$6>>2]|0;HEAP32[$243+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$243+8>>2]=HEAP32[$6+8>>2]|0;
  28963. $244 = ($52<<24>>24)==(10);
  28964. if ($244) {
  28965. ;HEAP32[$7>>2]=HEAP32[$5>>2]|0;HEAP32[$7+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$5+8>>2]|0;
  28966. } else {
  28967. ;HEAP32[$7>>2]=HEAP32[$16>>2]|0;HEAP32[$7+4>>2]=HEAP32[$16+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$16+8>>2]|0;
  28968. }
  28969. ;HEAP32[$$byval_copy1>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$7+8>>2]|0;
  28970. _stbtt__get_subr($6,$$byval_copy1,$240);
  28971. $245 = HEAP32[$12>>2]|0;
  28972. $246 = ($245|0)==(0);
  28973. if ($246) {
  28974. $$3 = 0;
  28975. label = 80;
  28976. break;
  28977. }
  28978. HEAP32[$10>>2] = 0;
  28979. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$1286;$$0288$be = $242;$$0294$be = $237;
  28980. label = 73;
  28981. }
  28982. else if ((label|0) == 76) {
  28983. label = 0;
  28984. $314 = (_stbtt__buf_get($6,4)|0);
  28985. $315 = (+($314>>>0));
  28986. $316 = $315 * 1.52587890625E-5;
  28987. $$1283 = $316;
  28988. label = 78;
  28989. }
  28990. else if ((label|0) == 77) {
  28991. label = 0;
  28992. _stbtt__buf_skip($6,-1);
  28993. $317 = (_stbtt__cff_int($6)|0);
  28994. $318 = $317&65535;
  28995. $319 = (+($318<<16>>16));
  28996. $$1283 = $319;
  28997. label = 78;
  28998. }
  28999. if ((label|0) == 78) {
  29000. label = 0;
  29001. $320 = ($$0294331|0)>(47);
  29002. if ($320) {
  29003. $$3 = 0;
  29004. label = 80;
  29005. break;
  29006. }
  29007. $321 = (($$0294331) + 1)|0;
  29008. $322 = (($3) + ($$0294331<<2)|0);
  29009. HEAPF32[$322>>2] = $$1283;
  29010. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = $321;
  29011. label = 73;
  29012. }
  29013. while(1) {
  29014. if ((label|0) == 18) {
  29015. label = 0;
  29016. $86 = ($$1291|0)<($$0294331|0);
  29017. if (!($86)) {
  29018. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29019. label = 73;
  29020. continue;
  29021. }
  29022. $87 = (($3) + ($$1291<<2)|0);
  29023. $88 = +HEAPF32[$87>>2];
  29024. _stbtt__csctx_rline_to($2,$88,0.0);
  29025. $89 = (($$1291) + 1)|0;
  29026. $$2292 = $89;
  29027. label = 20;
  29028. continue;
  29029. }
  29030. else if ((label|0) == 20) {
  29031. label = 0;
  29032. $90 = ($$2292|0)<($$0294331|0);
  29033. if (!($90)) {
  29034. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29035. label = 73;
  29036. continue;
  29037. }
  29038. $91 = (($3) + ($$2292<<2)|0);
  29039. $92 = +HEAPF32[$91>>2];
  29040. _stbtt__csctx_rline_to($2,0.0,$92);
  29041. $93 = (($$2292) + 1)|0;
  29042. $$1291 = $93;
  29043. label = 18;
  29044. continue;
  29045. }
  29046. else if ((label|0) == 24) {
  29047. label = 0;
  29048. $96 = (($$3293) + 3)|0;
  29049. $97 = ($96|0)<($$0294331|0);
  29050. if (!($97)) {
  29051. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29052. label = 73;
  29053. continue;
  29054. }
  29055. $98 = (($3) + ($$3293<<2)|0);
  29056. $99 = +HEAPF32[$98>>2];
  29057. $100 = (($$3293) + 1)|0;
  29058. $101 = (($3) + ($100<<2)|0);
  29059. $102 = +HEAPF32[$101>>2];
  29060. $103 = (($$3293) + 2)|0;
  29061. $104 = (($3) + ($103<<2)|0);
  29062. $105 = +HEAPF32[$104>>2];
  29063. $106 = (($3) + ($96<<2)|0);
  29064. $107 = +HEAPF32[$106>>2];
  29065. $108 = (($$0294331) - ($$3293))|0;
  29066. $109 = ($108|0)==(5);
  29067. if ($109) {
  29068. $110 = (($$3293) + 4)|0;
  29069. $111 = (($3) + ($110<<2)|0);
  29070. $112 = +HEAPF32[$111>>2];
  29071. $113 = $112;
  29072. } else {
  29073. $113 = 0.0;
  29074. }
  29075. _stbtt__csctx_rccurve_to($2,0.0,$99,$102,$105,$107,$113);
  29076. $114 = (($$3293) + 4)|0;
  29077. $$4 = $114;
  29078. label = 28;
  29079. continue;
  29080. }
  29081. else if ((label|0) == 28) {
  29082. label = 0;
  29083. $115 = (($$4) + 3)|0;
  29084. $116 = ($115|0)<($$0294331|0);
  29085. if (!($116)) {
  29086. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29087. label = 73;
  29088. continue;
  29089. }
  29090. $117 = (($3) + ($$4<<2)|0);
  29091. $118 = +HEAPF32[$117>>2];
  29092. $119 = (($$4) + 1)|0;
  29093. $120 = (($3) + ($119<<2)|0);
  29094. $121 = +HEAPF32[$120>>2];
  29095. $122 = (($$4) + 2)|0;
  29096. $123 = (($3) + ($122<<2)|0);
  29097. $124 = +HEAPF32[$123>>2];
  29098. $125 = (($$0294331) - ($$4))|0;
  29099. $126 = ($125|0)==(5);
  29100. if ($126) {
  29101. $127 = (($$4) + 4)|0;
  29102. $128 = (($3) + ($127<<2)|0);
  29103. $129 = +HEAPF32[$128>>2];
  29104. $132 = $129;
  29105. } else {
  29106. $132 = 0.0;
  29107. }
  29108. $130 = (($3) + ($115<<2)|0);
  29109. $131 = +HEAPF32[$130>>2];
  29110. _stbtt__csctx_rccurve_to($2,$118,0.0,$121,$124,$132,$131);
  29111. $133 = (($$4) + 4)|0;
  29112. $$3293 = $133;
  29113. label = 24;
  29114. continue;
  29115. }
  29116. else if ((label|0) == 73) {
  29117. label = 0;
  29118. $309 = HEAP32[$10>>2]|0;
  29119. $310 = HEAP32[$12>>2]|0;
  29120. $311 = ($309|0)<($310|0);
  29121. if ($311) {
  29122. $$0274335 = $$0274$be;$$0276334 = $$0276$be;$$0285333 = $$0285$be;$$0288332 = $$0288$be;$$0294331 = $$0294$be;
  29123. continue L4;
  29124. } else {
  29125. $$3 = 0;
  29126. label = 80;
  29127. break L4;
  29128. }
  29129. }
  29130. }
  29131. }
  29132. if ((label|0) == 63) {
  29133. _stbtt__csctx_close_shape($2);
  29134. $$3 = 1;
  29135. STACKTOP = sp;return ($$3|0);
  29136. }
  29137. else if ((label|0) == 80) {
  29138. STACKTOP = sp;return ($$3|0);
  29139. }
  29140. return (0)|0;
  29141. }
  29142. function _stbtt__cff_index_get($0,$1,$2) {
  29143. $0 = $0|0;
  29144. $1 = $1|0;
  29145. $2 = $2|0;
  29146. var $$off = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29147. sp = STACKTOP;
  29148. _stbtt__buf_seek($1,0);
  29149. $3 = (_stbtt__buf_get($1,2)|0);
  29150. $4 = (_stbtt__buf_get8($1)|0);
  29151. $5 = $4&255;
  29152. $6 = ($2|0)>(-1);
  29153. $7 = ($3|0)>($2|0);
  29154. $or$cond = $6 & $7;
  29155. if (!($or$cond)) {
  29156. ___assert_fail((13877|0),(13212|0),1118,(13897|0));
  29157. // unreachable;
  29158. }
  29159. $$off = (($4) + -1)<<24>>24;
  29160. $8 = ($$off&255)<(4);
  29161. if ($8) {
  29162. $9 = Math_imul($5, $2)|0;
  29163. _stbtt__buf_skip($1,$9);
  29164. $10 = (_stbtt__buf_get($1,$5)|0);
  29165. $11 = (_stbtt__buf_get($1,$5)|0);
  29166. $12 = (($3) + 1)|0;
  29167. $13 = Math_imul($5, $12)|0;
  29168. $14 = (($13) + 2)|0;
  29169. $15 = (($14) + ($10))|0;
  29170. $16 = (($11) - ($10))|0;
  29171. _stbtt__buf_range($0,$1,$15,$16);
  29172. return;
  29173. } else {
  29174. ___assert_fail((13794|0),(13212|0),1119,(13897|0));
  29175. // unreachable;
  29176. }
  29177. }
  29178. function _stbtt__buf_get8($0) {
  29179. $0 = $0|0;
  29180. 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;
  29181. sp = STACKTOP;
  29182. $1 = ((($0)) + 4|0);
  29183. $2 = HEAP32[$1>>2]|0;
  29184. $3 = ((($0)) + 8|0);
  29185. $4 = HEAP32[$3>>2]|0;
  29186. $5 = ($2|0)<($4|0);
  29187. if (!($5)) {
  29188. $$0 = 0;
  29189. return ($$0|0);
  29190. }
  29191. $6 = (($2) + 1)|0;
  29192. $7 = HEAP32[$0>>2]|0;
  29193. HEAP32[$1>>2] = $6;
  29194. $8 = (($7) + ($2)|0);
  29195. $9 = HEAP8[$8>>0]|0;
  29196. $$0 = $9;
  29197. return ($$0|0);
  29198. }
  29199. function _stbtt__buf_skip($0,$1) {
  29200. $0 = $0|0;
  29201. $1 = $1|0;
  29202. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  29203. sp = STACKTOP;
  29204. $2 = ((($0)) + 4|0);
  29205. $3 = HEAP32[$2>>2]|0;
  29206. $4 = (($3) + ($1))|0;
  29207. _stbtt__buf_seek($0,$4);
  29208. return;
  29209. }
  29210. function _stbtt__csctx_rmove_to($0,$1,$2) {
  29211. $0 = $0|0;
  29212. $1 = +$1;
  29213. $2 = +$2;
  29214. var $10 = 0, $11 = 0.0, $12 = 0, $13 = 0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  29215. sp = STACKTOP;
  29216. _stbtt__csctx_close_shape($0);
  29217. $3 = ((($0)) + 16|0);
  29218. $4 = +HEAPF32[$3>>2];
  29219. $5 = $4 + $1;
  29220. HEAPF32[$3>>2] = $5;
  29221. $6 = ((($0)) + 8|0);
  29222. HEAPF32[$6>>2] = $5;
  29223. $7 = ((($0)) + 20|0);
  29224. $8 = +HEAPF32[$7>>2];
  29225. $9 = $8 + $2;
  29226. HEAPF32[$7>>2] = $9;
  29227. $10 = ((($0)) + 12|0);
  29228. HEAPF32[$10>>2] = $9;
  29229. $11 = +HEAPF32[$3>>2];
  29230. $12 = (~~(($11)));
  29231. $13 = (~~(($9)));
  29232. _stbtt__csctx_v($0,1,$12,$13,0,0,0,0);
  29233. return;
  29234. }
  29235. function _stbtt__csctx_rline_to($0,$1,$2) {
  29236. $0 = $0|0;
  29237. $1 = +$1;
  29238. $2 = +$2;
  29239. var $10 = 0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  29240. sp = STACKTOP;
  29241. $3 = ((($0)) + 16|0);
  29242. $4 = +HEAPF32[$3>>2];
  29243. $5 = $4 + $1;
  29244. HEAPF32[$3>>2] = $5;
  29245. $6 = ((($0)) + 20|0);
  29246. $7 = +HEAPF32[$6>>2];
  29247. $8 = $7 + $2;
  29248. HEAPF32[$6>>2] = $8;
  29249. $9 = (~~(($5)));
  29250. $10 = (~~(($8)));
  29251. _stbtt__csctx_v($0,2,$9,$10,0,0,0,0);
  29252. return;
  29253. }
  29254. function _stbtt__csctx_rccurve_to($0,$1,$2,$3,$4,$5,$6) {
  29255. $0 = $0|0;
  29256. $1 = +$1;
  29257. $2 = +$2;
  29258. $3 = +$3;
  29259. $4 = +$4;
  29260. $5 = +$5;
  29261. $6 = +$6;
  29262. var $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  29263. sp = STACKTOP;
  29264. $7 = ((($0)) + 16|0);
  29265. $8 = +HEAPF32[$7>>2];
  29266. $9 = $8 + $1;
  29267. $10 = ((($0)) + 20|0);
  29268. $11 = +HEAPF32[$10>>2];
  29269. $12 = $11 + $2;
  29270. $13 = $9 + $3;
  29271. $14 = $12 + $4;
  29272. $15 = $13 + $5;
  29273. HEAPF32[$7>>2] = $15;
  29274. $16 = $14 + $6;
  29275. HEAPF32[$10>>2] = $16;
  29276. $17 = (~~(($15)));
  29277. $18 = (~~(($16)));
  29278. $19 = (~~(($9)));
  29279. $20 = (~~(($12)));
  29280. $21 = (~~(($13)));
  29281. $22 = (~~(($14)));
  29282. _stbtt__csctx_v($0,4,$17,$18,$19,$20,$21,$22);
  29283. return;
  29284. }
  29285. function _stbtt__cid_get_glyph_subrs($0,$1,$2) {
  29286. $0 = $0|0;
  29287. $1 = $1|0;
  29288. $2 = $2|0;
  29289. var $$02931 = 0, $$03034 = 0, $$035 = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0;
  29290. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29291. sp = STACKTOP;
  29292. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  29293. $$byval_copy2 = sp + 36|0;
  29294. $$byval_copy1 = sp + 24|0;
  29295. $3 = sp;
  29296. $4 = sp + 12|0;
  29297. $5 = ((($1)) + 108|0);
  29298. ;HEAP32[$3>>2]=HEAP32[$5>>2]|0;HEAP32[$3+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$5+8>>2]|0;
  29299. _stbtt__buf_seek($3,0);
  29300. $6 = (_stbtt__buf_get8($3)|0);
  29301. L1: do {
  29302. switch ($6<<24>>24) {
  29303. case 0: {
  29304. _stbtt__buf_skip($3,$2);
  29305. $7 = (_stbtt__buf_get8($3)|0);
  29306. $8 = $7&255;
  29307. $$02931 = $8;
  29308. break;
  29309. }
  29310. case 3: {
  29311. $9 = (_stbtt__buf_get($3,2)|0);
  29312. $10 = (_stbtt__buf_get($3,2)|0);
  29313. $11 = ($9|0)>(0);
  29314. if ($11) {
  29315. $$03034 = $10;$$035 = 0;
  29316. while(1) {
  29317. $14 = (_stbtt__buf_get8($3)|0);
  29318. $15 = (_stbtt__buf_get($3,2)|0);
  29319. $16 = ($$03034|0)<=($2|0);
  29320. $17 = ($15|0)>($2|0);
  29321. $or$cond = $16 & $17;
  29322. $13 = (($$035) + 1)|0;
  29323. if ($or$cond) {
  29324. break;
  29325. }
  29326. $12 = ($13|0)<($9|0);
  29327. if ($12) {
  29328. $$03034 = $15;$$035 = $13;
  29329. } else {
  29330. label = 6;
  29331. break L1;
  29332. }
  29333. }
  29334. $18 = $14&255;
  29335. $$02931 = $18;
  29336. } else {
  29337. label = 6;
  29338. }
  29339. break;
  29340. }
  29341. default: {
  29342. label = 6;
  29343. }
  29344. }
  29345. } while(0);
  29346. if ((label|0) == 6) {
  29347. _stbtt__new_buf($$byval_copy2,0,0);
  29348. $$02931 = -1;
  29349. }
  29350. $19 = ((($1)) + 48|0);
  29351. $20 = ((($1)) + 96|0);
  29352. ;HEAP32[$$byval_copy2>>2]=HEAP32[$20>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$20+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$20+8>>2]|0;
  29353. _stbtt__cff_index_get($4,$$byval_copy2,$$02931);
  29354. ;HEAP32[$$byval_copy1>>2]=HEAP32[$19>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$19+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$19+8>>2]|0;
  29355. ;HEAP32[$$byval_copy2>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$4+8>>2]|0;
  29356. _stbtt__get_subrs($0,$$byval_copy1,$$byval_copy2);
  29357. STACKTOP = sp;return;
  29358. }
  29359. function _stbtt__get_subr($0,$1,$2) {
  29360. $0 = $0|0;
  29361. $1 = $1|0;
  29362. $2 = $2|0;
  29363. var $$ = 0, $$0 = 0, $$byval_copy = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond = 0, label = 0, sp = 0;
  29364. sp = STACKTOP;
  29365. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29366. $$byval_copy = sp;
  29367. $3 = (_stbtt__cff_index_count($1)|0);
  29368. $4 = ($3|0)>(33899);
  29369. $5 = ($3|0)>(1239);
  29370. $$ = $5 ? 1131 : 107;
  29371. $$0 = $4 ? 32768 : $$;
  29372. $6 = (($$0) + ($2))|0;
  29373. $7 = ($6|0)>(-1);
  29374. $8 = ($6|0)<($3|0);
  29375. $or$cond = $7 & $8;
  29376. if ($or$cond) {
  29377. ;HEAP32[$$byval_copy>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$1+8>>2]|0;
  29378. _stbtt__cff_index_get($0,$$byval_copy,$6);
  29379. STACKTOP = sp;return;
  29380. } else {
  29381. _stbtt__new_buf($0,0,0);
  29382. STACKTOP = sp;return;
  29383. }
  29384. }
  29385. function _stbtt__csctx_close_shape($0) {
  29386. $0 = $0|0;
  29387. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $2 = 0.0, $3 = 0, $4 = 0.0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  29388. sp = STACKTOP;
  29389. $1 = ((($0)) + 8|0);
  29390. $2 = +HEAPF32[$1>>2];
  29391. $3 = ((($0)) + 16|0);
  29392. $4 = +HEAPF32[$3>>2];
  29393. $5 = $2 != $4;
  29394. $6 = ((($0)) + 12|0);
  29395. $7 = +HEAPF32[$6>>2];
  29396. if (!($5)) {
  29397. $8 = ((($0)) + 20|0);
  29398. $9 = +HEAPF32[$8>>2];
  29399. $10 = $7 != $9;
  29400. if (!($10)) {
  29401. return;
  29402. }
  29403. }
  29404. $11 = (~~(($2)));
  29405. $12 = (~~(($7)));
  29406. _stbtt__csctx_v($0,2,$11,$12,0,0,0,0);
  29407. return;
  29408. }
  29409. function _stbtt__buf_get($0,$1) {
  29410. $0 = $0|0;
  29411. $1 = $1|0;
  29412. var $$01011 = 0, $$012 = 0, $$off = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $exitcond = 0, label = 0, sp = 0;
  29413. sp = STACKTOP;
  29414. $$off = (($1) + -1)|0;
  29415. $2 = ($$off>>>0)<(4);
  29416. if ($2) {
  29417. $$01011 = 0;$$012 = 0;
  29418. } else {
  29419. ___assert_fail((13689|0),(13212|0),1014,(13706|0));
  29420. // unreachable;
  29421. }
  29422. while(1) {
  29423. $3 = $$01011 << 8;
  29424. $4 = (_stbtt__buf_get8($0)|0);
  29425. $5 = $4&255;
  29426. $6 = $5 | $3;
  29427. $7 = (($$012) + 1)|0;
  29428. $exitcond = ($7|0)==($1|0);
  29429. if ($exitcond) {
  29430. break;
  29431. } else {
  29432. $$01011 = $6;$$012 = $7;
  29433. }
  29434. }
  29435. return ($6|0);
  29436. }
  29437. function _stbtt__cff_int($0) {
  29438. $0 = $0|0;
  29439. var $$0 = 0, $$off = 0, $$off19 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $3 = 0, $4 = 0, $5 = 0;
  29440. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond5 = 0, label = 0, sp = 0;
  29441. sp = STACKTOP;
  29442. $1 = (_stbtt__buf_get8($0)|0);
  29443. $2 = $1&255;
  29444. $$off = (($1) + -32)<<24>>24;
  29445. $3 = ($$off&255)<(215);
  29446. if ($3) {
  29447. $4 = (($2) + -139)|0;
  29448. $$0 = $4;
  29449. return ($$0|0);
  29450. }
  29451. $$off19 = (($1) + 9)<<24>>24;
  29452. $5 = ($$off19&255)<(4);
  29453. if ($5) {
  29454. $6 = $2 << 8;
  29455. $7 = (($6) + -63232)|0;
  29456. $8 = (_stbtt__buf_get8($0)|0);
  29457. $9 = $8&255;
  29458. $10 = $9 | $7;
  29459. $11 = (($10) + 108)|0;
  29460. $$0 = $11;
  29461. return ($$0|0);
  29462. }
  29463. $12 = ($1&255)>(250);
  29464. $13 = ($1<<24>>24)!=(-1);
  29465. $or$cond5 = $12 & $13;
  29466. if ($or$cond5) {
  29467. $14 = (251 - ($2))|0;
  29468. $15 = $14 << 8;
  29469. $16 = (_stbtt__buf_get8($0)|0);
  29470. $17 = $16&255;
  29471. $18 = (($15) + -108)|0;
  29472. $19 = (($18) - ($17))|0;
  29473. $$0 = $19;
  29474. return ($$0|0);
  29475. }
  29476. switch ($1<<24>>24) {
  29477. case 28: {
  29478. $20 = (_stbtt__buf_get($0,2)|0);
  29479. $$0 = $20;
  29480. return ($$0|0);
  29481. break;
  29482. }
  29483. case 29: {
  29484. $21 = (_stbtt__buf_get($0,4)|0);
  29485. $$0 = $21;
  29486. return ($$0|0);
  29487. break;
  29488. }
  29489. default: {
  29490. ___assert_fail((13672|0),(13212|0),1064,(13674|0));
  29491. // unreachable;
  29492. }
  29493. }
  29494. return (0)|0;
  29495. }
  29496. function _stbtt__csctx_v($0,$1,$2,$3,$4,$5,$6,$7) {
  29497. $0 = $0|0;
  29498. $1 = $1|0;
  29499. $2 = $2|0;
  29500. $3 = $3|0;
  29501. $4 = $4|0;
  29502. $5 = $5|0;
  29503. $6 = $6|0;
  29504. $7 = $7|0;
  29505. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $8 = 0, $9 = 0, label = 0;
  29506. var sp = 0;
  29507. sp = STACKTOP;
  29508. $8 = HEAP32[$0>>2]|0;
  29509. $9 = ($8|0)==(0);
  29510. if ($9) {
  29511. $11 = ((($0)) + 40|0);
  29512. $12 = HEAP32[$11>>2]|0;
  29513. $13 = ((($0)) + 44|0);
  29514. $14 = HEAP32[$13>>2]|0;
  29515. $15 = (($12) + (($14*14)|0)|0);
  29516. _stbtt_setvertex($15,$1,$2,$3,$4,$5);
  29517. $16 = $6&65535;
  29518. $17 = HEAP32[$11>>2]|0;
  29519. $18 = HEAP32[$13>>2]|0;
  29520. $19 = (((($17) + (($18*14)|0)|0)) + 8|0);
  29521. HEAP16[$19>>1] = $16;
  29522. $20 = $7&65535;
  29523. $21 = HEAP32[$11>>2]|0;
  29524. $22 = HEAP32[$13>>2]|0;
  29525. $23 = (((($21) + (($22*14)|0)|0)) + 10|0);
  29526. HEAP16[$23>>1] = $20;
  29527. } else {
  29528. _stbtt__track_vertex($0,$2,$3);
  29529. $10 = ($1<<24>>24)==(4);
  29530. if ($10) {
  29531. _stbtt__track_vertex($0,$4,$5);
  29532. _stbtt__track_vertex($0,$6,$7);
  29533. }
  29534. }
  29535. $24 = ((($0)) + 44|0);
  29536. $25 = HEAP32[$24>>2]|0;
  29537. $26 = (($25) + 1)|0;
  29538. HEAP32[$24>>2] = $26;
  29539. return;
  29540. }
  29541. function _stbtt__track_vertex($0,$1,$2) {
  29542. $0 = $0|0;
  29543. $1 = $1|0;
  29544. $2 = $2|0;
  29545. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $3 = 0, $4 = 0;
  29546. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29547. sp = STACKTOP;
  29548. $3 = ((($0)) + 28|0);
  29549. $4 = HEAP32[$3>>2]|0;
  29550. $5 = ($4|0)<($1|0);
  29551. if ($5) {
  29552. label = 3;
  29553. } else {
  29554. $6 = ((($0)) + 4|0);
  29555. $7 = HEAP32[$6>>2]|0;
  29556. $8 = ($7|0)==(0);
  29557. if ($8) {
  29558. label = 3;
  29559. }
  29560. }
  29561. if ((label|0) == 3) {
  29562. HEAP32[$3>>2] = $1;
  29563. }
  29564. $9 = ((($0)) + 36|0);
  29565. $10 = HEAP32[$9>>2]|0;
  29566. $11 = ($10|0)<($2|0);
  29567. if ($11) {
  29568. label = 6;
  29569. } else {
  29570. $12 = ((($0)) + 4|0);
  29571. $13 = HEAP32[$12>>2]|0;
  29572. $14 = ($13|0)==(0);
  29573. if ($14) {
  29574. label = 6;
  29575. }
  29576. }
  29577. if ((label|0) == 6) {
  29578. HEAP32[$9>>2] = $2;
  29579. }
  29580. $15 = ((($0)) + 24|0);
  29581. $16 = HEAP32[$15>>2]|0;
  29582. $17 = ($16|0)>($1|0);
  29583. if ($17) {
  29584. label = 9;
  29585. } else {
  29586. $18 = ((($0)) + 4|0);
  29587. $19 = HEAP32[$18>>2]|0;
  29588. $20 = ($19|0)==(0);
  29589. if ($20) {
  29590. label = 9;
  29591. }
  29592. }
  29593. if ((label|0) == 9) {
  29594. HEAP32[$15>>2] = $1;
  29595. }
  29596. $21 = ((($0)) + 32|0);
  29597. $22 = HEAP32[$21>>2]|0;
  29598. $23 = ($22|0)>($2|0);
  29599. if (!($23)) {
  29600. $24 = ((($0)) + 4|0);
  29601. $25 = HEAP32[$24>>2]|0;
  29602. $26 = ($25|0)==(0);
  29603. if (!($26)) {
  29604. $27 = ((($0)) + 4|0);
  29605. HEAP32[$27>>2] = 1;
  29606. return;
  29607. }
  29608. }
  29609. HEAP32[$21>>2] = $2;
  29610. $27 = ((($0)) + 4|0);
  29611. HEAP32[$27>>2] = 1;
  29612. return;
  29613. }
  29614. function _stbtt_setvertex($0,$1,$2,$3,$4,$5) {
  29615. $0 = $0|0;
  29616. $1 = $1|0;
  29617. $2 = $2|0;
  29618. $3 = $3|0;
  29619. $4 = $4|0;
  29620. $5 = $5|0;
  29621. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29622. sp = STACKTOP;
  29623. $6 = ((($0)) + 12|0);
  29624. HEAP8[$6>>0] = $1;
  29625. $7 = $2&65535;
  29626. HEAP16[$0>>1] = $7;
  29627. $8 = $3&65535;
  29628. $9 = ((($0)) + 2|0);
  29629. HEAP16[$9>>1] = $8;
  29630. $10 = $4&65535;
  29631. $11 = ((($0)) + 4|0);
  29632. HEAP16[$11>>1] = $10;
  29633. $12 = $5&65535;
  29634. $13 = ((($0)) + 6|0);
  29635. HEAP16[$13>>1] = $12;
  29636. return;
  29637. }
  29638. function _stbtt__cff_index_count($0) {
  29639. $0 = $0|0;
  29640. var $1 = 0, label = 0, sp = 0;
  29641. sp = STACKTOP;
  29642. _stbtt__buf_seek($0,0);
  29643. $1 = (_stbtt__buf_get($0,2)|0);
  29644. return ($1|0);
  29645. }
  29646. function _stbtt__new_buf($0,$1,$2) {
  29647. $0 = $0|0;
  29648. $1 = $1|0;
  29649. $2 = $2|0;
  29650. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $3 = 0, label = 0, sp = 0;
  29651. sp = STACKTOP;
  29652. $3 = ($2>>>0)<(1073741824);
  29653. if ($3) {
  29654. HEAP32[$0>>2] = $1;
  29655. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  29656. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 0;
  29657. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  29658. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = $2;
  29659. return;
  29660. } else {
  29661. ___assert_fail((13721|0),(13212|0),1023,(13739|0));
  29662. // unreachable;
  29663. }
  29664. }
  29665. function _stbtt__buf_seek($0,$1) {
  29666. $0 = $0|0;
  29667. $1 = $1|0;
  29668. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  29669. sp = STACKTOP;
  29670. $2 = ((($0)) + 8|0);
  29671. $3 = HEAP32[$2>>2]|0;
  29672. $4 = ($3|0)<($1|0);
  29673. $5 = ($1|0)<(0);
  29674. $or$cond = $5 | $4;
  29675. if ($or$cond) {
  29676. ___assert_fail((13754|0),(13212|0),1001,(13778|0));
  29677. // unreachable;
  29678. } else {
  29679. $6 = ((($0)) + 4|0);
  29680. HEAP32[$6>>2] = $1;
  29681. return;
  29682. }
  29683. }
  29684. function _stbtt__get_subrs($0,$1,$2) {
  29685. $0 = $0|0;
  29686. $1 = $1|0;
  29687. $2 = $2|0;
  29688. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29689. sp = STACKTOP;
  29690. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29691. $3 = sp + 20|0;
  29692. $4 = sp;
  29693. $5 = sp + 8|0;
  29694. HEAP32[$3>>2] = 0;
  29695. $6 = $4;
  29696. $7 = $6;
  29697. HEAP32[$7>>2] = 0;
  29698. $8 = (($6) + 4)|0;
  29699. $9 = $8;
  29700. HEAP32[$9>>2] = 0;
  29701. _stbtt__dict_get_ints($2,18,2,$4);
  29702. $10 = ((($4)) + 4|0);
  29703. $11 = HEAP32[$10>>2]|0;
  29704. $12 = ($11|0)==(0);
  29705. if (!($12)) {
  29706. $13 = HEAP32[$4>>2]|0;
  29707. $14 = ($13|0)==(0);
  29708. if (!($14)) {
  29709. _stbtt__buf_range($5,$1,$11,$13);
  29710. _stbtt__dict_get_ints($5,19,1,$3);
  29711. $15 = HEAP32[$3>>2]|0;
  29712. $16 = ($15|0)==(0);
  29713. if ($16) {
  29714. _stbtt__new_buf($0,0,0);
  29715. STACKTOP = sp;return;
  29716. } else {
  29717. $17 = HEAP32[$10>>2]|0;
  29718. $18 = (($17) + ($15))|0;
  29719. _stbtt__buf_seek($1,$18);
  29720. _stbtt__cff_get_index($0,$1);
  29721. STACKTOP = sp;return;
  29722. }
  29723. }
  29724. }
  29725. _stbtt__new_buf($0,0,0);
  29726. STACKTOP = sp;return;
  29727. }
  29728. function _stbtt__dict_get_ints($0,$1,$2,$3) {
  29729. $0 = $0|0;
  29730. $1 = $1|0;
  29731. $2 = $2|0;
  29732. $3 = $3|0;
  29733. var $$07 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29734. sp = STACKTOP;
  29735. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29736. $4 = sp;
  29737. _stbtt__dict_get($4,$0,$1);
  29738. $5 = ((($4)) + 4|0);
  29739. $6 = ($2|0)>(0);
  29740. if (!($6)) {
  29741. STACKTOP = sp;return;
  29742. }
  29743. $7 = ((($4)) + 8|0);
  29744. $$07 = 0;
  29745. while(1) {
  29746. $8 = HEAP32[$5>>2]|0;
  29747. $9 = HEAP32[$7>>2]|0;
  29748. $10 = ($8|0)<($9|0);
  29749. if (!($10)) {
  29750. label = 5;
  29751. break;
  29752. }
  29753. $11 = (_stbtt__cff_int($4)|0);
  29754. $12 = (($3) + ($$07<<2)|0);
  29755. HEAP32[$12>>2] = $11;
  29756. $13 = (($$07) + 1)|0;
  29757. $14 = ($13|0)<($2|0);
  29758. if ($14) {
  29759. $$07 = $13;
  29760. } else {
  29761. label = 5;
  29762. break;
  29763. }
  29764. }
  29765. if ((label|0) == 5) {
  29766. STACKTOP = sp;return;
  29767. }
  29768. }
  29769. function _stbtt__buf_range($0,$1,$2,$3) {
  29770. $0 = $0|0;
  29771. $1 = $1|0;
  29772. $2 = $2|0;
  29773. $3 = $3|0;
  29774. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29775. sp = STACKTOP;
  29776. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29777. $4 = sp;
  29778. _stbtt__new_buf($4,0,0);
  29779. $5 = $3 | $2;
  29780. $6 = ($5|0)<(0);
  29781. if (!($6)) {
  29782. $7 = ((($1)) + 8|0);
  29783. $8 = HEAP32[$7>>2]|0;
  29784. $9 = ($8|0)<($2|0);
  29785. $10 = (($8) - ($2))|0;
  29786. $11 = ($10|0)<($3|0);
  29787. $or$cond = $9 | $11;
  29788. if (!($or$cond)) {
  29789. $12 = HEAP32[$1>>2]|0;
  29790. $13 = (($12) + ($2)|0);
  29791. HEAP32[$4>>2] = $13;
  29792. $14 = ((($4)) + 8|0);
  29793. HEAP32[$14>>2] = $3;
  29794. ;HEAP32[$0>>2]=HEAP32[$4>>2]|0;HEAP32[$0+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$4+8>>2]|0;
  29795. STACKTOP = sp;return;
  29796. }
  29797. }
  29798. ;HEAP32[$0>>2]=HEAP32[$4>>2]|0;HEAP32[$0+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$4+8>>2]|0;
  29799. STACKTOP = sp;return;
  29800. }
  29801. function _stbtt__cff_get_index($0,$1) {
  29802. $0 = $0|0;
  29803. $1 = $1|0;
  29804. var $$off = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29805. sp = STACKTOP;
  29806. $2 = ((($1)) + 4|0);
  29807. $3 = HEAP32[$2>>2]|0;
  29808. $4 = (_stbtt__buf_get($1,2)|0);
  29809. $5 = ($4|0)==(0);
  29810. if ($5) {
  29811. $12 = HEAP32[$2>>2]|0;
  29812. $13 = (($12) - ($3))|0;
  29813. _stbtt__buf_range($0,$1,$3,$13);
  29814. return;
  29815. }
  29816. $6 = (_stbtt__buf_get8($1)|0);
  29817. $7 = $6&255;
  29818. $$off = (($6) + -1)<<24>>24;
  29819. $8 = ($$off&255)<(4);
  29820. if (!($8)) {
  29821. ___assert_fail((13794|0),(13212|0),1049,(13823|0));
  29822. // unreachable;
  29823. }
  29824. $9 = Math_imul($7, $4)|0;
  29825. _stbtt__buf_skip($1,$9);
  29826. $10 = (_stbtt__buf_get($1,$7)|0);
  29827. $11 = (($10) + -1)|0;
  29828. _stbtt__buf_skip($1,$11);
  29829. $12 = HEAP32[$2>>2]|0;
  29830. $13 = (($12) - ($3))|0;
  29831. _stbtt__buf_range($0,$1,$3,$13);
  29832. return;
  29833. }
  29834. function _stbtt__dict_get($0,$1,$2) {
  29835. $0 = $0|0;
  29836. $1 = $1|0;
  29837. $2 = $2|0;
  29838. var $$021 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  29839. var sp = 0;
  29840. sp = STACKTOP;
  29841. _stbtt__buf_seek($1,0);
  29842. $3 = ((($1)) + 4|0);
  29843. $4 = ((($1)) + 8|0);
  29844. while(1) {
  29845. $5 = HEAP32[$3>>2]|0;
  29846. $6 = HEAP32[$4>>2]|0;
  29847. $7 = ($5|0)<($6|0);
  29848. if (!($7)) {
  29849. label = 9;
  29850. break;
  29851. }
  29852. $8 = (_stbtt__buf_peek8($1)|0);
  29853. $9 = ($8&255)>(27);
  29854. if ($9) {
  29855. while(1) {
  29856. _stbtt__cff_skip_operand($1);
  29857. $10 = (_stbtt__buf_peek8($1)|0);
  29858. $11 = ($10&255)>(27);
  29859. if (!($11)) {
  29860. break;
  29861. }
  29862. }
  29863. }
  29864. $12 = HEAP32[$3>>2]|0;
  29865. $13 = (_stbtt__buf_get8($1)|0);
  29866. $14 = $13&255;
  29867. $15 = ($13<<24>>24)==(12);
  29868. if ($15) {
  29869. $16 = (_stbtt__buf_get8($1)|0);
  29870. $17 = $16&255;
  29871. $18 = $17 | 256;
  29872. $$021 = $18;
  29873. } else {
  29874. $$021 = $14;
  29875. }
  29876. $19 = ($$021|0)==($2|0);
  29877. if ($19) {
  29878. label = 8;
  29879. break;
  29880. }
  29881. }
  29882. if ((label|0) == 8) {
  29883. $20 = (($12) - ($5))|0;
  29884. _stbtt__buf_range($0,$1,$5,$20);
  29885. return;
  29886. }
  29887. else if ((label|0) == 9) {
  29888. _stbtt__buf_range($0,$1,0,0);
  29889. return;
  29890. }
  29891. }
  29892. function _stbtt__buf_peek8($0) {
  29893. $0 = $0|0;
  29894. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  29895. sp = STACKTOP;
  29896. $1 = ((($0)) + 4|0);
  29897. $2 = HEAP32[$1>>2]|0;
  29898. $3 = ((($0)) + 8|0);
  29899. $4 = HEAP32[$3>>2]|0;
  29900. $5 = ($2|0)<($4|0);
  29901. if (!($5)) {
  29902. $$0 = 0;
  29903. return ($$0|0);
  29904. }
  29905. $6 = HEAP32[$0>>2]|0;
  29906. $7 = (($6) + ($2)|0);
  29907. $8 = HEAP8[$7>>0]|0;
  29908. $$0 = $8;
  29909. return ($$0|0);
  29910. }
  29911. function _stbtt__cff_skip_operand($0) {
  29912. $0 = $0|0;
  29913. var $$mask = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29914. sp = STACKTOP;
  29915. $1 = (_stbtt__buf_peek8($0)|0);
  29916. $2 = ($1&255)>(27);
  29917. if (!($2)) {
  29918. ___assert_fail((13844|0),(13212|0),1070,(13853|0));
  29919. // unreachable;
  29920. }
  29921. $3 = ($1<<24>>24)==(30);
  29922. if (!($3)) {
  29923. (_stbtt__cff_int($0)|0);
  29924. return;
  29925. }
  29926. _stbtt__buf_skip($0,1);
  29927. $4 = ((($0)) + 4|0);
  29928. $5 = ((($0)) + 8|0);
  29929. while(1) {
  29930. $6 = HEAP32[$4>>2]|0;
  29931. $7 = HEAP32[$5>>2]|0;
  29932. $8 = ($6|0)<($7|0);
  29933. if (!($8)) {
  29934. label = 8;
  29935. break;
  29936. }
  29937. $9 = (_stbtt__buf_get8($0)|0);
  29938. $10 = $9&255;
  29939. $11 = $10 & 15;
  29940. $12 = ($11|0)==(15);
  29941. $$mask = $10 & 240;
  29942. $13 = ($$mask|0)==(240);
  29943. $or$cond = $12 | $13;
  29944. if ($or$cond) {
  29945. label = 8;
  29946. break;
  29947. }
  29948. }
  29949. if ((label|0) == 8) {
  29950. return;
  29951. }
  29952. }
  29953. function _stbtt__GetGlyphShapeTT($0,$1,$2) {
  29954. $0 = $0|0;
  29955. $1 = $1|0;
  29956. $2 = $2|0;
  29957. var $$0348453 = 0, $$0353439 = 0, $$0361449 = 0, $$0363450 = 0, $$0364448 = 0, $$0366447 = 0, $$0372451 = 0, $$0377437 = 0, $$0379436 = 0, $$0381446 = 0, $$0387435 = 0, $$0390434 = 0, $$0393433 = 0, $$0396432 = 0, $$0399431 = 0, $$0401430 = 0, $$0403440 = 0, $$0405443 = 0, $$0407429 = 0, $$0409428 = 0;
  29958. var $$1349 = 0, $$1354 = 0, $$1362 = 0, $$1365 = 0, $$1367445 = 0, $$1378 = 0, $$1380 = 0, $$1382 = 0, $$1388 = 0, $$1391 = 0, $$1394 = 0, $$1397 = 0, $$1400 = 0, $$1402 = 0, $$1404 = 0, $$1406 = 0, $$1408 = 0, $$1410 = 0, $$2368442 = 0, $$2374 = 0;
  29959. var $$2383444 = 0, $$2389 = 0, $$2392 = 0, $$2395 = 0, $$2398 = 0, $$3356 = 0, $$3369438 = 0, $$3384 = 0, $$4 = 0, $$4352 = 0, $$4370 = 0, $$4385441 = 0, $$5371 = 0, $$5386 = 0, $$5452 = 0, $$6 = 0, $$9 = 0, $$sink = 0, $$sroa$0$0 = 0.0, $$sroa$10$0 = 0.0;
  29960. var $$sroa$17$0 = 0.0, $$sroa$24$0 = 0.0, $$sroa$31$0 = 0.0, $$sroa$35$0 = 0.0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0;
  29961. 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;
  29962. 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;
  29963. var $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0.0, $155 = 0, $156 = 0, $157 = 0.0, $158 = 0, $159 = 0.0, $16 = 0, $160 = 0, $161 = 0, $162 = 0.0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0.0, $168 = 0.0;
  29964. var $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0.0, $174 = 0.0, $175 = 0, $176 = 0, $177 = 0.0, $178 = 0.0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0.0, $184 = 0.0, $185 = 0, $186 = 0;
  29965. var $187 = 0.0, $188 = 0.0, $189 = 0, $19 = 0, $190 = 0, $191 = 0.0, $192 = 0.0, $193 = 0, $194 = 0, $195 = 0.0, $196 = 0.0, $197 = 0, $198 = 0.0, $199 = 0.0, $20 = 0, $200 = 0.0, $201 = 0.0, $202 = 0.0, $203 = 0.0, $204 = 0;
  29966. var $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0.0, $213 = 0.0, $214 = 0.0, $215 = 0.0, $216 = 0.0, $217 = 0.0, $218 = 0.0, $219 = 0, $22 = 0, $220 = 0.0, $221 = 0.0, $222 = 0.0;
  29967. var $223 = 0.0, $224 = 0.0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0.0, $231 = 0.0, $232 = 0.0, $233 = 0.0, $234 = 0.0, $235 = 0.0, $236 = 0.0, $237 = 0, $238 = 0.0, $239 = 0.0, $24 = 0, $240 = 0.0;
  29968. var $241 = 0.0, $242 = 0.0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0;
  29969. var $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0;
  29970. var $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0;
  29971. var $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0;
  29972. var $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0;
  29973. var $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond458 = 0, $exitcond459 = 0, $exitcond460 = 0, $sext = 0, $sext412 = 0, $sqrtf = 0.0, $sqrtf411 = 0.0, label = 0, sp = 0;
  29974. sp = STACKTOP;
  29975. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29976. $3 = sp;
  29977. $4 = ((($0)) + 4|0);
  29978. $5 = HEAP32[$4>>2]|0;
  29979. $6 = (_stbtt__GetGlyfOffset($0,$1)|0);
  29980. HEAP32[$2>>2] = 0;
  29981. $7 = ($6|0)<(0);
  29982. if ($7) {
  29983. $$4 = 0;
  29984. STACKTOP = sp;return ($$4|0);
  29985. }
  29986. $8 = (($5) + ($6)|0);
  29987. $9 = (_ttSHORT($8)|0);
  29988. $10 = ($9<<16>>16)>(0);
  29989. L4: do {
  29990. if ($10) {
  29991. $11 = $9 << 16 >> 16;
  29992. $12 = ((($8)) + 10|0);
  29993. $13 = $11 << 1;
  29994. $14 = (($12) + ($13)|0);
  29995. $15 = (_ttUSHORT($14)|0);
  29996. $16 = ((($14)) + -2|0);
  29997. $17 = (_ttUSHORT($16)|0);
  29998. $18 = $17&65535;
  29999. $19 = $13 | 1;
  30000. $20 = (($19) + ($18))|0;
  30001. $21 = ($20*14)|0;
  30002. $22 = (_malloc($21)|0);
  30003. $23 = ($22|0)==(0|0);
  30004. if ($23) {
  30005. $$4 = 0;
  30006. STACKTOP = sp;return ($$4|0);
  30007. }
  30008. $24 = ((($14)) + 2|0);
  30009. $25 = $15&65535;
  30010. $26 = (($24) + ($25)|0);
  30011. $$0361449 = 0;$$0364448 = 0;$$0366447 = 0;$$0381446 = $26;
  30012. while(1) {
  30013. $27 = ($$0364448<<24>>24)==(0);
  30014. if ($27) {
  30015. $28 = ((($$0381446)) + 1|0);
  30016. $29 = HEAP8[$$0381446>>0]|0;
  30017. $30 = $29 & 8;
  30018. $31 = ($30<<24>>24)==(0);
  30019. if ($31) {
  30020. $$1362 = $29;$$1365 = 0;$$1382 = $28;
  30021. } else {
  30022. $32 = ((($$0381446)) + 2|0);
  30023. $33 = HEAP8[$28>>0]|0;
  30024. $$1362 = $29;$$1365 = $33;$$1382 = $32;
  30025. }
  30026. } else {
  30027. $34 = (($$0364448) + -1)<<24>>24;
  30028. $$1362 = $$0361449;$$1365 = $34;$$1382 = $$0381446;
  30029. }
  30030. $35 = (($$0366447) + ($13))|0;
  30031. $36 = (((($22) + (($35*14)|0)|0)) + 12|0);
  30032. HEAP8[$36>>0] = $$1362;
  30033. $37 = (($$0366447) + 1)|0;
  30034. $exitcond459 = ($$0366447|0)==($18|0);
  30035. if ($exitcond459) {
  30036. $$0405443 = 0;$$1367445 = 0;$$2383444 = $$1382;
  30037. break;
  30038. } else {
  30039. $$0361449 = $$1362;$$0364448 = $$1365;$$0366447 = $37;$$0381446 = $$1382;
  30040. }
  30041. }
  30042. while(1) {
  30043. $38 = (($$1367445) + ($13))|0;
  30044. $39 = (((($22) + (($38*14)|0)|0)) + 12|0);
  30045. $40 = HEAP8[$39>>0]|0;
  30046. $41 = $40&255;
  30047. $42 = $41 & 2;
  30048. $43 = ($42|0)==(0);
  30049. $44 = $41 & 16;
  30050. $45 = ($44|0)!=(0);
  30051. if ($43) {
  30052. if ($45) {
  30053. $$1406 = $$0405443;$$3384 = $$2383444;
  30054. } else {
  30055. $52 = HEAP8[$$2383444>>0]|0;
  30056. $53 = $52&255;
  30057. $54 = $53 << 8;
  30058. $55 = ((($$2383444)) + 1|0);
  30059. $56 = HEAP8[$55>>0]|0;
  30060. $57 = $56&255;
  30061. $58 = $54 | $57;
  30062. $sext412 = $58 << 16;
  30063. $59 = $sext412 >> 16;
  30064. $60 = (($59) + ($$0405443))|0;
  30065. $61 = ((($$2383444)) + 2|0);
  30066. $$1406 = $60;$$3384 = $61;
  30067. }
  30068. } else {
  30069. $46 = ((($$2383444)) + 1|0);
  30070. $47 = HEAP8[$$2383444>>0]|0;
  30071. $48 = $47&255;
  30072. $49 = (0 - ($48))|0;
  30073. $50 = $45 ? $48 : $49;
  30074. $51 = (($50) + ($$0405443))|0;
  30075. $$1406 = $51;$$3384 = $46;
  30076. }
  30077. $62 = $$1406&65535;
  30078. $63 = (($22) + (($38*14)|0)|0);
  30079. HEAP16[$63>>1] = $62;
  30080. $64 = (($$1367445) + 1)|0;
  30081. $exitcond458 = ($$1367445|0)==($18|0);
  30082. if ($exitcond458) {
  30083. $$0403440 = 0;$$2368442 = 0;$$4385441 = $$3384;
  30084. break;
  30085. } else {
  30086. $$0405443 = $$1406;$$1367445 = $64;$$2383444 = $$3384;
  30087. }
  30088. }
  30089. while(1) {
  30090. $65 = (($$2368442) + ($13))|0;
  30091. $66 = (((($22) + (($65*14)|0)|0)) + 12|0);
  30092. $67 = HEAP8[$66>>0]|0;
  30093. $68 = $67&255;
  30094. $69 = $68 & 4;
  30095. $70 = ($69|0)==(0);
  30096. $71 = $68 & 32;
  30097. $72 = ($71|0)!=(0);
  30098. if ($70) {
  30099. if ($72) {
  30100. $$1404 = $$0403440;$$5386 = $$4385441;
  30101. } else {
  30102. $79 = HEAP8[$$4385441>>0]|0;
  30103. $80 = $79&255;
  30104. $81 = $80 << 8;
  30105. $82 = ((($$4385441)) + 1|0);
  30106. $83 = HEAP8[$82>>0]|0;
  30107. $84 = $83&255;
  30108. $85 = $81 | $84;
  30109. $sext = $85 << 16;
  30110. $86 = $sext >> 16;
  30111. $87 = (($86) + ($$0403440))|0;
  30112. $88 = ((($$4385441)) + 2|0);
  30113. $$1404 = $87;$$5386 = $88;
  30114. }
  30115. } else {
  30116. $73 = ((($$4385441)) + 1|0);
  30117. $74 = HEAP8[$$4385441>>0]|0;
  30118. $75 = $74&255;
  30119. $76 = (0 - ($75))|0;
  30120. $77 = $72 ? $75 : $76;
  30121. $78 = (($77) + ($$0403440))|0;
  30122. $$1404 = $78;$$5386 = $73;
  30123. }
  30124. $89 = $$1404&65535;
  30125. $90 = (((($22) + (($65*14)|0)|0)) + 2|0);
  30126. HEAP16[$90>>1] = $89;
  30127. $91 = (($$2368442) + 1)|0;
  30128. $exitcond = ($$2368442|0)==($18|0);
  30129. if ($exitcond) {
  30130. $$0353439 = 0;$$0377437 = 0;$$0379436 = 0;$$0387435 = 0;$$0390434 = 0;$$0393433 = 0;$$0396432 = 0;$$0399431 = 0;$$0401430 = 0;$$0407429 = 0;$$0409428 = 0;$$3369438 = 0;
  30131. break;
  30132. } else {
  30133. $$0403440 = $$1404;$$2368442 = $91;$$4385441 = $$5386;
  30134. }
  30135. }
  30136. while(1) {
  30137. $92 = (($$3369438) + ($13))|0;
  30138. $93 = (((($22) + (($92*14)|0)|0)) + 12|0);
  30139. $94 = HEAP8[$93>>0]|0;
  30140. $95 = (($22) + (($92*14)|0)|0);
  30141. $96 = HEAP16[$95>>1]|0;
  30142. $97 = $96 << 16 >> 16;
  30143. $98 = (((($22) + (($92*14)|0)|0)) + 2|0);
  30144. $99 = HEAP16[$98>>1]|0;
  30145. $100 = $99 << 16 >> 16;
  30146. $101 = ($$0379436|0)==($$3369438|0);
  30147. $102 = $94 & 1;
  30148. $103 = ($102<<24>>24)!=(0);
  30149. do {
  30150. if ($101) {
  30151. $104 = ($$3369438|0)==(0);
  30152. if ($104) {
  30153. $$1354 = $$0353439;
  30154. } else {
  30155. $105 = (_stbtt__close_shape($22,$$0353439,$$0409428,$$0407429,$$0396432,$$0393433,$$0390434,$$0387435,$$0401430,$$0399431)|0);
  30156. $$1354 = $105;
  30157. }
  30158. $106 = $103 ^ 1;
  30159. $107 = $106&1;
  30160. do {
  30161. if ($103) {
  30162. $$1388 = $$0387435;$$1391 = $$0390434;$$1394 = $100;$$1397 = $97;$$4370 = $$3369438;
  30163. } else {
  30164. $108 = (($92) + 1)|0;
  30165. $109 = (((($22) + (($108*14)|0)|0)) + 12|0);
  30166. $110 = HEAP8[$109>>0]|0;
  30167. $111 = $110 & 1;
  30168. $112 = ($111<<24>>24)==(0);
  30169. $113 = (((($22) + (($108*14)|0)|0)) + 2|0);
  30170. $114 = HEAP16[$113>>1]|0;
  30171. $115 = (($22) + (($108*14)|0)|0);
  30172. $116 = HEAP16[$115>>1]|0;
  30173. $117 = $114 << 16 >> 16;
  30174. $118 = $116 << 16 >> 16;
  30175. if ($112) {
  30176. $119 = (($118) + ($97))|0;
  30177. $120 = $119 >> 1;
  30178. $121 = (($117) + ($100))|0;
  30179. $122 = $121 >> 1;
  30180. $$1388 = $100;$$1391 = $97;$$1394 = $122;$$1397 = $120;$$4370 = $$3369438;
  30181. break;
  30182. } else {
  30183. $123 = (($$3369438) + 1)|0;
  30184. $$1388 = $100;$$1391 = $97;$$1394 = $117;$$1397 = $118;$$4370 = $123;
  30185. break;
  30186. }
  30187. }
  30188. } while(0);
  30189. $124 = (($$1354) + 1)|0;
  30190. $125 = (($22) + (($$1354*14)|0)|0);
  30191. _stbtt_setvertex($125,1,$$1397,$$1394,0,0);
  30192. $126 = $$0377437 << 1;
  30193. $127 = (($12) + ($126)|0);
  30194. $128 = (_ttUSHORT($127)|0);
  30195. $129 = $128&65535;
  30196. $130 = (($129) + 1)|0;
  30197. $131 = (($$0377437) + 1)|0;
  30198. $$1378 = $131;$$1380 = $130;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $107;$$1410 = 0;$$2389 = $$1388;$$2392 = $$1391;$$2395 = $$1394;$$2398 = $$1397;$$3356 = $124;$$5371 = $$4370;
  30199. } else {
  30200. $132 = ($$0409428|0)!=(0);
  30201. $133 = (($$0353439) + 1)|0;
  30202. $134 = (($22) + (($$0353439*14)|0)|0);
  30203. if (!($103)) {
  30204. if (!($132)) {
  30205. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $100;$$1402 = $97;$$1408 = $$0407429;$$1410 = 1;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $$0353439;$$5371 = $$3369438;
  30206. break;
  30207. }
  30208. $135 = (($100) + ($$0399431))|0;
  30209. $136 = $135 >> 1;
  30210. $137 = (($97) + ($$0401430))|0;
  30211. $138 = $137 >> 1;
  30212. _stbtt_setvertex($134,3,$138,$136,$$0401430,$$0399431);
  30213. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $100;$$1402 = $97;$$1408 = $$0407429;$$1410 = 1;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30214. break;
  30215. }
  30216. if ($132) {
  30217. _stbtt_setvertex($134,3,$97,$100,$$0401430,$$0399431);
  30218. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $$0407429;$$1410 = 0;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30219. break;
  30220. } else {
  30221. _stbtt_setvertex($134,2,$97,$100,0,0);
  30222. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $$0407429;$$1410 = 0;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30223. break;
  30224. }
  30225. }
  30226. } while(0);
  30227. $139 = (($$5371) + 1)|0;
  30228. $140 = ($$5371|0)<($18|0);
  30229. if ($140) {
  30230. $$0353439 = $$3356;$$0377437 = $$1378;$$0379436 = $$1380;$$0387435 = $$2389;$$0390434 = $$2392;$$0393433 = $$2395;$$0396432 = $$2398;$$0399431 = $$1400;$$0401430 = $$1402;$$0407429 = $$1408;$$0409428 = $$1410;$$3369438 = $139;
  30231. } else {
  30232. break;
  30233. }
  30234. }
  30235. $141 = (_stbtt__close_shape($22,$$3356,$$1410,$$1408,$$2398,$$2395,$$2392,$$2389,$$1402,$$1400)|0);
  30236. $$4352 = $22;$$9 = $141;
  30237. } else {
  30238. $142 = ($9<<16>>16)==(-1);
  30239. if (!($142)) {
  30240. $264 = ($9<<16>>16)<(0);
  30241. if (!($264)) {
  30242. $$4352 = 0;$$9 = 0;
  30243. break;
  30244. }
  30245. ___assert_fail((13672|0),(13212|0),1724,(13991|0));
  30246. // unreachable;
  30247. }
  30248. $143 = ((($8)) + 10|0);
  30249. $$0348453 = 0;$$0372451 = $143;$$5452 = 0;$250 = 0;$255 = 0;$260 = 0;
  30250. while(1) {
  30251. HEAP32[$3>>2] = 0;
  30252. $144 = (_ttSHORT($$0372451)|0);
  30253. $145 = ((($$0372451)) + 2|0);
  30254. $146 = (_ttSHORT($145)|0);
  30255. $147 = ((($$0372451)) + 4|0);
  30256. $148 = $144&65535;
  30257. $149 = $148 & 2;
  30258. $150 = ($149|0)==(0);
  30259. if ($150) {
  30260. label = 42;
  30261. break;
  30262. }
  30263. $151 = $148 & 1;
  30264. $152 = ($151|0)==(0);
  30265. if ($152) {
  30266. $158 = HEAP8[$147>>0]|0;
  30267. $159 = (+($158<<24>>24));
  30268. $160 = ((($$0372451)) + 5|0);
  30269. $161 = HEAP8[$160>>0]|0;
  30270. $162 = (+($161<<24>>24));
  30271. $$sink = 6;$$sroa$31$0 = $159;$$sroa$35$0 = $162;
  30272. } else {
  30273. $153 = (_ttSHORT($147)|0);
  30274. $154 = (+($153<<16>>16));
  30275. $155 = ((($$0372451)) + 6|0);
  30276. $156 = (_ttSHORT($155)|0);
  30277. $157 = (+($156<<16>>16));
  30278. $$sink = 8;$$sroa$31$0 = $154;$$sroa$35$0 = $157;
  30279. }
  30280. $163 = (($$0372451) + ($$sink)|0);
  30281. $164 = $148 & 8;
  30282. $165 = ($164|0)==(0);
  30283. do {
  30284. if ($165) {
  30285. $170 = $148 & 64;
  30286. $171 = ($170|0)==(0);
  30287. if (!($171)) {
  30288. $172 = (_ttSHORT($163)|0);
  30289. $173 = (+($172<<16>>16));
  30290. $174 = $173 * 6.103515625E-5;
  30291. $175 = ((($163)) + 2|0);
  30292. $176 = (_ttSHORT($175)|0);
  30293. $177 = (+($176<<16>>16));
  30294. $178 = $177 * 6.103515625E-5;
  30295. $179 = ((($163)) + 4|0);
  30296. $$2374 = $179;$$sroa$0$0 = $174;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = $178;
  30297. break;
  30298. }
  30299. $180 = $148 & 128;
  30300. $181 = ($180|0)==(0);
  30301. if ($181) {
  30302. $$2374 = $163;$$sroa$0$0 = 1.0;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = 1.0;
  30303. } else {
  30304. $182 = (_ttSHORT($163)|0);
  30305. $183 = (+($182<<16>>16));
  30306. $184 = $183 * 6.103515625E-5;
  30307. $185 = ((($163)) + 2|0);
  30308. $186 = (_ttSHORT($185)|0);
  30309. $187 = (+($186<<16>>16));
  30310. $188 = $187 * 6.103515625E-5;
  30311. $189 = ((($163)) + 4|0);
  30312. $190 = (_ttSHORT($189)|0);
  30313. $191 = (+($190<<16>>16));
  30314. $192 = $191 * 6.103515625E-5;
  30315. $193 = ((($163)) + 6|0);
  30316. $194 = (_ttSHORT($193)|0);
  30317. $195 = (+($194<<16>>16));
  30318. $196 = $195 * 6.103515625E-5;
  30319. $197 = ((($163)) + 8|0);
  30320. $$2374 = $197;$$sroa$0$0 = $184;$$sroa$10$0 = $188;$$sroa$17$0 = $192;$$sroa$24$0 = $196;
  30321. }
  30322. } else {
  30323. $166 = (_ttSHORT($163)|0);
  30324. $167 = (+($166<<16>>16));
  30325. $168 = $167 * 6.103515625E-5;
  30326. $169 = ((($163)) + 2|0);
  30327. $$2374 = $169;$$sroa$0$0 = $168;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = $168;
  30328. }
  30329. } while(0);
  30330. $198 = $$sroa$0$0 * $$sroa$0$0;
  30331. $199 = $$sroa$10$0 * $$sroa$10$0;
  30332. $200 = $199 + $198;
  30333. $sqrtf = (+Math_sqrt((+$200)));
  30334. $201 = $$sroa$17$0 * $$sroa$17$0;
  30335. $202 = $$sroa$24$0 * $$sroa$24$0;
  30336. $203 = $202 + $201;
  30337. $sqrtf411 = (+Math_sqrt((+$203)));
  30338. $204 = $146&65535;
  30339. $205 = (_stbtt_GetGlyphShape($0,$204,$3)|0);
  30340. $206 = ($205|0)>(0);
  30341. if ($206) {
  30342. $207 = HEAP32[$3>>2]|0;
  30343. $$0363450 = 0;
  30344. while(1) {
  30345. $208 = (($207) + (($$0363450*14)|0)|0);
  30346. $209 = HEAP16[$208>>1]|0;
  30347. $210 = (((($207) + (($$0363450*14)|0)|0)) + 2|0);
  30348. $211 = HEAP16[$210>>1]|0;
  30349. $212 = (+($209<<16>>16));
  30350. $213 = $$sroa$0$0 * $212;
  30351. $214 = (+($211<<16>>16));
  30352. $215 = $$sroa$17$0 * $214;
  30353. $216 = $213 + $215;
  30354. $217 = $$sroa$31$0 + $216;
  30355. $218 = $sqrtf * $217;
  30356. $219 = (~~(($218)));
  30357. HEAP16[$208>>1] = $219;
  30358. $220 = $$sroa$10$0 * $212;
  30359. $221 = $$sroa$24$0 * $214;
  30360. $222 = $220 + $221;
  30361. $223 = $$sroa$35$0 + $222;
  30362. $224 = $sqrtf411 * $223;
  30363. $225 = (~~(($224)));
  30364. HEAP16[$210>>1] = $225;
  30365. $226 = (((($207) + (($$0363450*14)|0)|0)) + 4|0);
  30366. $227 = HEAP16[$226>>1]|0;
  30367. $228 = (((($207) + (($$0363450*14)|0)|0)) + 6|0);
  30368. $229 = HEAP16[$228>>1]|0;
  30369. $230 = (+($227<<16>>16));
  30370. $231 = $$sroa$0$0 * $230;
  30371. $232 = (+($229<<16>>16));
  30372. $233 = $$sroa$17$0 * $232;
  30373. $234 = $231 + $233;
  30374. $235 = $$sroa$31$0 + $234;
  30375. $236 = $sqrtf * $235;
  30376. $237 = (~~(($236)));
  30377. HEAP16[$226>>1] = $237;
  30378. $238 = $$sroa$10$0 * $230;
  30379. $239 = $$sroa$24$0 * $232;
  30380. $240 = $238 + $239;
  30381. $241 = $$sroa$35$0 + $240;
  30382. $242 = $sqrtf411 * $241;
  30383. $243 = (~~(($242)));
  30384. HEAP16[$228>>1] = $243;
  30385. $244 = (($$0363450) + 1)|0;
  30386. $exitcond460 = ($244|0)==($205|0);
  30387. if ($exitcond460) {
  30388. break;
  30389. } else {
  30390. $$0363450 = $244;
  30391. }
  30392. }
  30393. $245 = (($205) + ($$5452))|0;
  30394. $246 = ($245*14)|0;
  30395. $247 = (_malloc($246)|0);
  30396. $248 = ($247|0)==(0|0);
  30397. if ($248) {
  30398. break;
  30399. }
  30400. $253 = ($$5452|0)>(0);
  30401. if ($253) {
  30402. $254 = ($$5452*14)|0;
  30403. _memcpy(($247|0),($255|0),($254|0))|0;
  30404. }
  30405. $256 = (($247) + (($$5452*14)|0)|0);
  30406. $257 = HEAP32[$3>>2]|0;
  30407. $258 = ($205*14)|0;
  30408. _memcpy(($256|0),($257|0),($258|0))|0;
  30409. $259 = ($$0348453|0)==(0|0);
  30410. if (!($259)) {
  30411. _free($260);
  30412. }
  30413. $261 = HEAP32[$3>>2]|0;
  30414. _free($261);
  30415. $$1349 = $247;$$6 = $245;$265 = $247;$266 = $247;$267 = $247;
  30416. } else {
  30417. $$1349 = $$0348453;$$6 = $$5452;$265 = $250;$266 = $260;$267 = $255;
  30418. }
  30419. $262 = $148 & 32;
  30420. $263 = ($262|0)==(0);
  30421. if ($263) {
  30422. $$4352 = $$1349;$$9 = $$6;
  30423. break L4;
  30424. } else {
  30425. $$0348453 = $$1349;$$0372451 = $$2374;$$5452 = $$6;$250 = $265;$255 = $267;$260 = $266;
  30426. }
  30427. }
  30428. if ((label|0) == 42) {
  30429. ___assert_fail((13672|0),(13212|0),1671,(13991|0));
  30430. // unreachable;
  30431. }
  30432. $249 = ($$0348453|0)==(0|0);
  30433. if (!($249)) {
  30434. _free($250);
  30435. }
  30436. $251 = HEAP32[$3>>2]|0;
  30437. $252 = ($251|0)==(0|0);
  30438. if (!($252)) {
  30439. _free($251);
  30440. }
  30441. $$4 = 0;
  30442. STACKTOP = sp;return ($$4|0);
  30443. }
  30444. } while(0);
  30445. HEAP32[$2>>2] = $$4352;
  30446. $$4 = $$9;
  30447. STACKTOP = sp;return ($$4|0);
  30448. }
  30449. function _stbtt__GetGlyphShapeT2($0,$1,$2) {
  30450. $0 = $0|0;
  30451. $1 = $1|0;
  30452. $2 = $2|0;
  30453. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0;
  30454. var stop = 0;
  30455. sp = STACKTOP;
  30456. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  30457. $3 = sp + 48|0;
  30458. $4 = sp;
  30459. $5 = ((($3)) + 4|0);
  30460. dest=$5; stop=dest+44|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30461. HEAP32[$3>>2] = 1;
  30462. dest=$4; stop=dest+48|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30463. $6 = (_stbtt__run_charstring($0,$1,$3)|0);
  30464. $7 = ($6|0)==(0);
  30465. if (!($7)) {
  30466. $8 = ((($3)) + 44|0);
  30467. $9 = HEAP32[$8>>2]|0;
  30468. $10 = ($9*14)|0;
  30469. $11 = (_malloc($10)|0);
  30470. HEAP32[$2>>2] = $11;
  30471. $12 = ((($4)) + 40|0);
  30472. HEAP32[$12>>2] = $11;
  30473. $13 = (_stbtt__run_charstring($0,$1,$4)|0);
  30474. $14 = ($13|0)==(0);
  30475. if (!($14)) {
  30476. $15 = ((($4)) + 44|0);
  30477. $16 = HEAP32[$15>>2]|0;
  30478. $17 = HEAP32[$8>>2]|0;
  30479. $18 = ($16|0)==($17|0);
  30480. if ($18) {
  30481. $$0 = $16;
  30482. STACKTOP = sp;return ($$0|0);
  30483. } else {
  30484. ___assert_fail((13918|0),(13212|0),2114,(13968|0));
  30485. // unreachable;
  30486. }
  30487. }
  30488. }
  30489. HEAP32[$2>>2] = 0;
  30490. $$0 = 0;
  30491. STACKTOP = sp;return ($$0|0);
  30492. }
  30493. function _stbtt__close_shape($0,$1,$2,$3,$4,$5,$6,$7,$8,$9) {
  30494. $0 = $0|0;
  30495. $1 = $1|0;
  30496. $2 = $2|0;
  30497. $3 = $3|0;
  30498. $4 = $4|0;
  30499. $5 = $5|0;
  30500. $6 = $6|0;
  30501. $7 = $7|0;
  30502. $8 = $8|0;
  30503. $9 = $9|0;
  30504. var $$0 = 0, $$1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, label = 0, sp = 0;
  30505. sp = STACKTOP;
  30506. $10 = ($3|0)==(0);
  30507. $11 = ($2|0)!=(0);
  30508. $12 = (($1) + 1)|0;
  30509. $13 = (($0) + (($1*14)|0)|0);
  30510. if (!($10)) {
  30511. if ($11) {
  30512. $14 = (($9) + ($7))|0;
  30513. $15 = $14 >> 1;
  30514. $16 = (($8) + ($6))|0;
  30515. $17 = $16 >> 1;
  30516. _stbtt_setvertex($13,3,$17,$15,$8,$9);
  30517. $$0 = $12;
  30518. } else {
  30519. $$0 = $1;
  30520. }
  30521. $18 = (($$0) + 1)|0;
  30522. $19 = (($0) + (($$0*14)|0)|0);
  30523. _stbtt_setvertex($19,3,$4,$5,$6,$7);
  30524. $$1 = $18;
  30525. return ($$1|0);
  30526. }
  30527. if ($11) {
  30528. _stbtt_setvertex($13,3,$4,$5,$8,$9);
  30529. $$1 = $12;
  30530. return ($$1|0);
  30531. } else {
  30532. _stbtt_setvertex($13,2,$4,$5,0,0);
  30533. $$1 = $12;
  30534. return ($$1|0);
  30535. }
  30536. return (0)|0;
  30537. }
  30538. function _stbtt_InitFont_internal($0,$1) {
  30539. $0 = $0|0;
  30540. $1 = $1|0;
  30541. var $$0902 = 0, $$1 = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$pr = 0, $$sink = 0, $10 = 0, $100 = 0, $101 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0;
  30542. 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;
  30543. var $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0;
  30544. var $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0;
  30545. var $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0;
  30546. var $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $or$cond = 0, label = 0, sp = 0;
  30547. sp = STACKTOP;
  30548. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  30549. $$byval_copy2 = sp + 172|0;
  30550. $$byval_copy1 = sp + 160|0;
  30551. $2 = sp + 148|0;
  30552. $3 = sp + 136|0;
  30553. $4 = sp + 124|0;
  30554. $5 = sp + 112|0;
  30555. $6 = sp + 108|0;
  30556. $7 = sp + 104|0;
  30557. $8 = sp + 100|0;
  30558. $9 = sp + 96|0;
  30559. $10 = sp + 84|0;
  30560. $11 = sp + 72|0;
  30561. $12 = sp + 60|0;
  30562. $13 = sp + 48|0;
  30563. $14 = sp + 36|0;
  30564. $15 = sp + 24|0;
  30565. $16 = sp + 12|0;
  30566. $17 = sp;
  30567. $18 = ((($0)) + 4|0);
  30568. HEAP32[$18>>2] = $1;
  30569. $19 = ((($0)) + 8|0);
  30570. HEAP32[$19>>2] = 0;
  30571. $20 = ((($0)) + 48|0);
  30572. _stbtt__new_buf($2,0,0);
  30573. ;HEAP32[$20>>2]=HEAP32[$2>>2]|0;HEAP32[$20+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$20+8>>2]=HEAP32[$2+8>>2]|0;
  30574. $21 = (_stbtt__find_table($1,14091)|0);
  30575. $22 = (_stbtt__find_table($1,14096)|0);
  30576. $23 = ((($0)) + 16|0);
  30577. HEAP32[$23>>2] = $22;
  30578. $24 = (_stbtt__find_table($1,14101)|0);
  30579. $25 = ((($0)) + 20|0);
  30580. HEAP32[$25>>2] = $24;
  30581. $26 = (_stbtt__find_table($1,14106)|0);
  30582. $27 = ((($0)) + 24|0);
  30583. HEAP32[$27>>2] = $26;
  30584. $28 = (_stbtt__find_table($1,14111)|0);
  30585. $29 = ((($0)) + 28|0);
  30586. HEAP32[$29>>2] = $28;
  30587. $30 = (_stbtt__find_table($1,14116)|0);
  30588. $31 = ((($0)) + 32|0);
  30589. HEAP32[$31>>2] = $30;
  30590. $32 = (_stbtt__find_table($1,14121)|0);
  30591. $33 = ((($0)) + 36|0);
  30592. HEAP32[$33>>2] = $32;
  30593. $34 = ($21|0)==(0);
  30594. if ($34) {
  30595. $$1 = 0;
  30596. STACKTOP = sp;return ($$1|0);
  30597. }
  30598. $35 = HEAP32[$25>>2]|0;
  30599. $36 = ($35|0)==(0);
  30600. if ($36) {
  30601. $$1 = 0;
  30602. STACKTOP = sp;return ($$1|0);
  30603. }
  30604. $37 = HEAP32[$29>>2]|0;
  30605. $38 = ($37|0)==(0);
  30606. if ($38) {
  30607. $$1 = 0;
  30608. STACKTOP = sp;return ($$1|0);
  30609. }
  30610. $39 = HEAP32[$31>>2]|0;
  30611. $40 = ($39|0)==(0);
  30612. if ($40) {
  30613. $$1 = 0;
  30614. STACKTOP = sp;return ($$1|0);
  30615. }
  30616. $41 = HEAP32[$27>>2]|0;
  30617. $42 = ($41|0)==(0);
  30618. L13: do {
  30619. if ($42) {
  30620. HEAP32[$6>>2] = 2;
  30621. HEAP32[$7>>2] = 0;
  30622. HEAP32[$8>>2] = 0;
  30623. HEAP32[$9>>2] = 0;
  30624. $45 = (_stbtt__find_table($1,14126)|0);
  30625. $46 = ($45|0)==(0);
  30626. do {
  30627. if (!($46)) {
  30628. $47 = ((($0)) + 96|0);
  30629. _stbtt__new_buf($10,0,0);
  30630. ;HEAP32[$47>>2]=HEAP32[$10>>2]|0;HEAP32[$47+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$47+8>>2]=HEAP32[$10+8>>2]|0;
  30631. $48 = ((($0)) + 108|0);
  30632. _stbtt__new_buf($11,0,0);
  30633. ;HEAP32[$48>>2]=HEAP32[$11>>2]|0;HEAP32[$48+4>>2]=HEAP32[$11+4>>2]|0;HEAP32[$48+8>>2]=HEAP32[$11+8>>2]|0;
  30634. $49 = (($1) + ($45)|0);
  30635. _stbtt__new_buf($12,$49,536870912);
  30636. ;HEAP32[$20>>2]=HEAP32[$12>>2]|0;HEAP32[$20+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$20+8>>2]=HEAP32[$12+8>>2]|0;
  30637. ;HEAP32[$3>>2]=HEAP32[$12>>2]|0;HEAP32[$3+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$12+8>>2]|0;
  30638. _stbtt__buf_skip($3,2);
  30639. $50 = (_stbtt__buf_get8($3)|0);
  30640. $51 = $50&255;
  30641. _stbtt__buf_seek($3,$51);
  30642. _stbtt__cff_get_index($$byval_copy2,$3);
  30643. _stbtt__cff_get_index($5,$3);
  30644. ;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;
  30645. _stbtt__cff_index_get($4,$$byval_copy2,0);
  30646. _stbtt__cff_get_index($$byval_copy2,$3);
  30647. $52 = ((($0)) + 72|0);
  30648. _stbtt__cff_get_index($13,$3);
  30649. ;HEAP32[$52>>2]=HEAP32[$13>>2]|0;HEAP32[$52+4>>2]=HEAP32[$13+4>>2]|0;HEAP32[$52+8>>2]=HEAP32[$13+8>>2]|0;
  30650. _stbtt__dict_get_ints($4,17,1,$7);
  30651. _stbtt__dict_get_ints($4,262,1,$6);
  30652. _stbtt__dict_get_ints($4,292,1,$8);
  30653. _stbtt__dict_get_ints($4,293,1,$9);
  30654. $53 = ((($0)) + 84|0);
  30655. ;HEAP32[$$byval_copy1>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$3+8>>2]|0;
  30656. ;HEAP32[$$byval_copy2>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$4+8>>2]|0;
  30657. _stbtt__get_subrs($14,$$byval_copy1,$$byval_copy2);
  30658. ;HEAP32[$53>>2]=HEAP32[$14>>2]|0;HEAP32[$53+4>>2]=HEAP32[$14+4>>2]|0;HEAP32[$53+8>>2]=HEAP32[$14+8>>2]|0;
  30659. $54 = HEAP32[$6>>2]|0;
  30660. $55 = ($54|0)!=(2);
  30661. $56 = HEAP32[$7>>2]|0;
  30662. $57 = ($56|0)==(0);
  30663. $or$cond = $55 | $57;
  30664. if (!($or$cond)) {
  30665. $58 = HEAP32[$8>>2]|0;
  30666. $59 = ($58|0)==(0);
  30667. if (!($59)) {
  30668. $60 = HEAP32[$9>>2]|0;
  30669. $61 = ($60|0)==(0);
  30670. if ($61) {
  30671. break;
  30672. }
  30673. _stbtt__buf_seek($3,$58);
  30674. _stbtt__cff_get_index($15,$3);
  30675. ;HEAP32[$47>>2]=HEAP32[$15>>2]|0;HEAP32[$47+4>>2]=HEAP32[$15+4>>2]|0;HEAP32[$47+8>>2]=HEAP32[$15+8>>2]|0;
  30676. $62 = HEAP32[$9>>2]|0;
  30677. $63 = ((($3)) + 8|0);
  30678. $64 = HEAP32[$63>>2]|0;
  30679. $65 = (($64) - ($62))|0;
  30680. _stbtt__buf_range($16,$3,$62,$65);
  30681. ;HEAP32[$48>>2]=HEAP32[$16>>2]|0;HEAP32[$48+4>>2]=HEAP32[$16+4>>2]|0;HEAP32[$48+8>>2]=HEAP32[$16+8>>2]|0;
  30682. }
  30683. $66 = HEAP32[$7>>2]|0;
  30684. _stbtt__buf_seek($3,$66);
  30685. $67 = ((($0)) + 60|0);
  30686. _stbtt__cff_get_index($17,$3);
  30687. ;HEAP32[$67>>2]=HEAP32[$17>>2]|0;HEAP32[$67+4>>2]=HEAP32[$17+4>>2]|0;HEAP32[$67+8>>2]=HEAP32[$17+8>>2]|0;
  30688. break L13;
  30689. }
  30690. }
  30691. } while(0);
  30692. $$1 = 0;
  30693. STACKTOP = sp;return ($$1|0);
  30694. } else {
  30695. $43 = HEAP32[$23>>2]|0;
  30696. $44 = ($43|0)==(0);
  30697. if ($44) {
  30698. $$1 = 0;
  30699. STACKTOP = sp;return ($$1|0);
  30700. }
  30701. }
  30702. } while(0);
  30703. $68 = (_stbtt__find_table($1,14131)|0);
  30704. $69 = ($68|0)==(0);
  30705. if ($69) {
  30706. $$sink = 65535;
  30707. } else {
  30708. $70 = (($1) + ($68)|0);
  30709. $71 = ((($70)) + 4|0);
  30710. $72 = (_ttUSHORT($71)|0);
  30711. $73 = $72&65535;
  30712. $$sink = $73;
  30713. }
  30714. $74 = ((($0)) + 12|0);
  30715. HEAP32[$74>>2] = $$sink;
  30716. $75 = (($1) + ($21)|0);
  30717. $76 = ((($75)) + 2|0);
  30718. $77 = (_ttUSHORT($76)|0);
  30719. $78 = $77&65535;
  30720. $79 = ((($0)) + 40|0);
  30721. HEAP32[$79>>2] = 0;
  30722. $80 = ($77<<16>>16)==(0);
  30723. if ($80) {
  30724. $$1 = 0;
  30725. STACKTOP = sp;return ($$1|0);
  30726. }
  30727. $81 = (($21) + 4)|0;
  30728. $$0902 = 0;
  30729. while(1) {
  30730. $82 = $$0902 << 3;
  30731. $83 = (($81) + ($82))|0;
  30732. $84 = (($1) + ($83)|0);
  30733. $85 = (_ttUSHORT($84)|0);
  30734. L35: do {
  30735. switch ($85<<16>>16) {
  30736. case 3: {
  30737. $86 = ((($84)) + 2|0);
  30738. $87 = (_ttUSHORT($86)|0);
  30739. switch ($87<<16>>16) {
  30740. case 10: case 1: {
  30741. break;
  30742. }
  30743. default: {
  30744. break L35;
  30745. }
  30746. }
  30747. $88 = ((($84)) + 4|0);
  30748. $89 = (_ttULONG($88)|0);
  30749. $90 = (($89) + ($21))|0;
  30750. HEAP32[$79>>2] = $90;
  30751. break;
  30752. }
  30753. case 0: {
  30754. $91 = ((($84)) + 4|0);
  30755. $92 = (_ttULONG($91)|0);
  30756. $93 = (($92) + ($21))|0;
  30757. HEAP32[$79>>2] = $93;
  30758. break;
  30759. }
  30760. default: {
  30761. }
  30762. }
  30763. } while(0);
  30764. $94 = (($$0902) + 1)|0;
  30765. $exitcond = ($94|0)==($78|0);
  30766. if ($exitcond) {
  30767. break;
  30768. } else {
  30769. $$0902 = $94;
  30770. }
  30771. }
  30772. $$pr = HEAP32[$79>>2]|0;
  30773. $95 = ($$pr|0)==(0);
  30774. if ($95) {
  30775. $$1 = 0;
  30776. STACKTOP = sp;return ($$1|0);
  30777. }
  30778. $96 = HEAP32[$25>>2]|0;
  30779. $97 = (($1) + ($96)|0);
  30780. $98 = ((($97)) + 50|0);
  30781. $99 = (_ttUSHORT($98)|0);
  30782. $100 = $99&65535;
  30783. $101 = ((($0)) + 44|0);
  30784. HEAP32[$101>>2] = $100;
  30785. $$1 = 1;
  30786. STACKTOP = sp;return ($$1|0);
  30787. }
  30788. function _stbtt__find_table($0,$1) {
  30789. $0 = $0|0;
  30790. $1 = $1|0;
  30791. var $$0312 = 0, $$2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  30792. var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  30793. var sp = 0;
  30794. sp = STACKTOP;
  30795. $2 = ((($0)) + 4|0);
  30796. $3 = (_ttUSHORT($2)|0);
  30797. $4 = $3&65535;
  30798. $5 = ($3<<16>>16)==(0);
  30799. if ($5) {
  30800. $$2 = 0;
  30801. return ($$2|0);
  30802. }
  30803. $6 = HEAP8[$1>>0]|0;
  30804. $7 = $6 << 24 >> 24;
  30805. $8 = ((($1)) + 1|0);
  30806. $9 = ((($1)) + 2|0);
  30807. $10 = ((($1)) + 3|0);
  30808. $$0312 = 0;
  30809. while(1) {
  30810. $11 = $$0312 << 4;
  30811. $12 = $11 | 12;
  30812. $13 = (($0) + ($12)|0);
  30813. $14 = HEAP8[$13>>0]|0;
  30814. $15 = $14&255;
  30815. $16 = ($15|0)==($7|0);
  30816. if ($16) {
  30817. $17 = ((($13)) + 1|0);
  30818. $18 = HEAP8[$17>>0]|0;
  30819. $19 = $18&255;
  30820. $20 = HEAP8[$8>>0]|0;
  30821. $21 = $20 << 24 >> 24;
  30822. $22 = ($19|0)==($21|0);
  30823. if ($22) {
  30824. $23 = ((($13)) + 2|0);
  30825. $24 = HEAP8[$23>>0]|0;
  30826. $25 = $24&255;
  30827. $26 = HEAP8[$9>>0]|0;
  30828. $27 = $26 << 24 >> 24;
  30829. $28 = ($25|0)==($27|0);
  30830. if ($28) {
  30831. $29 = ((($13)) + 3|0);
  30832. $30 = HEAP8[$29>>0]|0;
  30833. $31 = $30&255;
  30834. $32 = HEAP8[$10>>0]|0;
  30835. $33 = $32 << 24 >> 24;
  30836. $34 = ($31|0)==($33|0);
  30837. if ($34) {
  30838. break;
  30839. }
  30840. }
  30841. }
  30842. }
  30843. $37 = (($$0312) + 1)|0;
  30844. $38 = ($37|0)<($4|0);
  30845. if ($38) {
  30846. $$0312 = $37;
  30847. } else {
  30848. $$2 = 0;
  30849. label = 9;
  30850. break;
  30851. }
  30852. }
  30853. if ((label|0) == 9) {
  30854. return ($$2|0);
  30855. }
  30856. $35 = ((($13)) + 8|0);
  30857. $36 = (_ttULONG($35)|0);
  30858. $$2 = $36;
  30859. return ($$2|0);
  30860. }
  30861. function _DrawText($0,$1,$2,$3,$4) {
  30862. $0 = $0|0;
  30863. $1 = $1|0;
  30864. $2 = $2|0;
  30865. $3 = $3|0;
  30866. $4 = $4|0;
  30867. 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;
  30868. sp = STACKTOP;
  30869. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  30870. $$byval_copy2 = sp + 112|0;
  30871. $$byval_copy1 = sp + 104|0;
  30872. $$byval_copy = sp + 72|0;
  30873. $5 = sp + 32|0;
  30874. $6 = sp + 64|0;
  30875. $7 = sp;
  30876. _GetDefaultFont($5);
  30877. $8 = HEAP32[$5>>2]|0;
  30878. $9 = ($8|0)==(0);
  30879. if ($9) {
  30880. STACKTOP = sp;return;
  30881. }
  30882. $10 = (+($1|0));
  30883. HEAPF32[$6>>2] = $10;
  30884. $11 = ((($6)) + 4|0);
  30885. $12 = (+($2|0));
  30886. HEAPF32[$11>>2] = $12;
  30887. $13 = ($3|0)>(10);
  30888. $$ = $13 ? $3 : 10;
  30889. $14 = (($$>>>0) / 10)&-1;
  30890. _GetDefaultFont($7);
  30891. $15 = (+($$|0));
  30892. ;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;
  30893. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  30894. ;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;
  30895. _DrawTextEx($$byval_copy,$0,$$byval_copy1,$15,$14,$$byval_copy2);
  30896. STACKTOP = sp;return;
  30897. }
  30898. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  30899. $0 = $0|0;
  30900. $1 = $1|0;
  30901. $2 = $2|0;
  30902. $3 = +$3;
  30903. $4 = $4|0;
  30904. $5 = $5|0;
  30905. 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;
  30906. 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;
  30907. 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;
  30908. 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;
  30909. 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;
  30910. sp = STACKTOP;
  30911. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  30912. $$byval_copy5 = sp + 88|0;
  30913. $$byval_copy4 = sp + 80|0;
  30914. $$byval_copy3 = sp + 64|0;
  30915. $$byval_copy2 = sp + 48|0;
  30916. $$byval_copy1 = sp + 24|0;
  30917. $6 = sp + 8|0;
  30918. $7 = sp;
  30919. $8 = (_strlen($1)|0);
  30920. $9 = ((($0)) + 20|0);
  30921. $10 = HEAP32[$9>>2]|0;
  30922. $11 = (+($10|0));
  30923. $12 = $3 / $11;
  30924. $13 = ($8|0)>(0);
  30925. if (!($13)) {
  30926. STACKTOP = sp;return;
  30927. }
  30928. $14 = ((($0)) + 28|0);
  30929. $15 = +HEAPF32[$2>>2];
  30930. $16 = ((($6)) + 4|0);
  30931. $17 = ((($2)) + 4|0);
  30932. $18 = ((($6)) + 8|0);
  30933. $19 = ((($6)) + 12|0);
  30934. $20 = ((($7)) + 4|0);
  30935. $21 = (+($4|0));
  30936. $$04954 = 0;$$05153 = 0;$$055 = 0;
  30937. while(1) {
  30938. $22 = (($1) + ($$055)|0);
  30939. $23 = HEAP8[$22>>0]|0;
  30940. switch ($23<<24>>24) {
  30941. case 10: {
  30942. $24 = HEAP32[$9>>2]|0;
  30943. $25 = (($24|0) / 2)&-1;
  30944. $26 = (($25) + ($24))|0;
  30945. $27 = (+($26|0));
  30946. $28 = $12 * $27;
  30947. $29 = (~~(($28)));
  30948. $30 = (($29) + ($$05153))|0;
  30949. $$150 = 0;$$152 = $30;$$2 = $$055;
  30950. break;
  30951. }
  30952. case -62: {
  30953. $31 = (($$055) + 1)|0;
  30954. $32 = (($1) + ($31)|0);
  30955. $33 = HEAP8[$32>>0]|0;
  30956. $34 = $33&255;
  30957. $$1 = $31;$$sink = $34;
  30958. label = 9;
  30959. break;
  30960. }
  30961. case -61: {
  30962. $35 = (($$055) + 1)|0;
  30963. $36 = (($1) + ($35)|0);
  30964. $37 = HEAP8[$36>>0]|0;
  30965. $38 = $37&255;
  30966. $39 = (($38) + 64)|0;
  30967. $$1 = $35;$$sink = $39;
  30968. label = 9;
  30969. break;
  30970. }
  30971. default: {
  30972. $40 = $23 << 24 >> 24;
  30973. $$1 = $$055;$$sink = $40;
  30974. label = 9;
  30975. }
  30976. }
  30977. do {
  30978. if ((label|0) == 9) {
  30979. label = 0;
  30980. ;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;
  30981. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  30982. $42 = HEAP32[$14>>2]|0;
  30983. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  30984. $44 = (+($$04954|0));
  30985. $45 = $44 + $15;
  30986. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  30987. $47 = HEAP32[$46>>2]|0;
  30988. $48 = (+($47|0));
  30989. $49 = $12 * $48;
  30990. $50 = $45 + $49;
  30991. $51 = (~~(($50)));
  30992. HEAP32[$6>>2] = $51;
  30993. $52 = +HEAPF32[$17>>2];
  30994. $53 = (+($$05153|0));
  30995. $54 = $53 + $52;
  30996. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  30997. $56 = HEAP32[$55>>2]|0;
  30998. $57 = (+($56|0));
  30999. $58 = $12 * $57;
  31000. $59 = $54 + $58;
  31001. $60 = (~~(($59)));
  31002. HEAP32[$16>>2] = $60;
  31003. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  31004. $62 = HEAP32[$61>>2]|0;
  31005. $63 = (+($62|0));
  31006. $64 = $12 * $63;
  31007. $65 = (~~(($64)));
  31008. HEAP32[$18>>2] = $65;
  31009. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  31010. $67 = HEAP32[$66>>2]|0;
  31011. $68 = (+($67|0));
  31012. $69 = $12 * $68;
  31013. $70 = (~~(($69)));
  31014. HEAP32[$19>>2] = $70;
  31015. HEAPF32[$7>>2] = 0.0;
  31016. HEAPF32[$20>>2] = 0.0;
  31017. ;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;
  31018. ;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;
  31019. ;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;
  31020. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  31021. ;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;
  31022. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  31023. $71 = HEAP32[$14>>2]|0;
  31024. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  31025. $73 = HEAP32[$72>>2]|0;
  31026. $74 = ($73|0)==(0);
  31027. if ($74) {
  31028. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  31029. $76 = HEAP32[$75>>2]|0;
  31030. $77 = (+($76|0));
  31031. $78 = $12 * $77;
  31032. $79 = $21 + $78;
  31033. $80 = (~~(($79)));
  31034. $81 = (($80) + ($$04954))|0;
  31035. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  31036. break;
  31037. } else {
  31038. $82 = (+($73|0));
  31039. $83 = $12 * $82;
  31040. $84 = $21 + $83;
  31041. $85 = (~~(($84)));
  31042. $86 = (($85) + ($$04954))|0;
  31043. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  31044. break;
  31045. }
  31046. }
  31047. } while(0);
  31048. $87 = (($$2) + 1)|0;
  31049. $88 = ($87|0)<($8|0);
  31050. if ($88) {
  31051. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  31052. } else {
  31053. break;
  31054. }
  31055. }
  31056. STACKTOP = sp;return;
  31057. }
  31058. function _emscripten_GetProcAddress($0) {
  31059. $0 = $0|0;
  31060. 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;
  31061. 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;
  31062. 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;
  31063. 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;
  31064. 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;
  31065. 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;
  31066. 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;
  31067. 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;
  31068. 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;
  31069. 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;
  31070. 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;
  31071. 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;
  31072. 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;
  31073. 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;
  31074. 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;
  31075. 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;
  31076. 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;
  31077. 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;
  31078. 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;
  31079. 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;
  31080. 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;
  31081. 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;
  31082. 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;
  31083. 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;
  31084. 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;
  31085. 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;
  31086. 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;
  31087. 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;
  31088. sp = STACKTOP;
  31089. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  31090. $1 = sp + 12|0;
  31091. $2 = sp + 8|0;
  31092. $3 = sp + 4|0;
  31093. $4 = sp;
  31094. HEAP32[$2>>2] = $0;
  31095. $5 = HEAP32[$2>>2]|0;
  31096. $6 = (_strlen($5)|0);
  31097. $7 = (($6) + 1)|0;
  31098. $8 = (_malloc($7)|0);
  31099. HEAP32[$3>>2] = $8;
  31100. $9 = HEAP32[$3>>2]|0;
  31101. $10 = HEAP32[$2>>2]|0;
  31102. (_strcpy($9,$10)|0);
  31103. $11 = HEAP32[$3>>2]|0;
  31104. $12 = (_strstr($11,14136)|0);
  31105. HEAP32[$4>>2] = $12;
  31106. $13 = HEAP32[$4>>2]|0;
  31107. $14 = ($13|0)!=(0|0);
  31108. if ($14) {
  31109. $15 = HEAP32[$4>>2]|0;
  31110. HEAP8[$15>>0] = 0;
  31111. }
  31112. $16 = HEAP32[$3>>2]|0;
  31113. $17 = (_strstr($16,14140)|0);
  31114. HEAP32[$4>>2] = $17;
  31115. $18 = HEAP32[$4>>2]|0;
  31116. $19 = ($18|0)!=(0|0);
  31117. if ($19) {
  31118. $20 = HEAP32[$4>>2]|0;
  31119. HEAP8[$20>>0] = 0;
  31120. }
  31121. $21 = HEAP32[$3>>2]|0;
  31122. $22 = (_strstr($21,14144)|0);
  31123. HEAP32[$4>>2] = $22;
  31124. $23 = HEAP32[$4>>2]|0;
  31125. $24 = ($23|0)!=(0|0);
  31126. if ($24) {
  31127. $25 = HEAP32[$4>>2]|0;
  31128. HEAP8[$25>>0] = 0;
  31129. }
  31130. $26 = HEAP32[$3>>2]|0;
  31131. $27 = (_strstr($26,14148)|0);
  31132. HEAP32[$4>>2] = $27;
  31133. $28 = HEAP32[$4>>2]|0;
  31134. $29 = ($28|0)!=(0|0);
  31135. if ($29) {
  31136. $30 = HEAP32[$4>>2]|0;
  31137. HEAP8[$30>>0] = 0;
  31138. }
  31139. $31 = HEAP32[$3>>2]|0;
  31140. $32 = (_strcmp($31,14154)|0);
  31141. $33 = ($32|0)!=(0);
  31142. do {
  31143. if ($33) {
  31144. $34 = HEAP32[$3>>2]|0;
  31145. $35 = (_strcmp($34,14192)|0);
  31146. $36 = ($35|0)!=(0);
  31147. if (!($36)) {
  31148. HEAP32[$3>>2] = 14211;
  31149. break;
  31150. }
  31151. $37 = HEAP32[$3>>2]|0;
  31152. $38 = (_strcmp($37,14224)|0);
  31153. $39 = ($38|0)!=(0);
  31154. if (!($39)) {
  31155. HEAP32[$3>>2] = 14245;
  31156. break;
  31157. }
  31158. $40 = HEAP32[$3>>2]|0;
  31159. $41 = (_strcmp($40,14260)|0);
  31160. $42 = ($41|0)!=(0);
  31161. if (!($42)) {
  31162. HEAP32[$3>>2] = 14275;
  31163. break;
  31164. }
  31165. $43 = HEAP32[$3>>2]|0;
  31166. $44 = (_strcmp($43,14290)|0);
  31167. $45 = ($44|0)!=(0);
  31168. if (!($45)) {
  31169. HEAP32[$3>>2] = 14305;
  31170. }
  31171. } else {
  31172. HEAP32[$3>>2] = 14176;
  31173. }
  31174. } while(0);
  31175. $46 = HEAP32[$3>>2]|0;
  31176. $47 = (_strcmp($46,14320)|0);
  31177. $48 = ($47|0)!=(0);
  31178. do {
  31179. if ($48) {
  31180. $49 = HEAP32[$3>>2]|0;
  31181. $50 = (_strcmp($49,14334)|0);
  31182. $51 = ($50|0)!=(0);
  31183. if (!($51)) {
  31184. HEAP32[$1>>2] = 3;
  31185. break;
  31186. }
  31187. $52 = HEAP32[$3>>2]|0;
  31188. $53 = (_strcmp($52,14346)|0);
  31189. $54 = ($53|0)!=(0);
  31190. if (!($54)) {
  31191. HEAP32[$1>>2] = 7;
  31192. break;
  31193. }
  31194. $55 = HEAP32[$3>>2]|0;
  31195. $56 = (_strcmp($55,14360)|0);
  31196. $57 = ($56|0)!=(0);
  31197. if (!($57)) {
  31198. HEAP32[$1>>2] = 8;
  31199. break;
  31200. }
  31201. $58 = HEAP32[$3>>2]|0;
  31202. $59 = (_strcmp($58,14372)|0);
  31203. $60 = ($59|0)!=(0);
  31204. if (!($60)) {
  31205. HEAP32[$1>>2] = 9;
  31206. break;
  31207. }
  31208. $61 = HEAP32[$3>>2]|0;
  31209. $62 = (_strcmp($61,14386)|0);
  31210. $63 = ($62|0)!=(0);
  31211. if (!($63)) {
  31212. HEAP32[$1>>2] = 10;
  31213. break;
  31214. }
  31215. $64 = HEAP32[$3>>2]|0;
  31216. $65 = (_strcmp($64,14400)|0);
  31217. $66 = ($65|0)!=(0);
  31218. if (!($66)) {
  31219. HEAP32[$1>>2] = 11;
  31220. break;
  31221. }
  31222. $67 = HEAP32[$3>>2]|0;
  31223. $68 = (_strcmp($67,14417)|0);
  31224. $69 = ($68|0)!=(0);
  31225. if (!($69)) {
  31226. HEAP32[$1>>2] = 1;
  31227. break;
  31228. }
  31229. $70 = HEAP32[$3>>2]|0;
  31230. $71 = (_strcmp($70,14440)|0);
  31231. $72 = ($71|0)!=(0);
  31232. if (!($72)) {
  31233. HEAP32[$1>>2] = 1;
  31234. break;
  31235. }
  31236. $73 = HEAP32[$3>>2]|0;
  31237. $74 = (_strcmp($73,14466)|0);
  31238. $75 = ($74|0)!=(0);
  31239. if (!($75)) {
  31240. HEAP32[$1>>2] = 2;
  31241. break;
  31242. }
  31243. $76 = HEAP32[$3>>2]|0;
  31244. $77 = (_strcmp($76,14479)|0);
  31245. $78 = ($77|0)!=(0);
  31246. if (!($78)) {
  31247. HEAP32[$1>>2] = 3;
  31248. break;
  31249. }
  31250. $79 = HEAP32[$3>>2]|0;
  31251. $80 = (_strcmp($79,14495)|0);
  31252. $81 = ($80|0)!=(0);
  31253. if (!($81)) {
  31254. HEAP32[$1>>2] = 1;
  31255. break;
  31256. }
  31257. $82 = HEAP32[$3>>2]|0;
  31258. $83 = (_strcmp($82,14508)|0);
  31259. $84 = ($83|0)!=(0);
  31260. if (!($84)) {
  31261. HEAP32[$1>>2] = 12;
  31262. break;
  31263. }
  31264. $85 = HEAP32[$3>>2]|0;
  31265. $86 = (_strcmp($85,14522)|0);
  31266. $87 = ($86|0)!=(0);
  31267. if (!($87)) {
  31268. HEAP32[$1>>2] = 2;
  31269. break;
  31270. }
  31271. $88 = HEAP32[$3>>2]|0;
  31272. $89 = (_strcmp($88,14542)|0);
  31273. $90 = ($89|0)!=(0);
  31274. if (!($90)) {
  31275. HEAP32[$1>>2] = 3;
  31276. break;
  31277. }
  31278. $91 = HEAP32[$3>>2]|0;
  31279. $92 = (_strcmp($91,14562)|0);
  31280. $93 = ($92|0)!=(0);
  31281. if (!($93)) {
  31282. HEAP32[$1>>2] = 4;
  31283. break;
  31284. }
  31285. $94 = HEAP32[$3>>2]|0;
  31286. $95 = (_strcmp($94,14579)|0);
  31287. $96 = ($95|0)!=(0);
  31288. if (!($96)) {
  31289. HEAP32[$1>>2] = 5;
  31290. break;
  31291. }
  31292. $97 = HEAP32[$3>>2]|0;
  31293. $98 = (_strcmp($97,14596)|0);
  31294. $99 = ($98|0)!=(0);
  31295. if (!($99)) {
  31296. HEAP32[$1>>2] = 4;
  31297. break;
  31298. }
  31299. $100 = HEAP32[$3>>2]|0;
  31300. $101 = (_strcmp($100,14608)|0);
  31301. $102 = ($101|0)!=(0);
  31302. if (!($102)) {
  31303. HEAP32[$1>>2] = 13;
  31304. break;
  31305. }
  31306. $103 = HEAP32[$3>>2]|0;
  31307. $104 = (_strcmp($103,14621)|0);
  31308. $105 = ($104|0)!=(0);
  31309. if (!($105)) {
  31310. HEAP32[$1>>2] = 14;
  31311. break;
  31312. }
  31313. $106 = HEAP32[$3>>2]|0;
  31314. $107 = (_strcmp($106,14637)|0);
  31315. $108 = ($107|0)!=(0);
  31316. if (!($108)) {
  31317. HEAP32[$1>>2] = 6;
  31318. break;
  31319. }
  31320. $109 = HEAP32[$3>>2]|0;
  31321. $110 = (_strcmp($109,14660)|0);
  31322. $111 = ($110|0)!=(0);
  31323. if (!($111)) {
  31324. HEAP32[$1>>2] = 2;
  31325. break;
  31326. }
  31327. $112 = HEAP32[$3>>2]|0;
  31328. $113 = (_strcmp($112,14673)|0);
  31329. $114 = ($113|0)!=(0);
  31330. if (!($114)) {
  31331. HEAP32[$1>>2] = 3;
  31332. break;
  31333. }
  31334. $115 = HEAP32[$3>>2]|0;
  31335. $116 = (_strcmp($115,14689)|0);
  31336. $117 = ($116|0)!=(0);
  31337. if (!($117)) {
  31338. HEAP32[$1>>2] = 5;
  31339. break;
  31340. }
  31341. $118 = HEAP32[$3>>2]|0;
  31342. $119 = (_strcmp($118,14700)|0);
  31343. $120 = ($119|0)!=(0);
  31344. if (!($120)) {
  31345. HEAP32[$1>>2] = 15;
  31346. break;
  31347. }
  31348. $121 = HEAP32[$3>>2]|0;
  31349. $122 = (_strcmp($121,14719)|0);
  31350. $123 = ($122|0)!=(0);
  31351. if (!($123)) {
  31352. HEAP32[$1>>2] = 16;
  31353. break;
  31354. }
  31355. $124 = HEAP32[$3>>2]|0;
  31356. $125 = (_strcmp($124,14741)|0);
  31357. $126 = ($125|0)!=(0);
  31358. if (!($126)) {
  31359. HEAP32[$1>>2] = 17;
  31360. break;
  31361. }
  31362. $127 = HEAP32[$3>>2]|0;
  31363. $128 = (_strcmp($127,14760)|0);
  31364. $129 = ($128|0)!=(0);
  31365. if (!($129)) {
  31366. HEAP32[$1>>2] = 7;
  31367. break;
  31368. }
  31369. $130 = HEAP32[$3>>2]|0;
  31370. $131 = (_strcmp($130,14789)|0);
  31371. $132 = ($131|0)!=(0);
  31372. if (!($132)) {
  31373. HEAP32[$1>>2] = 6;
  31374. break;
  31375. }
  31376. $133 = HEAP32[$3>>2]|0;
  31377. $134 = (_strcmp($133,14806)|0);
  31378. $135 = ($134|0)!=(0);
  31379. if (!($135)) {
  31380. HEAP32[$1>>2] = 8;
  31381. break;
  31382. }
  31383. $136 = HEAP32[$3>>2]|0;
  31384. $137 = (_strcmp($136,14821)|0);
  31385. $138 = ($137|0)!=(0);
  31386. if (!($138)) {
  31387. HEAP32[$1>>2] = 9;
  31388. break;
  31389. }
  31390. $139 = HEAP32[$3>>2]|0;
  31391. $140 = (_strcmp($139,14836)|0);
  31392. $141 = ($140|0)!=(0);
  31393. if (!($141)) {
  31394. HEAP32[$1>>2] = 1;
  31395. break;
  31396. }
  31397. $142 = HEAP32[$3>>2]|0;
  31398. $143 = (_strcmp($142,14857)|0);
  31399. $144 = ($143|0)!=(0);
  31400. if (!($144)) {
  31401. HEAP32[$1>>2] = 10;
  31402. break;
  31403. }
  31404. $145 = HEAP32[$3>>2]|0;
  31405. $146 = (_strcmp($145,14877)|0);
  31406. $147 = ($146|0)!=(0);
  31407. if (!($147)) {
  31408. HEAP32[$1>>2] = 11;
  31409. break;
  31410. }
  31411. $148 = HEAP32[$3>>2]|0;
  31412. $149 = (_strcmp($148,14897)|0);
  31413. $150 = ($149|0)!=(0);
  31414. if (!($150)) {
  31415. HEAP32[$1>>2] = 12;
  31416. break;
  31417. }
  31418. $151 = HEAP32[$3>>2]|0;
  31419. $152 = (_strcmp($151,14923)|0);
  31420. $153 = ($152|0)!=(0);
  31421. if (!($153)) {
  31422. HEAP32[$1>>2] = 2;
  31423. break;
  31424. }
  31425. $154 = HEAP32[$3>>2]|0;
  31426. $155 = (_strcmp($154,14942)|0);
  31427. $156 = ($155|0)!=(0);
  31428. if (!($156)) {
  31429. HEAP32[$1>>2] = 1;
  31430. break;
  31431. }
  31432. $157 = HEAP32[$3>>2]|0;
  31433. $158 = (_strcmp($157,14954)|0);
  31434. $159 = ($158|0)!=(0);
  31435. if (!($159)) {
  31436. HEAP32[$1>>2] = 3;
  31437. break;
  31438. }
  31439. $160 = HEAP32[$3>>2]|0;
  31440. $161 = (_strcmp($160,14966)|0);
  31441. $162 = ($161|0)!=(0);
  31442. if (!($162)) {
  31443. HEAP32[$1>>2] = 1;
  31444. break;
  31445. }
  31446. $163 = HEAP32[$3>>2]|0;
  31447. $164 = (_strcmp($163,14978)|0);
  31448. $165 = ($164|0)!=(0);
  31449. if (!($165)) {
  31450. HEAP32[$1>>2] = 1;
  31451. break;
  31452. }
  31453. $166 = HEAP32[$3>>2]|0;
  31454. $167 = (_strcmp($166,14990)|0);
  31455. $168 = ($167|0)!=(0);
  31456. if (!($168)) {
  31457. HEAP32[$1>>2] = 18;
  31458. break;
  31459. }
  31460. $169 = HEAP32[$3>>2]|0;
  31461. $170 = (_strcmp($169,15002)|0);
  31462. $171 = ($170|0)!=(0);
  31463. if (!($171)) {
  31464. HEAP32[$1>>2] = 13;
  31465. break;
  31466. }
  31467. $172 = HEAP32[$3>>2]|0;
  31468. $173 = (_strcmp($172,15014)|0);
  31469. $174 = ($173|0)!=(0);
  31470. if (!($174)) {
  31471. HEAP32[$1>>2] = 4;
  31472. break;
  31473. }
  31474. $175 = HEAP32[$3>>2]|0;
  31475. $176 = (_strcmp($175,15026)|0);
  31476. $177 = ($176|0)!=(0);
  31477. if (!($177)) {
  31478. HEAP32[$1>>2] = 2;
  31479. break;
  31480. }
  31481. $178 = HEAP32[$3>>2]|0;
  31482. $179 = (_strcmp($178,15038)|0);
  31483. $180 = ($179|0)!=(0);
  31484. if (!($180)) {
  31485. HEAP32[$1>>2] = 14;
  31486. break;
  31487. }
  31488. $181 = HEAP32[$3>>2]|0;
  31489. $182 = (_strcmp($181,15051)|0);
  31490. $183 = ($182|0)!=(0);
  31491. if (!($183)) {
  31492. HEAP32[$1>>2] = 15;
  31493. break;
  31494. }
  31495. $184 = HEAP32[$3>>2]|0;
  31496. $185 = (_strcmp($184,15064)|0);
  31497. $186 = ($185|0)!=(0);
  31498. if (!($186)) {
  31499. HEAP32[$1>>2] = 16;
  31500. break;
  31501. }
  31502. $187 = HEAP32[$3>>2]|0;
  31503. $188 = (_strcmp($187,15077)|0);
  31504. $189 = ($188|0)!=(0);
  31505. if (!($189)) {
  31506. HEAP32[$1>>2] = 17;
  31507. break;
  31508. }
  31509. $190 = HEAP32[$3>>2]|0;
  31510. $191 = (_strcmp($190,15090)|0);
  31511. $192 = ($191|0)!=(0);
  31512. if (!($192)) {
  31513. HEAP32[$1>>2] = 18;
  31514. break;
  31515. }
  31516. $193 = HEAP32[$3>>2]|0;
  31517. $194 = (_strcmp($193,15103)|0);
  31518. $195 = ($194|0)!=(0);
  31519. if (!($195)) {
  31520. HEAP32[$1>>2] = 19;
  31521. break;
  31522. }
  31523. $196 = HEAP32[$3>>2]|0;
  31524. $197 = (_strcmp($196,15116)|0);
  31525. $198 = ($197|0)!=(0);
  31526. if (!($198)) {
  31527. HEAP32[$1>>2] = 20;
  31528. break;
  31529. }
  31530. $199 = HEAP32[$3>>2]|0;
  31531. $200 = (_strcmp($199,15129)|0);
  31532. $201 = ($200|0)!=(0);
  31533. if (!($201)) {
  31534. HEAP32[$1>>2] = 21;
  31535. break;
  31536. }
  31537. $202 = HEAP32[$3>>2]|0;
  31538. $203 = (_strcmp($202,15142)|0);
  31539. $204 = ($203|0)!=(0);
  31540. if (!($204)) {
  31541. HEAP32[$1>>2] = 5;
  31542. break;
  31543. }
  31544. $205 = HEAP32[$3>>2]|0;
  31545. $206 = (_strcmp($205,15161)|0);
  31546. $207 = ($206|0)!=(0);
  31547. if (!($207)) {
  31548. HEAP32[$1>>2] = 6;
  31549. break;
  31550. }
  31551. $208 = HEAP32[$3>>2]|0;
  31552. $209 = (_strcmp($208,15180)|0);
  31553. $210 = ($209|0)!=(0);
  31554. if (!($210)) {
  31555. HEAP32[$1>>2] = 7;
  31556. break;
  31557. }
  31558. $211 = HEAP32[$3>>2]|0;
  31559. $212 = (_strcmp($211,15199)|0);
  31560. $213 = ($212|0)!=(0);
  31561. if (!($213)) {
  31562. HEAP32[$1>>2] = 19;
  31563. break;
  31564. }
  31565. $214 = HEAP32[$3>>2]|0;
  31566. $215 = (_strcmp($214,15212)|0);
  31567. $216 = ($215|0)!=(0);
  31568. if (!($216)) {
  31569. HEAP32[$1>>2] = 20;
  31570. break;
  31571. }
  31572. $217 = HEAP32[$3>>2]|0;
  31573. $218 = (_strcmp($217,15230)|0);
  31574. $219 = ($218|0)!=(0);
  31575. if (!($219)) {
  31576. HEAP32[$1>>2] = 21;
  31577. break;
  31578. }
  31579. $220 = HEAP32[$3>>2]|0;
  31580. $221 = (_strcmp($220,15248)|0);
  31581. $222 = ($221|0)!=(0);
  31582. if (!($222)) {
  31583. HEAP32[$1>>2] = 22;
  31584. break;
  31585. }
  31586. $223 = HEAP32[$3>>2]|0;
  31587. $224 = (_strcmp($223,15266)|0);
  31588. $225 = ($224|0)!=(0);
  31589. if (!($225)) {
  31590. HEAP32[$1>>2] = 23;
  31591. break;
  31592. }
  31593. $226 = HEAP32[$3>>2]|0;
  31594. $227 = (_strcmp($226,15284)|0);
  31595. $228 = ($227|0)!=(0);
  31596. if (!($228)) {
  31597. HEAP32[$1>>2] = 2;
  31598. break;
  31599. }
  31600. $229 = HEAP32[$3>>2]|0;
  31601. $230 = (_strcmp($229,15304)|0);
  31602. $231 = ($230|0)!=(0);
  31603. if (!($231)) {
  31604. HEAP32[$1>>2] = 3;
  31605. break;
  31606. }
  31607. $232 = HEAP32[$3>>2]|0;
  31608. $233 = (_strcmp($232,14245)|0);
  31609. $234 = ($233|0)!=(0);
  31610. if (!($234)) {
  31611. HEAP32[$1>>2] = 7;
  31612. break;
  31613. }
  31614. $235 = HEAP32[$3>>2]|0;
  31615. $236 = (_strcmp($235,15322)|0);
  31616. $237 = ($236|0)!=(0);
  31617. if (!($237)) {
  31618. HEAP32[$1>>2] = 1;
  31619. break;
  31620. }
  31621. $238 = HEAP32[$3>>2]|0;
  31622. $239 = (_strcmp($238,15337)|0);
  31623. $240 = ($239|0)!=(0);
  31624. if (!($240)) {
  31625. HEAP32[$1>>2] = 8;
  31626. break;
  31627. }
  31628. $241 = HEAP32[$3>>2]|0;
  31629. $242 = (_strcmp($241,15358)|0);
  31630. $243 = ($242|0)!=(0);
  31631. if (!($243)) {
  31632. HEAP32[$1>>2] = 9;
  31633. break;
  31634. }
  31635. $244 = HEAP32[$3>>2]|0;
  31636. $245 = (_strcmp($244,15373)|0);
  31637. $246 = ($245|0)!=(0);
  31638. if (!($246)) {
  31639. HEAP32[$1>>2] = 10;
  31640. break;
  31641. }
  31642. $247 = HEAP32[$3>>2]|0;
  31643. $248 = (_strcmp($247,15391)|0);
  31644. $249 = ($248|0)!=(0);
  31645. if (!($249)) {
  31646. HEAP32[$1>>2] = 2;
  31647. break;
  31648. }
  31649. $250 = HEAP32[$3>>2]|0;
  31650. $251 = (_strcmp($250,15407)|0);
  31651. $252 = ($251|0)!=(0);
  31652. if (!($252)) {
  31653. HEAP32[$1>>2] = 11;
  31654. break;
  31655. }
  31656. $253 = HEAP32[$3>>2]|0;
  31657. $254 = (_strcmp($253,15426)|0);
  31658. $255 = ($254|0)!=(0);
  31659. if (!($255)) {
  31660. HEAP32[$1>>2] = 22;
  31661. break;
  31662. }
  31663. $256 = HEAP32[$3>>2]|0;
  31664. $257 = (_strcmp($256,15440)|0);
  31665. $258 = ($257|0)!=(0);
  31666. if (!($258)) {
  31667. HEAP32[$1>>2] = 23;
  31668. break;
  31669. }
  31670. $259 = HEAP32[$3>>2]|0;
  31671. $260 = (_strcmp($259,15455)|0);
  31672. $261 = ($260|0)!=(0);
  31673. if (!($261)) {
  31674. HEAP32[$1>>2] = 8;
  31675. break;
  31676. }
  31677. $262 = HEAP32[$3>>2]|0;
  31678. $263 = (_strcmp($262,14176)|0);
  31679. $264 = ($263|0)!=(0);
  31680. if (!($264)) {
  31681. HEAP32[$1>>2] = 1;
  31682. break;
  31683. }
  31684. $265 = HEAP32[$3>>2]|0;
  31685. $266 = (_strcmp($265,15466)|0);
  31686. $267 = ($266|0)!=(0);
  31687. if (!($267)) {
  31688. HEAP32[$1>>2] = 3;
  31689. break;
  31690. }
  31691. $268 = HEAP32[$3>>2]|0;
  31692. $269 = (_strcmp($268,14275)|0);
  31693. $270 = ($269|0)!=(0);
  31694. if (!($270)) {
  31695. HEAP32[$1>>2] = 24;
  31696. break;
  31697. }
  31698. $271 = HEAP32[$3>>2]|0;
  31699. $272 = (_strcmp($271,14305)|0);
  31700. $273 = ($272|0)!=(0);
  31701. if (!($273)) {
  31702. HEAP32[$1>>2] = 25;
  31703. break;
  31704. }
  31705. $274 = HEAP32[$3>>2]|0;
  31706. $275 = (_strcmp($274,15482)|0);
  31707. $276 = ($275|0)!=(0);
  31708. if (!($276)) {
  31709. HEAP32[$1>>2] = 12;
  31710. break;
  31711. }
  31712. $277 = HEAP32[$3>>2]|0;
  31713. $278 = (_strcmp($277,15509)|0);
  31714. $279 = ($278|0)!=(0);
  31715. if (!($279)) {
  31716. HEAP32[$1>>2] = 4;
  31717. break;
  31718. }
  31719. $280 = HEAP32[$3>>2]|0;
  31720. $281 = (_strcmp($280,15523)|0);
  31721. $282 = ($281|0)!=(0);
  31722. if (!($282)) {
  31723. HEAP32[$1>>2] = 13;
  31724. break;
  31725. }
  31726. $283 = HEAP32[$3>>2]|0;
  31727. $284 = (_strcmp($283,14211)|0);
  31728. $285 = ($284|0)!=(0);
  31729. if (!($285)) {
  31730. HEAP32[$1>>2] = 5;
  31731. break;
  31732. }
  31733. $286 = HEAP32[$3>>2]|0;
  31734. $287 = (_strcmp($286,15543)|0);
  31735. $288 = ($287|0)!=(0);
  31736. if (!($288)) {
  31737. HEAP32[$1>>2] = 6;
  31738. break;
  31739. }
  31740. $289 = HEAP32[$3>>2]|0;
  31741. $290 = (_strcmp($289,15561)|0);
  31742. $291 = ($290|0)!=(0);
  31743. if (!($291)) {
  31744. HEAP32[$1>>2] = 9;
  31745. break;
  31746. }
  31747. $292 = HEAP32[$3>>2]|0;
  31748. $293 = (_strcmp($292,15573)|0);
  31749. $294 = ($293|0)!=(0);
  31750. if (!($294)) {
  31751. HEAP32[$1>>2] = 24;
  31752. break;
  31753. }
  31754. $295 = HEAP32[$3>>2]|0;
  31755. $296 = (_strcmp($295,15594)|0);
  31756. $297 = ($296|0)!=(0);
  31757. if (!($297)) {
  31758. HEAP32[$1>>2] = 26;
  31759. break;
  31760. }
  31761. $298 = HEAP32[$3>>2]|0;
  31762. $299 = (_strcmp($298,15612)|0);
  31763. $300 = ($299|0)!=(0);
  31764. if (!($300)) {
  31765. HEAP32[$1>>2] = 27;
  31766. break;
  31767. }
  31768. $301 = HEAP32[$3>>2]|0;
  31769. $302 = (_strcmp($301,15630)|0);
  31770. $303 = ($302|0)!=(0);
  31771. if (!($303)) {
  31772. HEAP32[$1>>2] = 28;
  31773. break;
  31774. }
  31775. $304 = HEAP32[$3>>2]|0;
  31776. $305 = (_strcmp($304,15651)|0);
  31777. $306 = ($305|0)!=(0);
  31778. if (!($306)) {
  31779. HEAP32[$1>>2] = 14;
  31780. break;
  31781. }
  31782. $307 = HEAP32[$3>>2]|0;
  31783. $308 = (_strcmp($307,15677)|0);
  31784. $309 = ($308|0)!=(0);
  31785. if (!($309)) {
  31786. HEAP32[$1>>2] = 3;
  31787. break;
  31788. }
  31789. $310 = HEAP32[$3>>2]|0;
  31790. $311 = (_strcmp($310,15700)|0);
  31791. $312 = ($311|0)!=(0);
  31792. if (!($312)) {
  31793. HEAP32[$1>>2] = 15;
  31794. break;
  31795. }
  31796. $313 = HEAP32[$3>>2]|0;
  31797. $314 = (_strcmp($313,15738)|0);
  31798. $315 = ($314|0)!=(0);
  31799. if (!($315)) {
  31800. HEAP32[$1>>2] = 10;
  31801. break;
  31802. }
  31803. $316 = HEAP32[$3>>2]|0;
  31804. $317 = (_strcmp($316,15754)|0);
  31805. $318 = ($317|0)!=(0);
  31806. if (!($318)) {
  31807. HEAP32[$1>>2] = 7;
  31808. break;
  31809. }
  31810. $319 = HEAP32[$3>>2]|0;
  31811. $320 = (_strcmp($319,15769)|0);
  31812. $321 = ($320|0)!=(0);
  31813. if (!($321)) {
  31814. HEAP32[$1>>2] = 25;
  31815. break;
  31816. }
  31817. $322 = HEAP32[$3>>2]|0;
  31818. $323 = (_strcmp($322,15792)|0);
  31819. $324 = ($323|0)!=(0);
  31820. if (!($324)) {
  31821. HEAP32[$1>>2] = 16;
  31822. break;
  31823. }
  31824. $325 = HEAP32[$3>>2]|0;
  31825. $326 = (_strcmp($325,15805)|0);
  31826. $327 = ($326|0)!=(0);
  31827. if (!($327)) {
  31828. HEAP32[$1>>2] = 29;
  31829. break;
  31830. }
  31831. $328 = HEAP32[$3>>2]|0;
  31832. $329 = (_strcmp($328,15819)|0);
  31833. $330 = ($329|0)!=(0);
  31834. if (!($330)) {
  31835. HEAP32[$1>>2] = 30;
  31836. break;
  31837. }
  31838. $331 = HEAP32[$3>>2]|0;
  31839. $332 = (_strcmp($331,15833)|0);
  31840. $333 = ($332|0)!=(0);
  31841. if (!($333)) {
  31842. HEAP32[$1>>2] = 1;
  31843. break;
  31844. }
  31845. $334 = HEAP32[$3>>2]|0;
  31846. $335 = (_strcmp($334,15853)|0);
  31847. $336 = ($335|0)!=(0);
  31848. if (!($336)) {
  31849. HEAP32[$1>>2] = 8;
  31850. break;
  31851. }
  31852. $337 = HEAP32[$3>>2]|0;
  31853. $338 = (_strcmp($337,15873)|0);
  31854. $339 = ($338|0)!=(0);
  31855. if (!($339)) {
  31856. HEAP32[$1>>2] = 17;
  31857. break;
  31858. }
  31859. $340 = HEAP32[$3>>2]|0;
  31860. $341 = (_strcmp($340,15889)|0);
  31861. $342 = ($341|0)!=(0);
  31862. if (!($342)) {
  31863. HEAP32[$1>>2] = 18;
  31864. break;
  31865. }
  31866. $343 = HEAP32[$3>>2]|0;
  31867. $344 = (_strcmp($343,15907)|0);
  31868. $345 = ($344|0)!=(0);
  31869. if (!($345)) {
  31870. HEAP32[$1>>2] = 26;
  31871. break;
  31872. }
  31873. $346 = HEAP32[$3>>2]|0;
  31874. $347 = (_strcmp($346,15923)|0);
  31875. $348 = ($347|0)!=(0);
  31876. if (!($348)) {
  31877. HEAP32[$1>>2] = 19;
  31878. break;
  31879. }
  31880. $349 = HEAP32[$3>>2]|0;
  31881. $350 = (_strcmp($349,15938)|0);
  31882. $351 = ($350|0)!=(0);
  31883. if (!($351)) {
  31884. HEAP32[$1>>2] = 9;
  31885. break;
  31886. }
  31887. $352 = HEAP32[$3>>2]|0;
  31888. $353 = (_strcmp($352,15960)|0);
  31889. $354 = ($353|0)!=(0);
  31890. if (!($354)) {
  31891. HEAP32[$1>>2] = 31;
  31892. break;
  31893. }
  31894. $355 = HEAP32[$3>>2]|0;
  31895. $356 = (_strcmp($355,15978)|0);
  31896. $357 = ($356|0)!=(0);
  31897. if (!($357)) {
  31898. HEAP32[$1>>2] = 32;
  31899. break;
  31900. }
  31901. $358 = HEAP32[$3>>2]|0;
  31902. $359 = (_strcmp($358,15999)|0);
  31903. $360 = ($359|0)!=(0);
  31904. if (!($360)) {
  31905. HEAP32[$1>>2] = 10;
  31906. break;
  31907. }
  31908. $361 = HEAP32[$3>>2]|0;
  31909. $362 = (_strcmp($361,16017)|0);
  31910. $363 = ($362|0)!=(0);
  31911. if (!($363)) {
  31912. HEAP32[$1>>2] = 11;
  31913. break;
  31914. }
  31915. $364 = HEAP32[$3>>2]|0;
  31916. $365 = (_strcmp($364,16030)|0);
  31917. $366 = ($365|0)!=(0);
  31918. if (!($366)) {
  31919. HEAP32[$1>>2] = 2;
  31920. break;
  31921. }
  31922. $367 = HEAP32[$3>>2]|0;
  31923. $368 = (_strcmp($367,16045)|0);
  31924. $369 = ($368|0)!=(0);
  31925. if (!($369)) {
  31926. HEAP32[$1>>2] = 12;
  31927. break;
  31928. }
  31929. $370 = HEAP32[$3>>2]|0;
  31930. $371 = (_strcmp($370,16059)|0);
  31931. $372 = ($371|0)!=(0);
  31932. if (!($372)) {
  31933. HEAP32[$1>>2] = 1;
  31934. break;
  31935. }
  31936. $373 = HEAP32[$3>>2]|0;
  31937. $374 = (_strcmp($373,16069)|0);
  31938. $375 = ($374|0)!=(0);
  31939. if (!($375)) {
  31940. HEAP32[$1>>2] = 1;
  31941. break;
  31942. }
  31943. $376 = HEAP32[$3>>2]|0;
  31944. $377 = (_strcmp($376,16079)|0);
  31945. $378 = ($377|0)!=(0);
  31946. if (!($378)) {
  31947. HEAP32[$1>>2] = 2;
  31948. break;
  31949. }
  31950. $379 = HEAP32[$3>>2]|0;
  31951. $380 = (_strcmp($379,16101)|0);
  31952. $381 = ($380|0)!=(0);
  31953. if (!($381)) {
  31954. HEAP32[$1>>2] = 13;
  31955. break;
  31956. }
  31957. $382 = HEAP32[$3>>2]|0;
  31958. $383 = (_strcmp($382,16127)|0);
  31959. $384 = ($383|0)!=(0);
  31960. if (!($384)) {
  31961. HEAP32[$1>>2] = 14;
  31962. break;
  31963. }
  31964. $385 = HEAP32[$3>>2]|0;
  31965. $386 = (_strcmp($385,16154)|0);
  31966. $387 = ($386|0)!=(0);
  31967. if (!($387)) {
  31968. HEAP32[$1>>2] = 27;
  31969. break;
  31970. }
  31971. $388 = HEAP32[$3>>2]|0;
  31972. $389 = (_strcmp($388,16167)|0);
  31973. $390 = ($389|0)!=(0);
  31974. if (!($390)) {
  31975. HEAP32[$1>>2] = 20;
  31976. break;
  31977. }
  31978. $391 = HEAP32[$3>>2]|0;
  31979. $392 = (_strcmp($391,16182)|0);
  31980. $393 = ($392|0)!=(0);
  31981. if (!($393)) {
  31982. HEAP32[$1>>2] = 4;
  31983. break;
  31984. }
  31985. $394 = HEAP32[$3>>2]|0;
  31986. $395 = (_strcmp($394,16197)|0);
  31987. $396 = ($395|0)!=(0);
  31988. if (!($396)) {
  31989. HEAP32[$1>>2] = 3;
  31990. break;
  31991. }
  31992. $397 = HEAP32[$3>>2]|0;
  31993. $398 = (_strcmp($397,16221)|0);
  31994. $399 = ($398|0)!=(0);
  31995. if (!($399)) {
  31996. HEAP32[$1>>2] = 2;
  31997. break;
  31998. }
  31999. $400 = HEAP32[$3>>2]|0;
  32000. $401 = (_strcmp($400,16232)|0);
  32001. $402 = ($401|0)!=(0);
  32002. if (!($402)) {
  32003. HEAP32[$1>>2] = 33;
  32004. break;
  32005. }
  32006. $403 = HEAP32[$3>>2]|0;
  32007. $404 = (_strcmp($403,16254)|0);
  32008. $405 = ($404|0)!=(0);
  32009. if (!($405)) {
  32010. HEAP32[$1>>2] = 21;
  32011. break;
  32012. }
  32013. $406 = HEAP32[$3>>2]|0;
  32014. $407 = (_strcmp($406,16276)|0);
  32015. $408 = ($407|0)!=(0);
  32016. if (!($408)) {
  32017. HEAP32[$1>>2] = 5;
  32018. break;
  32019. }
  32020. $409 = HEAP32[$3>>2]|0;
  32021. $410 = (_strcmp($409,16300)|0);
  32022. $411 = ($410|0)!=(0);
  32023. if (!($411)) {
  32024. HEAP32[$1>>2] = 4;
  32025. break;
  32026. }
  32027. $412 = HEAP32[$3>>2]|0;
  32028. $413 = (_strcmp($412,16309)|0);
  32029. $414 = ($413|0)!=(0);
  32030. if (!($414)) {
  32031. HEAP32[$1>>2] = 5;
  32032. break;
  32033. }
  32034. $415 = HEAP32[$3>>2]|0;
  32035. $416 = (_strcmp($415,16317)|0);
  32036. $417 = ($416|0)!=(0);
  32037. if (!($417)) {
  32038. HEAP32[$1>>2] = 1;
  32039. break;
  32040. }
  32041. $418 = HEAP32[$3>>2]|0;
  32042. $419 = (_strcmp($418,16330)|0);
  32043. $420 = ($419|0)!=(0);
  32044. if (!($420)) {
  32045. HEAP32[$1>>2] = 2;
  32046. break;
  32047. }
  32048. $421 = HEAP32[$3>>2]|0;
  32049. $422 = (_strcmp($421,16344)|0);
  32050. $423 = ($422|0)!=(0);
  32051. if (!($423)) {
  32052. HEAP32[$1>>2] = 15;
  32053. break;
  32054. }
  32055. $424 = HEAP32[$3>>2]|0;
  32056. $425 = (_strcmp($424,16356)|0);
  32057. $426 = ($425|0)!=(0);
  32058. if (!($426)) {
  32059. HEAP32[$1>>2] = 16;
  32060. break;
  32061. }
  32062. $427 = HEAP32[$3>>2]|0;
  32063. $428 = (_strcmp($427,16365)|0);
  32064. $429 = ($428|0)!=(0);
  32065. if (!($429)) {
  32066. HEAP32[$1>>2] = 17;
  32067. break;
  32068. }
  32069. $430 = HEAP32[$3>>2]|0;
  32070. $431 = (_strcmp($430,16375)|0);
  32071. $432 = ($431|0)!=(0);
  32072. if (!($432)) {
  32073. HEAP32[$1>>2] = 18;
  32074. break;
  32075. }
  32076. $433 = HEAP32[$3>>2]|0;
  32077. $434 = (_strcmp($433,16387)|0);
  32078. $435 = ($434|0)!=(0);
  32079. if (!($435)) {
  32080. HEAP32[$1>>2] = 19;
  32081. break;
  32082. }
  32083. $436 = HEAP32[$3>>2]|0;
  32084. $437 = (_strcmp($436,16398)|0);
  32085. $438 = ($437|0)!=(0);
  32086. if (!($438)) {
  32087. HEAP32[$1>>2] = 20;
  32088. break;
  32089. }
  32090. $439 = HEAP32[$3>>2]|0;
  32091. $440 = (_strcmp($439,16406)|0);
  32092. $441 = ($440|0)!=(0);
  32093. if (!($441)) {
  32094. HEAP32[$1>>2] = 3;
  32095. break;
  32096. }
  32097. $442 = HEAP32[$3>>2]|0;
  32098. $443 = (_strcmp($442,16418)|0);
  32099. $444 = ($443|0)!=(0);
  32100. if (!($444)) {
  32101. HEAP32[$1>>2] = 21;
  32102. break;
  32103. }
  32104. $445 = HEAP32[$3>>2]|0;
  32105. $446 = (_strcmp($445,16433)|0);
  32106. $447 = ($446|0)!=(0);
  32107. if (!($447)) {
  32108. HEAP32[$1>>2] = 22;
  32109. break;
  32110. }
  32111. $448 = HEAP32[$3>>2]|0;
  32112. $449 = (_strcmp($448,16445)|0);
  32113. $450 = ($449|0)!=(0);
  32114. if (!($450)) {
  32115. HEAP32[$1>>2] = 23;
  32116. break;
  32117. }
  32118. $451 = HEAP32[$3>>2]|0;
  32119. $452 = (_strcmp($451,16459)|0);
  32120. $453 = ($452|0)!=(0);
  32121. if (!($453)) {
  32122. HEAP32[$1>>2] = 11;
  32123. break;
  32124. }
  32125. $454 = HEAP32[$3>>2]|0;
  32126. $455 = (_strcmp($454,16484)|0);
  32127. $456 = ($455|0)!=(0);
  32128. if (!($456)) {
  32129. HEAP32[$1>>2] = 24;
  32130. break;
  32131. }
  32132. $457 = HEAP32[$3>>2]|0;
  32133. $458 = (_strcmp($457,16501)|0);
  32134. $459 = ($458|0)!=(0);
  32135. if (!($459)) {
  32136. HEAP32[$1>>2] = 25;
  32137. break;
  32138. }
  32139. $460 = HEAP32[$3>>2]|0;
  32140. $461 = (_strcmp($460,16517)|0);
  32141. $462 = ($461|0)!=(0);
  32142. if (!($462)) {
  32143. HEAP32[$1>>2] = 26;
  32144. break;
  32145. }
  32146. $463 = HEAP32[$3>>2]|0;
  32147. $464 = (_strcmp($463,16533)|0);
  32148. $465 = ($464|0)!=(0);
  32149. if (!($465)) {
  32150. HEAP32[$1>>2] = 12;
  32151. break;
  32152. }
  32153. $466 = HEAP32[$3>>2]|0;
  32154. $467 = (_strcmp($466,16545)|0);
  32155. $468 = ($467|0)!=(0);
  32156. if (!($468)) {
  32157. HEAP32[$1>>2] = 34;
  32158. break;
  32159. }
  32160. $469 = HEAP32[$3>>2]|0;
  32161. $470 = (_strcmp($469,16557)|0);
  32162. $471 = ($470|0)!=(0);
  32163. if (!($471)) {
  32164. HEAP32[$1>>2] = 35;
  32165. break;
  32166. }
  32167. $472 = HEAP32[$3>>2]|0;
  32168. $473 = (_strcmp($472,16581)|0);
  32169. $474 = ($473|0)!=(0);
  32170. if (!($474)) {
  32171. HEAP32[$1>>2] = 1;
  32172. break;
  32173. }
  32174. $475 = HEAP32[$3>>2]|0;
  32175. $476 = (_strcmp($475,16594)|0);
  32176. $477 = ($476|0)!=(0);
  32177. if (!($477)) {
  32178. HEAP32[$1>>2] = 2;
  32179. break;
  32180. }
  32181. $478 = HEAP32[$3>>2]|0;
  32182. $479 = (_strcmp($478,16608)|0);
  32183. $480 = ($479|0)!=(0);
  32184. if (!($480)) {
  32185. HEAP32[$1>>2] = 36;
  32186. break;
  32187. }
  32188. $481 = HEAP32[$3>>2]|0;
  32189. $482 = (_strcmp($481,16630)|0);
  32190. $483 = ($482|0)!=(0);
  32191. if (!($483)) {
  32192. HEAP32[$1>>2] = 37;
  32193. break;
  32194. }
  32195. $484 = HEAP32[$3>>2]|0;
  32196. $485 = (_strcmp($484,16637)|0);
  32197. $486 = ($485|0)!=(0);
  32198. if (!($486)) {
  32199. HEAP32[$1>>2] = 3;
  32200. break;
  32201. }
  32202. $487 = HEAP32[$3>>2]|0;
  32203. $488 = (_strcmp($487,16653)|0);
  32204. $489 = ($488|0)!=(0);
  32205. if (!($489)) {
  32206. HEAP32[$1>>2] = 2;
  32207. break;
  32208. }
  32209. $490 = HEAP32[$3>>2]|0;
  32210. $491 = (_strcmp($490,16670)|0);
  32211. $492 = ($491|0)!=(0);
  32212. if (!($492)) {
  32213. HEAP32[$1>>2] = 1;
  32214. break;
  32215. }
  32216. $493 = HEAP32[$3>>2]|0;
  32217. $494 = (_strcmp($493,16687)|0);
  32218. $495 = ($494|0)!=(0);
  32219. if (!($495)) {
  32220. HEAP32[$1>>2] = 28;
  32221. break;
  32222. }
  32223. $496 = HEAP32[$3>>2]|0;
  32224. $497 = (_strcmp($496,16703)|0);
  32225. $498 = ($497|0)!=(0);
  32226. if (!($498)) {
  32227. HEAP32[$1>>2] = 1;
  32228. break;
  32229. }
  32230. $499 = HEAP32[$3>>2]|0;
  32231. $500 = (_strcmp($499,16719)|0);
  32232. $501 = ($500|0)!=(0);
  32233. if (!($501)) {
  32234. HEAP32[$1>>2] = 4;
  32235. break;
  32236. }
  32237. $502 = HEAP32[$3>>2]|0;
  32238. $503 = (_strcmp($502,16736)|0);
  32239. $504 = ($503|0)!=(0);
  32240. if (!($504)) {
  32241. HEAP32[$1>>2] = 29;
  32242. break;
  32243. }
  32244. $505 = HEAP32[$3>>2]|0;
  32245. $506 = (_strcmp($505,16750)|0);
  32246. $507 = ($506|0)!=(0);
  32247. if (!($507)) {
  32248. HEAP32[$1>>2] = 30;
  32249. break;
  32250. }
  32251. $508 = HEAP32[$3>>2]|0;
  32252. $509 = (_strcmp($508,16762)|0);
  32253. $510 = ($509|0)!=(0);
  32254. if (!($510)) {
  32255. HEAP32[$1>>2] = 22;
  32256. break;
  32257. }
  32258. $511 = HEAP32[$3>>2]|0;
  32259. $512 = (_strcmp($511,16773)|0);
  32260. $513 = ($512|0)!=(0);
  32261. if (!($513)) {
  32262. HEAP32[$1>>2] = 2;
  32263. break;
  32264. }
  32265. $514 = HEAP32[$3>>2]|0;
  32266. $515 = (_strcmp($514,16786)|0);
  32267. $516 = ($515|0)!=(0);
  32268. if (!($516)) {
  32269. HEAP32[$1>>2] = 23;
  32270. break;
  32271. }
  32272. $517 = HEAP32[$3>>2]|0;
  32273. $518 = (_strcmp($517,16796)|0);
  32274. $519 = ($518|0)!=(0);
  32275. if (!($519)) {
  32276. HEAP32[$1>>2] = 2;
  32277. break;
  32278. }
  32279. $520 = HEAP32[$3>>2]|0;
  32280. $521 = (_strcmp($520,16813)|0);
  32281. $522 = ($521|0)!=(0);
  32282. if (!($522)) {
  32283. HEAP32[$1>>2] = 24;
  32284. break;
  32285. }
  32286. $523 = HEAP32[$3>>2]|0;
  32287. $524 = (_strcmp($523,16825)|0);
  32288. $525 = ($524|0)!=(0);
  32289. if (!($525)) {
  32290. HEAP32[$1>>2] = 25;
  32291. break;
  32292. }
  32293. $526 = HEAP32[$3>>2]|0;
  32294. $527 = (_strcmp($526,16847)|0);
  32295. $528 = ($527|0)!=(0);
  32296. if (!($528)) {
  32297. HEAP32[$1>>2] = 26;
  32298. break;
  32299. }
  32300. $529 = HEAP32[$3>>2]|0;
  32301. $530 = (_strcmp($529,16867)|0);
  32302. $531 = ($530|0)!=(0);
  32303. if (!($531)) {
  32304. HEAP32[$1>>2] = 3;
  32305. break;
  32306. }
  32307. $532 = HEAP32[$3>>2]|0;
  32308. $533 = (_strcmp($532,16880)|0);
  32309. $534 = ($533|0)!=(0);
  32310. if (!($534)) {
  32311. HEAP32[$1>>2] = 27;
  32312. break;
  32313. }
  32314. $535 = HEAP32[$3>>2]|0;
  32315. $536 = (_strcmp($535,16902)|0);
  32316. $537 = ($536|0)!=(0);
  32317. if (!($537)) {
  32318. HEAP32[$1>>2] = 28;
  32319. break;
  32320. }
  32321. $538 = HEAP32[$3>>2]|0;
  32322. $539 = (_strcmp($538,16922)|0);
  32323. $540 = ($539|0)!=(0);
  32324. if (!($540)) {
  32325. HEAP32[$1>>2] = 2;
  32326. break;
  32327. }
  32328. $541 = HEAP32[$3>>2]|0;
  32329. $542 = (_strcmp($541,16939)|0);
  32330. $543 = ($542|0)!=(0);
  32331. if (!($543)) {
  32332. HEAP32[$1>>2] = 2;
  32333. break;
  32334. }
  32335. $544 = HEAP32[$3>>2]|0;
  32336. $545 = (_strcmp($544,16956)|0);
  32337. $546 = ($545|0)!=(0);
  32338. if (!($546)) {
  32339. HEAP32[$1>>2] = 3;
  32340. break;
  32341. }
  32342. $547 = HEAP32[$3>>2]|0;
  32343. $548 = (_strcmp($547,16976)|0);
  32344. $549 = ($548|0)!=(0);
  32345. if ($549) {
  32346. $550 = HEAP32[$2>>2]|0;
  32347. $551 = HEAP32[$3>>2]|0;
  32348. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  32349. HEAP32[$1>>2] = 0;
  32350. break;
  32351. } else {
  32352. HEAP32[$1>>2] = 38;
  32353. break;
  32354. }
  32355. } else {
  32356. HEAP32[$1>>2] = 6;
  32357. }
  32358. } while(0);
  32359. $553 = HEAP32[$1>>2]|0;
  32360. STACKTOP = sp;return ($553|0);
  32361. }
  32362. function _emscripten_get_global_libc() {
  32363. var label = 0, sp = 0;
  32364. sp = STACKTOP;
  32365. return (22684|0);
  32366. }
  32367. function ___stdio_close($0) {
  32368. $0 = $0|0;
  32369. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  32370. sp = STACKTOP;
  32371. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  32372. $vararg_buffer = sp;
  32373. $1 = ((($0)) + 60|0);
  32374. $2 = HEAP32[$1>>2]|0;
  32375. $3 = (_dummy_738($2)|0);
  32376. HEAP32[$vararg_buffer>>2] = $3;
  32377. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  32378. $5 = (___syscall_ret($4)|0);
  32379. STACKTOP = sp;return ($5|0);
  32380. }
  32381. function ___stdio_write($0,$1,$2) {
  32382. $0 = $0|0;
  32383. $1 = $1|0;
  32384. $2 = $2|0;
  32385. 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;
  32386. 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;
  32387. 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;
  32388. var $vararg_ptr7 = 0, label = 0, sp = 0;
  32389. sp = STACKTOP;
  32390. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  32391. $vararg_buffer3 = sp + 16|0;
  32392. $vararg_buffer = sp;
  32393. $3 = sp + 32|0;
  32394. $4 = ((($0)) + 28|0);
  32395. $5 = HEAP32[$4>>2]|0;
  32396. HEAP32[$3>>2] = $5;
  32397. $6 = ((($3)) + 4|0);
  32398. $7 = ((($0)) + 20|0);
  32399. $8 = HEAP32[$7>>2]|0;
  32400. $9 = (($8) - ($5))|0;
  32401. HEAP32[$6>>2] = $9;
  32402. $10 = ((($3)) + 8|0);
  32403. HEAP32[$10>>2] = $1;
  32404. $11 = ((($3)) + 12|0);
  32405. HEAP32[$11>>2] = $2;
  32406. $12 = (($9) + ($2))|0;
  32407. $13 = ((($0)) + 60|0);
  32408. $14 = HEAP32[$13>>2]|0;
  32409. $15 = $3;
  32410. HEAP32[$vararg_buffer>>2] = $14;
  32411. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32412. HEAP32[$vararg_ptr1>>2] = $15;
  32413. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32414. HEAP32[$vararg_ptr2>>2] = 2;
  32415. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  32416. $17 = (___syscall_ret($16)|0);
  32417. $18 = ($12|0)==($17|0);
  32418. L1: do {
  32419. if ($18) {
  32420. label = 3;
  32421. } else {
  32422. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  32423. while(1) {
  32424. $25 = ($26|0)<(0);
  32425. if ($25) {
  32426. break;
  32427. }
  32428. $34 = (($$04855) - ($26))|0;
  32429. $35 = ((($$04954)) + 4|0);
  32430. $36 = HEAP32[$35>>2]|0;
  32431. $37 = ($26>>>0)>($36>>>0);
  32432. $38 = ((($$04954)) + 8|0);
  32433. $$150 = $37 ? $38 : $$04954;
  32434. $39 = $37 << 31 >> 31;
  32435. $$1 = (($39) + ($$04756))|0;
  32436. $40 = $37 ? $36 : 0;
  32437. $$0 = (($26) - ($40))|0;
  32438. $41 = HEAP32[$$150>>2]|0;
  32439. $42 = (($41) + ($$0)|0);
  32440. HEAP32[$$150>>2] = $42;
  32441. $43 = ((($$150)) + 4|0);
  32442. $44 = HEAP32[$43>>2]|0;
  32443. $45 = (($44) - ($$0))|0;
  32444. HEAP32[$43>>2] = $45;
  32445. $46 = HEAP32[$13>>2]|0;
  32446. $47 = $$150;
  32447. HEAP32[$vararg_buffer3>>2] = $46;
  32448. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  32449. HEAP32[$vararg_ptr6>>2] = $47;
  32450. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  32451. HEAP32[$vararg_ptr7>>2] = $$1;
  32452. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  32453. $49 = (___syscall_ret($48)|0);
  32454. $50 = ($34|0)==($49|0);
  32455. if ($50) {
  32456. label = 3;
  32457. break L1;
  32458. } else {
  32459. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  32460. }
  32461. }
  32462. $27 = ((($0)) + 16|0);
  32463. HEAP32[$27>>2] = 0;
  32464. HEAP32[$4>>2] = 0;
  32465. HEAP32[$7>>2] = 0;
  32466. $28 = HEAP32[$0>>2]|0;
  32467. $29 = $28 | 32;
  32468. HEAP32[$0>>2] = $29;
  32469. $30 = ($$04756|0)==(2);
  32470. if ($30) {
  32471. $$051 = 0;
  32472. } else {
  32473. $31 = ((($$04954)) + 4|0);
  32474. $32 = HEAP32[$31>>2]|0;
  32475. $33 = (($2) - ($32))|0;
  32476. $$051 = $33;
  32477. }
  32478. }
  32479. } while(0);
  32480. if ((label|0) == 3) {
  32481. $19 = ((($0)) + 44|0);
  32482. $20 = HEAP32[$19>>2]|0;
  32483. $21 = ((($0)) + 48|0);
  32484. $22 = HEAP32[$21>>2]|0;
  32485. $23 = (($20) + ($22)|0);
  32486. $24 = ((($0)) + 16|0);
  32487. HEAP32[$24>>2] = $23;
  32488. HEAP32[$4>>2] = $20;
  32489. HEAP32[$7>>2] = $20;
  32490. $$051 = $2;
  32491. }
  32492. STACKTOP = sp;return ($$051|0);
  32493. }
  32494. function ___stdio_seek($0,$1,$2) {
  32495. $0 = $0|0;
  32496. $1 = $1|0;
  32497. $2 = $2|0;
  32498. 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;
  32499. sp = STACKTOP;
  32500. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32501. $vararg_buffer = sp;
  32502. $3 = sp + 20|0;
  32503. $4 = ((($0)) + 60|0);
  32504. $5 = HEAP32[$4>>2]|0;
  32505. $6 = $3;
  32506. HEAP32[$vararg_buffer>>2] = $5;
  32507. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32508. HEAP32[$vararg_ptr1>>2] = 0;
  32509. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32510. HEAP32[$vararg_ptr2>>2] = $1;
  32511. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  32512. HEAP32[$vararg_ptr3>>2] = $6;
  32513. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  32514. HEAP32[$vararg_ptr4>>2] = $2;
  32515. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  32516. $8 = (___syscall_ret($7)|0);
  32517. $9 = ($8|0)<(0);
  32518. if ($9) {
  32519. HEAP32[$3>>2] = -1;
  32520. $10 = -1;
  32521. } else {
  32522. $$pre = HEAP32[$3>>2]|0;
  32523. $10 = $$pre;
  32524. }
  32525. STACKTOP = sp;return ($10|0);
  32526. }
  32527. function ___syscall_ret($0) {
  32528. $0 = $0|0;
  32529. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  32530. sp = STACKTOP;
  32531. $1 = ($0>>>0)>(4294963200);
  32532. if ($1) {
  32533. $2 = (0 - ($0))|0;
  32534. $3 = (___errno_location()|0);
  32535. HEAP32[$3>>2] = $2;
  32536. $$0 = -1;
  32537. } else {
  32538. $$0 = $0;
  32539. }
  32540. return ($$0|0);
  32541. }
  32542. function ___errno_location() {
  32543. var $0 = 0, $1 = 0, label = 0, sp = 0;
  32544. sp = STACKTOP;
  32545. $0 = (___pthread_self_108()|0);
  32546. $1 = ((($0)) + 64|0);
  32547. return ($1|0);
  32548. }
  32549. function ___pthread_self_108() {
  32550. var $0 = 0, label = 0, sp = 0;
  32551. sp = STACKTOP;
  32552. $0 = (_pthread_self()|0);
  32553. return ($0|0);
  32554. }
  32555. function _pthread_self() {
  32556. var label = 0, sp = 0;
  32557. sp = STACKTOP;
  32558. return (3856|0);
  32559. }
  32560. function _dummy_738($0) {
  32561. $0 = $0|0;
  32562. var label = 0, sp = 0;
  32563. sp = STACKTOP;
  32564. return ($0|0);
  32565. }
  32566. function ___stdio_read($0,$1,$2) {
  32567. $0 = $0|0;
  32568. $1 = $1|0;
  32569. $2 = $2|0;
  32570. 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;
  32571. 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;
  32572. sp = STACKTOP;
  32573. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32574. $vararg_buffer = sp;
  32575. $3 = sp + 16|0;
  32576. HEAP32[$3>>2] = $1;
  32577. $4 = ((($3)) + 4|0);
  32578. $5 = ((($0)) + 48|0);
  32579. $6 = HEAP32[$5>>2]|0;
  32580. $7 = ($6|0)!=(0);
  32581. $8 = $7&1;
  32582. $9 = (($2) - ($8))|0;
  32583. HEAP32[$4>>2] = $9;
  32584. $10 = ((($3)) + 8|0);
  32585. $11 = ((($0)) + 44|0);
  32586. $12 = HEAP32[$11>>2]|0;
  32587. HEAP32[$10>>2] = $12;
  32588. $13 = ((($3)) + 12|0);
  32589. HEAP32[$13>>2] = $6;
  32590. $14 = ((($0)) + 60|0);
  32591. $15 = HEAP32[$14>>2]|0;
  32592. $16 = $3;
  32593. HEAP32[$vararg_buffer>>2] = $15;
  32594. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32595. HEAP32[$vararg_ptr1>>2] = $16;
  32596. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32597. HEAP32[$vararg_ptr2>>2] = 2;
  32598. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  32599. $18 = (___syscall_ret($17)|0);
  32600. $19 = ($18|0)<(1);
  32601. if ($19) {
  32602. $20 = $18 & 48;
  32603. $21 = $20 ^ 16;
  32604. $22 = HEAP32[$0>>2]|0;
  32605. $23 = $22 | $21;
  32606. HEAP32[$0>>2] = $23;
  32607. $$0 = $18;
  32608. } else {
  32609. $24 = HEAP32[$4>>2]|0;
  32610. $25 = ($18>>>0)>($24>>>0);
  32611. if ($25) {
  32612. $26 = (($18) - ($24))|0;
  32613. $27 = HEAP32[$11>>2]|0;
  32614. $28 = ((($0)) + 4|0);
  32615. HEAP32[$28>>2] = $27;
  32616. $29 = (($27) + ($26)|0);
  32617. $30 = ((($0)) + 8|0);
  32618. HEAP32[$30>>2] = $29;
  32619. $31 = HEAP32[$5>>2]|0;
  32620. $32 = ($31|0)==(0);
  32621. if ($32) {
  32622. $$0 = $2;
  32623. } else {
  32624. $33 = ((($27)) + 1|0);
  32625. HEAP32[$28>>2] = $33;
  32626. $34 = HEAP8[$27>>0]|0;
  32627. $35 = (($2) + -1)|0;
  32628. $36 = (($1) + ($35)|0);
  32629. HEAP8[$36>>0] = $34;
  32630. $$0 = $2;
  32631. }
  32632. } else {
  32633. $$0 = $18;
  32634. }
  32635. }
  32636. STACKTOP = sp;return ($$0|0);
  32637. }
  32638. function ___stdout_write($0,$1,$2) {
  32639. $0 = $0|0;
  32640. $1 = $1|0;
  32641. $2 = $2|0;
  32642. 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;
  32643. sp = STACKTOP;
  32644. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32645. $vararg_buffer = sp;
  32646. $3 = sp + 16|0;
  32647. $4 = ((($0)) + 36|0);
  32648. HEAP32[$4>>2] = 9;
  32649. $5 = HEAP32[$0>>2]|0;
  32650. $6 = $5 & 64;
  32651. $7 = ($6|0)==(0);
  32652. if ($7) {
  32653. $8 = ((($0)) + 60|0);
  32654. $9 = HEAP32[$8>>2]|0;
  32655. $10 = $3;
  32656. HEAP32[$vararg_buffer>>2] = $9;
  32657. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32658. HEAP32[$vararg_ptr1>>2] = 21523;
  32659. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32660. HEAP32[$vararg_ptr2>>2] = $10;
  32661. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  32662. $12 = ($11|0)==(0);
  32663. if (!($12)) {
  32664. $13 = ((($0)) + 75|0);
  32665. HEAP8[$13>>0] = -1;
  32666. }
  32667. }
  32668. $14 = (___stdio_write($0,$1,$2)|0);
  32669. STACKTOP = sp;return ($14|0);
  32670. }
  32671. function ___shlim($0,$1) {
  32672. $0 = $0|0;
  32673. $1 = $1|0;
  32674. 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;
  32675. sp = STACKTOP;
  32676. $2 = ((($0)) + 104|0);
  32677. HEAP32[$2>>2] = $1;
  32678. $3 = ((($0)) + 8|0);
  32679. $4 = HEAP32[$3>>2]|0;
  32680. $5 = ((($0)) + 4|0);
  32681. $6 = HEAP32[$5>>2]|0;
  32682. $7 = $4;
  32683. $8 = $6;
  32684. $9 = (($7) - ($8))|0;
  32685. $10 = ((($0)) + 108|0);
  32686. HEAP32[$10>>2] = $9;
  32687. $11 = ($1|0)!=(0);
  32688. $12 = ($9|0)>($1|0);
  32689. $or$cond = $11 & $12;
  32690. $13 = (($6) + ($1)|0);
  32691. $$sink = $or$cond ? $13 : $4;
  32692. $14 = ((($0)) + 100|0);
  32693. HEAP32[$14>>2] = $$sink;
  32694. return;
  32695. }
  32696. function ___intscan($0,$1,$2,$3,$4) {
  32697. $0 = $0|0;
  32698. $1 = $1|0;
  32699. $2 = $2|0;
  32700. $3 = $3|0;
  32701. $4 = $4|0;
  32702. 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;
  32703. 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;
  32704. 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;
  32705. 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;
  32706. 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;
  32707. 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;
  32708. 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;
  32709. 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;
  32710. 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;
  32711. 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;
  32712. 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;
  32713. 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;
  32714. 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;
  32715. 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;
  32716. 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;
  32717. 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;
  32718. var $or$cond187 = 0, $or$cond5 = 0, $or$cond7 = 0, label = 0, sp = 0;
  32719. sp = STACKTOP;
  32720. $5 = ($1>>>0)>(36);
  32721. L1: do {
  32722. if ($5) {
  32723. $8 = (___errno_location()|0);
  32724. HEAP32[$8>>2] = 22;
  32725. $289 = 0;$290 = 0;
  32726. } else {
  32727. $6 = ((($0)) + 4|0);
  32728. $7 = ((($0)) + 100|0);
  32729. while(1) {
  32730. $9 = HEAP32[$6>>2]|0;
  32731. $10 = HEAP32[$7>>2]|0;
  32732. $11 = ($9>>>0)<($10>>>0);
  32733. if ($11) {
  32734. $12 = ((($9)) + 1|0);
  32735. HEAP32[$6>>2] = $12;
  32736. $13 = HEAP8[$9>>0]|0;
  32737. $14 = $13&255;
  32738. $16 = $14;
  32739. } else {
  32740. $15 = (___shgetc($0)|0);
  32741. $16 = $15;
  32742. }
  32743. $17 = (_isspace($16)|0);
  32744. $18 = ($17|0)==(0);
  32745. if ($18) {
  32746. break;
  32747. }
  32748. }
  32749. L11: do {
  32750. switch ($16|0) {
  32751. case 43: case 45: {
  32752. $19 = ($16|0)==(45);
  32753. $20 = $19 << 31 >> 31;
  32754. $21 = HEAP32[$6>>2]|0;
  32755. $22 = HEAP32[$7>>2]|0;
  32756. $23 = ($21>>>0)<($22>>>0);
  32757. if ($23) {
  32758. $24 = ((($21)) + 1|0);
  32759. HEAP32[$6>>2] = $24;
  32760. $25 = HEAP8[$21>>0]|0;
  32761. $26 = $25&255;
  32762. $$0157 = $20;$$0159 = $26;
  32763. break L11;
  32764. } else {
  32765. $27 = (___shgetc($0)|0);
  32766. $$0157 = $20;$$0159 = $27;
  32767. break L11;
  32768. }
  32769. break;
  32770. }
  32771. default: {
  32772. $$0157 = 0;$$0159 = $16;
  32773. }
  32774. }
  32775. } while(0);
  32776. $28 = ($1|0)==(0);
  32777. $29 = $1 | 16;
  32778. $30 = ($29|0)==(16);
  32779. $31 = ($$0159|0)==(48);
  32780. $or$cond5 = $30 & $31;
  32781. do {
  32782. if ($or$cond5) {
  32783. $32 = HEAP32[$6>>2]|0;
  32784. $33 = HEAP32[$7>>2]|0;
  32785. $34 = ($32>>>0)<($33>>>0);
  32786. if ($34) {
  32787. $35 = ((($32)) + 1|0);
  32788. HEAP32[$6>>2] = $35;
  32789. $36 = HEAP8[$32>>0]|0;
  32790. $37 = $36&255;
  32791. $40 = $37;
  32792. } else {
  32793. $38 = (___shgetc($0)|0);
  32794. $40 = $38;
  32795. }
  32796. $39 = $40 | 32;
  32797. $41 = ($39|0)==(120);
  32798. if (!($41)) {
  32799. if ($28) {
  32800. $$1160169 = $40;$$1165168 = 8;
  32801. label = 46;
  32802. break;
  32803. } else {
  32804. $$1160 = $40;$$1165 = $1;
  32805. label = 32;
  32806. break;
  32807. }
  32808. }
  32809. $42 = HEAP32[$6>>2]|0;
  32810. $43 = HEAP32[$7>>2]|0;
  32811. $44 = ($42>>>0)<($43>>>0);
  32812. if ($44) {
  32813. $45 = ((($42)) + 1|0);
  32814. HEAP32[$6>>2] = $45;
  32815. $46 = HEAP8[$42>>0]|0;
  32816. $47 = $46&255;
  32817. $50 = $47;
  32818. } else {
  32819. $48 = (___shgetc($0)|0);
  32820. $50 = $48;
  32821. }
  32822. $49 = ((17093) + ($50)|0);
  32823. $51 = HEAP8[$49>>0]|0;
  32824. $52 = ($51&255)>(15);
  32825. if ($52) {
  32826. $53 = HEAP32[$7>>2]|0;
  32827. $54 = ($53|0)!=(0|0);
  32828. if ($54) {
  32829. $55 = HEAP32[$6>>2]|0;
  32830. $56 = ((($55)) + -1|0);
  32831. HEAP32[$6>>2] = $56;
  32832. }
  32833. $57 = ($2|0)==(0);
  32834. if ($57) {
  32835. ___shlim($0,0);
  32836. $289 = 0;$290 = 0;
  32837. break L1;
  32838. }
  32839. if (!($54)) {
  32840. $289 = 0;$290 = 0;
  32841. break L1;
  32842. }
  32843. $58 = HEAP32[$6>>2]|0;
  32844. $59 = ((($58)) + -1|0);
  32845. HEAP32[$6>>2] = $59;
  32846. $289 = 0;$290 = 0;
  32847. break L1;
  32848. } else {
  32849. $$1160169 = $50;$$1165168 = 16;
  32850. label = 46;
  32851. }
  32852. } else {
  32853. $$166 = $28 ? 10 : $1;
  32854. $60 = ((17093) + ($$0159)|0);
  32855. $61 = HEAP8[$60>>0]|0;
  32856. $62 = $61&255;
  32857. $63 = ($62>>>0)<($$166>>>0);
  32858. if ($63) {
  32859. $$1160 = $$0159;$$1165 = $$166;
  32860. label = 32;
  32861. } else {
  32862. $64 = HEAP32[$7>>2]|0;
  32863. $65 = ($64|0)==(0|0);
  32864. if (!($65)) {
  32865. $66 = HEAP32[$6>>2]|0;
  32866. $67 = ((($66)) + -1|0);
  32867. HEAP32[$6>>2] = $67;
  32868. }
  32869. ___shlim($0,0);
  32870. $68 = (___errno_location()|0);
  32871. HEAP32[$68>>2] = 22;
  32872. $289 = 0;$290 = 0;
  32873. break L1;
  32874. }
  32875. }
  32876. } while(0);
  32877. L43: do {
  32878. if ((label|0) == 32) {
  32879. $69 = ($$1165|0)==(10);
  32880. if ($69) {
  32881. $70 = (($$1160) + -48)|0;
  32882. $71 = ($70>>>0)<(10);
  32883. if ($71) {
  32884. $$0154222 = 0;$74 = $70;
  32885. while(1) {
  32886. $72 = ($$0154222*10)|0;
  32887. $73 = (($72) + ($74))|0;
  32888. $75 = HEAP32[$6>>2]|0;
  32889. $76 = HEAP32[$7>>2]|0;
  32890. $77 = ($75>>>0)<($76>>>0);
  32891. if ($77) {
  32892. $78 = ((($75)) + 1|0);
  32893. HEAP32[$6>>2] = $78;
  32894. $79 = HEAP8[$75>>0]|0;
  32895. $80 = $79&255;
  32896. $$2161$be = $80;
  32897. } else {
  32898. $81 = (___shgetc($0)|0);
  32899. $$2161$be = $81;
  32900. }
  32901. $82 = (($$2161$be) + -48)|0;
  32902. $83 = ($82>>>0)<(10);
  32903. $84 = ($73>>>0)<(429496729);
  32904. $85 = $83 & $84;
  32905. if ($85) {
  32906. $$0154222 = $73;$74 = $82;
  32907. } else {
  32908. break;
  32909. }
  32910. }
  32911. $$2161$lcssa = $$2161$be;$291 = $73;$292 = 0;
  32912. } else {
  32913. $$2161$lcssa = $$1160;$291 = 0;$292 = 0;
  32914. }
  32915. $86 = (($$2161$lcssa) + -48)|0;
  32916. $87 = ($86>>>0)<(10);
  32917. if ($87) {
  32918. $$3162215 = $$2161$lcssa;$88 = $291;$89 = $292;$93 = $86;
  32919. while(1) {
  32920. $90 = (___muldi3(($88|0),($89|0),10,0)|0);
  32921. $91 = tempRet0;
  32922. $92 = ($93|0)<(0);
  32923. $94 = $92 << 31 >> 31;
  32924. $95 = $93 ^ -1;
  32925. $96 = $94 ^ -1;
  32926. $97 = ($91>>>0)>($96>>>0);
  32927. $98 = ($90>>>0)>($95>>>0);
  32928. $99 = ($91|0)==($96|0);
  32929. $100 = $99 & $98;
  32930. $101 = $97 | $100;
  32931. if ($101) {
  32932. $$1165167 = 10;$$8 = $$3162215;$293 = $88;$294 = $89;
  32933. label = 72;
  32934. break L43;
  32935. }
  32936. $102 = (_i64Add(($90|0),($91|0),($93|0),($94|0))|0);
  32937. $103 = tempRet0;
  32938. $104 = HEAP32[$6>>2]|0;
  32939. $105 = HEAP32[$7>>2]|0;
  32940. $106 = ($104>>>0)<($105>>>0);
  32941. if ($106) {
  32942. $107 = ((($104)) + 1|0);
  32943. HEAP32[$6>>2] = $107;
  32944. $108 = HEAP8[$104>>0]|0;
  32945. $109 = $108&255;
  32946. $$3162$be = $109;
  32947. } else {
  32948. $110 = (___shgetc($0)|0);
  32949. $$3162$be = $110;
  32950. }
  32951. $111 = (($$3162$be) + -48)|0;
  32952. $112 = ($111>>>0)<(10);
  32953. $113 = ($103>>>0)<(429496729);
  32954. $114 = ($102>>>0)<(2576980378);
  32955. $115 = ($103|0)==(429496729);
  32956. $116 = $115 & $114;
  32957. $117 = $113 | $116;
  32958. $or$cond7 = $112 & $117;
  32959. if ($or$cond7) {
  32960. $$3162215 = $$3162$be;$88 = $102;$89 = $103;$93 = $111;
  32961. } else {
  32962. break;
  32963. }
  32964. }
  32965. $118 = ($111>>>0)>(9);
  32966. if ($118) {
  32967. $$1158 = $$0157;$263 = $103;$265 = $102;
  32968. } else {
  32969. $$1165167 = 10;$$8 = $$3162$be;$293 = $102;$294 = $103;
  32970. label = 72;
  32971. }
  32972. } else {
  32973. $$1158 = $$0157;$263 = $292;$265 = $291;
  32974. }
  32975. } else {
  32976. $$1160169 = $$1160;$$1165168 = $$1165;
  32977. label = 46;
  32978. }
  32979. }
  32980. } while(0);
  32981. L63: do {
  32982. if ((label|0) == 46) {
  32983. $119 = (($$1165168) + -1)|0;
  32984. $120 = $119 & $$1165168;
  32985. $121 = ($120|0)==(0);
  32986. if ($121) {
  32987. $126 = ($$1165168*23)|0;
  32988. $127 = $126 >>> 5;
  32989. $128 = $127 & 7;
  32990. $129 = (17349 + ($128)|0);
  32991. $130 = HEAP8[$129>>0]|0;
  32992. $131 = $130 << 24 >> 24;
  32993. $132 = ((17093) + ($$1160169)|0);
  32994. $133 = HEAP8[$132>>0]|0;
  32995. $134 = $133&255;
  32996. $135 = ($134>>>0)<($$1165168>>>0);
  32997. if ($135) {
  32998. $$1155192 = 0;$138 = $134;
  32999. while(1) {
  33000. $136 = $$1155192 << $131;
  33001. $137 = $138 | $136;
  33002. $139 = HEAP32[$6>>2]|0;
  33003. $140 = HEAP32[$7>>2]|0;
  33004. $141 = ($139>>>0)<($140>>>0);
  33005. if ($141) {
  33006. $142 = ((($139)) + 1|0);
  33007. HEAP32[$6>>2] = $142;
  33008. $143 = HEAP8[$139>>0]|0;
  33009. $144 = $143&255;
  33010. $$4163$be = $144;
  33011. } else {
  33012. $145 = (___shgetc($0)|0);
  33013. $$4163$be = $145;
  33014. }
  33015. $146 = ((17093) + ($$4163$be)|0);
  33016. $147 = HEAP8[$146>>0]|0;
  33017. $148 = $147&255;
  33018. $149 = ($148>>>0)<($$1165168>>>0);
  33019. $150 = ($137>>>0)<(134217728);
  33020. $151 = $150 & $149;
  33021. if ($151) {
  33022. $$1155192 = $137;$138 = $148;
  33023. } else {
  33024. break;
  33025. }
  33026. }
  33027. $$4163$lcssa = $$4163$be;$155 = $147;$158 = 0;$160 = $137;
  33028. } else {
  33029. $$4163$lcssa = $$1160169;$155 = $133;$158 = 0;$160 = 0;
  33030. }
  33031. $152 = (_bitshift64Lshr(-1,-1,($131|0))|0);
  33032. $153 = tempRet0;
  33033. $154 = $155&255;
  33034. $156 = ($154>>>0)>=($$1165168>>>0);
  33035. $157 = ($158>>>0)>($153>>>0);
  33036. $159 = ($160>>>0)>($152>>>0);
  33037. $161 = ($158|0)==($153|0);
  33038. $162 = $161 & $159;
  33039. $163 = $157 | $162;
  33040. $or$cond187 = $156 | $163;
  33041. if ($or$cond187) {
  33042. $$1165167 = $$1165168;$$8 = $$4163$lcssa;$293 = $160;$294 = $158;
  33043. label = 72;
  33044. break;
  33045. } else {
  33046. $164 = $160;$165 = $158;$169 = $155;
  33047. }
  33048. while(1) {
  33049. $166 = (_bitshift64Shl(($164|0),($165|0),($131|0))|0);
  33050. $167 = tempRet0;
  33051. $168 = $169&255;
  33052. $170 = $168 | $166;
  33053. $171 = HEAP32[$6>>2]|0;
  33054. $172 = HEAP32[$7>>2]|0;
  33055. $173 = ($171>>>0)<($172>>>0);
  33056. if ($173) {
  33057. $174 = ((($171)) + 1|0);
  33058. HEAP32[$6>>2] = $174;
  33059. $175 = HEAP8[$171>>0]|0;
  33060. $176 = $175&255;
  33061. $$5$be = $176;
  33062. } else {
  33063. $177 = (___shgetc($0)|0);
  33064. $$5$be = $177;
  33065. }
  33066. $178 = ((17093) + ($$5$be)|0);
  33067. $179 = HEAP8[$178>>0]|0;
  33068. $180 = $179&255;
  33069. $181 = ($180>>>0)>=($$1165168>>>0);
  33070. $182 = ($167>>>0)>($153>>>0);
  33071. $183 = ($170>>>0)>($152>>>0);
  33072. $184 = ($167|0)==($153|0);
  33073. $185 = $184 & $183;
  33074. $186 = $182 | $185;
  33075. $or$cond = $181 | $186;
  33076. if ($or$cond) {
  33077. $$1165167 = $$1165168;$$8 = $$5$be;$293 = $170;$294 = $167;
  33078. label = 72;
  33079. break L63;
  33080. } else {
  33081. $164 = $170;$165 = $167;$169 = $179;
  33082. }
  33083. }
  33084. }
  33085. $122 = ((17093) + ($$1160169)|0);
  33086. $123 = HEAP8[$122>>0]|0;
  33087. $124 = $123&255;
  33088. $125 = ($124>>>0)<($$1165168>>>0);
  33089. if ($125) {
  33090. $$2156210 = 0;$189 = $124;
  33091. while(1) {
  33092. $187 = Math_imul($$2156210, $$1165168)|0;
  33093. $188 = (($189) + ($187))|0;
  33094. $190 = HEAP32[$6>>2]|0;
  33095. $191 = HEAP32[$7>>2]|0;
  33096. $192 = ($190>>>0)<($191>>>0);
  33097. if ($192) {
  33098. $193 = ((($190)) + 1|0);
  33099. HEAP32[$6>>2] = $193;
  33100. $194 = HEAP8[$190>>0]|0;
  33101. $195 = $194&255;
  33102. $$6$be = $195;
  33103. } else {
  33104. $196 = (___shgetc($0)|0);
  33105. $$6$be = $196;
  33106. }
  33107. $197 = ((17093) + ($$6$be)|0);
  33108. $198 = HEAP8[$197>>0]|0;
  33109. $199 = $198&255;
  33110. $200 = ($199>>>0)<($$1165168>>>0);
  33111. $201 = ($188>>>0)<(119304647);
  33112. $202 = $201 & $200;
  33113. if ($202) {
  33114. $$2156210 = $188;$189 = $199;
  33115. } else {
  33116. break;
  33117. }
  33118. }
  33119. $$6$lcssa = $$6$be;$204 = $198;$295 = $188;$296 = 0;
  33120. } else {
  33121. $$6$lcssa = $$1160169;$204 = $123;$295 = 0;$296 = 0;
  33122. }
  33123. $203 = $204&255;
  33124. $205 = ($203>>>0)<($$1165168>>>0);
  33125. if ($205) {
  33126. $206 = (___udivdi3(-1,-1,($$1165168|0),0)|0);
  33127. $207 = tempRet0;
  33128. $$7198 = $$6$lcssa;$209 = $296;$211 = $295;$218 = $204;
  33129. while(1) {
  33130. $208 = ($209>>>0)>($207>>>0);
  33131. $210 = ($211>>>0)>($206>>>0);
  33132. $212 = ($209|0)==($207|0);
  33133. $213 = $212 & $210;
  33134. $214 = $208 | $213;
  33135. if ($214) {
  33136. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  33137. label = 72;
  33138. break L63;
  33139. }
  33140. $215 = (___muldi3(($211|0),($209|0),($$1165168|0),0)|0);
  33141. $216 = tempRet0;
  33142. $217 = $218&255;
  33143. $219 = $217 ^ -1;
  33144. $220 = ($216>>>0)>(4294967295);
  33145. $221 = ($215>>>0)>($219>>>0);
  33146. $222 = ($216|0)==(-1);
  33147. $223 = $222 & $221;
  33148. $224 = $220 | $223;
  33149. if ($224) {
  33150. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  33151. label = 72;
  33152. break L63;
  33153. }
  33154. $225 = (_i64Add(($217|0),0,($215|0),($216|0))|0);
  33155. $226 = tempRet0;
  33156. $227 = HEAP32[$6>>2]|0;
  33157. $228 = HEAP32[$7>>2]|0;
  33158. $229 = ($227>>>0)<($228>>>0);
  33159. if ($229) {
  33160. $230 = ((($227)) + 1|0);
  33161. HEAP32[$6>>2] = $230;
  33162. $231 = HEAP8[$227>>0]|0;
  33163. $232 = $231&255;
  33164. $$7$be = $232;
  33165. } else {
  33166. $233 = (___shgetc($0)|0);
  33167. $$7$be = $233;
  33168. }
  33169. $234 = ((17093) + ($$7$be)|0);
  33170. $235 = HEAP8[$234>>0]|0;
  33171. $236 = $235&255;
  33172. $237 = ($236>>>0)<($$1165168>>>0);
  33173. if ($237) {
  33174. $$7198 = $$7$be;$209 = $226;$211 = $225;$218 = $235;
  33175. } else {
  33176. $$1165167 = $$1165168;$$8 = $$7$be;$293 = $225;$294 = $226;
  33177. label = 72;
  33178. break;
  33179. }
  33180. }
  33181. } else {
  33182. $$1165167 = $$1165168;$$8 = $$6$lcssa;$293 = $295;$294 = $296;
  33183. label = 72;
  33184. }
  33185. }
  33186. } while(0);
  33187. if ((label|0) == 72) {
  33188. $238 = ((17093) + ($$8)|0);
  33189. $239 = HEAP8[$238>>0]|0;
  33190. $240 = $239&255;
  33191. $241 = ($240>>>0)<($$1165167>>>0);
  33192. if ($241) {
  33193. while(1) {
  33194. $242 = HEAP32[$6>>2]|0;
  33195. $243 = HEAP32[$7>>2]|0;
  33196. $244 = ($242>>>0)<($243>>>0);
  33197. if ($244) {
  33198. $245 = ((($242)) + 1|0);
  33199. HEAP32[$6>>2] = $245;
  33200. $246 = HEAP8[$242>>0]|0;
  33201. $247 = $246&255;
  33202. $$9$be = $247;
  33203. } else {
  33204. $248 = (___shgetc($0)|0);
  33205. $$9$be = $248;
  33206. }
  33207. $249 = ((17093) + ($$9$be)|0);
  33208. $250 = HEAP8[$249>>0]|0;
  33209. $251 = $250&255;
  33210. $252 = ($251>>>0)<($$1165167>>>0);
  33211. if (!($252)) {
  33212. break;
  33213. }
  33214. }
  33215. $253 = (___errno_location()|0);
  33216. HEAP32[$253>>2] = 34;
  33217. $254 = $3 & 1;
  33218. $255 = ($254|0)==(0);
  33219. $256 = (0)==(0);
  33220. $257 = $255 & $256;
  33221. $$0157$ = $257 ? $$0157 : 0;
  33222. $$1158 = $$0157$;$263 = $4;$265 = $3;
  33223. } else {
  33224. $$1158 = $$0157;$263 = $294;$265 = $293;
  33225. }
  33226. }
  33227. $258 = HEAP32[$7>>2]|0;
  33228. $259 = ($258|0)==(0|0);
  33229. if (!($259)) {
  33230. $260 = HEAP32[$6>>2]|0;
  33231. $261 = ((($260)) + -1|0);
  33232. HEAP32[$6>>2] = $261;
  33233. }
  33234. $262 = ($263>>>0)<($4>>>0);
  33235. $264 = ($265>>>0)<($3>>>0);
  33236. $266 = ($263|0)==($4|0);
  33237. $267 = $266 & $264;
  33238. $268 = $262 | $267;
  33239. if (!($268)) {
  33240. $269 = $3 & 1;
  33241. $270 = ($269|0)!=(0);
  33242. $271 = (0)!=(0);
  33243. $272 = $270 | $271;
  33244. $273 = ($$1158|0)!=(0);
  33245. $or$cond12 = $272 | $273;
  33246. if (!($or$cond12)) {
  33247. $274 = (___errno_location()|0);
  33248. HEAP32[$274>>2] = 34;
  33249. $275 = (_i64Add(($3|0),($4|0),-1,-1)|0);
  33250. $276 = tempRet0;
  33251. $289 = $276;$290 = $275;
  33252. break;
  33253. }
  33254. $277 = ($263>>>0)>($4>>>0);
  33255. $278 = ($265>>>0)>($3>>>0);
  33256. $279 = ($263|0)==($4|0);
  33257. $280 = $279 & $278;
  33258. $281 = $277 | $280;
  33259. if ($281) {
  33260. $282 = (___errno_location()|0);
  33261. HEAP32[$282>>2] = 34;
  33262. $289 = $4;$290 = $3;
  33263. break;
  33264. }
  33265. }
  33266. $283 = ($$1158|0)<(0);
  33267. $284 = $283 << 31 >> 31;
  33268. $285 = $265 ^ $$1158;
  33269. $286 = $263 ^ $284;
  33270. $287 = (_i64Subtract(($285|0),($286|0),($$1158|0),($284|0))|0);
  33271. $288 = tempRet0;
  33272. $289 = $288;$290 = $287;
  33273. }
  33274. } while(0);
  33275. tempRet0 = ($289);
  33276. return ($290|0);
  33277. }
  33278. function ___shgetc($0) {
  33279. $0 = $0|0;
  33280. 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;
  33281. 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;
  33282. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33283. sp = STACKTOP;
  33284. $1 = ((($0)) + 104|0);
  33285. $2 = HEAP32[$1>>2]|0;
  33286. $3 = ($2|0)==(0);
  33287. if ($3) {
  33288. label = 3;
  33289. } else {
  33290. $4 = ((($0)) + 108|0);
  33291. $5 = HEAP32[$4>>2]|0;
  33292. $6 = ($5|0)<($2|0);
  33293. if ($6) {
  33294. label = 3;
  33295. } else {
  33296. label = 4;
  33297. }
  33298. }
  33299. if ((label|0) == 3) {
  33300. $7 = (___uflow($0)|0);
  33301. $8 = ($7|0)<(0);
  33302. if ($8) {
  33303. label = 4;
  33304. } else {
  33305. $10 = HEAP32[$1>>2]|0;
  33306. $11 = ($10|0)==(0);
  33307. $$phi$trans$insert = ((($0)) + 8|0);
  33308. if ($11) {
  33309. $$pre = HEAP32[$$phi$trans$insert>>2]|0;
  33310. $$phi$trans$insert28$phi$trans$insert = ((($0)) + 4|0);
  33311. $$pre29$pre = HEAP32[$$phi$trans$insert28$phi$trans$insert>>2]|0;
  33312. $$pre35 = ((($0)) + 108|0);
  33313. $$pre$phi34Z2D = $$pre35;$$sink = $$pre;$26 = $$pre;$29 = $$pre29$pre;
  33314. } else {
  33315. $12 = HEAP32[$$phi$trans$insert>>2]|0;
  33316. $13 = ((($0)) + 4|0);
  33317. $14 = HEAP32[$13>>2]|0;
  33318. $15 = $14;
  33319. $16 = (($12) - ($15))|0;
  33320. $17 = ((($0)) + 108|0);
  33321. $18 = HEAP32[$17>>2]|0;
  33322. $19 = (($10) - ($18))|0;
  33323. $20 = ($16|0)<($19|0);
  33324. $21 = $12;
  33325. if ($20) {
  33326. $$pre$phi34Z2D = $17;$$sink = $21;$26 = $21;$29 = $14;
  33327. } else {
  33328. $22 = (($19) + -1)|0;
  33329. $23 = (($14) + ($22)|0);
  33330. $$pre$phi34Z2D = $17;$$sink = $23;$26 = $21;$29 = $14;
  33331. }
  33332. }
  33333. $24 = ((($0)) + 100|0);
  33334. HEAP32[$24>>2] = $$sink;
  33335. $25 = ($26|0)==(0|0);
  33336. if (!($25)) {
  33337. $27 = $26;
  33338. $28 = $29;
  33339. $30 = HEAP32[$$pre$phi34Z2D>>2]|0;
  33340. $31 = (($27) + 1)|0;
  33341. $32 = (($31) - ($28))|0;
  33342. $33 = (($32) + ($30))|0;
  33343. HEAP32[$$pre$phi34Z2D>>2] = $33;
  33344. }
  33345. $34 = ((($29)) + -1|0);
  33346. $35 = HEAP8[$34>>0]|0;
  33347. $36 = $35&255;
  33348. $37 = ($36|0)==($7|0);
  33349. if ($37) {
  33350. $$0 = $7;
  33351. } else {
  33352. $38 = $7&255;
  33353. HEAP8[$34>>0] = $38;
  33354. $$0 = $7;
  33355. }
  33356. }
  33357. }
  33358. if ((label|0) == 4) {
  33359. $9 = ((($0)) + 100|0);
  33360. HEAP32[$9>>2] = 0;
  33361. $$0 = -1;
  33362. }
  33363. return ($$0|0);
  33364. }
  33365. function _isspace($0) {
  33366. $0 = $0|0;
  33367. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  33368. sp = STACKTOP;
  33369. $1 = ($0|0)==(32);
  33370. $2 = (($0) + -9)|0;
  33371. $3 = ($2>>>0)<(5);
  33372. $4 = $1 | $3;
  33373. $5 = $4&1;
  33374. return ($5|0);
  33375. }
  33376. function ___uflow($0) {
  33377. $0 = $0|0;
  33378. 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;
  33379. sp = STACKTOP;
  33380. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  33381. $1 = sp;
  33382. $2 = (___toread($0)|0);
  33383. $3 = ($2|0)==(0);
  33384. if ($3) {
  33385. $4 = ((($0)) + 32|0);
  33386. $5 = HEAP32[$4>>2]|0;
  33387. $6 = (FUNCTION_TABLE_iiii[$5 & 15]($0,$1,1)|0);
  33388. $7 = ($6|0)==(1);
  33389. if ($7) {
  33390. $8 = HEAP8[$1>>0]|0;
  33391. $9 = $8&255;
  33392. $$0 = $9;
  33393. } else {
  33394. $$0 = -1;
  33395. }
  33396. } else {
  33397. $$0 = -1;
  33398. }
  33399. STACKTOP = sp;return ($$0|0);
  33400. }
  33401. function ___toread($0) {
  33402. $0 = $0|0;
  33403. 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;
  33404. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  33405. sp = STACKTOP;
  33406. $1 = ((($0)) + 74|0);
  33407. $2 = HEAP8[$1>>0]|0;
  33408. $3 = $2 << 24 >> 24;
  33409. $4 = (($3) + 255)|0;
  33410. $5 = $4 | $3;
  33411. $6 = $5&255;
  33412. HEAP8[$1>>0] = $6;
  33413. $7 = ((($0)) + 20|0);
  33414. $8 = HEAP32[$7>>2]|0;
  33415. $9 = ((($0)) + 28|0);
  33416. $10 = HEAP32[$9>>2]|0;
  33417. $11 = ($8>>>0)>($10>>>0);
  33418. if ($11) {
  33419. $12 = ((($0)) + 36|0);
  33420. $13 = HEAP32[$12>>2]|0;
  33421. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  33422. }
  33423. $14 = ((($0)) + 16|0);
  33424. HEAP32[$14>>2] = 0;
  33425. HEAP32[$9>>2] = 0;
  33426. HEAP32[$7>>2] = 0;
  33427. $15 = HEAP32[$0>>2]|0;
  33428. $16 = $15 & 4;
  33429. $17 = ($16|0)==(0);
  33430. if ($17) {
  33431. $19 = ((($0)) + 44|0);
  33432. $20 = HEAP32[$19>>2]|0;
  33433. $21 = ((($0)) + 48|0);
  33434. $22 = HEAP32[$21>>2]|0;
  33435. $23 = (($20) + ($22)|0);
  33436. $24 = ((($0)) + 8|0);
  33437. HEAP32[$24>>2] = $23;
  33438. $25 = ((($0)) + 4|0);
  33439. HEAP32[$25>>2] = $23;
  33440. $26 = $15 << 27;
  33441. $sext = $26 >> 31;
  33442. $$0 = $sext;
  33443. } else {
  33444. $18 = $15 | 32;
  33445. HEAP32[$0>>2] = $18;
  33446. $$0 = -1;
  33447. }
  33448. return ($$0|0);
  33449. }
  33450. function _copysign($0,$1) {
  33451. $0 = +$0;
  33452. $1 = +$1;
  33453. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  33454. sp = STACKTOP;
  33455. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  33456. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  33457. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  33458. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  33459. $6 = $3 & 2147483647;
  33460. $7 = $5 & -2147483648;
  33461. $8 = $7 | $6;
  33462. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $8;$9 = +HEAPF64[tempDoublePtr>>3];
  33463. return (+$9);
  33464. }
  33465. function _strcmp($0,$1) {
  33466. $0 = $0|0;
  33467. $1 = $1|0;
  33468. 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;
  33469. var sp = 0;
  33470. sp = STACKTOP;
  33471. $2 = HEAP8[$0>>0]|0;
  33472. $3 = HEAP8[$1>>0]|0;
  33473. $4 = ($2<<24>>24)!=($3<<24>>24);
  33474. $5 = ($2<<24>>24)==(0);
  33475. $or$cond9 = $5 | $4;
  33476. if ($or$cond9) {
  33477. $$lcssa = $3;$$lcssa8 = $2;
  33478. } else {
  33479. $$011 = $1;$$0710 = $0;
  33480. while(1) {
  33481. $6 = ((($$0710)) + 1|0);
  33482. $7 = ((($$011)) + 1|0);
  33483. $8 = HEAP8[$6>>0]|0;
  33484. $9 = HEAP8[$7>>0]|0;
  33485. $10 = ($8<<24>>24)!=($9<<24>>24);
  33486. $11 = ($8<<24>>24)==(0);
  33487. $or$cond = $11 | $10;
  33488. if ($or$cond) {
  33489. $$lcssa = $9;$$lcssa8 = $8;
  33490. break;
  33491. } else {
  33492. $$011 = $7;$$0710 = $6;
  33493. }
  33494. }
  33495. }
  33496. $12 = $$lcssa8&255;
  33497. $13 = $$lcssa&255;
  33498. $14 = (($12) - ($13))|0;
  33499. return ($14|0);
  33500. }
  33501. function _memcmp($0,$1,$2) {
  33502. $0 = $0|0;
  33503. $1 = $1|0;
  33504. $2 = $2|0;
  33505. 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;
  33506. sp = STACKTOP;
  33507. $3 = ($2|0)==(0);
  33508. L1: do {
  33509. if ($3) {
  33510. $14 = 0;
  33511. } else {
  33512. $$01318 = $0;$$01417 = $2;$$019 = $1;
  33513. while(1) {
  33514. $4 = HEAP8[$$01318>>0]|0;
  33515. $5 = HEAP8[$$019>>0]|0;
  33516. $6 = ($4<<24>>24)==($5<<24>>24);
  33517. if (!($6)) {
  33518. break;
  33519. }
  33520. $7 = (($$01417) + -1)|0;
  33521. $8 = ((($$01318)) + 1|0);
  33522. $9 = ((($$019)) + 1|0);
  33523. $10 = ($7|0)==(0);
  33524. if ($10) {
  33525. $14 = 0;
  33526. break L1;
  33527. } else {
  33528. $$01318 = $8;$$01417 = $7;$$019 = $9;
  33529. }
  33530. }
  33531. $11 = $4&255;
  33532. $12 = $5&255;
  33533. $13 = (($11) - ($12))|0;
  33534. $14 = $13;
  33535. }
  33536. } while(0);
  33537. return ($14|0);
  33538. }
  33539. function _vfprintf($0,$1,$2) {
  33540. $0 = $0|0;
  33541. $1 = $1|0;
  33542. $2 = $2|0;
  33543. 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;
  33544. 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;
  33545. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  33546. sp = STACKTOP;
  33547. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  33548. $3 = sp + 120|0;
  33549. $4 = sp + 80|0;
  33550. $5 = sp;
  33551. $6 = sp + 136|0;
  33552. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  33553. $vacopy_currentptr = HEAP32[$2>>2]|0;
  33554. HEAP32[$3>>2] = $vacopy_currentptr;
  33555. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  33556. $8 = ($7|0)<(0);
  33557. if ($8) {
  33558. $$0 = -1;
  33559. } else {
  33560. $9 = ((($0)) + 76|0);
  33561. $10 = HEAP32[$9>>2]|0;
  33562. $11 = ($10|0)>(-1);
  33563. if ($11) {
  33564. $12 = (___lockfile($0)|0);
  33565. $40 = $12;
  33566. } else {
  33567. $40 = 0;
  33568. }
  33569. $13 = HEAP32[$0>>2]|0;
  33570. $14 = $13 & 32;
  33571. $15 = ((($0)) + 74|0);
  33572. $16 = HEAP8[$15>>0]|0;
  33573. $17 = ($16<<24>>24)<(1);
  33574. if ($17) {
  33575. $18 = $13 & -33;
  33576. HEAP32[$0>>2] = $18;
  33577. }
  33578. $19 = ((($0)) + 48|0);
  33579. $20 = HEAP32[$19>>2]|0;
  33580. $21 = ($20|0)==(0);
  33581. if ($21) {
  33582. $23 = ((($0)) + 44|0);
  33583. $24 = HEAP32[$23>>2]|0;
  33584. HEAP32[$23>>2] = $6;
  33585. $25 = ((($0)) + 28|0);
  33586. HEAP32[$25>>2] = $6;
  33587. $26 = ((($0)) + 20|0);
  33588. HEAP32[$26>>2] = $6;
  33589. HEAP32[$19>>2] = 80;
  33590. $27 = ((($6)) + 80|0);
  33591. $28 = ((($0)) + 16|0);
  33592. HEAP32[$28>>2] = $27;
  33593. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  33594. $30 = ($24|0)==(0|0);
  33595. if ($30) {
  33596. $$1 = $29;
  33597. } else {
  33598. $31 = ((($0)) + 36|0);
  33599. $32 = HEAP32[$31>>2]|0;
  33600. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  33601. $33 = HEAP32[$26>>2]|0;
  33602. $34 = ($33|0)==(0|0);
  33603. $$ = $34 ? -1 : $29;
  33604. HEAP32[$23>>2] = $24;
  33605. HEAP32[$19>>2] = 0;
  33606. HEAP32[$28>>2] = 0;
  33607. HEAP32[$25>>2] = 0;
  33608. HEAP32[$26>>2] = 0;
  33609. $$1 = $$;
  33610. }
  33611. } else {
  33612. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  33613. $$1 = $22;
  33614. }
  33615. $35 = HEAP32[$0>>2]|0;
  33616. $36 = $35 & 32;
  33617. $37 = ($36|0)==(0);
  33618. $$1$ = $37 ? $$1 : -1;
  33619. $38 = $35 | $14;
  33620. HEAP32[$0>>2] = $38;
  33621. $39 = ($40|0)==(0);
  33622. if (!($39)) {
  33623. ___unlockfile($0);
  33624. }
  33625. $$0 = $$1$;
  33626. }
  33627. STACKTOP = sp;return ($$0|0);
  33628. }
  33629. function _printf_core($0,$1,$2,$3,$4) {
  33630. $0 = $0|0;
  33631. $1 = $1|0;
  33632. $2 = $2|0;
  33633. $3 = $3|0;
  33634. $4 = $4|0;
  33635. 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;
  33636. 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;
  33637. 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;
  33638. 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;
  33639. 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;
  33640. 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;
  33641. 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;
  33642. 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;
  33643. 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;
  33644. 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;
  33645. 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;
  33646. 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;
  33647. 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;
  33648. 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;
  33649. 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;
  33650. 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;
  33651. 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;
  33652. 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;
  33653. 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;
  33654. 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;
  33655. 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;
  33656. 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;
  33657. sp = STACKTOP;
  33658. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  33659. $5 = sp + 16|0;
  33660. $6 = sp;
  33661. $7 = sp + 24|0;
  33662. $8 = sp + 8|0;
  33663. $9 = sp + 20|0;
  33664. HEAP32[$5>>2] = $1;
  33665. $10 = ($0|0)!=(0|0);
  33666. $11 = ((($7)) + 40|0);
  33667. $12 = $11;
  33668. $13 = ((($7)) + 39|0);
  33669. $14 = ((($8)) + 4|0);
  33670. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  33671. L1: while(1) {
  33672. $15 = ($$0247|0)>(-1);
  33673. do {
  33674. if ($15) {
  33675. $16 = (2147483647 - ($$0247))|0;
  33676. $17 = ($$0243|0)>($16|0);
  33677. if ($17) {
  33678. $18 = (___errno_location()|0);
  33679. HEAP32[$18>>2] = 75;
  33680. $$1248 = -1;
  33681. break;
  33682. } else {
  33683. $19 = (($$0243) + ($$0247))|0;
  33684. $$1248 = $19;
  33685. break;
  33686. }
  33687. } else {
  33688. $$1248 = $$0247;
  33689. }
  33690. } while(0);
  33691. $20 = HEAP8[$21>>0]|0;
  33692. $22 = ($20<<24>>24)==(0);
  33693. if ($22) {
  33694. label = 87;
  33695. break;
  33696. } else {
  33697. $23 = $20;$25 = $21;
  33698. }
  33699. L9: while(1) {
  33700. switch ($23<<24>>24) {
  33701. case 37: {
  33702. $$0249306 = $25;$27 = $25;
  33703. label = 9;
  33704. break L9;
  33705. break;
  33706. }
  33707. case 0: {
  33708. $$0249$lcssa = $25;$39 = $25;
  33709. break L9;
  33710. break;
  33711. }
  33712. default: {
  33713. }
  33714. }
  33715. $24 = ((($25)) + 1|0);
  33716. HEAP32[$5>>2] = $24;
  33717. $$pre = HEAP8[$24>>0]|0;
  33718. $23 = $$pre;$25 = $24;
  33719. }
  33720. L12: do {
  33721. if ((label|0) == 9) {
  33722. while(1) {
  33723. label = 0;
  33724. $26 = ((($27)) + 1|0);
  33725. $28 = HEAP8[$26>>0]|0;
  33726. $29 = ($28<<24>>24)==(37);
  33727. if (!($29)) {
  33728. $$0249$lcssa = $$0249306;$39 = $27;
  33729. break L12;
  33730. }
  33731. $30 = ((($$0249306)) + 1|0);
  33732. $31 = ((($27)) + 2|0);
  33733. HEAP32[$5>>2] = $31;
  33734. $32 = HEAP8[$31>>0]|0;
  33735. $33 = ($32<<24>>24)==(37);
  33736. if ($33) {
  33737. $$0249306 = $30;$27 = $31;
  33738. label = 9;
  33739. } else {
  33740. $$0249$lcssa = $30;$39 = $31;
  33741. break;
  33742. }
  33743. }
  33744. }
  33745. } while(0);
  33746. $34 = $$0249$lcssa;
  33747. $35 = $21;
  33748. $36 = (($34) - ($35))|0;
  33749. if ($10) {
  33750. _out($0,$21,$36);
  33751. }
  33752. $37 = ($36|0)==(0);
  33753. if (!($37)) {
  33754. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  33755. continue;
  33756. }
  33757. $38 = ((($39)) + 1|0);
  33758. $40 = HEAP8[$38>>0]|0;
  33759. $41 = $40 << 24 >> 24;
  33760. $isdigittmp = (($41) + -48)|0;
  33761. $isdigit = ($isdigittmp>>>0)<(10);
  33762. if ($isdigit) {
  33763. $42 = ((($39)) + 2|0);
  33764. $43 = HEAP8[$42>>0]|0;
  33765. $44 = ($43<<24>>24)==(36);
  33766. $45 = ((($39)) + 3|0);
  33767. $$377 = $44 ? $45 : $38;
  33768. $$$0269 = $44 ? 1 : $$0269;
  33769. $isdigittmp$ = $44 ? $isdigittmp : -1;
  33770. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  33771. } else {
  33772. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  33773. }
  33774. HEAP32[$5>>2] = $storemerge;
  33775. $46 = HEAP8[$storemerge>>0]|0;
  33776. $47 = $46 << 24 >> 24;
  33777. $48 = (($47) + -32)|0;
  33778. $49 = ($48>>>0)<(32);
  33779. L24: do {
  33780. if ($49) {
  33781. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  33782. while(1) {
  33783. $50 = 1 << $51;
  33784. $52 = $50 & 75913;
  33785. $53 = ($52|0)==(0);
  33786. if ($53) {
  33787. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  33788. break L24;
  33789. }
  33790. $54 = $50 | $$0262311;
  33791. $55 = ((($storemerge273310)) + 1|0);
  33792. HEAP32[$5>>2] = $55;
  33793. $56 = HEAP8[$55>>0]|0;
  33794. $57 = $56 << 24 >> 24;
  33795. $58 = (($57) + -32)|0;
  33796. $59 = ($58>>>0)<(32);
  33797. if ($59) {
  33798. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  33799. } else {
  33800. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  33801. break;
  33802. }
  33803. }
  33804. } else {
  33805. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  33806. }
  33807. } while(0);
  33808. $60 = ($$lcssa295<<24>>24)==(42);
  33809. if ($60) {
  33810. $61 = ((($62)) + 1|0);
  33811. $63 = HEAP8[$61>>0]|0;
  33812. $64 = $63 << 24 >> 24;
  33813. $isdigittmp276 = (($64) + -48)|0;
  33814. $isdigit277 = ($isdigittmp276>>>0)<(10);
  33815. if ($isdigit277) {
  33816. $65 = ((($62)) + 2|0);
  33817. $66 = HEAP8[$65>>0]|0;
  33818. $67 = ($66<<24>>24)==(36);
  33819. if ($67) {
  33820. $68 = (($4) + ($isdigittmp276<<2)|0);
  33821. HEAP32[$68>>2] = 10;
  33822. $69 = HEAP8[$61>>0]|0;
  33823. $70 = $69 << 24 >> 24;
  33824. $71 = (($70) + -48)|0;
  33825. $72 = (($3) + ($71<<3)|0);
  33826. $73 = $72;
  33827. $74 = $73;
  33828. $75 = HEAP32[$74>>2]|0;
  33829. $76 = (($73) + 4)|0;
  33830. $77 = $76;
  33831. $78 = HEAP32[$77>>2]|0;
  33832. $79 = ((($62)) + 3|0);
  33833. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  33834. } else {
  33835. label = 23;
  33836. }
  33837. } else {
  33838. label = 23;
  33839. }
  33840. if ((label|0) == 23) {
  33841. label = 0;
  33842. $80 = ($$1270|0)==(0);
  33843. if (!($80)) {
  33844. $$0 = -1;
  33845. break;
  33846. }
  33847. if ($10) {
  33848. $arglist_current = HEAP32[$2>>2]|0;
  33849. $81 = $arglist_current;
  33850. $82 = ((0) + 4|0);
  33851. $expanded4 = $82;
  33852. $expanded = (($expanded4) - 1)|0;
  33853. $83 = (($81) + ($expanded))|0;
  33854. $84 = ((0) + 4|0);
  33855. $expanded8 = $84;
  33856. $expanded7 = (($expanded8) - 1)|0;
  33857. $expanded6 = $expanded7 ^ -1;
  33858. $85 = $83 & $expanded6;
  33859. $86 = $85;
  33860. $87 = HEAP32[$86>>2]|0;
  33861. $arglist_next = ((($86)) + 4|0);
  33862. HEAP32[$2>>2] = $arglist_next;
  33863. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  33864. } else {
  33865. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  33866. }
  33867. }
  33868. HEAP32[$5>>2] = $storemerge278;
  33869. $88 = ($$0259|0)<(0);
  33870. $89 = $$0262$lcssa | 8192;
  33871. $90 = (0 - ($$0259))|0;
  33872. $$$0262 = $88 ? $89 : $$0262$lcssa;
  33873. $$$0259 = $88 ? $90 : $$0259;
  33874. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  33875. } else {
  33876. $91 = (_getint($5)|0);
  33877. $92 = ($91|0)<(0);
  33878. if ($92) {
  33879. $$0 = -1;
  33880. break;
  33881. }
  33882. $$pre346 = HEAP32[$5>>2]|0;
  33883. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  33884. }
  33885. $93 = HEAP8[$94>>0]|0;
  33886. $95 = ($93<<24>>24)==(46);
  33887. do {
  33888. if ($95) {
  33889. $96 = ((($94)) + 1|0);
  33890. $97 = HEAP8[$96>>0]|0;
  33891. $98 = ($97<<24>>24)==(42);
  33892. if (!($98)) {
  33893. $125 = ((($94)) + 1|0);
  33894. HEAP32[$5>>2] = $125;
  33895. $126 = (_getint($5)|0);
  33896. $$pre347$pre = HEAP32[$5>>2]|0;
  33897. $$0254 = $126;$$pre347 = $$pre347$pre;
  33898. break;
  33899. }
  33900. $99 = ((($94)) + 2|0);
  33901. $100 = HEAP8[$99>>0]|0;
  33902. $101 = $100 << 24 >> 24;
  33903. $isdigittmp274 = (($101) + -48)|0;
  33904. $isdigit275 = ($isdigittmp274>>>0)<(10);
  33905. if ($isdigit275) {
  33906. $102 = ((($94)) + 3|0);
  33907. $103 = HEAP8[$102>>0]|0;
  33908. $104 = ($103<<24>>24)==(36);
  33909. if ($104) {
  33910. $105 = (($4) + ($isdigittmp274<<2)|0);
  33911. HEAP32[$105>>2] = 10;
  33912. $106 = HEAP8[$99>>0]|0;
  33913. $107 = $106 << 24 >> 24;
  33914. $108 = (($107) + -48)|0;
  33915. $109 = (($3) + ($108<<3)|0);
  33916. $110 = $109;
  33917. $111 = $110;
  33918. $112 = HEAP32[$111>>2]|0;
  33919. $113 = (($110) + 4)|0;
  33920. $114 = $113;
  33921. $115 = HEAP32[$114>>2]|0;
  33922. $116 = ((($94)) + 4|0);
  33923. HEAP32[$5>>2] = $116;
  33924. $$0254 = $112;$$pre347 = $116;
  33925. break;
  33926. }
  33927. }
  33928. $117 = ($$3272|0)==(0);
  33929. if (!($117)) {
  33930. $$0 = -1;
  33931. break L1;
  33932. }
  33933. if ($10) {
  33934. $arglist_current2 = HEAP32[$2>>2]|0;
  33935. $118 = $arglist_current2;
  33936. $119 = ((0) + 4|0);
  33937. $expanded11 = $119;
  33938. $expanded10 = (($expanded11) - 1)|0;
  33939. $120 = (($118) + ($expanded10))|0;
  33940. $121 = ((0) + 4|0);
  33941. $expanded15 = $121;
  33942. $expanded14 = (($expanded15) - 1)|0;
  33943. $expanded13 = $expanded14 ^ -1;
  33944. $122 = $120 & $expanded13;
  33945. $123 = $122;
  33946. $124 = HEAP32[$123>>2]|0;
  33947. $arglist_next3 = ((($123)) + 4|0);
  33948. HEAP32[$2>>2] = $arglist_next3;
  33949. $330 = $124;
  33950. } else {
  33951. $330 = 0;
  33952. }
  33953. HEAP32[$5>>2] = $99;
  33954. $$0254 = $330;$$pre347 = $99;
  33955. } else {
  33956. $$0254 = -1;$$pre347 = $94;
  33957. }
  33958. } while(0);
  33959. $$0252 = 0;$128 = $$pre347;
  33960. while(1) {
  33961. $127 = HEAP8[$128>>0]|0;
  33962. $129 = $127 << 24 >> 24;
  33963. $130 = (($129) + -65)|0;
  33964. $131 = ($130>>>0)>(57);
  33965. if ($131) {
  33966. $$0 = -1;
  33967. break L1;
  33968. }
  33969. $132 = ((($128)) + 1|0);
  33970. HEAP32[$5>>2] = $132;
  33971. $133 = HEAP8[$128>>0]|0;
  33972. $134 = $133 << 24 >> 24;
  33973. $135 = (($134) + -65)|0;
  33974. $136 = ((17358 + (($$0252*58)|0)|0) + ($135)|0);
  33975. $137 = HEAP8[$136>>0]|0;
  33976. $138 = $137&255;
  33977. $139 = (($138) + -1)|0;
  33978. $140 = ($139>>>0)<(8);
  33979. if ($140) {
  33980. $$0252 = $138;$128 = $132;
  33981. } else {
  33982. break;
  33983. }
  33984. }
  33985. $141 = ($137<<24>>24)==(0);
  33986. if ($141) {
  33987. $$0 = -1;
  33988. break;
  33989. }
  33990. $142 = ($137<<24>>24)==(19);
  33991. $143 = ($$0253|0)>(-1);
  33992. do {
  33993. if ($142) {
  33994. if ($143) {
  33995. $$0 = -1;
  33996. break L1;
  33997. } else {
  33998. label = 49;
  33999. }
  34000. } else {
  34001. if ($143) {
  34002. $144 = (($4) + ($$0253<<2)|0);
  34003. HEAP32[$144>>2] = $138;
  34004. $145 = (($3) + ($$0253<<3)|0);
  34005. $146 = $145;
  34006. $147 = $146;
  34007. $148 = HEAP32[$147>>2]|0;
  34008. $149 = (($146) + 4)|0;
  34009. $150 = $149;
  34010. $151 = HEAP32[$150>>2]|0;
  34011. $152 = $6;
  34012. $153 = $152;
  34013. HEAP32[$153>>2] = $148;
  34014. $154 = (($152) + 4)|0;
  34015. $155 = $154;
  34016. HEAP32[$155>>2] = $151;
  34017. label = 49;
  34018. break;
  34019. }
  34020. if (!($10)) {
  34021. $$0 = 0;
  34022. break L1;
  34023. }
  34024. _pop_arg($6,$138,$2);
  34025. }
  34026. } while(0);
  34027. if ((label|0) == 49) {
  34028. label = 0;
  34029. if (!($10)) {
  34030. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34031. continue;
  34032. }
  34033. }
  34034. $156 = HEAP8[$128>>0]|0;
  34035. $157 = $156 << 24 >> 24;
  34036. $158 = ($$0252|0)!=(0);
  34037. $159 = $157 & 15;
  34038. $160 = ($159|0)==(3);
  34039. $or$cond281 = $158 & $160;
  34040. $161 = $157 & -33;
  34041. $$0235 = $or$cond281 ? $161 : $157;
  34042. $162 = $$1263 & 8192;
  34043. $163 = ($162|0)==(0);
  34044. $164 = $$1263 & -65537;
  34045. $$1263$ = $163 ? $$1263 : $164;
  34046. L71: do {
  34047. switch ($$0235|0) {
  34048. case 110: {
  34049. $trunc = $$0252&255;
  34050. switch ($trunc<<24>>24) {
  34051. case 0: {
  34052. $171 = HEAP32[$6>>2]|0;
  34053. HEAP32[$171>>2] = $$1248;
  34054. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34055. continue L1;
  34056. break;
  34057. }
  34058. case 1: {
  34059. $172 = HEAP32[$6>>2]|0;
  34060. HEAP32[$172>>2] = $$1248;
  34061. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34062. continue L1;
  34063. break;
  34064. }
  34065. case 2: {
  34066. $173 = ($$1248|0)<(0);
  34067. $174 = $173 << 31 >> 31;
  34068. $175 = HEAP32[$6>>2]|0;
  34069. $176 = $175;
  34070. $177 = $176;
  34071. HEAP32[$177>>2] = $$1248;
  34072. $178 = (($176) + 4)|0;
  34073. $179 = $178;
  34074. HEAP32[$179>>2] = $174;
  34075. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34076. continue L1;
  34077. break;
  34078. }
  34079. case 3: {
  34080. $180 = $$1248&65535;
  34081. $181 = HEAP32[$6>>2]|0;
  34082. HEAP16[$181>>1] = $180;
  34083. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34084. continue L1;
  34085. break;
  34086. }
  34087. case 4: {
  34088. $182 = $$1248&255;
  34089. $183 = HEAP32[$6>>2]|0;
  34090. HEAP8[$183>>0] = $182;
  34091. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34092. continue L1;
  34093. break;
  34094. }
  34095. case 6: {
  34096. $184 = HEAP32[$6>>2]|0;
  34097. HEAP32[$184>>2] = $$1248;
  34098. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34099. continue L1;
  34100. break;
  34101. }
  34102. case 7: {
  34103. $185 = ($$1248|0)<(0);
  34104. $186 = $185 << 31 >> 31;
  34105. $187 = HEAP32[$6>>2]|0;
  34106. $188 = $187;
  34107. $189 = $188;
  34108. HEAP32[$189>>2] = $$1248;
  34109. $190 = (($188) + 4)|0;
  34110. $191 = $190;
  34111. HEAP32[$191>>2] = $186;
  34112. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34113. continue L1;
  34114. break;
  34115. }
  34116. default: {
  34117. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34118. continue L1;
  34119. }
  34120. }
  34121. break;
  34122. }
  34123. case 112: {
  34124. $192 = ($$0254>>>0)>(8);
  34125. $193 = $192 ? $$0254 : 8;
  34126. $194 = $$1263$ | 8;
  34127. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  34128. label = 61;
  34129. break;
  34130. }
  34131. case 88: case 120: {
  34132. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  34133. label = 61;
  34134. break;
  34135. }
  34136. case 111: {
  34137. $210 = $6;
  34138. $211 = $210;
  34139. $212 = HEAP32[$211>>2]|0;
  34140. $213 = (($210) + 4)|0;
  34141. $214 = $213;
  34142. $215 = HEAP32[$214>>2]|0;
  34143. $216 = (_fmt_o($212,$215,$11)|0);
  34144. $217 = $$1263$ & 8;
  34145. $218 = ($217|0)==(0);
  34146. $219 = $216;
  34147. $220 = (($12) - ($219))|0;
  34148. $221 = ($$0254|0)>($220|0);
  34149. $222 = (($220) + 1)|0;
  34150. $223 = $218 | $221;
  34151. $$0254$$0254$ = $223 ? $$0254 : $222;
  34152. $$0228 = $216;$$1233 = 0;$$1238 = 17822;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  34153. label = 67;
  34154. break;
  34155. }
  34156. case 105: case 100: {
  34157. $224 = $6;
  34158. $225 = $224;
  34159. $226 = HEAP32[$225>>2]|0;
  34160. $227 = (($224) + 4)|0;
  34161. $228 = $227;
  34162. $229 = HEAP32[$228>>2]|0;
  34163. $230 = ($229|0)<(0);
  34164. if ($230) {
  34165. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  34166. $232 = tempRet0;
  34167. $233 = $6;
  34168. $234 = $233;
  34169. HEAP32[$234>>2] = $231;
  34170. $235 = (($233) + 4)|0;
  34171. $236 = $235;
  34172. HEAP32[$236>>2] = $232;
  34173. $$0232 = 1;$$0237 = 17822;$242 = $231;$243 = $232;
  34174. label = 66;
  34175. break L71;
  34176. } else {
  34177. $237 = $$1263$ & 2048;
  34178. $238 = ($237|0)==(0);
  34179. $239 = $$1263$ & 1;
  34180. $240 = ($239|0)==(0);
  34181. $$ = $240 ? 17822 : (17824);
  34182. $$$ = $238 ? $$ : (17823);
  34183. $241 = $$1263$ & 2049;
  34184. $narrow = ($241|0)!=(0);
  34185. $$284$ = $narrow&1;
  34186. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  34187. label = 66;
  34188. break L71;
  34189. }
  34190. break;
  34191. }
  34192. case 117: {
  34193. $165 = $6;
  34194. $166 = $165;
  34195. $167 = HEAP32[$166>>2]|0;
  34196. $168 = (($165) + 4)|0;
  34197. $169 = $168;
  34198. $170 = HEAP32[$169>>2]|0;
  34199. $$0232 = 0;$$0237 = 17822;$242 = $167;$243 = $170;
  34200. label = 66;
  34201. break;
  34202. }
  34203. case 99: {
  34204. $259 = $6;
  34205. $260 = $259;
  34206. $261 = HEAP32[$260>>2]|0;
  34207. $262 = (($259) + 4)|0;
  34208. $263 = $262;
  34209. $264 = HEAP32[$263>>2]|0;
  34210. $265 = $261&255;
  34211. HEAP8[$13>>0] = $265;
  34212. $$2 = $13;$$2234 = 0;$$2239 = 17822;$$2251 = $11;$$5 = 1;$$6268 = $164;
  34213. break;
  34214. }
  34215. case 109: {
  34216. $266 = (___errno_location()|0);
  34217. $267 = HEAP32[$266>>2]|0;
  34218. $268 = (_strerror($267)|0);
  34219. $$1 = $268;
  34220. label = 71;
  34221. break;
  34222. }
  34223. case 115: {
  34224. $269 = HEAP32[$6>>2]|0;
  34225. $270 = ($269|0)!=(0|0);
  34226. $271 = $270 ? $269 : 17832;
  34227. $$1 = $271;
  34228. label = 71;
  34229. break;
  34230. }
  34231. case 67: {
  34232. $278 = $6;
  34233. $279 = $278;
  34234. $280 = HEAP32[$279>>2]|0;
  34235. $281 = (($278) + 4)|0;
  34236. $282 = $281;
  34237. $283 = HEAP32[$282>>2]|0;
  34238. HEAP32[$8>>2] = $280;
  34239. HEAP32[$14>>2] = 0;
  34240. HEAP32[$6>>2] = $8;
  34241. $$4258355 = -1;$331 = $8;
  34242. label = 75;
  34243. break;
  34244. }
  34245. case 83: {
  34246. $$pre349 = HEAP32[$6>>2]|0;
  34247. $284 = ($$0254|0)==(0);
  34248. if ($284) {
  34249. _pad_674($0,32,$$1260,0,$$1263$);
  34250. $$0240$lcssa357 = 0;
  34251. label = 84;
  34252. } else {
  34253. $$4258355 = $$0254;$331 = $$pre349;
  34254. label = 75;
  34255. }
  34256. break;
  34257. }
  34258. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  34259. $306 = +HEAPF64[$6>>3];
  34260. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  34261. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34262. continue L1;
  34263. break;
  34264. }
  34265. default: {
  34266. $$2 = $21;$$2234 = 0;$$2239 = 17822;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  34267. }
  34268. }
  34269. } while(0);
  34270. L95: do {
  34271. if ((label|0) == 61) {
  34272. label = 0;
  34273. $195 = $6;
  34274. $196 = $195;
  34275. $197 = HEAP32[$196>>2]|0;
  34276. $198 = (($195) + 4)|0;
  34277. $199 = $198;
  34278. $200 = HEAP32[$199>>2]|0;
  34279. $201 = $$1236 & 32;
  34280. $202 = (_fmt_x($197,$200,$11,$201)|0);
  34281. $203 = ($197|0)==(0);
  34282. $204 = ($200|0)==(0);
  34283. $205 = $203 & $204;
  34284. $206 = $$3265 & 8;
  34285. $207 = ($206|0)==(0);
  34286. $or$cond283 = $207 | $205;
  34287. $208 = $$1236 >> 4;
  34288. $209 = (17822 + ($208)|0);
  34289. $$289 = $or$cond283 ? 17822 : $209;
  34290. $$290 = $or$cond283 ? 0 : 2;
  34291. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  34292. label = 67;
  34293. }
  34294. else if ((label|0) == 66) {
  34295. label = 0;
  34296. $244 = (_fmt_u($242,$243,$11)|0);
  34297. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  34298. label = 67;
  34299. }
  34300. else if ((label|0) == 71) {
  34301. label = 0;
  34302. $272 = (_memchr($$1,0,$$0254)|0);
  34303. $273 = ($272|0)==(0|0);
  34304. $274 = $272;
  34305. $275 = $$1;
  34306. $276 = (($274) - ($275))|0;
  34307. $277 = (($$1) + ($$0254)|0);
  34308. $$3257 = $273 ? $$0254 : $276;
  34309. $$1250 = $273 ? $277 : $272;
  34310. $$2 = $$1;$$2234 = 0;$$2239 = 17822;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  34311. }
  34312. else if ((label|0) == 75) {
  34313. label = 0;
  34314. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  34315. while(1) {
  34316. $285 = HEAP32[$$0229322>>2]|0;
  34317. $286 = ($285|0)==(0);
  34318. if ($286) {
  34319. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  34320. break;
  34321. }
  34322. $287 = (_wctomb($9,$285)|0);
  34323. $288 = ($287|0)<(0);
  34324. $289 = (($$4258355) - ($$0240321))|0;
  34325. $290 = ($287>>>0)>($289>>>0);
  34326. $or$cond286 = $288 | $290;
  34327. if ($or$cond286) {
  34328. $$0240$lcssa = $$0240321;$$2245 = $287;
  34329. break;
  34330. }
  34331. $291 = ((($$0229322)) + 4|0);
  34332. $292 = (($287) + ($$0240321))|0;
  34333. $293 = ($$4258355>>>0)>($292>>>0);
  34334. if ($293) {
  34335. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  34336. } else {
  34337. $$0240$lcssa = $292;$$2245 = $287;
  34338. break;
  34339. }
  34340. }
  34341. $294 = ($$2245|0)<(0);
  34342. if ($294) {
  34343. $$0 = -1;
  34344. break L1;
  34345. }
  34346. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  34347. $295 = ($$0240$lcssa|0)==(0);
  34348. if ($295) {
  34349. $$0240$lcssa357 = 0;
  34350. label = 84;
  34351. } else {
  34352. $$1230333 = $331;$$1241332 = 0;
  34353. while(1) {
  34354. $296 = HEAP32[$$1230333>>2]|0;
  34355. $297 = ($296|0)==(0);
  34356. if ($297) {
  34357. $$0240$lcssa357 = $$0240$lcssa;
  34358. label = 84;
  34359. break L95;
  34360. }
  34361. $298 = (_wctomb($9,$296)|0);
  34362. $299 = (($298) + ($$1241332))|0;
  34363. $300 = ($299|0)>($$0240$lcssa|0);
  34364. if ($300) {
  34365. $$0240$lcssa357 = $$0240$lcssa;
  34366. label = 84;
  34367. break L95;
  34368. }
  34369. $301 = ((($$1230333)) + 4|0);
  34370. _out($0,$9,$298);
  34371. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  34372. if ($302) {
  34373. $$1230333 = $301;$$1241332 = $299;
  34374. } else {
  34375. $$0240$lcssa357 = $$0240$lcssa;
  34376. label = 84;
  34377. break;
  34378. }
  34379. }
  34380. }
  34381. }
  34382. } while(0);
  34383. if ((label|0) == 67) {
  34384. label = 0;
  34385. $245 = ($$2256|0)>(-1);
  34386. $246 = $$4266 & -65537;
  34387. $$$4266 = $245 ? $246 : $$4266;
  34388. $247 = ($248|0)!=(0);
  34389. $249 = ($250|0)!=(0);
  34390. $251 = $247 | $249;
  34391. $252 = ($$2256|0)!=(0);
  34392. $or$cond = $252 | $251;
  34393. $253 = $$0228;
  34394. $254 = (($12) - ($253))|0;
  34395. $255 = $251 ^ 1;
  34396. $256 = $255&1;
  34397. $257 = (($256) + ($254))|0;
  34398. $258 = ($$2256|0)>($257|0);
  34399. $$2256$ = $258 ? $$2256 : $257;
  34400. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  34401. $$0228$ = $or$cond ? $$0228 : $11;
  34402. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  34403. }
  34404. else if ((label|0) == 84) {
  34405. label = 0;
  34406. $303 = $$1263$ ^ 8192;
  34407. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  34408. $304 = ($$1260|0)>($$0240$lcssa357|0);
  34409. $305 = $304 ? $$1260 : $$0240$lcssa357;
  34410. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34411. continue;
  34412. }
  34413. $308 = $$2251;
  34414. $309 = $$2;
  34415. $310 = (($308) - ($309))|0;
  34416. $311 = ($$5|0)<($310|0);
  34417. $$$5 = $311 ? $310 : $$5;
  34418. $312 = (($$$5) + ($$2234))|0;
  34419. $313 = ($$1260|0)<($312|0);
  34420. $$2261 = $313 ? $312 : $$1260;
  34421. _pad_674($0,32,$$2261,$312,$$6268);
  34422. _out($0,$$2239,$$2234);
  34423. $314 = $$6268 ^ 65536;
  34424. _pad_674($0,48,$$2261,$312,$314);
  34425. _pad_674($0,48,$$$5,$310,0);
  34426. _out($0,$$2,$310);
  34427. $315 = $$6268 ^ 8192;
  34428. _pad_674($0,32,$$2261,$312,$315);
  34429. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34430. }
  34431. L114: do {
  34432. if ((label|0) == 87) {
  34433. $316 = ($0|0)==(0|0);
  34434. if ($316) {
  34435. $317 = ($$0269|0)==(0);
  34436. if ($317) {
  34437. $$0 = 0;
  34438. } else {
  34439. $$2242305 = 1;
  34440. while(1) {
  34441. $318 = (($4) + ($$2242305<<2)|0);
  34442. $319 = HEAP32[$318>>2]|0;
  34443. $320 = ($319|0)==(0);
  34444. if ($320) {
  34445. $$3303 = $$2242305;
  34446. break;
  34447. }
  34448. $321 = (($3) + ($$2242305<<3)|0);
  34449. _pop_arg($321,$319,$2);
  34450. $322 = (($$2242305) + 1)|0;
  34451. $323 = ($322|0)<(10);
  34452. if ($323) {
  34453. $$2242305 = $322;
  34454. } else {
  34455. $$0 = 1;
  34456. break L114;
  34457. }
  34458. }
  34459. while(1) {
  34460. $326 = (($4) + ($$3303<<2)|0);
  34461. $327 = HEAP32[$326>>2]|0;
  34462. $328 = ($327|0)==(0);
  34463. $325 = (($$3303) + 1)|0;
  34464. if (!($328)) {
  34465. $$0 = -1;
  34466. break L114;
  34467. }
  34468. $324 = ($325|0)<(10);
  34469. if ($324) {
  34470. $$3303 = $325;
  34471. } else {
  34472. $$0 = 1;
  34473. break;
  34474. }
  34475. }
  34476. }
  34477. } else {
  34478. $$0 = $$1248;
  34479. }
  34480. }
  34481. } while(0);
  34482. STACKTOP = sp;return ($$0|0);
  34483. }
  34484. function ___lockfile($0) {
  34485. $0 = $0|0;
  34486. var label = 0, sp = 0;
  34487. sp = STACKTOP;
  34488. return 0;
  34489. }
  34490. function ___unlockfile($0) {
  34491. $0 = $0|0;
  34492. var label = 0, sp = 0;
  34493. sp = STACKTOP;
  34494. return;
  34495. }
  34496. function _out($0,$1,$2) {
  34497. $0 = $0|0;
  34498. $1 = $1|0;
  34499. $2 = $2|0;
  34500. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  34501. sp = STACKTOP;
  34502. $3 = HEAP32[$0>>2]|0;
  34503. $4 = $3 & 32;
  34504. $5 = ($4|0)==(0);
  34505. if ($5) {
  34506. (___fwritex($1,$2,$0)|0);
  34507. }
  34508. return;
  34509. }
  34510. function _getint($0) {
  34511. $0 = $0|0;
  34512. 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;
  34513. sp = STACKTOP;
  34514. $1 = HEAP32[$0>>2]|0;
  34515. $2 = HEAP8[$1>>0]|0;
  34516. $3 = $2 << 24 >> 24;
  34517. $isdigittmp4 = (($3) + -48)|0;
  34518. $isdigit5 = ($isdigittmp4>>>0)<(10);
  34519. if ($isdigit5) {
  34520. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  34521. while(1) {
  34522. $4 = ($$06*10)|0;
  34523. $5 = (($isdigittmp7) + ($4))|0;
  34524. $6 = ((($7)) + 1|0);
  34525. HEAP32[$0>>2] = $6;
  34526. $8 = HEAP8[$6>>0]|0;
  34527. $9 = $8 << 24 >> 24;
  34528. $isdigittmp = (($9) + -48)|0;
  34529. $isdigit = ($isdigittmp>>>0)<(10);
  34530. if ($isdigit) {
  34531. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  34532. } else {
  34533. $$0$lcssa = $5;
  34534. break;
  34535. }
  34536. }
  34537. } else {
  34538. $$0$lcssa = 0;
  34539. }
  34540. return ($$0$lcssa|0);
  34541. }
  34542. function _pop_arg($0,$1,$2) {
  34543. $0 = $0|0;
  34544. $1 = $1|0;
  34545. $2 = $2|0;
  34546. 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;
  34547. 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;
  34548. 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;
  34549. 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;
  34550. 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;
  34551. 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;
  34552. 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;
  34553. 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;
  34554. 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;
  34555. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  34556. sp = STACKTOP;
  34557. $3 = ($1>>>0)>(20);
  34558. L1: do {
  34559. if (!($3)) {
  34560. do {
  34561. switch ($1|0) {
  34562. case 9: {
  34563. $arglist_current = HEAP32[$2>>2]|0;
  34564. $4 = $arglist_current;
  34565. $5 = ((0) + 4|0);
  34566. $expanded28 = $5;
  34567. $expanded = (($expanded28) - 1)|0;
  34568. $6 = (($4) + ($expanded))|0;
  34569. $7 = ((0) + 4|0);
  34570. $expanded32 = $7;
  34571. $expanded31 = (($expanded32) - 1)|0;
  34572. $expanded30 = $expanded31 ^ -1;
  34573. $8 = $6 & $expanded30;
  34574. $9 = $8;
  34575. $10 = HEAP32[$9>>2]|0;
  34576. $arglist_next = ((($9)) + 4|0);
  34577. HEAP32[$2>>2] = $arglist_next;
  34578. HEAP32[$0>>2] = $10;
  34579. break L1;
  34580. break;
  34581. }
  34582. case 10: {
  34583. $arglist_current2 = HEAP32[$2>>2]|0;
  34584. $11 = $arglist_current2;
  34585. $12 = ((0) + 4|0);
  34586. $expanded35 = $12;
  34587. $expanded34 = (($expanded35) - 1)|0;
  34588. $13 = (($11) + ($expanded34))|0;
  34589. $14 = ((0) + 4|0);
  34590. $expanded39 = $14;
  34591. $expanded38 = (($expanded39) - 1)|0;
  34592. $expanded37 = $expanded38 ^ -1;
  34593. $15 = $13 & $expanded37;
  34594. $16 = $15;
  34595. $17 = HEAP32[$16>>2]|0;
  34596. $arglist_next3 = ((($16)) + 4|0);
  34597. HEAP32[$2>>2] = $arglist_next3;
  34598. $18 = ($17|0)<(0);
  34599. $19 = $18 << 31 >> 31;
  34600. $20 = $0;
  34601. $21 = $20;
  34602. HEAP32[$21>>2] = $17;
  34603. $22 = (($20) + 4)|0;
  34604. $23 = $22;
  34605. HEAP32[$23>>2] = $19;
  34606. break L1;
  34607. break;
  34608. }
  34609. case 11: {
  34610. $arglist_current5 = HEAP32[$2>>2]|0;
  34611. $24 = $arglist_current5;
  34612. $25 = ((0) + 4|0);
  34613. $expanded42 = $25;
  34614. $expanded41 = (($expanded42) - 1)|0;
  34615. $26 = (($24) + ($expanded41))|0;
  34616. $27 = ((0) + 4|0);
  34617. $expanded46 = $27;
  34618. $expanded45 = (($expanded46) - 1)|0;
  34619. $expanded44 = $expanded45 ^ -1;
  34620. $28 = $26 & $expanded44;
  34621. $29 = $28;
  34622. $30 = HEAP32[$29>>2]|0;
  34623. $arglist_next6 = ((($29)) + 4|0);
  34624. HEAP32[$2>>2] = $arglist_next6;
  34625. $31 = $0;
  34626. $32 = $31;
  34627. HEAP32[$32>>2] = $30;
  34628. $33 = (($31) + 4)|0;
  34629. $34 = $33;
  34630. HEAP32[$34>>2] = 0;
  34631. break L1;
  34632. break;
  34633. }
  34634. case 12: {
  34635. $arglist_current8 = HEAP32[$2>>2]|0;
  34636. $35 = $arglist_current8;
  34637. $36 = ((0) + 8|0);
  34638. $expanded49 = $36;
  34639. $expanded48 = (($expanded49) - 1)|0;
  34640. $37 = (($35) + ($expanded48))|0;
  34641. $38 = ((0) + 8|0);
  34642. $expanded53 = $38;
  34643. $expanded52 = (($expanded53) - 1)|0;
  34644. $expanded51 = $expanded52 ^ -1;
  34645. $39 = $37 & $expanded51;
  34646. $40 = $39;
  34647. $41 = $40;
  34648. $42 = $41;
  34649. $43 = HEAP32[$42>>2]|0;
  34650. $44 = (($41) + 4)|0;
  34651. $45 = $44;
  34652. $46 = HEAP32[$45>>2]|0;
  34653. $arglist_next9 = ((($40)) + 8|0);
  34654. HEAP32[$2>>2] = $arglist_next9;
  34655. $47 = $0;
  34656. $48 = $47;
  34657. HEAP32[$48>>2] = $43;
  34658. $49 = (($47) + 4)|0;
  34659. $50 = $49;
  34660. HEAP32[$50>>2] = $46;
  34661. break L1;
  34662. break;
  34663. }
  34664. case 13: {
  34665. $arglist_current11 = HEAP32[$2>>2]|0;
  34666. $51 = $arglist_current11;
  34667. $52 = ((0) + 4|0);
  34668. $expanded56 = $52;
  34669. $expanded55 = (($expanded56) - 1)|0;
  34670. $53 = (($51) + ($expanded55))|0;
  34671. $54 = ((0) + 4|0);
  34672. $expanded60 = $54;
  34673. $expanded59 = (($expanded60) - 1)|0;
  34674. $expanded58 = $expanded59 ^ -1;
  34675. $55 = $53 & $expanded58;
  34676. $56 = $55;
  34677. $57 = HEAP32[$56>>2]|0;
  34678. $arglist_next12 = ((($56)) + 4|0);
  34679. HEAP32[$2>>2] = $arglist_next12;
  34680. $58 = $57&65535;
  34681. $59 = $58 << 16 >> 16;
  34682. $60 = ($59|0)<(0);
  34683. $61 = $60 << 31 >> 31;
  34684. $62 = $0;
  34685. $63 = $62;
  34686. HEAP32[$63>>2] = $59;
  34687. $64 = (($62) + 4)|0;
  34688. $65 = $64;
  34689. HEAP32[$65>>2] = $61;
  34690. break L1;
  34691. break;
  34692. }
  34693. case 14: {
  34694. $arglist_current14 = HEAP32[$2>>2]|0;
  34695. $66 = $arglist_current14;
  34696. $67 = ((0) + 4|0);
  34697. $expanded63 = $67;
  34698. $expanded62 = (($expanded63) - 1)|0;
  34699. $68 = (($66) + ($expanded62))|0;
  34700. $69 = ((0) + 4|0);
  34701. $expanded67 = $69;
  34702. $expanded66 = (($expanded67) - 1)|0;
  34703. $expanded65 = $expanded66 ^ -1;
  34704. $70 = $68 & $expanded65;
  34705. $71 = $70;
  34706. $72 = HEAP32[$71>>2]|0;
  34707. $arglist_next15 = ((($71)) + 4|0);
  34708. HEAP32[$2>>2] = $arglist_next15;
  34709. $$mask31 = $72 & 65535;
  34710. $73 = $0;
  34711. $74 = $73;
  34712. HEAP32[$74>>2] = $$mask31;
  34713. $75 = (($73) + 4)|0;
  34714. $76 = $75;
  34715. HEAP32[$76>>2] = 0;
  34716. break L1;
  34717. break;
  34718. }
  34719. case 15: {
  34720. $arglist_current17 = HEAP32[$2>>2]|0;
  34721. $77 = $arglist_current17;
  34722. $78 = ((0) + 4|0);
  34723. $expanded70 = $78;
  34724. $expanded69 = (($expanded70) - 1)|0;
  34725. $79 = (($77) + ($expanded69))|0;
  34726. $80 = ((0) + 4|0);
  34727. $expanded74 = $80;
  34728. $expanded73 = (($expanded74) - 1)|0;
  34729. $expanded72 = $expanded73 ^ -1;
  34730. $81 = $79 & $expanded72;
  34731. $82 = $81;
  34732. $83 = HEAP32[$82>>2]|0;
  34733. $arglist_next18 = ((($82)) + 4|0);
  34734. HEAP32[$2>>2] = $arglist_next18;
  34735. $84 = $83&255;
  34736. $85 = $84 << 24 >> 24;
  34737. $86 = ($85|0)<(0);
  34738. $87 = $86 << 31 >> 31;
  34739. $88 = $0;
  34740. $89 = $88;
  34741. HEAP32[$89>>2] = $85;
  34742. $90 = (($88) + 4)|0;
  34743. $91 = $90;
  34744. HEAP32[$91>>2] = $87;
  34745. break L1;
  34746. break;
  34747. }
  34748. case 16: {
  34749. $arglist_current20 = HEAP32[$2>>2]|0;
  34750. $92 = $arglist_current20;
  34751. $93 = ((0) + 4|0);
  34752. $expanded77 = $93;
  34753. $expanded76 = (($expanded77) - 1)|0;
  34754. $94 = (($92) + ($expanded76))|0;
  34755. $95 = ((0) + 4|0);
  34756. $expanded81 = $95;
  34757. $expanded80 = (($expanded81) - 1)|0;
  34758. $expanded79 = $expanded80 ^ -1;
  34759. $96 = $94 & $expanded79;
  34760. $97 = $96;
  34761. $98 = HEAP32[$97>>2]|0;
  34762. $arglist_next21 = ((($97)) + 4|0);
  34763. HEAP32[$2>>2] = $arglist_next21;
  34764. $$mask = $98 & 255;
  34765. $99 = $0;
  34766. $100 = $99;
  34767. HEAP32[$100>>2] = $$mask;
  34768. $101 = (($99) + 4)|0;
  34769. $102 = $101;
  34770. HEAP32[$102>>2] = 0;
  34771. break L1;
  34772. break;
  34773. }
  34774. case 17: {
  34775. $arglist_current23 = HEAP32[$2>>2]|0;
  34776. $103 = $arglist_current23;
  34777. $104 = ((0) + 8|0);
  34778. $expanded84 = $104;
  34779. $expanded83 = (($expanded84) - 1)|0;
  34780. $105 = (($103) + ($expanded83))|0;
  34781. $106 = ((0) + 8|0);
  34782. $expanded88 = $106;
  34783. $expanded87 = (($expanded88) - 1)|0;
  34784. $expanded86 = $expanded87 ^ -1;
  34785. $107 = $105 & $expanded86;
  34786. $108 = $107;
  34787. $109 = +HEAPF64[$108>>3];
  34788. $arglist_next24 = ((($108)) + 8|0);
  34789. HEAP32[$2>>2] = $arglist_next24;
  34790. HEAPF64[$0>>3] = $109;
  34791. break L1;
  34792. break;
  34793. }
  34794. case 18: {
  34795. $arglist_current26 = HEAP32[$2>>2]|0;
  34796. $110 = $arglist_current26;
  34797. $111 = ((0) + 8|0);
  34798. $expanded91 = $111;
  34799. $expanded90 = (($expanded91) - 1)|0;
  34800. $112 = (($110) + ($expanded90))|0;
  34801. $113 = ((0) + 8|0);
  34802. $expanded95 = $113;
  34803. $expanded94 = (($expanded95) - 1)|0;
  34804. $expanded93 = $expanded94 ^ -1;
  34805. $114 = $112 & $expanded93;
  34806. $115 = $114;
  34807. $116 = +HEAPF64[$115>>3];
  34808. $arglist_next27 = ((($115)) + 8|0);
  34809. HEAP32[$2>>2] = $arglist_next27;
  34810. HEAPF64[$0>>3] = $116;
  34811. break L1;
  34812. break;
  34813. }
  34814. default: {
  34815. break L1;
  34816. }
  34817. }
  34818. } while(0);
  34819. }
  34820. } while(0);
  34821. return;
  34822. }
  34823. function _fmt_x($0,$1,$2,$3) {
  34824. $0 = $0|0;
  34825. $1 = $1|0;
  34826. $2 = $2|0;
  34827. $3 = $3|0;
  34828. 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;
  34829. var sp = 0;
  34830. sp = STACKTOP;
  34831. $4 = ($0|0)==(0);
  34832. $5 = ($1|0)==(0);
  34833. $6 = $4 & $5;
  34834. if ($6) {
  34835. $$05$lcssa = $2;
  34836. } else {
  34837. $$056 = $2;$15 = $1;$8 = $0;
  34838. while(1) {
  34839. $7 = $8 & 15;
  34840. $9 = (17870 + ($7)|0);
  34841. $10 = HEAP8[$9>>0]|0;
  34842. $11 = $10&255;
  34843. $12 = $11 | $3;
  34844. $13 = $12&255;
  34845. $14 = ((($$056)) + -1|0);
  34846. HEAP8[$14>>0] = $13;
  34847. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  34848. $17 = tempRet0;
  34849. $18 = ($16|0)==(0);
  34850. $19 = ($17|0)==(0);
  34851. $20 = $18 & $19;
  34852. if ($20) {
  34853. $$05$lcssa = $14;
  34854. break;
  34855. } else {
  34856. $$056 = $14;$15 = $17;$8 = $16;
  34857. }
  34858. }
  34859. }
  34860. return ($$05$lcssa|0);
  34861. }
  34862. function _fmt_o($0,$1,$2) {
  34863. $0 = $0|0;
  34864. $1 = $1|0;
  34865. $2 = $2|0;
  34866. 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;
  34867. sp = STACKTOP;
  34868. $3 = ($0|0)==(0);
  34869. $4 = ($1|0)==(0);
  34870. $5 = $3 & $4;
  34871. if ($5) {
  34872. $$0$lcssa = $2;
  34873. } else {
  34874. $$06 = $2;$11 = $1;$7 = $0;
  34875. while(1) {
  34876. $6 = $7&255;
  34877. $8 = $6 & 7;
  34878. $9 = $8 | 48;
  34879. $10 = ((($$06)) + -1|0);
  34880. HEAP8[$10>>0] = $9;
  34881. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  34882. $13 = tempRet0;
  34883. $14 = ($12|0)==(0);
  34884. $15 = ($13|0)==(0);
  34885. $16 = $14 & $15;
  34886. if ($16) {
  34887. $$0$lcssa = $10;
  34888. break;
  34889. } else {
  34890. $$06 = $10;$11 = $13;$7 = $12;
  34891. }
  34892. }
  34893. }
  34894. return ($$0$lcssa|0);
  34895. }
  34896. function _fmt_u($0,$1,$2) {
  34897. $0 = $0|0;
  34898. $1 = $1|0;
  34899. $2 = $2|0;
  34900. 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;
  34901. 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;
  34902. sp = STACKTOP;
  34903. $3 = ($1>>>0)>(0);
  34904. $4 = ($0>>>0)>(4294967295);
  34905. $5 = ($1|0)==(0);
  34906. $6 = $5 & $4;
  34907. $7 = $3 | $6;
  34908. if ($7) {
  34909. $$0914 = $2;$8 = $0;$9 = $1;
  34910. while(1) {
  34911. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  34912. $11 = tempRet0;
  34913. $12 = $10&255;
  34914. $13 = $12 | 48;
  34915. $14 = ((($$0914)) + -1|0);
  34916. HEAP8[$14>>0] = $13;
  34917. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  34918. $16 = tempRet0;
  34919. $17 = ($9>>>0)>(9);
  34920. $18 = ($8>>>0)>(4294967295);
  34921. $19 = ($9|0)==(9);
  34922. $20 = $19 & $18;
  34923. $21 = $17 | $20;
  34924. if ($21) {
  34925. $$0914 = $14;$8 = $15;$9 = $16;
  34926. } else {
  34927. break;
  34928. }
  34929. }
  34930. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  34931. } else {
  34932. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  34933. }
  34934. $22 = ($$010$lcssa$off0|0)==(0);
  34935. if ($22) {
  34936. $$1$lcssa = $$09$lcssa;
  34937. } else {
  34938. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  34939. while(1) {
  34940. $23 = (($$012>>>0) % 10)&-1;
  34941. $24 = $23 | 48;
  34942. $25 = $24&255;
  34943. $26 = ((($$111)) + -1|0);
  34944. HEAP8[$26>>0] = $25;
  34945. $27 = (($$012>>>0) / 10)&-1;
  34946. $28 = ($$012>>>0)<(10);
  34947. if ($28) {
  34948. $$1$lcssa = $26;
  34949. break;
  34950. } else {
  34951. $$012 = $27;$$111 = $26;
  34952. }
  34953. }
  34954. }
  34955. return ($$1$lcssa|0);
  34956. }
  34957. function _strerror($0) {
  34958. $0 = $0|0;
  34959. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  34960. sp = STACKTOP;
  34961. $1 = (___pthread_self_105()|0);
  34962. $2 = ((($1)) + 188|0);
  34963. $3 = HEAP32[$2>>2]|0;
  34964. $4 = (___strerror_l($0,$3)|0);
  34965. return ($4|0);
  34966. }
  34967. function _memchr($0,$1,$2) {
  34968. $0 = $0|0;
  34969. $1 = $1|0;
  34970. $2 = $2|0;
  34971. 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;
  34972. 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;
  34973. 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;
  34974. sp = STACKTOP;
  34975. $3 = $1 & 255;
  34976. $4 = $0;
  34977. $5 = $4 & 3;
  34978. $6 = ($5|0)!=(0);
  34979. $7 = ($2|0)!=(0);
  34980. $or$cond53 = $7 & $6;
  34981. L1: do {
  34982. if ($or$cond53) {
  34983. $8 = $1&255;
  34984. $$03555 = $0;$$03654 = $2;
  34985. while(1) {
  34986. $9 = HEAP8[$$03555>>0]|0;
  34987. $10 = ($9<<24>>24)==($8<<24>>24);
  34988. if ($10) {
  34989. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  34990. label = 6;
  34991. break L1;
  34992. }
  34993. $11 = ((($$03555)) + 1|0);
  34994. $12 = (($$03654) + -1)|0;
  34995. $13 = $11;
  34996. $14 = $13 & 3;
  34997. $15 = ($14|0)!=(0);
  34998. $16 = ($12|0)!=(0);
  34999. $or$cond = $16 & $15;
  35000. if ($or$cond) {
  35001. $$03555 = $11;$$03654 = $12;
  35002. } else {
  35003. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  35004. label = 5;
  35005. break;
  35006. }
  35007. }
  35008. } else {
  35009. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  35010. label = 5;
  35011. }
  35012. } while(0);
  35013. if ((label|0) == 5) {
  35014. if ($$lcssa) {
  35015. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  35016. label = 6;
  35017. } else {
  35018. $$2 = $$035$lcssa;$$3 = 0;
  35019. }
  35020. }
  35021. L8: do {
  35022. if ((label|0) == 6) {
  35023. $17 = HEAP8[$$035$lcssa65>>0]|0;
  35024. $18 = $1&255;
  35025. $19 = ($17<<24>>24)==($18<<24>>24);
  35026. if ($19) {
  35027. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  35028. } else {
  35029. $20 = Math_imul($3, 16843009)|0;
  35030. $21 = ($$036$lcssa64>>>0)>(3);
  35031. L11: do {
  35032. if ($21) {
  35033. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  35034. while(1) {
  35035. $22 = HEAP32[$$046>>2]|0;
  35036. $23 = $22 ^ $20;
  35037. $24 = (($23) + -16843009)|0;
  35038. $25 = $23 & -2139062144;
  35039. $26 = $25 ^ -2139062144;
  35040. $27 = $26 & $24;
  35041. $28 = ($27|0)==(0);
  35042. if (!($28)) {
  35043. break;
  35044. }
  35045. $29 = ((($$046)) + 4|0);
  35046. $30 = (($$13745) + -4)|0;
  35047. $31 = ($30>>>0)>(3);
  35048. if ($31) {
  35049. $$046 = $29;$$13745 = $30;
  35050. } else {
  35051. $$0$lcssa = $29;$$137$lcssa = $30;
  35052. label = 11;
  35053. break L11;
  35054. }
  35055. }
  35056. $$140 = $$046;$$23839 = $$13745;
  35057. } else {
  35058. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  35059. label = 11;
  35060. }
  35061. } while(0);
  35062. if ((label|0) == 11) {
  35063. $32 = ($$137$lcssa|0)==(0);
  35064. if ($32) {
  35065. $$2 = $$0$lcssa;$$3 = 0;
  35066. break;
  35067. } else {
  35068. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  35069. }
  35070. }
  35071. while(1) {
  35072. $33 = HEAP8[$$140>>0]|0;
  35073. $34 = ($33<<24>>24)==($18<<24>>24);
  35074. if ($34) {
  35075. $$2 = $$140;$$3 = $$23839;
  35076. break L8;
  35077. }
  35078. $35 = ((($$140)) + 1|0);
  35079. $36 = (($$23839) + -1)|0;
  35080. $37 = ($36|0)==(0);
  35081. if ($37) {
  35082. $$2 = $35;$$3 = 0;
  35083. break;
  35084. } else {
  35085. $$140 = $35;$$23839 = $36;
  35086. }
  35087. }
  35088. }
  35089. }
  35090. } while(0);
  35091. $38 = ($$3|0)!=(0);
  35092. $39 = $38 ? $$2 : 0;
  35093. return ($39|0);
  35094. }
  35095. function _pad_674($0,$1,$2,$3,$4) {
  35096. $0 = $0|0;
  35097. $1 = $1|0;
  35098. $2 = $2|0;
  35099. $3 = $3|0;
  35100. $4 = $4|0;
  35101. 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;
  35102. sp = STACKTOP;
  35103. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  35104. $5 = sp;
  35105. $6 = $4 & 73728;
  35106. $7 = ($6|0)==(0);
  35107. $8 = ($2|0)>($3|0);
  35108. $or$cond = $8 & $7;
  35109. if ($or$cond) {
  35110. $9 = (($2) - ($3))|0;
  35111. $10 = ($9>>>0)<(256);
  35112. $11 = $10 ? $9 : 256;
  35113. _memset(($5|0),($1|0),($11|0))|0;
  35114. $12 = ($9>>>0)>(255);
  35115. if ($12) {
  35116. $13 = (($2) - ($3))|0;
  35117. $$011 = $9;
  35118. while(1) {
  35119. _out($0,$5,256);
  35120. $14 = (($$011) + -256)|0;
  35121. $15 = ($14>>>0)>(255);
  35122. if ($15) {
  35123. $$011 = $14;
  35124. } else {
  35125. break;
  35126. }
  35127. }
  35128. $16 = $13 & 255;
  35129. $$0$lcssa = $16;
  35130. } else {
  35131. $$0$lcssa = $9;
  35132. }
  35133. _out($0,$5,$$0$lcssa);
  35134. }
  35135. STACKTOP = sp;return;
  35136. }
  35137. function _wctomb($0,$1) {
  35138. $0 = $0|0;
  35139. $1 = $1|0;
  35140. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  35141. sp = STACKTOP;
  35142. $2 = ($0|0)==(0|0);
  35143. if ($2) {
  35144. $$0 = 0;
  35145. } else {
  35146. $3 = (_wcrtomb($0,$1,0)|0);
  35147. $$0 = $3;
  35148. }
  35149. return ($$0|0);
  35150. }
  35151. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  35152. $0 = $0|0;
  35153. $1 = +$1;
  35154. $2 = $2|0;
  35155. $3 = $3|0;
  35156. $4 = $4|0;
  35157. $5 = $5|0;
  35158. 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;
  35159. 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;
  35160. 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;
  35161. 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;
  35162. 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;
  35163. 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;
  35164. 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;
  35165. 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;
  35166. 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;
  35167. 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;
  35168. 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;
  35169. 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;
  35170. 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;
  35171. 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;
  35172. 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;
  35173. 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;
  35174. 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;
  35175. 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;
  35176. 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;
  35177. 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;
  35178. 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;
  35179. 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;
  35180. 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;
  35181. 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;
  35182. 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;
  35183. 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;
  35184. sp = STACKTOP;
  35185. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  35186. $6 = sp + 8|0;
  35187. $7 = sp;
  35188. $8 = sp + 524|0;
  35189. $9 = $8;
  35190. $10 = sp + 512|0;
  35191. HEAP32[$7>>2] = 0;
  35192. $11 = ((($10)) + 12|0);
  35193. (___DOUBLE_BITS_675($1)|0);
  35194. $12 = tempRet0;
  35195. $13 = ($12|0)<(0);
  35196. if ($13) {
  35197. $14 = -$1;
  35198. $$0471 = $14;$$0520 = 1;$$0521 = 17839;
  35199. } else {
  35200. $15 = $4 & 2048;
  35201. $16 = ($15|0)==(0);
  35202. $17 = $4 & 1;
  35203. $18 = ($17|0)==(0);
  35204. $$ = $18 ? (17840) : (17845);
  35205. $$$ = $16 ? $$ : (17842);
  35206. $19 = $4 & 2049;
  35207. $narrow = ($19|0)!=(0);
  35208. $$534$ = $narrow&1;
  35209. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  35210. }
  35211. (___DOUBLE_BITS_675($$0471)|0);
  35212. $20 = tempRet0;
  35213. $21 = $20 & 2146435072;
  35214. $22 = ($21>>>0)<(2146435072);
  35215. $23 = (0)<(0);
  35216. $24 = ($21|0)==(2146435072);
  35217. $25 = $24 & $23;
  35218. $26 = $22 | $25;
  35219. do {
  35220. if ($26) {
  35221. $35 = (+_frexpl($$0471,$7));
  35222. $36 = $35 * 2.0;
  35223. $37 = $36 != 0.0;
  35224. if ($37) {
  35225. $38 = HEAP32[$7>>2]|0;
  35226. $39 = (($38) + -1)|0;
  35227. HEAP32[$7>>2] = $39;
  35228. }
  35229. $40 = $5 | 32;
  35230. $41 = ($40|0)==(97);
  35231. if ($41) {
  35232. $42 = $5 & 32;
  35233. $43 = ($42|0)==(0);
  35234. $44 = ((($$0521)) + 9|0);
  35235. $$0521$ = $43 ? $$0521 : $44;
  35236. $45 = $$0520 | 2;
  35237. $46 = ($3>>>0)>(11);
  35238. $47 = (12 - ($3))|0;
  35239. $48 = ($47|0)==(0);
  35240. $49 = $46 | $48;
  35241. do {
  35242. if ($49) {
  35243. $$1472 = $36;
  35244. } else {
  35245. $$0509582 = 8.0;$$1508583 = $47;
  35246. while(1) {
  35247. $50 = (($$1508583) + -1)|0;
  35248. $51 = $$0509582 * 16.0;
  35249. $52 = ($50|0)==(0);
  35250. if ($52) {
  35251. break;
  35252. } else {
  35253. $$0509582 = $51;$$1508583 = $50;
  35254. }
  35255. }
  35256. $53 = HEAP8[$$0521$>>0]|0;
  35257. $54 = ($53<<24>>24)==(45);
  35258. if ($54) {
  35259. $55 = -$36;
  35260. $56 = $55 - $51;
  35261. $57 = $51 + $56;
  35262. $58 = -$57;
  35263. $$1472 = $58;
  35264. break;
  35265. } else {
  35266. $59 = $36 + $51;
  35267. $60 = $59 - $51;
  35268. $$1472 = $60;
  35269. break;
  35270. }
  35271. }
  35272. } while(0);
  35273. $61 = HEAP32[$7>>2]|0;
  35274. $62 = ($61|0)<(0);
  35275. $63 = (0 - ($61))|0;
  35276. $64 = $62 ? $63 : $61;
  35277. $65 = ($64|0)<(0);
  35278. $66 = $65 << 31 >> 31;
  35279. $67 = (_fmt_u($64,$66,$11)|0);
  35280. $68 = ($67|0)==($11|0);
  35281. if ($68) {
  35282. $69 = ((($10)) + 11|0);
  35283. HEAP8[$69>>0] = 48;
  35284. $$0511 = $69;
  35285. } else {
  35286. $$0511 = $67;
  35287. }
  35288. $70 = $61 >> 31;
  35289. $71 = $70 & 2;
  35290. $72 = (($71) + 43)|0;
  35291. $73 = $72&255;
  35292. $74 = ((($$0511)) + -1|0);
  35293. HEAP8[$74>>0] = $73;
  35294. $75 = (($5) + 15)|0;
  35295. $76 = $75&255;
  35296. $77 = ((($$0511)) + -2|0);
  35297. HEAP8[$77>>0] = $76;
  35298. $notrhs = ($3|0)<(1);
  35299. $78 = $4 & 8;
  35300. $79 = ($78|0)==(0);
  35301. $$0523 = $8;$$2473 = $$1472;
  35302. while(1) {
  35303. $80 = (~~(($$2473)));
  35304. $81 = (17870 + ($80)|0);
  35305. $82 = HEAP8[$81>>0]|0;
  35306. $83 = $82&255;
  35307. $84 = $83 | $42;
  35308. $85 = $84&255;
  35309. $86 = ((($$0523)) + 1|0);
  35310. HEAP8[$$0523>>0] = $85;
  35311. $87 = (+($80|0));
  35312. $88 = $$2473 - $87;
  35313. $89 = $88 * 16.0;
  35314. $90 = $86;
  35315. $91 = (($90) - ($9))|0;
  35316. $92 = ($91|0)==(1);
  35317. if ($92) {
  35318. $notlhs = $89 == 0.0;
  35319. $or$cond3$not = $notrhs & $notlhs;
  35320. $or$cond = $79 & $or$cond3$not;
  35321. if ($or$cond) {
  35322. $$1524 = $86;
  35323. } else {
  35324. $93 = ((($$0523)) + 2|0);
  35325. HEAP8[$86>>0] = 46;
  35326. $$1524 = $93;
  35327. }
  35328. } else {
  35329. $$1524 = $86;
  35330. }
  35331. $94 = $89 != 0.0;
  35332. if ($94) {
  35333. $$0523 = $$1524;$$2473 = $89;
  35334. } else {
  35335. break;
  35336. }
  35337. }
  35338. $95 = ($3|0)!=(0);
  35339. $96 = $77;
  35340. $97 = $11;
  35341. $98 = $$1524;
  35342. $99 = (($98) - ($9))|0;
  35343. $100 = (($97) - ($96))|0;
  35344. $101 = (($99) + -2)|0;
  35345. $102 = ($101|0)<($3|0);
  35346. $or$cond537 = $95 & $102;
  35347. $103 = (($3) + 2)|0;
  35348. $$pn = $or$cond537 ? $103 : $99;
  35349. $$0525 = (($100) + ($45))|0;
  35350. $104 = (($$0525) + ($$pn))|0;
  35351. _pad_674($0,32,$2,$104,$4);
  35352. _out($0,$$0521$,$45);
  35353. $105 = $4 ^ 65536;
  35354. _pad_674($0,48,$2,$104,$105);
  35355. _out($0,$8,$99);
  35356. $106 = (($$pn) - ($99))|0;
  35357. _pad_674($0,48,$106,0,0);
  35358. _out($0,$77,$100);
  35359. $107 = $4 ^ 8192;
  35360. _pad_674($0,32,$2,$104,$107);
  35361. $$sink562 = $104;
  35362. break;
  35363. }
  35364. $108 = ($3|0)<(0);
  35365. $$539 = $108 ? 6 : $3;
  35366. if ($37) {
  35367. $109 = $36 * 268435456.0;
  35368. $110 = HEAP32[$7>>2]|0;
  35369. $111 = (($110) + -28)|0;
  35370. HEAP32[$7>>2] = $111;
  35371. $$3 = $109;$$pr = $111;
  35372. } else {
  35373. $$pre = HEAP32[$7>>2]|0;
  35374. $$3 = $36;$$pr = $$pre;
  35375. }
  35376. $112 = ($$pr|0)<(0);
  35377. $113 = ((($6)) + 288|0);
  35378. $$556 = $112 ? $6 : $113;
  35379. $$0498 = $$556;$$4 = $$3;
  35380. while(1) {
  35381. $114 = (~~(($$4))>>>0);
  35382. HEAP32[$$0498>>2] = $114;
  35383. $115 = ((($$0498)) + 4|0);
  35384. $116 = (+($114>>>0));
  35385. $117 = $$4 - $116;
  35386. $118 = $117 * 1.0E+9;
  35387. $119 = $118 != 0.0;
  35388. if ($119) {
  35389. $$0498 = $115;$$4 = $118;
  35390. } else {
  35391. break;
  35392. }
  35393. }
  35394. $120 = ($$pr|0)>(0);
  35395. if ($120) {
  35396. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  35397. while(1) {
  35398. $121 = ($122|0)<(29);
  35399. $123 = $121 ? $122 : 29;
  35400. $$0488653 = ((($$1499660)) + -4|0);
  35401. $124 = ($$0488653>>>0)<($$1482661>>>0);
  35402. if ($124) {
  35403. $$2483$ph = $$1482661;
  35404. } else {
  35405. $$0488655 = $$0488653;$$0497654 = 0;
  35406. while(1) {
  35407. $125 = HEAP32[$$0488655>>2]|0;
  35408. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  35409. $127 = tempRet0;
  35410. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  35411. $129 = tempRet0;
  35412. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  35413. $131 = tempRet0;
  35414. HEAP32[$$0488655>>2] = $130;
  35415. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  35416. $133 = tempRet0;
  35417. $$0488 = ((($$0488655)) + -4|0);
  35418. $134 = ($$0488>>>0)<($$1482661>>>0);
  35419. if ($134) {
  35420. break;
  35421. } else {
  35422. $$0488655 = $$0488;$$0497654 = $132;
  35423. }
  35424. }
  35425. $135 = ($132|0)==(0);
  35426. if ($135) {
  35427. $$2483$ph = $$1482661;
  35428. } else {
  35429. $136 = ((($$1482661)) + -4|0);
  35430. HEAP32[$136>>2] = $132;
  35431. $$2483$ph = $136;
  35432. }
  35433. }
  35434. $$2500 = $$1499660;
  35435. while(1) {
  35436. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  35437. if (!($137)) {
  35438. break;
  35439. }
  35440. $138 = ((($$2500)) + -4|0);
  35441. $139 = HEAP32[$138>>2]|0;
  35442. $140 = ($139|0)==(0);
  35443. if ($140) {
  35444. $$2500 = $138;
  35445. } else {
  35446. break;
  35447. }
  35448. }
  35449. $141 = HEAP32[$7>>2]|0;
  35450. $142 = (($141) - ($123))|0;
  35451. HEAP32[$7>>2] = $142;
  35452. $143 = ($142|0)>(0);
  35453. if ($143) {
  35454. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  35455. } else {
  35456. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  35457. break;
  35458. }
  35459. }
  35460. } else {
  35461. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  35462. }
  35463. $144 = ($$pr564|0)<(0);
  35464. if ($144) {
  35465. $145 = (($$539) + 25)|0;
  35466. $146 = (($145|0) / 9)&-1;
  35467. $147 = (($146) + 1)|0;
  35468. $148 = ($40|0)==(102);
  35469. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  35470. while(1) {
  35471. $149 = (0 - ($150))|0;
  35472. $151 = ($149|0)<(9);
  35473. $152 = $151 ? $149 : 9;
  35474. $153 = ($$3484648>>>0)<($$3501647>>>0);
  35475. if ($153) {
  35476. $157 = 1 << $152;
  35477. $158 = (($157) + -1)|0;
  35478. $159 = 1000000000 >>> $152;
  35479. $$0487642 = 0;$$1489641 = $$3484648;
  35480. while(1) {
  35481. $160 = HEAP32[$$1489641>>2]|0;
  35482. $161 = $160 & $158;
  35483. $162 = $160 >>> $152;
  35484. $163 = (($162) + ($$0487642))|0;
  35485. HEAP32[$$1489641>>2] = $163;
  35486. $164 = Math_imul($161, $159)|0;
  35487. $165 = ((($$1489641)) + 4|0);
  35488. $166 = ($165>>>0)<($$3501647>>>0);
  35489. if ($166) {
  35490. $$0487642 = $164;$$1489641 = $165;
  35491. } else {
  35492. break;
  35493. }
  35494. }
  35495. $167 = HEAP32[$$3484648>>2]|0;
  35496. $168 = ($167|0)==(0);
  35497. $169 = ((($$3484648)) + 4|0);
  35498. $$$3484 = $168 ? $169 : $$3484648;
  35499. $170 = ($164|0)==(0);
  35500. if ($170) {
  35501. $$$3484692 = $$$3484;$$4502 = $$3501647;
  35502. } else {
  35503. $171 = ((($$3501647)) + 4|0);
  35504. HEAP32[$$3501647>>2] = $164;
  35505. $$$3484692 = $$$3484;$$4502 = $171;
  35506. }
  35507. } else {
  35508. $154 = HEAP32[$$3484648>>2]|0;
  35509. $155 = ($154|0)==(0);
  35510. $156 = ((($$3484648)) + 4|0);
  35511. $$$3484691 = $155 ? $156 : $$3484648;
  35512. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  35513. }
  35514. $172 = $148 ? $$556 : $$$3484692;
  35515. $173 = $$4502;
  35516. $174 = $172;
  35517. $175 = (($173) - ($174))|0;
  35518. $176 = $175 >> 2;
  35519. $177 = ($176|0)>($147|0);
  35520. $178 = (($172) + ($147<<2)|0);
  35521. $$$4502 = $177 ? $178 : $$4502;
  35522. $179 = HEAP32[$7>>2]|0;
  35523. $180 = (($179) + ($152))|0;
  35524. HEAP32[$7>>2] = $180;
  35525. $181 = ($180|0)<(0);
  35526. if ($181) {
  35527. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  35528. } else {
  35529. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  35530. break;
  35531. }
  35532. }
  35533. } else {
  35534. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  35535. }
  35536. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  35537. $183 = $$556;
  35538. if ($182) {
  35539. $184 = $$3484$lcssa;
  35540. $185 = (($183) - ($184))|0;
  35541. $186 = $185 >> 2;
  35542. $187 = ($186*9)|0;
  35543. $188 = HEAP32[$$3484$lcssa>>2]|0;
  35544. $189 = ($188>>>0)<(10);
  35545. if ($189) {
  35546. $$1515 = $187;
  35547. } else {
  35548. $$0514637 = $187;$$0530636 = 10;
  35549. while(1) {
  35550. $190 = ($$0530636*10)|0;
  35551. $191 = (($$0514637) + 1)|0;
  35552. $192 = ($188>>>0)<($190>>>0);
  35553. if ($192) {
  35554. $$1515 = $191;
  35555. break;
  35556. } else {
  35557. $$0514637 = $191;$$0530636 = $190;
  35558. }
  35559. }
  35560. }
  35561. } else {
  35562. $$1515 = 0;
  35563. }
  35564. $193 = ($40|0)!=(102);
  35565. $194 = $193 ? $$1515 : 0;
  35566. $195 = (($$539) - ($194))|0;
  35567. $196 = ($40|0)==(103);
  35568. $197 = ($$539|0)!=(0);
  35569. $198 = $197 & $196;
  35570. $$neg = $198 << 31 >> 31;
  35571. $199 = (($195) + ($$neg))|0;
  35572. $200 = $$3501$lcssa;
  35573. $201 = (($200) - ($183))|0;
  35574. $202 = $201 >> 2;
  35575. $203 = ($202*9)|0;
  35576. $204 = (($203) + -9)|0;
  35577. $205 = ($199|0)<($204|0);
  35578. if ($205) {
  35579. $206 = ((($$556)) + 4|0);
  35580. $207 = (($199) + 9216)|0;
  35581. $208 = (($207|0) / 9)&-1;
  35582. $209 = (($208) + -1024)|0;
  35583. $210 = (($206) + ($209<<2)|0);
  35584. $211 = (($207|0) % 9)&-1;
  35585. $$0527629 = (($211) + 1)|0;
  35586. $212 = ($$0527629|0)<(9);
  35587. if ($212) {
  35588. $$0527631 = $$0527629;$$1531630 = 10;
  35589. while(1) {
  35590. $213 = ($$1531630*10)|0;
  35591. $$0527 = (($$0527631) + 1)|0;
  35592. $exitcond = ($$0527|0)==(9);
  35593. if ($exitcond) {
  35594. $$1531$lcssa = $213;
  35595. break;
  35596. } else {
  35597. $$0527631 = $$0527;$$1531630 = $213;
  35598. }
  35599. }
  35600. } else {
  35601. $$1531$lcssa = 10;
  35602. }
  35603. $214 = HEAP32[$210>>2]|0;
  35604. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  35605. $216 = ($215|0)==(0);
  35606. $217 = ((($210)) + 4|0);
  35607. $218 = ($217|0)==($$3501$lcssa|0);
  35608. $or$cond541 = $218 & $216;
  35609. if ($or$cond541) {
  35610. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  35611. } else {
  35612. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  35613. $220 = $219 & 1;
  35614. $221 = ($220|0)==(0);
  35615. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  35616. $222 = (($$1531$lcssa|0) / 2)&-1;
  35617. $223 = ($215>>>0)<($222>>>0);
  35618. $224 = ($215|0)==($222|0);
  35619. $or$cond544 = $218 & $224;
  35620. $$559 = $or$cond544 ? 1.0 : 1.5;
  35621. $$$559 = $223 ? 0.5 : $$559;
  35622. $225 = ($$0520|0)==(0);
  35623. if ($225) {
  35624. $$1467 = $$$559;$$1469 = $$542;
  35625. } else {
  35626. $226 = HEAP8[$$0521>>0]|0;
  35627. $227 = ($226<<24>>24)==(45);
  35628. $228 = -$$542;
  35629. $229 = -$$$559;
  35630. $$$542 = $227 ? $228 : $$542;
  35631. $$$$559 = $227 ? $229 : $$$559;
  35632. $$1467 = $$$$559;$$1469 = $$$542;
  35633. }
  35634. $230 = (($214) - ($215))|0;
  35635. HEAP32[$210>>2] = $230;
  35636. $231 = $$1469 + $$1467;
  35637. $232 = $231 != $$1469;
  35638. if ($232) {
  35639. $233 = (($230) + ($$1531$lcssa))|0;
  35640. HEAP32[$210>>2] = $233;
  35641. $234 = ($233>>>0)>(999999999);
  35642. if ($234) {
  35643. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  35644. while(1) {
  35645. $235 = ((($$sink545622)) + -4|0);
  35646. HEAP32[$$sink545622>>2] = 0;
  35647. $236 = ($235>>>0)<($$5486623>>>0);
  35648. if ($236) {
  35649. $237 = ((($$5486623)) + -4|0);
  35650. HEAP32[$237>>2] = 0;
  35651. $$6 = $237;
  35652. } else {
  35653. $$6 = $$5486623;
  35654. }
  35655. $238 = HEAP32[$235>>2]|0;
  35656. $239 = (($238) + 1)|0;
  35657. HEAP32[$235>>2] = $239;
  35658. $240 = ($239>>>0)>(999999999);
  35659. if ($240) {
  35660. $$5486623 = $$6;$$sink545622 = $235;
  35661. } else {
  35662. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  35663. break;
  35664. }
  35665. }
  35666. } else {
  35667. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  35668. }
  35669. $241 = $$5486$lcssa;
  35670. $242 = (($183) - ($241))|0;
  35671. $243 = $242 >> 2;
  35672. $244 = ($243*9)|0;
  35673. $245 = HEAP32[$$5486$lcssa>>2]|0;
  35674. $246 = ($245>>>0)<(10);
  35675. if ($246) {
  35676. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  35677. } else {
  35678. $$2516618 = $244;$$2532617 = 10;
  35679. while(1) {
  35680. $247 = ($$2532617*10)|0;
  35681. $248 = (($$2516618) + 1)|0;
  35682. $249 = ($245>>>0)<($247>>>0);
  35683. if ($249) {
  35684. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  35685. break;
  35686. } else {
  35687. $$2516618 = $248;$$2532617 = $247;
  35688. }
  35689. }
  35690. }
  35691. } else {
  35692. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  35693. }
  35694. }
  35695. $250 = ((($$4492)) + 4|0);
  35696. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  35697. $$$3501 = $251 ? $250 : $$3501$lcssa;
  35698. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  35699. } else {
  35700. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  35701. }
  35702. $$7505 = $$7505$ph;
  35703. while(1) {
  35704. $252 = ($$7505>>>0)>($$9$ph>>>0);
  35705. if (!($252)) {
  35706. $$lcssa673 = 0;
  35707. break;
  35708. }
  35709. $253 = ((($$7505)) + -4|0);
  35710. $254 = HEAP32[$253>>2]|0;
  35711. $255 = ($254|0)==(0);
  35712. if ($255) {
  35713. $$7505 = $253;
  35714. } else {
  35715. $$lcssa673 = 1;
  35716. break;
  35717. }
  35718. }
  35719. $256 = (0 - ($$5519$ph))|0;
  35720. do {
  35721. if ($196) {
  35722. $not$ = $197 ^ 1;
  35723. $257 = $not$&1;
  35724. $$539$ = (($257) + ($$539))|0;
  35725. $258 = ($$539$|0)>($$5519$ph|0);
  35726. $259 = ($$5519$ph|0)>(-5);
  35727. $or$cond6 = $258 & $259;
  35728. if ($or$cond6) {
  35729. $260 = (($5) + -1)|0;
  35730. $$neg567 = (($$539$) + -1)|0;
  35731. $261 = (($$neg567) - ($$5519$ph))|0;
  35732. $$0479 = $260;$$2476 = $261;
  35733. } else {
  35734. $262 = (($5) + -2)|0;
  35735. $263 = (($$539$) + -1)|0;
  35736. $$0479 = $262;$$2476 = $263;
  35737. }
  35738. $264 = $4 & 8;
  35739. $265 = ($264|0)==(0);
  35740. if ($265) {
  35741. if ($$lcssa673) {
  35742. $266 = ((($$7505)) + -4|0);
  35743. $267 = HEAP32[$266>>2]|0;
  35744. $268 = ($267|0)==(0);
  35745. if ($268) {
  35746. $$2529 = 9;
  35747. } else {
  35748. $269 = (($267>>>0) % 10)&-1;
  35749. $270 = ($269|0)==(0);
  35750. if ($270) {
  35751. $$1528614 = 0;$$3533613 = 10;
  35752. while(1) {
  35753. $271 = ($$3533613*10)|0;
  35754. $272 = (($$1528614) + 1)|0;
  35755. $273 = (($267>>>0) % ($271>>>0))&-1;
  35756. $274 = ($273|0)==(0);
  35757. if ($274) {
  35758. $$1528614 = $272;$$3533613 = $271;
  35759. } else {
  35760. $$2529 = $272;
  35761. break;
  35762. }
  35763. }
  35764. } else {
  35765. $$2529 = 0;
  35766. }
  35767. }
  35768. } else {
  35769. $$2529 = 9;
  35770. }
  35771. $275 = $$0479 | 32;
  35772. $276 = ($275|0)==(102);
  35773. $277 = $$7505;
  35774. $278 = (($277) - ($183))|0;
  35775. $279 = $278 >> 2;
  35776. $280 = ($279*9)|0;
  35777. $281 = (($280) + -9)|0;
  35778. if ($276) {
  35779. $282 = (($281) - ($$2529))|0;
  35780. $283 = ($282|0)>(0);
  35781. $$546 = $283 ? $282 : 0;
  35782. $284 = ($$2476|0)<($$546|0);
  35783. $$2476$$547 = $284 ? $$2476 : $$546;
  35784. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  35785. break;
  35786. } else {
  35787. $285 = (($281) + ($$5519$ph))|0;
  35788. $286 = (($285) - ($$2529))|0;
  35789. $287 = ($286|0)>(0);
  35790. $$548 = $287 ? $286 : 0;
  35791. $288 = ($$2476|0)<($$548|0);
  35792. $$2476$$549 = $288 ? $$2476 : $$548;
  35793. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  35794. break;
  35795. }
  35796. } else {
  35797. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  35798. }
  35799. } else {
  35800. $$pre689 = $4 & 8;
  35801. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  35802. }
  35803. } while(0);
  35804. $289 = $$3477 | $$pre$phi690Z2D;
  35805. $290 = ($289|0)!=(0);
  35806. $291 = $290&1;
  35807. $292 = $$1480 | 32;
  35808. $293 = ($292|0)==(102);
  35809. if ($293) {
  35810. $294 = ($$5519$ph|0)>(0);
  35811. $295 = $294 ? $$5519$ph : 0;
  35812. $$2513 = 0;$$pn566 = $295;
  35813. } else {
  35814. $296 = ($$5519$ph|0)<(0);
  35815. $297 = $296 ? $256 : $$5519$ph;
  35816. $298 = ($297|0)<(0);
  35817. $299 = $298 << 31 >> 31;
  35818. $300 = (_fmt_u($297,$299,$11)|0);
  35819. $301 = $11;
  35820. $302 = $300;
  35821. $303 = (($301) - ($302))|0;
  35822. $304 = ($303|0)<(2);
  35823. if ($304) {
  35824. $$1512607 = $300;
  35825. while(1) {
  35826. $305 = ((($$1512607)) + -1|0);
  35827. HEAP8[$305>>0] = 48;
  35828. $306 = $305;
  35829. $307 = (($301) - ($306))|0;
  35830. $308 = ($307|0)<(2);
  35831. if ($308) {
  35832. $$1512607 = $305;
  35833. } else {
  35834. $$1512$lcssa = $305;
  35835. break;
  35836. }
  35837. }
  35838. } else {
  35839. $$1512$lcssa = $300;
  35840. }
  35841. $309 = $$5519$ph >> 31;
  35842. $310 = $309 & 2;
  35843. $311 = (($310) + 43)|0;
  35844. $312 = $311&255;
  35845. $313 = ((($$1512$lcssa)) + -1|0);
  35846. HEAP8[$313>>0] = $312;
  35847. $314 = $$1480&255;
  35848. $315 = ((($$1512$lcssa)) + -2|0);
  35849. HEAP8[$315>>0] = $314;
  35850. $316 = $315;
  35851. $317 = (($301) - ($316))|0;
  35852. $$2513 = $315;$$pn566 = $317;
  35853. }
  35854. $318 = (($$0520) + 1)|0;
  35855. $319 = (($318) + ($$3477))|0;
  35856. $$1526 = (($319) + ($291))|0;
  35857. $320 = (($$1526) + ($$pn566))|0;
  35858. _pad_674($0,32,$2,$320,$4);
  35859. _out($0,$$0521,$$0520);
  35860. $321 = $4 ^ 65536;
  35861. _pad_674($0,48,$2,$320,$321);
  35862. if ($293) {
  35863. $322 = ($$9$ph>>>0)>($$556>>>0);
  35864. $$0496$$9 = $322 ? $$556 : $$9$ph;
  35865. $323 = ((($8)) + 9|0);
  35866. $324 = $323;
  35867. $325 = ((($8)) + 8|0);
  35868. $$5493597 = $$0496$$9;
  35869. while(1) {
  35870. $326 = HEAP32[$$5493597>>2]|0;
  35871. $327 = (_fmt_u($326,0,$323)|0);
  35872. $328 = ($$5493597|0)==($$0496$$9|0);
  35873. if ($328) {
  35874. $334 = ($327|0)==($323|0);
  35875. if ($334) {
  35876. HEAP8[$325>>0] = 48;
  35877. $$1465 = $325;
  35878. } else {
  35879. $$1465 = $327;
  35880. }
  35881. } else {
  35882. $329 = ($327>>>0)>($8>>>0);
  35883. if ($329) {
  35884. $330 = $327;
  35885. $331 = (($330) - ($9))|0;
  35886. _memset(($8|0),48,($331|0))|0;
  35887. $$0464594 = $327;
  35888. while(1) {
  35889. $332 = ((($$0464594)) + -1|0);
  35890. $333 = ($332>>>0)>($8>>>0);
  35891. if ($333) {
  35892. $$0464594 = $332;
  35893. } else {
  35894. $$1465 = $332;
  35895. break;
  35896. }
  35897. }
  35898. } else {
  35899. $$1465 = $327;
  35900. }
  35901. }
  35902. $335 = $$1465;
  35903. $336 = (($324) - ($335))|0;
  35904. _out($0,$$1465,$336);
  35905. $337 = ((($$5493597)) + 4|0);
  35906. $338 = ($337>>>0)>($$556>>>0);
  35907. if ($338) {
  35908. break;
  35909. } else {
  35910. $$5493597 = $337;
  35911. }
  35912. }
  35913. $339 = ($289|0)==(0);
  35914. if (!($339)) {
  35915. _out($0,17886,1);
  35916. }
  35917. $340 = ($337>>>0)<($$7505>>>0);
  35918. $341 = ($$3477|0)>(0);
  35919. $342 = $340 & $341;
  35920. if ($342) {
  35921. $$4478590 = $$3477;$$6494589 = $337;
  35922. while(1) {
  35923. $343 = HEAP32[$$6494589>>2]|0;
  35924. $344 = (_fmt_u($343,0,$323)|0);
  35925. $345 = ($344>>>0)>($8>>>0);
  35926. if ($345) {
  35927. $346 = $344;
  35928. $347 = (($346) - ($9))|0;
  35929. _memset(($8|0),48,($347|0))|0;
  35930. $$0463584 = $344;
  35931. while(1) {
  35932. $348 = ((($$0463584)) + -1|0);
  35933. $349 = ($348>>>0)>($8>>>0);
  35934. if ($349) {
  35935. $$0463584 = $348;
  35936. } else {
  35937. $$0463$lcssa = $348;
  35938. break;
  35939. }
  35940. }
  35941. } else {
  35942. $$0463$lcssa = $344;
  35943. }
  35944. $350 = ($$4478590|0)<(9);
  35945. $351 = $350 ? $$4478590 : 9;
  35946. _out($0,$$0463$lcssa,$351);
  35947. $352 = ((($$6494589)) + 4|0);
  35948. $353 = (($$4478590) + -9)|0;
  35949. $354 = ($352>>>0)<($$7505>>>0);
  35950. $355 = ($$4478590|0)>(9);
  35951. $356 = $354 & $355;
  35952. if ($356) {
  35953. $$4478590 = $353;$$6494589 = $352;
  35954. } else {
  35955. $$4478$lcssa = $353;
  35956. break;
  35957. }
  35958. }
  35959. } else {
  35960. $$4478$lcssa = $$3477;
  35961. }
  35962. $357 = (($$4478$lcssa) + 9)|0;
  35963. _pad_674($0,48,$357,9,0);
  35964. } else {
  35965. $358 = ((($$9$ph)) + 4|0);
  35966. $$7505$ = $$lcssa673 ? $$7505 : $358;
  35967. $359 = ($$3477|0)>(-1);
  35968. if ($359) {
  35969. $360 = ((($8)) + 9|0);
  35970. $361 = ($$pre$phi690Z2D|0)==(0);
  35971. $362 = $360;
  35972. $363 = (0 - ($9))|0;
  35973. $364 = ((($8)) + 8|0);
  35974. $$5602 = $$3477;$$7495601 = $$9$ph;
  35975. while(1) {
  35976. $365 = HEAP32[$$7495601>>2]|0;
  35977. $366 = (_fmt_u($365,0,$360)|0);
  35978. $367 = ($366|0)==($360|0);
  35979. if ($367) {
  35980. HEAP8[$364>>0] = 48;
  35981. $$0 = $364;
  35982. } else {
  35983. $$0 = $366;
  35984. }
  35985. $368 = ($$7495601|0)==($$9$ph|0);
  35986. do {
  35987. if ($368) {
  35988. $372 = ((($$0)) + 1|0);
  35989. _out($0,$$0,1);
  35990. $373 = ($$5602|0)<(1);
  35991. $or$cond554 = $361 & $373;
  35992. if ($or$cond554) {
  35993. $$2 = $372;
  35994. break;
  35995. }
  35996. _out($0,17886,1);
  35997. $$2 = $372;
  35998. } else {
  35999. $369 = ($$0>>>0)>($8>>>0);
  36000. if (!($369)) {
  36001. $$2 = $$0;
  36002. break;
  36003. }
  36004. $scevgep684 = (($$0) + ($363)|0);
  36005. $scevgep684685 = $scevgep684;
  36006. _memset(($8|0),48,($scevgep684685|0))|0;
  36007. $$1598 = $$0;
  36008. while(1) {
  36009. $370 = ((($$1598)) + -1|0);
  36010. $371 = ($370>>>0)>($8>>>0);
  36011. if ($371) {
  36012. $$1598 = $370;
  36013. } else {
  36014. $$2 = $370;
  36015. break;
  36016. }
  36017. }
  36018. }
  36019. } while(0);
  36020. $374 = $$2;
  36021. $375 = (($362) - ($374))|0;
  36022. $376 = ($$5602|0)>($375|0);
  36023. $377 = $376 ? $375 : $$5602;
  36024. _out($0,$$2,$377);
  36025. $378 = (($$5602) - ($375))|0;
  36026. $379 = ((($$7495601)) + 4|0);
  36027. $380 = ($379>>>0)<($$7505$>>>0);
  36028. $381 = ($378|0)>(-1);
  36029. $382 = $380 & $381;
  36030. if ($382) {
  36031. $$5602 = $378;$$7495601 = $379;
  36032. } else {
  36033. $$5$lcssa = $378;
  36034. break;
  36035. }
  36036. }
  36037. } else {
  36038. $$5$lcssa = $$3477;
  36039. }
  36040. $383 = (($$5$lcssa) + 18)|0;
  36041. _pad_674($0,48,$383,18,0);
  36042. $384 = $11;
  36043. $385 = $$2513;
  36044. $386 = (($384) - ($385))|0;
  36045. _out($0,$$2513,$386);
  36046. }
  36047. $387 = $4 ^ 8192;
  36048. _pad_674($0,32,$2,$320,$387);
  36049. $$sink562 = $320;
  36050. } else {
  36051. $27 = $5 & 32;
  36052. $28 = ($27|0)!=(0);
  36053. $29 = $28 ? 17858 : 17862;
  36054. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  36055. $31 = $28 ? 19789 : 17866;
  36056. $$0510 = $30 ? $31 : $29;
  36057. $32 = (($$0520) + 3)|0;
  36058. $33 = $4 & -65537;
  36059. _pad_674($0,32,$2,$32,$33);
  36060. _out($0,$$0521,$$0520);
  36061. _out($0,$$0510,3);
  36062. $34 = $4 ^ 8192;
  36063. _pad_674($0,32,$2,$32,$34);
  36064. $$sink562 = $32;
  36065. }
  36066. } while(0);
  36067. $388 = ($$sink562|0)<($2|0);
  36068. $$555 = $388 ? $2 : $$sink562;
  36069. STACKTOP = sp;return ($$555|0);
  36070. }
  36071. function ___DOUBLE_BITS_675($0) {
  36072. $0 = +$0;
  36073. var $1 = 0, $2 = 0, label = 0, sp = 0;
  36074. sp = STACKTOP;
  36075. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  36076. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  36077. tempRet0 = ($2);
  36078. return ($1|0);
  36079. }
  36080. function _frexpl($0,$1) {
  36081. $0 = +$0;
  36082. $1 = $1|0;
  36083. var $2 = 0.0, label = 0, sp = 0;
  36084. sp = STACKTOP;
  36085. $2 = (+_frexp($0,$1));
  36086. return (+$2);
  36087. }
  36088. function _frexp($0,$1) {
  36089. $0 = +$0;
  36090. $1 = $1|0;
  36091. 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;
  36092. var sp = 0;
  36093. sp = STACKTOP;
  36094. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  36095. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  36096. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  36097. $5 = tempRet0;
  36098. $6 = $4&65535;
  36099. $trunc$clear = $6 & 2047;
  36100. switch ($trunc$clear<<16>>16) {
  36101. case 0: {
  36102. $7 = $0 != 0.0;
  36103. if ($7) {
  36104. $8 = $0 * 1.8446744073709552E+19;
  36105. $9 = (+_frexp($8,$1));
  36106. $10 = HEAP32[$1>>2]|0;
  36107. $11 = (($10) + -64)|0;
  36108. $$016 = $9;$storemerge = $11;
  36109. } else {
  36110. $$016 = $0;$storemerge = 0;
  36111. }
  36112. HEAP32[$1>>2] = $storemerge;
  36113. $$0 = $$016;
  36114. break;
  36115. }
  36116. case 2047: {
  36117. $$0 = $0;
  36118. break;
  36119. }
  36120. default: {
  36121. $12 = $4 & 2047;
  36122. $13 = (($12) + -1022)|0;
  36123. HEAP32[$1>>2] = $13;
  36124. $14 = $3 & -2146435073;
  36125. $15 = $14 | 1071644672;
  36126. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  36127. $$0 = $16;
  36128. }
  36129. }
  36130. return (+$$0);
  36131. }
  36132. function _wcrtomb($0,$1,$2) {
  36133. $0 = $0|0;
  36134. $1 = $1|0;
  36135. $2 = $2|0;
  36136. 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;
  36137. 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;
  36138. 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;
  36139. sp = STACKTOP;
  36140. $3 = ($0|0)==(0|0);
  36141. do {
  36142. if ($3) {
  36143. $$0 = 1;
  36144. } else {
  36145. $4 = ($1>>>0)<(128);
  36146. if ($4) {
  36147. $5 = $1&255;
  36148. HEAP8[$0>>0] = $5;
  36149. $$0 = 1;
  36150. break;
  36151. }
  36152. $6 = (___pthread_self_448()|0);
  36153. $7 = ((($6)) + 188|0);
  36154. $8 = HEAP32[$7>>2]|0;
  36155. $9 = HEAP32[$8>>2]|0;
  36156. $not$ = ($9|0)==(0|0);
  36157. if ($not$) {
  36158. $10 = $1 & -128;
  36159. $11 = ($10|0)==(57216);
  36160. if ($11) {
  36161. $13 = $1&255;
  36162. HEAP8[$0>>0] = $13;
  36163. $$0 = 1;
  36164. break;
  36165. } else {
  36166. $12 = (___errno_location()|0);
  36167. HEAP32[$12>>2] = 84;
  36168. $$0 = -1;
  36169. break;
  36170. }
  36171. }
  36172. $14 = ($1>>>0)<(2048);
  36173. if ($14) {
  36174. $15 = $1 >>> 6;
  36175. $16 = $15 | 192;
  36176. $17 = $16&255;
  36177. $18 = ((($0)) + 1|0);
  36178. HEAP8[$0>>0] = $17;
  36179. $19 = $1 & 63;
  36180. $20 = $19 | 128;
  36181. $21 = $20&255;
  36182. HEAP8[$18>>0] = $21;
  36183. $$0 = 2;
  36184. break;
  36185. }
  36186. $22 = ($1>>>0)<(55296);
  36187. $23 = $1 & -8192;
  36188. $24 = ($23|0)==(57344);
  36189. $or$cond = $22 | $24;
  36190. if ($or$cond) {
  36191. $25 = $1 >>> 12;
  36192. $26 = $25 | 224;
  36193. $27 = $26&255;
  36194. $28 = ((($0)) + 1|0);
  36195. HEAP8[$0>>0] = $27;
  36196. $29 = $1 >>> 6;
  36197. $30 = $29 & 63;
  36198. $31 = $30 | 128;
  36199. $32 = $31&255;
  36200. $33 = ((($0)) + 2|0);
  36201. HEAP8[$28>>0] = $32;
  36202. $34 = $1 & 63;
  36203. $35 = $34 | 128;
  36204. $36 = $35&255;
  36205. HEAP8[$33>>0] = $36;
  36206. $$0 = 3;
  36207. break;
  36208. }
  36209. $37 = (($1) + -65536)|0;
  36210. $38 = ($37>>>0)<(1048576);
  36211. if ($38) {
  36212. $39 = $1 >>> 18;
  36213. $40 = $39 | 240;
  36214. $41 = $40&255;
  36215. $42 = ((($0)) + 1|0);
  36216. HEAP8[$0>>0] = $41;
  36217. $43 = $1 >>> 12;
  36218. $44 = $43 & 63;
  36219. $45 = $44 | 128;
  36220. $46 = $45&255;
  36221. $47 = ((($0)) + 2|0);
  36222. HEAP8[$42>>0] = $46;
  36223. $48 = $1 >>> 6;
  36224. $49 = $48 & 63;
  36225. $50 = $49 | 128;
  36226. $51 = $50&255;
  36227. $52 = ((($0)) + 3|0);
  36228. HEAP8[$47>>0] = $51;
  36229. $53 = $1 & 63;
  36230. $54 = $53 | 128;
  36231. $55 = $54&255;
  36232. HEAP8[$52>>0] = $55;
  36233. $$0 = 4;
  36234. break;
  36235. } else {
  36236. $56 = (___errno_location()|0);
  36237. HEAP32[$56>>2] = 84;
  36238. $$0 = -1;
  36239. break;
  36240. }
  36241. }
  36242. } while(0);
  36243. return ($$0|0);
  36244. }
  36245. function ___pthread_self_448() {
  36246. var $0 = 0, label = 0, sp = 0;
  36247. sp = STACKTOP;
  36248. $0 = (_pthread_self()|0);
  36249. return ($0|0);
  36250. }
  36251. function ___pthread_self_105() {
  36252. var $0 = 0, label = 0, sp = 0;
  36253. sp = STACKTOP;
  36254. $0 = (_pthread_self()|0);
  36255. return ($0|0);
  36256. }
  36257. function ___strerror_l($0,$1) {
  36258. $0 = $0|0;
  36259. $1 = $1|0;
  36260. 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;
  36261. var label = 0, sp = 0;
  36262. sp = STACKTOP;
  36263. $$016 = 0;
  36264. while(1) {
  36265. $3 = (17888 + ($$016)|0);
  36266. $4 = HEAP8[$3>>0]|0;
  36267. $5 = $4&255;
  36268. $6 = ($5|0)==($0|0);
  36269. if ($6) {
  36270. label = 2;
  36271. break;
  36272. }
  36273. $7 = (($$016) + 1)|0;
  36274. $8 = ($7|0)==(87);
  36275. if ($8) {
  36276. $$01214 = 17976;$$115 = 87;
  36277. label = 5;
  36278. break;
  36279. } else {
  36280. $$016 = $7;
  36281. }
  36282. }
  36283. if ((label|0) == 2) {
  36284. $2 = ($$016|0)==(0);
  36285. if ($2) {
  36286. $$012$lcssa = 17976;
  36287. } else {
  36288. $$01214 = 17976;$$115 = $$016;
  36289. label = 5;
  36290. }
  36291. }
  36292. if ((label|0) == 5) {
  36293. while(1) {
  36294. label = 0;
  36295. $$113 = $$01214;
  36296. while(1) {
  36297. $9 = HEAP8[$$113>>0]|0;
  36298. $10 = ($9<<24>>24)==(0);
  36299. $11 = ((($$113)) + 1|0);
  36300. if ($10) {
  36301. break;
  36302. } else {
  36303. $$113 = $11;
  36304. }
  36305. }
  36306. $12 = (($$115) + -1)|0;
  36307. $13 = ($12|0)==(0);
  36308. if ($13) {
  36309. $$012$lcssa = $11;
  36310. break;
  36311. } else {
  36312. $$01214 = $11;$$115 = $12;
  36313. label = 5;
  36314. }
  36315. }
  36316. }
  36317. $14 = ((($1)) + 20|0);
  36318. $15 = HEAP32[$14>>2]|0;
  36319. $16 = (___lctrans($$012$lcssa,$15)|0);
  36320. return ($16|0);
  36321. }
  36322. function ___lctrans($0,$1) {
  36323. $0 = $0|0;
  36324. $1 = $1|0;
  36325. var $2 = 0, label = 0, sp = 0;
  36326. sp = STACKTOP;
  36327. $2 = (___lctrans_impl($0,$1)|0);
  36328. return ($2|0);
  36329. }
  36330. function ___lctrans_impl($0,$1) {
  36331. $0 = $0|0;
  36332. $1 = $1|0;
  36333. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  36334. sp = STACKTOP;
  36335. $2 = ($1|0)==(0|0);
  36336. if ($2) {
  36337. $$0 = 0;
  36338. } else {
  36339. $3 = HEAP32[$1>>2]|0;
  36340. $4 = ((($1)) + 4|0);
  36341. $5 = HEAP32[$4>>2]|0;
  36342. $6 = (___mo_lookup($3,$5,$0)|0);
  36343. $$0 = $6;
  36344. }
  36345. $7 = ($$0|0)!=(0|0);
  36346. $8 = $7 ? $$0 : $0;
  36347. return ($8|0);
  36348. }
  36349. function ___mo_lookup($0,$1,$2) {
  36350. $0 = $0|0;
  36351. $1 = $1|0;
  36352. $2 = $2|0;
  36353. 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;
  36354. 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;
  36355. 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;
  36356. 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;
  36357. sp = STACKTOP;
  36358. $3 = HEAP32[$0>>2]|0;
  36359. $4 = (($3) + 1794895138)|0;
  36360. $5 = ((($0)) + 8|0);
  36361. $6 = HEAP32[$5>>2]|0;
  36362. $7 = (_swapc($6,$4)|0);
  36363. $8 = ((($0)) + 12|0);
  36364. $9 = HEAP32[$8>>2]|0;
  36365. $10 = (_swapc($9,$4)|0);
  36366. $11 = ((($0)) + 16|0);
  36367. $12 = HEAP32[$11>>2]|0;
  36368. $13 = (_swapc($12,$4)|0);
  36369. $14 = $1 >>> 2;
  36370. $15 = ($7>>>0)<($14>>>0);
  36371. L1: do {
  36372. if ($15) {
  36373. $16 = $7 << 2;
  36374. $17 = (($1) - ($16))|0;
  36375. $18 = ($10>>>0)<($17>>>0);
  36376. $19 = ($13>>>0)<($17>>>0);
  36377. $or$cond = $18 & $19;
  36378. if ($or$cond) {
  36379. $20 = $13 | $10;
  36380. $21 = $20 & 3;
  36381. $22 = ($21|0)==(0);
  36382. if ($22) {
  36383. $23 = $10 >>> 2;
  36384. $24 = $13 >>> 2;
  36385. $$090 = 0;$$094 = $7;
  36386. while(1) {
  36387. $25 = $$094 >>> 1;
  36388. $26 = (($$090) + ($25))|0;
  36389. $27 = $26 << 1;
  36390. $28 = (($27) + ($23))|0;
  36391. $29 = (($0) + ($28<<2)|0);
  36392. $30 = HEAP32[$29>>2]|0;
  36393. $31 = (_swapc($30,$4)|0);
  36394. $32 = (($28) + 1)|0;
  36395. $33 = (($0) + ($32<<2)|0);
  36396. $34 = HEAP32[$33>>2]|0;
  36397. $35 = (_swapc($34,$4)|0);
  36398. $36 = ($35>>>0)<($1>>>0);
  36399. $37 = (($1) - ($35))|0;
  36400. $38 = ($31>>>0)<($37>>>0);
  36401. $or$cond102 = $36 & $38;
  36402. if (!($or$cond102)) {
  36403. $$4 = 0;
  36404. break L1;
  36405. }
  36406. $39 = (($35) + ($31))|0;
  36407. $40 = (($0) + ($39)|0);
  36408. $41 = HEAP8[$40>>0]|0;
  36409. $42 = ($41<<24>>24)==(0);
  36410. if (!($42)) {
  36411. $$4 = 0;
  36412. break L1;
  36413. }
  36414. $43 = (($0) + ($35)|0);
  36415. $44 = (_strcmp($2,$43)|0);
  36416. $45 = ($44|0)==(0);
  36417. if ($45) {
  36418. break;
  36419. }
  36420. $62 = ($$094|0)==(1);
  36421. $63 = ($44|0)<(0);
  36422. $64 = (($$094) - ($25))|0;
  36423. $$195 = $63 ? $25 : $64;
  36424. $$191 = $63 ? $$090 : $26;
  36425. if ($62) {
  36426. $$4 = 0;
  36427. break L1;
  36428. } else {
  36429. $$090 = $$191;$$094 = $$195;
  36430. }
  36431. }
  36432. $46 = (($27) + ($24))|0;
  36433. $47 = (($0) + ($46<<2)|0);
  36434. $48 = HEAP32[$47>>2]|0;
  36435. $49 = (_swapc($48,$4)|0);
  36436. $50 = (($46) + 1)|0;
  36437. $51 = (($0) + ($50<<2)|0);
  36438. $52 = HEAP32[$51>>2]|0;
  36439. $53 = (_swapc($52,$4)|0);
  36440. $54 = ($53>>>0)<($1>>>0);
  36441. $55 = (($1) - ($53))|0;
  36442. $56 = ($49>>>0)<($55>>>0);
  36443. $or$cond104 = $54 & $56;
  36444. if ($or$cond104) {
  36445. $57 = (($0) + ($53)|0);
  36446. $58 = (($53) + ($49))|0;
  36447. $59 = (($0) + ($58)|0);
  36448. $60 = HEAP8[$59>>0]|0;
  36449. $61 = ($60<<24>>24)==(0);
  36450. $$ = $61 ? $57 : 0;
  36451. $$4 = $$;
  36452. } else {
  36453. $$4 = 0;
  36454. }
  36455. } else {
  36456. $$4 = 0;
  36457. }
  36458. } else {
  36459. $$4 = 0;
  36460. }
  36461. } else {
  36462. $$4 = 0;
  36463. }
  36464. } while(0);
  36465. return ($$4|0);
  36466. }
  36467. function _swapc($0,$1) {
  36468. $0 = $0|0;
  36469. $1 = $1|0;
  36470. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  36471. sp = STACKTOP;
  36472. $2 = ($1|0)==(0);
  36473. $3 = (_llvm_bswap_i32(($0|0))|0);
  36474. $$ = $2 ? $0 : $3;
  36475. return ($$|0);
  36476. }
  36477. function ___fwritex($0,$1,$2) {
  36478. $0 = $0|0;
  36479. $1 = $1|0;
  36480. $2 = $2|0;
  36481. 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;
  36482. 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;
  36483. var label = 0, sp = 0;
  36484. sp = STACKTOP;
  36485. $3 = ((($2)) + 16|0);
  36486. $4 = HEAP32[$3>>2]|0;
  36487. $5 = ($4|0)==(0|0);
  36488. if ($5) {
  36489. $7 = (___towrite($2)|0);
  36490. $8 = ($7|0)==(0);
  36491. if ($8) {
  36492. $$pre = HEAP32[$3>>2]|0;
  36493. $12 = $$pre;
  36494. label = 5;
  36495. } else {
  36496. $$1 = 0;
  36497. }
  36498. } else {
  36499. $6 = $4;
  36500. $12 = $6;
  36501. label = 5;
  36502. }
  36503. L5: do {
  36504. if ((label|0) == 5) {
  36505. $9 = ((($2)) + 20|0);
  36506. $10 = HEAP32[$9>>2]|0;
  36507. $11 = (($12) - ($10))|0;
  36508. $13 = ($11>>>0)<($1>>>0);
  36509. $14 = $10;
  36510. if ($13) {
  36511. $15 = ((($2)) + 36|0);
  36512. $16 = HEAP32[$15>>2]|0;
  36513. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  36514. $$1 = $17;
  36515. break;
  36516. }
  36517. $18 = ((($2)) + 75|0);
  36518. $19 = HEAP8[$18>>0]|0;
  36519. $20 = ($19<<24>>24)>(-1);
  36520. L10: do {
  36521. if ($20) {
  36522. $$038 = $1;
  36523. while(1) {
  36524. $21 = ($$038|0)==(0);
  36525. if ($21) {
  36526. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  36527. break L10;
  36528. }
  36529. $22 = (($$038) + -1)|0;
  36530. $23 = (($0) + ($22)|0);
  36531. $24 = HEAP8[$23>>0]|0;
  36532. $25 = ($24<<24>>24)==(10);
  36533. if ($25) {
  36534. break;
  36535. } else {
  36536. $$038 = $22;
  36537. }
  36538. }
  36539. $26 = ((($2)) + 36|0);
  36540. $27 = HEAP32[$26>>2]|0;
  36541. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  36542. $29 = ($28>>>0)<($$038>>>0);
  36543. if ($29) {
  36544. $$1 = $28;
  36545. break L5;
  36546. }
  36547. $30 = (($0) + ($$038)|0);
  36548. $$042 = (($1) - ($$038))|0;
  36549. $$pre47 = HEAP32[$9>>2]|0;
  36550. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  36551. } else {
  36552. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  36553. }
  36554. } while(0);
  36555. _memcpy(($31|0),($$141|0),($$143|0))|0;
  36556. $32 = HEAP32[$9>>2]|0;
  36557. $33 = (($32) + ($$143)|0);
  36558. HEAP32[$9>>2] = $33;
  36559. $34 = (($$139) + ($$143))|0;
  36560. $$1 = $34;
  36561. }
  36562. } while(0);
  36563. return ($$1|0);
  36564. }
  36565. function ___towrite($0) {
  36566. $0 = $0|0;
  36567. 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;
  36568. var $9 = 0, label = 0, sp = 0;
  36569. sp = STACKTOP;
  36570. $1 = ((($0)) + 74|0);
  36571. $2 = HEAP8[$1>>0]|0;
  36572. $3 = $2 << 24 >> 24;
  36573. $4 = (($3) + 255)|0;
  36574. $5 = $4 | $3;
  36575. $6 = $5&255;
  36576. HEAP8[$1>>0] = $6;
  36577. $7 = HEAP32[$0>>2]|0;
  36578. $8 = $7 & 8;
  36579. $9 = ($8|0)==(0);
  36580. if ($9) {
  36581. $11 = ((($0)) + 8|0);
  36582. HEAP32[$11>>2] = 0;
  36583. $12 = ((($0)) + 4|0);
  36584. HEAP32[$12>>2] = 0;
  36585. $13 = ((($0)) + 44|0);
  36586. $14 = HEAP32[$13>>2]|0;
  36587. $15 = ((($0)) + 28|0);
  36588. HEAP32[$15>>2] = $14;
  36589. $16 = ((($0)) + 20|0);
  36590. HEAP32[$16>>2] = $14;
  36591. $17 = ((($0)) + 48|0);
  36592. $18 = HEAP32[$17>>2]|0;
  36593. $19 = (($14) + ($18)|0);
  36594. $20 = ((($0)) + 16|0);
  36595. HEAP32[$20>>2] = $19;
  36596. $$0 = 0;
  36597. } else {
  36598. $10 = $7 | 32;
  36599. HEAP32[$0>>2] = $10;
  36600. $$0 = -1;
  36601. }
  36602. return ($$0|0);
  36603. }
  36604. function ___floatscan($0,$1,$2) {
  36605. $0 = $0|0;
  36606. $1 = $1|0;
  36607. $2 = $2|0;
  36608. 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;
  36609. 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;
  36610. 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;
  36611. 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;
  36612. 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;
  36613. 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;
  36614. 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;
  36615. 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;
  36616. sp = STACKTOP;
  36617. switch ($1|0) {
  36618. case 0: {
  36619. $$0105$ph = -149;$$0106$ph = 24;
  36620. label = 4;
  36621. break;
  36622. }
  36623. case 1: {
  36624. $$0105$ph = -1074;$$0106$ph = 53;
  36625. label = 4;
  36626. break;
  36627. }
  36628. case 2: {
  36629. $$0105$ph = -1074;$$0106$ph = 53;
  36630. label = 4;
  36631. break;
  36632. }
  36633. default: {
  36634. $$0114 = 0.0;
  36635. }
  36636. }
  36637. L4: do {
  36638. if ((label|0) == 4) {
  36639. $3 = ((($0)) + 4|0);
  36640. $4 = ((($0)) + 100|0);
  36641. while(1) {
  36642. $5 = HEAP32[$3>>2]|0;
  36643. $6 = HEAP32[$4>>2]|0;
  36644. $7 = ($5>>>0)<($6>>>0);
  36645. if ($7) {
  36646. $8 = ((($5)) + 1|0);
  36647. HEAP32[$3>>2] = $8;
  36648. $9 = HEAP8[$5>>0]|0;
  36649. $10 = $9&255;
  36650. $12 = $10;
  36651. } else {
  36652. $11 = (___shgetc($0)|0);
  36653. $12 = $11;
  36654. }
  36655. $13 = (_isspace($12)|0);
  36656. $14 = ($13|0)==(0);
  36657. if ($14) {
  36658. break;
  36659. }
  36660. }
  36661. L13: do {
  36662. switch ($12|0) {
  36663. case 43: case 45: {
  36664. $15 = ($12|0)==(45);
  36665. $16 = $15&1;
  36666. $17 = $16 << 1;
  36667. $18 = (1 - ($17))|0;
  36668. $19 = HEAP32[$3>>2]|0;
  36669. $20 = HEAP32[$4>>2]|0;
  36670. $21 = ($19>>>0)<($20>>>0);
  36671. if ($21) {
  36672. $22 = ((($19)) + 1|0);
  36673. HEAP32[$3>>2] = $22;
  36674. $23 = HEAP8[$19>>0]|0;
  36675. $24 = $23&255;
  36676. $$0 = $24;$$0113 = $18;
  36677. break L13;
  36678. } else {
  36679. $25 = (___shgetc($0)|0);
  36680. $$0 = $25;$$0113 = $18;
  36681. break L13;
  36682. }
  36683. break;
  36684. }
  36685. default: {
  36686. $$0 = $12;$$0113 = 1;
  36687. }
  36688. }
  36689. } while(0);
  36690. $$0107127 = 0;$$1128 = $$0;
  36691. while(1) {
  36692. $26 = $$1128 | 32;
  36693. $27 = (19780 + ($$0107127)|0);
  36694. $28 = HEAP8[$27>>0]|0;
  36695. $29 = $28 << 24 >> 24;
  36696. $30 = ($26|0)==($29|0);
  36697. if (!($30)) {
  36698. $$0107$lcssa = $$0107127;$$1$lcssa = $$1128;
  36699. break;
  36700. }
  36701. $31 = ($$0107127>>>0)<(7);
  36702. do {
  36703. if ($31) {
  36704. $32 = HEAP32[$3>>2]|0;
  36705. $33 = HEAP32[$4>>2]|0;
  36706. $34 = ($32>>>0)<($33>>>0);
  36707. if ($34) {
  36708. $35 = ((($32)) + 1|0);
  36709. HEAP32[$3>>2] = $35;
  36710. $36 = HEAP8[$32>>0]|0;
  36711. $37 = $36&255;
  36712. $$2 = $37;
  36713. break;
  36714. } else {
  36715. $38 = (___shgetc($0)|0);
  36716. $$2 = $38;
  36717. break;
  36718. }
  36719. } else {
  36720. $$2 = $$1128;
  36721. }
  36722. } while(0);
  36723. $39 = (($$0107127) + 1)|0;
  36724. $40 = ($39>>>0)<(8);
  36725. if ($40) {
  36726. $$0107127 = $39;$$1128 = $$2;
  36727. } else {
  36728. $$0107$lcssa = $39;$$1$lcssa = $$2;
  36729. break;
  36730. }
  36731. }
  36732. L29: do {
  36733. switch ($$0107$lcssa|0) {
  36734. case 8: {
  36735. break;
  36736. }
  36737. case 3: {
  36738. label = 23;
  36739. break;
  36740. }
  36741. default: {
  36742. $41 = ($$0107$lcssa>>>0)>(3);
  36743. $42 = ($2|0)!=(0);
  36744. $or$cond5 = $42 & $41;
  36745. if ($or$cond5) {
  36746. $43 = ($$0107$lcssa|0)==(8);
  36747. if ($43) {
  36748. break L29;
  36749. } else {
  36750. label = 23;
  36751. break L29;
  36752. }
  36753. }
  36754. $56 = ($$0107$lcssa|0)==(0);
  36755. L34: do {
  36756. if ($56) {
  36757. $$2109125 = 0;$$3126 = $$1$lcssa;
  36758. while(1) {
  36759. $57 = $$3126 | 32;
  36760. $58 = (19789 + ($$2109125)|0);
  36761. $59 = HEAP8[$58>>0]|0;
  36762. $60 = $59 << 24 >> 24;
  36763. $61 = ($57|0)==($60|0);
  36764. if (!($61)) {
  36765. $$3110 = $$2109125;$$5 = $$3126;
  36766. break L34;
  36767. }
  36768. $62 = ($$2109125>>>0)<(2);
  36769. do {
  36770. if ($62) {
  36771. $63 = HEAP32[$3>>2]|0;
  36772. $64 = HEAP32[$4>>2]|0;
  36773. $65 = ($63>>>0)<($64>>>0);
  36774. if ($65) {
  36775. $66 = ((($63)) + 1|0);
  36776. HEAP32[$3>>2] = $66;
  36777. $67 = HEAP8[$63>>0]|0;
  36778. $68 = $67&255;
  36779. $$4 = $68;
  36780. break;
  36781. } else {
  36782. $69 = (___shgetc($0)|0);
  36783. $$4 = $69;
  36784. break;
  36785. }
  36786. } else {
  36787. $$4 = $$3126;
  36788. }
  36789. } while(0);
  36790. $70 = (($$2109125) + 1)|0;
  36791. $71 = ($70>>>0)<(3);
  36792. if ($71) {
  36793. $$2109125 = $70;$$3126 = $$4;
  36794. } else {
  36795. $$3110 = $70;$$5 = $$4;
  36796. break;
  36797. }
  36798. }
  36799. } else {
  36800. $$3110 = $$0107$lcssa;$$5 = $$1$lcssa;
  36801. }
  36802. } while(0);
  36803. switch ($$3110|0) {
  36804. case 3: {
  36805. $72 = HEAP32[$3>>2]|0;
  36806. $73 = HEAP32[$4>>2]|0;
  36807. $74 = ($72>>>0)<($73>>>0);
  36808. if ($74) {
  36809. $75 = ((($72)) + 1|0);
  36810. HEAP32[$3>>2] = $75;
  36811. $76 = HEAP8[$72>>0]|0;
  36812. $77 = $76&255;
  36813. $80 = $77;
  36814. } else {
  36815. $78 = (___shgetc($0)|0);
  36816. $80 = $78;
  36817. }
  36818. $79 = ($80|0)==(40);
  36819. if ($79) {
  36820. $$4111 = 1;
  36821. } else {
  36822. $81 = HEAP32[$4>>2]|0;
  36823. $82 = ($81|0)==(0|0);
  36824. if ($82) {
  36825. $$0114 = nan;
  36826. break L4;
  36827. }
  36828. $83 = HEAP32[$3>>2]|0;
  36829. $84 = ((($83)) + -1|0);
  36830. HEAP32[$3>>2] = $84;
  36831. $$0114 = nan;
  36832. break L4;
  36833. }
  36834. while(1) {
  36835. $85 = HEAP32[$3>>2]|0;
  36836. $86 = HEAP32[$4>>2]|0;
  36837. $87 = ($85>>>0)<($86>>>0);
  36838. if ($87) {
  36839. $88 = ((($85)) + 1|0);
  36840. HEAP32[$3>>2] = $88;
  36841. $89 = HEAP8[$85>>0]|0;
  36842. $90 = $89&255;
  36843. $93 = $90;
  36844. } else {
  36845. $91 = (___shgetc($0)|0);
  36846. $93 = $91;
  36847. }
  36848. $92 = (($93) + -48)|0;
  36849. $94 = ($92>>>0)<(10);
  36850. $95 = (($93) + -65)|0;
  36851. $96 = ($95>>>0)<(26);
  36852. $or$cond = $94 | $96;
  36853. if (!($or$cond)) {
  36854. $97 = (($93) + -97)|0;
  36855. $98 = ($97>>>0)<(26);
  36856. $99 = ($93|0)==(95);
  36857. $or$cond7 = $99 | $98;
  36858. if (!($or$cond7)) {
  36859. break;
  36860. }
  36861. }
  36862. $111 = (($$4111) + 1)|0;
  36863. $$4111 = $111;
  36864. }
  36865. $100 = ($93|0)==(41);
  36866. if ($100) {
  36867. $$0114 = nan;
  36868. break L4;
  36869. }
  36870. $101 = HEAP32[$4>>2]|0;
  36871. $102 = ($101|0)==(0|0);
  36872. if (!($102)) {
  36873. $103 = HEAP32[$3>>2]|0;
  36874. $104 = ((($103)) + -1|0);
  36875. HEAP32[$3>>2] = $104;
  36876. }
  36877. if (!($42)) {
  36878. $106 = (___errno_location()|0);
  36879. HEAP32[$106>>2] = 22;
  36880. ___shlim($0,0);
  36881. $$0114 = 0.0;
  36882. break L4;
  36883. }
  36884. $105 = ($$4111|0)==(0);
  36885. if ($105) {
  36886. $$0114 = nan;
  36887. break L4;
  36888. } else {
  36889. $$in = $$4111;
  36890. }
  36891. while(1) {
  36892. $107 = (($$in) + -1)|0;
  36893. if (!($102)) {
  36894. $108 = HEAP32[$3>>2]|0;
  36895. $109 = ((($108)) + -1|0);
  36896. HEAP32[$3>>2] = $109;
  36897. }
  36898. $110 = ($107|0)==(0);
  36899. if ($110) {
  36900. $$0114 = nan;
  36901. break L4;
  36902. } else {
  36903. $$in = $107;
  36904. }
  36905. }
  36906. break;
  36907. }
  36908. case 0: {
  36909. $117 = ($$5|0)==(48);
  36910. if ($117) {
  36911. $118 = HEAP32[$3>>2]|0;
  36912. $119 = HEAP32[$4>>2]|0;
  36913. $120 = ($118>>>0)<($119>>>0);
  36914. if ($120) {
  36915. $121 = ((($118)) + 1|0);
  36916. HEAP32[$3>>2] = $121;
  36917. $122 = HEAP8[$118>>0]|0;
  36918. $123 = $122&255;
  36919. $126 = $123;
  36920. } else {
  36921. $124 = (___shgetc($0)|0);
  36922. $126 = $124;
  36923. }
  36924. $125 = $126 | 32;
  36925. $127 = ($125|0)==(120);
  36926. if ($127) {
  36927. $128 = (+_hexfloat($0,$$0106$ph,$$0105$ph,$$0113,$2));
  36928. $$0114 = $128;
  36929. break L4;
  36930. }
  36931. $129 = HEAP32[$4>>2]|0;
  36932. $130 = ($129|0)==(0|0);
  36933. if ($130) {
  36934. $$6 = 48;
  36935. } else {
  36936. $131 = HEAP32[$3>>2]|0;
  36937. $132 = ((($131)) + -1|0);
  36938. HEAP32[$3>>2] = $132;
  36939. $$6 = 48;
  36940. }
  36941. } else {
  36942. $$6 = $$5;
  36943. }
  36944. $133 = (+_decfloat($0,$$6,$$0106$ph,$$0105$ph,$$0113,$2));
  36945. $$0114 = $133;
  36946. break L4;
  36947. break;
  36948. }
  36949. default: {
  36950. $112 = HEAP32[$4>>2]|0;
  36951. $113 = ($112|0)==(0|0);
  36952. if (!($113)) {
  36953. $114 = HEAP32[$3>>2]|0;
  36954. $115 = ((($114)) + -1|0);
  36955. HEAP32[$3>>2] = $115;
  36956. }
  36957. $116 = (___errno_location()|0);
  36958. HEAP32[$116>>2] = 22;
  36959. ___shlim($0,0);
  36960. $$0114 = 0.0;
  36961. break L4;
  36962. }
  36963. }
  36964. }
  36965. }
  36966. } while(0);
  36967. if ((label|0) == 23) {
  36968. $44 = HEAP32[$4>>2]|0;
  36969. $45 = ($44|0)==(0|0);
  36970. if (!($45)) {
  36971. $46 = HEAP32[$3>>2]|0;
  36972. $47 = ((($46)) + -1|0);
  36973. HEAP32[$3>>2] = $47;
  36974. }
  36975. $48 = ($2|0)!=(0);
  36976. $49 = ($$0107$lcssa>>>0)>(3);
  36977. $or$cond9 = $48 & $49;
  36978. if ($or$cond9) {
  36979. $$1108 = $$0107$lcssa;
  36980. while(1) {
  36981. if (!($45)) {
  36982. $50 = HEAP32[$3>>2]|0;
  36983. $51 = ((($50)) + -1|0);
  36984. HEAP32[$3>>2] = $51;
  36985. }
  36986. $52 = (($$1108) + -1)|0;
  36987. $$old8 = ($52>>>0)>(3);
  36988. if ($$old8) {
  36989. $$1108 = $52;
  36990. } else {
  36991. break;
  36992. }
  36993. }
  36994. }
  36995. }
  36996. $53 = (+($$0113|0));
  36997. $54 = $53 * inf;
  36998. $55 = $54;
  36999. $$0114 = $55;
  37000. }
  37001. } while(0);
  37002. return (+$$0114);
  37003. }
  37004. function _hexfloat($0,$1,$2,$3,$4) {
  37005. $0 = $0|0;
  37006. $1 = $1|0;
  37007. $2 = $2|0;
  37008. $3 = $3|0;
  37009. $4 = $4|0;
  37010. 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;
  37011. 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;
  37012. 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;
  37013. 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;
  37014. 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;
  37015. 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;
  37016. 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;
  37017. 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;
  37018. 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;
  37019. 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;
  37020. 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;
  37021. 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;
  37022. 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;
  37023. var $or$cond6 = 0, label = 0, sp = 0;
  37024. sp = STACKTOP;
  37025. $5 = ((($0)) + 4|0);
  37026. $6 = HEAP32[$5>>2]|0;
  37027. $7 = ((($0)) + 100|0);
  37028. $8 = HEAP32[$7>>2]|0;
  37029. $9 = ($6>>>0)<($8>>>0);
  37030. if ($9) {
  37031. $10 = ((($6)) + 1|0);
  37032. HEAP32[$5>>2] = $10;
  37033. $11 = HEAP8[$6>>0]|0;
  37034. $12 = $11&255;
  37035. $$0 = $12;$$0142 = 0;
  37036. } else {
  37037. $13 = (___shgetc($0)|0);
  37038. $$0 = $13;$$0142 = 0;
  37039. }
  37040. L4: while(1) {
  37041. switch ($$0|0) {
  37042. case 46: {
  37043. label = 8;
  37044. break L4;
  37045. break;
  37046. }
  37047. case 48: {
  37048. break;
  37049. }
  37050. default: {
  37051. $$0146 = 0;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$0;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  37052. break L4;
  37053. }
  37054. }
  37055. $14 = HEAP32[$5>>2]|0;
  37056. $15 = HEAP32[$7>>2]|0;
  37057. $16 = ($14>>>0)<($15>>>0);
  37058. if ($16) {
  37059. $17 = ((($14)) + 1|0);
  37060. HEAP32[$5>>2] = $17;
  37061. $18 = HEAP8[$14>>0]|0;
  37062. $19 = $18&255;
  37063. $$0 = $19;$$0142 = 1;
  37064. continue;
  37065. } else {
  37066. $20 = (___shgetc($0)|0);
  37067. $$0 = $20;$$0142 = 1;
  37068. continue;
  37069. }
  37070. }
  37071. if ((label|0) == 8) {
  37072. $21 = HEAP32[$5>>2]|0;
  37073. $22 = HEAP32[$7>>2]|0;
  37074. $23 = ($21>>>0)<($22>>>0);
  37075. if ($23) {
  37076. $24 = ((($21)) + 1|0);
  37077. HEAP32[$5>>2] = $24;
  37078. $25 = HEAP8[$21>>0]|0;
  37079. $26 = $25&255;
  37080. $$1$ph = $26;
  37081. } else {
  37082. $27 = (___shgetc($0)|0);
  37083. $$1$ph = $27;
  37084. }
  37085. $28 = ($$1$ph|0)==(48);
  37086. if ($28) {
  37087. $36 = 0;$37 = 0;
  37088. while(1) {
  37089. $29 = HEAP32[$5>>2]|0;
  37090. $30 = HEAP32[$7>>2]|0;
  37091. $31 = ($29>>>0)<($30>>>0);
  37092. if ($31) {
  37093. $32 = ((($29)) + 1|0);
  37094. HEAP32[$5>>2] = $32;
  37095. $33 = HEAP8[$29>>0]|0;
  37096. $34 = $33&255;
  37097. $41 = $34;
  37098. } else {
  37099. $35 = (___shgetc($0)|0);
  37100. $41 = $35;
  37101. }
  37102. $38 = (_i64Add(($36|0),($37|0),-1,-1)|0);
  37103. $39 = tempRet0;
  37104. $40 = ($41|0)==(48);
  37105. if ($40) {
  37106. $36 = $38;$37 = $39;
  37107. } else {
  37108. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $41;$$2144 = 1;$101 = $39;$53 = 0;$55 = 0;$99 = $38;
  37109. break;
  37110. }
  37111. }
  37112. } else {
  37113. $$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;
  37114. }
  37115. }
  37116. while(1) {
  37117. $42 = (($$2) + -48)|0;
  37118. $43 = ($42>>>0)<(10);
  37119. $44 = ($$2|0)==(46);
  37120. if (!($43)) {
  37121. $45 = $$2 | 32;
  37122. $46 = (($45) + -97)|0;
  37123. $47 = ($46>>>0)<(6);
  37124. $or$cond6 = $44 | $47;
  37125. if (!($or$cond6)) {
  37126. $$2$lcssa = $$2;
  37127. break;
  37128. }
  37129. }
  37130. if ($44) {
  37131. $48 = ($$0146|0)==(0);
  37132. if ($48) {
  37133. $$1147 = 1;$$2150 = $$0148;$$2154 = $$0152;$$2157 = $$0155;$$2161 = $$0159;$$3145 = $$2144;$214 = $55;$215 = $53;$216 = $55;$217 = $53;
  37134. } else {
  37135. $$2$lcssa = 46;
  37136. break;
  37137. }
  37138. } else {
  37139. $49 = ($$2|0)>(57);
  37140. $50 = $$2 | 32;
  37141. $51 = (($50) + -87)|0;
  37142. $$0133 = $49 ? $51 : $42;
  37143. $52 = ($53|0)<(0);
  37144. $54 = ($55>>>0)<(8);
  37145. $56 = ($53|0)==(0);
  37146. $57 = $56 & $54;
  37147. $58 = $52 | $57;
  37148. do {
  37149. if ($58) {
  37150. $59 = $$0159 << 4;
  37151. $60 = (($$0133) + ($59))|0;
  37152. $$1149 = $$0148;$$1153 = $$0152;$$1156 = $$0155;$$1160 = $60;
  37153. } else {
  37154. $61 = ($53|0)<(0);
  37155. $62 = ($55>>>0)<(14);
  37156. $63 = ($53|0)==(0);
  37157. $64 = $63 & $62;
  37158. $65 = $61 | $64;
  37159. if ($65) {
  37160. $66 = (+($$0133|0));
  37161. $67 = $$0152 * 0.0625;
  37162. $68 = $67 * $66;
  37163. $69 = $$0155 + $68;
  37164. $$1149 = $$0148;$$1153 = $67;$$1156 = $69;$$1160 = $$0159;
  37165. break;
  37166. } else {
  37167. $70 = ($$0133|0)==(0);
  37168. $71 = ($$0148|0)!=(0);
  37169. $or$cond = $71 | $70;
  37170. $72 = $$0152 * 0.5;
  37171. $73 = $$0155 + $72;
  37172. $$0155$ = $or$cond ? $$0155 : $73;
  37173. $$0148$ = $or$cond ? $$0148 : 1;
  37174. $$1149 = $$0148$;$$1153 = $$0152;$$1156 = $$0155$;$$1160 = $$0159;
  37175. break;
  37176. }
  37177. }
  37178. } while(0);
  37179. $74 = (_i64Add(($55|0),($53|0),1,0)|0);
  37180. $75 = tempRet0;
  37181. $$1147 = $$0146;$$2150 = $$1149;$$2154 = $$1153;$$2157 = $$1156;$$2161 = $$1160;$$3145 = 1;$214 = $99;$215 = $101;$216 = $74;$217 = $75;
  37182. }
  37183. $76 = HEAP32[$5>>2]|0;
  37184. $77 = HEAP32[$7>>2]|0;
  37185. $78 = ($76>>>0)<($77>>>0);
  37186. if ($78) {
  37187. $79 = ((($76)) + 1|0);
  37188. HEAP32[$5>>2] = $79;
  37189. $80 = HEAP8[$76>>0]|0;
  37190. $81 = $80&255;
  37191. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $81;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  37192. continue;
  37193. } else {
  37194. $82 = (___shgetc($0)|0);
  37195. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $82;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  37196. continue;
  37197. }
  37198. }
  37199. $83 = ($$2144|0)==(0);
  37200. do {
  37201. if ($83) {
  37202. $84 = HEAP32[$7>>2]|0;
  37203. $85 = ($84|0)!=(0|0);
  37204. if ($85) {
  37205. $86 = HEAP32[$5>>2]|0;
  37206. $87 = ((($86)) + -1|0);
  37207. HEAP32[$5>>2] = $87;
  37208. }
  37209. $88 = ($4|0)==(0);
  37210. if ($88) {
  37211. ___shlim($0,0);
  37212. } else {
  37213. if ($85) {
  37214. $89 = HEAP32[$5>>2]|0;
  37215. $90 = ((($89)) + -1|0);
  37216. HEAP32[$5>>2] = $90;
  37217. }
  37218. $91 = ($$0146|0)==(0);
  37219. $92 = ($84|0)==(0|0);
  37220. $or$cond206 = $91 | $92;
  37221. if (!($or$cond206)) {
  37222. $93 = HEAP32[$5>>2]|0;
  37223. $94 = ((($93)) + -1|0);
  37224. HEAP32[$5>>2] = $94;
  37225. }
  37226. }
  37227. $95 = (+($3|0));
  37228. $96 = $95 * 0.0;
  37229. $$0165 = $96;
  37230. } else {
  37231. $97 = ($$0146|0)==(0);
  37232. $98 = $97 ? $55 : $99;
  37233. $100 = $97 ? $53 : $101;
  37234. $102 = ($53|0)<(0);
  37235. $103 = ($55>>>0)<(8);
  37236. $104 = ($53|0)==(0);
  37237. $105 = $104 & $103;
  37238. $106 = $102 | $105;
  37239. if ($106) {
  37240. $$3162183 = $$0159;$108 = $55;$109 = $53;
  37241. while(1) {
  37242. $107 = $$3162183 << 4;
  37243. $110 = (_i64Add(($108|0),($109|0),1,0)|0);
  37244. $111 = tempRet0;
  37245. $112 = ($111|0)<(0);
  37246. $113 = ($110>>>0)<(8);
  37247. $114 = ($111|0)==(0);
  37248. $115 = $114 & $113;
  37249. $116 = $112 | $115;
  37250. if ($116) {
  37251. $$3162183 = $107;$108 = $110;$109 = $111;
  37252. } else {
  37253. $$3162$lcssa = $107;
  37254. break;
  37255. }
  37256. }
  37257. } else {
  37258. $$3162$lcssa = $$0159;
  37259. }
  37260. $117 = $$2$lcssa | 32;
  37261. $118 = ($117|0)==(112);
  37262. if ($118) {
  37263. $119 = (_scanexp($0,$4)|0);
  37264. $120 = tempRet0;
  37265. $121 = ($119|0)==(0);
  37266. $122 = ($120|0)==(-2147483648);
  37267. $123 = $121 & $122;
  37268. if ($123) {
  37269. $124 = ($4|0)==(0);
  37270. if ($124) {
  37271. ___shlim($0,0);
  37272. $$0165 = 0.0;
  37273. break;
  37274. }
  37275. $125 = HEAP32[$7>>2]|0;
  37276. $126 = ($125|0)==(0|0);
  37277. if ($126) {
  37278. $137 = 0;$138 = 0;
  37279. } else {
  37280. $127 = HEAP32[$5>>2]|0;
  37281. $128 = ((($127)) + -1|0);
  37282. HEAP32[$5>>2] = $128;
  37283. $137 = 0;$138 = 0;
  37284. }
  37285. } else {
  37286. $137 = $119;$138 = $120;
  37287. }
  37288. } else {
  37289. $129 = HEAP32[$7>>2]|0;
  37290. $130 = ($129|0)==(0|0);
  37291. if ($130) {
  37292. $137 = 0;$138 = 0;
  37293. } else {
  37294. $131 = HEAP32[$5>>2]|0;
  37295. $132 = ((($131)) + -1|0);
  37296. HEAP32[$5>>2] = $132;
  37297. $137 = 0;$138 = 0;
  37298. }
  37299. }
  37300. $133 = (_bitshift64Shl(($98|0),($100|0),2)|0);
  37301. $134 = tempRet0;
  37302. $135 = (_i64Add(($133|0),($134|0),-32,-1)|0);
  37303. $136 = tempRet0;
  37304. $139 = (_i64Add(($135|0),($136|0),($137|0),($138|0))|0);
  37305. $140 = tempRet0;
  37306. $141 = ($$3162$lcssa|0)==(0);
  37307. if ($141) {
  37308. $142 = (+($3|0));
  37309. $143 = $142 * 0.0;
  37310. $$0165 = $143;
  37311. break;
  37312. }
  37313. $144 = (0 - ($2))|0;
  37314. $145 = ($144|0)<(0);
  37315. $146 = $145 << 31 >> 31;
  37316. $147 = ($140|0)>($146|0);
  37317. $148 = ($139>>>0)>($144>>>0);
  37318. $149 = ($140|0)==($146|0);
  37319. $150 = $149 & $148;
  37320. $151 = $147 | $150;
  37321. if ($151) {
  37322. $152 = (___errno_location()|0);
  37323. HEAP32[$152>>2] = 34;
  37324. $153 = (+($3|0));
  37325. $154 = $153 * 1.7976931348623157E+308;
  37326. $155 = $154 * 1.7976931348623157E+308;
  37327. $$0165 = $155;
  37328. break;
  37329. }
  37330. $156 = (($2) + -106)|0;
  37331. $157 = ($156|0)<(0);
  37332. $158 = $157 << 31 >> 31;
  37333. $159 = ($140|0)<($158|0);
  37334. $160 = ($139>>>0)<($156>>>0);
  37335. $161 = ($140|0)==($158|0);
  37336. $162 = $161 & $160;
  37337. $163 = $159 | $162;
  37338. if ($163) {
  37339. $165 = (___errno_location()|0);
  37340. HEAP32[$165>>2] = 34;
  37341. $166 = (+($3|0));
  37342. $167 = $166 * 2.2250738585072014E-308;
  37343. $168 = $167 * 2.2250738585072014E-308;
  37344. $$0165 = $168;
  37345. break;
  37346. }
  37347. $164 = ($$3162$lcssa|0)>(-1);
  37348. if ($164) {
  37349. $$3158179 = $$0155;$$4163178 = $$3162$lcssa;$173 = $139;$174 = $140;
  37350. while(1) {
  37351. $169 = !($$3158179 >= 0.5);
  37352. $170 = $$4163178 << 1;
  37353. $171 = $$3158179 + -1.0;
  37354. $not$ = $169 ^ 1;
  37355. $172 = $not$&1;
  37356. $$5164 = $170 | $172;
  37357. $$pn = $169 ? $$3158179 : $171;
  37358. $$4 = $$3158179 + $$pn;
  37359. $175 = (_i64Add(($173|0),($174|0),-1,-1)|0);
  37360. $176 = tempRet0;
  37361. $177 = ($$5164|0)>(-1);
  37362. if ($177) {
  37363. $$3158179 = $$4;$$4163178 = $$5164;$173 = $175;$174 = $176;
  37364. } else {
  37365. $$3158$lcssa = $$4;$$4163$lcssa = $$5164;$184 = $175;$185 = $176;
  37366. break;
  37367. }
  37368. }
  37369. } else {
  37370. $$3158$lcssa = $$0155;$$4163$lcssa = $$3162$lcssa;$184 = $139;$185 = $140;
  37371. }
  37372. $178 = ($1|0)<(0);
  37373. $179 = $178 << 31 >> 31;
  37374. $180 = ($2|0)<(0);
  37375. $181 = $180 << 31 >> 31;
  37376. $182 = (_i64Subtract(32,0,($2|0),($181|0))|0);
  37377. $183 = tempRet0;
  37378. $186 = (_i64Add(($182|0),($183|0),($184|0),($185|0))|0);
  37379. $187 = tempRet0;
  37380. $188 = ($179|0)>($187|0);
  37381. $189 = ($1>>>0)>($186>>>0);
  37382. $190 = ($179|0)==($187|0);
  37383. $191 = $190 & $189;
  37384. $192 = $188 | $191;
  37385. if ($192) {
  37386. $193 = ($186|0)>(0);
  37387. if ($193) {
  37388. $$0166 = $186;
  37389. label = 59;
  37390. } else {
  37391. $$0166170 = 0;$197 = 84;
  37392. label = 61;
  37393. }
  37394. } else {
  37395. $$0166 = $1;
  37396. label = 59;
  37397. }
  37398. if ((label|0) == 59) {
  37399. $194 = ($$0166|0)<(53);
  37400. $195 = (84 - ($$0166))|0;
  37401. if ($194) {
  37402. $$0166170 = $$0166;$197 = $195;
  37403. label = 61;
  37404. } else {
  37405. $$pre = (+($3|0));
  37406. $$0151 = 0.0;$$0166169 = $$0166;$$pre$phiZ2D = $$pre;
  37407. }
  37408. }
  37409. if ((label|0) == 61) {
  37410. $196 = (+($3|0));
  37411. $198 = (+_scalbn(1.0,$197));
  37412. $199 = (+_copysignl($198,$196));
  37413. $$0151 = $199;$$0166169 = $$0166170;$$pre$phiZ2D = $196;
  37414. }
  37415. $200 = ($$0166169|0)<(32);
  37416. $201 = $$3158$lcssa != 0.0;
  37417. $or$cond4 = $201 & $200;
  37418. $202 = $$4163$lcssa & 1;
  37419. $203 = ($202|0)==(0);
  37420. $or$cond168 = $203 & $or$cond4;
  37421. $204 = $or$cond168&1;
  37422. $$6 = (($204) + ($$4163$lcssa))|0;
  37423. $$5 = $or$cond168 ? 0.0 : $$3158$lcssa;
  37424. $205 = (+($$6>>>0));
  37425. $206 = $$pre$phiZ2D * $205;
  37426. $207 = $$0151 + $206;
  37427. $208 = $$pre$phiZ2D * $$5;
  37428. $209 = $208 + $207;
  37429. $210 = $209 - $$0151;
  37430. $211 = $210 != 0.0;
  37431. if (!($211)) {
  37432. $212 = (___errno_location()|0);
  37433. HEAP32[$212>>2] = 34;
  37434. }
  37435. $213 = (+_scalbnl($210,$184));
  37436. $$0165 = $213;
  37437. }
  37438. } while(0);
  37439. return (+$$0165);
  37440. }
  37441. function _decfloat($0,$1,$2,$3,$4,$5) {
  37442. $0 = $0|0;
  37443. $1 = $1|0;
  37444. $2 = $2|0;
  37445. $3 = $3|0;
  37446. $4 = $4|0;
  37447. $5 = $5|0;
  37448. 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;
  37449. 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;
  37450. 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;
  37451. 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;
  37452. 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;
  37453. 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;
  37454. 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;
  37455. 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;
  37456. 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;
  37457. 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;
  37458. 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;
  37459. 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;
  37460. 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;
  37461. 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;
  37462. 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;
  37463. 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;
  37464. 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;
  37465. 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;
  37466. 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;
  37467. 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;
  37468. 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;
  37469. 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;
  37470. 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;
  37471. 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;
  37472. 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;
  37473. var label = 0, sp = 0;
  37474. sp = STACKTOP;
  37475. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  37476. $6 = sp;
  37477. $sum = (($3) + ($2))|0;
  37478. $7 = (0 - ($sum))|0;
  37479. $8 = ((($0)) + 4|0);
  37480. $9 = ((($0)) + 100|0);
  37481. $$0329 = $1;$$0396 = 0;
  37482. L1: while(1) {
  37483. switch ($$0329|0) {
  37484. case 46: {
  37485. label = 6;
  37486. break L1;
  37487. break;
  37488. }
  37489. case 48: {
  37490. break;
  37491. }
  37492. default: {
  37493. $$0393 = 0;$$2 = $$0329;$$2398 = $$0396;$366 = 0;$367 = 0;
  37494. break L1;
  37495. }
  37496. }
  37497. $10 = HEAP32[$8>>2]|0;
  37498. $11 = HEAP32[$9>>2]|0;
  37499. $12 = ($10>>>0)<($11>>>0);
  37500. if ($12) {
  37501. $13 = ((($10)) + 1|0);
  37502. HEAP32[$8>>2] = $13;
  37503. $14 = HEAP8[$10>>0]|0;
  37504. $15 = $14&255;
  37505. $$0329 = $15;$$0396 = 1;
  37506. continue;
  37507. } else {
  37508. $16 = (___shgetc($0)|0);
  37509. $$0329 = $16;$$0396 = 1;
  37510. continue;
  37511. }
  37512. }
  37513. if ((label|0) == 6) {
  37514. $17 = HEAP32[$8>>2]|0;
  37515. $18 = HEAP32[$9>>2]|0;
  37516. $19 = ($17>>>0)<($18>>>0);
  37517. if ($19) {
  37518. $20 = ((($17)) + 1|0);
  37519. HEAP32[$8>>2] = $20;
  37520. $21 = HEAP8[$17>>0]|0;
  37521. $22 = $21&255;
  37522. $$1330$ph = $22;
  37523. } else {
  37524. $23 = (___shgetc($0)|0);
  37525. $$1330$ph = $23;
  37526. }
  37527. $24 = ($$1330$ph|0)==(48);
  37528. if ($24) {
  37529. $25 = 0;$26 = 0;
  37530. while(1) {
  37531. $27 = (_i64Add(($25|0),($26|0),-1,-1)|0);
  37532. $28 = tempRet0;
  37533. $29 = HEAP32[$8>>2]|0;
  37534. $30 = HEAP32[$9>>2]|0;
  37535. $31 = ($29>>>0)<($30>>>0);
  37536. if ($31) {
  37537. $32 = ((($29)) + 1|0);
  37538. HEAP32[$8>>2] = $32;
  37539. $33 = HEAP8[$29>>0]|0;
  37540. $34 = $33&255;
  37541. $$1330$be = $34;
  37542. } else {
  37543. $35 = (___shgetc($0)|0);
  37544. $$1330$be = $35;
  37545. }
  37546. $36 = ($$1330$be|0)==(48);
  37547. if ($36) {
  37548. $25 = $27;$26 = $28;
  37549. } else {
  37550. $$0393 = 1;$$2 = $$1330$be;$$2398 = 1;$366 = $27;$367 = $28;
  37551. break;
  37552. }
  37553. }
  37554. } else {
  37555. $$0393 = 1;$$2 = $$1330$ph;$$2398 = $$0396;$366 = 0;$367 = 0;
  37556. }
  37557. }
  37558. HEAP32[$6>>2] = 0;
  37559. $37 = (($$2) + -48)|0;
  37560. $38 = ($37>>>0)<(10);
  37561. $39 = ($$2|0)==(46);
  37562. $40 = $39 | $38;
  37563. L20: do {
  37564. if ($40) {
  37565. $41 = ((($6)) + 496|0);
  37566. $$0341513 = 0;$$0345512 = 0;$$0401509 = 0;$$1394511 = $$0393;$$3399510 = $$2398;$$3514 = $$2;$368 = $39;$369 = $37;$370 = $366;$371 = $367;$44 = 0;$45 = 0;
  37567. L22: while(1) {
  37568. do {
  37569. if ($368) {
  37570. $cond = ($$1394511|0)==(0);
  37571. if ($cond) {
  37572. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = 1;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $44;$373 = $45;$374 = $44;$375 = $45;
  37573. } else {
  37574. break L22;
  37575. }
  37576. } else {
  37577. $43 = ($$0345512|0)<(125);
  37578. $46 = (_i64Add(($44|0),($45|0),1,0)|0);
  37579. $47 = tempRet0;
  37580. $48 = ($$3514|0)!=(48);
  37581. if (!($43)) {
  37582. if (!($48)) {
  37583. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37584. break;
  37585. }
  37586. $57 = HEAP32[$41>>2]|0;
  37587. $58 = $57 | 1;
  37588. HEAP32[$41>>2] = $58;
  37589. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37590. break;
  37591. }
  37592. $$$0401 = $48 ? $46 : $$0401509;
  37593. $49 = ($$0341513|0)==(0);
  37594. $$pre = (($6) + ($$0345512<<2)|0);
  37595. if ($49) {
  37596. $$sink = $369;
  37597. } else {
  37598. $50 = HEAP32[$$pre>>2]|0;
  37599. $51 = ($50*10)|0;
  37600. $52 = (($$3514) + -48)|0;
  37601. $53 = (($52) + ($51))|0;
  37602. $$sink = $53;
  37603. }
  37604. HEAP32[$$pre>>2] = $$sink;
  37605. $54 = (($$0341513) + 1)|0;
  37606. $55 = ($54|0)==(9);
  37607. $56 = $55&1;
  37608. $$$0345 = (($56) + ($$0345512))|0;
  37609. $$413 = $55 ? 0 : $54;
  37610. $$2343 = $$413;$$2347 = $$$0345;$$2395 = $$1394511;$$2403 = $$$0401;$$4400 = 1;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37611. }
  37612. } while(0);
  37613. $59 = HEAP32[$8>>2]|0;
  37614. $60 = HEAP32[$9>>2]|0;
  37615. $61 = ($59>>>0)<($60>>>0);
  37616. if ($61) {
  37617. $62 = ((($59)) + 1|0);
  37618. HEAP32[$8>>2] = $62;
  37619. $63 = HEAP8[$59>>0]|0;
  37620. $64 = $63&255;
  37621. $$3$be = $64;
  37622. } else {
  37623. $65 = (___shgetc($0)|0);
  37624. $$3$be = $65;
  37625. }
  37626. $66 = (($$3$be) + -48)|0;
  37627. $67 = ($66>>>0)<(10);
  37628. $68 = ($$3$be|0)==(46);
  37629. $69 = $68 | $67;
  37630. if ($69) {
  37631. $$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;
  37632. } else {
  37633. $$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;
  37634. label = 29;
  37635. break L20;
  37636. }
  37637. }
  37638. $42 = ($$3399510|0)!=(0);
  37639. $$0341465 = $$0341513;$$0345469 = $$0345512;$$0401475 = $$0401509;$376 = $44;$377 = $45;$378 = $370;$379 = $371;$380 = $42;
  37640. label = 37;
  37641. } else {
  37642. $$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;
  37643. label = 29;
  37644. }
  37645. } while(0);
  37646. do {
  37647. if ((label|0) == 29) {
  37648. $70 = ($$1394$lcssa|0)==(0);
  37649. $71 = $70 ? $73 : $72;
  37650. $74 = $70 ? $76 : $75;
  37651. $77 = ($$3399$lcssa|0)!=(0);
  37652. $78 = $$3$lcssa | 32;
  37653. $79 = ($78|0)==(101);
  37654. $or$cond415 = $77 & $79;
  37655. if (!($or$cond415)) {
  37656. $94 = ($$3$lcssa|0)>(-1);
  37657. if ($94) {
  37658. $$0341465 = $$0341$lcssa;$$0345469 = $$0345$lcssa;$$0401475 = $$0401$lcssa;$376 = $73;$377 = $76;$378 = $71;$379 = $74;$380 = $77;
  37659. label = 37;
  37660. break;
  37661. } else {
  37662. $$0341464 = $$0341$lcssa;$$0345468 = $$0345$lcssa;$$0401474 = $$0401$lcssa;$381 = $73;$382 = $76;$383 = $77;$384 = $71;$385 = $74;
  37663. label = 39;
  37664. break;
  37665. }
  37666. }
  37667. $80 = (_scanexp($0,$5)|0);
  37668. $81 = tempRet0;
  37669. $82 = ($80|0)==(0);
  37670. $83 = ($81|0)==(-2147483648);
  37671. $84 = $82 & $83;
  37672. if ($84) {
  37673. $85 = ($5|0)==(0);
  37674. if ($85) {
  37675. ___shlim($0,0);
  37676. $$1 = 0.0;
  37677. break;
  37678. }
  37679. $86 = HEAP32[$9>>2]|0;
  37680. $87 = ($86|0)==(0|0);
  37681. if ($87) {
  37682. $90 = 0;$91 = 0;
  37683. } else {
  37684. $88 = HEAP32[$8>>2]|0;
  37685. $89 = ((($88)) + -1|0);
  37686. HEAP32[$8>>2] = $89;
  37687. $90 = 0;$91 = 0;
  37688. }
  37689. } else {
  37690. $90 = $80;$91 = $81;
  37691. }
  37692. $92 = (_i64Add(($90|0),($91|0),($71|0),($74|0))|0);
  37693. $93 = tempRet0;
  37694. $$0341463 = $$0341$lcssa;$$0345467 = $$0345$lcssa;$$0401473 = $$0401$lcssa;$105 = $92;$106 = $73;$108 = $93;$109 = $76;
  37695. label = 41;
  37696. }
  37697. } while(0);
  37698. if ((label|0) == 37) {
  37699. $95 = HEAP32[$9>>2]|0;
  37700. $96 = ($95|0)==(0|0);
  37701. if ($96) {
  37702. $$0341464 = $$0341465;$$0345468 = $$0345469;$$0401474 = $$0401475;$381 = $376;$382 = $377;$383 = $380;$384 = $378;$385 = $379;
  37703. label = 39;
  37704. } else {
  37705. $97 = HEAP32[$8>>2]|0;
  37706. $98 = ((($97)) + -1|0);
  37707. HEAP32[$8>>2] = $98;
  37708. if ($380) {
  37709. $$0341463 = $$0341465;$$0345467 = $$0345469;$$0401473 = $$0401475;$105 = $378;$106 = $376;$108 = $379;$109 = $377;
  37710. label = 41;
  37711. } else {
  37712. label = 40;
  37713. }
  37714. }
  37715. }
  37716. if ((label|0) == 39) {
  37717. if ($383) {
  37718. $$0341463 = $$0341464;$$0345467 = $$0345468;$$0401473 = $$0401474;$105 = $384;$106 = $381;$108 = $385;$109 = $382;
  37719. label = 41;
  37720. } else {
  37721. label = 40;
  37722. }
  37723. }
  37724. do {
  37725. if ((label|0) == 40) {
  37726. $99 = (___errno_location()|0);
  37727. HEAP32[$99>>2] = 22;
  37728. ___shlim($0,0);
  37729. $$1 = 0.0;
  37730. }
  37731. else if ((label|0) == 41) {
  37732. $100 = HEAP32[$6>>2]|0;
  37733. $101 = ($100|0)==(0);
  37734. if ($101) {
  37735. $102 = (+($4|0));
  37736. $103 = $102 * 0.0;
  37737. $$1 = $103;
  37738. break;
  37739. }
  37740. $104 = ($105|0)==($106|0);
  37741. $107 = ($108|0)==($109|0);
  37742. $110 = $104 & $107;
  37743. $111 = ($109|0)<(0);
  37744. $112 = ($106>>>0)<(10);
  37745. $113 = ($109|0)==(0);
  37746. $114 = $113 & $112;
  37747. $115 = $111 | $114;
  37748. $or$cond = $115 & $110;
  37749. if ($or$cond) {
  37750. $116 = ($2|0)>(30);
  37751. $117 = $100 >>> $2;
  37752. $118 = ($117|0)==(0);
  37753. $or$cond417 = $116 | $118;
  37754. if ($or$cond417) {
  37755. $119 = (+($4|0));
  37756. $120 = (+($100>>>0));
  37757. $121 = $119 * $120;
  37758. $$1 = $121;
  37759. break;
  37760. }
  37761. }
  37762. $122 = (($3|0) / -2)&-1;
  37763. $123 = ($122|0)<(0);
  37764. $124 = $123 << 31 >> 31;
  37765. $125 = ($108|0)>($124|0);
  37766. $126 = ($105>>>0)>($122>>>0);
  37767. $127 = ($108|0)==($124|0);
  37768. $128 = $127 & $126;
  37769. $129 = $125 | $128;
  37770. if ($129) {
  37771. $130 = (___errno_location()|0);
  37772. HEAP32[$130>>2] = 34;
  37773. $131 = (+($4|0));
  37774. $132 = $131 * 1.7976931348623157E+308;
  37775. $133 = $132 * 1.7976931348623157E+308;
  37776. $$1 = $133;
  37777. break;
  37778. }
  37779. $134 = (($3) + -106)|0;
  37780. $135 = ($134|0)<(0);
  37781. $136 = $135 << 31 >> 31;
  37782. $137 = ($108|0)<($136|0);
  37783. $138 = ($105>>>0)<($134>>>0);
  37784. $139 = ($108|0)==($136|0);
  37785. $140 = $139 & $138;
  37786. $141 = $137 | $140;
  37787. if ($141) {
  37788. $142 = (___errno_location()|0);
  37789. HEAP32[$142>>2] = 34;
  37790. $143 = (+($4|0));
  37791. $144 = $143 * 2.2250738585072014E-308;
  37792. $145 = $144 * 2.2250738585072014E-308;
  37793. $$1 = $145;
  37794. break;
  37795. }
  37796. $146 = ($$0341463|0)==(0);
  37797. if ($146) {
  37798. $$3348 = $$0345467;
  37799. } else {
  37800. $147 = ($$0341463|0)<(9);
  37801. if ($147) {
  37802. $148 = (($6) + ($$0345467<<2)|0);
  37803. $$promoted = HEAP32[$148>>2]|0;
  37804. $$3344503 = $$0341463;$150 = $$promoted;
  37805. while(1) {
  37806. $149 = ($150*10)|0;
  37807. $151 = (($$3344503) + 1)|0;
  37808. $exitcond551 = ($151|0)==(9);
  37809. if ($exitcond551) {
  37810. break;
  37811. } else {
  37812. $$3344503 = $151;$150 = $149;
  37813. }
  37814. }
  37815. HEAP32[$148>>2] = $149;
  37816. }
  37817. $152 = (($$0345467) + 1)|0;
  37818. $$3348 = $152;
  37819. }
  37820. $153 = ($$0401473|0)<(9);
  37821. if ($153) {
  37822. $154 = ($$0401473|0)<=($105|0);
  37823. $155 = ($105|0)<(18);
  37824. $or$cond5 = $154 & $155;
  37825. if ($or$cond5) {
  37826. $156 = ($105|0)==(9);
  37827. $157 = HEAP32[$6>>2]|0;
  37828. if ($156) {
  37829. $158 = (+($4|0));
  37830. $159 = (+($157>>>0));
  37831. $160 = $158 * $159;
  37832. $$1 = $160;
  37833. break;
  37834. }
  37835. $161 = ($105|0)<(9);
  37836. if ($161) {
  37837. $162 = (+($4|0));
  37838. $163 = (+($157>>>0));
  37839. $164 = $162 * $163;
  37840. $165 = (8 - ($105))|0;
  37841. $166 = (4232 + ($165<<2)|0);
  37842. $167 = HEAP32[$166>>2]|0;
  37843. $168 = (+($167|0));
  37844. $169 = $164 / $168;
  37845. $$1 = $169;
  37846. break;
  37847. }
  37848. $$neg442 = Math_imul($105, -3)|0;
  37849. $$neg443 = (($2) + 27)|0;
  37850. $170 = (($$neg443) + ($$neg442))|0;
  37851. $171 = ($170|0)>(30);
  37852. $172 = $157 >>> $170;
  37853. $173 = ($172|0)==(0);
  37854. $or$cond419 = $171 | $173;
  37855. if ($or$cond419) {
  37856. $174 = (($105) + -10)|0;
  37857. $175 = (4232 + ($174<<2)|0);
  37858. $176 = (+($4|0));
  37859. $177 = (+($157>>>0));
  37860. $178 = $176 * $177;
  37861. $179 = HEAP32[$175>>2]|0;
  37862. $180 = (+($179|0));
  37863. $181 = $178 * $180;
  37864. $$1 = $181;
  37865. break;
  37866. }
  37867. }
  37868. }
  37869. $182 = (($105|0) % 9)&-1;
  37870. $183 = ($182|0)==(0);
  37871. if ($183) {
  37872. $$0380$ph = 0;$$1373$ph448 = $$3348;$$2352$ph449 = 0;$$2387$ph447 = $105;
  37873. } else {
  37874. $184 = ($105|0)>(-1);
  37875. $185 = (($182) + 9)|0;
  37876. $186 = $184 ? $182 : $185;
  37877. $187 = (8 - ($186))|0;
  37878. $188 = (4232 + ($187<<2)|0);
  37879. $189 = HEAP32[$188>>2]|0;
  37880. $190 = ($$3348|0)==(0);
  37881. if ($190) {
  37882. $$0350$lcssa554 = 0;$$0372 = 0;$$0385$lcssa553 = $105;
  37883. } else {
  37884. $191 = (1000000000 / ($189|0))&-1;
  37885. $$0340496 = 0;$$0350494 = 0;$$0385493 = $105;$$4349495 = 0;
  37886. while(1) {
  37887. $192 = (($6) + ($$4349495<<2)|0);
  37888. $193 = HEAP32[$192>>2]|0;
  37889. $194 = (($193>>>0) % ($189>>>0))&-1;
  37890. $195 = (($193>>>0) / ($189>>>0))&-1;
  37891. $196 = (($195) + ($$0340496))|0;
  37892. HEAP32[$192>>2] = $196;
  37893. $197 = Math_imul($191, $194)|0;
  37894. $198 = ($$4349495|0)==($$0350494|0);
  37895. $199 = ($196|0)==(0);
  37896. $or$cond420 = $198 & $199;
  37897. $200 = (($$0350494) + 1)|0;
  37898. $201 = $200 & 127;
  37899. $202 = (($$0385493) + -9)|0;
  37900. $$$0385 = $or$cond420 ? $202 : $$0385493;
  37901. $$$0350 = $or$cond420 ? $201 : $$0350494;
  37902. $203 = (($$4349495) + 1)|0;
  37903. $204 = ($203|0)==($$3348|0);
  37904. if ($204) {
  37905. break;
  37906. } else {
  37907. $$0340496 = $197;$$0350494 = $$$0350;$$0385493 = $$$0385;$$4349495 = $203;
  37908. }
  37909. }
  37910. $205 = ($197|0)==(0);
  37911. if ($205) {
  37912. $$0350$lcssa554 = $$$0350;$$0372 = $$3348;$$0385$lcssa553 = $$$0385;
  37913. } else {
  37914. $206 = (($6) + ($$3348<<2)|0);
  37915. $207 = (($$3348) + 1)|0;
  37916. HEAP32[$206>>2] = $197;
  37917. $$0350$lcssa554 = $$$0350;$$0372 = $207;$$0385$lcssa553 = $$$0385;
  37918. }
  37919. }
  37920. $208 = (9 - ($186))|0;
  37921. $209 = (($208) + ($$0385$lcssa553))|0;
  37922. $$0380$ph = 0;$$1373$ph448 = $$0372;$$2352$ph449 = $$0350$lcssa554;$$2387$ph447 = $209;
  37923. }
  37924. L101: while(1) {
  37925. $210 = ($$2387$ph447|0)<(18);
  37926. $211 = ($$2387$ph447|0)==(18);
  37927. $212 = (($6) + ($$2352$ph449<<2)|0);
  37928. $$0380 = $$0380$ph;$$1373 = $$1373$ph448;
  37929. while(1) {
  37930. if (!($210)) {
  37931. if (!($211)) {
  37932. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = $$2387$ph447;$$6378$ph = $$1373;
  37933. break L101;
  37934. }
  37935. $213 = HEAP32[$212>>2]|0;
  37936. $214 = ($213>>>0)<(9007199);
  37937. if (!($214)) {
  37938. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = 18;$$6378$ph = $$1373;
  37939. break L101;
  37940. }
  37941. }
  37942. $215 = (($$1373) + 127)|0;
  37943. $$0334 = 0;$$2374 = $$1373;$$5$in = $215;
  37944. while(1) {
  37945. $$5 = $$5$in & 127;
  37946. $216 = (($6) + ($$5<<2)|0);
  37947. $217 = HEAP32[$216>>2]|0;
  37948. $218 = (_bitshift64Shl(($217|0),0,29)|0);
  37949. $219 = tempRet0;
  37950. $220 = (_i64Add(($218|0),($219|0),($$0334|0),0)|0);
  37951. $221 = tempRet0;
  37952. $222 = ($221>>>0)>(0);
  37953. $223 = ($220>>>0)>(1000000000);
  37954. $224 = ($221|0)==(0);
  37955. $225 = $224 & $223;
  37956. $226 = $222 | $225;
  37957. if ($226) {
  37958. $227 = (___udivdi3(($220|0),($221|0),1000000000,0)|0);
  37959. $228 = tempRet0;
  37960. $229 = (___uremdi3(($220|0),($221|0),1000000000,0)|0);
  37961. $230 = tempRet0;
  37962. $$1335 = $227;$$sink421$off0 = $229;
  37963. } else {
  37964. $$1335 = 0;$$sink421$off0 = $220;
  37965. }
  37966. HEAP32[$216>>2] = $$sink421$off0;
  37967. $231 = (($$2374) + 127)|0;
  37968. $232 = $231 & 127;
  37969. $233 = ($$5|0)!=($232|0);
  37970. $234 = ($$5|0)==($$2352$ph449|0);
  37971. $or$cond422 = $233 | $234;
  37972. $or$cond422$not = $or$cond422 ^ 1;
  37973. $235 = ($$sink421$off0|0)==(0);
  37974. $or$cond423 = $235 & $or$cond422$not;
  37975. $$3375 = $or$cond423 ? $$5 : $$2374;
  37976. $236 = (($$5) + -1)|0;
  37977. if ($234) {
  37978. break;
  37979. } else {
  37980. $$0334 = $$1335;$$2374 = $$3375;$$5$in = $236;
  37981. }
  37982. }
  37983. $237 = (($$0380) + -29)|0;
  37984. $238 = ($$1335|0)==(0);
  37985. if ($238) {
  37986. $$0380 = $237;$$1373 = $$3375;
  37987. } else {
  37988. break;
  37989. }
  37990. }
  37991. $239 = (($$2387$ph447) + 9)|0;
  37992. $240 = (($$2352$ph449) + 127)|0;
  37993. $241 = $240 & 127;
  37994. $242 = ($241|0)==($$3375|0);
  37995. $243 = (($$3375) + 127)|0;
  37996. $244 = $243 & 127;
  37997. $245 = (($$3375) + 126)|0;
  37998. $246 = $245 & 127;
  37999. $247 = (($6) + ($246<<2)|0);
  38000. if ($242) {
  38001. $248 = (($6) + ($244<<2)|0);
  38002. $249 = HEAP32[$248>>2]|0;
  38003. $250 = HEAP32[$247>>2]|0;
  38004. $251 = $250 | $249;
  38005. HEAP32[$247>>2] = $251;
  38006. $$4376 = $244;
  38007. } else {
  38008. $$4376 = $$3375;
  38009. }
  38010. $252 = (($6) + ($241<<2)|0);
  38011. HEAP32[$252>>2] = $$1335;
  38012. $$0380$ph = $237;$$1373$ph448 = $$4376;$$2352$ph449 = $241;$$2387$ph447 = $239;
  38013. }
  38014. L119: while(1) {
  38015. $289 = (($$6378$ph) + 1)|0;
  38016. $287 = $289 & 127;
  38017. $290 = (($$6378$ph) + 127)|0;
  38018. $291 = $290 & 127;
  38019. $292 = (($6) + ($291<<2)|0);
  38020. $$1381$ph558 = $$1381$ph;$$4354$ph559 = $$4354$ph;$$4389$ph = $$4389$ph445;
  38021. while(1) {
  38022. $265 = ($$4389$ph|0)==(18);
  38023. $293 = ($$4389$ph|0)>(27);
  38024. $$425 = $293 ? 9 : 1;
  38025. $$1381 = $$1381$ph558;$$4354 = $$4354$ph559;
  38026. while(1) {
  38027. $$0336486 = 0;
  38028. while(1) {
  38029. $253 = (($$0336486) + ($$4354))|0;
  38030. $254 = $253 & 127;
  38031. $255 = ($254|0)==($$6378$ph|0);
  38032. if ($255) {
  38033. $$1337 = 2;
  38034. label = 88;
  38035. break;
  38036. }
  38037. $256 = (($6) + ($254<<2)|0);
  38038. $257 = HEAP32[$256>>2]|0;
  38039. $258 = (4264 + ($$0336486<<2)|0);
  38040. $259 = HEAP32[$258>>2]|0;
  38041. $260 = ($257>>>0)<($259>>>0);
  38042. if ($260) {
  38043. $$1337 = 2;
  38044. label = 88;
  38045. break;
  38046. }
  38047. $261 = ($257>>>0)>($259>>>0);
  38048. if ($261) {
  38049. break;
  38050. }
  38051. $262 = (($$0336486) + 1)|0;
  38052. $263 = ($262|0)<(2);
  38053. if ($263) {
  38054. $$0336486 = $262;
  38055. } else {
  38056. $$1337 = $262;
  38057. label = 88;
  38058. break;
  38059. }
  38060. }
  38061. if ((label|0) == 88) {
  38062. label = 0;
  38063. $264 = ($$1337|0)==(2);
  38064. $or$cond11 = $265 & $264;
  38065. if ($or$cond11) {
  38066. $$0365484 = 0.0;$$4485 = 0;$$9483 = $$6378$ph;
  38067. break L119;
  38068. }
  38069. }
  38070. $266 = (($$425) + ($$1381))|0;
  38071. $267 = ($$4354|0)==($$6378$ph|0);
  38072. if ($267) {
  38073. $$1381 = $266;$$4354 = $$6378$ph;
  38074. } else {
  38075. break;
  38076. }
  38077. }
  38078. $268 = 1 << $$425;
  38079. $269 = (($268) + -1)|0;
  38080. $270 = 1000000000 >>> $$425;
  38081. $$0332490 = 0;$$5355488 = $$4354;$$5390487 = $$4389$ph;$$6489 = $$4354;
  38082. while(1) {
  38083. $271 = (($6) + ($$6489<<2)|0);
  38084. $272 = HEAP32[$271>>2]|0;
  38085. $273 = $272 & $269;
  38086. $274 = $272 >>> $$425;
  38087. $275 = (($274) + ($$0332490))|0;
  38088. HEAP32[$271>>2] = $275;
  38089. $276 = Math_imul($273, $270)|0;
  38090. $277 = ($$6489|0)==($$5355488|0);
  38091. $278 = ($275|0)==(0);
  38092. $or$cond426 = $277 & $278;
  38093. $279 = (($$5355488) + 1)|0;
  38094. $280 = $279 & 127;
  38095. $281 = (($$5390487) + -9)|0;
  38096. $$$5390 = $or$cond426 ? $281 : $$5390487;
  38097. $$$5355 = $or$cond426 ? $280 : $$5355488;
  38098. $282 = (($$6489) + 1)|0;
  38099. $283 = $282 & 127;
  38100. $284 = ($283|0)==($$6378$ph|0);
  38101. if ($284) {
  38102. break;
  38103. } else {
  38104. $$0332490 = $276;$$5355488 = $$$5355;$$5390487 = $$$5390;$$6489 = $283;
  38105. }
  38106. }
  38107. $285 = ($276|0)==(0);
  38108. if ($285) {
  38109. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  38110. continue;
  38111. }
  38112. $286 = ($287|0)==($$$5355|0);
  38113. if (!($286)) {
  38114. break;
  38115. }
  38116. $294 = HEAP32[$292>>2]|0;
  38117. $295 = $294 | 1;
  38118. HEAP32[$292>>2] = $295;
  38119. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  38120. }
  38121. $288 = (($6) + ($$6378$ph<<2)|0);
  38122. HEAP32[$288>>2] = $276;
  38123. $$1381$ph = $266;$$4354$ph = $$$5355;$$4389$ph445 = $$$5390;$$6378$ph = $287;
  38124. }
  38125. while(1) {
  38126. $296 = (($$4485) + ($$4354))|0;
  38127. $297 = $296 & 127;
  38128. $298 = ($297|0)==($$9483|0);
  38129. $299 = (($$9483) + 1)|0;
  38130. $300 = $299 & 127;
  38131. if ($298) {
  38132. $301 = (($300) + -1)|0;
  38133. $302 = (($6) + ($301<<2)|0);
  38134. HEAP32[$302>>2] = 0;
  38135. $$10 = $300;
  38136. } else {
  38137. $$10 = $$9483;
  38138. }
  38139. $303 = $$0365484 * 1.0E+9;
  38140. $304 = (($6) + ($297<<2)|0);
  38141. $305 = HEAP32[$304>>2]|0;
  38142. $306 = (+($305>>>0));
  38143. $307 = $303 + $306;
  38144. $308 = (($$4485) + 1)|0;
  38145. $exitcond = ($308|0)==(2);
  38146. if ($exitcond) {
  38147. break;
  38148. } else {
  38149. $$0365484 = $307;$$4485 = $308;$$9483 = $$10;
  38150. }
  38151. }
  38152. $309 = (+($4|0));
  38153. $310 = $309 * $307;
  38154. $311 = (($$1381) + 53)|0;
  38155. $312 = (($311) - ($3))|0;
  38156. $313 = ($312|0)<($2|0);
  38157. $314 = ($312|0)>(0);
  38158. $$ = $314 ? $312 : 0;
  38159. $$0333 = $313 ? $$ : $2;
  38160. $315 = ($$0333|0)<(53);
  38161. if ($315) {
  38162. $316 = (105 - ($$0333))|0;
  38163. $317 = (+_scalbn(1.0,$316));
  38164. $318 = (+_copysignl($317,$310));
  38165. $319 = (53 - ($$0333))|0;
  38166. $320 = (+_scalbn(1.0,$319));
  38167. $321 = (+_fmodl($310,$320));
  38168. $322 = $310 - $321;
  38169. $323 = $318 + $322;
  38170. $$0360 = $318;$$0361 = $321;$$1366 = $323;
  38171. } else {
  38172. $$0360 = 0.0;$$0361 = 0.0;$$1366 = $310;
  38173. }
  38174. $324 = (($$4354) + 2)|0;
  38175. $325 = $324 & 127;
  38176. $326 = ($325|0)==($$10|0);
  38177. if ($326) {
  38178. $$3364 = $$0361;
  38179. } else {
  38180. $327 = (($6) + ($325<<2)|0);
  38181. $328 = HEAP32[$327>>2]|0;
  38182. $329 = ($328>>>0)<(500000000);
  38183. do {
  38184. if ($329) {
  38185. $330 = ($328|0)==(0);
  38186. if ($330) {
  38187. $331 = (($$4354) + 3)|0;
  38188. $332 = $331 & 127;
  38189. $333 = ($332|0)==($$10|0);
  38190. if ($333) {
  38191. $$1362 = $$0361;
  38192. break;
  38193. }
  38194. }
  38195. $334 = $309 * 0.25;
  38196. $335 = $334 + $$0361;
  38197. $$1362 = $335;
  38198. } else {
  38199. $336 = ($328|0)==(500000000);
  38200. if (!($336)) {
  38201. $337 = $309 * 0.75;
  38202. $338 = $337 + $$0361;
  38203. $$1362 = $338;
  38204. break;
  38205. }
  38206. $339 = (($$4354) + 3)|0;
  38207. $340 = $339 & 127;
  38208. $341 = ($340|0)==($$10|0);
  38209. if ($341) {
  38210. $342 = $309 * 0.5;
  38211. $343 = $342 + $$0361;
  38212. $$1362 = $343;
  38213. break;
  38214. } else {
  38215. $344 = $309 * 0.75;
  38216. $345 = $344 + $$0361;
  38217. $$1362 = $345;
  38218. break;
  38219. }
  38220. }
  38221. } while(0);
  38222. $346 = (53 - ($$0333))|0;
  38223. $347 = ($346|0)>(1);
  38224. if ($347) {
  38225. $348 = (+_fmodl($$1362,1.0));
  38226. $349 = $348 != 0.0;
  38227. if ($349) {
  38228. $$3364 = $$1362;
  38229. } else {
  38230. $350 = $$1362 + 1.0;
  38231. $$3364 = $350;
  38232. }
  38233. } else {
  38234. $$3364 = $$1362;
  38235. }
  38236. }
  38237. $351 = $$1366 + $$3364;
  38238. $352 = $351 - $$0360;
  38239. $353 = $311 & 2147483647;
  38240. $354 = (-2 - ($sum))|0;
  38241. $355 = ($353|0)>($354|0);
  38242. do {
  38243. if ($355) {
  38244. $356 = (+Math_abs((+$352)));
  38245. $357 = !($356 >= 9007199254740992.0);
  38246. $358 = $352 * 0.5;
  38247. $not$ = $357 ^ 1;
  38248. $359 = $not$&1;
  38249. $$3383 = (($359) + ($$1381))|0;
  38250. $$2367 = $357 ? $352 : $358;
  38251. $360 = (($$3383) + 50)|0;
  38252. $361 = ($360|0)>($7|0);
  38253. if (!($361)) {
  38254. $362 = ($$0333|0)!=($312|0);
  38255. $narrow = $362 | $357;
  38256. $$2371$v = $313 & $narrow;
  38257. $363 = $$3364 != 0.0;
  38258. $or$cond14 = $363 & $$2371$v;
  38259. if (!($or$cond14)) {
  38260. $$3368 = $$2367;$$4384 = $$3383;
  38261. break;
  38262. }
  38263. }
  38264. $364 = (___errno_location()|0);
  38265. HEAP32[$364>>2] = 34;
  38266. $$3368 = $$2367;$$4384 = $$3383;
  38267. } else {
  38268. $$3368 = $352;$$4384 = $$1381;
  38269. }
  38270. } while(0);
  38271. $365 = (+_scalbnl($$3368,$$4384));
  38272. $$1 = $365;
  38273. }
  38274. } while(0);
  38275. STACKTOP = sp;return (+$$1);
  38276. }
  38277. function _scanexp($0,$1) {
  38278. $0 = $0|0;
  38279. $1 = $1|0;
  38280. 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;
  38281. 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;
  38282. 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;
  38283. 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;
  38284. 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;
  38285. 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;
  38286. sp = STACKTOP;
  38287. $2 = ((($0)) + 4|0);
  38288. $3 = HEAP32[$2>>2]|0;
  38289. $4 = ((($0)) + 100|0);
  38290. $5 = HEAP32[$4>>2]|0;
  38291. $6 = ($3>>>0)<($5>>>0);
  38292. if ($6) {
  38293. $7 = ((($3)) + 1|0);
  38294. HEAP32[$2>>2] = $7;
  38295. $8 = HEAP8[$3>>0]|0;
  38296. $9 = $8&255;
  38297. $11 = $9;
  38298. } else {
  38299. $10 = (___shgetc($0)|0);
  38300. $11 = $10;
  38301. }
  38302. switch ($11|0) {
  38303. case 43: case 45: {
  38304. $12 = ($11|0)==(45);
  38305. $13 = $12&1;
  38306. $14 = HEAP32[$2>>2]|0;
  38307. $15 = HEAP32[$4>>2]|0;
  38308. $16 = ($14>>>0)<($15>>>0);
  38309. if ($16) {
  38310. $17 = ((($14)) + 1|0);
  38311. HEAP32[$2>>2] = $17;
  38312. $18 = HEAP8[$14>>0]|0;
  38313. $19 = $18&255;
  38314. $22 = $19;
  38315. } else {
  38316. $20 = (___shgetc($0)|0);
  38317. $22 = $20;
  38318. }
  38319. $21 = (($22) + -48)|0;
  38320. $23 = ($21>>>0)>(9);
  38321. $24 = ($1|0)!=(0);
  38322. $or$cond3 = $24 & $23;
  38323. if ($or$cond3) {
  38324. $25 = HEAP32[$4>>2]|0;
  38325. $26 = ($25|0)==(0|0);
  38326. if ($26) {
  38327. $$0 = $13;$$049 = $22;
  38328. } else {
  38329. $27 = HEAP32[$2>>2]|0;
  38330. $28 = ((($27)) + -1|0);
  38331. HEAP32[$2>>2] = $28;
  38332. $$0 = $13;$$049 = $22;
  38333. }
  38334. } else {
  38335. $$0 = $13;$$049 = $22;
  38336. }
  38337. break;
  38338. }
  38339. default: {
  38340. $$0 = 0;$$049 = $11;
  38341. }
  38342. }
  38343. $29 = (($$049) + -48)|0;
  38344. $30 = ($29>>>0)>(9);
  38345. if ($30) {
  38346. $31 = HEAP32[$4>>2]|0;
  38347. $32 = ($31|0)==(0|0);
  38348. if ($32) {
  38349. $100 = -2147483648;$101 = 0;
  38350. } else {
  38351. $33 = HEAP32[$2>>2]|0;
  38352. $34 = ((($33)) + -1|0);
  38353. HEAP32[$2>>2] = $34;
  38354. $100 = -2147483648;$101 = 0;
  38355. }
  38356. } else {
  38357. $$04861 = 0;$$160 = $$049;
  38358. while(1) {
  38359. $35 = ($$04861*10)|0;
  38360. $36 = (($$160) + -48)|0;
  38361. $37 = (($36) + ($35))|0;
  38362. $38 = HEAP32[$2>>2]|0;
  38363. $39 = HEAP32[$4>>2]|0;
  38364. $40 = ($38>>>0)<($39>>>0);
  38365. if ($40) {
  38366. $41 = ((($38)) + 1|0);
  38367. HEAP32[$2>>2] = $41;
  38368. $42 = HEAP8[$38>>0]|0;
  38369. $43 = $42&255;
  38370. $$1$be = $43;
  38371. } else {
  38372. $44 = (___shgetc($0)|0);
  38373. $$1$be = $44;
  38374. }
  38375. $45 = (($$1$be) + -48)|0;
  38376. $46 = ($45>>>0)<(10);
  38377. $47 = ($37|0)<(214748364);
  38378. $48 = $46 & $47;
  38379. if ($48) {
  38380. $$04861 = $37;$$160 = $$1$be;
  38381. } else {
  38382. break;
  38383. }
  38384. }
  38385. $49 = ($37|0)<(0);
  38386. $50 = $49 << 31 >> 31;
  38387. $51 = (($$1$be) + -48)|0;
  38388. $52 = ($51>>>0)<(10);
  38389. if ($52) {
  38390. $$254 = $$1$be;$56 = $37;$57 = $50;
  38391. while(1) {
  38392. $58 = (___muldi3(($56|0),($57|0),10,0)|0);
  38393. $59 = tempRet0;
  38394. $60 = ($$254|0)<(0);
  38395. $61 = $60 << 31 >> 31;
  38396. $62 = (_i64Add(($$254|0),($61|0),-48,-1)|0);
  38397. $63 = tempRet0;
  38398. $64 = (_i64Add(($62|0),($63|0),($58|0),($59|0))|0);
  38399. $65 = tempRet0;
  38400. $66 = HEAP32[$2>>2]|0;
  38401. $67 = HEAP32[$4>>2]|0;
  38402. $68 = ($66>>>0)<($67>>>0);
  38403. if ($68) {
  38404. $69 = ((($66)) + 1|0);
  38405. HEAP32[$2>>2] = $69;
  38406. $70 = HEAP8[$66>>0]|0;
  38407. $71 = $70&255;
  38408. $$2$be = $71;
  38409. } else {
  38410. $72 = (___shgetc($0)|0);
  38411. $$2$be = $72;
  38412. }
  38413. $73 = (($$2$be) + -48)|0;
  38414. $74 = ($73>>>0)<(10);
  38415. $75 = ($65|0)<(21474836);
  38416. $76 = ($64>>>0)<(2061584302);
  38417. $77 = ($65|0)==(21474836);
  38418. $78 = $77 & $76;
  38419. $79 = $75 | $78;
  38420. $80 = $74 & $79;
  38421. if ($80) {
  38422. $$254 = $$2$be;$56 = $64;$57 = $65;
  38423. } else {
  38424. $$2$lcssa = $$2$be;$94 = $64;$95 = $65;
  38425. break;
  38426. }
  38427. }
  38428. } else {
  38429. $$2$lcssa = $$1$be;$94 = $37;$95 = $50;
  38430. }
  38431. $53 = (($$2$lcssa) + -48)|0;
  38432. $54 = ($53>>>0)<(10);
  38433. $55 = HEAP32[$4>>2]|0;
  38434. if ($54) {
  38435. $83 = $55;
  38436. while(1) {
  38437. $81 = HEAP32[$2>>2]|0;
  38438. $82 = ($81>>>0)<($83>>>0);
  38439. if ($82) {
  38440. $84 = ((($81)) + 1|0);
  38441. HEAP32[$2>>2] = $84;
  38442. $85 = HEAP8[$81>>0]|0;
  38443. $86 = $85&255;
  38444. $$3$be = $86;$102 = $83;
  38445. } else {
  38446. $87 = (___shgetc($0)|0);
  38447. $$pre = HEAP32[$4>>2]|0;
  38448. $$3$be = $87;$102 = $$pre;
  38449. }
  38450. $88 = (($$3$be) + -48)|0;
  38451. $89 = ($88>>>0)<(10);
  38452. if ($89) {
  38453. $83 = $102;
  38454. } else {
  38455. $$lcssa = $102;
  38456. break;
  38457. }
  38458. }
  38459. } else {
  38460. $$lcssa = $55;
  38461. }
  38462. $90 = ($$lcssa|0)==(0|0);
  38463. if (!($90)) {
  38464. $91 = HEAP32[$2>>2]|0;
  38465. $92 = ((($91)) + -1|0);
  38466. HEAP32[$2>>2] = $92;
  38467. }
  38468. $93 = ($$0|0)!=(0);
  38469. $96 = (_i64Subtract(0,0,($94|0),($95|0))|0);
  38470. $97 = tempRet0;
  38471. $98 = $93 ? $96 : $94;
  38472. $99 = $93 ? $97 : $95;
  38473. $100 = $99;$101 = $98;
  38474. }
  38475. tempRet0 = ($100);
  38476. return ($101|0);
  38477. }
  38478. function _scalbn($0,$1) {
  38479. $0 = +$0;
  38480. $1 = $1|0;
  38481. 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;
  38482. var $3 = 0.0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  38483. sp = STACKTOP;
  38484. $2 = ($1|0)>(1023);
  38485. if ($2) {
  38486. $3 = $0 * 8.9884656743115795E+307;
  38487. $4 = (($1) + -1023)|0;
  38488. $5 = ($4|0)>(1023);
  38489. $6 = $3 * 8.9884656743115795E+307;
  38490. $7 = (($1) + -2046)|0;
  38491. $8 = ($7|0)<(1023);
  38492. $$ = $8 ? $7 : 1023;
  38493. $$$ = $5 ? $$ : $4;
  38494. $$21 = $5 ? $6 : $3;
  38495. $$0 = $$21;$$020 = $$$;
  38496. } else {
  38497. $9 = ($1|0)<(-1022);
  38498. if ($9) {
  38499. $10 = $0 * 2.2250738585072014E-308;
  38500. $11 = (($1) + 1022)|0;
  38501. $12 = ($11|0)<(-1022);
  38502. $13 = $10 * 2.2250738585072014E-308;
  38503. $14 = (($1) + 2044)|0;
  38504. $15 = ($14|0)>(-1022);
  38505. $$1 = $15 ? $14 : -1022;
  38506. $$1$ = $12 ? $$1 : $11;
  38507. $$22 = $12 ? $13 : $10;
  38508. $$0 = $$22;$$020 = $$1$;
  38509. } else {
  38510. $$0 = $0;$$020 = $1;
  38511. }
  38512. }
  38513. $16 = (($$020) + 1023)|0;
  38514. $17 = (_bitshift64Shl(($16|0),0,52)|0);
  38515. $18 = tempRet0;
  38516. HEAP32[tempDoublePtr>>2] = $17;HEAP32[tempDoublePtr+4>>2] = $18;$19 = +HEAPF64[tempDoublePtr>>3];
  38517. $20 = $$0 * $19;
  38518. return (+$20);
  38519. }
  38520. function _copysignl($0,$1) {
  38521. $0 = +$0;
  38522. $1 = +$1;
  38523. var $2 = 0.0, label = 0, sp = 0;
  38524. sp = STACKTOP;
  38525. $2 = (+_copysign($0,$1));
  38526. return (+$2);
  38527. }
  38528. function _fmodl($0,$1) {
  38529. $0 = +$0;
  38530. $1 = +$1;
  38531. var $2 = 0.0, label = 0, sp = 0;
  38532. sp = STACKTOP;
  38533. $2 = (+_fmod($0,$1));
  38534. return (+$2);
  38535. }
  38536. function _scalbnl($0,$1) {
  38537. $0 = +$0;
  38538. $1 = $1|0;
  38539. var $2 = 0.0, label = 0, sp = 0;
  38540. sp = STACKTOP;
  38541. $2 = (+_scalbn($0,$1));
  38542. return (+$2);
  38543. }
  38544. function _fmod($0,$1) {
  38545. $0 = +$0;
  38546. $1 = +$1;
  38547. 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;
  38548. 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;
  38549. 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;
  38550. 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;
  38551. 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;
  38552. 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;
  38553. 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;
  38554. 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;
  38555. 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;
  38556. sp = STACKTOP;
  38557. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  38558. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  38559. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  38560. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  38561. $6 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  38562. $7 = tempRet0;
  38563. $8 = $6 & 2047;
  38564. $9 = (_bitshift64Lshr(($4|0),($5|0),52)|0);
  38565. $10 = tempRet0;
  38566. $11 = $9 & 2047;
  38567. $12 = $3 & -2147483648;
  38568. $13 = (_bitshift64Shl(($4|0),($5|0),1)|0);
  38569. $14 = tempRet0;
  38570. $15 = ($13|0)==(0);
  38571. $16 = ($14|0)==(0);
  38572. $17 = $15 & $16;
  38573. L1: do {
  38574. if ($17) {
  38575. label = 3;
  38576. } else {
  38577. $18 = (___DOUBLE_BITS_272($1)|0);
  38578. $19 = tempRet0;
  38579. $20 = $19 & 2147483647;
  38580. $21 = ($20>>>0)>(2146435072);
  38581. $22 = ($18>>>0)>(0);
  38582. $23 = ($20|0)==(2146435072);
  38583. $24 = $23 & $22;
  38584. $25 = $21 | $24;
  38585. $26 = ($8|0)==(2047);
  38586. $or$cond = $26 | $25;
  38587. if ($or$cond) {
  38588. label = 3;
  38589. } else {
  38590. $29 = (_bitshift64Shl(($2|0),($3|0),1)|0);
  38591. $30 = tempRet0;
  38592. $31 = ($30>>>0)>($14>>>0);
  38593. $32 = ($29>>>0)>($13>>>0);
  38594. $33 = ($30|0)==($14|0);
  38595. $34 = $33 & $32;
  38596. $35 = $31 | $34;
  38597. if (!($35)) {
  38598. $36 = ($29|0)==($13|0);
  38599. $37 = ($30|0)==($14|0);
  38600. $38 = $36 & $37;
  38601. $39 = $0 * 0.0;
  38602. $$ = $38 ? $39 : $0;
  38603. return (+$$);
  38604. }
  38605. $40 = ($8|0)==(0);
  38606. if ($40) {
  38607. $41 = (_bitshift64Shl(($2|0),($3|0),12)|0);
  38608. $42 = tempRet0;
  38609. $43 = ($42|0)>(-1);
  38610. $44 = ($41>>>0)>(4294967295);
  38611. $45 = ($42|0)==(-1);
  38612. $46 = $45 & $44;
  38613. $47 = $43 | $46;
  38614. if ($47) {
  38615. $$073100 = 0;$49 = $41;$50 = $42;
  38616. while(1) {
  38617. $48 = (($$073100) + -1)|0;
  38618. $51 = (_bitshift64Shl(($49|0),($50|0),1)|0);
  38619. $52 = tempRet0;
  38620. $53 = ($52|0)>(-1);
  38621. $54 = ($51>>>0)>(4294967295);
  38622. $55 = ($52|0)==(-1);
  38623. $56 = $55 & $54;
  38624. $57 = $53 | $56;
  38625. if ($57) {
  38626. $$073100 = $48;$49 = $51;$50 = $52;
  38627. } else {
  38628. $$073$lcssa = $48;
  38629. break;
  38630. }
  38631. }
  38632. } else {
  38633. $$073$lcssa = 0;
  38634. }
  38635. $58 = (1 - ($$073$lcssa))|0;
  38636. $59 = (_bitshift64Shl(($2|0),($3|0),($58|0))|0);
  38637. $60 = tempRet0;
  38638. $$174 = $$073$lcssa;$87 = $59;$88 = $60;
  38639. } else {
  38640. $61 = $3 & 1048575;
  38641. $62 = $61 | 1048576;
  38642. $$174 = $8;$87 = $2;$88 = $62;
  38643. }
  38644. $63 = ($11|0)==(0);
  38645. if ($63) {
  38646. $64 = (_bitshift64Shl(($4|0),($5|0),12)|0);
  38647. $65 = tempRet0;
  38648. $66 = ($65|0)>(-1);
  38649. $67 = ($64>>>0)>(4294967295);
  38650. $68 = ($65|0)==(-1);
  38651. $69 = $68 & $67;
  38652. $70 = $66 | $69;
  38653. if ($70) {
  38654. $$07194 = 0;$72 = $64;$73 = $65;
  38655. while(1) {
  38656. $71 = (($$07194) + -1)|0;
  38657. $74 = (_bitshift64Shl(($72|0),($73|0),1)|0);
  38658. $75 = tempRet0;
  38659. $76 = ($75|0)>(-1);
  38660. $77 = ($74>>>0)>(4294967295);
  38661. $78 = ($75|0)==(-1);
  38662. $79 = $78 & $77;
  38663. $80 = $76 | $79;
  38664. if ($80) {
  38665. $$07194 = $71;$72 = $74;$73 = $75;
  38666. } else {
  38667. $$071$lcssa = $71;
  38668. break;
  38669. }
  38670. }
  38671. } else {
  38672. $$071$lcssa = 0;
  38673. }
  38674. $81 = (1 - ($$071$lcssa))|0;
  38675. $82 = (_bitshift64Shl(($4|0),($5|0),($81|0))|0);
  38676. $83 = tempRet0;
  38677. $$172$ph = $$071$lcssa;$89 = $82;$90 = $83;
  38678. } else {
  38679. $84 = $5 & 1048575;
  38680. $85 = $84 | 1048576;
  38681. $$172$ph = $11;$89 = $4;$90 = $85;
  38682. }
  38683. $86 = ($$174|0)>($$172$ph|0);
  38684. $91 = (_i64Subtract(($87|0),($88|0),($89|0),($90|0))|0);
  38685. $92 = tempRet0;
  38686. $93 = ($92|0)>(-1);
  38687. $94 = ($91>>>0)>(4294967295);
  38688. $95 = ($92|0)==(-1);
  38689. $96 = $95 & $94;
  38690. $97 = $93 | $96;
  38691. L23: do {
  38692. if ($86) {
  38693. $$27586 = $$174;$101 = $92;$156 = $97;$157 = $87;$158 = $88;$99 = $91;
  38694. while(1) {
  38695. if ($156) {
  38696. $98 = ($99|0)==(0);
  38697. $100 = ($101|0)==(0);
  38698. $102 = $98 & $100;
  38699. if ($102) {
  38700. break;
  38701. } else {
  38702. $104 = $99;$105 = $101;
  38703. }
  38704. } else {
  38705. $104 = $157;$105 = $158;
  38706. }
  38707. $106 = (_bitshift64Shl(($104|0),($105|0),1)|0);
  38708. $107 = tempRet0;
  38709. $108 = (($$27586) + -1)|0;
  38710. $109 = ($108|0)>($$172$ph|0);
  38711. $110 = (_i64Subtract(($106|0),($107|0),($89|0),($90|0))|0);
  38712. $111 = tempRet0;
  38713. $112 = ($111|0)>(-1);
  38714. $113 = ($110>>>0)>(4294967295);
  38715. $114 = ($111|0)==(-1);
  38716. $115 = $114 & $113;
  38717. $116 = $112 | $115;
  38718. if ($109) {
  38719. $$27586 = $108;$101 = $111;$156 = $116;$157 = $106;$158 = $107;$99 = $110;
  38720. } else {
  38721. $$275$lcssa = $108;$$lcssa = $116;$118 = $110;$120 = $111;$159 = $106;$160 = $107;
  38722. break L23;
  38723. }
  38724. }
  38725. $103 = $0 * 0.0;
  38726. $$070 = $103;
  38727. break L1;
  38728. } else {
  38729. $$275$lcssa = $$174;$$lcssa = $97;$118 = $91;$120 = $92;$159 = $87;$160 = $88;
  38730. }
  38731. } while(0);
  38732. if ($$lcssa) {
  38733. $117 = ($118|0)==(0);
  38734. $119 = ($120|0)==(0);
  38735. $121 = $117 & $119;
  38736. if ($121) {
  38737. $129 = $0 * 0.0;
  38738. $$070 = $129;
  38739. break;
  38740. } else {
  38741. $123 = $120;$125 = $118;
  38742. }
  38743. } else {
  38744. $123 = $160;$125 = $159;
  38745. }
  38746. $122 = ($123>>>0)<(1048576);
  38747. $124 = ($125>>>0)<(0);
  38748. $126 = ($123|0)==(1048576);
  38749. $127 = $126 & $124;
  38750. $128 = $122 | $127;
  38751. if ($128) {
  38752. $$37683 = $$275$lcssa;$130 = $125;$131 = $123;
  38753. while(1) {
  38754. $132 = (_bitshift64Shl(($130|0),($131|0),1)|0);
  38755. $133 = tempRet0;
  38756. $134 = (($$37683) + -1)|0;
  38757. $135 = ($133>>>0)<(1048576);
  38758. $136 = ($132>>>0)<(0);
  38759. $137 = ($133|0)==(1048576);
  38760. $138 = $137 & $136;
  38761. $139 = $135 | $138;
  38762. if ($139) {
  38763. $$37683 = $134;$130 = $132;$131 = $133;
  38764. } else {
  38765. $$376$lcssa = $134;$141 = $132;$142 = $133;
  38766. break;
  38767. }
  38768. }
  38769. } else {
  38770. $$376$lcssa = $$275$lcssa;$141 = $125;$142 = $123;
  38771. }
  38772. $140 = ($$376$lcssa|0)>(0);
  38773. if ($140) {
  38774. $143 = (_i64Add(($141|0),($142|0),0,-1048576)|0);
  38775. $144 = tempRet0;
  38776. $145 = (_bitshift64Shl(($$376$lcssa|0),0,52)|0);
  38777. $146 = tempRet0;
  38778. $147 = $143 | $145;
  38779. $148 = $144 | $146;
  38780. $153 = $148;$155 = $147;
  38781. } else {
  38782. $149 = (1 - ($$376$lcssa))|0;
  38783. $150 = (_bitshift64Lshr(($141|0),($142|0),($149|0))|0);
  38784. $151 = tempRet0;
  38785. $153 = $151;$155 = $150;
  38786. }
  38787. $152 = $153 | $12;
  38788. HEAP32[tempDoublePtr>>2] = $155;HEAP32[tempDoublePtr+4>>2] = $152;$154 = +HEAPF64[tempDoublePtr>>3];
  38789. $$070 = $154;
  38790. }
  38791. }
  38792. } while(0);
  38793. if ((label|0) == 3) {
  38794. $27 = $0 * $1;
  38795. $28 = $27 / $27;
  38796. $$070 = $28;
  38797. }
  38798. return (+$$070);
  38799. }
  38800. function ___DOUBLE_BITS_272($0) {
  38801. $0 = +$0;
  38802. var $1 = 0, $2 = 0, label = 0, sp = 0;
  38803. sp = STACKTOP;
  38804. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  38805. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  38806. tempRet0 = ($2);
  38807. return ($1|0);
  38808. }
  38809. function _strlen($0) {
  38810. $0 = $0|0;
  38811. 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;
  38812. 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;
  38813. sp = STACKTOP;
  38814. $1 = $0;
  38815. $2 = $1 & 3;
  38816. $3 = ($2|0)==(0);
  38817. L1: do {
  38818. if ($3) {
  38819. $$015$lcssa = $0;
  38820. label = 4;
  38821. } else {
  38822. $$01519 = $0;$23 = $1;
  38823. while(1) {
  38824. $4 = HEAP8[$$01519>>0]|0;
  38825. $5 = ($4<<24>>24)==(0);
  38826. if ($5) {
  38827. $$sink = $23;
  38828. break L1;
  38829. }
  38830. $6 = ((($$01519)) + 1|0);
  38831. $7 = $6;
  38832. $8 = $7 & 3;
  38833. $9 = ($8|0)==(0);
  38834. if ($9) {
  38835. $$015$lcssa = $6;
  38836. label = 4;
  38837. break;
  38838. } else {
  38839. $$01519 = $6;$23 = $7;
  38840. }
  38841. }
  38842. }
  38843. } while(0);
  38844. if ((label|0) == 4) {
  38845. $$0 = $$015$lcssa;
  38846. while(1) {
  38847. $10 = HEAP32[$$0>>2]|0;
  38848. $11 = (($10) + -16843009)|0;
  38849. $12 = $10 & -2139062144;
  38850. $13 = $12 ^ -2139062144;
  38851. $14 = $13 & $11;
  38852. $15 = ($14|0)==(0);
  38853. $16 = ((($$0)) + 4|0);
  38854. if ($15) {
  38855. $$0 = $16;
  38856. } else {
  38857. break;
  38858. }
  38859. }
  38860. $17 = $10&255;
  38861. $18 = ($17<<24>>24)==(0);
  38862. if ($18) {
  38863. $$1$lcssa = $$0;
  38864. } else {
  38865. $$pn = $$0;
  38866. while(1) {
  38867. $19 = ((($$pn)) + 1|0);
  38868. $$pre = HEAP8[$19>>0]|0;
  38869. $20 = ($$pre<<24>>24)==(0);
  38870. if ($20) {
  38871. $$1$lcssa = $19;
  38872. break;
  38873. } else {
  38874. $$pn = $19;
  38875. }
  38876. }
  38877. }
  38878. $21 = $$1$lcssa;
  38879. $$sink = $21;
  38880. }
  38881. $22 = (($$sink) - ($1))|0;
  38882. return ($22|0);
  38883. }
  38884. function _strchr($0,$1) {
  38885. $0 = $0|0;
  38886. $1 = $1|0;
  38887. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  38888. sp = STACKTOP;
  38889. $2 = (___strchrnul($0,$1)|0);
  38890. $3 = HEAP8[$2>>0]|0;
  38891. $4 = $1&255;
  38892. $5 = ($3<<24>>24)==($4<<24>>24);
  38893. $6 = $5 ? $2 : 0;
  38894. return ($6|0);
  38895. }
  38896. function ___strchrnul($0,$1) {
  38897. $0 = $0|0;
  38898. $1 = $1|0;
  38899. 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;
  38900. 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;
  38901. 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;
  38902. sp = STACKTOP;
  38903. $2 = $1 & 255;
  38904. $3 = ($2|0)==(0);
  38905. L1: do {
  38906. if ($3) {
  38907. $8 = (_strlen($0)|0);
  38908. $9 = (($0) + ($8)|0);
  38909. $$0 = $9;
  38910. } else {
  38911. $4 = $0;
  38912. $5 = $4 & 3;
  38913. $6 = ($5|0)==(0);
  38914. if ($6) {
  38915. $$030$lcssa = $0;
  38916. } else {
  38917. $7 = $1&255;
  38918. $$03039 = $0;
  38919. while(1) {
  38920. $10 = HEAP8[$$03039>>0]|0;
  38921. $11 = ($10<<24>>24)==(0);
  38922. $12 = ($10<<24>>24)==($7<<24>>24);
  38923. $or$cond = $11 | $12;
  38924. if ($or$cond) {
  38925. $$0 = $$03039;
  38926. break L1;
  38927. }
  38928. $13 = ((($$03039)) + 1|0);
  38929. $14 = $13;
  38930. $15 = $14 & 3;
  38931. $16 = ($15|0)==(0);
  38932. if ($16) {
  38933. $$030$lcssa = $13;
  38934. break;
  38935. } else {
  38936. $$03039 = $13;
  38937. }
  38938. }
  38939. }
  38940. $17 = Math_imul($2, 16843009)|0;
  38941. $18 = HEAP32[$$030$lcssa>>2]|0;
  38942. $19 = (($18) + -16843009)|0;
  38943. $20 = $18 & -2139062144;
  38944. $21 = $20 ^ -2139062144;
  38945. $22 = $21 & $19;
  38946. $23 = ($22|0)==(0);
  38947. L10: do {
  38948. if ($23) {
  38949. $$02936 = $$030$lcssa;$25 = $18;
  38950. while(1) {
  38951. $24 = $25 ^ $17;
  38952. $26 = (($24) + -16843009)|0;
  38953. $27 = $24 & -2139062144;
  38954. $28 = $27 ^ -2139062144;
  38955. $29 = $28 & $26;
  38956. $30 = ($29|0)==(0);
  38957. if (!($30)) {
  38958. $$029$lcssa = $$02936;
  38959. break L10;
  38960. }
  38961. $31 = ((($$02936)) + 4|0);
  38962. $32 = HEAP32[$31>>2]|0;
  38963. $33 = (($32) + -16843009)|0;
  38964. $34 = $32 & -2139062144;
  38965. $35 = $34 ^ -2139062144;
  38966. $36 = $35 & $33;
  38967. $37 = ($36|0)==(0);
  38968. if ($37) {
  38969. $$02936 = $31;$25 = $32;
  38970. } else {
  38971. $$029$lcssa = $31;
  38972. break;
  38973. }
  38974. }
  38975. } else {
  38976. $$029$lcssa = $$030$lcssa;
  38977. }
  38978. } while(0);
  38979. $38 = $1&255;
  38980. $$1 = $$029$lcssa;
  38981. while(1) {
  38982. $39 = HEAP8[$$1>>0]|0;
  38983. $40 = ($39<<24>>24)==(0);
  38984. $41 = ($39<<24>>24)==($38<<24>>24);
  38985. $or$cond33 = $40 | $41;
  38986. $42 = ((($$1)) + 1|0);
  38987. if ($or$cond33) {
  38988. $$0 = $$1;
  38989. break;
  38990. } else {
  38991. $$1 = $42;
  38992. }
  38993. }
  38994. }
  38995. } while(0);
  38996. return ($$0|0);
  38997. }
  38998. function _mbrtowc($0,$1,$2,$3) {
  38999. $0 = $0|0;
  39000. $1 = $1|0;
  39001. $2 = $2|0;
  39002. $3 = $3|0;
  39003. 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;
  39004. 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;
  39005. 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;
  39006. var $not$ = 0, label = 0, sp = 0;
  39007. sp = STACKTOP;
  39008. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39009. $4 = sp;
  39010. $5 = ($3|0)==(0|0);
  39011. $$ = $5 ? 22748 : $3;
  39012. $6 = HEAP32[$$>>2]|0;
  39013. $7 = ($1|0)==(0|0);
  39014. L1: do {
  39015. if ($7) {
  39016. $8 = ($6|0)==(0);
  39017. if ($8) {
  39018. $$0 = 0;
  39019. } else {
  39020. label = 17;
  39021. }
  39022. } else {
  39023. $9 = ($0|0)==(0|0);
  39024. $$47 = $9 ? $4 : $0;
  39025. $10 = ($2|0)==(0);
  39026. if ($10) {
  39027. $$0 = -2;
  39028. } else {
  39029. $11 = ($6|0)==(0);
  39030. if ($11) {
  39031. $12 = HEAP8[$1>>0]|0;
  39032. $13 = ($12<<24>>24)>(-1);
  39033. if ($13) {
  39034. $14 = $12&255;
  39035. HEAP32[$$47>>2] = $14;
  39036. $15 = ($12<<24>>24)!=(0);
  39037. $16 = $15&1;
  39038. $$0 = $16;
  39039. break;
  39040. }
  39041. $17 = (___pthread_self_439()|0);
  39042. $18 = ((($17)) + 188|0);
  39043. $19 = HEAP32[$18>>2]|0;
  39044. $20 = HEAP32[$19>>2]|0;
  39045. $not$ = ($20|0)==(0|0);
  39046. $21 = HEAP8[$1>>0]|0;
  39047. if ($not$) {
  39048. $22 = $21 << 24 >> 24;
  39049. $23 = $22 & 57343;
  39050. HEAP32[$$47>>2] = $23;
  39051. $$0 = 1;
  39052. break;
  39053. }
  39054. $24 = $21&255;
  39055. $25 = (($24) + -194)|0;
  39056. $26 = ($25>>>0)>(50);
  39057. if ($26) {
  39058. label = 17;
  39059. break;
  39060. }
  39061. $27 = ((($1)) + 1|0);
  39062. $28 = (3652 + ($25<<2)|0);
  39063. $29 = HEAP32[$28>>2]|0;
  39064. $30 = (($2) + -1)|0;
  39065. $31 = ($30|0)==(0);
  39066. if ($31) {
  39067. $$2 = $29;
  39068. } else {
  39069. $$03952 = $27;$$04051 = $29;$$04350 = $30;
  39070. label = 11;
  39071. }
  39072. } else {
  39073. $$03952 = $1;$$04051 = $6;$$04350 = $2;
  39074. label = 11;
  39075. }
  39076. L14: do {
  39077. if ((label|0) == 11) {
  39078. $32 = HEAP8[$$03952>>0]|0;
  39079. $33 = $32&255;
  39080. $34 = $33 >>> 3;
  39081. $35 = (($34) + -16)|0;
  39082. $36 = $$04051 >> 26;
  39083. $37 = (($34) + ($36))|0;
  39084. $38 = $35 | $37;
  39085. $39 = ($38>>>0)>(7);
  39086. if ($39) {
  39087. label = 17;
  39088. break L1;
  39089. } else {
  39090. $$1 = $$03952;$$141 = $$04051;$$144 = $$04350;$43 = $32;
  39091. }
  39092. while(1) {
  39093. $40 = $$141 << 6;
  39094. $41 = ((($$1)) + 1|0);
  39095. $42 = $43&255;
  39096. $44 = (($42) + -128)|0;
  39097. $45 = $44 | $40;
  39098. $46 = (($$144) + -1)|0;
  39099. $47 = ($45|0)<(0);
  39100. if (!($47)) {
  39101. break;
  39102. }
  39103. $49 = ($46|0)==(0);
  39104. if ($49) {
  39105. $$2 = $45;
  39106. break L14;
  39107. }
  39108. $50 = HEAP8[$41>>0]|0;
  39109. $51 = $50 & -64;
  39110. $52 = ($51<<24>>24)==(-128);
  39111. if ($52) {
  39112. $$1 = $41;$$141 = $45;$$144 = $46;$43 = $50;
  39113. } else {
  39114. label = 17;
  39115. break L1;
  39116. }
  39117. }
  39118. HEAP32[$$>>2] = 0;
  39119. HEAP32[$$47>>2] = $45;
  39120. $48 = (($2) - ($46))|0;
  39121. $$0 = $48;
  39122. break L1;
  39123. }
  39124. } while(0);
  39125. HEAP32[$$>>2] = $$2;
  39126. $$0 = -2;
  39127. }
  39128. }
  39129. } while(0);
  39130. if ((label|0) == 17) {
  39131. HEAP32[$$>>2] = 0;
  39132. $53 = (___errno_location()|0);
  39133. HEAP32[$53>>2] = 84;
  39134. $$0 = -1;
  39135. }
  39136. STACKTOP = sp;return ($$0|0);
  39137. }
  39138. function ___pthread_self_439() {
  39139. var $0 = 0, label = 0, sp = 0;
  39140. sp = STACKTOP;
  39141. $0 = (_pthread_self()|0);
  39142. return ($0|0);
  39143. }
  39144. function _strcpy($0,$1) {
  39145. $0 = $0|0;
  39146. $1 = $1|0;
  39147. var label = 0, sp = 0;
  39148. sp = STACKTOP;
  39149. (___stpcpy($0,$1)|0);
  39150. return ($0|0);
  39151. }
  39152. function ___stpcpy($0,$1) {
  39153. $0 = $0|0;
  39154. $1 = $1|0;
  39155. 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;
  39156. 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;
  39157. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39158. sp = STACKTOP;
  39159. $2 = $1;
  39160. $3 = $0;
  39161. $4 = $2 ^ $3;
  39162. $5 = $4 & 3;
  39163. $6 = ($5|0)==(0);
  39164. L1: do {
  39165. if ($6) {
  39166. $7 = $2 & 3;
  39167. $8 = ($7|0)==(0);
  39168. if ($8) {
  39169. $$026$lcssa = $1;$$027$lcssa = $0;
  39170. } else {
  39171. $$02642 = $1;$$02741 = $0;
  39172. while(1) {
  39173. $9 = HEAP8[$$02642>>0]|0;
  39174. HEAP8[$$02741>>0] = $9;
  39175. $10 = ($9<<24>>24)==(0);
  39176. if ($10) {
  39177. $$029 = $$02741;
  39178. break L1;
  39179. }
  39180. $11 = ((($$02642)) + 1|0);
  39181. $12 = ((($$02741)) + 1|0);
  39182. $13 = $11;
  39183. $14 = $13 & 3;
  39184. $15 = ($14|0)==(0);
  39185. if ($15) {
  39186. $$026$lcssa = $11;$$027$lcssa = $12;
  39187. break;
  39188. } else {
  39189. $$02642 = $11;$$02741 = $12;
  39190. }
  39191. }
  39192. }
  39193. $16 = HEAP32[$$026$lcssa>>2]|0;
  39194. $17 = (($16) + -16843009)|0;
  39195. $18 = $16 & -2139062144;
  39196. $19 = $18 ^ -2139062144;
  39197. $20 = $19 & $17;
  39198. $21 = ($20|0)==(0);
  39199. if ($21) {
  39200. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  39201. while(1) {
  39202. $22 = ((($$037)) + 4|0);
  39203. $23 = ((($$02536)) + 4|0);
  39204. HEAP32[$$02536>>2] = $24;
  39205. $25 = HEAP32[$22>>2]|0;
  39206. $26 = (($25) + -16843009)|0;
  39207. $27 = $25 & -2139062144;
  39208. $28 = $27 ^ -2139062144;
  39209. $29 = $28 & $26;
  39210. $30 = ($29|0)==(0);
  39211. if ($30) {
  39212. $$02536 = $23;$$037 = $22;$24 = $25;
  39213. } else {
  39214. $$0$lcssa = $22;$$025$lcssa = $23;
  39215. break;
  39216. }
  39217. }
  39218. } else {
  39219. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  39220. }
  39221. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  39222. label = 8;
  39223. } else {
  39224. $$1$ph = $1;$$128$ph = $0;
  39225. label = 8;
  39226. }
  39227. } while(0);
  39228. if ((label|0) == 8) {
  39229. $31 = HEAP8[$$1$ph>>0]|0;
  39230. HEAP8[$$128$ph>>0] = $31;
  39231. $32 = ($31<<24>>24)==(0);
  39232. if ($32) {
  39233. $$029 = $$128$ph;
  39234. } else {
  39235. $$12834 = $$128$ph;$$135 = $$1$ph;
  39236. while(1) {
  39237. $33 = ((($$135)) + 1|0);
  39238. $34 = ((($$12834)) + 1|0);
  39239. $35 = HEAP8[$33>>0]|0;
  39240. HEAP8[$34>>0] = $35;
  39241. $36 = ($35<<24>>24)==(0);
  39242. if ($36) {
  39243. $$029 = $34;
  39244. break;
  39245. } else {
  39246. $$12834 = $34;$$135 = $33;
  39247. }
  39248. }
  39249. }
  39250. }
  39251. return ($$029|0);
  39252. }
  39253. function ___unlist_locked_file($0) {
  39254. $0 = $0|0;
  39255. 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;
  39256. sp = STACKTOP;
  39257. $1 = ((($0)) + 68|0);
  39258. $2 = HEAP32[$1>>2]|0;
  39259. $3 = ($2|0)==(0);
  39260. if (!($3)) {
  39261. $4 = ((($0)) + 116|0);
  39262. $5 = HEAP32[$4>>2]|0;
  39263. $6 = ($5|0)==(0|0);
  39264. $$pre = ((($0)) + 112|0);
  39265. if (!($6)) {
  39266. $7 = HEAP32[$$pre>>2]|0;
  39267. $8 = ((($5)) + 112|0);
  39268. HEAP32[$8>>2] = $7;
  39269. }
  39270. $9 = HEAP32[$$pre>>2]|0;
  39271. $10 = ($9|0)==(0|0);
  39272. if ($10) {
  39273. $12 = (___pthread_self_607()|0);
  39274. $13 = ((($12)) + 232|0);
  39275. $$sink = $13;
  39276. } else {
  39277. $11 = ((($9)) + 116|0);
  39278. $$sink = $11;
  39279. }
  39280. HEAP32[$$sink>>2] = $5;
  39281. }
  39282. return;
  39283. }
  39284. function ___pthread_self_607() {
  39285. var $0 = 0, label = 0, sp = 0;
  39286. sp = STACKTOP;
  39287. $0 = (_pthread_self()|0);
  39288. return ($0|0);
  39289. }
  39290. function _fopen($0,$1) {
  39291. $0 = $0|0;
  39292. $1 = $1|0;
  39293. 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;
  39294. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  39295. sp = STACKTOP;
  39296. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  39297. $vararg_buffer8 = sp + 32|0;
  39298. $vararg_buffer3 = sp + 16|0;
  39299. $vararg_buffer = sp;
  39300. $2 = HEAP8[$1>>0]|0;
  39301. $3 = $2 << 24 >> 24;
  39302. $memchr = (_memchr(19793,$3,4)|0);
  39303. $4 = ($memchr|0)==(0|0);
  39304. if ($4) {
  39305. $5 = (___errno_location()|0);
  39306. HEAP32[$5>>2] = 22;
  39307. $$0 = 0;
  39308. } else {
  39309. $6 = (___fmodeflags($1)|0);
  39310. $7 = $0;
  39311. $8 = $6 | 32768;
  39312. HEAP32[$vararg_buffer>>2] = $7;
  39313. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  39314. HEAP32[$vararg_ptr1>>2] = $8;
  39315. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  39316. HEAP32[$vararg_ptr2>>2] = 438;
  39317. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  39318. $10 = (___syscall_ret($9)|0);
  39319. $11 = ($10|0)<(0);
  39320. if ($11) {
  39321. $$0 = 0;
  39322. } else {
  39323. $12 = $6 & 524288;
  39324. $13 = ($12|0)==(0);
  39325. if (!($13)) {
  39326. HEAP32[$vararg_buffer3>>2] = $10;
  39327. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  39328. HEAP32[$vararg_ptr6>>2] = 2;
  39329. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  39330. HEAP32[$vararg_ptr7>>2] = 1;
  39331. (___syscall221(221,($vararg_buffer3|0))|0);
  39332. }
  39333. $14 = (___fdopen($10,$1)|0);
  39334. $15 = ($14|0)==(0|0);
  39335. if ($15) {
  39336. HEAP32[$vararg_buffer8>>2] = $10;
  39337. (___syscall6(6,($vararg_buffer8|0))|0);
  39338. $$0 = 0;
  39339. } else {
  39340. $$0 = $14;
  39341. }
  39342. }
  39343. }
  39344. STACKTOP = sp;return ($$0|0);
  39345. }
  39346. function ___fmodeflags($0) {
  39347. $0 = $0|0;
  39348. 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;
  39349. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  39350. sp = STACKTOP;
  39351. $1 = (_strchr($0,43)|0);
  39352. $2 = ($1|0)==(0|0);
  39353. $3 = HEAP8[$0>>0]|0;
  39354. $not$ = ($3<<24>>24)!=(114);
  39355. $$ = $not$&1;
  39356. $$0 = $2 ? $$ : 2;
  39357. $4 = (_strchr($0,120)|0);
  39358. $5 = ($4|0)==(0|0);
  39359. $6 = $$0 | 128;
  39360. $$0$ = $5 ? $$0 : $6;
  39361. $7 = (_strchr($0,101)|0);
  39362. $8 = ($7|0)==(0|0);
  39363. $9 = $$0$ | 524288;
  39364. $$2 = $8 ? $$0$ : $9;
  39365. $10 = ($3<<24>>24)==(114);
  39366. $11 = $$2 | 64;
  39367. $$2$ = $10 ? $$2 : $11;
  39368. $12 = ($3<<24>>24)==(119);
  39369. $13 = $$2$ | 512;
  39370. $$4 = $12 ? $13 : $$2$;
  39371. $14 = ($3<<24>>24)==(97);
  39372. $15 = $$4 | 1024;
  39373. $$$4 = $14 ? $15 : $$4;
  39374. return ($$$4|0);
  39375. }
  39376. function ___fdopen($0,$1) {
  39377. $0 = $0|0;
  39378. $1 = $1|0;
  39379. 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;
  39380. 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;
  39381. 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;
  39382. sp = STACKTOP;
  39383. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  39384. $vararg_buffer12 = sp + 40|0;
  39385. $vararg_buffer7 = sp + 24|0;
  39386. $vararg_buffer3 = sp + 16|0;
  39387. $vararg_buffer = sp;
  39388. $2 = sp + 56|0;
  39389. $3 = HEAP8[$1>>0]|0;
  39390. $4 = $3 << 24 >> 24;
  39391. $memchr = (_memchr(19793,$4,4)|0);
  39392. $5 = ($memchr|0)==(0|0);
  39393. if ($5) {
  39394. $6 = (___errno_location()|0);
  39395. HEAP32[$6>>2] = 22;
  39396. $$0 = 0;
  39397. } else {
  39398. $7 = (_malloc(1156)|0);
  39399. $8 = ($7|0)==(0|0);
  39400. if ($8) {
  39401. $$0 = 0;
  39402. } else {
  39403. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  39404. $9 = (_strchr($1,43)|0);
  39405. $10 = ($9|0)==(0|0);
  39406. if ($10) {
  39407. $11 = ($3<<24>>24)==(114);
  39408. $12 = $11 ? 8 : 4;
  39409. HEAP32[$7>>2] = $12;
  39410. }
  39411. $13 = (_strchr($1,101)|0);
  39412. $14 = ($13|0)==(0|0);
  39413. if ($14) {
  39414. $16 = $3;
  39415. } else {
  39416. HEAP32[$vararg_buffer>>2] = $0;
  39417. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  39418. HEAP32[$vararg_ptr1>>2] = 2;
  39419. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  39420. HEAP32[$vararg_ptr2>>2] = 1;
  39421. (___syscall221(221,($vararg_buffer|0))|0);
  39422. $$pre = HEAP8[$1>>0]|0;
  39423. $16 = $$pre;
  39424. }
  39425. $15 = ($16<<24>>24)==(97);
  39426. if ($15) {
  39427. HEAP32[$vararg_buffer3>>2] = $0;
  39428. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  39429. HEAP32[$vararg_ptr6>>2] = 3;
  39430. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  39431. $18 = $17 & 1024;
  39432. $19 = ($18|0)==(0);
  39433. if ($19) {
  39434. $20 = $17 | 1024;
  39435. HEAP32[$vararg_buffer7>>2] = $0;
  39436. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  39437. HEAP32[$vararg_ptr10>>2] = 4;
  39438. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  39439. HEAP32[$vararg_ptr11>>2] = $20;
  39440. (___syscall221(221,($vararg_buffer7|0))|0);
  39441. }
  39442. $21 = HEAP32[$7>>2]|0;
  39443. $22 = $21 | 128;
  39444. HEAP32[$7>>2] = $22;
  39445. $29 = $22;
  39446. } else {
  39447. $$pre31 = HEAP32[$7>>2]|0;
  39448. $29 = $$pre31;
  39449. }
  39450. $23 = ((($7)) + 60|0);
  39451. HEAP32[$23>>2] = $0;
  39452. $24 = ((($7)) + 132|0);
  39453. $25 = ((($7)) + 44|0);
  39454. HEAP32[$25>>2] = $24;
  39455. $26 = ((($7)) + 48|0);
  39456. HEAP32[$26>>2] = 1024;
  39457. $27 = ((($7)) + 75|0);
  39458. HEAP8[$27>>0] = -1;
  39459. $28 = $29 & 8;
  39460. $30 = ($28|0)==(0);
  39461. if ($30) {
  39462. $31 = $2;
  39463. HEAP32[$vararg_buffer12>>2] = $0;
  39464. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  39465. HEAP32[$vararg_ptr15>>2] = 21523;
  39466. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  39467. HEAP32[$vararg_ptr16>>2] = $31;
  39468. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  39469. $33 = ($32|0)==(0);
  39470. if ($33) {
  39471. HEAP8[$27>>0] = 10;
  39472. }
  39473. }
  39474. $34 = ((($7)) + 32|0);
  39475. HEAP32[$34>>2] = 10;
  39476. $35 = ((($7)) + 36|0);
  39477. HEAP32[$35>>2] = 9;
  39478. $36 = ((($7)) + 40|0);
  39479. HEAP32[$36>>2] = 3;
  39480. $37 = ((($7)) + 12|0);
  39481. HEAP32[$37>>2] = 2;
  39482. $38 = HEAP32[(22688)>>2]|0;
  39483. $39 = ($38|0)==(0);
  39484. if ($39) {
  39485. $40 = ((($7)) + 76|0);
  39486. HEAP32[$40>>2] = -1;
  39487. }
  39488. $41 = (___ofl_add($7)|0);
  39489. $$0 = $7;
  39490. }
  39491. }
  39492. STACKTOP = sp;return ($$0|0);
  39493. }
  39494. function ___ofl_add($0) {
  39495. $0 = $0|0;
  39496. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  39497. sp = STACKTOP;
  39498. $1 = (___ofl_lock()|0);
  39499. $2 = HEAP32[$1>>2]|0;
  39500. $3 = ((($0)) + 56|0);
  39501. HEAP32[$3>>2] = $2;
  39502. $4 = HEAP32[$1>>2]|0;
  39503. $5 = ($4|0)==(0|0);
  39504. if (!($5)) {
  39505. $6 = ((($4)) + 52|0);
  39506. HEAP32[$6>>2] = $0;
  39507. }
  39508. HEAP32[$1>>2] = $0;
  39509. ___ofl_unlock();
  39510. return ($0|0);
  39511. }
  39512. function ___ofl_lock() {
  39513. var label = 0, sp = 0;
  39514. sp = STACKTOP;
  39515. ___lock((22752|0));
  39516. return (22760|0);
  39517. }
  39518. function ___ofl_unlock() {
  39519. var label = 0, sp = 0;
  39520. sp = STACKTOP;
  39521. ___unlock((22752|0));
  39522. return;
  39523. }
  39524. function _fclose($0) {
  39525. $0 = $0|0;
  39526. 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;
  39527. 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;
  39528. sp = STACKTOP;
  39529. $1 = ((($0)) + 76|0);
  39530. $2 = HEAP32[$1>>2]|0;
  39531. $3 = ($2|0)>(-1);
  39532. if ($3) {
  39533. $4 = (___lockfile($0)|0);
  39534. $29 = $4;
  39535. } else {
  39536. $29 = 0;
  39537. }
  39538. ___unlist_locked_file($0);
  39539. $5 = HEAP32[$0>>2]|0;
  39540. $6 = $5 & 1;
  39541. $7 = ($6|0)!=(0);
  39542. if (!($7)) {
  39543. $8 = (___ofl_lock()|0);
  39544. $9 = ((($0)) + 52|0);
  39545. $10 = HEAP32[$9>>2]|0;
  39546. $11 = ($10|0)==(0|0);
  39547. $12 = $10;
  39548. $$pre = ((($0)) + 56|0);
  39549. if (!($11)) {
  39550. $13 = HEAP32[$$pre>>2]|0;
  39551. $14 = ((($10)) + 56|0);
  39552. HEAP32[$14>>2] = $13;
  39553. }
  39554. $15 = HEAP32[$$pre>>2]|0;
  39555. $16 = ($15|0)==(0|0);
  39556. if (!($16)) {
  39557. $17 = ((($15)) + 52|0);
  39558. HEAP32[$17>>2] = $12;
  39559. }
  39560. $18 = HEAP32[$8>>2]|0;
  39561. $19 = ($18|0)==($0|0);
  39562. if ($19) {
  39563. HEAP32[$8>>2] = $15;
  39564. }
  39565. ___ofl_unlock();
  39566. }
  39567. $20 = (_fflush($0)|0);
  39568. $21 = ((($0)) + 12|0);
  39569. $22 = HEAP32[$21>>2]|0;
  39570. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  39571. $24 = $23 | $20;
  39572. $25 = ((($0)) + 92|0);
  39573. $26 = HEAP32[$25>>2]|0;
  39574. $27 = ($26|0)==(0|0);
  39575. if (!($27)) {
  39576. _free($26);
  39577. }
  39578. if ($7) {
  39579. $28 = ($29|0)==(0);
  39580. if (!($28)) {
  39581. ___unlockfile($0);
  39582. }
  39583. } else {
  39584. _free($0);
  39585. }
  39586. return ($24|0);
  39587. }
  39588. function _fflush($0) {
  39589. $0 = $0|0;
  39590. 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;
  39591. 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;
  39592. sp = STACKTOP;
  39593. $1 = ($0|0)==(0|0);
  39594. do {
  39595. if ($1) {
  39596. $8 = HEAP32[1057]|0;
  39597. $9 = ($8|0)==(0|0);
  39598. if ($9) {
  39599. $29 = 0;
  39600. } else {
  39601. $10 = HEAP32[1057]|0;
  39602. $11 = (_fflush($10)|0);
  39603. $29 = $11;
  39604. }
  39605. $12 = (___ofl_lock()|0);
  39606. $$02325 = HEAP32[$12>>2]|0;
  39607. $13 = ($$02325|0)==(0|0);
  39608. if ($13) {
  39609. $$024$lcssa = $29;
  39610. } else {
  39611. $$02327 = $$02325;$$02426 = $29;
  39612. while(1) {
  39613. $14 = ((($$02327)) + 76|0);
  39614. $15 = HEAP32[$14>>2]|0;
  39615. $16 = ($15|0)>(-1);
  39616. if ($16) {
  39617. $17 = (___lockfile($$02327)|0);
  39618. $26 = $17;
  39619. } else {
  39620. $26 = 0;
  39621. }
  39622. $18 = ((($$02327)) + 20|0);
  39623. $19 = HEAP32[$18>>2]|0;
  39624. $20 = ((($$02327)) + 28|0);
  39625. $21 = HEAP32[$20>>2]|0;
  39626. $22 = ($19>>>0)>($21>>>0);
  39627. if ($22) {
  39628. $23 = (___fflush_unlocked($$02327)|0);
  39629. $24 = $23 | $$02426;
  39630. $$1 = $24;
  39631. } else {
  39632. $$1 = $$02426;
  39633. }
  39634. $25 = ($26|0)==(0);
  39635. if (!($25)) {
  39636. ___unlockfile($$02327);
  39637. }
  39638. $27 = ((($$02327)) + 56|0);
  39639. $$023 = HEAP32[$27>>2]|0;
  39640. $28 = ($$023|0)==(0|0);
  39641. if ($28) {
  39642. $$024$lcssa = $$1;
  39643. break;
  39644. } else {
  39645. $$02327 = $$023;$$02426 = $$1;
  39646. }
  39647. }
  39648. }
  39649. ___ofl_unlock();
  39650. $$0 = $$024$lcssa;
  39651. } else {
  39652. $2 = ((($0)) + 76|0);
  39653. $3 = HEAP32[$2>>2]|0;
  39654. $4 = ($3|0)>(-1);
  39655. if (!($4)) {
  39656. $5 = (___fflush_unlocked($0)|0);
  39657. $$0 = $5;
  39658. break;
  39659. }
  39660. $6 = (___lockfile($0)|0);
  39661. $phitmp = ($6|0)==(0);
  39662. $7 = (___fflush_unlocked($0)|0);
  39663. if ($phitmp) {
  39664. $$0 = $7;
  39665. } else {
  39666. ___unlockfile($0);
  39667. $$0 = $7;
  39668. }
  39669. }
  39670. } while(0);
  39671. return ($$0|0);
  39672. }
  39673. function ___fflush_unlocked($0) {
  39674. $0 = $0|0;
  39675. 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;
  39676. var $9 = 0, label = 0, sp = 0;
  39677. sp = STACKTOP;
  39678. $1 = ((($0)) + 20|0);
  39679. $2 = HEAP32[$1>>2]|0;
  39680. $3 = ((($0)) + 28|0);
  39681. $4 = HEAP32[$3>>2]|0;
  39682. $5 = ($2>>>0)>($4>>>0);
  39683. if ($5) {
  39684. $6 = ((($0)) + 36|0);
  39685. $7 = HEAP32[$6>>2]|0;
  39686. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  39687. $8 = HEAP32[$1>>2]|0;
  39688. $9 = ($8|0)==(0|0);
  39689. if ($9) {
  39690. $$0 = -1;
  39691. } else {
  39692. label = 3;
  39693. }
  39694. } else {
  39695. label = 3;
  39696. }
  39697. if ((label|0) == 3) {
  39698. $10 = ((($0)) + 4|0);
  39699. $11 = HEAP32[$10>>2]|0;
  39700. $12 = ((($0)) + 8|0);
  39701. $13 = HEAP32[$12>>2]|0;
  39702. $14 = ($11>>>0)<($13>>>0);
  39703. if ($14) {
  39704. $15 = $11;
  39705. $16 = $13;
  39706. $17 = (($15) - ($16))|0;
  39707. $18 = ((($0)) + 40|0);
  39708. $19 = HEAP32[$18>>2]|0;
  39709. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  39710. }
  39711. $20 = ((($0)) + 16|0);
  39712. HEAP32[$20>>2] = 0;
  39713. HEAP32[$3>>2] = 0;
  39714. HEAP32[$1>>2] = 0;
  39715. HEAP32[$12>>2] = 0;
  39716. HEAP32[$10>>2] = 0;
  39717. $$0 = 0;
  39718. }
  39719. return ($$0|0);
  39720. }
  39721. function _fgets($0,$1,$2) {
  39722. $0 = $0|0;
  39723. $1 = $1|0;
  39724. $2 = $2|0;
  39725. 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;
  39726. 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;
  39727. 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;
  39728. var $sext$mask = 0, label = 0, sp = 0;
  39729. sp = STACKTOP;
  39730. $3 = ((($2)) + 76|0);
  39731. $4 = HEAP32[$3>>2]|0;
  39732. $5 = ($4|0)>(-1);
  39733. if ($5) {
  39734. $6 = (___lockfile($2)|0);
  39735. $17 = $6;
  39736. } else {
  39737. $17 = 0;
  39738. }
  39739. $7 = (($1) + -1)|0;
  39740. $8 = ($1|0)<(2);
  39741. $9 = ($7|0)!=(0);
  39742. if ($8) {
  39743. $10 = ((($2)) + 74|0);
  39744. $11 = HEAP8[$10>>0]|0;
  39745. $12 = $11 << 24 >> 24;
  39746. $13 = (($12) + 255)|0;
  39747. $14 = $13 | $12;
  39748. $15 = $14&255;
  39749. HEAP8[$10>>0] = $15;
  39750. $16 = ($17|0)==(0);
  39751. if (!($16)) {
  39752. ___unlockfile($2);
  39753. }
  39754. if ($9) {
  39755. $$0 = 0;
  39756. } else {
  39757. HEAP8[$0>>0] = 0;
  39758. $$0 = $0;
  39759. }
  39760. } else {
  39761. L11: do {
  39762. if ($9) {
  39763. $18 = ((($2)) + 4|0);
  39764. $19 = ((($2)) + 8|0);
  39765. $$063 = $7;$$064 = $0;
  39766. while(1) {
  39767. $20 = HEAP32[$18>>2]|0;
  39768. $21 = HEAP32[$19>>2]|0;
  39769. $22 = $20;
  39770. $23 = (($21) - ($22))|0;
  39771. $24 = (_memchr($20,10,$23)|0);
  39772. $25 = ($24|0)==(0|0);
  39773. $26 = $24;
  39774. $27 = (1 - ($22))|0;
  39775. $28 = (($27) + ($26))|0;
  39776. $29 = $25 ? $23 : $28;
  39777. $30 = ($29>>>0)<($$063>>>0);
  39778. $31 = $30 ? $29 : $$063;
  39779. _memcpy(($$064|0),($20|0),($31|0))|0;
  39780. $32 = HEAP32[$18>>2]|0;
  39781. $33 = (($32) + ($31)|0);
  39782. HEAP32[$18>>2] = $33;
  39783. $34 = (($$064) + ($31)|0);
  39784. $35 = (($$063) - ($31))|0;
  39785. $36 = ($35|0)!=(0);
  39786. $or$cond = $25 & $36;
  39787. if (!($or$cond)) {
  39788. $$1 = $34;
  39789. label = 17;
  39790. break L11;
  39791. }
  39792. $37 = HEAP32[$19>>2]|0;
  39793. $38 = ($33>>>0)<($37>>>0);
  39794. if ($38) {
  39795. $39 = ((($33)) + 1|0);
  39796. HEAP32[$18>>2] = $39;
  39797. $40 = HEAP8[$33>>0]|0;
  39798. $41 = $40&255;
  39799. $50 = $41;
  39800. } else {
  39801. $42 = (___uflow($2)|0);
  39802. $43 = ($42|0)<(0);
  39803. if ($43) {
  39804. break;
  39805. } else {
  39806. $50 = $42;
  39807. }
  39808. }
  39809. $48 = (($35) + -1)|0;
  39810. $49 = $50&255;
  39811. $51 = ((($34)) + 1|0);
  39812. HEAP8[$34>>0] = $49;
  39813. $sext$mask = $50 & 255;
  39814. $52 = ($sext$mask|0)!=(10);
  39815. $53 = ($48|0)!=(0);
  39816. $or$cond3 = $53 & $52;
  39817. if ($or$cond3) {
  39818. $$063 = $48;$$064 = $51;
  39819. } else {
  39820. $$1 = $51;
  39821. label = 17;
  39822. break L11;
  39823. }
  39824. }
  39825. $44 = ($34|0)==($0|0);
  39826. if ($44) {
  39827. $$06266 = 0;
  39828. } else {
  39829. $45 = HEAP32[$2>>2]|0;
  39830. $46 = $45 & 16;
  39831. $47 = ($46|0)==(0);
  39832. if ($47) {
  39833. $$06266 = 0;
  39834. } else {
  39835. $$1 = $34;
  39836. label = 17;
  39837. }
  39838. }
  39839. } else {
  39840. $$1 = $0;
  39841. label = 17;
  39842. }
  39843. } while(0);
  39844. if ((label|0) == 17) {
  39845. $54 = ($0|0)==(0|0);
  39846. if ($54) {
  39847. $$06266 = 0;
  39848. } else {
  39849. HEAP8[$$1>>0] = 0;
  39850. $$06266 = $0;
  39851. }
  39852. }
  39853. $55 = ($17|0)==(0);
  39854. if ($55) {
  39855. $$0 = $$06266;
  39856. } else {
  39857. ___unlockfile($2);
  39858. $$0 = $$06266;
  39859. }
  39860. }
  39861. return ($$0|0);
  39862. }
  39863. function _feof($0) {
  39864. $0 = $0|0;
  39865. 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;
  39866. sp = STACKTOP;
  39867. $1 = ((($0)) + 76|0);
  39868. $2 = HEAP32[$1>>2]|0;
  39869. $3 = ($2|0)>(-1);
  39870. if ($3) {
  39871. $6 = (___lockfile($0)|0);
  39872. $phitmp = ($6|0)==(0);
  39873. $7 = HEAP32[$0>>2]|0;
  39874. $8 = $7 >>> 4;
  39875. $$lobit = $8 & 1;
  39876. if ($phitmp) {
  39877. $$lobit9 = $$lobit;
  39878. } else {
  39879. ___unlockfile($0);
  39880. $$lobit9 = $$lobit;
  39881. }
  39882. } else {
  39883. $4 = HEAP32[$0>>2]|0;
  39884. $5 = $4 >>> 4;
  39885. $$lobit8 = $5 & 1;
  39886. $$lobit9 = $$lobit8;
  39887. }
  39888. return ($$lobit9|0);
  39889. }
  39890. function _sscanf($0,$1,$varargs) {
  39891. $0 = $0|0;
  39892. $1 = $1|0;
  39893. $varargs = $varargs|0;
  39894. var $2 = 0, $3 = 0, label = 0, sp = 0;
  39895. sp = STACKTOP;
  39896. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39897. $2 = sp;
  39898. HEAP32[$2>>2] = $varargs;
  39899. $3 = (_vsscanf($0,$1,$2)|0);
  39900. STACKTOP = sp;return ($3|0);
  39901. }
  39902. function _vsscanf($0,$1,$2) {
  39903. $0 = $0|0;
  39904. $1 = $1|0;
  39905. $2 = $2|0;
  39906. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, stop = 0;
  39907. sp = STACKTOP;
  39908. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  39909. $3 = sp;
  39910. dest=$3; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  39911. $4 = ((($3)) + 32|0);
  39912. HEAP32[$4>>2] = 11;
  39913. $5 = ((($3)) + 44|0);
  39914. HEAP32[$5>>2] = $0;
  39915. $6 = ((($3)) + 76|0);
  39916. HEAP32[$6>>2] = -1;
  39917. $7 = ((($3)) + 84|0);
  39918. HEAP32[$7>>2] = $0;
  39919. $8 = (_vfscanf($3,$1,$2)|0);
  39920. STACKTOP = sp;return ($8|0);
  39921. }
  39922. function _do_read($0,$1,$2) {
  39923. $0 = $0|0;
  39924. $1 = $1|0;
  39925. $2 = $2|0;
  39926. var $3 = 0, label = 0, sp = 0;
  39927. sp = STACKTOP;
  39928. $3 = (___string_read($0,$1,$2)|0);
  39929. return ($3|0);
  39930. }
  39931. function _vfscanf($0,$1,$2) {
  39932. $0 = $0|0;
  39933. $1 = $1|0;
  39934. $2 = $2|0;
  39935. 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;
  39936. 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;
  39937. 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;
  39938. 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;
  39939. 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;
  39940. 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;
  39941. 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;
  39942. 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;
  39943. 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;
  39944. 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;
  39945. 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;
  39946. 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;
  39947. 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;
  39948. 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;
  39949. 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;
  39950. 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;
  39951. 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;
  39952. 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;
  39953. 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;
  39954. 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;
  39955. 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;
  39956. sp = STACKTOP;
  39957. STACKTOP = STACKTOP + 288|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(288|0);
  39958. $3 = sp + 8|0;
  39959. $4 = sp + 17|0;
  39960. $5 = sp;
  39961. $6 = sp + 16|0;
  39962. $7 = ((($0)) + 76|0);
  39963. $8 = HEAP32[$7>>2]|0;
  39964. $9 = ($8|0)>(-1);
  39965. if ($9) {
  39966. $10 = (___lockfile($0)|0);
  39967. $306 = $10;
  39968. } else {
  39969. $306 = 0;
  39970. }
  39971. $11 = HEAP8[$1>>0]|0;
  39972. $12 = ($11<<24>>24)==(0);
  39973. L4: do {
  39974. if ($12) {
  39975. $$3291 = 0;
  39976. } else {
  39977. $13 = ((($0)) + 4|0);
  39978. $14 = ((($0)) + 100|0);
  39979. $15 = ((($0)) + 108|0);
  39980. $16 = ((($0)) + 8|0);
  39981. $17 = ((($4)) + 10|0);
  39982. $18 = ((($4)) + 33|0);
  39983. $$sroa$2$0$$sroa_idx13 = ((($3)) + 4|0);
  39984. $19 = ((($4)) + 46|0);
  39985. $20 = ((($4)) + 94|0);
  39986. $21 = ((($4)) + 1|0);
  39987. $22 = ((($4)) + 1|0);
  39988. $$0273429 = $1;$$0283428 = 0;$$0288425 = 0;$$0305423 = 0;$102 = 0;$24 = $11;
  39989. L6: while(1) {
  39990. $23 = $24&255;
  39991. $25 = (_isspace($23)|0);
  39992. $26 = ($25|0)==(0);
  39993. L8: do {
  39994. if ($26) {
  39995. $53 = ($24<<24>>24)==(37);
  39996. L10: do {
  39997. if ($53) {
  39998. $54 = ((($$0273429)) + 1|0);
  39999. $55 = HEAP8[$54>>0]|0;
  40000. L12: do {
  40001. switch ($55<<24>>24) {
  40002. case 37: {
  40003. break L10;
  40004. break;
  40005. }
  40006. case 42: {
  40007. $76 = ((($$0273429)) + 2|0);
  40008. $$0293 = 0;$$2275 = $76;
  40009. break;
  40010. }
  40011. default: {
  40012. $77 = $55&255;
  40013. $isdigittmp = (($77) + -48)|0;
  40014. $isdigit = ($isdigittmp>>>0)<(10);
  40015. if ($isdigit) {
  40016. $78 = ((($$0273429)) + 2|0);
  40017. $79 = HEAP8[$78>>0]|0;
  40018. $80 = ($79<<24>>24)==(36);
  40019. if ($80) {
  40020. $81 = (_arg_n($2,$isdigittmp)|0);
  40021. $82 = ((($$0273429)) + 3|0);
  40022. $$0293 = $81;$$2275 = $82;
  40023. break L12;
  40024. }
  40025. }
  40026. $arglist_current = HEAP32[$2>>2]|0;
  40027. $83 = $arglist_current;
  40028. $84 = ((0) + 4|0);
  40029. $expanded1 = $84;
  40030. $expanded = (($expanded1) - 1)|0;
  40031. $85 = (($83) + ($expanded))|0;
  40032. $86 = ((0) + 4|0);
  40033. $expanded5 = $86;
  40034. $expanded4 = (($expanded5) - 1)|0;
  40035. $expanded3 = $expanded4 ^ -1;
  40036. $87 = $85 & $expanded3;
  40037. $88 = $87;
  40038. $89 = HEAP32[$88>>2]|0;
  40039. $arglist_next = ((($88)) + 4|0);
  40040. HEAP32[$2>>2] = $arglist_next;
  40041. $$0293 = $89;$$2275 = $54;
  40042. }
  40043. }
  40044. } while(0);
  40045. $90 = HEAP8[$$2275>>0]|0;
  40046. $91 = $90&255;
  40047. $isdigittmp315414 = (($91) + -48)|0;
  40048. $isdigit316415 = ($isdigittmp315414>>>0)<(10);
  40049. if ($isdigit316415) {
  40050. $$0266417 = 0;$$3416 = $$2275;$95 = $91;
  40051. while(1) {
  40052. $92 = ($$0266417*10)|0;
  40053. $93 = (($92) + -48)|0;
  40054. $94 = (($93) + ($95))|0;
  40055. $96 = ((($$3416)) + 1|0);
  40056. $97 = HEAP8[$96>>0]|0;
  40057. $98 = $97&255;
  40058. $isdigittmp315 = (($98) + -48)|0;
  40059. $isdigit316 = ($isdigittmp315>>>0)<(10);
  40060. if ($isdigit316) {
  40061. $$0266417 = $94;$$3416 = $96;$95 = $98;
  40062. } else {
  40063. $$0266$lcssa = $94;$$3$lcssa = $96;$$lcssa355 = $97;
  40064. break;
  40065. }
  40066. }
  40067. } else {
  40068. $$0266$lcssa = 0;$$3$lcssa = $$2275;$$lcssa355 = $90;
  40069. }
  40070. $99 = ($$lcssa355<<24>>24)==(109);
  40071. $100 = ($$0293|0)!=(0|0);
  40072. $101 = ((($$3$lcssa)) + 1|0);
  40073. $$$0305 = $99 ? 0 : $$0305423;
  40074. $$327 = $99 ? 0 : $102;
  40075. $$$3 = $99 ? $101 : $$3$lcssa;
  40076. $narrow = $100 & $99;
  40077. $103 = ((($$$3)) + 1|0);
  40078. $104 = HEAP8[$$$3>>0]|0;
  40079. switch ($104<<24>>24) {
  40080. case 104: {
  40081. $105 = HEAP8[$103>>0]|0;
  40082. $106 = ($105<<24>>24)==(104);
  40083. $107 = ((($$$3)) + 2|0);
  40084. $$319 = $106 ? $107 : $103;
  40085. $$320 = $106 ? -2 : -1;
  40086. $$0268 = $$320;$$5 = $$319;
  40087. break;
  40088. }
  40089. case 108: {
  40090. $108 = HEAP8[$103>>0]|0;
  40091. $109 = ($108<<24>>24)==(108);
  40092. $110 = ((($$$3)) + 2|0);
  40093. $$321 = $109 ? $110 : $103;
  40094. $$322 = $109 ? 3 : 1;
  40095. $$0268 = $$322;$$5 = $$321;
  40096. break;
  40097. }
  40098. case 106: {
  40099. $$0268 = 3;$$5 = $103;
  40100. break;
  40101. }
  40102. case 116: case 122: {
  40103. $$0268 = 1;$$5 = $103;
  40104. break;
  40105. }
  40106. case 76: {
  40107. $$0268 = 2;$$5 = $103;
  40108. break;
  40109. }
  40110. 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: {
  40111. $$0268 = 0;$$5 = $$$3;
  40112. break;
  40113. }
  40114. default: {
  40115. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40116. label = 137;
  40117. break L6;
  40118. }
  40119. }
  40120. $111 = HEAP8[$$5>>0]|0;
  40121. $112 = $111&255;
  40122. $113 = $112 & 47;
  40123. $114 = ($113|0)==(3);
  40124. $115 = $112 | 32;
  40125. $$ = $114 ? $115 : $112;
  40126. $$$0268 = $114 ? 1 : $$0268;
  40127. $trunc = $$&255;
  40128. switch ($trunc<<24>>24) {
  40129. case 99: {
  40130. $116 = ($$0266$lcssa|0)>(1);
  40131. $$$0266 = $116 ? $$0266$lcssa : 1;
  40132. $$1267 = $$$0266;$$1284 = $$0283428;
  40133. break;
  40134. }
  40135. case 91: {
  40136. $$1267 = $$0266$lcssa;$$1284 = $$0283428;
  40137. break;
  40138. }
  40139. case 110: {
  40140. $117 = ($$0283428|0)<(0);
  40141. $118 = $117 << 31 >> 31;
  40142. _store_int($$0293,$$$0268,$$0283428,$118);
  40143. $$11 = $$5;$$1289 = $$0288425;$$2285 = $$0283428;$$6311 = $$$0305;$307 = $$327;
  40144. break L8;
  40145. break;
  40146. }
  40147. default: {
  40148. ___shlim($0,0);
  40149. while(1) {
  40150. $119 = HEAP32[$13>>2]|0;
  40151. $120 = HEAP32[$14>>2]|0;
  40152. $121 = ($119>>>0)<($120>>>0);
  40153. if ($121) {
  40154. $122 = ((($119)) + 1|0);
  40155. HEAP32[$13>>2] = $122;
  40156. $123 = HEAP8[$119>>0]|0;
  40157. $124 = $123&255;
  40158. $126 = $124;
  40159. } else {
  40160. $125 = (___shgetc($0)|0);
  40161. $126 = $125;
  40162. }
  40163. $127 = (_isspace($126)|0);
  40164. $128 = ($127|0)==(0);
  40165. if ($128) {
  40166. break;
  40167. }
  40168. }
  40169. $129 = HEAP32[$14>>2]|0;
  40170. $130 = ($129|0)==(0|0);
  40171. if ($130) {
  40172. $$pre507 = HEAP32[$13>>2]|0;
  40173. $138 = $$pre507;
  40174. } else {
  40175. $131 = HEAP32[$13>>2]|0;
  40176. $132 = ((($131)) + -1|0);
  40177. HEAP32[$13>>2] = $132;
  40178. $133 = $132;
  40179. $138 = $133;
  40180. }
  40181. $134 = HEAP32[$15>>2]|0;
  40182. $135 = HEAP32[$16>>2]|0;
  40183. $136 = (($134) + ($$0283428))|0;
  40184. $137 = (($136) + ($138))|0;
  40185. $139 = (($137) - ($135))|0;
  40186. $$1267 = $$0266$lcssa;$$1284 = $139;
  40187. }
  40188. }
  40189. ___shlim($0,$$1267);
  40190. $140 = HEAP32[$13>>2]|0;
  40191. $141 = HEAP32[$14>>2]|0;
  40192. $142 = ($140>>>0)<($141>>>0);
  40193. if ($142) {
  40194. $143 = ((($140)) + 1|0);
  40195. HEAP32[$13>>2] = $143;
  40196. $147 = $141;
  40197. } else {
  40198. $144 = (___shgetc($0)|0);
  40199. $145 = ($144|0)<(0);
  40200. if ($145) {
  40201. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40202. label = 137;
  40203. break L6;
  40204. }
  40205. $$pre509 = HEAP32[$14>>2]|0;
  40206. $147 = $$pre509;
  40207. }
  40208. $146 = ($147|0)==(0|0);
  40209. if (!($146)) {
  40210. $148 = HEAP32[$13>>2]|0;
  40211. $149 = ((($148)) + -1|0);
  40212. HEAP32[$13>>2] = $149;
  40213. }
  40214. L55: do {
  40215. switch ($trunc<<24>>24) {
  40216. case 91: case 99: case 115: {
  40217. $150 = ($$|0)==(99);
  40218. $151 = $$ | 16;
  40219. $152 = ($151|0)==(115);
  40220. L57: do {
  40221. if ($152) {
  40222. $153 = ($$|0)==(115);
  40223. _memset(($21|0),-1,256)|0;
  40224. HEAP8[$4>>0] = 0;
  40225. if ($153) {
  40226. HEAP8[$18>>0] = 0;
  40227. ;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;
  40228. $$9 = $$5;
  40229. } else {
  40230. $$9 = $$5;
  40231. }
  40232. } else {
  40233. $154 = ((($$5)) + 1|0);
  40234. $155 = HEAP8[$154>>0]|0;
  40235. $156 = ($155<<24>>24)==(94);
  40236. $157 = ((($$5)) + 2|0);
  40237. $$0292 = $156&1;
  40238. $$6 = $156 ? $157 : $154;
  40239. $158 = $156&1;
  40240. _memset(($22|0),($158|0),256)|0;
  40241. HEAP8[$4>>0] = 0;
  40242. $159 = HEAP8[$$6>>0]|0;
  40243. switch ($159<<24>>24) {
  40244. case 45: {
  40245. $$sink443 = $19;
  40246. label = 64;
  40247. break;
  40248. }
  40249. case 93: {
  40250. $$sink443 = $20;
  40251. label = 64;
  40252. break;
  40253. }
  40254. default: {
  40255. $$pre514 = $$0292 ^ 1;
  40256. $$pre515 = $$pre514&255;
  40257. $$7$ph = $$6;$$pre$phi516Z2D = $$pre515;
  40258. }
  40259. }
  40260. if ((label|0) == 64) {
  40261. label = 0;
  40262. $160 = ((($$6)) + 1|0);
  40263. $161 = $$0292 ^ 1;
  40264. $162 = $161&255;
  40265. HEAP8[$$sink443>>0] = $162;
  40266. $$7$ph = $160;$$pre$phi516Z2D = $162;
  40267. }
  40268. $$7 = $$7$ph;
  40269. while(1) {
  40270. $163 = HEAP8[$$7>>0]|0;
  40271. L69: do {
  40272. switch ($163<<24>>24) {
  40273. case 0: {
  40274. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40275. label = 137;
  40276. break L6;
  40277. break;
  40278. }
  40279. case 93: {
  40280. $$9 = $$7;
  40281. break L57;
  40282. break;
  40283. }
  40284. case 45: {
  40285. $164 = ((($$7)) + 1|0);
  40286. $165 = HEAP8[$164>>0]|0;
  40287. switch ($165<<24>>24) {
  40288. case 93: case 0: {
  40289. $$8 = $$7;$176 = 45;
  40290. break L69;
  40291. break;
  40292. }
  40293. default: {
  40294. }
  40295. }
  40296. $166 = ((($$7)) + -1|0);
  40297. $167 = HEAP8[$166>>0]|0;
  40298. $168 = ($167&255)<($165&255);
  40299. if ($168) {
  40300. $169 = $167&255;
  40301. $$0286420 = $169;
  40302. while(1) {
  40303. $170 = (($$0286420) + 1)|0;
  40304. $171 = (($4) + ($170)|0);
  40305. HEAP8[$171>>0] = $$pre$phi516Z2D;
  40306. $172 = HEAP8[$164>>0]|0;
  40307. $173 = $172&255;
  40308. $174 = ($170|0)<($173|0);
  40309. if ($174) {
  40310. $$0286420 = $170;
  40311. } else {
  40312. $$8 = $164;$176 = $172;
  40313. break;
  40314. }
  40315. }
  40316. } else {
  40317. $$8 = $164;$176 = $165;
  40318. }
  40319. break;
  40320. }
  40321. default: {
  40322. $$8 = $$7;$176 = $163;
  40323. }
  40324. }
  40325. } while(0);
  40326. $175 = $176&255;
  40327. $177 = (($175) + 1)|0;
  40328. $178 = (($4) + ($177)|0);
  40329. HEAP8[$178>>0] = $$pre$phi516Z2D;
  40330. $179 = ((($$8)) + 1|0);
  40331. $$7 = $179;
  40332. }
  40333. }
  40334. } while(0);
  40335. $180 = (($$1267) + 1)|0;
  40336. $181 = $150 ? $180 : 31;
  40337. $182 = ($$$0268|0)==(1);
  40338. L77: do {
  40339. if ($182) {
  40340. if ($narrow) {
  40341. $183 = $181 << 2;
  40342. $184 = (_malloc($183)|0);
  40343. $185 = ($184|0)==(0|0);
  40344. if ($185) {
  40345. $$7312 = 0;$309 = 0;$narrow469 = 1;
  40346. label = 137;
  40347. break L6;
  40348. } else {
  40349. $311 = $184;
  40350. }
  40351. } else {
  40352. $311 = $$0293;
  40353. }
  40354. HEAP32[$3>>2] = 0;
  40355. HEAP32[$$sroa$2$0$$sroa_idx13>>2] = 0;
  40356. $$0276$ph = $181;$$0278$ph = 0;$$ph = $311;
  40357. L82: while(1) {
  40358. $186 = ($$ph|0)==(0|0);
  40359. $$0278$ph336 = $$0278$ph;
  40360. while(1) {
  40361. L86: while(1) {
  40362. $187 = HEAP32[$13>>2]|0;
  40363. $188 = HEAP32[$14>>2]|0;
  40364. $189 = ($187>>>0)<($188>>>0);
  40365. if ($189) {
  40366. $190 = ((($187)) + 1|0);
  40367. HEAP32[$13>>2] = $190;
  40368. $191 = HEAP8[$187>>0]|0;
  40369. $192 = $191&255;
  40370. $195 = $192;
  40371. } else {
  40372. $193 = (___shgetc($0)|0);
  40373. $195 = $193;
  40374. }
  40375. $194 = (($195) + 1)|0;
  40376. $196 = (($4) + ($194)|0);
  40377. $197 = HEAP8[$196>>0]|0;
  40378. $198 = ($197<<24>>24)==(0);
  40379. if ($198) {
  40380. break L82;
  40381. }
  40382. $199 = $195&255;
  40383. HEAP8[$6>>0] = $199;
  40384. $200 = (_mbrtowc($5,$6,1,$3)|0);
  40385. switch ($200|0) {
  40386. case -1: {
  40387. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  40388. label = 137;
  40389. break L6;
  40390. break;
  40391. }
  40392. case -2: {
  40393. break;
  40394. }
  40395. default: {
  40396. break L86;
  40397. }
  40398. }
  40399. }
  40400. if ($186) {
  40401. $$1279 = $$0278$ph336;
  40402. } else {
  40403. $201 = (($$ph) + ($$0278$ph336<<2)|0);
  40404. $202 = (($$0278$ph336) + 1)|0;
  40405. $203 = HEAP32[$5>>2]|0;
  40406. HEAP32[$201>>2] = $203;
  40407. $$1279 = $202;
  40408. }
  40409. $204 = ($$1279|0)==($$0276$ph|0);
  40410. $or$cond = $narrow & $204;
  40411. if ($or$cond) {
  40412. break;
  40413. } else {
  40414. $$0278$ph336 = $$1279;
  40415. }
  40416. }
  40417. $factor331 = $$0276$ph << 1;
  40418. $205 = $factor331 | 1;
  40419. $206 = $205 << 2;
  40420. $207 = (_realloc($$ph,$206)|0);
  40421. $208 = ($207|0)==(0|0);
  40422. if ($208) {
  40423. $$7312 = 0;$309 = $$ph;$narrow469 = 1;
  40424. label = 137;
  40425. break L6;
  40426. } else {
  40427. $$0278$ph$phi = $$0276$ph;$$0276$ph = $205;$$ph = $207;$$0278$ph = $$0278$ph$phi;
  40428. }
  40429. }
  40430. $209 = (_mbsinit($3)|0);
  40431. $210 = ($209|0)==(0);
  40432. if ($210) {
  40433. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  40434. label = 137;
  40435. break L6;
  40436. } else {
  40437. $$4282 = $$0278$ph336;$$4309 = 0;$$5299 = $$ph;$312 = $$ph;
  40438. }
  40439. } else {
  40440. if ($narrow) {
  40441. $211 = (_malloc($181)|0);
  40442. $212 = ($211|0)==(0|0);
  40443. if ($212) {
  40444. $$7312 = 0;$309 = 0;$narrow469 = 1;
  40445. label = 137;
  40446. break L6;
  40447. } else {
  40448. $$1277$ph = $181;$$2280$ph = 0;$$2307$ph = $211;
  40449. }
  40450. while(1) {
  40451. $$2280 = $$2280$ph;
  40452. while(1) {
  40453. $213 = HEAP32[$13>>2]|0;
  40454. $214 = HEAP32[$14>>2]|0;
  40455. $215 = ($213>>>0)<($214>>>0);
  40456. if ($215) {
  40457. $216 = ((($213)) + 1|0);
  40458. HEAP32[$13>>2] = $216;
  40459. $217 = HEAP8[$213>>0]|0;
  40460. $218 = $217&255;
  40461. $221 = $218;
  40462. } else {
  40463. $219 = (___shgetc($0)|0);
  40464. $221 = $219;
  40465. }
  40466. $220 = (($221) + 1)|0;
  40467. $222 = (($4) + ($220)|0);
  40468. $223 = HEAP8[$222>>0]|0;
  40469. $224 = ($223<<24>>24)==(0);
  40470. if ($224) {
  40471. $$4282 = $$2280;$$4309 = $$2307$ph;$$5299 = 0;$312 = 0;
  40472. break L77;
  40473. }
  40474. $225 = $221&255;
  40475. $226 = (($$2280) + 1)|0;
  40476. $227 = (($$2307$ph) + ($$2280)|0);
  40477. HEAP8[$227>>0] = $225;
  40478. $228 = ($226|0)==($$1277$ph|0);
  40479. if ($228) {
  40480. break;
  40481. } else {
  40482. $$2280 = $226;
  40483. }
  40484. }
  40485. $factor = $$1277$ph << 1;
  40486. $229 = $factor | 1;
  40487. $230 = (_realloc($$2307$ph,$229)|0);
  40488. $231 = ($230|0)==(0|0);
  40489. if ($231) {
  40490. $$7312 = $$2307$ph;$309 = 0;$narrow469 = 1;
  40491. label = 137;
  40492. break L6;
  40493. } else {
  40494. $$2280$ph$phi = $$1277$ph;$$1277$ph = $229;$$2307$ph = $230;$$2280$ph = $$2280$ph$phi;
  40495. }
  40496. }
  40497. }
  40498. $232 = ($$0293|0)==(0|0);
  40499. if ($232) {
  40500. $250 = $147;
  40501. while(1) {
  40502. $248 = HEAP32[$13>>2]|0;
  40503. $249 = ($248>>>0)<($250>>>0);
  40504. if ($249) {
  40505. $251 = ((($248)) + 1|0);
  40506. HEAP32[$13>>2] = $251;
  40507. $252 = HEAP8[$248>>0]|0;
  40508. $253 = $252&255;
  40509. $256 = $253;
  40510. } else {
  40511. $254 = (___shgetc($0)|0);
  40512. $256 = $254;
  40513. }
  40514. $255 = (($256) + 1)|0;
  40515. $257 = (($4) + ($255)|0);
  40516. $258 = HEAP8[$257>>0]|0;
  40517. $259 = ($258<<24>>24)==(0);
  40518. if ($259) {
  40519. $$4282 = 0;$$4309 = 0;$$5299 = 0;$312 = 0;
  40520. break L77;
  40521. }
  40522. $$pre512 = HEAP32[$14>>2]|0;
  40523. $250 = $$pre512;
  40524. }
  40525. } else {
  40526. $$3281 = 0;$235 = $147;
  40527. while(1) {
  40528. $233 = HEAP32[$13>>2]|0;
  40529. $234 = ($233>>>0)<($235>>>0);
  40530. if ($234) {
  40531. $236 = ((($233)) + 1|0);
  40532. HEAP32[$13>>2] = $236;
  40533. $237 = HEAP8[$233>>0]|0;
  40534. $238 = $237&255;
  40535. $241 = $238;
  40536. } else {
  40537. $239 = (___shgetc($0)|0);
  40538. $241 = $239;
  40539. }
  40540. $240 = (($241) + 1)|0;
  40541. $242 = (($4) + ($240)|0);
  40542. $243 = HEAP8[$242>>0]|0;
  40543. $244 = ($243<<24>>24)==(0);
  40544. if ($244) {
  40545. $$4282 = $$3281;$$4309 = $$0293;$$5299 = 0;$312 = 0;
  40546. break L77;
  40547. }
  40548. $245 = $241&255;
  40549. $246 = (($$3281) + 1)|0;
  40550. $247 = (($$0293) + ($$3281)|0);
  40551. HEAP8[$247>>0] = $245;
  40552. $$pre511 = HEAP32[$14>>2]|0;
  40553. $$3281 = $246;$235 = $$pre511;
  40554. }
  40555. }
  40556. }
  40557. } while(0);
  40558. $260 = HEAP32[$14>>2]|0;
  40559. $261 = ($260|0)==(0|0);
  40560. if ($261) {
  40561. $$pre513 = HEAP32[$13>>2]|0;
  40562. $268 = $$pre513;
  40563. } else {
  40564. $262 = HEAP32[$13>>2]|0;
  40565. $263 = ((($262)) + -1|0);
  40566. HEAP32[$13>>2] = $263;
  40567. $264 = $263;
  40568. $268 = $264;
  40569. }
  40570. $265 = HEAP32[$15>>2]|0;
  40571. $266 = HEAP32[$16>>2]|0;
  40572. $267 = (($268) - ($266))|0;
  40573. $269 = (($267) + ($265))|0;
  40574. $270 = ($269|0)==(0);
  40575. if ($270) {
  40576. $$9314$ph = $$4309;$$ph353 = $312;
  40577. label = 139;
  40578. break L6;
  40579. }
  40580. $$not = $150 ^ 1;
  40581. $271 = ($269|0)==($$1267|0);
  40582. $or$cond318 = $271 | $$not;
  40583. if (!($or$cond318)) {
  40584. $$9314$ph = $$4309;$$ph353 = $312;
  40585. label = 139;
  40586. break L6;
  40587. }
  40588. do {
  40589. if ($narrow) {
  40590. if ($182) {
  40591. HEAP32[$$0293>>2] = $$5299;
  40592. break;
  40593. } else {
  40594. HEAP32[$$0293>>2] = $$4309;
  40595. break;
  40596. }
  40597. }
  40598. } while(0);
  40599. if ($150) {
  40600. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  40601. } else {
  40602. $272 = ($$5299|0)==(0|0);
  40603. if (!($272)) {
  40604. $273 = (($$5299) + ($$4282<<2)|0);
  40605. HEAP32[$273>>2] = 0;
  40606. }
  40607. $274 = ($$4309|0)==(0|0);
  40608. if ($274) {
  40609. $$10 = $$9;$$5310 = 0;$310 = $312;
  40610. break L55;
  40611. }
  40612. $275 = (($$4309) + ($$4282)|0);
  40613. HEAP8[$275>>0] = 0;
  40614. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  40615. }
  40616. break;
  40617. }
  40618. case 120: case 88: case 112: {
  40619. $$0272 = 16;
  40620. label = 125;
  40621. break;
  40622. }
  40623. case 111: {
  40624. $$0272 = 8;
  40625. label = 125;
  40626. break;
  40627. }
  40628. case 117: case 100: {
  40629. $$0272 = 10;
  40630. label = 125;
  40631. break;
  40632. }
  40633. case 105: {
  40634. $$0272 = 0;
  40635. label = 125;
  40636. break;
  40637. }
  40638. case 71: case 103: case 70: case 102: case 69: case 101: case 65: case 97: {
  40639. $285 = (+___floatscan($0,$$$0268,0));
  40640. $286 = HEAP32[$15>>2]|0;
  40641. $287 = HEAP32[$13>>2]|0;
  40642. $288 = HEAP32[$16>>2]|0;
  40643. $289 = (($288) - ($287))|0;
  40644. $290 = ($286|0)==($289|0);
  40645. if ($290) {
  40646. $$9314$ph = $$$0305;$$ph353 = $$327;
  40647. label = 139;
  40648. break L6;
  40649. }
  40650. $291 = ($$0293|0)==(0|0);
  40651. if ($291) {
  40652. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40653. } else {
  40654. switch ($$$0268|0) {
  40655. case 0: {
  40656. $292 = $285;
  40657. HEAPF32[$$0293>>2] = $292;
  40658. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40659. break L55;
  40660. break;
  40661. }
  40662. case 1: {
  40663. HEAPF64[$$0293>>3] = $285;
  40664. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40665. break L55;
  40666. break;
  40667. }
  40668. case 2: {
  40669. HEAPF64[$$0293>>3] = $285;
  40670. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40671. break L55;
  40672. break;
  40673. }
  40674. default: {
  40675. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40676. break L55;
  40677. }
  40678. }
  40679. }
  40680. break;
  40681. }
  40682. default: {
  40683. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40684. }
  40685. }
  40686. } while(0);
  40687. do {
  40688. if ((label|0) == 125) {
  40689. label = 0;
  40690. $276 = (___intscan($0,$$0272,0,-1,-1)|0);
  40691. $277 = tempRet0;
  40692. $278 = HEAP32[$15>>2]|0;
  40693. $279 = HEAP32[$13>>2]|0;
  40694. $280 = HEAP32[$16>>2]|0;
  40695. $281 = (($280) - ($279))|0;
  40696. $282 = ($278|0)==($281|0);
  40697. if ($282) {
  40698. $$9314$ph = $$$0305;$$ph353 = $$327;
  40699. label = 139;
  40700. break L6;
  40701. }
  40702. $283 = ($$|0)==(112);
  40703. $or$cond3 = $100 & $283;
  40704. if ($or$cond3) {
  40705. $284 = $276;
  40706. HEAP32[$$0293>>2] = $284;
  40707. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40708. break;
  40709. } else {
  40710. _store_int($$0293,$$$0268,$276,$277);
  40711. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40712. break;
  40713. }
  40714. }
  40715. } while(0);
  40716. $293 = HEAP32[$15>>2]|0;
  40717. $294 = HEAP32[$13>>2]|0;
  40718. $295 = HEAP32[$16>>2]|0;
  40719. $296 = (($293) + ($$1284))|0;
  40720. $297 = (($296) + ($294))|0;
  40721. $298 = (($297) - ($295))|0;
  40722. $299 = $100&1;
  40723. $$0288$ = (($299) + ($$0288425))|0;
  40724. $$11 = $$10;$$1289 = $$0288$;$$2285 = $298;$$6311 = $$5310;$307 = $310;
  40725. break L8;
  40726. }
  40727. } while(0);
  40728. $56 = $53&1;
  40729. $57 = (($$0273429) + ($56)|0);
  40730. ___shlim($0,0);
  40731. $58 = HEAP32[$13>>2]|0;
  40732. $59 = HEAP32[$14>>2]|0;
  40733. $60 = ($58>>>0)<($59>>>0);
  40734. if ($60) {
  40735. $61 = ((($58)) + 1|0);
  40736. HEAP32[$13>>2] = $61;
  40737. $62 = HEAP8[$58>>0]|0;
  40738. $63 = $62&255;
  40739. $68 = $63;
  40740. } else {
  40741. $64 = (___shgetc($0)|0);
  40742. $68 = $64;
  40743. }
  40744. $65 = HEAP8[$57>>0]|0;
  40745. $66 = $65&255;
  40746. $67 = ($68|0)==($66|0);
  40747. if (!($67)) {
  40748. label = 22;
  40749. break L6;
  40750. }
  40751. $75 = (($$0283428) + 1)|0;
  40752. $$11 = $57;$$1289 = $$0288425;$$2285 = $75;$$6311 = $$0305423;$307 = $102;
  40753. } else {
  40754. $$1274 = $$0273429;
  40755. while(1) {
  40756. $27 = ((($$1274)) + 1|0);
  40757. $28 = HEAP8[$27>>0]|0;
  40758. $29 = $28&255;
  40759. $30 = (_isspace($29)|0);
  40760. $31 = ($30|0)==(0);
  40761. if ($31) {
  40762. break;
  40763. } else {
  40764. $$1274 = $27;
  40765. }
  40766. }
  40767. ___shlim($0,0);
  40768. while(1) {
  40769. $32 = HEAP32[$13>>2]|0;
  40770. $33 = HEAP32[$14>>2]|0;
  40771. $34 = ($32>>>0)<($33>>>0);
  40772. if ($34) {
  40773. $35 = ((($32)) + 1|0);
  40774. HEAP32[$13>>2] = $35;
  40775. $36 = HEAP8[$32>>0]|0;
  40776. $37 = $36&255;
  40777. $39 = $37;
  40778. } else {
  40779. $38 = (___shgetc($0)|0);
  40780. $39 = $38;
  40781. }
  40782. $40 = (_isspace($39)|0);
  40783. $41 = ($40|0)==(0);
  40784. if ($41) {
  40785. break;
  40786. }
  40787. }
  40788. $42 = HEAP32[$14>>2]|0;
  40789. $43 = ($42|0)==(0|0);
  40790. if ($43) {
  40791. $$pre = HEAP32[$13>>2]|0;
  40792. $51 = $$pre;
  40793. } else {
  40794. $44 = HEAP32[$13>>2]|0;
  40795. $45 = ((($44)) + -1|0);
  40796. HEAP32[$13>>2] = $45;
  40797. $46 = $45;
  40798. $51 = $46;
  40799. }
  40800. $47 = HEAP32[$15>>2]|0;
  40801. $48 = HEAP32[$16>>2]|0;
  40802. $49 = (($47) + ($$0283428))|0;
  40803. $50 = (($49) + ($51))|0;
  40804. $52 = (($50) - ($48))|0;
  40805. $$11 = $$1274;$$1289 = $$0288425;$$2285 = $52;$$6311 = $$0305423;$307 = $102;
  40806. }
  40807. } while(0);
  40808. $300 = ((($$11)) + 1|0);
  40809. $301 = HEAP8[$300>>0]|0;
  40810. $302 = ($301<<24>>24)==(0);
  40811. if ($302) {
  40812. $$3291 = $$1289;
  40813. break L4;
  40814. } else {
  40815. $$0273429 = $300;$$0283428 = $$2285;$$0288425 = $$1289;$$0305423 = $$6311;$102 = $307;$24 = $301;
  40816. }
  40817. }
  40818. if ((label|0) == 22) {
  40819. $69 = HEAP32[$14>>2]|0;
  40820. $70 = ($69|0)==(0|0);
  40821. if (!($70)) {
  40822. $71 = HEAP32[$13>>2]|0;
  40823. $72 = ((($71)) + -1|0);
  40824. HEAP32[$13>>2] = $72;
  40825. }
  40826. $73 = ($68|0)>(-1);
  40827. $74 = ($$0288425|0)!=(0);
  40828. $or$cond5 = $74 | $73;
  40829. if ($or$cond5) {
  40830. $$3291 = $$0288425;
  40831. break;
  40832. } else {
  40833. $$1271 = 0;$$8313 = $$0305423;$308 = $102;
  40834. label = 138;
  40835. }
  40836. }
  40837. else if ((label|0) == 137) {
  40838. $$328$le441 = $narrow469&1;
  40839. $$old4 = ($$0288425|0)==(0);
  40840. if ($$old4) {
  40841. $$1271 = $$328$le441;$$8313 = $$7312;$308 = $309;
  40842. label = 138;
  40843. } else {
  40844. $$2 = $$328$le441;$$2290 = $$0288425;$$9314 = $$7312;$304 = $309;
  40845. }
  40846. }
  40847. else if ((label|0) == 139) {
  40848. $$328$le439 = $narrow&1;
  40849. $$2 = $$328$le439;$$2290 = $$0288425;$$9314 = $$9314$ph;$304 = $$ph353;
  40850. }
  40851. if ((label|0) == 138) {
  40852. $$2 = $$1271;$$2290 = -1;$$9314 = $$8313;$304 = $308;
  40853. }
  40854. $303 = ($$2|0)==(0);
  40855. if ($303) {
  40856. $$3291 = $$2290;
  40857. } else {
  40858. _free($$9314);
  40859. _free($304);
  40860. $$3291 = $$2290;
  40861. }
  40862. }
  40863. } while(0);
  40864. $305 = ($306|0)==(0);
  40865. if (!($305)) {
  40866. ___unlockfile($0);
  40867. }
  40868. STACKTOP = sp;return ($$3291|0);
  40869. }
  40870. function _arg_n($0,$1) {
  40871. $0 = $0|0;
  40872. $1 = $1|0;
  40873. 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;
  40874. var sp = 0;
  40875. sp = STACKTOP;
  40876. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  40877. $2 = sp;
  40878. $vacopy_currentptr = HEAP32[$0>>2]|0;
  40879. HEAP32[$2>>2] = $vacopy_currentptr;
  40880. $$0 = $1;
  40881. while(1) {
  40882. $3 = ($$0>>>0)>(1);
  40883. $arglist_current = HEAP32[$2>>2]|0;
  40884. $4 = $arglist_current;
  40885. $5 = ((0) + 4|0);
  40886. $expanded1 = $5;
  40887. $expanded = (($expanded1) - 1)|0;
  40888. $6 = (($4) + ($expanded))|0;
  40889. $7 = ((0) + 4|0);
  40890. $expanded5 = $7;
  40891. $expanded4 = (($expanded5) - 1)|0;
  40892. $expanded3 = $expanded4 ^ -1;
  40893. $8 = $6 & $expanded3;
  40894. $9 = $8;
  40895. $10 = HEAP32[$9>>2]|0;
  40896. $arglist_next = ((($9)) + 4|0);
  40897. HEAP32[$2>>2] = $arglist_next;
  40898. $11 = (($$0) + -1)|0;
  40899. if ($3) {
  40900. $$0 = $11;
  40901. } else {
  40902. break;
  40903. }
  40904. }
  40905. STACKTOP = sp;return ($10|0);
  40906. }
  40907. function _store_int($0,$1,$2,$3) {
  40908. $0 = $0|0;
  40909. $1 = $1|0;
  40910. $2 = $2|0;
  40911. $3 = $3|0;
  40912. var $10 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40913. sp = STACKTOP;
  40914. $4 = ($0|0)==(0|0);
  40915. L1: do {
  40916. if (!($4)) {
  40917. switch ($1|0) {
  40918. case -2: {
  40919. $5 = $2&255;
  40920. HEAP8[$0>>0] = $5;
  40921. break L1;
  40922. break;
  40923. }
  40924. case -1: {
  40925. $6 = $2&65535;
  40926. HEAP16[$0>>1] = $6;
  40927. break L1;
  40928. break;
  40929. }
  40930. case 0: {
  40931. HEAP32[$0>>2] = $2;
  40932. break L1;
  40933. break;
  40934. }
  40935. case 1: {
  40936. HEAP32[$0>>2] = $2;
  40937. break L1;
  40938. break;
  40939. }
  40940. case 3: {
  40941. $7 = $0;
  40942. $8 = $7;
  40943. HEAP32[$8>>2] = $2;
  40944. $9 = (($7) + 4)|0;
  40945. $10 = $9;
  40946. HEAP32[$10>>2] = $3;
  40947. break L1;
  40948. break;
  40949. }
  40950. default: {
  40951. break L1;
  40952. }
  40953. }
  40954. }
  40955. } while(0);
  40956. return;
  40957. }
  40958. function _mbsinit($0) {
  40959. $0 = $0|0;
  40960. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  40961. sp = STACKTOP;
  40962. $1 = ($0|0)==(0|0);
  40963. if ($1) {
  40964. $5 = 1;
  40965. } else {
  40966. $2 = HEAP32[$0>>2]|0;
  40967. $3 = ($2|0)==(0);
  40968. $5 = $3;
  40969. }
  40970. $4 = $5&1;
  40971. return ($4|0);
  40972. }
  40973. function ___string_read($0,$1,$2) {
  40974. $0 = $0|0;
  40975. $1 = $1|0;
  40976. $2 = $2|0;
  40977. var $$027 = 0, $$027$ = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40978. sp = STACKTOP;
  40979. $3 = ((($0)) + 84|0);
  40980. $4 = HEAP32[$3>>2]|0;
  40981. $5 = (($2) + 256)|0;
  40982. $6 = (_memchr($4,0,$5)|0);
  40983. $7 = ($6|0)==(0|0);
  40984. $8 = $6;
  40985. $9 = $4;
  40986. $10 = (($8) - ($9))|0;
  40987. $$027 = $7 ? $5 : $10;
  40988. $11 = ($$027>>>0)<($2>>>0);
  40989. $$027$ = $11 ? $$027 : $2;
  40990. _memcpy(($1|0),($4|0),($$027$|0))|0;
  40991. $12 = (($4) + ($$027$)|0);
  40992. $13 = ((($0)) + 4|0);
  40993. HEAP32[$13>>2] = $12;
  40994. $14 = (($4) + ($$027)|0);
  40995. $15 = ((($0)) + 8|0);
  40996. HEAP32[$15>>2] = $14;
  40997. HEAP32[$3>>2] = $14;
  40998. return ($$027$|0);
  40999. }
  41000. function _fseek($0,$1,$2) {
  41001. $0 = $0|0;
  41002. $1 = $1|0;
  41003. $2 = $2|0;
  41004. var $3 = 0, label = 0, sp = 0;
  41005. sp = STACKTOP;
  41006. $3 = (___fseeko($0,$1,$2)|0);
  41007. return ($3|0);
  41008. }
  41009. function ___fseeko($0,$1,$2) {
  41010. $0 = $0|0;
  41011. $1 = $1|0;
  41012. $2 = $2|0;
  41013. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  41014. sp = STACKTOP;
  41015. $3 = ((($0)) + 76|0);
  41016. $4 = HEAP32[$3>>2]|0;
  41017. $5 = ($4|0)>(-1);
  41018. if ($5) {
  41019. $7 = (___lockfile($0)|0);
  41020. $phitmp = ($7|0)==(0);
  41021. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  41022. if ($phitmp) {
  41023. $9 = $8;
  41024. } else {
  41025. ___unlockfile($0);
  41026. $9 = $8;
  41027. }
  41028. } else {
  41029. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  41030. $9 = $6;
  41031. }
  41032. return ($9|0);
  41033. }
  41034. function ___fseeko_unlocked($0,$1,$2) {
  41035. $0 = $0|0;
  41036. $1 = $1|0;
  41037. $2 = $2|0;
  41038. 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;
  41039. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  41040. sp = STACKTOP;
  41041. $3 = ($2|0)==(1);
  41042. if ($3) {
  41043. $4 = ((($0)) + 8|0);
  41044. $5 = HEAP32[$4>>2]|0;
  41045. $6 = ((($0)) + 4|0);
  41046. $7 = HEAP32[$6>>2]|0;
  41047. $8 = (($1) - ($5))|0;
  41048. $9 = (($8) + ($7))|0;
  41049. $$019 = $9;
  41050. } else {
  41051. $$019 = $1;
  41052. }
  41053. $10 = ((($0)) + 20|0);
  41054. $11 = HEAP32[$10>>2]|0;
  41055. $12 = ((($0)) + 28|0);
  41056. $13 = HEAP32[$12>>2]|0;
  41057. $14 = ($11>>>0)>($13>>>0);
  41058. if ($14) {
  41059. $15 = ((($0)) + 36|0);
  41060. $16 = HEAP32[$15>>2]|0;
  41061. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  41062. $17 = HEAP32[$10>>2]|0;
  41063. $18 = ($17|0)==(0|0);
  41064. if ($18) {
  41065. $$0 = -1;
  41066. } else {
  41067. label = 5;
  41068. }
  41069. } else {
  41070. label = 5;
  41071. }
  41072. if ((label|0) == 5) {
  41073. $19 = ((($0)) + 16|0);
  41074. HEAP32[$19>>2] = 0;
  41075. HEAP32[$12>>2] = 0;
  41076. HEAP32[$10>>2] = 0;
  41077. $20 = ((($0)) + 40|0);
  41078. $21 = HEAP32[$20>>2]|0;
  41079. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  41080. $23 = ($22|0)<(0);
  41081. if ($23) {
  41082. $$0 = -1;
  41083. } else {
  41084. $24 = ((($0)) + 8|0);
  41085. HEAP32[$24>>2] = 0;
  41086. $25 = ((($0)) + 4|0);
  41087. HEAP32[$25>>2] = 0;
  41088. $26 = HEAP32[$0>>2]|0;
  41089. $27 = $26 & -17;
  41090. HEAP32[$0>>2] = $27;
  41091. $$0 = 0;
  41092. }
  41093. }
  41094. return ($$0|0);
  41095. }
  41096. function _strstr($0,$1) {
  41097. $0 = $0|0;
  41098. $1 = $1|0;
  41099. 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;
  41100. 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;
  41101. sp = STACKTOP;
  41102. $2 = HEAP8[$1>>0]|0;
  41103. $3 = ($2<<24>>24)==(0);
  41104. do {
  41105. if ($3) {
  41106. $$0 = $0;
  41107. } else {
  41108. $4 = $2 << 24 >> 24;
  41109. $5 = (_strchr($0,$4)|0);
  41110. $6 = ($5|0)==(0|0);
  41111. if ($6) {
  41112. $$0 = 0;
  41113. } else {
  41114. $7 = ((($1)) + 1|0);
  41115. $8 = HEAP8[$7>>0]|0;
  41116. $9 = ($8<<24>>24)==(0);
  41117. if ($9) {
  41118. $$0 = $5;
  41119. } else {
  41120. $10 = ((($5)) + 1|0);
  41121. $11 = HEAP8[$10>>0]|0;
  41122. $12 = ($11<<24>>24)==(0);
  41123. if ($12) {
  41124. $$0 = 0;
  41125. } else {
  41126. $13 = ((($1)) + 2|0);
  41127. $14 = HEAP8[$13>>0]|0;
  41128. $15 = ($14<<24>>24)==(0);
  41129. if ($15) {
  41130. $16 = (_twobyte_strstr($5,$1)|0);
  41131. $$0 = $16;
  41132. break;
  41133. }
  41134. $17 = ((($5)) + 2|0);
  41135. $18 = HEAP8[$17>>0]|0;
  41136. $19 = ($18<<24>>24)==(0);
  41137. if ($19) {
  41138. $$0 = 0;
  41139. } else {
  41140. $20 = ((($1)) + 3|0);
  41141. $21 = HEAP8[$20>>0]|0;
  41142. $22 = ($21<<24>>24)==(0);
  41143. if ($22) {
  41144. $23 = (_threebyte_strstr($5,$1)|0);
  41145. $$0 = $23;
  41146. break;
  41147. }
  41148. $24 = ((($5)) + 3|0);
  41149. $25 = HEAP8[$24>>0]|0;
  41150. $26 = ($25<<24>>24)==(0);
  41151. if ($26) {
  41152. $$0 = 0;
  41153. } else {
  41154. $27 = ((($1)) + 4|0);
  41155. $28 = HEAP8[$27>>0]|0;
  41156. $29 = ($28<<24>>24)==(0);
  41157. if ($29) {
  41158. $30 = (_fourbyte_strstr($5,$1)|0);
  41159. $$0 = $30;
  41160. break;
  41161. } else {
  41162. $31 = (_twoway_strstr($5,$1)|0);
  41163. $$0 = $31;
  41164. break;
  41165. }
  41166. }
  41167. }
  41168. }
  41169. }
  41170. }
  41171. }
  41172. } while(0);
  41173. return ($$0|0);
  41174. }
  41175. function _twobyte_strstr($0,$1) {
  41176. $0 = $0|0;
  41177. $1 = $1|0;
  41178. 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;
  41179. var label = 0, sp = 0;
  41180. sp = STACKTOP;
  41181. $2 = HEAP8[$1>>0]|0;
  41182. $3 = $2&255;
  41183. $4 = $3 << 8;
  41184. $5 = ((($1)) + 1|0);
  41185. $6 = HEAP8[$5>>0]|0;
  41186. $7 = $6&255;
  41187. $8 = $4 | $7;
  41188. $9 = HEAP8[$0>>0]|0;
  41189. $10 = $9&255;
  41190. $$sink$in = $10;$$sink17$sink = $0;
  41191. while(1) {
  41192. $11 = ((($$sink17$sink)) + 1|0);
  41193. $12 = HEAP8[$11>>0]|0;
  41194. $13 = ($12<<24>>24)==(0);
  41195. if ($13) {
  41196. $$lcssa = 0;
  41197. break;
  41198. }
  41199. $$sink = $$sink$in << 8;
  41200. $14 = $12&255;
  41201. $$sink$masked = $$sink & 65280;
  41202. $15 = $14 | $$sink$masked;
  41203. $16 = ($15|0)==($8|0);
  41204. if ($16) {
  41205. $$lcssa = $$sink17$sink;
  41206. break;
  41207. } else {
  41208. $$sink$in = $15;$$sink17$sink = $11;
  41209. }
  41210. }
  41211. return ($$lcssa|0);
  41212. }
  41213. function _threebyte_strstr($0,$1) {
  41214. $0 = $0|0;
  41215. $1 = $1|0;
  41216. 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;
  41217. 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;
  41218. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  41219. sp = STACKTOP;
  41220. $2 = HEAP8[$1>>0]|0;
  41221. $3 = $2&255;
  41222. $4 = $3 << 24;
  41223. $5 = ((($1)) + 1|0);
  41224. $6 = HEAP8[$5>>0]|0;
  41225. $7 = $6&255;
  41226. $8 = $7 << 16;
  41227. $9 = $8 | $4;
  41228. $10 = ((($1)) + 2|0);
  41229. $11 = HEAP8[$10>>0]|0;
  41230. $12 = $11&255;
  41231. $13 = $12 << 8;
  41232. $14 = $9 | $13;
  41233. $15 = HEAP8[$0>>0]|0;
  41234. $16 = $15&255;
  41235. $17 = $16 << 24;
  41236. $18 = ((($0)) + 1|0);
  41237. $19 = HEAP8[$18>>0]|0;
  41238. $20 = $19&255;
  41239. $21 = $20 << 16;
  41240. $22 = $21 | $17;
  41241. $23 = ((($0)) + 2|0);
  41242. $24 = HEAP8[$23>>0]|0;
  41243. $25 = $24&255;
  41244. $26 = $25 << 8;
  41245. $27 = $22 | $26;
  41246. $28 = ($24<<24>>24)!=(0);
  41247. $$not17 = $28 ^ 1;
  41248. $29 = ($27|0)==($14|0);
  41249. $or$cond18 = $29 | $$not17;
  41250. if ($or$cond18) {
  41251. $$016$lcssa = $23;$$lcssa = $28;
  41252. } else {
  41253. $$01619 = $23;$$020 = $27;
  41254. while(1) {
  41255. $30 = ((($$01619)) + 1|0);
  41256. $31 = HEAP8[$30>>0]|0;
  41257. $32 = $31&255;
  41258. $33 = $32 | $$020;
  41259. $34 = $33 << 8;
  41260. $35 = ($31<<24>>24)!=(0);
  41261. $$not = $35 ^ 1;
  41262. $36 = ($34|0)==($14|0);
  41263. $or$cond = $36 | $$not;
  41264. if ($or$cond) {
  41265. $$016$lcssa = $30;$$lcssa = $35;
  41266. break;
  41267. } else {
  41268. $$01619 = $30;$$020 = $34;
  41269. }
  41270. }
  41271. }
  41272. $37 = ((($$016$lcssa)) + -2|0);
  41273. $38 = $$lcssa ? $37 : 0;
  41274. return ($38|0);
  41275. }
  41276. function _fourbyte_strstr($0,$1) {
  41277. $0 = $0|0;
  41278. $1 = $1|0;
  41279. 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;
  41280. 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;
  41281. 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;
  41282. sp = STACKTOP;
  41283. $2 = HEAP8[$1>>0]|0;
  41284. $3 = $2&255;
  41285. $4 = $3 << 24;
  41286. $5 = ((($1)) + 1|0);
  41287. $6 = HEAP8[$5>>0]|0;
  41288. $7 = $6&255;
  41289. $8 = $7 << 16;
  41290. $9 = $8 | $4;
  41291. $10 = ((($1)) + 2|0);
  41292. $11 = HEAP8[$10>>0]|0;
  41293. $12 = $11&255;
  41294. $13 = $12 << 8;
  41295. $14 = $9 | $13;
  41296. $15 = ((($1)) + 3|0);
  41297. $16 = HEAP8[$15>>0]|0;
  41298. $17 = $16&255;
  41299. $18 = $14 | $17;
  41300. $19 = HEAP8[$0>>0]|0;
  41301. $20 = $19&255;
  41302. $21 = $20 << 24;
  41303. $22 = ((($0)) + 1|0);
  41304. $23 = HEAP8[$22>>0]|0;
  41305. $24 = $23&255;
  41306. $25 = $24 << 16;
  41307. $26 = $25 | $21;
  41308. $27 = ((($0)) + 2|0);
  41309. $28 = HEAP8[$27>>0]|0;
  41310. $29 = $28&255;
  41311. $30 = $29 << 8;
  41312. $31 = $26 | $30;
  41313. $32 = ((($0)) + 3|0);
  41314. $33 = HEAP8[$32>>0]|0;
  41315. $34 = $33&255;
  41316. $35 = $34 | $31;
  41317. $36 = ($33<<24>>24)!=(0);
  41318. $$not22 = $36 ^ 1;
  41319. $37 = ($35|0)==($18|0);
  41320. $or$cond23 = $37 | $$not22;
  41321. if ($or$cond23) {
  41322. $$lcssa = $36;$$sink21$lcssa = $32;
  41323. } else {
  41324. $$sink2124 = $32;$39 = $35;
  41325. while(1) {
  41326. $38 = $39 << 8;
  41327. $40 = ((($$sink2124)) + 1|0);
  41328. $41 = HEAP8[$40>>0]|0;
  41329. $42 = $41&255;
  41330. $43 = $42 | $38;
  41331. $44 = ($41<<24>>24)!=(0);
  41332. $$not = $44 ^ 1;
  41333. $45 = ($43|0)==($18|0);
  41334. $or$cond = $45 | $$not;
  41335. if ($or$cond) {
  41336. $$lcssa = $44;$$sink21$lcssa = $40;
  41337. break;
  41338. } else {
  41339. $$sink2124 = $40;$39 = $43;
  41340. }
  41341. }
  41342. }
  41343. $46 = ((($$sink21$lcssa)) + -3|0);
  41344. $47 = $$lcssa ? $46 : 0;
  41345. return ($47|0);
  41346. }
  41347. function _twoway_strstr($0,$1) {
  41348. $0 = $0|0;
  41349. $1 = $1|0;
  41350. 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;
  41351. 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;
  41352. 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;
  41353. 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;
  41354. 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;
  41355. 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;
  41356. 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;
  41357. 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;
  41358. 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;
  41359. sp = STACKTOP;
  41360. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  41361. $2 = sp + 1024|0;
  41362. $3 = sp;
  41363. ;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;
  41364. $4 = HEAP8[$1>>0]|0;
  41365. $cond265 = ($4<<24>>24)==(0);
  41366. L1: do {
  41367. if ($cond265) {
  41368. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  41369. label = 27;
  41370. } else {
  41371. $5 = $4&255;
  41372. $$0187266 = 0;$12 = $4;$20 = $5;
  41373. while(1) {
  41374. $8 = (($0) + ($$0187266)|0);
  41375. $9 = HEAP8[$8>>0]|0;
  41376. $10 = ($9<<24>>24)==(0);
  41377. if ($10) {
  41378. $$3 = 0;
  41379. break L1;
  41380. }
  41381. $11 = $12 & 31;
  41382. $13 = $11&255;
  41383. $14 = 1 << $13;
  41384. $div188 = ($12&255) >>> 5;
  41385. $15 = $div188&255;
  41386. $16 = (($2) + ($15<<2)|0);
  41387. $17 = HEAP32[$16>>2]|0;
  41388. $18 = $17 | $14;
  41389. HEAP32[$16>>2] = $18;
  41390. $7 = (($$0187266) + 1)|0;
  41391. $19 = (($3) + ($20<<2)|0);
  41392. HEAP32[$19>>2] = $7;
  41393. $21 = (($1) + ($7)|0);
  41394. $22 = HEAP8[$21>>0]|0;
  41395. $23 = $22&255;
  41396. $cond = ($22<<24>>24)==(0);
  41397. if ($cond) {
  41398. break;
  41399. } else {
  41400. $$0187266 = $7;$12 = $22;$20 = $23;
  41401. }
  41402. }
  41403. $6 = ($7>>>0)>(1);
  41404. if ($6) {
  41405. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  41406. L7: while(1) {
  41407. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  41408. while(1) {
  41409. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  41410. L11: while(1) {
  41411. $$0179244 = 1;$31 = $131;
  41412. while(1) {
  41413. $27 = (($$0179244) + ($$0185$ph261))|0;
  41414. $28 = (($1) + ($27)|0);
  41415. $29 = HEAP8[$28>>0]|0;
  41416. $30 = (($1) + ($31)|0);
  41417. $32 = HEAP8[$30>>0]|0;
  41418. $33 = ($29<<24>>24)==($32<<24>>24);
  41419. if (!($33)) {
  41420. break L11;
  41421. }
  41422. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  41423. $25 = (($$0179244) + 1)|0;
  41424. if ($34) {
  41425. break;
  41426. }
  41427. $24 = (($25) + ($$0183$ph200250))|0;
  41428. $26 = ($24>>>0)<($7>>>0);
  41429. if ($26) {
  41430. $$0179244 = $25;$31 = $24;
  41431. } else {
  41432. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  41433. break L7;
  41434. }
  41435. }
  41436. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  41437. $36 = (($35) + 1)|0;
  41438. $37 = ($36>>>0)<($7>>>0);
  41439. if ($37) {
  41440. $$0183$ph200250 = $35;$131 = $36;
  41441. } else {
  41442. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  41443. break L7;
  41444. }
  41445. }
  41446. $38 = ($29&255)>($32&255);
  41447. $39 = (($31) - ($$0185$ph261))|0;
  41448. if (!($38)) {
  41449. break;
  41450. }
  41451. $43 = (($31) + 1)|0;
  41452. $44 = ($43>>>0)<($7>>>0);
  41453. if ($44) {
  41454. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  41455. } else {
  41456. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  41457. break L7;
  41458. }
  41459. }
  41460. $40 = (($$0183$ph200250) + 1)|0;
  41461. $41 = (($$0183$ph200250) + 2)|0;
  41462. $42 = ($41>>>0)<($7>>>0);
  41463. if ($42) {
  41464. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  41465. } else {
  41466. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  41467. break;
  41468. }
  41469. }
  41470. if ($6) {
  41471. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  41472. while(1) {
  41473. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  41474. while(1) {
  41475. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  41476. L26: while(1) {
  41477. $$1180224 = 1;$52 = $133;
  41478. while(1) {
  41479. $48 = (($$1180224) + ($$1186$ph240))|0;
  41480. $49 = (($1) + ($48)|0);
  41481. $50 = HEAP8[$49>>0]|0;
  41482. $51 = (($1) + ($52)|0);
  41483. $53 = HEAP8[$51>>0]|0;
  41484. $54 = ($50<<24>>24)==($53<<24>>24);
  41485. if (!($54)) {
  41486. break L26;
  41487. }
  41488. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  41489. $46 = (($$1180224) + 1)|0;
  41490. if ($55) {
  41491. break;
  41492. }
  41493. $45 = (($46) + ($$1184$ph196229))|0;
  41494. $47 = ($45>>>0)<($7>>>0);
  41495. if ($47) {
  41496. $$1180224 = $46;$52 = $45;
  41497. } else {
  41498. $$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;
  41499. label = 27;
  41500. break L1;
  41501. }
  41502. }
  41503. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  41504. $57 = (($56) + 1)|0;
  41505. $58 = ($57>>>0)<($7>>>0);
  41506. if ($58) {
  41507. $$1184$ph196229 = $56;$133 = $57;
  41508. } else {
  41509. $$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;
  41510. label = 27;
  41511. break L1;
  41512. }
  41513. }
  41514. $59 = ($50&255)<($53&255);
  41515. $60 = (($52) - ($$1186$ph240))|0;
  41516. if (!($59)) {
  41517. break;
  41518. }
  41519. $64 = (($52) + 1)|0;
  41520. $65 = ($64>>>0)<($7>>>0);
  41521. if ($65) {
  41522. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  41523. } else {
  41524. $$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;
  41525. label = 27;
  41526. break L1;
  41527. }
  41528. }
  41529. $61 = (($$1184$ph196229) + 1)|0;
  41530. $62 = (($$1184$ph196229) + 2)|0;
  41531. $63 = ($62>>>0)<($7>>>0);
  41532. if ($63) {
  41533. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  41534. } else {
  41535. $$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;
  41536. label = 27;
  41537. break;
  41538. }
  41539. }
  41540. } else {
  41541. $$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;
  41542. label = 27;
  41543. }
  41544. } else {
  41545. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  41546. label = 27;
  41547. }
  41548. }
  41549. } while(0);
  41550. L36: do {
  41551. if ((label|0) == 27) {
  41552. $66 = (($$1186$ph$lcssa) + 1)|0;
  41553. $67 = (($$0185$ph$lcssa322) + 1)|0;
  41554. $68 = ($66>>>0)>($67>>>0);
  41555. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  41556. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  41557. $69 = (($1) + ($$1176$$0175)|0);
  41558. $70 = (($$1186$$0185) + 1)|0;
  41559. $71 = (_memcmp($1,$69,$70)|0);
  41560. $72 = ($71|0)==(0);
  41561. if ($72) {
  41562. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  41563. $$0168 = $77;$$3178 = $$1176$$0175;
  41564. } else {
  41565. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  41566. $74 = (($73) + -1)|0;
  41567. $75 = ($$1186$$0185>>>0)>($74>>>0);
  41568. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  41569. $76 = (($$1186$$0185$) + 1)|0;
  41570. $$0168 = 0;$$3178 = $76;
  41571. }
  41572. $78 = $$0187$lcssa320321 | 63;
  41573. $79 = (($$0187$lcssa320321) + -1)|0;
  41574. $80 = ($$0168|0)!=(0);
  41575. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  41576. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  41577. while(1) {
  41578. $82 = $$0170;
  41579. $83 = $$0166;
  41580. $84 = (($82) - ($83))|0;
  41581. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  41582. do {
  41583. if ($85) {
  41584. $86 = (_memchr($$0170,0,$78)|0);
  41585. $87 = ($86|0)==(0|0);
  41586. if ($87) {
  41587. $91 = (($$0170) + ($78)|0);
  41588. $$3173 = $91;
  41589. break;
  41590. } else {
  41591. $88 = $86;
  41592. $89 = (($88) - ($83))|0;
  41593. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  41594. if ($90) {
  41595. $$3 = 0;
  41596. break L36;
  41597. } else {
  41598. $$3173 = $86;
  41599. break;
  41600. }
  41601. }
  41602. } else {
  41603. $$3173 = $$0170;
  41604. }
  41605. } while(0);
  41606. $92 = (($$0166) + ($79)|0);
  41607. $93 = HEAP8[$92>>0]|0;
  41608. $div = ($93&255) >>> 5;
  41609. $94 = $div&255;
  41610. $95 = (($2) + ($94<<2)|0);
  41611. $96 = HEAP32[$95>>2]|0;
  41612. $97 = $93 & 31;
  41613. $98 = $97&255;
  41614. $99 = 1 << $98;
  41615. $100 = $99 & $96;
  41616. $101 = ($100|0)==(0);
  41617. L50: do {
  41618. if ($101) {
  41619. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  41620. } else {
  41621. $102 = $93&255;
  41622. $103 = (($3) + ($102<<2)|0);
  41623. $104 = HEAP32[$103>>2]|0;
  41624. $105 = (($$0187$lcssa320321) - ($104))|0;
  41625. $106 = ($105|0)==(0);
  41626. if (!($106)) {
  41627. $107 = ($$0169|0)!=(0);
  41628. $or$cond = $80 & $107;
  41629. $108 = ($105>>>0)<($$3178>>>0);
  41630. $or$cond190 = $or$cond & $108;
  41631. $$2181 = $or$cond190 ? $81 : $105;
  41632. $$0169$be = 0;$$2181$sink = $$2181;
  41633. break;
  41634. }
  41635. $110 = ($70>>>0)>($$0169>>>0);
  41636. $111 = $110 ? $70 : $$0169;
  41637. $112 = (($1) + ($111)|0);
  41638. $113 = HEAP8[$112>>0]|0;
  41639. $cond191222 = ($113<<24>>24)==(0);
  41640. L55: do {
  41641. if ($cond191222) {
  41642. $$4 = $70;
  41643. } else {
  41644. $$3182223 = $111;$117 = $113;
  41645. while(1) {
  41646. $114 = (($$0166) + ($$3182223)|0);
  41647. $115 = HEAP8[$114>>0]|0;
  41648. $116 = ($117<<24>>24)==($115<<24>>24);
  41649. if (!($116)) {
  41650. break;
  41651. }
  41652. $118 = (($$3182223) + 1)|0;
  41653. $119 = (($1) + ($118)|0);
  41654. $120 = HEAP8[$119>>0]|0;
  41655. $cond191 = ($120<<24>>24)==(0);
  41656. if ($cond191) {
  41657. $$4 = $70;
  41658. break L55;
  41659. } else {
  41660. $$3182223 = $118;$117 = $120;
  41661. }
  41662. }
  41663. $121 = (($$3182223) - ($$1186$$0185))|0;
  41664. $$0169$be = 0;$$2181$sink = $121;
  41665. break L50;
  41666. }
  41667. } while(0);
  41668. while(1) {
  41669. $122 = ($$4>>>0)>($$0169>>>0);
  41670. if (!($122)) {
  41671. $$3 = $$0166;
  41672. break L36;
  41673. }
  41674. $123 = (($$4) + -1)|0;
  41675. $124 = (($1) + ($123)|0);
  41676. $125 = HEAP8[$124>>0]|0;
  41677. $126 = (($$0166) + ($123)|0);
  41678. $127 = HEAP8[$126>>0]|0;
  41679. $128 = ($125<<24>>24)==($127<<24>>24);
  41680. if ($128) {
  41681. $$4 = $123;
  41682. } else {
  41683. $$0169$be = $$0168;$$2181$sink = $$3178;
  41684. break;
  41685. }
  41686. }
  41687. }
  41688. } while(0);
  41689. $109 = (($$0166) + ($$2181$sink)|0);
  41690. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  41691. }
  41692. }
  41693. } while(0);
  41694. STACKTOP = sp;return ($$3|0);
  41695. }
  41696. function _strrchr($0,$1) {
  41697. $0 = $0|0;
  41698. $1 = $1|0;
  41699. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  41700. sp = STACKTOP;
  41701. $2 = (_strlen($0)|0);
  41702. $3 = (($2) + 1)|0;
  41703. $4 = (___memrchr($0,$1,$3)|0);
  41704. return ($4|0);
  41705. }
  41706. function ___memrchr($0,$1,$2) {
  41707. $0 = $0|0;
  41708. $1 = $1|0;
  41709. $2 = $2|0;
  41710. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  41711. sp = STACKTOP;
  41712. $3 = $1&255;
  41713. $$09 = $2;
  41714. while(1) {
  41715. $4 = (($$09) + -1)|0;
  41716. $5 = ($$09|0)==(0);
  41717. if ($5) {
  41718. $$0 = 0;
  41719. break;
  41720. }
  41721. $6 = (($0) + ($4)|0);
  41722. $7 = HEAP8[$6>>0]|0;
  41723. $8 = ($7<<24>>24)==($3<<24>>24);
  41724. if ($8) {
  41725. $$0 = $6;
  41726. break;
  41727. } else {
  41728. $$09 = $4;
  41729. }
  41730. }
  41731. return ($$0|0);
  41732. }
  41733. function _strspn($0,$1) {
  41734. $0 = $0|0;
  41735. $1 = $1|0;
  41736. 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;
  41737. 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;
  41738. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  41739. sp = STACKTOP;
  41740. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  41741. $2 = sp;
  41742. ;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;
  41743. $3 = HEAP8[$1>>0]|0;
  41744. $4 = ($3<<24>>24)==(0);
  41745. do {
  41746. if ($4) {
  41747. $$0 = 0;
  41748. } else {
  41749. $5 = ((($1)) + 1|0);
  41750. $6 = HEAP8[$5>>0]|0;
  41751. $7 = ($6<<24>>24)==(0);
  41752. if ($7) {
  41753. $$020 = $0;
  41754. while(1) {
  41755. $8 = HEAP8[$$020>>0]|0;
  41756. $9 = ($8<<24>>24)==($3<<24>>24);
  41757. $10 = ((($$020)) + 1|0);
  41758. if ($9) {
  41759. $$020 = $10;
  41760. } else {
  41761. break;
  41762. }
  41763. }
  41764. $11 = $$020;
  41765. $12 = $0;
  41766. $13 = (($11) - ($12))|0;
  41767. $$0 = $13;
  41768. break;
  41769. } else {
  41770. $$01925 = $1;$17 = $3;
  41771. }
  41772. while(1) {
  41773. $16 = $17 & 31;
  41774. $18 = $16&255;
  41775. $19 = 1 << $18;
  41776. $div21 = ($17&255) >>> 5;
  41777. $20 = $div21&255;
  41778. $21 = (($2) + ($20<<2)|0);
  41779. $22 = HEAP32[$21>>2]|0;
  41780. $23 = $22 | $19;
  41781. HEAP32[$21>>2] = $23;
  41782. $24 = ((($$01925)) + 1|0);
  41783. $25 = HEAP8[$24>>0]|0;
  41784. $26 = ($25<<24>>24)==(0);
  41785. if ($26) {
  41786. break;
  41787. } else {
  41788. $$01925 = $24;$17 = $25;
  41789. }
  41790. }
  41791. $14 = HEAP8[$0>>0]|0;
  41792. $15 = ($14<<24>>24)==(0);
  41793. L10: do {
  41794. if ($15) {
  41795. $$1$lcssa = $0;
  41796. } else {
  41797. $$123 = $0;$27 = $14;
  41798. while(1) {
  41799. $div = ($27&255) >>> 5;
  41800. $28 = $div&255;
  41801. $29 = (($2) + ($28<<2)|0);
  41802. $30 = HEAP32[$29>>2]|0;
  41803. $31 = $27 & 31;
  41804. $32 = $31&255;
  41805. $33 = 1 << $32;
  41806. $34 = $30 & $33;
  41807. $35 = ($34|0)==(0);
  41808. if ($35) {
  41809. $$1$lcssa = $$123;
  41810. break L10;
  41811. }
  41812. $36 = ((($$123)) + 1|0);
  41813. $37 = HEAP8[$36>>0]|0;
  41814. $38 = ($37<<24>>24)==(0);
  41815. if ($38) {
  41816. $$1$lcssa = $36;
  41817. break;
  41818. } else {
  41819. $$123 = $36;$27 = $37;
  41820. }
  41821. }
  41822. }
  41823. } while(0);
  41824. $39 = $$1$lcssa;
  41825. $40 = $0;
  41826. $41 = (($39) - ($40))|0;
  41827. $$0 = $41;
  41828. }
  41829. } while(0);
  41830. STACKTOP = sp;return ($$0|0);
  41831. }
  41832. function _srand($0) {
  41833. $0 = $0|0;
  41834. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  41835. sp = STACKTOP;
  41836. $1 = (($0) + -1)|0;
  41837. $2 = 20064;
  41838. $3 = $2;
  41839. HEAP32[$3>>2] = $1;
  41840. $4 = (($2) + 4)|0;
  41841. $5 = $4;
  41842. HEAP32[$5>>2] = 0;
  41843. return;
  41844. }
  41845. function _fread($0,$1,$2,$3) {
  41846. $0 = $0|0;
  41847. $1 = $1|0;
  41848. $2 = $2|0;
  41849. $3 = $3|0;
  41850. 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;
  41851. 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;
  41852. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  41853. sp = STACKTOP;
  41854. $4 = Math_imul($2, $1)|0;
  41855. $5 = ($1|0)==(0);
  41856. $$ = $5 ? 0 : $2;
  41857. $6 = ((($3)) + 76|0);
  41858. $7 = HEAP32[$6>>2]|0;
  41859. $8 = ($7|0)>(-1);
  41860. if ($8) {
  41861. $9 = (___lockfile($3)|0);
  41862. $36 = $9;
  41863. } else {
  41864. $36 = 0;
  41865. }
  41866. $10 = ((($3)) + 74|0);
  41867. $11 = HEAP8[$10>>0]|0;
  41868. $12 = $11 << 24 >> 24;
  41869. $13 = (($12) + 255)|0;
  41870. $14 = $13 | $12;
  41871. $15 = $14&255;
  41872. HEAP8[$10>>0] = $15;
  41873. $16 = ((($3)) + 8|0);
  41874. $17 = HEAP32[$16>>2]|0;
  41875. $18 = ((($3)) + 4|0);
  41876. $19 = HEAP32[$18>>2]|0;
  41877. $20 = $19;
  41878. $21 = (($17) - ($20))|0;
  41879. $22 = ($21|0)>(0);
  41880. $23 = ($21>>>0)<($4>>>0);
  41881. $$57 = $23 ? $21 : $4;
  41882. if ($22) {
  41883. $24 = (($4) - ($$57))|0;
  41884. $25 = (($0) + ($$57)|0);
  41885. _memcpy(($0|0),($19|0),($$57|0))|0;
  41886. $26 = (($19) + ($$57)|0);
  41887. HEAP32[$18>>2] = $26;
  41888. $$054$ph = $24;$$056$ph = $25;
  41889. } else {
  41890. $$054$ph = $4;$$056$ph = $0;
  41891. }
  41892. $27 = ($$054$ph|0)==(0);
  41893. L7: do {
  41894. if ($27) {
  41895. label = 13;
  41896. } else {
  41897. $28 = ((($3)) + 32|0);
  41898. $$05460 = $$054$ph;$$05659 = $$056$ph;
  41899. while(1) {
  41900. $29 = (___toread($3)|0);
  41901. $30 = ($29|0)==(0);
  41902. if (!($30)) {
  41903. break;
  41904. }
  41905. $31 = HEAP32[$28>>2]|0;
  41906. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  41907. $33 = (($32) + 1)|0;
  41908. $34 = ($33>>>0)<(2);
  41909. if ($34) {
  41910. break;
  41911. }
  41912. $39 = (($$05460) - ($32))|0;
  41913. $40 = (($$05659) + ($32)|0);
  41914. $41 = ($39|0)==(0);
  41915. if ($41) {
  41916. label = 13;
  41917. break L7;
  41918. } else {
  41919. $$05460 = $39;$$05659 = $40;
  41920. }
  41921. }
  41922. $35 = ($36|0)==(0);
  41923. if (!($35)) {
  41924. ___unlockfile($3);
  41925. }
  41926. $37 = (($4) - ($$05460))|0;
  41927. $38 = (($37>>>0) / ($1>>>0))&-1;
  41928. $$0 = $38;
  41929. }
  41930. } while(0);
  41931. if ((label|0) == 13) {
  41932. $42 = ($36|0)==(0);
  41933. if ($42) {
  41934. $$0 = $$;
  41935. } else {
  41936. ___unlockfile($3);
  41937. $$0 = $$;
  41938. }
  41939. }
  41940. return ($$0|0);
  41941. }
  41942. function _vprintf($0,$1) {
  41943. $0 = $0|0;
  41944. $1 = $1|0;
  41945. var $2 = 0, $3 = 0, label = 0, sp = 0;
  41946. sp = STACKTOP;
  41947. $2 = HEAP32[1025]|0;
  41948. $3 = (_vfprintf($2,$0,$1)|0);
  41949. return ($3|0);
  41950. }
  41951. function _strcspn($0,$1) {
  41952. $0 = $0|0;
  41953. $1 = $1|0;
  41954. 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;
  41955. 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;
  41956. var $div20 = 0, label = 0, sp = 0;
  41957. sp = STACKTOP;
  41958. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  41959. $2 = sp;
  41960. $3 = HEAP8[$1>>0]|0;
  41961. $4 = ($3<<24>>24)==(0);
  41962. L1: do {
  41963. if ($4) {
  41964. label = 3;
  41965. } else {
  41966. $5 = ((($1)) + 1|0);
  41967. $6 = HEAP8[$5>>0]|0;
  41968. $7 = ($6<<24>>24)==(0);
  41969. if ($7) {
  41970. label = 3;
  41971. } else {
  41972. ;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;
  41973. $$01824 = $1;$13 = $3;
  41974. while(1) {
  41975. $12 = $13 & 31;
  41976. $14 = $12&255;
  41977. $15 = 1 << $14;
  41978. $div20 = ($13&255) >>> 5;
  41979. $16 = $div20&255;
  41980. $17 = (($2) + ($16<<2)|0);
  41981. $18 = HEAP32[$17>>2]|0;
  41982. $19 = $18 | $15;
  41983. HEAP32[$17>>2] = $19;
  41984. $20 = ((($$01824)) + 1|0);
  41985. $21 = HEAP8[$20>>0]|0;
  41986. $22 = ($21<<24>>24)==(0);
  41987. if ($22) {
  41988. break;
  41989. } else {
  41990. $$01824 = $20;$13 = $21;
  41991. }
  41992. }
  41993. $10 = HEAP8[$0>>0]|0;
  41994. $11 = ($10<<24>>24)==(0);
  41995. if ($11) {
  41996. $$019$sink = $0;
  41997. } else {
  41998. $$01922 = $0;$23 = $10;
  41999. while(1) {
  42000. $div = ($23&255) >>> 5;
  42001. $24 = $div&255;
  42002. $25 = (($2) + ($24<<2)|0);
  42003. $26 = HEAP32[$25>>2]|0;
  42004. $27 = $23 & 31;
  42005. $28 = $27&255;
  42006. $29 = 1 << $28;
  42007. $30 = $26 & $29;
  42008. $31 = ($30|0)==(0);
  42009. if (!($31)) {
  42010. $$019$sink = $$01922;
  42011. break L1;
  42012. }
  42013. $32 = ((($$01922)) + 1|0);
  42014. $33 = HEAP8[$32>>0]|0;
  42015. $34 = ($33<<24>>24)==(0);
  42016. if ($34) {
  42017. $$019$sink = $32;
  42018. break;
  42019. } else {
  42020. $$01922 = $32;$23 = $33;
  42021. }
  42022. }
  42023. }
  42024. }
  42025. }
  42026. } while(0);
  42027. if ((label|0) == 3) {
  42028. $8 = $3 << 24 >> 24;
  42029. $9 = (___strchrnul($0,$8)|0);
  42030. $$019$sink = $9;
  42031. }
  42032. $35 = $$019$sink;
  42033. $36 = $0;
  42034. $37 = (($35) - ($36))|0;
  42035. STACKTOP = sp;return ($37|0);
  42036. }
  42037. function _strcat($0,$1) {
  42038. $0 = $0|0;
  42039. $1 = $1|0;
  42040. var $2 = 0, $3 = 0, label = 0, sp = 0;
  42041. sp = STACKTOP;
  42042. $2 = (_strlen($0)|0);
  42043. $3 = (($0) + ($2)|0);
  42044. (_strcpy($3,$1)|0);
  42045. return ($0|0);
  42046. }
  42047. function _strncat($0,$1,$2) {
  42048. $0 = $0|0;
  42049. $1 = $1|0;
  42050. $2 = $2|0;
  42051. var $$0$lcssa = 0, $$01013 = 0, $$01112 = 0, $$014 = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  42052. sp = STACKTOP;
  42053. $3 = (_strlen($0)|0);
  42054. $4 = (($0) + ($3)|0);
  42055. $5 = ($2|0)==(0);
  42056. L1: do {
  42057. if ($5) {
  42058. $$0$lcssa = $4;
  42059. } else {
  42060. $$01013 = $2;$$01112 = $1;$$014 = $4;
  42061. while(1) {
  42062. $6 = HEAP8[$$01112>>0]|0;
  42063. $7 = ($6<<24>>24)==(0);
  42064. if ($7) {
  42065. $$0$lcssa = $$014;
  42066. break L1;
  42067. }
  42068. $8 = (($$01013) + -1)|0;
  42069. $9 = ((($$01112)) + 1|0);
  42070. $10 = ((($$014)) + 1|0);
  42071. HEAP8[$$014>>0] = $6;
  42072. $11 = ($8|0)==(0);
  42073. if ($11) {
  42074. $$0$lcssa = $10;
  42075. break;
  42076. } else {
  42077. $$01013 = $8;$$01112 = $9;$$014 = $10;
  42078. }
  42079. }
  42080. }
  42081. } while(0);
  42082. HEAP8[$$0$lcssa>>0] = 0;
  42083. return ($0|0);
  42084. }
  42085. function _strtok($0,$1) {
  42086. $0 = $0|0;
  42087. $1 = $1|0;
  42088. 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;
  42089. sp = STACKTOP;
  42090. $2 = ($0|0)==(0|0);
  42091. if ($2) {
  42092. $3 = HEAP32[5691]|0;
  42093. $4 = ($3|0)==(0|0);
  42094. if ($4) {
  42095. $$0 = 0;
  42096. } else {
  42097. $$010 = $3;
  42098. label = 3;
  42099. }
  42100. } else {
  42101. $$010 = $0;
  42102. label = 3;
  42103. }
  42104. do {
  42105. if ((label|0) == 3) {
  42106. $5 = (_strspn($$010,$1)|0);
  42107. $6 = (($$010) + ($5)|0);
  42108. $7 = HEAP8[$6>>0]|0;
  42109. $8 = ($7<<24>>24)==(0);
  42110. if ($8) {
  42111. HEAP32[5691] = 0;
  42112. $$0 = 0;
  42113. break;
  42114. }
  42115. $9 = (_strcspn($6,$1)|0);
  42116. $10 = (($6) + ($9)|0);
  42117. HEAP32[5691] = $10;
  42118. $11 = HEAP8[$10>>0]|0;
  42119. $12 = ($11<<24>>24)==(0);
  42120. if ($12) {
  42121. HEAP32[5691] = 0;
  42122. $$0 = $6;
  42123. break;
  42124. } else {
  42125. $13 = ((($10)) + 1|0);
  42126. HEAP32[5691] = $13;
  42127. HEAP8[$10>>0] = 0;
  42128. $$0 = $6;
  42129. break;
  42130. }
  42131. }
  42132. } while(0);
  42133. return ($$0|0);
  42134. }
  42135. function _malloc($0) {
  42136. $0 = $0|0;
  42137. 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;
  42138. 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;
  42139. 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;
  42140. 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;
  42141. 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;
  42142. 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;
  42143. 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;
  42144. 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;
  42145. 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;
  42146. 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;
  42147. 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;
  42148. 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;
  42149. 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;
  42150. 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;
  42151. 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;
  42152. 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;
  42153. 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;
  42154. 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;
  42155. 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;
  42156. 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;
  42157. 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;
  42158. 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;
  42159. 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;
  42160. 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;
  42161. 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;
  42162. 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;
  42163. 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;
  42164. 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;
  42165. 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;
  42166. 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;
  42167. 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;
  42168. 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;
  42169. 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;
  42170. 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;
  42171. 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;
  42172. 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;
  42173. 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;
  42174. 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;
  42175. 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;
  42176. 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;
  42177. 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;
  42178. 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;
  42179. 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;
  42180. 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;
  42181. 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;
  42182. 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;
  42183. 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;
  42184. 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;
  42185. 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;
  42186. 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;
  42187. 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;
  42188. 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;
  42189. 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;
  42190. 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;
  42191. 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;
  42192. 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;
  42193. 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;
  42194. 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;
  42195. 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;
  42196. sp = STACKTOP;
  42197. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  42198. $1 = sp;
  42199. $2 = ($0>>>0)<(245);
  42200. do {
  42201. if ($2) {
  42202. $3 = ($0>>>0)<(11);
  42203. $4 = (($0) + 11)|0;
  42204. $5 = $4 & -8;
  42205. $6 = $3 ? 16 : $5;
  42206. $7 = $6 >>> 3;
  42207. $8 = HEAP32[5692]|0;
  42208. $9 = $8 >>> $7;
  42209. $10 = $9 & 3;
  42210. $11 = ($10|0)==(0);
  42211. if (!($11)) {
  42212. $12 = $9 & 1;
  42213. $13 = $12 ^ 1;
  42214. $14 = (($13) + ($7))|0;
  42215. $15 = $14 << 1;
  42216. $16 = (22808 + ($15<<2)|0);
  42217. $17 = ((($16)) + 8|0);
  42218. $18 = HEAP32[$17>>2]|0;
  42219. $19 = ((($18)) + 8|0);
  42220. $20 = HEAP32[$19>>2]|0;
  42221. $21 = ($16|0)==($20|0);
  42222. do {
  42223. if ($21) {
  42224. $22 = 1 << $14;
  42225. $23 = $22 ^ -1;
  42226. $24 = $8 & $23;
  42227. HEAP32[5692] = $24;
  42228. } else {
  42229. $25 = HEAP32[(22784)>>2]|0;
  42230. $26 = ($20>>>0)<($25>>>0);
  42231. if ($26) {
  42232. _abort();
  42233. // unreachable;
  42234. }
  42235. $27 = ((($20)) + 12|0);
  42236. $28 = HEAP32[$27>>2]|0;
  42237. $29 = ($28|0)==($18|0);
  42238. if ($29) {
  42239. HEAP32[$27>>2] = $16;
  42240. HEAP32[$17>>2] = $20;
  42241. break;
  42242. } else {
  42243. _abort();
  42244. // unreachable;
  42245. }
  42246. }
  42247. } while(0);
  42248. $30 = $14 << 3;
  42249. $31 = $30 | 3;
  42250. $32 = ((($18)) + 4|0);
  42251. HEAP32[$32>>2] = $31;
  42252. $33 = (($18) + ($30)|0);
  42253. $34 = ((($33)) + 4|0);
  42254. $35 = HEAP32[$34>>2]|0;
  42255. $36 = $35 | 1;
  42256. HEAP32[$34>>2] = $36;
  42257. $$0 = $19;
  42258. STACKTOP = sp;return ($$0|0);
  42259. }
  42260. $37 = HEAP32[(22776)>>2]|0;
  42261. $38 = ($6>>>0)>($37>>>0);
  42262. if ($38) {
  42263. $39 = ($9|0)==(0);
  42264. if (!($39)) {
  42265. $40 = $9 << $7;
  42266. $41 = 2 << $7;
  42267. $42 = (0 - ($41))|0;
  42268. $43 = $41 | $42;
  42269. $44 = $40 & $43;
  42270. $45 = (0 - ($44))|0;
  42271. $46 = $44 & $45;
  42272. $47 = (($46) + -1)|0;
  42273. $48 = $47 >>> 12;
  42274. $49 = $48 & 16;
  42275. $50 = $47 >>> $49;
  42276. $51 = $50 >>> 5;
  42277. $52 = $51 & 8;
  42278. $53 = $52 | $49;
  42279. $54 = $50 >>> $52;
  42280. $55 = $54 >>> 2;
  42281. $56 = $55 & 4;
  42282. $57 = $53 | $56;
  42283. $58 = $54 >>> $56;
  42284. $59 = $58 >>> 1;
  42285. $60 = $59 & 2;
  42286. $61 = $57 | $60;
  42287. $62 = $58 >>> $60;
  42288. $63 = $62 >>> 1;
  42289. $64 = $63 & 1;
  42290. $65 = $61 | $64;
  42291. $66 = $62 >>> $64;
  42292. $67 = (($65) + ($66))|0;
  42293. $68 = $67 << 1;
  42294. $69 = (22808 + ($68<<2)|0);
  42295. $70 = ((($69)) + 8|0);
  42296. $71 = HEAP32[$70>>2]|0;
  42297. $72 = ((($71)) + 8|0);
  42298. $73 = HEAP32[$72>>2]|0;
  42299. $74 = ($69|0)==($73|0);
  42300. do {
  42301. if ($74) {
  42302. $75 = 1 << $67;
  42303. $76 = $75 ^ -1;
  42304. $77 = $8 & $76;
  42305. HEAP32[5692] = $77;
  42306. $98 = $77;
  42307. } else {
  42308. $78 = HEAP32[(22784)>>2]|0;
  42309. $79 = ($73>>>0)<($78>>>0);
  42310. if ($79) {
  42311. _abort();
  42312. // unreachable;
  42313. }
  42314. $80 = ((($73)) + 12|0);
  42315. $81 = HEAP32[$80>>2]|0;
  42316. $82 = ($81|0)==($71|0);
  42317. if ($82) {
  42318. HEAP32[$80>>2] = $69;
  42319. HEAP32[$70>>2] = $73;
  42320. $98 = $8;
  42321. break;
  42322. } else {
  42323. _abort();
  42324. // unreachable;
  42325. }
  42326. }
  42327. } while(0);
  42328. $83 = $67 << 3;
  42329. $84 = (($83) - ($6))|0;
  42330. $85 = $6 | 3;
  42331. $86 = ((($71)) + 4|0);
  42332. HEAP32[$86>>2] = $85;
  42333. $87 = (($71) + ($6)|0);
  42334. $88 = $84 | 1;
  42335. $89 = ((($87)) + 4|0);
  42336. HEAP32[$89>>2] = $88;
  42337. $90 = (($87) + ($84)|0);
  42338. HEAP32[$90>>2] = $84;
  42339. $91 = ($37|0)==(0);
  42340. if (!($91)) {
  42341. $92 = HEAP32[(22788)>>2]|0;
  42342. $93 = $37 >>> 3;
  42343. $94 = $93 << 1;
  42344. $95 = (22808 + ($94<<2)|0);
  42345. $96 = 1 << $93;
  42346. $97 = $98 & $96;
  42347. $99 = ($97|0)==(0);
  42348. if ($99) {
  42349. $100 = $98 | $96;
  42350. HEAP32[5692] = $100;
  42351. $$pre = ((($95)) + 8|0);
  42352. $$0199 = $95;$$pre$phiZ2D = $$pre;
  42353. } else {
  42354. $101 = ((($95)) + 8|0);
  42355. $102 = HEAP32[$101>>2]|0;
  42356. $103 = HEAP32[(22784)>>2]|0;
  42357. $104 = ($102>>>0)<($103>>>0);
  42358. if ($104) {
  42359. _abort();
  42360. // unreachable;
  42361. } else {
  42362. $$0199 = $102;$$pre$phiZ2D = $101;
  42363. }
  42364. }
  42365. HEAP32[$$pre$phiZ2D>>2] = $92;
  42366. $105 = ((($$0199)) + 12|0);
  42367. HEAP32[$105>>2] = $92;
  42368. $106 = ((($92)) + 8|0);
  42369. HEAP32[$106>>2] = $$0199;
  42370. $107 = ((($92)) + 12|0);
  42371. HEAP32[$107>>2] = $95;
  42372. }
  42373. HEAP32[(22776)>>2] = $84;
  42374. HEAP32[(22788)>>2] = $87;
  42375. $$0 = $72;
  42376. STACKTOP = sp;return ($$0|0);
  42377. }
  42378. $108 = HEAP32[(22772)>>2]|0;
  42379. $109 = ($108|0)==(0);
  42380. if ($109) {
  42381. $$0197 = $6;
  42382. } else {
  42383. $110 = (0 - ($108))|0;
  42384. $111 = $108 & $110;
  42385. $112 = (($111) + -1)|0;
  42386. $113 = $112 >>> 12;
  42387. $114 = $113 & 16;
  42388. $115 = $112 >>> $114;
  42389. $116 = $115 >>> 5;
  42390. $117 = $116 & 8;
  42391. $118 = $117 | $114;
  42392. $119 = $115 >>> $117;
  42393. $120 = $119 >>> 2;
  42394. $121 = $120 & 4;
  42395. $122 = $118 | $121;
  42396. $123 = $119 >>> $121;
  42397. $124 = $123 >>> 1;
  42398. $125 = $124 & 2;
  42399. $126 = $122 | $125;
  42400. $127 = $123 >>> $125;
  42401. $128 = $127 >>> 1;
  42402. $129 = $128 & 1;
  42403. $130 = $126 | $129;
  42404. $131 = $127 >>> $129;
  42405. $132 = (($130) + ($131))|0;
  42406. $133 = (23072 + ($132<<2)|0);
  42407. $134 = HEAP32[$133>>2]|0;
  42408. $135 = ((($134)) + 4|0);
  42409. $136 = HEAP32[$135>>2]|0;
  42410. $137 = $136 & -8;
  42411. $138 = (($137) - ($6))|0;
  42412. $139 = ((($134)) + 16|0);
  42413. $140 = HEAP32[$139>>2]|0;
  42414. $not$5$i = ($140|0)==(0|0);
  42415. $$sink16$i = $not$5$i&1;
  42416. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  42417. $142 = HEAP32[$141>>2]|0;
  42418. $143 = ($142|0)==(0|0);
  42419. if ($143) {
  42420. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  42421. } else {
  42422. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  42423. while(1) {
  42424. $144 = ((($145)) + 4|0);
  42425. $146 = HEAP32[$144>>2]|0;
  42426. $147 = $146 & -8;
  42427. $148 = (($147) - ($6))|0;
  42428. $149 = ($148>>>0)<($$01937$i>>>0);
  42429. $$$0193$i = $149 ? $148 : $$01937$i;
  42430. $$$0192$i = $149 ? $145 : $$01928$i;
  42431. $150 = ((($145)) + 16|0);
  42432. $151 = HEAP32[$150>>2]|0;
  42433. $not$$i = ($151|0)==(0|0);
  42434. $$sink1$i = $not$$i&1;
  42435. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  42436. $153 = HEAP32[$152>>2]|0;
  42437. $154 = ($153|0)==(0|0);
  42438. if ($154) {
  42439. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  42440. break;
  42441. } else {
  42442. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  42443. }
  42444. }
  42445. }
  42446. $155 = HEAP32[(22784)>>2]|0;
  42447. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  42448. if ($156) {
  42449. _abort();
  42450. // unreachable;
  42451. }
  42452. $157 = (($$0192$lcssa$i) + ($6)|0);
  42453. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  42454. if (!($158)) {
  42455. _abort();
  42456. // unreachable;
  42457. }
  42458. $159 = ((($$0192$lcssa$i)) + 24|0);
  42459. $160 = HEAP32[$159>>2]|0;
  42460. $161 = ((($$0192$lcssa$i)) + 12|0);
  42461. $162 = HEAP32[$161>>2]|0;
  42462. $163 = ($162|0)==($$0192$lcssa$i|0);
  42463. do {
  42464. if ($163) {
  42465. $173 = ((($$0192$lcssa$i)) + 20|0);
  42466. $174 = HEAP32[$173>>2]|0;
  42467. $175 = ($174|0)==(0|0);
  42468. if ($175) {
  42469. $176 = ((($$0192$lcssa$i)) + 16|0);
  42470. $177 = HEAP32[$176>>2]|0;
  42471. $178 = ($177|0)==(0|0);
  42472. if ($178) {
  42473. $$3$i = 0;
  42474. break;
  42475. } else {
  42476. $$1196$i = $177;$$1198$i = $176;
  42477. }
  42478. } else {
  42479. $$1196$i = $174;$$1198$i = $173;
  42480. }
  42481. while(1) {
  42482. $179 = ((($$1196$i)) + 20|0);
  42483. $180 = HEAP32[$179>>2]|0;
  42484. $181 = ($180|0)==(0|0);
  42485. if (!($181)) {
  42486. $$1196$i = $180;$$1198$i = $179;
  42487. continue;
  42488. }
  42489. $182 = ((($$1196$i)) + 16|0);
  42490. $183 = HEAP32[$182>>2]|0;
  42491. $184 = ($183|0)==(0|0);
  42492. if ($184) {
  42493. break;
  42494. } else {
  42495. $$1196$i = $183;$$1198$i = $182;
  42496. }
  42497. }
  42498. $185 = ($$1198$i>>>0)<($155>>>0);
  42499. if ($185) {
  42500. _abort();
  42501. // unreachable;
  42502. } else {
  42503. HEAP32[$$1198$i>>2] = 0;
  42504. $$3$i = $$1196$i;
  42505. break;
  42506. }
  42507. } else {
  42508. $164 = ((($$0192$lcssa$i)) + 8|0);
  42509. $165 = HEAP32[$164>>2]|0;
  42510. $166 = ($165>>>0)<($155>>>0);
  42511. if ($166) {
  42512. _abort();
  42513. // unreachable;
  42514. }
  42515. $167 = ((($165)) + 12|0);
  42516. $168 = HEAP32[$167>>2]|0;
  42517. $169 = ($168|0)==($$0192$lcssa$i|0);
  42518. if (!($169)) {
  42519. _abort();
  42520. // unreachable;
  42521. }
  42522. $170 = ((($162)) + 8|0);
  42523. $171 = HEAP32[$170>>2]|0;
  42524. $172 = ($171|0)==($$0192$lcssa$i|0);
  42525. if ($172) {
  42526. HEAP32[$167>>2] = $162;
  42527. HEAP32[$170>>2] = $165;
  42528. $$3$i = $162;
  42529. break;
  42530. } else {
  42531. _abort();
  42532. // unreachable;
  42533. }
  42534. }
  42535. } while(0);
  42536. $186 = ($160|0)==(0|0);
  42537. L73: do {
  42538. if (!($186)) {
  42539. $187 = ((($$0192$lcssa$i)) + 28|0);
  42540. $188 = HEAP32[$187>>2]|0;
  42541. $189 = (23072 + ($188<<2)|0);
  42542. $190 = HEAP32[$189>>2]|0;
  42543. $191 = ($$0192$lcssa$i|0)==($190|0);
  42544. do {
  42545. if ($191) {
  42546. HEAP32[$189>>2] = $$3$i;
  42547. $cond$i = ($$3$i|0)==(0|0);
  42548. if ($cond$i) {
  42549. $192 = 1 << $188;
  42550. $193 = $192 ^ -1;
  42551. $194 = $108 & $193;
  42552. HEAP32[(22772)>>2] = $194;
  42553. break L73;
  42554. }
  42555. } else {
  42556. $195 = HEAP32[(22784)>>2]|0;
  42557. $196 = ($160>>>0)<($195>>>0);
  42558. if ($196) {
  42559. _abort();
  42560. // unreachable;
  42561. } else {
  42562. $197 = ((($160)) + 16|0);
  42563. $198 = HEAP32[$197>>2]|0;
  42564. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  42565. $$sink2$i = $not$1$i&1;
  42566. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  42567. HEAP32[$199>>2] = $$3$i;
  42568. $200 = ($$3$i|0)==(0|0);
  42569. if ($200) {
  42570. break L73;
  42571. } else {
  42572. break;
  42573. }
  42574. }
  42575. }
  42576. } while(0);
  42577. $201 = HEAP32[(22784)>>2]|0;
  42578. $202 = ($$3$i>>>0)<($201>>>0);
  42579. if ($202) {
  42580. _abort();
  42581. // unreachable;
  42582. }
  42583. $203 = ((($$3$i)) + 24|0);
  42584. HEAP32[$203>>2] = $160;
  42585. $204 = ((($$0192$lcssa$i)) + 16|0);
  42586. $205 = HEAP32[$204>>2]|0;
  42587. $206 = ($205|0)==(0|0);
  42588. do {
  42589. if (!($206)) {
  42590. $207 = ($205>>>0)<($201>>>0);
  42591. if ($207) {
  42592. _abort();
  42593. // unreachable;
  42594. } else {
  42595. $208 = ((($$3$i)) + 16|0);
  42596. HEAP32[$208>>2] = $205;
  42597. $209 = ((($205)) + 24|0);
  42598. HEAP32[$209>>2] = $$3$i;
  42599. break;
  42600. }
  42601. }
  42602. } while(0);
  42603. $210 = ((($$0192$lcssa$i)) + 20|0);
  42604. $211 = HEAP32[$210>>2]|0;
  42605. $212 = ($211|0)==(0|0);
  42606. if (!($212)) {
  42607. $213 = HEAP32[(22784)>>2]|0;
  42608. $214 = ($211>>>0)<($213>>>0);
  42609. if ($214) {
  42610. _abort();
  42611. // unreachable;
  42612. } else {
  42613. $215 = ((($$3$i)) + 20|0);
  42614. HEAP32[$215>>2] = $211;
  42615. $216 = ((($211)) + 24|0);
  42616. HEAP32[$216>>2] = $$3$i;
  42617. break;
  42618. }
  42619. }
  42620. }
  42621. } while(0);
  42622. $217 = ($$0193$lcssa$i>>>0)<(16);
  42623. if ($217) {
  42624. $218 = (($$0193$lcssa$i) + ($6))|0;
  42625. $219 = $218 | 3;
  42626. $220 = ((($$0192$lcssa$i)) + 4|0);
  42627. HEAP32[$220>>2] = $219;
  42628. $221 = (($$0192$lcssa$i) + ($218)|0);
  42629. $222 = ((($221)) + 4|0);
  42630. $223 = HEAP32[$222>>2]|0;
  42631. $224 = $223 | 1;
  42632. HEAP32[$222>>2] = $224;
  42633. } else {
  42634. $225 = $6 | 3;
  42635. $226 = ((($$0192$lcssa$i)) + 4|0);
  42636. HEAP32[$226>>2] = $225;
  42637. $227 = $$0193$lcssa$i | 1;
  42638. $228 = ((($157)) + 4|0);
  42639. HEAP32[$228>>2] = $227;
  42640. $229 = (($157) + ($$0193$lcssa$i)|0);
  42641. HEAP32[$229>>2] = $$0193$lcssa$i;
  42642. $230 = ($37|0)==(0);
  42643. if (!($230)) {
  42644. $231 = HEAP32[(22788)>>2]|0;
  42645. $232 = $37 >>> 3;
  42646. $233 = $232 << 1;
  42647. $234 = (22808 + ($233<<2)|0);
  42648. $235 = 1 << $232;
  42649. $236 = $8 & $235;
  42650. $237 = ($236|0)==(0);
  42651. if ($237) {
  42652. $238 = $8 | $235;
  42653. HEAP32[5692] = $238;
  42654. $$pre$i = ((($234)) + 8|0);
  42655. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  42656. } else {
  42657. $239 = ((($234)) + 8|0);
  42658. $240 = HEAP32[$239>>2]|0;
  42659. $241 = HEAP32[(22784)>>2]|0;
  42660. $242 = ($240>>>0)<($241>>>0);
  42661. if ($242) {
  42662. _abort();
  42663. // unreachable;
  42664. } else {
  42665. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  42666. }
  42667. }
  42668. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  42669. $243 = ((($$0189$i)) + 12|0);
  42670. HEAP32[$243>>2] = $231;
  42671. $244 = ((($231)) + 8|0);
  42672. HEAP32[$244>>2] = $$0189$i;
  42673. $245 = ((($231)) + 12|0);
  42674. HEAP32[$245>>2] = $234;
  42675. }
  42676. HEAP32[(22776)>>2] = $$0193$lcssa$i;
  42677. HEAP32[(22788)>>2] = $157;
  42678. }
  42679. $246 = ((($$0192$lcssa$i)) + 8|0);
  42680. $$0 = $246;
  42681. STACKTOP = sp;return ($$0|0);
  42682. }
  42683. } else {
  42684. $$0197 = $6;
  42685. }
  42686. } else {
  42687. $247 = ($0>>>0)>(4294967231);
  42688. if ($247) {
  42689. $$0197 = -1;
  42690. } else {
  42691. $248 = (($0) + 11)|0;
  42692. $249 = $248 & -8;
  42693. $250 = HEAP32[(22772)>>2]|0;
  42694. $251 = ($250|0)==(0);
  42695. if ($251) {
  42696. $$0197 = $249;
  42697. } else {
  42698. $252 = (0 - ($249))|0;
  42699. $253 = $248 >>> 8;
  42700. $254 = ($253|0)==(0);
  42701. if ($254) {
  42702. $$0358$i = 0;
  42703. } else {
  42704. $255 = ($249>>>0)>(16777215);
  42705. if ($255) {
  42706. $$0358$i = 31;
  42707. } else {
  42708. $256 = (($253) + 1048320)|0;
  42709. $257 = $256 >>> 16;
  42710. $258 = $257 & 8;
  42711. $259 = $253 << $258;
  42712. $260 = (($259) + 520192)|0;
  42713. $261 = $260 >>> 16;
  42714. $262 = $261 & 4;
  42715. $263 = $262 | $258;
  42716. $264 = $259 << $262;
  42717. $265 = (($264) + 245760)|0;
  42718. $266 = $265 >>> 16;
  42719. $267 = $266 & 2;
  42720. $268 = $263 | $267;
  42721. $269 = (14 - ($268))|0;
  42722. $270 = $264 << $267;
  42723. $271 = $270 >>> 15;
  42724. $272 = (($269) + ($271))|0;
  42725. $273 = $272 << 1;
  42726. $274 = (($272) + 7)|0;
  42727. $275 = $249 >>> $274;
  42728. $276 = $275 & 1;
  42729. $277 = $276 | $273;
  42730. $$0358$i = $277;
  42731. }
  42732. }
  42733. $278 = (23072 + ($$0358$i<<2)|0);
  42734. $279 = HEAP32[$278>>2]|0;
  42735. $280 = ($279|0)==(0|0);
  42736. L117: do {
  42737. if ($280) {
  42738. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  42739. label = 81;
  42740. } else {
  42741. $281 = ($$0358$i|0)==(31);
  42742. $282 = $$0358$i >>> 1;
  42743. $283 = (25 - ($282))|0;
  42744. $284 = $281 ? 0 : $283;
  42745. $285 = $249 << $284;
  42746. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  42747. while(1) {
  42748. $286 = ((($$0353$i)) + 4|0);
  42749. $287 = HEAP32[$286>>2]|0;
  42750. $288 = $287 & -8;
  42751. $289 = (($288) - ($249))|0;
  42752. $290 = ($289>>>0)<($$0347$i>>>0);
  42753. if ($290) {
  42754. $291 = ($289|0)==(0);
  42755. if ($291) {
  42756. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  42757. label = 85;
  42758. break L117;
  42759. } else {
  42760. $$1343$i = $$0353$i;$$1348$i = $289;
  42761. }
  42762. } else {
  42763. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  42764. }
  42765. $292 = ((($$0353$i)) + 20|0);
  42766. $293 = HEAP32[$292>>2]|0;
  42767. $294 = $$0359$i >>> 31;
  42768. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  42769. $296 = HEAP32[$295>>2]|0;
  42770. $297 = ($293|0)==(0|0);
  42771. $298 = ($293|0)==($296|0);
  42772. $or$cond2$i = $297 | $298;
  42773. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  42774. $299 = ($296|0)==(0|0);
  42775. $not$8$i = $299 ^ 1;
  42776. $300 = $not$8$i&1;
  42777. $$0359$$i = $$0359$i << $300;
  42778. if ($299) {
  42779. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  42780. label = 81;
  42781. break;
  42782. } else {
  42783. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  42784. }
  42785. }
  42786. }
  42787. } while(0);
  42788. if ((label|0) == 81) {
  42789. $301 = ($$2355$i|0)==(0|0);
  42790. $302 = ($$3$i201|0)==(0|0);
  42791. $or$cond$i = $301 & $302;
  42792. if ($or$cond$i) {
  42793. $303 = 2 << $$0358$i;
  42794. $304 = (0 - ($303))|0;
  42795. $305 = $303 | $304;
  42796. $306 = $250 & $305;
  42797. $307 = ($306|0)==(0);
  42798. if ($307) {
  42799. $$0197 = $249;
  42800. break;
  42801. }
  42802. $308 = (0 - ($306))|0;
  42803. $309 = $306 & $308;
  42804. $310 = (($309) + -1)|0;
  42805. $311 = $310 >>> 12;
  42806. $312 = $311 & 16;
  42807. $313 = $310 >>> $312;
  42808. $314 = $313 >>> 5;
  42809. $315 = $314 & 8;
  42810. $316 = $315 | $312;
  42811. $317 = $313 >>> $315;
  42812. $318 = $317 >>> 2;
  42813. $319 = $318 & 4;
  42814. $320 = $316 | $319;
  42815. $321 = $317 >>> $319;
  42816. $322 = $321 >>> 1;
  42817. $323 = $322 & 2;
  42818. $324 = $320 | $323;
  42819. $325 = $321 >>> $323;
  42820. $326 = $325 >>> 1;
  42821. $327 = $326 & 1;
  42822. $328 = $324 | $327;
  42823. $329 = $325 >>> $327;
  42824. $330 = (($328) + ($329))|0;
  42825. $331 = (23072 + ($330<<2)|0);
  42826. $332 = HEAP32[$331>>2]|0;
  42827. $$4$ph$i = 0;$$4357$ph$i = $332;
  42828. } else {
  42829. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  42830. }
  42831. $333 = ($$4357$ph$i|0)==(0|0);
  42832. if ($333) {
  42833. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  42834. } else {
  42835. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  42836. label = 85;
  42837. }
  42838. }
  42839. if ((label|0) == 85) {
  42840. while(1) {
  42841. label = 0;
  42842. $334 = ((($$435713$i)) + 4|0);
  42843. $335 = HEAP32[$334>>2]|0;
  42844. $336 = $335 & -8;
  42845. $337 = (($336) - ($249))|0;
  42846. $338 = ($337>>>0)<($$435114$i>>>0);
  42847. $$$4351$i = $338 ? $337 : $$435114$i;
  42848. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  42849. $339 = ((($$435713$i)) + 16|0);
  42850. $340 = HEAP32[$339>>2]|0;
  42851. $not$1$i203 = ($340|0)==(0|0);
  42852. $$sink2$i204 = $not$1$i203&1;
  42853. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  42854. $342 = HEAP32[$341>>2]|0;
  42855. $343 = ($342|0)==(0|0);
  42856. if ($343) {
  42857. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  42858. break;
  42859. } else {
  42860. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  42861. label = 85;
  42862. }
  42863. }
  42864. }
  42865. $344 = ($$4$lcssa$i|0)==(0|0);
  42866. if ($344) {
  42867. $$0197 = $249;
  42868. } else {
  42869. $345 = HEAP32[(22776)>>2]|0;
  42870. $346 = (($345) - ($249))|0;
  42871. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  42872. if ($347) {
  42873. $348 = HEAP32[(22784)>>2]|0;
  42874. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  42875. if ($349) {
  42876. _abort();
  42877. // unreachable;
  42878. }
  42879. $350 = (($$4$lcssa$i) + ($249)|0);
  42880. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  42881. if (!($351)) {
  42882. _abort();
  42883. // unreachable;
  42884. }
  42885. $352 = ((($$4$lcssa$i)) + 24|0);
  42886. $353 = HEAP32[$352>>2]|0;
  42887. $354 = ((($$4$lcssa$i)) + 12|0);
  42888. $355 = HEAP32[$354>>2]|0;
  42889. $356 = ($355|0)==($$4$lcssa$i|0);
  42890. do {
  42891. if ($356) {
  42892. $366 = ((($$4$lcssa$i)) + 20|0);
  42893. $367 = HEAP32[$366>>2]|0;
  42894. $368 = ($367|0)==(0|0);
  42895. if ($368) {
  42896. $369 = ((($$4$lcssa$i)) + 16|0);
  42897. $370 = HEAP32[$369>>2]|0;
  42898. $371 = ($370|0)==(0|0);
  42899. if ($371) {
  42900. $$3372$i = 0;
  42901. break;
  42902. } else {
  42903. $$1370$i = $370;$$1374$i = $369;
  42904. }
  42905. } else {
  42906. $$1370$i = $367;$$1374$i = $366;
  42907. }
  42908. while(1) {
  42909. $372 = ((($$1370$i)) + 20|0);
  42910. $373 = HEAP32[$372>>2]|0;
  42911. $374 = ($373|0)==(0|0);
  42912. if (!($374)) {
  42913. $$1370$i = $373;$$1374$i = $372;
  42914. continue;
  42915. }
  42916. $375 = ((($$1370$i)) + 16|0);
  42917. $376 = HEAP32[$375>>2]|0;
  42918. $377 = ($376|0)==(0|0);
  42919. if ($377) {
  42920. break;
  42921. } else {
  42922. $$1370$i = $376;$$1374$i = $375;
  42923. }
  42924. }
  42925. $378 = ($$1374$i>>>0)<($348>>>0);
  42926. if ($378) {
  42927. _abort();
  42928. // unreachable;
  42929. } else {
  42930. HEAP32[$$1374$i>>2] = 0;
  42931. $$3372$i = $$1370$i;
  42932. break;
  42933. }
  42934. } else {
  42935. $357 = ((($$4$lcssa$i)) + 8|0);
  42936. $358 = HEAP32[$357>>2]|0;
  42937. $359 = ($358>>>0)<($348>>>0);
  42938. if ($359) {
  42939. _abort();
  42940. // unreachable;
  42941. }
  42942. $360 = ((($358)) + 12|0);
  42943. $361 = HEAP32[$360>>2]|0;
  42944. $362 = ($361|0)==($$4$lcssa$i|0);
  42945. if (!($362)) {
  42946. _abort();
  42947. // unreachable;
  42948. }
  42949. $363 = ((($355)) + 8|0);
  42950. $364 = HEAP32[$363>>2]|0;
  42951. $365 = ($364|0)==($$4$lcssa$i|0);
  42952. if ($365) {
  42953. HEAP32[$360>>2] = $355;
  42954. HEAP32[$363>>2] = $358;
  42955. $$3372$i = $355;
  42956. break;
  42957. } else {
  42958. _abort();
  42959. // unreachable;
  42960. }
  42961. }
  42962. } while(0);
  42963. $379 = ($353|0)==(0|0);
  42964. L164: do {
  42965. if ($379) {
  42966. $470 = $250;
  42967. } else {
  42968. $380 = ((($$4$lcssa$i)) + 28|0);
  42969. $381 = HEAP32[$380>>2]|0;
  42970. $382 = (23072 + ($381<<2)|0);
  42971. $383 = HEAP32[$382>>2]|0;
  42972. $384 = ($$4$lcssa$i|0)==($383|0);
  42973. do {
  42974. if ($384) {
  42975. HEAP32[$382>>2] = $$3372$i;
  42976. $cond$i208 = ($$3372$i|0)==(0|0);
  42977. if ($cond$i208) {
  42978. $385 = 1 << $381;
  42979. $386 = $385 ^ -1;
  42980. $387 = $250 & $386;
  42981. HEAP32[(22772)>>2] = $387;
  42982. $470 = $387;
  42983. break L164;
  42984. }
  42985. } else {
  42986. $388 = HEAP32[(22784)>>2]|0;
  42987. $389 = ($353>>>0)<($388>>>0);
  42988. if ($389) {
  42989. _abort();
  42990. // unreachable;
  42991. } else {
  42992. $390 = ((($353)) + 16|0);
  42993. $391 = HEAP32[$390>>2]|0;
  42994. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  42995. $$sink3$i = $not$$i209&1;
  42996. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  42997. HEAP32[$392>>2] = $$3372$i;
  42998. $393 = ($$3372$i|0)==(0|0);
  42999. if ($393) {
  43000. $470 = $250;
  43001. break L164;
  43002. } else {
  43003. break;
  43004. }
  43005. }
  43006. }
  43007. } while(0);
  43008. $394 = HEAP32[(22784)>>2]|0;
  43009. $395 = ($$3372$i>>>0)<($394>>>0);
  43010. if ($395) {
  43011. _abort();
  43012. // unreachable;
  43013. }
  43014. $396 = ((($$3372$i)) + 24|0);
  43015. HEAP32[$396>>2] = $353;
  43016. $397 = ((($$4$lcssa$i)) + 16|0);
  43017. $398 = HEAP32[$397>>2]|0;
  43018. $399 = ($398|0)==(0|0);
  43019. do {
  43020. if (!($399)) {
  43021. $400 = ($398>>>0)<($394>>>0);
  43022. if ($400) {
  43023. _abort();
  43024. // unreachable;
  43025. } else {
  43026. $401 = ((($$3372$i)) + 16|0);
  43027. HEAP32[$401>>2] = $398;
  43028. $402 = ((($398)) + 24|0);
  43029. HEAP32[$402>>2] = $$3372$i;
  43030. break;
  43031. }
  43032. }
  43033. } while(0);
  43034. $403 = ((($$4$lcssa$i)) + 20|0);
  43035. $404 = HEAP32[$403>>2]|0;
  43036. $405 = ($404|0)==(0|0);
  43037. if ($405) {
  43038. $470 = $250;
  43039. } else {
  43040. $406 = HEAP32[(22784)>>2]|0;
  43041. $407 = ($404>>>0)<($406>>>0);
  43042. if ($407) {
  43043. _abort();
  43044. // unreachable;
  43045. } else {
  43046. $408 = ((($$3372$i)) + 20|0);
  43047. HEAP32[$408>>2] = $404;
  43048. $409 = ((($404)) + 24|0);
  43049. HEAP32[$409>>2] = $$3372$i;
  43050. $470 = $250;
  43051. break;
  43052. }
  43053. }
  43054. }
  43055. } while(0);
  43056. $410 = ($$4351$lcssa$i>>>0)<(16);
  43057. do {
  43058. if ($410) {
  43059. $411 = (($$4351$lcssa$i) + ($249))|0;
  43060. $412 = $411 | 3;
  43061. $413 = ((($$4$lcssa$i)) + 4|0);
  43062. HEAP32[$413>>2] = $412;
  43063. $414 = (($$4$lcssa$i) + ($411)|0);
  43064. $415 = ((($414)) + 4|0);
  43065. $416 = HEAP32[$415>>2]|0;
  43066. $417 = $416 | 1;
  43067. HEAP32[$415>>2] = $417;
  43068. } else {
  43069. $418 = $249 | 3;
  43070. $419 = ((($$4$lcssa$i)) + 4|0);
  43071. HEAP32[$419>>2] = $418;
  43072. $420 = $$4351$lcssa$i | 1;
  43073. $421 = ((($350)) + 4|0);
  43074. HEAP32[$421>>2] = $420;
  43075. $422 = (($350) + ($$4351$lcssa$i)|0);
  43076. HEAP32[$422>>2] = $$4351$lcssa$i;
  43077. $423 = $$4351$lcssa$i >>> 3;
  43078. $424 = ($$4351$lcssa$i>>>0)<(256);
  43079. if ($424) {
  43080. $425 = $423 << 1;
  43081. $426 = (22808 + ($425<<2)|0);
  43082. $427 = HEAP32[5692]|0;
  43083. $428 = 1 << $423;
  43084. $429 = $427 & $428;
  43085. $430 = ($429|0)==(0);
  43086. if ($430) {
  43087. $431 = $427 | $428;
  43088. HEAP32[5692] = $431;
  43089. $$pre$i210 = ((($426)) + 8|0);
  43090. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  43091. } else {
  43092. $432 = ((($426)) + 8|0);
  43093. $433 = HEAP32[$432>>2]|0;
  43094. $434 = HEAP32[(22784)>>2]|0;
  43095. $435 = ($433>>>0)<($434>>>0);
  43096. if ($435) {
  43097. _abort();
  43098. // unreachable;
  43099. } else {
  43100. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  43101. }
  43102. }
  43103. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  43104. $436 = ((($$0368$i)) + 12|0);
  43105. HEAP32[$436>>2] = $350;
  43106. $437 = ((($350)) + 8|0);
  43107. HEAP32[$437>>2] = $$0368$i;
  43108. $438 = ((($350)) + 12|0);
  43109. HEAP32[$438>>2] = $426;
  43110. break;
  43111. }
  43112. $439 = $$4351$lcssa$i >>> 8;
  43113. $440 = ($439|0)==(0);
  43114. if ($440) {
  43115. $$0361$i = 0;
  43116. } else {
  43117. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  43118. if ($441) {
  43119. $$0361$i = 31;
  43120. } else {
  43121. $442 = (($439) + 1048320)|0;
  43122. $443 = $442 >>> 16;
  43123. $444 = $443 & 8;
  43124. $445 = $439 << $444;
  43125. $446 = (($445) + 520192)|0;
  43126. $447 = $446 >>> 16;
  43127. $448 = $447 & 4;
  43128. $449 = $448 | $444;
  43129. $450 = $445 << $448;
  43130. $451 = (($450) + 245760)|0;
  43131. $452 = $451 >>> 16;
  43132. $453 = $452 & 2;
  43133. $454 = $449 | $453;
  43134. $455 = (14 - ($454))|0;
  43135. $456 = $450 << $453;
  43136. $457 = $456 >>> 15;
  43137. $458 = (($455) + ($457))|0;
  43138. $459 = $458 << 1;
  43139. $460 = (($458) + 7)|0;
  43140. $461 = $$4351$lcssa$i >>> $460;
  43141. $462 = $461 & 1;
  43142. $463 = $462 | $459;
  43143. $$0361$i = $463;
  43144. }
  43145. }
  43146. $464 = (23072 + ($$0361$i<<2)|0);
  43147. $465 = ((($350)) + 28|0);
  43148. HEAP32[$465>>2] = $$0361$i;
  43149. $466 = ((($350)) + 16|0);
  43150. $467 = ((($466)) + 4|0);
  43151. HEAP32[$467>>2] = 0;
  43152. HEAP32[$466>>2] = 0;
  43153. $468 = 1 << $$0361$i;
  43154. $469 = $470 & $468;
  43155. $471 = ($469|0)==(0);
  43156. if ($471) {
  43157. $472 = $470 | $468;
  43158. HEAP32[(22772)>>2] = $472;
  43159. HEAP32[$464>>2] = $350;
  43160. $473 = ((($350)) + 24|0);
  43161. HEAP32[$473>>2] = $464;
  43162. $474 = ((($350)) + 12|0);
  43163. HEAP32[$474>>2] = $350;
  43164. $475 = ((($350)) + 8|0);
  43165. HEAP32[$475>>2] = $350;
  43166. break;
  43167. }
  43168. $476 = HEAP32[$464>>2]|0;
  43169. $477 = ($$0361$i|0)==(31);
  43170. $478 = $$0361$i >>> 1;
  43171. $479 = (25 - ($478))|0;
  43172. $480 = $477 ? 0 : $479;
  43173. $481 = $$4351$lcssa$i << $480;
  43174. $$0344$i = $481;$$0345$i = $476;
  43175. while(1) {
  43176. $482 = ((($$0345$i)) + 4|0);
  43177. $483 = HEAP32[$482>>2]|0;
  43178. $484 = $483 & -8;
  43179. $485 = ($484|0)==($$4351$lcssa$i|0);
  43180. if ($485) {
  43181. label = 139;
  43182. break;
  43183. }
  43184. $486 = $$0344$i >>> 31;
  43185. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  43186. $488 = $$0344$i << 1;
  43187. $489 = HEAP32[$487>>2]|0;
  43188. $490 = ($489|0)==(0|0);
  43189. if ($490) {
  43190. label = 136;
  43191. break;
  43192. } else {
  43193. $$0344$i = $488;$$0345$i = $489;
  43194. }
  43195. }
  43196. if ((label|0) == 136) {
  43197. $491 = HEAP32[(22784)>>2]|0;
  43198. $492 = ($487>>>0)<($491>>>0);
  43199. if ($492) {
  43200. _abort();
  43201. // unreachable;
  43202. } else {
  43203. HEAP32[$487>>2] = $350;
  43204. $493 = ((($350)) + 24|0);
  43205. HEAP32[$493>>2] = $$0345$i;
  43206. $494 = ((($350)) + 12|0);
  43207. HEAP32[$494>>2] = $350;
  43208. $495 = ((($350)) + 8|0);
  43209. HEAP32[$495>>2] = $350;
  43210. break;
  43211. }
  43212. }
  43213. else if ((label|0) == 139) {
  43214. $496 = ((($$0345$i)) + 8|0);
  43215. $497 = HEAP32[$496>>2]|0;
  43216. $498 = HEAP32[(22784)>>2]|0;
  43217. $499 = ($497>>>0)>=($498>>>0);
  43218. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  43219. $500 = $499 & $not$9$i;
  43220. if ($500) {
  43221. $501 = ((($497)) + 12|0);
  43222. HEAP32[$501>>2] = $350;
  43223. HEAP32[$496>>2] = $350;
  43224. $502 = ((($350)) + 8|0);
  43225. HEAP32[$502>>2] = $497;
  43226. $503 = ((($350)) + 12|0);
  43227. HEAP32[$503>>2] = $$0345$i;
  43228. $504 = ((($350)) + 24|0);
  43229. HEAP32[$504>>2] = 0;
  43230. break;
  43231. } else {
  43232. _abort();
  43233. // unreachable;
  43234. }
  43235. }
  43236. }
  43237. } while(0);
  43238. $505 = ((($$4$lcssa$i)) + 8|0);
  43239. $$0 = $505;
  43240. STACKTOP = sp;return ($$0|0);
  43241. } else {
  43242. $$0197 = $249;
  43243. }
  43244. }
  43245. }
  43246. }
  43247. }
  43248. } while(0);
  43249. $506 = HEAP32[(22776)>>2]|0;
  43250. $507 = ($506>>>0)<($$0197>>>0);
  43251. if (!($507)) {
  43252. $508 = (($506) - ($$0197))|0;
  43253. $509 = HEAP32[(22788)>>2]|0;
  43254. $510 = ($508>>>0)>(15);
  43255. if ($510) {
  43256. $511 = (($509) + ($$0197)|0);
  43257. HEAP32[(22788)>>2] = $511;
  43258. HEAP32[(22776)>>2] = $508;
  43259. $512 = $508 | 1;
  43260. $513 = ((($511)) + 4|0);
  43261. HEAP32[$513>>2] = $512;
  43262. $514 = (($511) + ($508)|0);
  43263. HEAP32[$514>>2] = $508;
  43264. $515 = $$0197 | 3;
  43265. $516 = ((($509)) + 4|0);
  43266. HEAP32[$516>>2] = $515;
  43267. } else {
  43268. HEAP32[(22776)>>2] = 0;
  43269. HEAP32[(22788)>>2] = 0;
  43270. $517 = $506 | 3;
  43271. $518 = ((($509)) + 4|0);
  43272. HEAP32[$518>>2] = $517;
  43273. $519 = (($509) + ($506)|0);
  43274. $520 = ((($519)) + 4|0);
  43275. $521 = HEAP32[$520>>2]|0;
  43276. $522 = $521 | 1;
  43277. HEAP32[$520>>2] = $522;
  43278. }
  43279. $523 = ((($509)) + 8|0);
  43280. $$0 = $523;
  43281. STACKTOP = sp;return ($$0|0);
  43282. }
  43283. $524 = HEAP32[(22780)>>2]|0;
  43284. $525 = ($524>>>0)>($$0197>>>0);
  43285. if ($525) {
  43286. $526 = (($524) - ($$0197))|0;
  43287. HEAP32[(22780)>>2] = $526;
  43288. $527 = HEAP32[(22792)>>2]|0;
  43289. $528 = (($527) + ($$0197)|0);
  43290. HEAP32[(22792)>>2] = $528;
  43291. $529 = $526 | 1;
  43292. $530 = ((($528)) + 4|0);
  43293. HEAP32[$530>>2] = $529;
  43294. $531 = $$0197 | 3;
  43295. $532 = ((($527)) + 4|0);
  43296. HEAP32[$532>>2] = $531;
  43297. $533 = ((($527)) + 8|0);
  43298. $$0 = $533;
  43299. STACKTOP = sp;return ($$0|0);
  43300. }
  43301. $534 = HEAP32[5810]|0;
  43302. $535 = ($534|0)==(0);
  43303. if ($535) {
  43304. HEAP32[(23248)>>2] = 4096;
  43305. HEAP32[(23244)>>2] = 4096;
  43306. HEAP32[(23252)>>2] = -1;
  43307. HEAP32[(23256)>>2] = -1;
  43308. HEAP32[(23260)>>2] = 0;
  43309. HEAP32[(23212)>>2] = 0;
  43310. $536 = $1;
  43311. $537 = $536 & -16;
  43312. $538 = $537 ^ 1431655768;
  43313. HEAP32[$1>>2] = $538;
  43314. HEAP32[5810] = $538;
  43315. $542 = 4096;
  43316. } else {
  43317. $$pre$i212 = HEAP32[(23248)>>2]|0;
  43318. $542 = $$pre$i212;
  43319. }
  43320. $539 = (($$0197) + 48)|0;
  43321. $540 = (($$0197) + 47)|0;
  43322. $541 = (($542) + ($540))|0;
  43323. $543 = (0 - ($542))|0;
  43324. $544 = $541 & $543;
  43325. $545 = ($544>>>0)>($$0197>>>0);
  43326. if (!($545)) {
  43327. $$0 = 0;
  43328. STACKTOP = sp;return ($$0|0);
  43329. }
  43330. $546 = HEAP32[(23208)>>2]|0;
  43331. $547 = ($546|0)==(0);
  43332. if (!($547)) {
  43333. $548 = HEAP32[(23200)>>2]|0;
  43334. $549 = (($548) + ($544))|0;
  43335. $550 = ($549>>>0)<=($548>>>0);
  43336. $551 = ($549>>>0)>($546>>>0);
  43337. $or$cond1$i = $550 | $551;
  43338. if ($or$cond1$i) {
  43339. $$0 = 0;
  43340. STACKTOP = sp;return ($$0|0);
  43341. }
  43342. }
  43343. $552 = HEAP32[(23212)>>2]|0;
  43344. $553 = $552 & 4;
  43345. $554 = ($553|0)==(0);
  43346. L244: do {
  43347. if ($554) {
  43348. $555 = HEAP32[(22792)>>2]|0;
  43349. $556 = ($555|0)==(0|0);
  43350. L246: do {
  43351. if ($556) {
  43352. label = 163;
  43353. } else {
  43354. $$0$i$i = (23216);
  43355. while(1) {
  43356. $557 = HEAP32[$$0$i$i>>2]|0;
  43357. $558 = ($557>>>0)>($555>>>0);
  43358. if (!($558)) {
  43359. $559 = ((($$0$i$i)) + 4|0);
  43360. $560 = HEAP32[$559>>2]|0;
  43361. $561 = (($557) + ($560)|0);
  43362. $562 = ($561>>>0)>($555>>>0);
  43363. if ($562) {
  43364. break;
  43365. }
  43366. }
  43367. $563 = ((($$0$i$i)) + 8|0);
  43368. $564 = HEAP32[$563>>2]|0;
  43369. $565 = ($564|0)==(0|0);
  43370. if ($565) {
  43371. label = 163;
  43372. break L246;
  43373. } else {
  43374. $$0$i$i = $564;
  43375. }
  43376. }
  43377. $588 = (($541) - ($524))|0;
  43378. $589 = $588 & $543;
  43379. $590 = ($589>>>0)<(2147483647);
  43380. if ($590) {
  43381. $591 = (_sbrk(($589|0))|0);
  43382. $592 = HEAP32[$$0$i$i>>2]|0;
  43383. $593 = HEAP32[$559>>2]|0;
  43384. $594 = (($592) + ($593)|0);
  43385. $595 = ($591|0)==($594|0);
  43386. if ($595) {
  43387. $596 = ($591|0)==((-1)|0);
  43388. if ($596) {
  43389. $$2234253237$i = $589;
  43390. } else {
  43391. $$723948$i = $589;$$749$i = $591;
  43392. label = 180;
  43393. break L244;
  43394. }
  43395. } else {
  43396. $$2247$ph$i = $591;$$2253$ph$i = $589;
  43397. label = 171;
  43398. }
  43399. } else {
  43400. $$2234253237$i = 0;
  43401. }
  43402. }
  43403. } while(0);
  43404. do {
  43405. if ((label|0) == 163) {
  43406. $566 = (_sbrk(0)|0);
  43407. $567 = ($566|0)==((-1)|0);
  43408. if ($567) {
  43409. $$2234253237$i = 0;
  43410. } else {
  43411. $568 = $566;
  43412. $569 = HEAP32[(23244)>>2]|0;
  43413. $570 = (($569) + -1)|0;
  43414. $571 = $570 & $568;
  43415. $572 = ($571|0)==(0);
  43416. $573 = (($570) + ($568))|0;
  43417. $574 = (0 - ($569))|0;
  43418. $575 = $573 & $574;
  43419. $576 = (($575) - ($568))|0;
  43420. $577 = $572 ? 0 : $576;
  43421. $$$i = (($577) + ($544))|0;
  43422. $578 = HEAP32[(23200)>>2]|0;
  43423. $579 = (($$$i) + ($578))|0;
  43424. $580 = ($$$i>>>0)>($$0197>>>0);
  43425. $581 = ($$$i>>>0)<(2147483647);
  43426. $or$cond$i214 = $580 & $581;
  43427. if ($or$cond$i214) {
  43428. $582 = HEAP32[(23208)>>2]|0;
  43429. $583 = ($582|0)==(0);
  43430. if (!($583)) {
  43431. $584 = ($579>>>0)<=($578>>>0);
  43432. $585 = ($579>>>0)>($582>>>0);
  43433. $or$cond2$i215 = $584 | $585;
  43434. if ($or$cond2$i215) {
  43435. $$2234253237$i = 0;
  43436. break;
  43437. }
  43438. }
  43439. $586 = (_sbrk(($$$i|0))|0);
  43440. $587 = ($586|0)==($566|0);
  43441. if ($587) {
  43442. $$723948$i = $$$i;$$749$i = $566;
  43443. label = 180;
  43444. break L244;
  43445. } else {
  43446. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  43447. label = 171;
  43448. }
  43449. } else {
  43450. $$2234253237$i = 0;
  43451. }
  43452. }
  43453. }
  43454. } while(0);
  43455. do {
  43456. if ((label|0) == 171) {
  43457. $597 = (0 - ($$2253$ph$i))|0;
  43458. $598 = ($$2247$ph$i|0)!=((-1)|0);
  43459. $599 = ($$2253$ph$i>>>0)<(2147483647);
  43460. $or$cond7$i = $599 & $598;
  43461. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  43462. $or$cond10$i = $600 & $or$cond7$i;
  43463. if (!($or$cond10$i)) {
  43464. $610 = ($$2247$ph$i|0)==((-1)|0);
  43465. if ($610) {
  43466. $$2234253237$i = 0;
  43467. break;
  43468. } else {
  43469. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  43470. label = 180;
  43471. break L244;
  43472. }
  43473. }
  43474. $601 = HEAP32[(23248)>>2]|0;
  43475. $602 = (($540) - ($$2253$ph$i))|0;
  43476. $603 = (($602) + ($601))|0;
  43477. $604 = (0 - ($601))|0;
  43478. $605 = $603 & $604;
  43479. $606 = ($605>>>0)<(2147483647);
  43480. if (!($606)) {
  43481. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  43482. label = 180;
  43483. break L244;
  43484. }
  43485. $607 = (_sbrk(($605|0))|0);
  43486. $608 = ($607|0)==((-1)|0);
  43487. if ($608) {
  43488. (_sbrk(($597|0))|0);
  43489. $$2234253237$i = 0;
  43490. break;
  43491. } else {
  43492. $609 = (($605) + ($$2253$ph$i))|0;
  43493. $$723948$i = $609;$$749$i = $$2247$ph$i;
  43494. label = 180;
  43495. break L244;
  43496. }
  43497. }
  43498. } while(0);
  43499. $611 = HEAP32[(23212)>>2]|0;
  43500. $612 = $611 | 4;
  43501. HEAP32[(23212)>>2] = $612;
  43502. $$4236$i = $$2234253237$i;
  43503. label = 178;
  43504. } else {
  43505. $$4236$i = 0;
  43506. label = 178;
  43507. }
  43508. } while(0);
  43509. if ((label|0) == 178) {
  43510. $613 = ($544>>>0)<(2147483647);
  43511. if ($613) {
  43512. $614 = (_sbrk(($544|0))|0);
  43513. $615 = (_sbrk(0)|0);
  43514. $616 = ($614|0)!=((-1)|0);
  43515. $617 = ($615|0)!=((-1)|0);
  43516. $or$cond5$i = $616 & $617;
  43517. $618 = ($614>>>0)<($615>>>0);
  43518. $or$cond11$i = $618 & $or$cond5$i;
  43519. $619 = $615;
  43520. $620 = $614;
  43521. $621 = (($619) - ($620))|0;
  43522. $622 = (($$0197) + 40)|0;
  43523. $623 = ($621>>>0)>($622>>>0);
  43524. $$$4236$i = $623 ? $621 : $$4236$i;
  43525. $or$cond11$not$i = $or$cond11$i ^ 1;
  43526. $624 = ($614|0)==((-1)|0);
  43527. $not$$i216 = $623 ^ 1;
  43528. $625 = $624 | $not$$i216;
  43529. $or$cond50$i = $625 | $or$cond11$not$i;
  43530. if (!($or$cond50$i)) {
  43531. $$723948$i = $$$4236$i;$$749$i = $614;
  43532. label = 180;
  43533. }
  43534. }
  43535. }
  43536. if ((label|0) == 180) {
  43537. $626 = HEAP32[(23200)>>2]|0;
  43538. $627 = (($626) + ($$723948$i))|0;
  43539. HEAP32[(23200)>>2] = $627;
  43540. $628 = HEAP32[(23204)>>2]|0;
  43541. $629 = ($627>>>0)>($628>>>0);
  43542. if ($629) {
  43543. HEAP32[(23204)>>2] = $627;
  43544. }
  43545. $630 = HEAP32[(22792)>>2]|0;
  43546. $631 = ($630|0)==(0|0);
  43547. do {
  43548. if ($631) {
  43549. $632 = HEAP32[(22784)>>2]|0;
  43550. $633 = ($632|0)==(0|0);
  43551. $634 = ($$749$i>>>0)<($632>>>0);
  43552. $or$cond12$i = $633 | $634;
  43553. if ($or$cond12$i) {
  43554. HEAP32[(22784)>>2] = $$749$i;
  43555. }
  43556. HEAP32[(23216)>>2] = $$749$i;
  43557. HEAP32[(23220)>>2] = $$723948$i;
  43558. HEAP32[(23228)>>2] = 0;
  43559. $635 = HEAP32[5810]|0;
  43560. HEAP32[(22804)>>2] = $635;
  43561. HEAP32[(22800)>>2] = -1;
  43562. $$01$i$i = 0;
  43563. while(1) {
  43564. $636 = $$01$i$i << 1;
  43565. $637 = (22808 + ($636<<2)|0);
  43566. $638 = ((($637)) + 12|0);
  43567. HEAP32[$638>>2] = $637;
  43568. $639 = ((($637)) + 8|0);
  43569. HEAP32[$639>>2] = $637;
  43570. $640 = (($$01$i$i) + 1)|0;
  43571. $exitcond$i$i = ($640|0)==(32);
  43572. if ($exitcond$i$i) {
  43573. break;
  43574. } else {
  43575. $$01$i$i = $640;
  43576. }
  43577. }
  43578. $641 = (($$723948$i) + -40)|0;
  43579. $642 = ((($$749$i)) + 8|0);
  43580. $643 = $642;
  43581. $644 = $643 & 7;
  43582. $645 = ($644|0)==(0);
  43583. $646 = (0 - ($643))|0;
  43584. $647 = $646 & 7;
  43585. $648 = $645 ? 0 : $647;
  43586. $649 = (($$749$i) + ($648)|0);
  43587. $650 = (($641) - ($648))|0;
  43588. HEAP32[(22792)>>2] = $649;
  43589. HEAP32[(22780)>>2] = $650;
  43590. $651 = $650 | 1;
  43591. $652 = ((($649)) + 4|0);
  43592. HEAP32[$652>>2] = $651;
  43593. $653 = (($649) + ($650)|0);
  43594. $654 = ((($653)) + 4|0);
  43595. HEAP32[$654>>2] = 40;
  43596. $655 = HEAP32[(23256)>>2]|0;
  43597. HEAP32[(22796)>>2] = $655;
  43598. } else {
  43599. $$024371$i = (23216);
  43600. while(1) {
  43601. $656 = HEAP32[$$024371$i>>2]|0;
  43602. $657 = ((($$024371$i)) + 4|0);
  43603. $658 = HEAP32[$657>>2]|0;
  43604. $659 = (($656) + ($658)|0);
  43605. $660 = ($$749$i|0)==($659|0);
  43606. if ($660) {
  43607. label = 190;
  43608. break;
  43609. }
  43610. $661 = ((($$024371$i)) + 8|0);
  43611. $662 = HEAP32[$661>>2]|0;
  43612. $663 = ($662|0)==(0|0);
  43613. if ($663) {
  43614. break;
  43615. } else {
  43616. $$024371$i = $662;
  43617. }
  43618. }
  43619. if ((label|0) == 190) {
  43620. $664 = ((($$024371$i)) + 12|0);
  43621. $665 = HEAP32[$664>>2]|0;
  43622. $666 = $665 & 8;
  43623. $667 = ($666|0)==(0);
  43624. if ($667) {
  43625. $668 = ($630>>>0)>=($656>>>0);
  43626. $669 = ($630>>>0)<($$749$i>>>0);
  43627. $or$cond51$i = $669 & $668;
  43628. if ($or$cond51$i) {
  43629. $670 = (($658) + ($$723948$i))|0;
  43630. HEAP32[$657>>2] = $670;
  43631. $671 = HEAP32[(22780)>>2]|0;
  43632. $672 = ((($630)) + 8|0);
  43633. $673 = $672;
  43634. $674 = $673 & 7;
  43635. $675 = ($674|0)==(0);
  43636. $676 = (0 - ($673))|0;
  43637. $677 = $676 & 7;
  43638. $678 = $675 ? 0 : $677;
  43639. $679 = (($630) + ($678)|0);
  43640. $680 = (($$723948$i) - ($678))|0;
  43641. $681 = (($671) + ($680))|0;
  43642. HEAP32[(22792)>>2] = $679;
  43643. HEAP32[(22780)>>2] = $681;
  43644. $682 = $681 | 1;
  43645. $683 = ((($679)) + 4|0);
  43646. HEAP32[$683>>2] = $682;
  43647. $684 = (($679) + ($681)|0);
  43648. $685 = ((($684)) + 4|0);
  43649. HEAP32[$685>>2] = 40;
  43650. $686 = HEAP32[(23256)>>2]|0;
  43651. HEAP32[(22796)>>2] = $686;
  43652. break;
  43653. }
  43654. }
  43655. }
  43656. $687 = HEAP32[(22784)>>2]|0;
  43657. $688 = ($$749$i>>>0)<($687>>>0);
  43658. if ($688) {
  43659. HEAP32[(22784)>>2] = $$749$i;
  43660. $752 = $$749$i;
  43661. } else {
  43662. $752 = $687;
  43663. }
  43664. $689 = (($$749$i) + ($$723948$i)|0);
  43665. $$124470$i = (23216);
  43666. while(1) {
  43667. $690 = HEAP32[$$124470$i>>2]|0;
  43668. $691 = ($690|0)==($689|0);
  43669. if ($691) {
  43670. label = 198;
  43671. break;
  43672. }
  43673. $692 = ((($$124470$i)) + 8|0);
  43674. $693 = HEAP32[$692>>2]|0;
  43675. $694 = ($693|0)==(0|0);
  43676. if ($694) {
  43677. break;
  43678. } else {
  43679. $$124470$i = $693;
  43680. }
  43681. }
  43682. if ((label|0) == 198) {
  43683. $695 = ((($$124470$i)) + 12|0);
  43684. $696 = HEAP32[$695>>2]|0;
  43685. $697 = $696 & 8;
  43686. $698 = ($697|0)==(0);
  43687. if ($698) {
  43688. HEAP32[$$124470$i>>2] = $$749$i;
  43689. $699 = ((($$124470$i)) + 4|0);
  43690. $700 = HEAP32[$699>>2]|0;
  43691. $701 = (($700) + ($$723948$i))|0;
  43692. HEAP32[$699>>2] = $701;
  43693. $702 = ((($$749$i)) + 8|0);
  43694. $703 = $702;
  43695. $704 = $703 & 7;
  43696. $705 = ($704|0)==(0);
  43697. $706 = (0 - ($703))|0;
  43698. $707 = $706 & 7;
  43699. $708 = $705 ? 0 : $707;
  43700. $709 = (($$749$i) + ($708)|0);
  43701. $710 = ((($689)) + 8|0);
  43702. $711 = $710;
  43703. $712 = $711 & 7;
  43704. $713 = ($712|0)==(0);
  43705. $714 = (0 - ($711))|0;
  43706. $715 = $714 & 7;
  43707. $716 = $713 ? 0 : $715;
  43708. $717 = (($689) + ($716)|0);
  43709. $718 = $717;
  43710. $719 = $709;
  43711. $720 = (($718) - ($719))|0;
  43712. $721 = (($709) + ($$0197)|0);
  43713. $722 = (($720) - ($$0197))|0;
  43714. $723 = $$0197 | 3;
  43715. $724 = ((($709)) + 4|0);
  43716. HEAP32[$724>>2] = $723;
  43717. $725 = ($717|0)==($630|0);
  43718. do {
  43719. if ($725) {
  43720. $726 = HEAP32[(22780)>>2]|0;
  43721. $727 = (($726) + ($722))|0;
  43722. HEAP32[(22780)>>2] = $727;
  43723. HEAP32[(22792)>>2] = $721;
  43724. $728 = $727 | 1;
  43725. $729 = ((($721)) + 4|0);
  43726. HEAP32[$729>>2] = $728;
  43727. } else {
  43728. $730 = HEAP32[(22788)>>2]|0;
  43729. $731 = ($717|0)==($730|0);
  43730. if ($731) {
  43731. $732 = HEAP32[(22776)>>2]|0;
  43732. $733 = (($732) + ($722))|0;
  43733. HEAP32[(22776)>>2] = $733;
  43734. HEAP32[(22788)>>2] = $721;
  43735. $734 = $733 | 1;
  43736. $735 = ((($721)) + 4|0);
  43737. HEAP32[$735>>2] = $734;
  43738. $736 = (($721) + ($733)|0);
  43739. HEAP32[$736>>2] = $733;
  43740. break;
  43741. }
  43742. $737 = ((($717)) + 4|0);
  43743. $738 = HEAP32[$737>>2]|0;
  43744. $739 = $738 & 3;
  43745. $740 = ($739|0)==(1);
  43746. if ($740) {
  43747. $741 = $738 & -8;
  43748. $742 = $738 >>> 3;
  43749. $743 = ($738>>>0)<(256);
  43750. L314: do {
  43751. if ($743) {
  43752. $744 = ((($717)) + 8|0);
  43753. $745 = HEAP32[$744>>2]|0;
  43754. $746 = ((($717)) + 12|0);
  43755. $747 = HEAP32[$746>>2]|0;
  43756. $748 = $742 << 1;
  43757. $749 = (22808 + ($748<<2)|0);
  43758. $750 = ($745|0)==($749|0);
  43759. do {
  43760. if (!($750)) {
  43761. $751 = ($745>>>0)<($752>>>0);
  43762. if ($751) {
  43763. _abort();
  43764. // unreachable;
  43765. }
  43766. $753 = ((($745)) + 12|0);
  43767. $754 = HEAP32[$753>>2]|0;
  43768. $755 = ($754|0)==($717|0);
  43769. if ($755) {
  43770. break;
  43771. }
  43772. _abort();
  43773. // unreachable;
  43774. }
  43775. } while(0);
  43776. $756 = ($747|0)==($745|0);
  43777. if ($756) {
  43778. $757 = 1 << $742;
  43779. $758 = $757 ^ -1;
  43780. $759 = HEAP32[5692]|0;
  43781. $760 = $759 & $758;
  43782. HEAP32[5692] = $760;
  43783. break;
  43784. }
  43785. $761 = ($747|0)==($749|0);
  43786. do {
  43787. if ($761) {
  43788. $$pre10$i$i = ((($747)) + 8|0);
  43789. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  43790. } else {
  43791. $762 = ($747>>>0)<($752>>>0);
  43792. if ($762) {
  43793. _abort();
  43794. // unreachable;
  43795. }
  43796. $763 = ((($747)) + 8|0);
  43797. $764 = HEAP32[$763>>2]|0;
  43798. $765 = ($764|0)==($717|0);
  43799. if ($765) {
  43800. $$pre$phi11$i$iZ2D = $763;
  43801. break;
  43802. }
  43803. _abort();
  43804. // unreachable;
  43805. }
  43806. } while(0);
  43807. $766 = ((($745)) + 12|0);
  43808. HEAP32[$766>>2] = $747;
  43809. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  43810. } else {
  43811. $767 = ((($717)) + 24|0);
  43812. $768 = HEAP32[$767>>2]|0;
  43813. $769 = ((($717)) + 12|0);
  43814. $770 = HEAP32[$769>>2]|0;
  43815. $771 = ($770|0)==($717|0);
  43816. do {
  43817. if ($771) {
  43818. $781 = ((($717)) + 16|0);
  43819. $782 = ((($781)) + 4|0);
  43820. $783 = HEAP32[$782>>2]|0;
  43821. $784 = ($783|0)==(0|0);
  43822. if ($784) {
  43823. $785 = HEAP32[$781>>2]|0;
  43824. $786 = ($785|0)==(0|0);
  43825. if ($786) {
  43826. $$3$i$i = 0;
  43827. break;
  43828. } else {
  43829. $$1291$i$i = $785;$$1293$i$i = $781;
  43830. }
  43831. } else {
  43832. $$1291$i$i = $783;$$1293$i$i = $782;
  43833. }
  43834. while(1) {
  43835. $787 = ((($$1291$i$i)) + 20|0);
  43836. $788 = HEAP32[$787>>2]|0;
  43837. $789 = ($788|0)==(0|0);
  43838. if (!($789)) {
  43839. $$1291$i$i = $788;$$1293$i$i = $787;
  43840. continue;
  43841. }
  43842. $790 = ((($$1291$i$i)) + 16|0);
  43843. $791 = HEAP32[$790>>2]|0;
  43844. $792 = ($791|0)==(0|0);
  43845. if ($792) {
  43846. break;
  43847. } else {
  43848. $$1291$i$i = $791;$$1293$i$i = $790;
  43849. }
  43850. }
  43851. $793 = ($$1293$i$i>>>0)<($752>>>0);
  43852. if ($793) {
  43853. _abort();
  43854. // unreachable;
  43855. } else {
  43856. HEAP32[$$1293$i$i>>2] = 0;
  43857. $$3$i$i = $$1291$i$i;
  43858. break;
  43859. }
  43860. } else {
  43861. $772 = ((($717)) + 8|0);
  43862. $773 = HEAP32[$772>>2]|0;
  43863. $774 = ($773>>>0)<($752>>>0);
  43864. if ($774) {
  43865. _abort();
  43866. // unreachable;
  43867. }
  43868. $775 = ((($773)) + 12|0);
  43869. $776 = HEAP32[$775>>2]|0;
  43870. $777 = ($776|0)==($717|0);
  43871. if (!($777)) {
  43872. _abort();
  43873. // unreachable;
  43874. }
  43875. $778 = ((($770)) + 8|0);
  43876. $779 = HEAP32[$778>>2]|0;
  43877. $780 = ($779|0)==($717|0);
  43878. if ($780) {
  43879. HEAP32[$775>>2] = $770;
  43880. HEAP32[$778>>2] = $773;
  43881. $$3$i$i = $770;
  43882. break;
  43883. } else {
  43884. _abort();
  43885. // unreachable;
  43886. }
  43887. }
  43888. } while(0);
  43889. $794 = ($768|0)==(0|0);
  43890. if ($794) {
  43891. break;
  43892. }
  43893. $795 = ((($717)) + 28|0);
  43894. $796 = HEAP32[$795>>2]|0;
  43895. $797 = (23072 + ($796<<2)|0);
  43896. $798 = HEAP32[$797>>2]|0;
  43897. $799 = ($717|0)==($798|0);
  43898. do {
  43899. if ($799) {
  43900. HEAP32[$797>>2] = $$3$i$i;
  43901. $cond$i$i = ($$3$i$i|0)==(0|0);
  43902. if (!($cond$i$i)) {
  43903. break;
  43904. }
  43905. $800 = 1 << $796;
  43906. $801 = $800 ^ -1;
  43907. $802 = HEAP32[(22772)>>2]|0;
  43908. $803 = $802 & $801;
  43909. HEAP32[(22772)>>2] = $803;
  43910. break L314;
  43911. } else {
  43912. $804 = HEAP32[(22784)>>2]|0;
  43913. $805 = ($768>>>0)<($804>>>0);
  43914. if ($805) {
  43915. _abort();
  43916. // unreachable;
  43917. } else {
  43918. $806 = ((($768)) + 16|0);
  43919. $807 = HEAP32[$806>>2]|0;
  43920. $not$$i17$i = ($807|0)!=($717|0);
  43921. $$sink1$i$i = $not$$i17$i&1;
  43922. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  43923. HEAP32[$808>>2] = $$3$i$i;
  43924. $809 = ($$3$i$i|0)==(0|0);
  43925. if ($809) {
  43926. break L314;
  43927. } else {
  43928. break;
  43929. }
  43930. }
  43931. }
  43932. } while(0);
  43933. $810 = HEAP32[(22784)>>2]|0;
  43934. $811 = ($$3$i$i>>>0)<($810>>>0);
  43935. if ($811) {
  43936. _abort();
  43937. // unreachable;
  43938. }
  43939. $812 = ((($$3$i$i)) + 24|0);
  43940. HEAP32[$812>>2] = $768;
  43941. $813 = ((($717)) + 16|0);
  43942. $814 = HEAP32[$813>>2]|0;
  43943. $815 = ($814|0)==(0|0);
  43944. do {
  43945. if (!($815)) {
  43946. $816 = ($814>>>0)<($810>>>0);
  43947. if ($816) {
  43948. _abort();
  43949. // unreachable;
  43950. } else {
  43951. $817 = ((($$3$i$i)) + 16|0);
  43952. HEAP32[$817>>2] = $814;
  43953. $818 = ((($814)) + 24|0);
  43954. HEAP32[$818>>2] = $$3$i$i;
  43955. break;
  43956. }
  43957. }
  43958. } while(0);
  43959. $819 = ((($813)) + 4|0);
  43960. $820 = HEAP32[$819>>2]|0;
  43961. $821 = ($820|0)==(0|0);
  43962. if ($821) {
  43963. break;
  43964. }
  43965. $822 = HEAP32[(22784)>>2]|0;
  43966. $823 = ($820>>>0)<($822>>>0);
  43967. if ($823) {
  43968. _abort();
  43969. // unreachable;
  43970. } else {
  43971. $824 = ((($$3$i$i)) + 20|0);
  43972. HEAP32[$824>>2] = $820;
  43973. $825 = ((($820)) + 24|0);
  43974. HEAP32[$825>>2] = $$3$i$i;
  43975. break;
  43976. }
  43977. }
  43978. } while(0);
  43979. $826 = (($717) + ($741)|0);
  43980. $827 = (($741) + ($722))|0;
  43981. $$0$i18$i = $826;$$0287$i$i = $827;
  43982. } else {
  43983. $$0$i18$i = $717;$$0287$i$i = $722;
  43984. }
  43985. $828 = ((($$0$i18$i)) + 4|0);
  43986. $829 = HEAP32[$828>>2]|0;
  43987. $830 = $829 & -2;
  43988. HEAP32[$828>>2] = $830;
  43989. $831 = $$0287$i$i | 1;
  43990. $832 = ((($721)) + 4|0);
  43991. HEAP32[$832>>2] = $831;
  43992. $833 = (($721) + ($$0287$i$i)|0);
  43993. HEAP32[$833>>2] = $$0287$i$i;
  43994. $834 = $$0287$i$i >>> 3;
  43995. $835 = ($$0287$i$i>>>0)<(256);
  43996. if ($835) {
  43997. $836 = $834 << 1;
  43998. $837 = (22808 + ($836<<2)|0);
  43999. $838 = HEAP32[5692]|0;
  44000. $839 = 1 << $834;
  44001. $840 = $838 & $839;
  44002. $841 = ($840|0)==(0);
  44003. do {
  44004. if ($841) {
  44005. $842 = $838 | $839;
  44006. HEAP32[5692] = $842;
  44007. $$pre$i19$i = ((($837)) + 8|0);
  44008. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  44009. } else {
  44010. $843 = ((($837)) + 8|0);
  44011. $844 = HEAP32[$843>>2]|0;
  44012. $845 = HEAP32[(22784)>>2]|0;
  44013. $846 = ($844>>>0)<($845>>>0);
  44014. if (!($846)) {
  44015. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  44016. break;
  44017. }
  44018. _abort();
  44019. // unreachable;
  44020. }
  44021. } while(0);
  44022. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  44023. $847 = ((($$0295$i$i)) + 12|0);
  44024. HEAP32[$847>>2] = $721;
  44025. $848 = ((($721)) + 8|0);
  44026. HEAP32[$848>>2] = $$0295$i$i;
  44027. $849 = ((($721)) + 12|0);
  44028. HEAP32[$849>>2] = $837;
  44029. break;
  44030. }
  44031. $850 = $$0287$i$i >>> 8;
  44032. $851 = ($850|0)==(0);
  44033. do {
  44034. if ($851) {
  44035. $$0296$i$i = 0;
  44036. } else {
  44037. $852 = ($$0287$i$i>>>0)>(16777215);
  44038. if ($852) {
  44039. $$0296$i$i = 31;
  44040. break;
  44041. }
  44042. $853 = (($850) + 1048320)|0;
  44043. $854 = $853 >>> 16;
  44044. $855 = $854 & 8;
  44045. $856 = $850 << $855;
  44046. $857 = (($856) + 520192)|0;
  44047. $858 = $857 >>> 16;
  44048. $859 = $858 & 4;
  44049. $860 = $859 | $855;
  44050. $861 = $856 << $859;
  44051. $862 = (($861) + 245760)|0;
  44052. $863 = $862 >>> 16;
  44053. $864 = $863 & 2;
  44054. $865 = $860 | $864;
  44055. $866 = (14 - ($865))|0;
  44056. $867 = $861 << $864;
  44057. $868 = $867 >>> 15;
  44058. $869 = (($866) + ($868))|0;
  44059. $870 = $869 << 1;
  44060. $871 = (($869) + 7)|0;
  44061. $872 = $$0287$i$i >>> $871;
  44062. $873 = $872 & 1;
  44063. $874 = $873 | $870;
  44064. $$0296$i$i = $874;
  44065. }
  44066. } while(0);
  44067. $875 = (23072 + ($$0296$i$i<<2)|0);
  44068. $876 = ((($721)) + 28|0);
  44069. HEAP32[$876>>2] = $$0296$i$i;
  44070. $877 = ((($721)) + 16|0);
  44071. $878 = ((($877)) + 4|0);
  44072. HEAP32[$878>>2] = 0;
  44073. HEAP32[$877>>2] = 0;
  44074. $879 = HEAP32[(22772)>>2]|0;
  44075. $880 = 1 << $$0296$i$i;
  44076. $881 = $879 & $880;
  44077. $882 = ($881|0)==(0);
  44078. if ($882) {
  44079. $883 = $879 | $880;
  44080. HEAP32[(22772)>>2] = $883;
  44081. HEAP32[$875>>2] = $721;
  44082. $884 = ((($721)) + 24|0);
  44083. HEAP32[$884>>2] = $875;
  44084. $885 = ((($721)) + 12|0);
  44085. HEAP32[$885>>2] = $721;
  44086. $886 = ((($721)) + 8|0);
  44087. HEAP32[$886>>2] = $721;
  44088. break;
  44089. }
  44090. $887 = HEAP32[$875>>2]|0;
  44091. $888 = ($$0296$i$i|0)==(31);
  44092. $889 = $$0296$i$i >>> 1;
  44093. $890 = (25 - ($889))|0;
  44094. $891 = $888 ? 0 : $890;
  44095. $892 = $$0287$i$i << $891;
  44096. $$0288$i$i = $892;$$0289$i$i = $887;
  44097. while(1) {
  44098. $893 = ((($$0289$i$i)) + 4|0);
  44099. $894 = HEAP32[$893>>2]|0;
  44100. $895 = $894 & -8;
  44101. $896 = ($895|0)==($$0287$i$i|0);
  44102. if ($896) {
  44103. label = 265;
  44104. break;
  44105. }
  44106. $897 = $$0288$i$i >>> 31;
  44107. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  44108. $899 = $$0288$i$i << 1;
  44109. $900 = HEAP32[$898>>2]|0;
  44110. $901 = ($900|0)==(0|0);
  44111. if ($901) {
  44112. label = 262;
  44113. break;
  44114. } else {
  44115. $$0288$i$i = $899;$$0289$i$i = $900;
  44116. }
  44117. }
  44118. if ((label|0) == 262) {
  44119. $902 = HEAP32[(22784)>>2]|0;
  44120. $903 = ($898>>>0)<($902>>>0);
  44121. if ($903) {
  44122. _abort();
  44123. // unreachable;
  44124. } else {
  44125. HEAP32[$898>>2] = $721;
  44126. $904 = ((($721)) + 24|0);
  44127. HEAP32[$904>>2] = $$0289$i$i;
  44128. $905 = ((($721)) + 12|0);
  44129. HEAP32[$905>>2] = $721;
  44130. $906 = ((($721)) + 8|0);
  44131. HEAP32[$906>>2] = $721;
  44132. break;
  44133. }
  44134. }
  44135. else if ((label|0) == 265) {
  44136. $907 = ((($$0289$i$i)) + 8|0);
  44137. $908 = HEAP32[$907>>2]|0;
  44138. $909 = HEAP32[(22784)>>2]|0;
  44139. $910 = ($908>>>0)>=($909>>>0);
  44140. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  44141. $911 = $910 & $not$7$i$i;
  44142. if ($911) {
  44143. $912 = ((($908)) + 12|0);
  44144. HEAP32[$912>>2] = $721;
  44145. HEAP32[$907>>2] = $721;
  44146. $913 = ((($721)) + 8|0);
  44147. HEAP32[$913>>2] = $908;
  44148. $914 = ((($721)) + 12|0);
  44149. HEAP32[$914>>2] = $$0289$i$i;
  44150. $915 = ((($721)) + 24|0);
  44151. HEAP32[$915>>2] = 0;
  44152. break;
  44153. } else {
  44154. _abort();
  44155. // unreachable;
  44156. }
  44157. }
  44158. }
  44159. } while(0);
  44160. $1047 = ((($709)) + 8|0);
  44161. $$0 = $1047;
  44162. STACKTOP = sp;return ($$0|0);
  44163. }
  44164. }
  44165. $$0$i$i$i = (23216);
  44166. while(1) {
  44167. $916 = HEAP32[$$0$i$i$i>>2]|0;
  44168. $917 = ($916>>>0)>($630>>>0);
  44169. if (!($917)) {
  44170. $918 = ((($$0$i$i$i)) + 4|0);
  44171. $919 = HEAP32[$918>>2]|0;
  44172. $920 = (($916) + ($919)|0);
  44173. $921 = ($920>>>0)>($630>>>0);
  44174. if ($921) {
  44175. break;
  44176. }
  44177. }
  44178. $922 = ((($$0$i$i$i)) + 8|0);
  44179. $923 = HEAP32[$922>>2]|0;
  44180. $$0$i$i$i = $923;
  44181. }
  44182. $924 = ((($920)) + -47|0);
  44183. $925 = ((($924)) + 8|0);
  44184. $926 = $925;
  44185. $927 = $926 & 7;
  44186. $928 = ($927|0)==(0);
  44187. $929 = (0 - ($926))|0;
  44188. $930 = $929 & 7;
  44189. $931 = $928 ? 0 : $930;
  44190. $932 = (($924) + ($931)|0);
  44191. $933 = ((($630)) + 16|0);
  44192. $934 = ($932>>>0)<($933>>>0);
  44193. $935 = $934 ? $630 : $932;
  44194. $936 = ((($935)) + 8|0);
  44195. $937 = ((($935)) + 24|0);
  44196. $938 = (($$723948$i) + -40)|0;
  44197. $939 = ((($$749$i)) + 8|0);
  44198. $940 = $939;
  44199. $941 = $940 & 7;
  44200. $942 = ($941|0)==(0);
  44201. $943 = (0 - ($940))|0;
  44202. $944 = $943 & 7;
  44203. $945 = $942 ? 0 : $944;
  44204. $946 = (($$749$i) + ($945)|0);
  44205. $947 = (($938) - ($945))|0;
  44206. HEAP32[(22792)>>2] = $946;
  44207. HEAP32[(22780)>>2] = $947;
  44208. $948 = $947 | 1;
  44209. $949 = ((($946)) + 4|0);
  44210. HEAP32[$949>>2] = $948;
  44211. $950 = (($946) + ($947)|0);
  44212. $951 = ((($950)) + 4|0);
  44213. HEAP32[$951>>2] = 40;
  44214. $952 = HEAP32[(23256)>>2]|0;
  44215. HEAP32[(22796)>>2] = $952;
  44216. $953 = ((($935)) + 4|0);
  44217. HEAP32[$953>>2] = 27;
  44218. ;HEAP32[$936>>2]=HEAP32[(23216)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(23216)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(23216)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(23216)+12>>2]|0;
  44219. HEAP32[(23216)>>2] = $$749$i;
  44220. HEAP32[(23220)>>2] = $$723948$i;
  44221. HEAP32[(23228)>>2] = 0;
  44222. HEAP32[(23224)>>2] = $936;
  44223. $955 = $937;
  44224. while(1) {
  44225. $954 = ((($955)) + 4|0);
  44226. HEAP32[$954>>2] = 7;
  44227. $956 = ((($955)) + 8|0);
  44228. $957 = ($956>>>0)<($920>>>0);
  44229. if ($957) {
  44230. $955 = $954;
  44231. } else {
  44232. break;
  44233. }
  44234. }
  44235. $958 = ($935|0)==($630|0);
  44236. if (!($958)) {
  44237. $959 = $935;
  44238. $960 = $630;
  44239. $961 = (($959) - ($960))|0;
  44240. $962 = HEAP32[$953>>2]|0;
  44241. $963 = $962 & -2;
  44242. HEAP32[$953>>2] = $963;
  44243. $964 = $961 | 1;
  44244. $965 = ((($630)) + 4|0);
  44245. HEAP32[$965>>2] = $964;
  44246. HEAP32[$935>>2] = $961;
  44247. $966 = $961 >>> 3;
  44248. $967 = ($961>>>0)<(256);
  44249. if ($967) {
  44250. $968 = $966 << 1;
  44251. $969 = (22808 + ($968<<2)|0);
  44252. $970 = HEAP32[5692]|0;
  44253. $971 = 1 << $966;
  44254. $972 = $970 & $971;
  44255. $973 = ($972|0)==(0);
  44256. if ($973) {
  44257. $974 = $970 | $971;
  44258. HEAP32[5692] = $974;
  44259. $$pre$i$i = ((($969)) + 8|0);
  44260. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  44261. } else {
  44262. $975 = ((($969)) + 8|0);
  44263. $976 = HEAP32[$975>>2]|0;
  44264. $977 = HEAP32[(22784)>>2]|0;
  44265. $978 = ($976>>>0)<($977>>>0);
  44266. if ($978) {
  44267. _abort();
  44268. // unreachable;
  44269. } else {
  44270. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  44271. }
  44272. }
  44273. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  44274. $979 = ((($$0211$i$i)) + 12|0);
  44275. HEAP32[$979>>2] = $630;
  44276. $980 = ((($630)) + 8|0);
  44277. HEAP32[$980>>2] = $$0211$i$i;
  44278. $981 = ((($630)) + 12|0);
  44279. HEAP32[$981>>2] = $969;
  44280. break;
  44281. }
  44282. $982 = $961 >>> 8;
  44283. $983 = ($982|0)==(0);
  44284. if ($983) {
  44285. $$0212$i$i = 0;
  44286. } else {
  44287. $984 = ($961>>>0)>(16777215);
  44288. if ($984) {
  44289. $$0212$i$i = 31;
  44290. } else {
  44291. $985 = (($982) + 1048320)|0;
  44292. $986 = $985 >>> 16;
  44293. $987 = $986 & 8;
  44294. $988 = $982 << $987;
  44295. $989 = (($988) + 520192)|0;
  44296. $990 = $989 >>> 16;
  44297. $991 = $990 & 4;
  44298. $992 = $991 | $987;
  44299. $993 = $988 << $991;
  44300. $994 = (($993) + 245760)|0;
  44301. $995 = $994 >>> 16;
  44302. $996 = $995 & 2;
  44303. $997 = $992 | $996;
  44304. $998 = (14 - ($997))|0;
  44305. $999 = $993 << $996;
  44306. $1000 = $999 >>> 15;
  44307. $1001 = (($998) + ($1000))|0;
  44308. $1002 = $1001 << 1;
  44309. $1003 = (($1001) + 7)|0;
  44310. $1004 = $961 >>> $1003;
  44311. $1005 = $1004 & 1;
  44312. $1006 = $1005 | $1002;
  44313. $$0212$i$i = $1006;
  44314. }
  44315. }
  44316. $1007 = (23072 + ($$0212$i$i<<2)|0);
  44317. $1008 = ((($630)) + 28|0);
  44318. HEAP32[$1008>>2] = $$0212$i$i;
  44319. $1009 = ((($630)) + 20|0);
  44320. HEAP32[$1009>>2] = 0;
  44321. HEAP32[$933>>2] = 0;
  44322. $1010 = HEAP32[(22772)>>2]|0;
  44323. $1011 = 1 << $$0212$i$i;
  44324. $1012 = $1010 & $1011;
  44325. $1013 = ($1012|0)==(0);
  44326. if ($1013) {
  44327. $1014 = $1010 | $1011;
  44328. HEAP32[(22772)>>2] = $1014;
  44329. HEAP32[$1007>>2] = $630;
  44330. $1015 = ((($630)) + 24|0);
  44331. HEAP32[$1015>>2] = $1007;
  44332. $1016 = ((($630)) + 12|0);
  44333. HEAP32[$1016>>2] = $630;
  44334. $1017 = ((($630)) + 8|0);
  44335. HEAP32[$1017>>2] = $630;
  44336. break;
  44337. }
  44338. $1018 = HEAP32[$1007>>2]|0;
  44339. $1019 = ($$0212$i$i|0)==(31);
  44340. $1020 = $$0212$i$i >>> 1;
  44341. $1021 = (25 - ($1020))|0;
  44342. $1022 = $1019 ? 0 : $1021;
  44343. $1023 = $961 << $1022;
  44344. $$0206$i$i = $1023;$$0207$i$i = $1018;
  44345. while(1) {
  44346. $1024 = ((($$0207$i$i)) + 4|0);
  44347. $1025 = HEAP32[$1024>>2]|0;
  44348. $1026 = $1025 & -8;
  44349. $1027 = ($1026|0)==($961|0);
  44350. if ($1027) {
  44351. label = 292;
  44352. break;
  44353. }
  44354. $1028 = $$0206$i$i >>> 31;
  44355. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  44356. $1030 = $$0206$i$i << 1;
  44357. $1031 = HEAP32[$1029>>2]|0;
  44358. $1032 = ($1031|0)==(0|0);
  44359. if ($1032) {
  44360. label = 289;
  44361. break;
  44362. } else {
  44363. $$0206$i$i = $1030;$$0207$i$i = $1031;
  44364. }
  44365. }
  44366. if ((label|0) == 289) {
  44367. $1033 = HEAP32[(22784)>>2]|0;
  44368. $1034 = ($1029>>>0)<($1033>>>0);
  44369. if ($1034) {
  44370. _abort();
  44371. // unreachable;
  44372. } else {
  44373. HEAP32[$1029>>2] = $630;
  44374. $1035 = ((($630)) + 24|0);
  44375. HEAP32[$1035>>2] = $$0207$i$i;
  44376. $1036 = ((($630)) + 12|0);
  44377. HEAP32[$1036>>2] = $630;
  44378. $1037 = ((($630)) + 8|0);
  44379. HEAP32[$1037>>2] = $630;
  44380. break;
  44381. }
  44382. }
  44383. else if ((label|0) == 292) {
  44384. $1038 = ((($$0207$i$i)) + 8|0);
  44385. $1039 = HEAP32[$1038>>2]|0;
  44386. $1040 = HEAP32[(22784)>>2]|0;
  44387. $1041 = ($1039>>>0)>=($1040>>>0);
  44388. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  44389. $1042 = $1041 & $not$$i$i;
  44390. if ($1042) {
  44391. $1043 = ((($1039)) + 12|0);
  44392. HEAP32[$1043>>2] = $630;
  44393. HEAP32[$1038>>2] = $630;
  44394. $1044 = ((($630)) + 8|0);
  44395. HEAP32[$1044>>2] = $1039;
  44396. $1045 = ((($630)) + 12|0);
  44397. HEAP32[$1045>>2] = $$0207$i$i;
  44398. $1046 = ((($630)) + 24|0);
  44399. HEAP32[$1046>>2] = 0;
  44400. break;
  44401. } else {
  44402. _abort();
  44403. // unreachable;
  44404. }
  44405. }
  44406. }
  44407. }
  44408. } while(0);
  44409. $1048 = HEAP32[(22780)>>2]|0;
  44410. $1049 = ($1048>>>0)>($$0197>>>0);
  44411. if ($1049) {
  44412. $1050 = (($1048) - ($$0197))|0;
  44413. HEAP32[(22780)>>2] = $1050;
  44414. $1051 = HEAP32[(22792)>>2]|0;
  44415. $1052 = (($1051) + ($$0197)|0);
  44416. HEAP32[(22792)>>2] = $1052;
  44417. $1053 = $1050 | 1;
  44418. $1054 = ((($1052)) + 4|0);
  44419. HEAP32[$1054>>2] = $1053;
  44420. $1055 = $$0197 | 3;
  44421. $1056 = ((($1051)) + 4|0);
  44422. HEAP32[$1056>>2] = $1055;
  44423. $1057 = ((($1051)) + 8|0);
  44424. $$0 = $1057;
  44425. STACKTOP = sp;return ($$0|0);
  44426. }
  44427. }
  44428. $1058 = (___errno_location()|0);
  44429. HEAP32[$1058>>2] = 12;
  44430. $$0 = 0;
  44431. STACKTOP = sp;return ($$0|0);
  44432. }
  44433. function _free($0) {
  44434. $0 = $0|0;
  44435. 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;
  44436. 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;
  44437. 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;
  44438. 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;
  44439. 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;
  44440. 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;
  44441. 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;
  44442. 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;
  44443. 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;
  44444. 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;
  44445. 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;
  44446. 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;
  44447. 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;
  44448. 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;
  44449. 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;
  44450. 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;
  44451. 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;
  44452. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  44453. sp = STACKTOP;
  44454. $1 = ($0|0)==(0|0);
  44455. if ($1) {
  44456. return;
  44457. }
  44458. $2 = ((($0)) + -8|0);
  44459. $3 = HEAP32[(22784)>>2]|0;
  44460. $4 = ($2>>>0)<($3>>>0);
  44461. if ($4) {
  44462. _abort();
  44463. // unreachable;
  44464. }
  44465. $5 = ((($0)) + -4|0);
  44466. $6 = HEAP32[$5>>2]|0;
  44467. $7 = $6 & 3;
  44468. $8 = ($7|0)==(1);
  44469. if ($8) {
  44470. _abort();
  44471. // unreachable;
  44472. }
  44473. $9 = $6 & -8;
  44474. $10 = (($2) + ($9)|0);
  44475. $11 = $6 & 1;
  44476. $12 = ($11|0)==(0);
  44477. L10: do {
  44478. if ($12) {
  44479. $13 = HEAP32[$2>>2]|0;
  44480. $14 = ($7|0)==(0);
  44481. if ($14) {
  44482. return;
  44483. }
  44484. $15 = (0 - ($13))|0;
  44485. $16 = (($2) + ($15)|0);
  44486. $17 = (($13) + ($9))|0;
  44487. $18 = ($16>>>0)<($3>>>0);
  44488. if ($18) {
  44489. _abort();
  44490. // unreachable;
  44491. }
  44492. $19 = HEAP32[(22788)>>2]|0;
  44493. $20 = ($16|0)==($19|0);
  44494. if ($20) {
  44495. $104 = ((($10)) + 4|0);
  44496. $105 = HEAP32[$104>>2]|0;
  44497. $106 = $105 & 3;
  44498. $107 = ($106|0)==(3);
  44499. if (!($107)) {
  44500. $$1 = $16;$$1382 = $17;$113 = $16;
  44501. break;
  44502. }
  44503. $108 = (($16) + ($17)|0);
  44504. $109 = ((($16)) + 4|0);
  44505. $110 = $17 | 1;
  44506. $111 = $105 & -2;
  44507. HEAP32[(22776)>>2] = $17;
  44508. HEAP32[$104>>2] = $111;
  44509. HEAP32[$109>>2] = $110;
  44510. HEAP32[$108>>2] = $17;
  44511. return;
  44512. }
  44513. $21 = $13 >>> 3;
  44514. $22 = ($13>>>0)<(256);
  44515. if ($22) {
  44516. $23 = ((($16)) + 8|0);
  44517. $24 = HEAP32[$23>>2]|0;
  44518. $25 = ((($16)) + 12|0);
  44519. $26 = HEAP32[$25>>2]|0;
  44520. $27 = $21 << 1;
  44521. $28 = (22808 + ($27<<2)|0);
  44522. $29 = ($24|0)==($28|0);
  44523. if (!($29)) {
  44524. $30 = ($24>>>0)<($3>>>0);
  44525. if ($30) {
  44526. _abort();
  44527. // unreachable;
  44528. }
  44529. $31 = ((($24)) + 12|0);
  44530. $32 = HEAP32[$31>>2]|0;
  44531. $33 = ($32|0)==($16|0);
  44532. if (!($33)) {
  44533. _abort();
  44534. // unreachable;
  44535. }
  44536. }
  44537. $34 = ($26|0)==($24|0);
  44538. if ($34) {
  44539. $35 = 1 << $21;
  44540. $36 = $35 ^ -1;
  44541. $37 = HEAP32[5692]|0;
  44542. $38 = $37 & $36;
  44543. HEAP32[5692] = $38;
  44544. $$1 = $16;$$1382 = $17;$113 = $16;
  44545. break;
  44546. }
  44547. $39 = ($26|0)==($28|0);
  44548. if ($39) {
  44549. $$pre444 = ((($26)) + 8|0);
  44550. $$pre$phi445Z2D = $$pre444;
  44551. } else {
  44552. $40 = ($26>>>0)<($3>>>0);
  44553. if ($40) {
  44554. _abort();
  44555. // unreachable;
  44556. }
  44557. $41 = ((($26)) + 8|0);
  44558. $42 = HEAP32[$41>>2]|0;
  44559. $43 = ($42|0)==($16|0);
  44560. if ($43) {
  44561. $$pre$phi445Z2D = $41;
  44562. } else {
  44563. _abort();
  44564. // unreachable;
  44565. }
  44566. }
  44567. $44 = ((($24)) + 12|0);
  44568. HEAP32[$44>>2] = $26;
  44569. HEAP32[$$pre$phi445Z2D>>2] = $24;
  44570. $$1 = $16;$$1382 = $17;$113 = $16;
  44571. break;
  44572. }
  44573. $45 = ((($16)) + 24|0);
  44574. $46 = HEAP32[$45>>2]|0;
  44575. $47 = ((($16)) + 12|0);
  44576. $48 = HEAP32[$47>>2]|0;
  44577. $49 = ($48|0)==($16|0);
  44578. do {
  44579. if ($49) {
  44580. $59 = ((($16)) + 16|0);
  44581. $60 = ((($59)) + 4|0);
  44582. $61 = HEAP32[$60>>2]|0;
  44583. $62 = ($61|0)==(0|0);
  44584. if ($62) {
  44585. $63 = HEAP32[$59>>2]|0;
  44586. $64 = ($63|0)==(0|0);
  44587. if ($64) {
  44588. $$3 = 0;
  44589. break;
  44590. } else {
  44591. $$1387 = $63;$$1390 = $59;
  44592. }
  44593. } else {
  44594. $$1387 = $61;$$1390 = $60;
  44595. }
  44596. while(1) {
  44597. $65 = ((($$1387)) + 20|0);
  44598. $66 = HEAP32[$65>>2]|0;
  44599. $67 = ($66|0)==(0|0);
  44600. if (!($67)) {
  44601. $$1387 = $66;$$1390 = $65;
  44602. continue;
  44603. }
  44604. $68 = ((($$1387)) + 16|0);
  44605. $69 = HEAP32[$68>>2]|0;
  44606. $70 = ($69|0)==(0|0);
  44607. if ($70) {
  44608. break;
  44609. } else {
  44610. $$1387 = $69;$$1390 = $68;
  44611. }
  44612. }
  44613. $71 = ($$1390>>>0)<($3>>>0);
  44614. if ($71) {
  44615. _abort();
  44616. // unreachable;
  44617. } else {
  44618. HEAP32[$$1390>>2] = 0;
  44619. $$3 = $$1387;
  44620. break;
  44621. }
  44622. } else {
  44623. $50 = ((($16)) + 8|0);
  44624. $51 = HEAP32[$50>>2]|0;
  44625. $52 = ($51>>>0)<($3>>>0);
  44626. if ($52) {
  44627. _abort();
  44628. // unreachable;
  44629. }
  44630. $53 = ((($51)) + 12|0);
  44631. $54 = HEAP32[$53>>2]|0;
  44632. $55 = ($54|0)==($16|0);
  44633. if (!($55)) {
  44634. _abort();
  44635. // unreachable;
  44636. }
  44637. $56 = ((($48)) + 8|0);
  44638. $57 = HEAP32[$56>>2]|0;
  44639. $58 = ($57|0)==($16|0);
  44640. if ($58) {
  44641. HEAP32[$53>>2] = $48;
  44642. HEAP32[$56>>2] = $51;
  44643. $$3 = $48;
  44644. break;
  44645. } else {
  44646. _abort();
  44647. // unreachable;
  44648. }
  44649. }
  44650. } while(0);
  44651. $72 = ($46|0)==(0|0);
  44652. if ($72) {
  44653. $$1 = $16;$$1382 = $17;$113 = $16;
  44654. } else {
  44655. $73 = ((($16)) + 28|0);
  44656. $74 = HEAP32[$73>>2]|0;
  44657. $75 = (23072 + ($74<<2)|0);
  44658. $76 = HEAP32[$75>>2]|0;
  44659. $77 = ($16|0)==($76|0);
  44660. do {
  44661. if ($77) {
  44662. HEAP32[$75>>2] = $$3;
  44663. $cond421 = ($$3|0)==(0|0);
  44664. if ($cond421) {
  44665. $78 = 1 << $74;
  44666. $79 = $78 ^ -1;
  44667. $80 = HEAP32[(22772)>>2]|0;
  44668. $81 = $80 & $79;
  44669. HEAP32[(22772)>>2] = $81;
  44670. $$1 = $16;$$1382 = $17;$113 = $16;
  44671. break L10;
  44672. }
  44673. } else {
  44674. $82 = HEAP32[(22784)>>2]|0;
  44675. $83 = ($46>>>0)<($82>>>0);
  44676. if ($83) {
  44677. _abort();
  44678. // unreachable;
  44679. } else {
  44680. $84 = ((($46)) + 16|0);
  44681. $85 = HEAP32[$84>>2]|0;
  44682. $not$405 = ($85|0)!=($16|0);
  44683. $$sink3 = $not$405&1;
  44684. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  44685. HEAP32[$86>>2] = $$3;
  44686. $87 = ($$3|0)==(0|0);
  44687. if ($87) {
  44688. $$1 = $16;$$1382 = $17;$113 = $16;
  44689. break L10;
  44690. } else {
  44691. break;
  44692. }
  44693. }
  44694. }
  44695. } while(0);
  44696. $88 = HEAP32[(22784)>>2]|0;
  44697. $89 = ($$3>>>0)<($88>>>0);
  44698. if ($89) {
  44699. _abort();
  44700. // unreachable;
  44701. }
  44702. $90 = ((($$3)) + 24|0);
  44703. HEAP32[$90>>2] = $46;
  44704. $91 = ((($16)) + 16|0);
  44705. $92 = HEAP32[$91>>2]|0;
  44706. $93 = ($92|0)==(0|0);
  44707. do {
  44708. if (!($93)) {
  44709. $94 = ($92>>>0)<($88>>>0);
  44710. if ($94) {
  44711. _abort();
  44712. // unreachable;
  44713. } else {
  44714. $95 = ((($$3)) + 16|0);
  44715. HEAP32[$95>>2] = $92;
  44716. $96 = ((($92)) + 24|0);
  44717. HEAP32[$96>>2] = $$3;
  44718. break;
  44719. }
  44720. }
  44721. } while(0);
  44722. $97 = ((($91)) + 4|0);
  44723. $98 = HEAP32[$97>>2]|0;
  44724. $99 = ($98|0)==(0|0);
  44725. if ($99) {
  44726. $$1 = $16;$$1382 = $17;$113 = $16;
  44727. } else {
  44728. $100 = HEAP32[(22784)>>2]|0;
  44729. $101 = ($98>>>0)<($100>>>0);
  44730. if ($101) {
  44731. _abort();
  44732. // unreachable;
  44733. } else {
  44734. $102 = ((($$3)) + 20|0);
  44735. HEAP32[$102>>2] = $98;
  44736. $103 = ((($98)) + 24|0);
  44737. HEAP32[$103>>2] = $$3;
  44738. $$1 = $16;$$1382 = $17;$113 = $16;
  44739. break;
  44740. }
  44741. }
  44742. }
  44743. } else {
  44744. $$1 = $2;$$1382 = $9;$113 = $2;
  44745. }
  44746. } while(0);
  44747. $112 = ($113>>>0)<($10>>>0);
  44748. if (!($112)) {
  44749. _abort();
  44750. // unreachable;
  44751. }
  44752. $114 = ((($10)) + 4|0);
  44753. $115 = HEAP32[$114>>2]|0;
  44754. $116 = $115 & 1;
  44755. $117 = ($116|0)==(0);
  44756. if ($117) {
  44757. _abort();
  44758. // unreachable;
  44759. }
  44760. $118 = $115 & 2;
  44761. $119 = ($118|0)==(0);
  44762. if ($119) {
  44763. $120 = HEAP32[(22792)>>2]|0;
  44764. $121 = ($10|0)==($120|0);
  44765. $122 = HEAP32[(22788)>>2]|0;
  44766. if ($121) {
  44767. $123 = HEAP32[(22780)>>2]|0;
  44768. $124 = (($123) + ($$1382))|0;
  44769. HEAP32[(22780)>>2] = $124;
  44770. HEAP32[(22792)>>2] = $$1;
  44771. $125 = $124 | 1;
  44772. $126 = ((($$1)) + 4|0);
  44773. HEAP32[$126>>2] = $125;
  44774. $127 = ($$1|0)==($122|0);
  44775. if (!($127)) {
  44776. return;
  44777. }
  44778. HEAP32[(22788)>>2] = 0;
  44779. HEAP32[(22776)>>2] = 0;
  44780. return;
  44781. }
  44782. $128 = ($10|0)==($122|0);
  44783. if ($128) {
  44784. $129 = HEAP32[(22776)>>2]|0;
  44785. $130 = (($129) + ($$1382))|0;
  44786. HEAP32[(22776)>>2] = $130;
  44787. HEAP32[(22788)>>2] = $113;
  44788. $131 = $130 | 1;
  44789. $132 = ((($$1)) + 4|0);
  44790. HEAP32[$132>>2] = $131;
  44791. $133 = (($113) + ($130)|0);
  44792. HEAP32[$133>>2] = $130;
  44793. return;
  44794. }
  44795. $134 = $115 & -8;
  44796. $135 = (($134) + ($$1382))|0;
  44797. $136 = $115 >>> 3;
  44798. $137 = ($115>>>0)<(256);
  44799. L108: do {
  44800. if ($137) {
  44801. $138 = ((($10)) + 8|0);
  44802. $139 = HEAP32[$138>>2]|0;
  44803. $140 = ((($10)) + 12|0);
  44804. $141 = HEAP32[$140>>2]|0;
  44805. $142 = $136 << 1;
  44806. $143 = (22808 + ($142<<2)|0);
  44807. $144 = ($139|0)==($143|0);
  44808. if (!($144)) {
  44809. $145 = HEAP32[(22784)>>2]|0;
  44810. $146 = ($139>>>0)<($145>>>0);
  44811. if ($146) {
  44812. _abort();
  44813. // unreachable;
  44814. }
  44815. $147 = ((($139)) + 12|0);
  44816. $148 = HEAP32[$147>>2]|0;
  44817. $149 = ($148|0)==($10|0);
  44818. if (!($149)) {
  44819. _abort();
  44820. // unreachable;
  44821. }
  44822. }
  44823. $150 = ($141|0)==($139|0);
  44824. if ($150) {
  44825. $151 = 1 << $136;
  44826. $152 = $151 ^ -1;
  44827. $153 = HEAP32[5692]|0;
  44828. $154 = $153 & $152;
  44829. HEAP32[5692] = $154;
  44830. break;
  44831. }
  44832. $155 = ($141|0)==($143|0);
  44833. if ($155) {
  44834. $$pre442 = ((($141)) + 8|0);
  44835. $$pre$phi443Z2D = $$pre442;
  44836. } else {
  44837. $156 = HEAP32[(22784)>>2]|0;
  44838. $157 = ($141>>>0)<($156>>>0);
  44839. if ($157) {
  44840. _abort();
  44841. // unreachable;
  44842. }
  44843. $158 = ((($141)) + 8|0);
  44844. $159 = HEAP32[$158>>2]|0;
  44845. $160 = ($159|0)==($10|0);
  44846. if ($160) {
  44847. $$pre$phi443Z2D = $158;
  44848. } else {
  44849. _abort();
  44850. // unreachable;
  44851. }
  44852. }
  44853. $161 = ((($139)) + 12|0);
  44854. HEAP32[$161>>2] = $141;
  44855. HEAP32[$$pre$phi443Z2D>>2] = $139;
  44856. } else {
  44857. $162 = ((($10)) + 24|0);
  44858. $163 = HEAP32[$162>>2]|0;
  44859. $164 = ((($10)) + 12|0);
  44860. $165 = HEAP32[$164>>2]|0;
  44861. $166 = ($165|0)==($10|0);
  44862. do {
  44863. if ($166) {
  44864. $177 = ((($10)) + 16|0);
  44865. $178 = ((($177)) + 4|0);
  44866. $179 = HEAP32[$178>>2]|0;
  44867. $180 = ($179|0)==(0|0);
  44868. if ($180) {
  44869. $181 = HEAP32[$177>>2]|0;
  44870. $182 = ($181|0)==(0|0);
  44871. if ($182) {
  44872. $$3400 = 0;
  44873. break;
  44874. } else {
  44875. $$1398 = $181;$$1402 = $177;
  44876. }
  44877. } else {
  44878. $$1398 = $179;$$1402 = $178;
  44879. }
  44880. while(1) {
  44881. $183 = ((($$1398)) + 20|0);
  44882. $184 = HEAP32[$183>>2]|0;
  44883. $185 = ($184|0)==(0|0);
  44884. if (!($185)) {
  44885. $$1398 = $184;$$1402 = $183;
  44886. continue;
  44887. }
  44888. $186 = ((($$1398)) + 16|0);
  44889. $187 = HEAP32[$186>>2]|0;
  44890. $188 = ($187|0)==(0|0);
  44891. if ($188) {
  44892. break;
  44893. } else {
  44894. $$1398 = $187;$$1402 = $186;
  44895. }
  44896. }
  44897. $189 = HEAP32[(22784)>>2]|0;
  44898. $190 = ($$1402>>>0)<($189>>>0);
  44899. if ($190) {
  44900. _abort();
  44901. // unreachable;
  44902. } else {
  44903. HEAP32[$$1402>>2] = 0;
  44904. $$3400 = $$1398;
  44905. break;
  44906. }
  44907. } else {
  44908. $167 = ((($10)) + 8|0);
  44909. $168 = HEAP32[$167>>2]|0;
  44910. $169 = HEAP32[(22784)>>2]|0;
  44911. $170 = ($168>>>0)<($169>>>0);
  44912. if ($170) {
  44913. _abort();
  44914. // unreachable;
  44915. }
  44916. $171 = ((($168)) + 12|0);
  44917. $172 = HEAP32[$171>>2]|0;
  44918. $173 = ($172|0)==($10|0);
  44919. if (!($173)) {
  44920. _abort();
  44921. // unreachable;
  44922. }
  44923. $174 = ((($165)) + 8|0);
  44924. $175 = HEAP32[$174>>2]|0;
  44925. $176 = ($175|0)==($10|0);
  44926. if ($176) {
  44927. HEAP32[$171>>2] = $165;
  44928. HEAP32[$174>>2] = $168;
  44929. $$3400 = $165;
  44930. break;
  44931. } else {
  44932. _abort();
  44933. // unreachable;
  44934. }
  44935. }
  44936. } while(0);
  44937. $191 = ($163|0)==(0|0);
  44938. if (!($191)) {
  44939. $192 = ((($10)) + 28|0);
  44940. $193 = HEAP32[$192>>2]|0;
  44941. $194 = (23072 + ($193<<2)|0);
  44942. $195 = HEAP32[$194>>2]|0;
  44943. $196 = ($10|0)==($195|0);
  44944. do {
  44945. if ($196) {
  44946. HEAP32[$194>>2] = $$3400;
  44947. $cond422 = ($$3400|0)==(0|0);
  44948. if ($cond422) {
  44949. $197 = 1 << $193;
  44950. $198 = $197 ^ -1;
  44951. $199 = HEAP32[(22772)>>2]|0;
  44952. $200 = $199 & $198;
  44953. HEAP32[(22772)>>2] = $200;
  44954. break L108;
  44955. }
  44956. } else {
  44957. $201 = HEAP32[(22784)>>2]|0;
  44958. $202 = ($163>>>0)<($201>>>0);
  44959. if ($202) {
  44960. _abort();
  44961. // unreachable;
  44962. } else {
  44963. $203 = ((($163)) + 16|0);
  44964. $204 = HEAP32[$203>>2]|0;
  44965. $not$ = ($204|0)!=($10|0);
  44966. $$sink5 = $not$&1;
  44967. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  44968. HEAP32[$205>>2] = $$3400;
  44969. $206 = ($$3400|0)==(0|0);
  44970. if ($206) {
  44971. break L108;
  44972. } else {
  44973. break;
  44974. }
  44975. }
  44976. }
  44977. } while(0);
  44978. $207 = HEAP32[(22784)>>2]|0;
  44979. $208 = ($$3400>>>0)<($207>>>0);
  44980. if ($208) {
  44981. _abort();
  44982. // unreachable;
  44983. }
  44984. $209 = ((($$3400)) + 24|0);
  44985. HEAP32[$209>>2] = $163;
  44986. $210 = ((($10)) + 16|0);
  44987. $211 = HEAP32[$210>>2]|0;
  44988. $212 = ($211|0)==(0|0);
  44989. do {
  44990. if (!($212)) {
  44991. $213 = ($211>>>0)<($207>>>0);
  44992. if ($213) {
  44993. _abort();
  44994. // unreachable;
  44995. } else {
  44996. $214 = ((($$3400)) + 16|0);
  44997. HEAP32[$214>>2] = $211;
  44998. $215 = ((($211)) + 24|0);
  44999. HEAP32[$215>>2] = $$3400;
  45000. break;
  45001. }
  45002. }
  45003. } while(0);
  45004. $216 = ((($210)) + 4|0);
  45005. $217 = HEAP32[$216>>2]|0;
  45006. $218 = ($217|0)==(0|0);
  45007. if (!($218)) {
  45008. $219 = HEAP32[(22784)>>2]|0;
  45009. $220 = ($217>>>0)<($219>>>0);
  45010. if ($220) {
  45011. _abort();
  45012. // unreachable;
  45013. } else {
  45014. $221 = ((($$3400)) + 20|0);
  45015. HEAP32[$221>>2] = $217;
  45016. $222 = ((($217)) + 24|0);
  45017. HEAP32[$222>>2] = $$3400;
  45018. break;
  45019. }
  45020. }
  45021. }
  45022. }
  45023. } while(0);
  45024. $223 = $135 | 1;
  45025. $224 = ((($$1)) + 4|0);
  45026. HEAP32[$224>>2] = $223;
  45027. $225 = (($113) + ($135)|0);
  45028. HEAP32[$225>>2] = $135;
  45029. $226 = HEAP32[(22788)>>2]|0;
  45030. $227 = ($$1|0)==($226|0);
  45031. if ($227) {
  45032. HEAP32[(22776)>>2] = $135;
  45033. return;
  45034. } else {
  45035. $$2 = $135;
  45036. }
  45037. } else {
  45038. $228 = $115 & -2;
  45039. HEAP32[$114>>2] = $228;
  45040. $229 = $$1382 | 1;
  45041. $230 = ((($$1)) + 4|0);
  45042. HEAP32[$230>>2] = $229;
  45043. $231 = (($113) + ($$1382)|0);
  45044. HEAP32[$231>>2] = $$1382;
  45045. $$2 = $$1382;
  45046. }
  45047. $232 = $$2 >>> 3;
  45048. $233 = ($$2>>>0)<(256);
  45049. if ($233) {
  45050. $234 = $232 << 1;
  45051. $235 = (22808 + ($234<<2)|0);
  45052. $236 = HEAP32[5692]|0;
  45053. $237 = 1 << $232;
  45054. $238 = $236 & $237;
  45055. $239 = ($238|0)==(0);
  45056. if ($239) {
  45057. $240 = $236 | $237;
  45058. HEAP32[5692] = $240;
  45059. $$pre = ((($235)) + 8|0);
  45060. $$0403 = $235;$$pre$phiZ2D = $$pre;
  45061. } else {
  45062. $241 = ((($235)) + 8|0);
  45063. $242 = HEAP32[$241>>2]|0;
  45064. $243 = HEAP32[(22784)>>2]|0;
  45065. $244 = ($242>>>0)<($243>>>0);
  45066. if ($244) {
  45067. _abort();
  45068. // unreachable;
  45069. } else {
  45070. $$0403 = $242;$$pre$phiZ2D = $241;
  45071. }
  45072. }
  45073. HEAP32[$$pre$phiZ2D>>2] = $$1;
  45074. $245 = ((($$0403)) + 12|0);
  45075. HEAP32[$245>>2] = $$1;
  45076. $246 = ((($$1)) + 8|0);
  45077. HEAP32[$246>>2] = $$0403;
  45078. $247 = ((($$1)) + 12|0);
  45079. HEAP32[$247>>2] = $235;
  45080. return;
  45081. }
  45082. $248 = $$2 >>> 8;
  45083. $249 = ($248|0)==(0);
  45084. if ($249) {
  45085. $$0396 = 0;
  45086. } else {
  45087. $250 = ($$2>>>0)>(16777215);
  45088. if ($250) {
  45089. $$0396 = 31;
  45090. } else {
  45091. $251 = (($248) + 1048320)|0;
  45092. $252 = $251 >>> 16;
  45093. $253 = $252 & 8;
  45094. $254 = $248 << $253;
  45095. $255 = (($254) + 520192)|0;
  45096. $256 = $255 >>> 16;
  45097. $257 = $256 & 4;
  45098. $258 = $257 | $253;
  45099. $259 = $254 << $257;
  45100. $260 = (($259) + 245760)|0;
  45101. $261 = $260 >>> 16;
  45102. $262 = $261 & 2;
  45103. $263 = $258 | $262;
  45104. $264 = (14 - ($263))|0;
  45105. $265 = $259 << $262;
  45106. $266 = $265 >>> 15;
  45107. $267 = (($264) + ($266))|0;
  45108. $268 = $267 << 1;
  45109. $269 = (($267) + 7)|0;
  45110. $270 = $$2 >>> $269;
  45111. $271 = $270 & 1;
  45112. $272 = $271 | $268;
  45113. $$0396 = $272;
  45114. }
  45115. }
  45116. $273 = (23072 + ($$0396<<2)|0);
  45117. $274 = ((($$1)) + 28|0);
  45118. HEAP32[$274>>2] = $$0396;
  45119. $275 = ((($$1)) + 16|0);
  45120. $276 = ((($$1)) + 20|0);
  45121. HEAP32[$276>>2] = 0;
  45122. HEAP32[$275>>2] = 0;
  45123. $277 = HEAP32[(22772)>>2]|0;
  45124. $278 = 1 << $$0396;
  45125. $279 = $277 & $278;
  45126. $280 = ($279|0)==(0);
  45127. do {
  45128. if ($280) {
  45129. $281 = $277 | $278;
  45130. HEAP32[(22772)>>2] = $281;
  45131. HEAP32[$273>>2] = $$1;
  45132. $282 = ((($$1)) + 24|0);
  45133. HEAP32[$282>>2] = $273;
  45134. $283 = ((($$1)) + 12|0);
  45135. HEAP32[$283>>2] = $$1;
  45136. $284 = ((($$1)) + 8|0);
  45137. HEAP32[$284>>2] = $$1;
  45138. } else {
  45139. $285 = HEAP32[$273>>2]|0;
  45140. $286 = ($$0396|0)==(31);
  45141. $287 = $$0396 >>> 1;
  45142. $288 = (25 - ($287))|0;
  45143. $289 = $286 ? 0 : $288;
  45144. $290 = $$2 << $289;
  45145. $$0383 = $290;$$0384 = $285;
  45146. while(1) {
  45147. $291 = ((($$0384)) + 4|0);
  45148. $292 = HEAP32[$291>>2]|0;
  45149. $293 = $292 & -8;
  45150. $294 = ($293|0)==($$2|0);
  45151. if ($294) {
  45152. label = 124;
  45153. break;
  45154. }
  45155. $295 = $$0383 >>> 31;
  45156. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  45157. $297 = $$0383 << 1;
  45158. $298 = HEAP32[$296>>2]|0;
  45159. $299 = ($298|0)==(0|0);
  45160. if ($299) {
  45161. label = 121;
  45162. break;
  45163. } else {
  45164. $$0383 = $297;$$0384 = $298;
  45165. }
  45166. }
  45167. if ((label|0) == 121) {
  45168. $300 = HEAP32[(22784)>>2]|0;
  45169. $301 = ($296>>>0)<($300>>>0);
  45170. if ($301) {
  45171. _abort();
  45172. // unreachable;
  45173. } else {
  45174. HEAP32[$296>>2] = $$1;
  45175. $302 = ((($$1)) + 24|0);
  45176. HEAP32[$302>>2] = $$0384;
  45177. $303 = ((($$1)) + 12|0);
  45178. HEAP32[$303>>2] = $$1;
  45179. $304 = ((($$1)) + 8|0);
  45180. HEAP32[$304>>2] = $$1;
  45181. break;
  45182. }
  45183. }
  45184. else if ((label|0) == 124) {
  45185. $305 = ((($$0384)) + 8|0);
  45186. $306 = HEAP32[$305>>2]|0;
  45187. $307 = HEAP32[(22784)>>2]|0;
  45188. $308 = ($306>>>0)>=($307>>>0);
  45189. $not$437 = ($$0384>>>0)>=($307>>>0);
  45190. $309 = $308 & $not$437;
  45191. if ($309) {
  45192. $310 = ((($306)) + 12|0);
  45193. HEAP32[$310>>2] = $$1;
  45194. HEAP32[$305>>2] = $$1;
  45195. $311 = ((($$1)) + 8|0);
  45196. HEAP32[$311>>2] = $306;
  45197. $312 = ((($$1)) + 12|0);
  45198. HEAP32[$312>>2] = $$0384;
  45199. $313 = ((($$1)) + 24|0);
  45200. HEAP32[$313>>2] = 0;
  45201. break;
  45202. } else {
  45203. _abort();
  45204. // unreachable;
  45205. }
  45206. }
  45207. }
  45208. } while(0);
  45209. $314 = HEAP32[(22800)>>2]|0;
  45210. $315 = (($314) + -1)|0;
  45211. HEAP32[(22800)>>2] = $315;
  45212. $316 = ($315|0)==(0);
  45213. if ($316) {
  45214. $$0212$in$i = (23224);
  45215. } else {
  45216. return;
  45217. }
  45218. while(1) {
  45219. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  45220. $317 = ($$0212$i|0)==(0|0);
  45221. $318 = ((($$0212$i)) + 8|0);
  45222. if ($317) {
  45223. break;
  45224. } else {
  45225. $$0212$in$i = $318;
  45226. }
  45227. }
  45228. HEAP32[(22800)>>2] = -1;
  45229. return;
  45230. }
  45231. function _realloc($0,$1) {
  45232. $0 = $0|0;
  45233. $1 = $1|0;
  45234. 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;
  45235. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  45236. sp = STACKTOP;
  45237. $2 = ($0|0)==(0|0);
  45238. if ($2) {
  45239. $3 = (_malloc($1)|0);
  45240. $$1 = $3;
  45241. return ($$1|0);
  45242. }
  45243. $4 = ($1>>>0)>(4294967231);
  45244. if ($4) {
  45245. $5 = (___errno_location()|0);
  45246. HEAP32[$5>>2] = 12;
  45247. $$1 = 0;
  45248. return ($$1|0);
  45249. }
  45250. $6 = ($1>>>0)<(11);
  45251. $7 = (($1) + 11)|0;
  45252. $8 = $7 & -8;
  45253. $9 = $6 ? 16 : $8;
  45254. $10 = ((($0)) + -8|0);
  45255. $11 = (_try_realloc_chunk($10,$9)|0);
  45256. $12 = ($11|0)==(0|0);
  45257. if (!($12)) {
  45258. $13 = ((($11)) + 8|0);
  45259. $$1 = $13;
  45260. return ($$1|0);
  45261. }
  45262. $14 = (_malloc($1)|0);
  45263. $15 = ($14|0)==(0|0);
  45264. if ($15) {
  45265. $$1 = 0;
  45266. return ($$1|0);
  45267. }
  45268. $16 = ((($0)) + -4|0);
  45269. $17 = HEAP32[$16>>2]|0;
  45270. $18 = $17 & -8;
  45271. $19 = $17 & 3;
  45272. $20 = ($19|0)==(0);
  45273. $21 = $20 ? 8 : 4;
  45274. $22 = (($18) - ($21))|0;
  45275. $23 = ($22>>>0)<($1>>>0);
  45276. $24 = $23 ? $22 : $1;
  45277. _memcpy(($14|0),($0|0),($24|0))|0;
  45278. _free($0);
  45279. $$1 = $14;
  45280. return ($$1|0);
  45281. }
  45282. function _try_realloc_chunk($0,$1) {
  45283. $0 = $0|0;
  45284. $1 = $1|0;
  45285. 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;
  45286. 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;
  45287. 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;
  45288. 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;
  45289. 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;
  45290. 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;
  45291. 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;
  45292. 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;
  45293. 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;
  45294. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  45295. sp = STACKTOP;
  45296. $2 = ((($0)) + 4|0);
  45297. $3 = HEAP32[$2>>2]|0;
  45298. $4 = $3 & -8;
  45299. $5 = (($0) + ($4)|0);
  45300. $6 = HEAP32[(22784)>>2]|0;
  45301. $7 = $3 & 3;
  45302. $notlhs = ($0>>>0)>=($6>>>0);
  45303. $notrhs = ($7|0)!=(1);
  45304. $or$cond$not = $notrhs & $notlhs;
  45305. $8 = ($0>>>0)<($5>>>0);
  45306. $or$cond3 = $or$cond$not & $8;
  45307. if (!($or$cond3)) {
  45308. _abort();
  45309. // unreachable;
  45310. }
  45311. $9 = ((($5)) + 4|0);
  45312. $10 = HEAP32[$9>>2]|0;
  45313. $11 = $10 & 1;
  45314. $12 = ($11|0)==(0);
  45315. if ($12) {
  45316. _abort();
  45317. // unreachable;
  45318. }
  45319. $13 = ($7|0)==(0);
  45320. if ($13) {
  45321. $14 = ($1>>>0)<(256);
  45322. if ($14) {
  45323. $$2 = 0;
  45324. return ($$2|0);
  45325. }
  45326. $15 = (($1) + 4)|0;
  45327. $16 = ($4>>>0)<($15>>>0);
  45328. if (!($16)) {
  45329. $17 = (($4) - ($1))|0;
  45330. $18 = HEAP32[(23248)>>2]|0;
  45331. $19 = $18 << 1;
  45332. $20 = ($17>>>0)>($19>>>0);
  45333. if (!($20)) {
  45334. $$2 = $0;
  45335. return ($$2|0);
  45336. }
  45337. }
  45338. $$2 = 0;
  45339. return ($$2|0);
  45340. }
  45341. $21 = ($4>>>0)<($1>>>0);
  45342. if (!($21)) {
  45343. $22 = (($4) - ($1))|0;
  45344. $23 = ($22>>>0)>(15);
  45345. if (!($23)) {
  45346. $$2 = $0;
  45347. return ($$2|0);
  45348. }
  45349. $24 = (($0) + ($1)|0);
  45350. $25 = $3 & 1;
  45351. $26 = $25 | $1;
  45352. $27 = $26 | 2;
  45353. HEAP32[$2>>2] = $27;
  45354. $28 = ((($24)) + 4|0);
  45355. $29 = $22 | 3;
  45356. HEAP32[$28>>2] = $29;
  45357. $30 = (($24) + ($22)|0);
  45358. $31 = ((($30)) + 4|0);
  45359. $32 = HEAP32[$31>>2]|0;
  45360. $33 = $32 | 1;
  45361. HEAP32[$31>>2] = $33;
  45362. _dispose_chunk($24,$22);
  45363. $$2 = $0;
  45364. return ($$2|0);
  45365. }
  45366. $34 = HEAP32[(22792)>>2]|0;
  45367. $35 = ($5|0)==($34|0);
  45368. if ($35) {
  45369. $36 = HEAP32[(22780)>>2]|0;
  45370. $37 = (($36) + ($4))|0;
  45371. $38 = ($37>>>0)>($1>>>0);
  45372. $39 = (($37) - ($1))|0;
  45373. $40 = (($0) + ($1)|0);
  45374. if (!($38)) {
  45375. $$2 = 0;
  45376. return ($$2|0);
  45377. }
  45378. $41 = $39 | 1;
  45379. $42 = ((($40)) + 4|0);
  45380. $43 = $3 & 1;
  45381. $44 = $43 | $1;
  45382. $45 = $44 | 2;
  45383. HEAP32[$2>>2] = $45;
  45384. HEAP32[$42>>2] = $41;
  45385. HEAP32[(22792)>>2] = $40;
  45386. HEAP32[(22780)>>2] = $39;
  45387. $$2 = $0;
  45388. return ($$2|0);
  45389. }
  45390. $46 = HEAP32[(22788)>>2]|0;
  45391. $47 = ($5|0)==($46|0);
  45392. if ($47) {
  45393. $48 = HEAP32[(22776)>>2]|0;
  45394. $49 = (($48) + ($4))|0;
  45395. $50 = ($49>>>0)<($1>>>0);
  45396. if ($50) {
  45397. $$2 = 0;
  45398. return ($$2|0);
  45399. }
  45400. $51 = (($49) - ($1))|0;
  45401. $52 = ($51>>>0)>(15);
  45402. $53 = $3 & 1;
  45403. if ($52) {
  45404. $54 = (($0) + ($1)|0);
  45405. $55 = (($54) + ($51)|0);
  45406. $56 = $53 | $1;
  45407. $57 = $56 | 2;
  45408. HEAP32[$2>>2] = $57;
  45409. $58 = ((($54)) + 4|0);
  45410. $59 = $51 | 1;
  45411. HEAP32[$58>>2] = $59;
  45412. HEAP32[$55>>2] = $51;
  45413. $60 = ((($55)) + 4|0);
  45414. $61 = HEAP32[$60>>2]|0;
  45415. $62 = $61 & -2;
  45416. HEAP32[$60>>2] = $62;
  45417. $storemerge = $54;$storemerge1 = $51;
  45418. } else {
  45419. $63 = $53 | $49;
  45420. $64 = $63 | 2;
  45421. HEAP32[$2>>2] = $64;
  45422. $65 = (($0) + ($49)|0);
  45423. $66 = ((($65)) + 4|0);
  45424. $67 = HEAP32[$66>>2]|0;
  45425. $68 = $67 | 1;
  45426. HEAP32[$66>>2] = $68;
  45427. $storemerge = 0;$storemerge1 = 0;
  45428. }
  45429. HEAP32[(22776)>>2] = $storemerge1;
  45430. HEAP32[(22788)>>2] = $storemerge;
  45431. $$2 = $0;
  45432. return ($$2|0);
  45433. }
  45434. $69 = $10 & 2;
  45435. $70 = ($69|0)==(0);
  45436. if (!($70)) {
  45437. $$2 = 0;
  45438. return ($$2|0);
  45439. }
  45440. $71 = $10 & -8;
  45441. $72 = (($71) + ($4))|0;
  45442. $73 = ($72>>>0)<($1>>>0);
  45443. if ($73) {
  45444. $$2 = 0;
  45445. return ($$2|0);
  45446. }
  45447. $74 = (($72) - ($1))|0;
  45448. $75 = $10 >>> 3;
  45449. $76 = ($10>>>0)<(256);
  45450. L49: do {
  45451. if ($76) {
  45452. $77 = ((($5)) + 8|0);
  45453. $78 = HEAP32[$77>>2]|0;
  45454. $79 = ((($5)) + 12|0);
  45455. $80 = HEAP32[$79>>2]|0;
  45456. $81 = $75 << 1;
  45457. $82 = (22808 + ($81<<2)|0);
  45458. $83 = ($78|0)==($82|0);
  45459. if (!($83)) {
  45460. $84 = ($78>>>0)<($6>>>0);
  45461. if ($84) {
  45462. _abort();
  45463. // unreachable;
  45464. }
  45465. $85 = ((($78)) + 12|0);
  45466. $86 = HEAP32[$85>>2]|0;
  45467. $87 = ($86|0)==($5|0);
  45468. if (!($87)) {
  45469. _abort();
  45470. // unreachable;
  45471. }
  45472. }
  45473. $88 = ($80|0)==($78|0);
  45474. if ($88) {
  45475. $89 = 1 << $75;
  45476. $90 = $89 ^ -1;
  45477. $91 = HEAP32[5692]|0;
  45478. $92 = $91 & $90;
  45479. HEAP32[5692] = $92;
  45480. break;
  45481. }
  45482. $93 = ($80|0)==($82|0);
  45483. if ($93) {
  45484. $$pre = ((($80)) + 8|0);
  45485. $$pre$phiZ2D = $$pre;
  45486. } else {
  45487. $94 = ($80>>>0)<($6>>>0);
  45488. if ($94) {
  45489. _abort();
  45490. // unreachable;
  45491. }
  45492. $95 = ((($80)) + 8|0);
  45493. $96 = HEAP32[$95>>2]|0;
  45494. $97 = ($96|0)==($5|0);
  45495. if ($97) {
  45496. $$pre$phiZ2D = $95;
  45497. } else {
  45498. _abort();
  45499. // unreachable;
  45500. }
  45501. }
  45502. $98 = ((($78)) + 12|0);
  45503. HEAP32[$98>>2] = $80;
  45504. HEAP32[$$pre$phiZ2D>>2] = $78;
  45505. } else {
  45506. $99 = ((($5)) + 24|0);
  45507. $100 = HEAP32[$99>>2]|0;
  45508. $101 = ((($5)) + 12|0);
  45509. $102 = HEAP32[$101>>2]|0;
  45510. $103 = ($102|0)==($5|0);
  45511. do {
  45512. if ($103) {
  45513. $113 = ((($5)) + 16|0);
  45514. $114 = ((($113)) + 4|0);
  45515. $115 = HEAP32[$114>>2]|0;
  45516. $116 = ($115|0)==(0|0);
  45517. if ($116) {
  45518. $117 = HEAP32[$113>>2]|0;
  45519. $118 = ($117|0)==(0|0);
  45520. if ($118) {
  45521. $$3 = 0;
  45522. break;
  45523. } else {
  45524. $$1272 = $117;$$1275 = $113;
  45525. }
  45526. } else {
  45527. $$1272 = $115;$$1275 = $114;
  45528. }
  45529. while(1) {
  45530. $119 = ((($$1272)) + 20|0);
  45531. $120 = HEAP32[$119>>2]|0;
  45532. $121 = ($120|0)==(0|0);
  45533. if (!($121)) {
  45534. $$1272 = $120;$$1275 = $119;
  45535. continue;
  45536. }
  45537. $122 = ((($$1272)) + 16|0);
  45538. $123 = HEAP32[$122>>2]|0;
  45539. $124 = ($123|0)==(0|0);
  45540. if ($124) {
  45541. break;
  45542. } else {
  45543. $$1272 = $123;$$1275 = $122;
  45544. }
  45545. }
  45546. $125 = ($$1275>>>0)<($6>>>0);
  45547. if ($125) {
  45548. _abort();
  45549. // unreachable;
  45550. } else {
  45551. HEAP32[$$1275>>2] = 0;
  45552. $$3 = $$1272;
  45553. break;
  45554. }
  45555. } else {
  45556. $104 = ((($5)) + 8|0);
  45557. $105 = HEAP32[$104>>2]|0;
  45558. $106 = ($105>>>0)<($6>>>0);
  45559. if ($106) {
  45560. _abort();
  45561. // unreachable;
  45562. }
  45563. $107 = ((($105)) + 12|0);
  45564. $108 = HEAP32[$107>>2]|0;
  45565. $109 = ($108|0)==($5|0);
  45566. if (!($109)) {
  45567. _abort();
  45568. // unreachable;
  45569. }
  45570. $110 = ((($102)) + 8|0);
  45571. $111 = HEAP32[$110>>2]|0;
  45572. $112 = ($111|0)==($5|0);
  45573. if ($112) {
  45574. HEAP32[$107>>2] = $102;
  45575. HEAP32[$110>>2] = $105;
  45576. $$3 = $102;
  45577. break;
  45578. } else {
  45579. _abort();
  45580. // unreachable;
  45581. }
  45582. }
  45583. } while(0);
  45584. $126 = ($100|0)==(0|0);
  45585. if (!($126)) {
  45586. $127 = ((($5)) + 28|0);
  45587. $128 = HEAP32[$127>>2]|0;
  45588. $129 = (23072 + ($128<<2)|0);
  45589. $130 = HEAP32[$129>>2]|0;
  45590. $131 = ($5|0)==($130|0);
  45591. do {
  45592. if ($131) {
  45593. HEAP32[$129>>2] = $$3;
  45594. $cond = ($$3|0)==(0|0);
  45595. if ($cond) {
  45596. $132 = 1 << $128;
  45597. $133 = $132 ^ -1;
  45598. $134 = HEAP32[(22772)>>2]|0;
  45599. $135 = $134 & $133;
  45600. HEAP32[(22772)>>2] = $135;
  45601. break L49;
  45602. }
  45603. } else {
  45604. $136 = HEAP32[(22784)>>2]|0;
  45605. $137 = ($100>>>0)<($136>>>0);
  45606. if ($137) {
  45607. _abort();
  45608. // unreachable;
  45609. } else {
  45610. $138 = ((($100)) + 16|0);
  45611. $139 = HEAP32[$138>>2]|0;
  45612. $not$ = ($139|0)!=($5|0);
  45613. $$sink1 = $not$&1;
  45614. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  45615. HEAP32[$140>>2] = $$3;
  45616. $141 = ($$3|0)==(0|0);
  45617. if ($141) {
  45618. break L49;
  45619. } else {
  45620. break;
  45621. }
  45622. }
  45623. }
  45624. } while(0);
  45625. $142 = HEAP32[(22784)>>2]|0;
  45626. $143 = ($$3>>>0)<($142>>>0);
  45627. if ($143) {
  45628. _abort();
  45629. // unreachable;
  45630. }
  45631. $144 = ((($$3)) + 24|0);
  45632. HEAP32[$144>>2] = $100;
  45633. $145 = ((($5)) + 16|0);
  45634. $146 = HEAP32[$145>>2]|0;
  45635. $147 = ($146|0)==(0|0);
  45636. do {
  45637. if (!($147)) {
  45638. $148 = ($146>>>0)<($142>>>0);
  45639. if ($148) {
  45640. _abort();
  45641. // unreachable;
  45642. } else {
  45643. $149 = ((($$3)) + 16|0);
  45644. HEAP32[$149>>2] = $146;
  45645. $150 = ((($146)) + 24|0);
  45646. HEAP32[$150>>2] = $$3;
  45647. break;
  45648. }
  45649. }
  45650. } while(0);
  45651. $151 = ((($145)) + 4|0);
  45652. $152 = HEAP32[$151>>2]|0;
  45653. $153 = ($152|0)==(0|0);
  45654. if (!($153)) {
  45655. $154 = HEAP32[(22784)>>2]|0;
  45656. $155 = ($152>>>0)<($154>>>0);
  45657. if ($155) {
  45658. _abort();
  45659. // unreachable;
  45660. } else {
  45661. $156 = ((($$3)) + 20|0);
  45662. HEAP32[$156>>2] = $152;
  45663. $157 = ((($152)) + 24|0);
  45664. HEAP32[$157>>2] = $$3;
  45665. break;
  45666. }
  45667. }
  45668. }
  45669. }
  45670. } while(0);
  45671. $158 = ($74>>>0)<(16);
  45672. $159 = $3 & 1;
  45673. if ($158) {
  45674. $160 = $72 | $159;
  45675. $161 = $160 | 2;
  45676. HEAP32[$2>>2] = $161;
  45677. $162 = (($0) + ($72)|0);
  45678. $163 = ((($162)) + 4|0);
  45679. $164 = HEAP32[$163>>2]|0;
  45680. $165 = $164 | 1;
  45681. HEAP32[$163>>2] = $165;
  45682. $$2 = $0;
  45683. return ($$2|0);
  45684. } else {
  45685. $166 = (($0) + ($1)|0);
  45686. $167 = $159 | $1;
  45687. $168 = $167 | 2;
  45688. HEAP32[$2>>2] = $168;
  45689. $169 = ((($166)) + 4|0);
  45690. $170 = $74 | 3;
  45691. HEAP32[$169>>2] = $170;
  45692. $171 = (($166) + ($74)|0);
  45693. $172 = ((($171)) + 4|0);
  45694. $173 = HEAP32[$172>>2]|0;
  45695. $174 = $173 | 1;
  45696. HEAP32[$172>>2] = $174;
  45697. _dispose_chunk($166,$74);
  45698. $$2 = $0;
  45699. return ($$2|0);
  45700. }
  45701. return (0)|0;
  45702. }
  45703. function _dispose_chunk($0,$1) {
  45704. $0 = $0|0;
  45705. $1 = $1|0;
  45706. 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;
  45707. 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;
  45708. 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;
  45709. 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;
  45710. 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;
  45711. 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;
  45712. 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;
  45713. 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;
  45714. 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;
  45715. 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;
  45716. 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;
  45717. 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;
  45718. 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;
  45719. 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;
  45720. 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;
  45721. 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;
  45722. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  45723. sp = STACKTOP;
  45724. $2 = (($0) + ($1)|0);
  45725. $3 = ((($0)) + 4|0);
  45726. $4 = HEAP32[$3>>2]|0;
  45727. $5 = $4 & 1;
  45728. $6 = ($5|0)==(0);
  45729. L1: do {
  45730. if ($6) {
  45731. $7 = HEAP32[$0>>2]|0;
  45732. $8 = $4 & 3;
  45733. $9 = ($8|0)==(0);
  45734. if ($9) {
  45735. return;
  45736. }
  45737. $10 = (0 - ($7))|0;
  45738. $11 = (($0) + ($10)|0);
  45739. $12 = (($7) + ($1))|0;
  45740. $13 = HEAP32[(22784)>>2]|0;
  45741. $14 = ($11>>>0)<($13>>>0);
  45742. if ($14) {
  45743. _abort();
  45744. // unreachable;
  45745. }
  45746. $15 = HEAP32[(22788)>>2]|0;
  45747. $16 = ($11|0)==($15|0);
  45748. if ($16) {
  45749. $100 = ((($2)) + 4|0);
  45750. $101 = HEAP32[$100>>2]|0;
  45751. $102 = $101 & 3;
  45752. $103 = ($102|0)==(3);
  45753. if (!($103)) {
  45754. $$1 = $11;$$1418 = $12;
  45755. break;
  45756. }
  45757. $104 = (($11) + ($12)|0);
  45758. $105 = ((($11)) + 4|0);
  45759. $106 = $12 | 1;
  45760. $107 = $101 & -2;
  45761. HEAP32[(22776)>>2] = $12;
  45762. HEAP32[$100>>2] = $107;
  45763. HEAP32[$105>>2] = $106;
  45764. HEAP32[$104>>2] = $12;
  45765. return;
  45766. }
  45767. $17 = $7 >>> 3;
  45768. $18 = ($7>>>0)<(256);
  45769. if ($18) {
  45770. $19 = ((($11)) + 8|0);
  45771. $20 = HEAP32[$19>>2]|0;
  45772. $21 = ((($11)) + 12|0);
  45773. $22 = HEAP32[$21>>2]|0;
  45774. $23 = $17 << 1;
  45775. $24 = (22808 + ($23<<2)|0);
  45776. $25 = ($20|0)==($24|0);
  45777. if (!($25)) {
  45778. $26 = ($20>>>0)<($13>>>0);
  45779. if ($26) {
  45780. _abort();
  45781. // unreachable;
  45782. }
  45783. $27 = ((($20)) + 12|0);
  45784. $28 = HEAP32[$27>>2]|0;
  45785. $29 = ($28|0)==($11|0);
  45786. if (!($29)) {
  45787. _abort();
  45788. // unreachable;
  45789. }
  45790. }
  45791. $30 = ($22|0)==($20|0);
  45792. if ($30) {
  45793. $31 = 1 << $17;
  45794. $32 = $31 ^ -1;
  45795. $33 = HEAP32[5692]|0;
  45796. $34 = $33 & $32;
  45797. HEAP32[5692] = $34;
  45798. $$1 = $11;$$1418 = $12;
  45799. break;
  45800. }
  45801. $35 = ($22|0)==($24|0);
  45802. if ($35) {
  45803. $$pre25 = ((($22)) + 8|0);
  45804. $$pre$phi26Z2D = $$pre25;
  45805. } else {
  45806. $36 = ($22>>>0)<($13>>>0);
  45807. if ($36) {
  45808. _abort();
  45809. // unreachable;
  45810. }
  45811. $37 = ((($22)) + 8|0);
  45812. $38 = HEAP32[$37>>2]|0;
  45813. $39 = ($38|0)==($11|0);
  45814. if ($39) {
  45815. $$pre$phi26Z2D = $37;
  45816. } else {
  45817. _abort();
  45818. // unreachable;
  45819. }
  45820. }
  45821. $40 = ((($20)) + 12|0);
  45822. HEAP32[$40>>2] = $22;
  45823. HEAP32[$$pre$phi26Z2D>>2] = $20;
  45824. $$1 = $11;$$1418 = $12;
  45825. break;
  45826. }
  45827. $41 = ((($11)) + 24|0);
  45828. $42 = HEAP32[$41>>2]|0;
  45829. $43 = ((($11)) + 12|0);
  45830. $44 = HEAP32[$43>>2]|0;
  45831. $45 = ($44|0)==($11|0);
  45832. do {
  45833. if ($45) {
  45834. $55 = ((($11)) + 16|0);
  45835. $56 = ((($55)) + 4|0);
  45836. $57 = HEAP32[$56>>2]|0;
  45837. $58 = ($57|0)==(0|0);
  45838. if ($58) {
  45839. $59 = HEAP32[$55>>2]|0;
  45840. $60 = ($59|0)==(0|0);
  45841. if ($60) {
  45842. $$3 = 0;
  45843. break;
  45844. } else {
  45845. $$1426 = $59;$$1429 = $55;
  45846. }
  45847. } else {
  45848. $$1426 = $57;$$1429 = $56;
  45849. }
  45850. while(1) {
  45851. $61 = ((($$1426)) + 20|0);
  45852. $62 = HEAP32[$61>>2]|0;
  45853. $63 = ($62|0)==(0|0);
  45854. if (!($63)) {
  45855. $$1426 = $62;$$1429 = $61;
  45856. continue;
  45857. }
  45858. $64 = ((($$1426)) + 16|0);
  45859. $65 = HEAP32[$64>>2]|0;
  45860. $66 = ($65|0)==(0|0);
  45861. if ($66) {
  45862. break;
  45863. } else {
  45864. $$1426 = $65;$$1429 = $64;
  45865. }
  45866. }
  45867. $67 = ($$1429>>>0)<($13>>>0);
  45868. if ($67) {
  45869. _abort();
  45870. // unreachable;
  45871. } else {
  45872. HEAP32[$$1429>>2] = 0;
  45873. $$3 = $$1426;
  45874. break;
  45875. }
  45876. } else {
  45877. $46 = ((($11)) + 8|0);
  45878. $47 = HEAP32[$46>>2]|0;
  45879. $48 = ($47>>>0)<($13>>>0);
  45880. if ($48) {
  45881. _abort();
  45882. // unreachable;
  45883. }
  45884. $49 = ((($47)) + 12|0);
  45885. $50 = HEAP32[$49>>2]|0;
  45886. $51 = ($50|0)==($11|0);
  45887. if (!($51)) {
  45888. _abort();
  45889. // unreachable;
  45890. }
  45891. $52 = ((($44)) + 8|0);
  45892. $53 = HEAP32[$52>>2]|0;
  45893. $54 = ($53|0)==($11|0);
  45894. if ($54) {
  45895. HEAP32[$49>>2] = $44;
  45896. HEAP32[$52>>2] = $47;
  45897. $$3 = $44;
  45898. break;
  45899. } else {
  45900. _abort();
  45901. // unreachable;
  45902. }
  45903. }
  45904. } while(0);
  45905. $68 = ($42|0)==(0|0);
  45906. if ($68) {
  45907. $$1 = $11;$$1418 = $12;
  45908. } else {
  45909. $69 = ((($11)) + 28|0);
  45910. $70 = HEAP32[$69>>2]|0;
  45911. $71 = (23072 + ($70<<2)|0);
  45912. $72 = HEAP32[$71>>2]|0;
  45913. $73 = ($11|0)==($72|0);
  45914. do {
  45915. if ($73) {
  45916. HEAP32[$71>>2] = $$3;
  45917. $cond = ($$3|0)==(0|0);
  45918. if ($cond) {
  45919. $74 = 1 << $70;
  45920. $75 = $74 ^ -1;
  45921. $76 = HEAP32[(22772)>>2]|0;
  45922. $77 = $76 & $75;
  45923. HEAP32[(22772)>>2] = $77;
  45924. $$1 = $11;$$1418 = $12;
  45925. break L1;
  45926. }
  45927. } else {
  45928. $78 = HEAP32[(22784)>>2]|0;
  45929. $79 = ($42>>>0)<($78>>>0);
  45930. if ($79) {
  45931. _abort();
  45932. // unreachable;
  45933. } else {
  45934. $80 = ((($42)) + 16|0);
  45935. $81 = HEAP32[$80>>2]|0;
  45936. $not$1 = ($81|0)!=($11|0);
  45937. $$sink2 = $not$1&1;
  45938. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  45939. HEAP32[$82>>2] = $$3;
  45940. $83 = ($$3|0)==(0|0);
  45941. if ($83) {
  45942. $$1 = $11;$$1418 = $12;
  45943. break L1;
  45944. } else {
  45945. break;
  45946. }
  45947. }
  45948. }
  45949. } while(0);
  45950. $84 = HEAP32[(22784)>>2]|0;
  45951. $85 = ($$3>>>0)<($84>>>0);
  45952. if ($85) {
  45953. _abort();
  45954. // unreachable;
  45955. }
  45956. $86 = ((($$3)) + 24|0);
  45957. HEAP32[$86>>2] = $42;
  45958. $87 = ((($11)) + 16|0);
  45959. $88 = HEAP32[$87>>2]|0;
  45960. $89 = ($88|0)==(0|0);
  45961. do {
  45962. if (!($89)) {
  45963. $90 = ($88>>>0)<($84>>>0);
  45964. if ($90) {
  45965. _abort();
  45966. // unreachable;
  45967. } else {
  45968. $91 = ((($$3)) + 16|0);
  45969. HEAP32[$91>>2] = $88;
  45970. $92 = ((($88)) + 24|0);
  45971. HEAP32[$92>>2] = $$3;
  45972. break;
  45973. }
  45974. }
  45975. } while(0);
  45976. $93 = ((($87)) + 4|0);
  45977. $94 = HEAP32[$93>>2]|0;
  45978. $95 = ($94|0)==(0|0);
  45979. if ($95) {
  45980. $$1 = $11;$$1418 = $12;
  45981. } else {
  45982. $96 = HEAP32[(22784)>>2]|0;
  45983. $97 = ($94>>>0)<($96>>>0);
  45984. if ($97) {
  45985. _abort();
  45986. // unreachable;
  45987. } else {
  45988. $98 = ((($$3)) + 20|0);
  45989. HEAP32[$98>>2] = $94;
  45990. $99 = ((($94)) + 24|0);
  45991. HEAP32[$99>>2] = $$3;
  45992. $$1 = $11;$$1418 = $12;
  45993. break;
  45994. }
  45995. }
  45996. }
  45997. } else {
  45998. $$1 = $0;$$1418 = $1;
  45999. }
  46000. } while(0);
  46001. $108 = HEAP32[(22784)>>2]|0;
  46002. $109 = ($2>>>0)<($108>>>0);
  46003. if ($109) {
  46004. _abort();
  46005. // unreachable;
  46006. }
  46007. $110 = ((($2)) + 4|0);
  46008. $111 = HEAP32[$110>>2]|0;
  46009. $112 = $111 & 2;
  46010. $113 = ($112|0)==(0);
  46011. if ($113) {
  46012. $114 = HEAP32[(22792)>>2]|0;
  46013. $115 = ($2|0)==($114|0);
  46014. $116 = HEAP32[(22788)>>2]|0;
  46015. if ($115) {
  46016. $117 = HEAP32[(22780)>>2]|0;
  46017. $118 = (($117) + ($$1418))|0;
  46018. HEAP32[(22780)>>2] = $118;
  46019. HEAP32[(22792)>>2] = $$1;
  46020. $119 = $118 | 1;
  46021. $120 = ((($$1)) + 4|0);
  46022. HEAP32[$120>>2] = $119;
  46023. $121 = ($$1|0)==($116|0);
  46024. if (!($121)) {
  46025. return;
  46026. }
  46027. HEAP32[(22788)>>2] = 0;
  46028. HEAP32[(22776)>>2] = 0;
  46029. return;
  46030. }
  46031. $122 = ($2|0)==($116|0);
  46032. if ($122) {
  46033. $123 = HEAP32[(22776)>>2]|0;
  46034. $124 = (($123) + ($$1418))|0;
  46035. HEAP32[(22776)>>2] = $124;
  46036. HEAP32[(22788)>>2] = $$1;
  46037. $125 = $124 | 1;
  46038. $126 = ((($$1)) + 4|0);
  46039. HEAP32[$126>>2] = $125;
  46040. $127 = (($$1) + ($124)|0);
  46041. HEAP32[$127>>2] = $124;
  46042. return;
  46043. }
  46044. $128 = $111 & -8;
  46045. $129 = (($128) + ($$1418))|0;
  46046. $130 = $111 >>> 3;
  46047. $131 = ($111>>>0)<(256);
  46048. L96: do {
  46049. if ($131) {
  46050. $132 = ((($2)) + 8|0);
  46051. $133 = HEAP32[$132>>2]|0;
  46052. $134 = ((($2)) + 12|0);
  46053. $135 = HEAP32[$134>>2]|0;
  46054. $136 = $130 << 1;
  46055. $137 = (22808 + ($136<<2)|0);
  46056. $138 = ($133|0)==($137|0);
  46057. if (!($138)) {
  46058. $139 = ($133>>>0)<($108>>>0);
  46059. if ($139) {
  46060. _abort();
  46061. // unreachable;
  46062. }
  46063. $140 = ((($133)) + 12|0);
  46064. $141 = HEAP32[$140>>2]|0;
  46065. $142 = ($141|0)==($2|0);
  46066. if (!($142)) {
  46067. _abort();
  46068. // unreachable;
  46069. }
  46070. }
  46071. $143 = ($135|0)==($133|0);
  46072. if ($143) {
  46073. $144 = 1 << $130;
  46074. $145 = $144 ^ -1;
  46075. $146 = HEAP32[5692]|0;
  46076. $147 = $146 & $145;
  46077. HEAP32[5692] = $147;
  46078. break;
  46079. }
  46080. $148 = ($135|0)==($137|0);
  46081. if ($148) {
  46082. $$pre23 = ((($135)) + 8|0);
  46083. $$pre$phi24Z2D = $$pre23;
  46084. } else {
  46085. $149 = ($135>>>0)<($108>>>0);
  46086. if ($149) {
  46087. _abort();
  46088. // unreachable;
  46089. }
  46090. $150 = ((($135)) + 8|0);
  46091. $151 = HEAP32[$150>>2]|0;
  46092. $152 = ($151|0)==($2|0);
  46093. if ($152) {
  46094. $$pre$phi24Z2D = $150;
  46095. } else {
  46096. _abort();
  46097. // unreachable;
  46098. }
  46099. }
  46100. $153 = ((($133)) + 12|0);
  46101. HEAP32[$153>>2] = $135;
  46102. HEAP32[$$pre$phi24Z2D>>2] = $133;
  46103. } else {
  46104. $154 = ((($2)) + 24|0);
  46105. $155 = HEAP32[$154>>2]|0;
  46106. $156 = ((($2)) + 12|0);
  46107. $157 = HEAP32[$156>>2]|0;
  46108. $158 = ($157|0)==($2|0);
  46109. do {
  46110. if ($158) {
  46111. $168 = ((($2)) + 16|0);
  46112. $169 = ((($168)) + 4|0);
  46113. $170 = HEAP32[$169>>2]|0;
  46114. $171 = ($170|0)==(0|0);
  46115. if ($171) {
  46116. $172 = HEAP32[$168>>2]|0;
  46117. $173 = ($172|0)==(0|0);
  46118. if ($173) {
  46119. $$3435 = 0;
  46120. break;
  46121. } else {
  46122. $$1433 = $172;$$1437 = $168;
  46123. }
  46124. } else {
  46125. $$1433 = $170;$$1437 = $169;
  46126. }
  46127. while(1) {
  46128. $174 = ((($$1433)) + 20|0);
  46129. $175 = HEAP32[$174>>2]|0;
  46130. $176 = ($175|0)==(0|0);
  46131. if (!($176)) {
  46132. $$1433 = $175;$$1437 = $174;
  46133. continue;
  46134. }
  46135. $177 = ((($$1433)) + 16|0);
  46136. $178 = HEAP32[$177>>2]|0;
  46137. $179 = ($178|0)==(0|0);
  46138. if ($179) {
  46139. break;
  46140. } else {
  46141. $$1433 = $178;$$1437 = $177;
  46142. }
  46143. }
  46144. $180 = ($$1437>>>0)<($108>>>0);
  46145. if ($180) {
  46146. _abort();
  46147. // unreachable;
  46148. } else {
  46149. HEAP32[$$1437>>2] = 0;
  46150. $$3435 = $$1433;
  46151. break;
  46152. }
  46153. } else {
  46154. $159 = ((($2)) + 8|0);
  46155. $160 = HEAP32[$159>>2]|0;
  46156. $161 = ($160>>>0)<($108>>>0);
  46157. if ($161) {
  46158. _abort();
  46159. // unreachable;
  46160. }
  46161. $162 = ((($160)) + 12|0);
  46162. $163 = HEAP32[$162>>2]|0;
  46163. $164 = ($163|0)==($2|0);
  46164. if (!($164)) {
  46165. _abort();
  46166. // unreachable;
  46167. }
  46168. $165 = ((($157)) + 8|0);
  46169. $166 = HEAP32[$165>>2]|0;
  46170. $167 = ($166|0)==($2|0);
  46171. if ($167) {
  46172. HEAP32[$162>>2] = $157;
  46173. HEAP32[$165>>2] = $160;
  46174. $$3435 = $157;
  46175. break;
  46176. } else {
  46177. _abort();
  46178. // unreachable;
  46179. }
  46180. }
  46181. } while(0);
  46182. $181 = ($155|0)==(0|0);
  46183. if (!($181)) {
  46184. $182 = ((($2)) + 28|0);
  46185. $183 = HEAP32[$182>>2]|0;
  46186. $184 = (23072 + ($183<<2)|0);
  46187. $185 = HEAP32[$184>>2]|0;
  46188. $186 = ($2|0)==($185|0);
  46189. do {
  46190. if ($186) {
  46191. HEAP32[$184>>2] = $$3435;
  46192. $cond17 = ($$3435|0)==(0|0);
  46193. if ($cond17) {
  46194. $187 = 1 << $183;
  46195. $188 = $187 ^ -1;
  46196. $189 = HEAP32[(22772)>>2]|0;
  46197. $190 = $189 & $188;
  46198. HEAP32[(22772)>>2] = $190;
  46199. break L96;
  46200. }
  46201. } else {
  46202. $191 = HEAP32[(22784)>>2]|0;
  46203. $192 = ($155>>>0)<($191>>>0);
  46204. if ($192) {
  46205. _abort();
  46206. // unreachable;
  46207. } else {
  46208. $193 = ((($155)) + 16|0);
  46209. $194 = HEAP32[$193>>2]|0;
  46210. $not$ = ($194|0)!=($2|0);
  46211. $$sink4 = $not$&1;
  46212. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  46213. HEAP32[$195>>2] = $$3435;
  46214. $196 = ($$3435|0)==(0|0);
  46215. if ($196) {
  46216. break L96;
  46217. } else {
  46218. break;
  46219. }
  46220. }
  46221. }
  46222. } while(0);
  46223. $197 = HEAP32[(22784)>>2]|0;
  46224. $198 = ($$3435>>>0)<($197>>>0);
  46225. if ($198) {
  46226. _abort();
  46227. // unreachable;
  46228. }
  46229. $199 = ((($$3435)) + 24|0);
  46230. HEAP32[$199>>2] = $155;
  46231. $200 = ((($2)) + 16|0);
  46232. $201 = HEAP32[$200>>2]|0;
  46233. $202 = ($201|0)==(0|0);
  46234. do {
  46235. if (!($202)) {
  46236. $203 = ($201>>>0)<($197>>>0);
  46237. if ($203) {
  46238. _abort();
  46239. // unreachable;
  46240. } else {
  46241. $204 = ((($$3435)) + 16|0);
  46242. HEAP32[$204>>2] = $201;
  46243. $205 = ((($201)) + 24|0);
  46244. HEAP32[$205>>2] = $$3435;
  46245. break;
  46246. }
  46247. }
  46248. } while(0);
  46249. $206 = ((($200)) + 4|0);
  46250. $207 = HEAP32[$206>>2]|0;
  46251. $208 = ($207|0)==(0|0);
  46252. if (!($208)) {
  46253. $209 = HEAP32[(22784)>>2]|0;
  46254. $210 = ($207>>>0)<($209>>>0);
  46255. if ($210) {
  46256. _abort();
  46257. // unreachable;
  46258. } else {
  46259. $211 = ((($$3435)) + 20|0);
  46260. HEAP32[$211>>2] = $207;
  46261. $212 = ((($207)) + 24|0);
  46262. HEAP32[$212>>2] = $$3435;
  46263. break;
  46264. }
  46265. }
  46266. }
  46267. }
  46268. } while(0);
  46269. $213 = $129 | 1;
  46270. $214 = ((($$1)) + 4|0);
  46271. HEAP32[$214>>2] = $213;
  46272. $215 = (($$1) + ($129)|0);
  46273. HEAP32[$215>>2] = $129;
  46274. $216 = HEAP32[(22788)>>2]|0;
  46275. $217 = ($$1|0)==($216|0);
  46276. if ($217) {
  46277. HEAP32[(22776)>>2] = $129;
  46278. return;
  46279. } else {
  46280. $$2 = $129;
  46281. }
  46282. } else {
  46283. $218 = $111 & -2;
  46284. HEAP32[$110>>2] = $218;
  46285. $219 = $$1418 | 1;
  46286. $220 = ((($$1)) + 4|0);
  46287. HEAP32[$220>>2] = $219;
  46288. $221 = (($$1) + ($$1418)|0);
  46289. HEAP32[$221>>2] = $$1418;
  46290. $$2 = $$1418;
  46291. }
  46292. $222 = $$2 >>> 3;
  46293. $223 = ($$2>>>0)<(256);
  46294. if ($223) {
  46295. $224 = $222 << 1;
  46296. $225 = (22808 + ($224<<2)|0);
  46297. $226 = HEAP32[5692]|0;
  46298. $227 = 1 << $222;
  46299. $228 = $226 & $227;
  46300. $229 = ($228|0)==(0);
  46301. if ($229) {
  46302. $230 = $226 | $227;
  46303. HEAP32[5692] = $230;
  46304. $$pre = ((($225)) + 8|0);
  46305. $$0438 = $225;$$pre$phiZ2D = $$pre;
  46306. } else {
  46307. $231 = ((($225)) + 8|0);
  46308. $232 = HEAP32[$231>>2]|0;
  46309. $233 = HEAP32[(22784)>>2]|0;
  46310. $234 = ($232>>>0)<($233>>>0);
  46311. if ($234) {
  46312. _abort();
  46313. // unreachable;
  46314. } else {
  46315. $$0438 = $232;$$pre$phiZ2D = $231;
  46316. }
  46317. }
  46318. HEAP32[$$pre$phiZ2D>>2] = $$1;
  46319. $235 = ((($$0438)) + 12|0);
  46320. HEAP32[$235>>2] = $$1;
  46321. $236 = ((($$1)) + 8|0);
  46322. HEAP32[$236>>2] = $$0438;
  46323. $237 = ((($$1)) + 12|0);
  46324. HEAP32[$237>>2] = $225;
  46325. return;
  46326. }
  46327. $238 = $$2 >>> 8;
  46328. $239 = ($238|0)==(0);
  46329. if ($239) {
  46330. $$0431 = 0;
  46331. } else {
  46332. $240 = ($$2>>>0)>(16777215);
  46333. if ($240) {
  46334. $$0431 = 31;
  46335. } else {
  46336. $241 = (($238) + 1048320)|0;
  46337. $242 = $241 >>> 16;
  46338. $243 = $242 & 8;
  46339. $244 = $238 << $243;
  46340. $245 = (($244) + 520192)|0;
  46341. $246 = $245 >>> 16;
  46342. $247 = $246 & 4;
  46343. $248 = $247 | $243;
  46344. $249 = $244 << $247;
  46345. $250 = (($249) + 245760)|0;
  46346. $251 = $250 >>> 16;
  46347. $252 = $251 & 2;
  46348. $253 = $248 | $252;
  46349. $254 = (14 - ($253))|0;
  46350. $255 = $249 << $252;
  46351. $256 = $255 >>> 15;
  46352. $257 = (($254) + ($256))|0;
  46353. $258 = $257 << 1;
  46354. $259 = (($257) + 7)|0;
  46355. $260 = $$2 >>> $259;
  46356. $261 = $260 & 1;
  46357. $262 = $261 | $258;
  46358. $$0431 = $262;
  46359. }
  46360. }
  46361. $263 = (23072 + ($$0431<<2)|0);
  46362. $264 = ((($$1)) + 28|0);
  46363. HEAP32[$264>>2] = $$0431;
  46364. $265 = ((($$1)) + 16|0);
  46365. $266 = ((($$1)) + 20|0);
  46366. HEAP32[$266>>2] = 0;
  46367. HEAP32[$265>>2] = 0;
  46368. $267 = HEAP32[(22772)>>2]|0;
  46369. $268 = 1 << $$0431;
  46370. $269 = $267 & $268;
  46371. $270 = ($269|0)==(0);
  46372. if ($270) {
  46373. $271 = $267 | $268;
  46374. HEAP32[(22772)>>2] = $271;
  46375. HEAP32[$263>>2] = $$1;
  46376. $272 = ((($$1)) + 24|0);
  46377. HEAP32[$272>>2] = $263;
  46378. $273 = ((($$1)) + 12|0);
  46379. HEAP32[$273>>2] = $$1;
  46380. $274 = ((($$1)) + 8|0);
  46381. HEAP32[$274>>2] = $$1;
  46382. return;
  46383. }
  46384. $275 = HEAP32[$263>>2]|0;
  46385. $276 = ($$0431|0)==(31);
  46386. $277 = $$0431 >>> 1;
  46387. $278 = (25 - ($277))|0;
  46388. $279 = $276 ? 0 : $278;
  46389. $280 = $$2 << $279;
  46390. $$0419 = $280;$$0420 = $275;
  46391. while(1) {
  46392. $281 = ((($$0420)) + 4|0);
  46393. $282 = HEAP32[$281>>2]|0;
  46394. $283 = $282 & -8;
  46395. $284 = ($283|0)==($$2|0);
  46396. if ($284) {
  46397. label = 121;
  46398. break;
  46399. }
  46400. $285 = $$0419 >>> 31;
  46401. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  46402. $287 = $$0419 << 1;
  46403. $288 = HEAP32[$286>>2]|0;
  46404. $289 = ($288|0)==(0|0);
  46405. if ($289) {
  46406. label = 118;
  46407. break;
  46408. } else {
  46409. $$0419 = $287;$$0420 = $288;
  46410. }
  46411. }
  46412. if ((label|0) == 118) {
  46413. $290 = HEAP32[(22784)>>2]|0;
  46414. $291 = ($286>>>0)<($290>>>0);
  46415. if ($291) {
  46416. _abort();
  46417. // unreachable;
  46418. }
  46419. HEAP32[$286>>2] = $$1;
  46420. $292 = ((($$1)) + 24|0);
  46421. HEAP32[$292>>2] = $$0420;
  46422. $293 = ((($$1)) + 12|0);
  46423. HEAP32[$293>>2] = $$1;
  46424. $294 = ((($$1)) + 8|0);
  46425. HEAP32[$294>>2] = $$1;
  46426. return;
  46427. }
  46428. else if ((label|0) == 121) {
  46429. $295 = ((($$0420)) + 8|0);
  46430. $296 = HEAP32[$295>>2]|0;
  46431. $297 = HEAP32[(22784)>>2]|0;
  46432. $298 = ($296>>>0)>=($297>>>0);
  46433. $not$19 = ($$0420>>>0)>=($297>>>0);
  46434. $299 = $298 & $not$19;
  46435. if (!($299)) {
  46436. _abort();
  46437. // unreachable;
  46438. }
  46439. $300 = ((($296)) + 12|0);
  46440. HEAP32[$300>>2] = $$1;
  46441. HEAP32[$295>>2] = $$1;
  46442. $301 = ((($$1)) + 8|0);
  46443. HEAP32[$301>>2] = $296;
  46444. $302 = ((($$1)) + 12|0);
  46445. HEAP32[$302>>2] = $$0420;
  46446. $303 = ((($$1)) + 24|0);
  46447. HEAP32[$303>>2] = 0;
  46448. return;
  46449. }
  46450. }
  46451. function runPostSets() {
  46452. }
  46453. function _memset(ptr, value, num) {
  46454. ptr = ptr|0; value = value|0; num = num|0;
  46455. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  46456. end = (ptr + num)|0;
  46457. value = value & 0xff;
  46458. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  46459. while ((ptr&3) != 0) {
  46460. HEAP8[((ptr)>>0)]=value;
  46461. ptr = (ptr+1)|0;
  46462. }
  46463. aligned_end = (end & -4)|0;
  46464. block_aligned_end = (aligned_end - 64)|0;
  46465. value4 = value | (value << 8) | (value << 16) | (value << 24);
  46466. while((ptr|0) <= (block_aligned_end|0)) {
  46467. HEAP32[((ptr)>>2)]=value4;
  46468. HEAP32[(((ptr)+(4))>>2)]=value4;
  46469. HEAP32[(((ptr)+(8))>>2)]=value4;
  46470. HEAP32[(((ptr)+(12))>>2)]=value4;
  46471. HEAP32[(((ptr)+(16))>>2)]=value4;
  46472. HEAP32[(((ptr)+(20))>>2)]=value4;
  46473. HEAP32[(((ptr)+(24))>>2)]=value4;
  46474. HEAP32[(((ptr)+(28))>>2)]=value4;
  46475. HEAP32[(((ptr)+(32))>>2)]=value4;
  46476. HEAP32[(((ptr)+(36))>>2)]=value4;
  46477. HEAP32[(((ptr)+(40))>>2)]=value4;
  46478. HEAP32[(((ptr)+(44))>>2)]=value4;
  46479. HEAP32[(((ptr)+(48))>>2)]=value4;
  46480. HEAP32[(((ptr)+(52))>>2)]=value4;
  46481. HEAP32[(((ptr)+(56))>>2)]=value4;
  46482. HEAP32[(((ptr)+(60))>>2)]=value4;
  46483. ptr = (ptr + 64)|0;
  46484. }
  46485. while ((ptr|0) < (aligned_end|0) ) {
  46486. HEAP32[((ptr)>>2)]=value4;
  46487. ptr = (ptr+4)|0;
  46488. }
  46489. }
  46490. // The remaining bytes.
  46491. while ((ptr|0) < (end|0)) {
  46492. HEAP8[((ptr)>>0)]=value;
  46493. ptr = (ptr+1)|0;
  46494. }
  46495. return (end-num)|0;
  46496. }
  46497. function _i64Subtract(a, b, c, d) {
  46498. a = a|0; b = b|0; c = c|0; d = d|0;
  46499. var l = 0, h = 0;
  46500. l = (a - c)>>>0;
  46501. h = (b - d)>>>0;
  46502. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  46503. return ((tempRet0 = h,l|0)|0);
  46504. }
  46505. function _i64Add(a, b, c, d) {
  46506. /*
  46507. x = a + b*2^32
  46508. y = c + d*2^32
  46509. result = l + h*2^32
  46510. */
  46511. a = a|0; b = b|0; c = c|0; d = d|0;
  46512. var l = 0, h = 0;
  46513. l = (a + c)>>>0;
  46514. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  46515. return ((tempRet0 = h,l|0)|0);
  46516. }
  46517. function ___muldsi3($a, $b) {
  46518. $a = $a | 0;
  46519. $b = $b | 0;
  46520. var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0;
  46521. $1 = $a & 65535;
  46522. $2 = $b & 65535;
  46523. $3 = Math_imul($2, $1) | 0;
  46524. $6 = $a >>> 16;
  46525. $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0;
  46526. $11 = $b >>> 16;
  46527. $12 = Math_imul($11, $1) | 0;
  46528. return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0;
  46529. }
  46530. function ___muldi3($a$0, $a$1, $b$0, $b$1) {
  46531. $a$0 = $a$0 | 0;
  46532. $a$1 = $a$1 | 0;
  46533. $b$0 = $b$0 | 0;
  46534. $b$1 = $b$1 | 0;
  46535. var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0;
  46536. $x_sroa_0_0_extract_trunc = $a$0;
  46537. $y_sroa_0_0_extract_trunc = $b$0;
  46538. $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0;
  46539. $1$1 = tempRet0;
  46540. $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0;
  46541. 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;
  46542. }
  46543. function _memcpy(dest, src, num) {
  46544. dest = dest|0; src = src|0; num = num|0;
  46545. var ret = 0;
  46546. var aligned_dest_end = 0;
  46547. var block_aligned_dest_end = 0;
  46548. var dest_end = 0;
  46549. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  46550. if ((num|0) >=
  46551. 8192
  46552. ) {
  46553. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  46554. }
  46555. ret = dest|0;
  46556. dest_end = (dest + num)|0;
  46557. if ((dest&3) == (src&3)) {
  46558. // The initial unaligned < 4-byte front.
  46559. while (dest & 3) {
  46560. if ((num|0) == 0) return ret|0;
  46561. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46562. dest = (dest+1)|0;
  46563. src = (src+1)|0;
  46564. num = (num-1)|0;
  46565. }
  46566. aligned_dest_end = (dest_end & -4)|0;
  46567. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  46568. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  46569. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  46570. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  46571. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  46572. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  46573. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  46574. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  46575. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  46576. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  46577. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  46578. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  46579. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  46580. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  46581. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  46582. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  46583. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  46584. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  46585. dest = (dest+64)|0;
  46586. src = (src+64)|0;
  46587. }
  46588. while ((dest|0) < (aligned_dest_end|0) ) {
  46589. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  46590. dest = (dest+4)|0;
  46591. src = (src+4)|0;
  46592. }
  46593. } else {
  46594. // In the unaligned copy case, unroll a bit as well.
  46595. aligned_dest_end = (dest_end - 4)|0;
  46596. while ((dest|0) < (aligned_dest_end|0) ) {
  46597. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46598. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  46599. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  46600. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  46601. dest = (dest+4)|0;
  46602. src = (src+4)|0;
  46603. }
  46604. }
  46605. // The remaining unaligned < 4 byte tail.
  46606. while ((dest|0) < (dest_end|0)) {
  46607. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46608. dest = (dest+1)|0;
  46609. src = (src+1)|0;
  46610. }
  46611. return ret|0;
  46612. }
  46613. function _memmove(dest, src, num) {
  46614. dest = dest|0; src = src|0; num = num|0;
  46615. var ret = 0;
  46616. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  46617. // Unlikely case: Copy backwards in a safe manner
  46618. ret = dest;
  46619. src = (src + num)|0;
  46620. dest = (dest + num)|0;
  46621. while ((num|0) > 0) {
  46622. dest = (dest - 1)|0;
  46623. src = (src - 1)|0;
  46624. num = (num - 1)|0;
  46625. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46626. }
  46627. dest = ret;
  46628. } else {
  46629. _memcpy(dest, src, num) | 0;
  46630. }
  46631. return dest | 0;
  46632. }
  46633. function _llvm_cttz_i32(x) {
  46634. x = x|0;
  46635. var ret = 0;
  46636. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  46637. if ((ret|0) < 8) return ret|0;
  46638. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  46639. if ((ret|0) < 8) return (ret + 8)|0;
  46640. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  46641. if ((ret|0) < 8) return (ret + 16)|0;
  46642. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  46643. }
  46644. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  46645. $a$0 = $a$0 | 0;
  46646. $a$1 = $a$1 | 0;
  46647. $b$0 = $b$0 | 0;
  46648. $b$1 = $b$1 | 0;
  46649. $rem = $rem | 0;
  46650. 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;
  46651. $n_sroa_0_0_extract_trunc = $a$0;
  46652. $n_sroa_1_4_extract_shift$0 = $a$1;
  46653. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  46654. $d_sroa_0_0_extract_trunc = $b$0;
  46655. $d_sroa_1_4_extract_shift$0 = $b$1;
  46656. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  46657. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  46658. $4 = ($rem | 0) != 0;
  46659. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  46660. if ($4) {
  46661. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  46662. HEAP32[$rem + 4 >> 2] = 0;
  46663. }
  46664. $_0$1 = 0;
  46665. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  46666. return (tempRet0 = $_0$1, $_0$0) | 0;
  46667. } else {
  46668. if (!$4) {
  46669. $_0$1 = 0;
  46670. $_0$0 = 0;
  46671. return (tempRet0 = $_0$1, $_0$0) | 0;
  46672. }
  46673. HEAP32[$rem >> 2] = $a$0 & -1;
  46674. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  46675. $_0$1 = 0;
  46676. $_0$0 = 0;
  46677. return (tempRet0 = $_0$1, $_0$0) | 0;
  46678. }
  46679. }
  46680. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  46681. do {
  46682. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  46683. if ($17) {
  46684. if (($rem | 0) != 0) {
  46685. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  46686. HEAP32[$rem + 4 >> 2] = 0;
  46687. }
  46688. $_0$1 = 0;
  46689. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  46690. return (tempRet0 = $_0$1, $_0$0) | 0;
  46691. }
  46692. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  46693. if (($rem | 0) != 0) {
  46694. HEAP32[$rem >> 2] = 0;
  46695. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  46696. }
  46697. $_0$1 = 0;
  46698. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  46699. return (tempRet0 = $_0$1, $_0$0) | 0;
  46700. }
  46701. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  46702. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  46703. if (($rem | 0) != 0) {
  46704. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46705. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  46706. }
  46707. $_0$1 = 0;
  46708. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  46709. return (tempRet0 = $_0$1, $_0$0) | 0;
  46710. }
  46711. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  46712. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46713. if ($51 >>> 0 <= 30) {
  46714. $57 = $51 + 1 | 0;
  46715. $58 = 31 - $51 | 0;
  46716. $sr_1_ph = $57;
  46717. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  46718. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  46719. $q_sroa_0_1_ph = 0;
  46720. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  46721. break;
  46722. }
  46723. if (($rem | 0) == 0) {
  46724. $_0$1 = 0;
  46725. $_0$0 = 0;
  46726. return (tempRet0 = $_0$1, $_0$0) | 0;
  46727. }
  46728. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46729. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46730. $_0$1 = 0;
  46731. $_0$0 = 0;
  46732. return (tempRet0 = $_0$1, $_0$0) | 0;
  46733. } else {
  46734. if (!$17) {
  46735. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  46736. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46737. if ($119 >>> 0 <= 31) {
  46738. $125 = $119 + 1 | 0;
  46739. $126 = 31 - $119 | 0;
  46740. $130 = $119 - 31 >> 31;
  46741. $sr_1_ph = $125;
  46742. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  46743. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  46744. $q_sroa_0_1_ph = 0;
  46745. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  46746. break;
  46747. }
  46748. if (($rem | 0) == 0) {
  46749. $_0$1 = 0;
  46750. $_0$0 = 0;
  46751. return (tempRet0 = $_0$1, $_0$0) | 0;
  46752. }
  46753. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46754. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46755. $_0$1 = 0;
  46756. $_0$0 = 0;
  46757. return (tempRet0 = $_0$1, $_0$0) | 0;
  46758. }
  46759. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  46760. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  46761. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  46762. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46763. $89 = 64 - $88 | 0;
  46764. $91 = 32 - $88 | 0;
  46765. $92 = $91 >> 31;
  46766. $95 = $88 - 32 | 0;
  46767. $105 = $95 >> 31;
  46768. $sr_1_ph = $88;
  46769. $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;
  46770. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  46771. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  46772. $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;
  46773. break;
  46774. }
  46775. if (($rem | 0) != 0) {
  46776. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  46777. HEAP32[$rem + 4 >> 2] = 0;
  46778. }
  46779. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  46780. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46781. $_0$0 = 0 | $a$0 & -1;
  46782. return (tempRet0 = $_0$1, $_0$0) | 0;
  46783. } else {
  46784. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  46785. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  46786. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  46787. return (tempRet0 = $_0$1, $_0$0) | 0;
  46788. }
  46789. }
  46790. } while (0);
  46791. if (($sr_1_ph | 0) == 0) {
  46792. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  46793. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  46794. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  46795. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  46796. $carry_0_lcssa$1 = 0;
  46797. $carry_0_lcssa$0 = 0;
  46798. } else {
  46799. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  46800. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  46801. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  46802. $137$1 = tempRet0;
  46803. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  46804. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  46805. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  46806. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  46807. $sr_1202 = $sr_1_ph;
  46808. $carry_0203 = 0;
  46809. while (1) {
  46810. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  46811. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  46812. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  46813. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  46814. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  46815. $150$1 = tempRet0;
  46816. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  46817. $152 = $151$0 & 1;
  46818. $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;
  46819. $r_sroa_0_0_extract_trunc = $154$0;
  46820. $r_sroa_1_4_extract_trunc = tempRet0;
  46821. $155 = $sr_1202 - 1 | 0;
  46822. if (($155 | 0) == 0) {
  46823. break;
  46824. } else {
  46825. $q_sroa_1_1198 = $147;
  46826. $q_sroa_0_1199 = $149;
  46827. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  46828. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  46829. $sr_1202 = $155;
  46830. $carry_0203 = $152;
  46831. }
  46832. }
  46833. $q_sroa_1_1_lcssa = $147;
  46834. $q_sroa_0_1_lcssa = $149;
  46835. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  46836. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  46837. $carry_0_lcssa$1 = 0;
  46838. $carry_0_lcssa$0 = $152;
  46839. }
  46840. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  46841. $q_sroa_0_0_insert_ext75$1 = 0;
  46842. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  46843. if (($rem | 0) != 0) {
  46844. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  46845. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  46846. }
  46847. $_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;
  46848. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  46849. return (tempRet0 = $_0$1, $_0$0) | 0;
  46850. }
  46851. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  46852. $a$0 = $a$0 | 0;
  46853. $a$1 = $a$1 | 0;
  46854. $b$0 = $b$0 | 0;
  46855. $b$1 = $b$1 | 0;
  46856. var $rem = 0, __stackBase__ = 0;
  46857. __stackBase__ = STACKTOP;
  46858. STACKTOP = STACKTOP + 16 | 0;
  46859. $rem = __stackBase__ | 0;
  46860. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  46861. STACKTOP = __stackBase__;
  46862. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  46863. }
  46864. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  46865. $a$0 = $a$0 | 0;
  46866. $a$1 = $a$1 | 0;
  46867. $b$0 = $b$0 | 0;
  46868. $b$1 = $b$1 | 0;
  46869. var $1$0 = 0;
  46870. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  46871. return $1$0 | 0;
  46872. }
  46873. function _roundf(f) {
  46874. f = +f;
  46875. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  46876. }
  46877. function _bitshift64Lshr(low, high, bits) {
  46878. low = low|0; high = high|0; bits = bits|0;
  46879. var ander = 0;
  46880. if ((bits|0) < 32) {
  46881. ander = ((1 << bits) - 1)|0;
  46882. tempRet0 = high >>> bits;
  46883. return (low >>> bits) | ((high&ander) << (32 - bits));
  46884. }
  46885. tempRet0 = 0;
  46886. return (high >>> (bits - 32))|0;
  46887. }
  46888. function _sbrk(increment) {
  46889. increment = increment|0;
  46890. var oldDynamicTop = 0;
  46891. var oldDynamicTopOnChange = 0;
  46892. var newDynamicTop = 0;
  46893. var totalMemory = 0;
  46894. increment = ((increment + 15) & -16)|0;
  46895. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  46896. newDynamicTop = oldDynamicTop + increment | 0;
  46897. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  46898. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  46899. abortOnCannotGrowMemory()|0;
  46900. ___setErrNo(12);
  46901. return -1;
  46902. }
  46903. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  46904. totalMemory = getTotalMemory()|0;
  46905. if ((newDynamicTop|0) > (totalMemory|0)) {
  46906. if ((enlargeMemory()|0) == 0) {
  46907. ___setErrNo(12);
  46908. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  46909. return -1;
  46910. }
  46911. }
  46912. return oldDynamicTop|0;
  46913. }
  46914. function _bitshift64Shl(low, high, bits) {
  46915. low = low|0; high = high|0; bits = bits|0;
  46916. var ander = 0;
  46917. if ((bits|0) < 32) {
  46918. ander = ((1 << bits) - 1)|0;
  46919. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  46920. return low << bits;
  46921. }
  46922. tempRet0 = low << (bits - 32);
  46923. return 0;
  46924. }
  46925. function _llvm_bswap_i32(x) {
  46926. x = x|0;
  46927. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  46928. }
  46929. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  46930. index = index|0;
  46931. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  46932. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  46933. }
  46934. function dynCall_vd(index,a1) {
  46935. index = index|0;
  46936. a1=+a1;
  46937. FUNCTION_TABLE_vd[index&3](+a1);
  46938. }
  46939. function dynCall_vid(index,a1,a2) {
  46940. index = index|0;
  46941. a1=a1|0; a2=+a2;
  46942. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  46943. }
  46944. function dynCall_vi(index,a1) {
  46945. index = index|0;
  46946. a1=a1|0;
  46947. FUNCTION_TABLE_vi[index&31](a1|0);
  46948. }
  46949. function dynCall_vii(index,a1,a2) {
  46950. index = index|0;
  46951. a1=a1|0; a2=a2|0;
  46952. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  46953. }
  46954. function dynCall_ii(index,a1) {
  46955. index = index|0;
  46956. a1=a1|0;
  46957. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  46958. }
  46959. function dynCall_viddd(index,a1,a2,a3,a4) {
  46960. index = index|0;
  46961. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  46962. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  46963. }
  46964. function dynCall_vidd(index,a1,a2,a3) {
  46965. index = index|0;
  46966. a1=a1|0; a2=+a2; a3=+a3;
  46967. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  46968. }
  46969. function dynCall_iiii(index,a1,a2,a3) {
  46970. index = index|0;
  46971. a1=a1|0; a2=a2|0; a3=a3|0;
  46972. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  46973. }
  46974. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  46975. index = index|0;
  46976. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  46977. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  46978. }
  46979. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  46980. index = index|0;
  46981. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  46982. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  46983. }
  46984. function dynCall_viii(index,a1,a2,a3) {
  46985. index = index|0;
  46986. a1=a1|0; a2=a2|0; a3=a3|0;
  46987. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  46988. }
  46989. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  46990. index = index|0;
  46991. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  46992. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  46993. }
  46994. function dynCall_vdi(index,a1,a2) {
  46995. index = index|0;
  46996. a1=+a1; a2=a2|0;
  46997. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  46998. }
  46999. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  47000. index = index|0;
  47001. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  47002. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  47003. }
  47004. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  47005. index = index|0;
  47006. 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;
  47007. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  47008. }
  47009. function dynCall_iii(index,a1,a2) {
  47010. index = index|0;
  47011. a1=a1|0; a2=a2|0;
  47012. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  47013. }
  47014. function dynCall_i(index) {
  47015. index = index|0;
  47016. return FUNCTION_TABLE_i[index&3]()|0;
  47017. }
  47018. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  47019. index = index|0;
  47020. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  47021. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  47022. }
  47023. function dynCall_vdddd(index,a1,a2,a3,a4) {
  47024. index = index|0;
  47025. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  47026. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  47027. }
  47028. function dynCall_vdd(index,a1,a2) {
  47029. index = index|0;
  47030. a1=+a1; a2=+a2;
  47031. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  47032. }
  47033. function dynCall_v(index) {
  47034. index = index|0;
  47035. FUNCTION_TABLE_v[index&7]();
  47036. }
  47037. function dynCall_viid(index,a1,a2,a3) {
  47038. index = index|0;
  47039. a1=a1|0; a2=a2|0; a3=+a3;
  47040. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  47041. }
  47042. function dynCall_viiii(index,a1,a2,a3,a4) {
  47043. index = index|0;
  47044. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  47045. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  47046. }
  47047. function b0(p0,p1,p2,p3,p4) {
  47048. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  47049. }
  47050. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  47051. 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);
  47052. }
  47053. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  47054. 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);
  47055. }
  47056. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  47057. 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);
  47058. }
  47059. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  47060. 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);
  47061. }
  47062. function b1(p0) {
  47063. p0 = +p0; nullFunc_vd(1);
  47064. }
  47065. function _emscripten_glClearDepth__wrapper(p0) {
  47066. p0 = +p0; _emscripten_glClearDepth(+p0);
  47067. }
  47068. function _emscripten_glClearDepthf__wrapper(p0) {
  47069. p0 = +p0; _emscripten_glClearDepthf(+p0);
  47070. }
  47071. function _emscripten_glLineWidth__wrapper(p0) {
  47072. p0 = +p0; _emscripten_glLineWidth(+p0);
  47073. }
  47074. function b2(p0,p1) {
  47075. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  47076. }
  47077. function _emscripten_glUniform1f__wrapper(p0,p1) {
  47078. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  47079. }
  47080. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  47081. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  47082. }
  47083. function b3(p0) {
  47084. p0 = p0|0; nullFunc_vi(3);
  47085. }
  47086. function _emscripten_glDeleteShader__wrapper(p0) {
  47087. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  47088. }
  47089. function _emscripten_glCompileShader__wrapper(p0) {
  47090. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  47091. }
  47092. function _emscripten_glDeleteProgram__wrapper(p0) {
  47093. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  47094. }
  47095. function _emscripten_glLinkProgram__wrapper(p0) {
  47096. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  47097. }
  47098. function _emscripten_glUseProgram__wrapper(p0) {
  47099. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  47100. }
  47101. function _emscripten_glValidateProgram__wrapper(p0) {
  47102. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  47103. }
  47104. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  47105. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  47106. }
  47107. function _emscripten_glEnableClientState__wrapper(p0) {
  47108. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  47109. }
  47110. function _emscripten_glClientActiveTexture__wrapper(p0) {
  47111. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  47112. }
  47113. function _emscripten_glBindVertexArray__wrapper(p0) {
  47114. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  47115. }
  47116. function _emscripten_glMatrixMode__wrapper(p0) {
  47117. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  47118. }
  47119. function _emscripten_glLoadMatrixf__wrapper(p0) {
  47120. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  47121. }
  47122. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  47123. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  47124. }
  47125. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  47126. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  47127. }
  47128. function _emscripten_glDepthFunc__wrapper(p0) {
  47129. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  47130. }
  47131. function _emscripten_glEnable__wrapper(p0) {
  47132. p0 = p0|0; _emscripten_glEnable(p0|0);
  47133. }
  47134. function _emscripten_glDisable__wrapper(p0) {
  47135. p0 = p0|0; _emscripten_glDisable(p0|0);
  47136. }
  47137. function _emscripten_glFrontFace__wrapper(p0) {
  47138. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  47139. }
  47140. function _emscripten_glCullFace__wrapper(p0) {
  47141. p0 = p0|0; _emscripten_glCullFace(p0|0);
  47142. }
  47143. function _emscripten_glClear__wrapper(p0) {
  47144. p0 = p0|0; _emscripten_glClear(p0|0);
  47145. }
  47146. function _emscripten_glClearStencil__wrapper(p0) {
  47147. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  47148. }
  47149. function _emscripten_glDepthMask__wrapper(p0) {
  47150. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  47151. }
  47152. function _emscripten_glStencilMask__wrapper(p0) {
  47153. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  47154. }
  47155. function _emscripten_glGenerateMipmap__wrapper(p0) {
  47156. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  47157. }
  47158. function _emscripten_glActiveTexture__wrapper(p0) {
  47159. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  47160. }
  47161. function _emscripten_glBlendEquation__wrapper(p0) {
  47162. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  47163. }
  47164. function b4(p0,p1) {
  47165. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  47166. }
  47167. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  47168. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  47169. }
  47170. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  47171. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  47172. }
  47173. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  47174. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  47175. }
  47176. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  47177. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  47178. }
  47179. function _emscripten_glGenTextures__wrapper(p0,p1) {
  47180. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  47181. }
  47182. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  47183. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  47184. }
  47185. function _emscripten_glBindTexture__wrapper(p0,p1) {
  47186. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  47187. }
  47188. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  47189. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  47190. }
  47191. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  47192. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  47193. }
  47194. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  47195. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  47196. }
  47197. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  47198. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  47199. }
  47200. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  47201. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  47202. }
  47203. function _emscripten_glUniform1i__wrapper(p0,p1) {
  47204. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  47205. }
  47206. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  47207. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  47208. }
  47209. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  47210. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  47211. }
  47212. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  47213. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  47214. }
  47215. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  47216. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  47217. }
  47218. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  47219. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  47220. }
  47221. function _emscripten_glAttachShader__wrapper(p0,p1) {
  47222. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  47223. }
  47224. function _emscripten_glDetachShader__wrapper(p0,p1) {
  47225. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  47226. }
  47227. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  47228. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  47229. }
  47230. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  47231. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  47232. }
  47233. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  47234. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  47235. }
  47236. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  47237. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  47238. }
  47239. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  47240. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  47241. }
  47242. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  47243. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  47244. }
  47245. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  47246. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  47247. }
  47248. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  47249. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  47250. }
  47251. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  47252. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  47253. }
  47254. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  47255. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  47256. }
  47257. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  47258. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  47259. }
  47260. function _emscripten_glHint__wrapper(p0,p1) {
  47261. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  47262. }
  47263. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  47264. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  47265. }
  47266. function b5(p0) {
  47267. p0 = p0|0; nullFunc_ii(5);return 0;
  47268. }
  47269. function _emscripten_glGetString__wrapper(p0) {
  47270. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  47271. }
  47272. function _emscripten_glIsTexture__wrapper(p0) {
  47273. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  47274. }
  47275. function _emscripten_glIsBuffer__wrapper(p0) {
  47276. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  47277. }
  47278. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  47279. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  47280. }
  47281. function _emscripten_glCreateShader__wrapper(p0) {
  47282. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  47283. }
  47284. function _emscripten_glIsShader__wrapper(p0) {
  47285. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  47286. }
  47287. function _emscripten_glIsProgram__wrapper(p0) {
  47288. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  47289. }
  47290. function _emscripten_glIsFramebuffer__wrapper(p0) {
  47291. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  47292. }
  47293. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  47294. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  47295. }
  47296. function _emscripten_glIsEnabled__wrapper(p0) {
  47297. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  47298. }
  47299. function b6(p0,p1,p2,p3) {
  47300. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  47301. }
  47302. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  47303. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  47304. }
  47305. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  47306. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  47307. }
  47308. function b7(p0,p1,p2) {
  47309. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  47310. }
  47311. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  47312. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  47313. }
  47314. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  47315. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  47316. }
  47317. function b8(p0,p1,p2) {
  47318. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  47319. }
  47320. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  47321. 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);
  47322. }
  47323. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47324. 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);
  47325. }
  47326. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47327. 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);
  47328. }
  47329. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47330. 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);
  47331. }
  47332. function b10(p0,p1,p2,p3,p4,p5) {
  47333. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  47334. }
  47335. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  47336. 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);
  47337. }
  47338. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  47339. 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);
  47340. }
  47341. function b11(p0,p1,p2) {
  47342. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  47343. }
  47344. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  47345. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  47346. }
  47347. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  47348. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  47349. }
  47350. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  47351. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  47352. }
  47353. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  47354. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  47355. }
  47356. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  47357. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  47358. }
  47359. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  47360. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  47361. }
  47362. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  47363. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  47364. }
  47365. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  47366. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  47367. }
  47368. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  47369. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  47370. }
  47371. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  47372. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  47373. }
  47374. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  47375. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  47376. }
  47377. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  47378. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  47379. }
  47380. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  47381. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  47382. }
  47383. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  47384. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  47385. }
  47386. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  47387. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  47388. }
  47389. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  47390. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  47391. }
  47392. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  47393. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  47394. }
  47395. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  47396. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  47397. }
  47398. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  47399. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  47400. }
  47401. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  47402. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  47403. }
  47404. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  47405. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  47406. }
  47407. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  47408. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  47409. }
  47410. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  47411. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  47412. }
  47413. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  47414. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  47415. }
  47416. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  47417. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  47418. }
  47419. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  47420. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  47421. }
  47422. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  47423. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  47424. }
  47425. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  47426. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  47427. }
  47428. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  47429. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  47430. }
  47431. function b12(p0,p1,p2,p3,p4) {
  47432. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  47433. }
  47434. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  47435. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  47436. }
  47437. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  47438. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  47439. }
  47440. function b13(p0,p1) {
  47441. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  47442. }
  47443. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  47444. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  47445. }
  47446. function b14(p0,p1,p2,p3,p4,p5,p6) {
  47447. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  47448. }
  47449. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47450. 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);
  47451. }
  47452. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47453. 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);
  47454. }
  47455. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47456. 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);
  47457. }
  47458. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47459. 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);
  47460. }
  47461. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47462. 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);
  47463. }
  47464. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47465. 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);
  47466. }
  47467. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47468. 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);
  47469. }
  47470. function b16(p0,p1) {
  47471. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  47472. }
  47473. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  47474. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  47475. }
  47476. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  47477. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  47478. }
  47479. function b17() {
  47480. ; nullFunc_i(17);return 0;
  47481. }
  47482. function _emscripten_glCreateProgram__wrapper() {
  47483. ; return _emscripten_glCreateProgram()|0;
  47484. }
  47485. function _emscripten_glGetError__wrapper() {
  47486. ; return _emscripten_glGetError()|0;
  47487. }
  47488. function b18(p0,p1,p2,p3,p4,p5) {
  47489. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  47490. }
  47491. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  47492. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  47493. }
  47494. function b19(p0,p1,p2,p3) {
  47495. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  47496. }
  47497. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  47498. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  47499. }
  47500. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  47501. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  47502. }
  47503. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  47504. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  47505. }
  47506. function b20(p0,p1) {
  47507. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  47508. }
  47509. function _emscripten_glDepthRange__wrapper(p0,p1) {
  47510. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  47511. }
  47512. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  47513. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  47514. }
  47515. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  47516. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  47517. }
  47518. function b21() {
  47519. ; nullFunc_v(21);
  47520. }
  47521. function _emscripten_glLoadIdentity__wrapper() {
  47522. ; _emscripten_glLoadIdentity();
  47523. }
  47524. function _emscripten_glReleaseShaderCompiler__wrapper() {
  47525. ; _emscripten_glReleaseShaderCompiler();
  47526. }
  47527. function _emscripten_glFinish__wrapper() {
  47528. ; _emscripten_glFinish();
  47529. }
  47530. function _emscripten_glFlush__wrapper() {
  47531. ; _emscripten_glFlush();
  47532. }
  47533. function b22(p0,p1,p2) {
  47534. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  47535. }
  47536. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  47537. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  47538. }
  47539. function b23(p0,p1,p2,p3) {
  47540. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  47541. }
  47542. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  47543. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  47544. }
  47545. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  47546. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  47547. }
  47548. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  47549. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  47550. }
  47551. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  47552. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  47553. }
  47554. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  47555. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  47556. }
  47557. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  47558. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  47559. }
  47560. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  47561. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  47562. }
  47563. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  47564. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  47565. }
  47566. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  47567. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  47568. }
  47569. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  47570. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  47571. }
  47572. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  47573. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  47574. }
  47575. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  47576. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  47577. }
  47578. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  47579. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  47580. }
  47581. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  47582. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  47583. }
  47584. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  47585. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  47586. }
  47587. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  47588. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  47589. }
  47590. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  47591. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  47592. }
  47593. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  47594. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  47595. }
  47596. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  47597. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  47598. }
  47599. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  47600. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  47601. }
  47602. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  47603. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  47604. }
  47605. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  47606. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  47607. }
  47608. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  47609. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  47610. }
  47611. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  47612. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  47613. }
  47614. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  47615. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  47616. }
  47617. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  47618. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  47619. }
  47620. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  47621. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  47622. }
  47623. // EMSCRIPTEN_END_FUNCS
  47624. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  47625. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  47626. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  47627. 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
  47628. ,b3,b3,b3];
  47629. 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
  47630. ,b4,b4,b4,b4,b4];
  47631. 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];
  47632. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  47633. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  47634. var FUNCTION_TABLE_iiii = [b8,_stbi__stdio_read,___stdout_write,___stdio_seek,_EmscriptenFullscreenChangeCallback,_EmscriptenKeyboardCallback,_EmscriptenMouseCallback,_EmscriptenTouchCallback,_EmscriptenGamepadCallback,___stdio_write,___stdio_read,_do_read,b8,b8,b8,b8];
  47635. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  47636. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  47637. 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];
  47638. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  47639. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  47640. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  47641. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  47642. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  47643. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  47644. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  47645. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  47646. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  47647. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  47648. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  47649. 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];
  47650. return { _roundf: _roundf, _main: _main, _llvm_cttz_i32: _llvm_cttz_i32, _bitshift64Lshr: _bitshift64Lshr, _bitshift64Shl: _bitshift64Shl, _fflush: _fflush, _memset: _memset, _sbrk: _sbrk, _memcpy: _memcpy, _llvm_bswap_i32: _llvm_bswap_i32, ___muldi3: ___muldi3, ___uremdi3: ___uremdi3, _i64Subtract: _i64Subtract, ___udivmoddi4: ___udivmoddi4, _i64Add: _i64Add, _emscripten_get_global_libc: _emscripten_get_global_libc, _emscripten_GetProcAddress: _emscripten_GetProcAddress, ___udivdi3: ___udivdi3, ___errno_location: ___errno_location, ___muldsi3: ___muldsi3, _free: _free, _memmove: _memmove, _strstr: _strstr, _malloc: _malloc, runPostSets: runPostSets, 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 };
  47651. })
  47652. // EMSCRIPTEN_END_ASM
  47653. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  47654. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  47655. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47656. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47657. return real__roundf.apply(null, arguments);
  47658. };
  47659. var real__main = asm["_main"]; asm["_main"] = function() {
  47660. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47661. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47662. return real__main.apply(null, arguments);
  47663. };
  47664. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  47665. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47666. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47667. return real_stackSave.apply(null, arguments);
  47668. };
  47669. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  47670. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47671. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47672. return real_getTempRet0.apply(null, arguments);
  47673. };
  47674. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  47675. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47676. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47677. return real_setThrew.apply(null, arguments);
  47678. };
  47679. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  47680. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47681. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47682. return real__bitshift64Lshr.apply(null, arguments);
  47683. };
  47684. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  47685. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47686. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47687. return real__bitshift64Shl.apply(null, arguments);
  47688. };
  47689. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  47690. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47691. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47692. return real__fflush.apply(null, arguments);
  47693. };
  47694. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  47695. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47696. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47697. return real__llvm_cttz_i32.apply(null, arguments);
  47698. };
  47699. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  47700. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47701. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47702. return real__sbrk.apply(null, arguments);
  47703. };
  47704. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  47705. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47706. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47707. return real__llvm_bswap_i32.apply(null, arguments);
  47708. };
  47709. var real____muldi3 = asm["___muldi3"]; asm["___muldi3"] = function() {
  47710. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47711. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47712. return real____muldi3.apply(null, arguments);
  47713. };
  47714. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  47715. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47716. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47717. return real____uremdi3.apply(null, arguments);
  47718. };
  47719. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  47720. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47721. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47722. return real_stackAlloc.apply(null, arguments);
  47723. };
  47724. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  47725. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47726. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47727. return real__i64Subtract.apply(null, arguments);
  47728. };
  47729. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  47730. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47731. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47732. return real____udivmoddi4.apply(null, arguments);
  47733. };
  47734. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  47735. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47736. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47737. return real_setTempRet0.apply(null, arguments);
  47738. };
  47739. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  47740. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47741. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47742. return real__i64Add.apply(null, arguments);
  47743. };
  47744. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  47745. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47746. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47747. return real__emscripten_get_global_libc.apply(null, arguments);
  47748. };
  47749. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  47750. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47751. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47752. return real__emscripten_GetProcAddress.apply(null, arguments);
  47753. };
  47754. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  47755. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47756. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47757. return real____udivdi3.apply(null, arguments);
  47758. };
  47759. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  47760. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47761. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47762. return real____errno_location.apply(null, arguments);
  47763. };
  47764. var real____muldsi3 = asm["___muldsi3"]; asm["___muldsi3"] = function() {
  47765. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47766. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47767. return real____muldsi3.apply(null, arguments);
  47768. };
  47769. var real__free = asm["_free"]; asm["_free"] = function() {
  47770. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47771. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47772. return real__free.apply(null, arguments);
  47773. };
  47774. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  47775. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47776. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47777. return real_establishStackSpace.apply(null, arguments);
  47778. };
  47779. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  47780. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47781. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47782. return real__memmove.apply(null, arguments);
  47783. };
  47784. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  47785. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47786. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47787. return real__strstr.apply(null, arguments);
  47788. };
  47789. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  47790. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47791. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47792. return real_stackRestore.apply(null, arguments);
  47793. };
  47794. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  47795. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47796. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47797. return real__malloc.apply(null, arguments);
  47798. };
  47799. var _roundf = Module["_roundf"] = asm["_roundf"];
  47800. var _main = Module["_main"] = asm["_main"];
  47801. var stackSave = Module["stackSave"] = asm["stackSave"];
  47802. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  47803. var _memset = Module["_memset"] = asm["_memset"];
  47804. var setThrew = Module["setThrew"] = asm["setThrew"];
  47805. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  47806. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  47807. var _fflush = Module["_fflush"] = asm["_fflush"];
  47808. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  47809. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  47810. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  47811. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  47812. var ___muldi3 = Module["___muldi3"] = asm["___muldi3"];
  47813. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  47814. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  47815. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  47816. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  47817. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  47818. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  47819. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  47820. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  47821. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  47822. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  47823. var ___muldsi3 = Module["___muldsi3"] = asm["___muldsi3"];
  47824. var _free = Module["_free"] = asm["_free"];
  47825. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  47826. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  47827. var _memmove = Module["_memmove"] = asm["_memmove"];
  47828. var _strstr = Module["_strstr"] = asm["_strstr"];
  47829. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  47830. var _malloc = Module["_malloc"] = asm["_malloc"];
  47831. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  47832. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  47833. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  47834. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  47835. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  47836. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  47837. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  47838. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  47839. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  47840. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  47841. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  47842. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  47843. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  47844. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  47845. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  47846. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  47847. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  47848. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  47849. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  47850. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  47851. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  47852. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  47853. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  47854. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  47855. ;
  47856. Runtime.stackAlloc = Module['stackAlloc'];
  47857. Runtime.stackSave = Module['stackSave'];
  47858. Runtime.stackRestore = Module['stackRestore'];
  47859. Runtime.establishStackSpace = Module['establishStackSpace'];
  47860. Runtime.setTempRet0 = Module['setTempRet0'];
  47861. Runtime.getTempRet0 = Module['getTempRet0'];
  47862. // === Auto-generated postamble setup entry stuff ===
  47863. Module['asm'] = asm;
  47864. function ExitStatus(status) {
  47865. this.name = "ExitStatus";
  47866. this.message = "Program terminated with exit(" + status + ")";
  47867. this.status = status;
  47868. };
  47869. ExitStatus.prototype = new Error();
  47870. ExitStatus.prototype.constructor = ExitStatus;
  47871. var initialStackTop;
  47872. var preloadStartTime = null;
  47873. var calledMain = false;
  47874. dependenciesFulfilled = function runCaller() {
  47875. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  47876. if (!Module['calledRun']) run();
  47877. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  47878. }
  47879. Module['callMain'] = Module.callMain = function callMain(args) {
  47880. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  47881. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  47882. args = args || [];
  47883. ensureInitRuntime();
  47884. var argc = args.length+1;
  47885. function pad() {
  47886. for (var i = 0; i < 4-1; i++) {
  47887. argv.push(0);
  47888. }
  47889. }
  47890. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  47891. pad();
  47892. for (var i = 0; i < argc-1; i = i + 1) {
  47893. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  47894. pad();
  47895. }
  47896. argv.push(0);
  47897. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  47898. try {
  47899. var ret = Module['_main'](argc, argv, 0);
  47900. // if we're not running an evented main loop, it's time to exit
  47901. exit(ret, /* implicit = */ true);
  47902. }
  47903. catch(e) {
  47904. if (e instanceof ExitStatus) {
  47905. // exit() throws this once it's done to make sure execution
  47906. // has been stopped completely
  47907. return;
  47908. } else if (e == 'SimulateInfiniteLoop') {
  47909. // running an evented main loop, don't immediately exit
  47910. Module['noExitRuntime'] = true;
  47911. return;
  47912. } else {
  47913. var toLog = e;
  47914. if (e && typeof e === 'object' && e.stack) {
  47915. toLog = [e, e.stack];
  47916. }
  47917. Module.printErr('exception thrown: ' + toLog);
  47918. Module['quit'](1, e);
  47919. }
  47920. } finally {
  47921. calledMain = true;
  47922. }
  47923. }
  47924. function run(args) {
  47925. args = args || Module['arguments'];
  47926. if (preloadStartTime === null) preloadStartTime = Date.now();
  47927. if (runDependencies > 0) {
  47928. Module.printErr('run() called, but dependencies remain, so not running');
  47929. return;
  47930. }
  47931. writeStackCookie();
  47932. preRun();
  47933. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  47934. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  47935. function doRun() {
  47936. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  47937. Module['calledRun'] = true;
  47938. if (ABORT) return;
  47939. ensureInitRuntime();
  47940. preMain();
  47941. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  47942. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  47943. }
  47944. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  47945. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  47946. postRun();
  47947. }
  47948. if (Module['setStatus']) {
  47949. Module['setStatus']('Running...');
  47950. setTimeout(function() {
  47951. setTimeout(function() {
  47952. Module['setStatus']('');
  47953. }, 1);
  47954. doRun();
  47955. }, 1);
  47956. } else {
  47957. doRun();
  47958. }
  47959. checkStackCookie();
  47960. }
  47961. Module['run'] = Module.run = run;
  47962. function exit(status, implicit) {
  47963. if (implicit && Module['noExitRuntime']) {
  47964. 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)');
  47965. return;
  47966. }
  47967. if (Module['noExitRuntime']) {
  47968. 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)');
  47969. } else {
  47970. ABORT = true;
  47971. EXITSTATUS = status;
  47972. STACKTOP = initialStackTop;
  47973. exitRuntime();
  47974. if (Module['onExit']) Module['onExit'](status);
  47975. }
  47976. if (ENVIRONMENT_IS_NODE) {
  47977. process['exit'](status);
  47978. }
  47979. Module['quit'](status, new ExitStatus(status));
  47980. }
  47981. Module['exit'] = Module.exit = exit;
  47982. var abortDecorators = [];
  47983. function abort(what) {
  47984. if (what !== undefined) {
  47985. Module.print(what);
  47986. Module.printErr(what);
  47987. what = JSON.stringify(what)
  47988. } else {
  47989. what = '';
  47990. }
  47991. ABORT = true;
  47992. EXITSTATUS = 1;
  47993. var extra = '';
  47994. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  47995. if (abortDecorators) {
  47996. abortDecorators.forEach(function(decorator) {
  47997. output = decorator(output, what);
  47998. });
  47999. }
  48000. throw output;
  48001. }
  48002. Module['abort'] = Module.abort = abort;
  48003. // {{PRE_RUN_ADDITIONS}}
  48004. if (Module['preInit']) {
  48005. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  48006. while (Module['preInit'].length > 0) {
  48007. Module['preInit'].pop()();
  48008. }
  48009. }
  48010. // shouldRunNow refers to calling main(), not run().
  48011. var shouldRunNow = true;
  48012. if (Module['noInitialRun']) {
  48013. shouldRunNow = false;
  48014. }
  48015. run();
  48016. // {{POST_RUN_ADDITIONS}}
  48017. // {{MODULE_ADDITIONS}}