text_sprite_fonts.js 1.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125
  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_sprite_fonts.data';
  20. var REMOTE_PACKAGE_BASE = 'text_sprite_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. function DataRequest(start, end, crunched, audio) {
  96. this.start = start;
  97. this.end = end;
  98. this.crunched = crunched;
  99. this.audio = audio;
  100. }
  101. DataRequest.prototype = {
  102. requests: {},
  103. open: function(mode, name) {
  104. this.name = name;
  105. this.requests[name] = this;
  106. Module['addRunDependency']('fp ' + this.name);
  107. },
  108. send: function() {},
  109. onload: function() {
  110. var byteArray = this.byteArray.subarray(this.start, this.end);
  111. this.finish(byteArray);
  112. },
  113. finish: function(byteArray) {
  114. var that = this;
  115. Module['FS_createDataFile'](this.name, null, byteArray, true, true, true); // canOwn this data in the filesystem, it is a slide into the heap that will never change
  116. Module['removeRunDependency']('fp ' + that.name);
  117. this.requests[this.name] = null;
  118. }
  119. };
  120. var files = metadata.files;
  121. for (i = 0; i < files.length; ++i) {
  122. new DataRequest(files[i].start, files[i].end, files[i].crunched, files[i].audio).open('GET', files[i].filename);
  123. }
  124. function processPackageData(arrayBuffer) {
  125. Module.finishedDataFileDownloads++;
  126. assert(arrayBuffer, 'Loading data file failed.');
  127. assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData');
  128. var byteArray = new Uint8Array(arrayBuffer);
  129. var curr;
  130. // copy the entire loaded file into a spot in the heap. Files will refer to slices in that. They cannot be freed though
  131. // (we may be allocating before malloc is ready, during startup).
  132. if (Module['SPLIT_MEMORY']) Module.printErr('warning: you should run the file packager with --no-heap-copy when SPLIT_MEMORY is used, otherwise copying into the heap may fail due to the splitting');
  133. var ptr = Module['getMemory'](byteArray.length);
  134. Module['HEAPU8'].set(byteArray, ptr);
  135. DataRequest.prototype.byteArray = Module['HEAPU8'].subarray(ptr, ptr+byteArray.length);
  136. var files = metadata.files;
  137. for (i = 0; i < files.length; ++i) {
  138. DataRequest.prototype.requests[files[i].filename].onload();
  139. }
  140. Module['removeRunDependency']('datafile_text/text_sprite_fonts.data');
  141. };
  142. Module['addRunDependency']('datafile_text/text_sprite_fonts.data');
  143. if (!Module.preloadResults) Module.preloadResults = {};
  144. Module.preloadResults[PACKAGE_NAME] = {fromCache: false};
  145. if (fetched) {
  146. processPackageData(fetched);
  147. fetched = null;
  148. } else {
  149. fetchedCallback = processPackageData;
  150. }
  151. }
  152. if (Module['calledRun']) {
  153. runWithFS();
  154. } else {
  155. if (!Module['preRun']) Module['preRun'] = [];
  156. Module["preRun"].push(runWithFS); // FS is not initialized yet, wait for it
  157. }
  158. }
  159. loadPackage({"files": [{"audio": 0, "start": 0, "crunched": 0, "end": 26597, "filename": "/resources/custom_mecha.png"}, {"audio": 0, "start": 26597, "crunched": 0, "end": 64532, "filename": "/resources/custom_alagard.png"}, {"audio": 0, "start": 64532, "crunched": 0, "end": 88128, "filename": "/resources/custom_jupiter_crash.png"}], "remote_package_size": 88128, "package_uuid": "ee9cd7bc-1414-494b-a47f-29899a0bf2b7"});
  160. })();
  161. // The Module object: Our interface to the outside world. We import
  162. // and export values on it, and do the work to get that through
  163. // closure compiler if necessary. There are various ways Module can be used:
  164. // 1. Not defined. We create it here
  165. // 2. A function parameter, function(Module) { ..generated code.. }
  166. // 3. pre-run appended it, var Module = {}; ..generated code..
  167. // 4. External script tag defines var Module.
  168. // We need to do an eval in order to handle the closure compiler
  169. // case, where this code here is minified but Module was defined
  170. // elsewhere (e.g. case 4 above). We also need to check if Module
  171. // already exists (e.g. case 3 above).
  172. // Note that if you want to run closure, and also to use Module
  173. // after the generated code, you will need to define var Module = {};
  174. // before the code. Then that object will be used in the code, and you
  175. // can continue to use Module afterwards as well.
  176. var Module;
  177. if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
  178. // Sometimes an existing Module object exists with properties
  179. // meant to overwrite the default module functionality. Here
  180. // we collect those properties and reapply _after_ we configure
  181. // the current environment's defaults to avoid having to be so
  182. // defensive during initialization.
  183. var moduleOverrides = {};
  184. for (var key in Module) {
  185. if (Module.hasOwnProperty(key)) {
  186. moduleOverrides[key] = Module[key];
  187. }
  188. }
  189. // The environment setup code below is customized to use Module.
  190. // *** Environment setup code ***
  191. var ENVIRONMENT_IS_WEB = false;
  192. var ENVIRONMENT_IS_WORKER = false;
  193. var ENVIRONMENT_IS_NODE = false;
  194. var ENVIRONMENT_IS_SHELL = false;
  195. // Three configurations we can be running in:
  196. // 1) We could be the application main() thread running in the main JS UI thread. (ENVIRONMENT_IS_WORKER == false and ENVIRONMENT_IS_PTHREAD == false)
  197. // 2) We could be the application main() thread proxied to worker. (with Emscripten -s PROXY_TO_WORKER=1) (ENVIRONMENT_IS_WORKER == true, ENVIRONMENT_IS_PTHREAD == false)
  198. // 3) We could be an application pthread running in a worker. (ENVIRONMENT_IS_WORKER == true and ENVIRONMENT_IS_PTHREAD == true)
  199. if (Module['ENVIRONMENT']) {
  200. if (Module['ENVIRONMENT'] === 'WEB') {
  201. ENVIRONMENT_IS_WEB = true;
  202. } else if (Module['ENVIRONMENT'] === 'WORKER') {
  203. ENVIRONMENT_IS_WORKER = true;
  204. } else if (Module['ENVIRONMENT'] === 'NODE') {
  205. ENVIRONMENT_IS_NODE = true;
  206. } else if (Module['ENVIRONMENT'] === 'SHELL') {
  207. ENVIRONMENT_IS_SHELL = true;
  208. } else {
  209. throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');
  210. }
  211. } else {
  212. ENVIRONMENT_IS_WEB = typeof window === 'object';
  213. ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
  214. ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function' && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER;
  215. ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
  216. }
  217. if (ENVIRONMENT_IS_NODE) {
  218. // Expose functionality in the same simple way that the shells work
  219. // Note that we pollute the global namespace here, otherwise we break in node
  220. if (!Module['print']) Module['print'] = console.log;
  221. if (!Module['printErr']) Module['printErr'] = console.warn;
  222. var nodeFS;
  223. var nodePath;
  224. Module['read'] = function read(filename, binary) {
  225. if (!nodeFS) nodeFS = require('fs');
  226. if (!nodePath) nodePath = require('path');
  227. filename = nodePath['normalize'](filename);
  228. var ret = nodeFS['readFileSync'](filename);
  229. return binary ? ret : ret.toString();
  230. };
  231. Module['readBinary'] = function readBinary(filename) {
  232. var ret = Module['read'](filename, true);
  233. if (!ret.buffer) {
  234. ret = new Uint8Array(ret);
  235. }
  236. assert(ret.buffer);
  237. return ret;
  238. };
  239. Module['load'] = function load(f) {
  240. globalEval(read(f));
  241. };
  242. if (!Module['thisProgram']) {
  243. if (process['argv'].length > 1) {
  244. Module['thisProgram'] = process['argv'][1].replace(/\\/g, '/');
  245. } else {
  246. Module['thisProgram'] = 'unknown-program';
  247. }
  248. }
  249. Module['arguments'] = process['argv'].slice(2);
  250. if (typeof module !== 'undefined') {
  251. module['exports'] = Module;
  252. }
  253. process['on']('uncaughtException', function(ex) {
  254. // suppress ExitStatus exceptions from showing an error
  255. if (!(ex instanceof ExitStatus)) {
  256. throw ex;
  257. }
  258. });
  259. Module['inspect'] = function () { return '[Emscripten Module object]'; };
  260. }
  261. else if (ENVIRONMENT_IS_SHELL) {
  262. if (!Module['print']) Module['print'] = print;
  263. if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
  264. if (typeof read != 'undefined') {
  265. Module['read'] = read;
  266. } else {
  267. Module['read'] = function read() { throw 'no read() available' };
  268. }
  269. Module['readBinary'] = function readBinary(f) {
  270. if (typeof readbuffer === 'function') {
  271. return new Uint8Array(readbuffer(f));
  272. }
  273. var data = read(f, 'binary');
  274. assert(typeof data === 'object');
  275. return data;
  276. };
  277. if (typeof scriptArgs != 'undefined') {
  278. Module['arguments'] = scriptArgs;
  279. } else if (typeof arguments != 'undefined') {
  280. Module['arguments'] = arguments;
  281. }
  282. if (typeof quit === 'function') {
  283. Module['quit'] = function(status, toThrow) {
  284. quit(status);
  285. }
  286. }
  287. }
  288. else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
  289. Module['read'] = function read(url) {
  290. var xhr = new XMLHttpRequest();
  291. xhr.open('GET', url, false);
  292. xhr.send(null);
  293. return xhr.responseText;
  294. };
  295. if (ENVIRONMENT_IS_WORKER) {
  296. Module['readBinary'] = function read(url) {
  297. var xhr = new XMLHttpRequest();
  298. xhr.open('GET', url, false);
  299. xhr.responseType = 'arraybuffer';
  300. xhr.send(null);
  301. return xhr.response;
  302. };
  303. }
  304. Module['readAsync'] = function readAsync(url, onload, onerror) {
  305. var xhr = new XMLHttpRequest();
  306. xhr.open('GET', url, true);
  307. xhr.responseType = 'arraybuffer';
  308. xhr.onload = function xhr_onload() {
  309. if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  310. onload(xhr.response);
  311. } else {
  312. onerror();
  313. }
  314. };
  315. xhr.onerror = onerror;
  316. xhr.send(null);
  317. };
  318. if (typeof arguments != 'undefined') {
  319. Module['arguments'] = arguments;
  320. }
  321. if (typeof console !== 'undefined') {
  322. if (!Module['print']) Module['print'] = function print(x) {
  323. console.log(x);
  324. };
  325. if (!Module['printErr']) Module['printErr'] = function printErr(x) {
  326. console.warn(x);
  327. };
  328. } else {
  329. // Probably a worker, and without console.log. We can do very little here...
  330. var TRY_USE_DUMP = false;
  331. if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
  332. dump(x);
  333. }) : (function(x) {
  334. // self.postMessage(x); // enable this if you want stdout to be sent as messages
  335. }));
  336. }
  337. if (ENVIRONMENT_IS_WORKER) {
  338. Module['load'] = importScripts;
  339. }
  340. if (typeof Module['setWindowTitle'] === 'undefined') {
  341. Module['setWindowTitle'] = function(title) { document.title = title };
  342. }
  343. }
  344. else {
  345. // Unreachable because SHELL is dependant on the others
  346. throw 'Unknown runtime environment. Where are we?';
  347. }
  348. function globalEval(x) {
  349. eval.call(null, x);
  350. }
  351. if (!Module['load'] && Module['read']) {
  352. Module['load'] = function load(f) {
  353. globalEval(Module['read'](f));
  354. };
  355. }
  356. if (!Module['print']) {
  357. Module['print'] = function(){};
  358. }
  359. if (!Module['printErr']) {
  360. Module['printErr'] = Module['print'];
  361. }
  362. if (!Module['arguments']) {
  363. Module['arguments'] = [];
  364. }
  365. if (!Module['thisProgram']) {
  366. Module['thisProgram'] = './this.program';
  367. }
  368. if (!Module['quit']) {
  369. Module['quit'] = function(status, toThrow) {
  370. throw toThrow;
  371. }
  372. }
  373. // *** Environment setup code ***
  374. // Closure helpers
  375. Module.print = Module['print'];
  376. Module.printErr = Module['printErr'];
  377. // Callbacks
  378. Module['preRun'] = [];
  379. Module['postRun'] = [];
  380. // Merge back in the overrides
  381. for (var key in moduleOverrides) {
  382. if (moduleOverrides.hasOwnProperty(key)) {
  383. Module[key] = moduleOverrides[key];
  384. }
  385. }
  386. // Free the object hierarchy contained in the overrides, this lets the GC
  387. // reclaim data used e.g. in memoryInitializerRequest, which is a large typed array.
  388. moduleOverrides = undefined;
  389. // {{PREAMBLE_ADDITIONS}}
  390. // === Preamble library stuff ===
  391. // Documentation for the public APIs defined in this file must be updated in:
  392. // site/source/docs/api_reference/preamble.js.rst
  393. // A prebuilt local version of the documentation is available at:
  394. // site/build/text/docs/api_reference/preamble.js.txt
  395. // You can also build docs locally as HTML or other formats in site/
  396. // An online HTML version (which may be of a different version of Emscripten)
  397. // is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
  398. //========================================
  399. // Runtime code shared with compiler
  400. //========================================
  401. var Runtime = {
  402. setTempRet0: function (value) {
  403. tempRet0 = value;
  404. return value;
  405. },
  406. getTempRet0: function () {
  407. return tempRet0;
  408. },
  409. stackSave: function () {
  410. return STACKTOP;
  411. },
  412. stackRestore: function (stackTop) {
  413. STACKTOP = stackTop;
  414. },
  415. getNativeTypeSize: function (type) {
  416. switch (type) {
  417. case 'i1': case 'i8': return 1;
  418. case 'i16': return 2;
  419. case 'i32': return 4;
  420. case 'i64': return 8;
  421. case 'float': return 4;
  422. case 'double': return 8;
  423. default: {
  424. if (type[type.length-1] === '*') {
  425. return Runtime.QUANTUM_SIZE; // A pointer
  426. } else if (type[0] === 'i') {
  427. var bits = parseInt(type.substr(1));
  428. assert(bits % 8 === 0);
  429. return bits/8;
  430. } else {
  431. return 0;
  432. }
  433. }
  434. }
  435. },
  436. getNativeFieldSize: function (type) {
  437. return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
  438. },
  439. STACK_ALIGN: 16,
  440. prepVararg: function (ptr, type) {
  441. if (type === 'double' || type === 'i64') {
  442. // move so the load is aligned
  443. if (ptr & 7) {
  444. assert((ptr & 7) === 4);
  445. ptr += 4;
  446. }
  447. } else {
  448. assert((ptr & 3) === 0);
  449. }
  450. return ptr;
  451. },
  452. getAlignSize: function (type, size, vararg) {
  453. // we align i64s and doubles on 64-bit boundaries, unlike x86
  454. if (!vararg && (type == 'i64' || type == 'double')) return 8;
  455. if (!type) return Math.min(size, 8); // align structures internally to 64 bits
  456. return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
  457. },
  458. dynCall: function (sig, ptr, args) {
  459. if (args && args.length) {
  460. assert(args.length == sig.length-1);
  461. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  462. return Module['dynCall_' + sig].apply(null, [ptr].concat(args));
  463. } else {
  464. assert(sig.length == 1);
  465. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  466. return Module['dynCall_' + sig].call(null, ptr);
  467. }
  468. },
  469. functionPointers: [],
  470. addFunction: function (func) {
  471. for (var i = 0; i < Runtime.functionPointers.length; i++) {
  472. if (!Runtime.functionPointers[i]) {
  473. Runtime.functionPointers[i] = func;
  474. return 2*(1 + i);
  475. }
  476. }
  477. throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
  478. },
  479. removeFunction: function (index) {
  480. Runtime.functionPointers[(index-2)/2] = null;
  481. },
  482. warnOnce: function (text) {
  483. if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
  484. if (!Runtime.warnOnce.shown[text]) {
  485. Runtime.warnOnce.shown[text] = 1;
  486. Module.printErr(text);
  487. }
  488. },
  489. funcWrappers: {},
  490. getFuncWrapper: function (func, sig) {
  491. assert(sig);
  492. if (!Runtime.funcWrappers[sig]) {
  493. Runtime.funcWrappers[sig] = {};
  494. }
  495. var sigCache = Runtime.funcWrappers[sig];
  496. if (!sigCache[func]) {
  497. // optimize away arguments usage in common cases
  498. if (sig.length === 1) {
  499. sigCache[func] = function dynCall_wrapper() {
  500. return Runtime.dynCall(sig, func);
  501. };
  502. } else if (sig.length === 2) {
  503. sigCache[func] = function dynCall_wrapper(arg) {
  504. return Runtime.dynCall(sig, func, [arg]);
  505. };
  506. } else {
  507. // general case
  508. sigCache[func] = function dynCall_wrapper() {
  509. return Runtime.dynCall(sig, func, Array.prototype.slice.call(arguments));
  510. };
  511. }
  512. }
  513. return sigCache[func];
  514. },
  515. getCompilerSetting: function (name) {
  516. throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
  517. },
  518. stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+15)&-16);(assert((((STACKTOP|0) < (STACK_MAX|0))|0))|0); return ret; },
  519. staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + (assert(!staticSealed),size))|0;STATICTOP = (((STATICTOP)+15)&-16); return ret; },
  520. dynamicAlloc: function (size) { assert(DYNAMICTOP_PTR);var ret = HEAP32[DYNAMICTOP_PTR>>2];var end = (((ret + size + 15)|0) & -16);HEAP32[DYNAMICTOP_PTR>>2] = end;if (end >= TOTAL_MEMORY) {var success = enlargeMemory();if (!success) {HEAP32[DYNAMICTOP_PTR>>2] = ret;return 0;}}return ret;},
  521. alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 16))*(quantum ? quantum : 16); return ret; },
  522. makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0))); return ret; },
  523. GLOBAL_BASE: 8,
  524. QUANTUM_SIZE: 4,
  525. __dummy__: 0
  526. }
  527. Module["Runtime"] = Runtime;
  528. //========================================
  529. // Runtime essentials
  530. //========================================
  531. var ABORT = 0; // whether we are quitting the application. no code should run after this. set in exit() and abort()
  532. var EXITSTATUS = 0;
  533. function assert(condition, text) {
  534. if (!condition) {
  535. abort('Assertion failed: ' + text);
  536. }
  537. }
  538. var globalScope = this;
  539. // Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
  540. function getCFunc(ident) {
  541. var func = Module['_' + ident]; // closure exported function
  542. if (!func) {
  543. try { func = eval('_' + ident); } catch(e) {}
  544. }
  545. assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
  546. return func;
  547. }
  548. var cwrap, ccall;
  549. (function(){
  550. var JSfuncs = {
  551. // Helpers for cwrap -- it can't refer to Runtime directly because it might
  552. // be renamed by closure, instead it calls JSfuncs['stackSave'].body to find
  553. // out what the minified function name is.
  554. 'stackSave': function() {
  555. Runtime.stackSave()
  556. },
  557. 'stackRestore': function() {
  558. Runtime.stackRestore()
  559. },
  560. // type conversion from js to c
  561. 'arrayToC' : function(arr) {
  562. var ret = Runtime.stackAlloc(arr.length);
  563. writeArrayToMemory(arr, ret);
  564. return ret;
  565. },
  566. 'stringToC' : function(str) {
  567. var ret = 0;
  568. if (str !== null && str !== undefined && str !== 0) { // null string
  569. // at most 4 bytes per UTF-8 code point, +1 for the trailing '\0'
  570. var len = (str.length << 2) + 1;
  571. ret = Runtime.stackAlloc(len);
  572. stringToUTF8(str, ret, len);
  573. }
  574. return ret;
  575. }
  576. };
  577. // For fast lookup of conversion functions
  578. var toC = {'string' : JSfuncs['stringToC'], 'array' : JSfuncs['arrayToC']};
  579. // C calling interface.
  580. ccall = function ccallFunc(ident, returnType, argTypes, args, opts) {
  581. var func = getCFunc(ident);
  582. var cArgs = [];
  583. var stack = 0;
  584. assert(returnType !== 'array', 'Return type should not be "array".');
  585. if (args) {
  586. for (var i = 0; i < args.length; i++) {
  587. var converter = toC[argTypes[i]];
  588. if (converter) {
  589. if (stack === 0) stack = Runtime.stackSave();
  590. cArgs[i] = converter(args[i]);
  591. } else {
  592. cArgs[i] = args[i];
  593. }
  594. }
  595. }
  596. var ret = func.apply(null, cArgs);
  597. if ((!opts || !opts.async) && typeof EmterpreterAsync === 'object') {
  598. assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling ccall');
  599. }
  600. if (opts && opts.async) assert(!returnType, 'async ccalls cannot return values');
  601. if (returnType === 'string') ret = Pointer_stringify(ret);
  602. if (stack !== 0) {
  603. if (opts && opts.async) {
  604. EmterpreterAsync.asyncFinalizers.push(function() {
  605. Runtime.stackRestore(stack);
  606. });
  607. return;
  608. }
  609. Runtime.stackRestore(stack);
  610. }
  611. return ret;
  612. }
  613. var sourceRegex = /^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
  614. function parseJSFunc(jsfunc) {
  615. // Match the body and the return value of a javascript function source
  616. var parsed = jsfunc.toString().match(sourceRegex).slice(1);
  617. return {arguments : parsed[0], body : parsed[1], returnValue: parsed[2]}
  618. }
  619. // sources of useful functions. we create this lazily as it can trigger a source decompression on this entire file
  620. var JSsource = null;
  621. function ensureJSsource() {
  622. if (!JSsource) {
  623. JSsource = {};
  624. for (var fun in JSfuncs) {
  625. if (JSfuncs.hasOwnProperty(fun)) {
  626. // Elements of toCsource are arrays of three items:
  627. // the code, and the return value
  628. JSsource[fun] = parseJSFunc(JSfuncs[fun]);
  629. }
  630. }
  631. }
  632. }
  633. cwrap = function cwrap(ident, returnType, argTypes) {
  634. argTypes = argTypes || [];
  635. var cfunc = getCFunc(ident);
  636. // When the function takes numbers and returns a number, we can just return
  637. // the original function
  638. var numericArgs = argTypes.every(function(type){ return type === 'number'});
  639. var numericRet = (returnType !== 'string');
  640. if ( numericRet && numericArgs) {
  641. return cfunc;
  642. }
  643. // Creation of the arguments list (["$1","$2",...,"$nargs"])
  644. var argNames = argTypes.map(function(x,i){return '$'+i});
  645. var funcstr = "(function(" + argNames.join(',') + ") {";
  646. var nargs = argTypes.length;
  647. if (!numericArgs) {
  648. // Generate the code needed to convert the arguments from javascript
  649. // values to pointers
  650. ensureJSsource();
  651. funcstr += 'var stack = ' + JSsource['stackSave'].body + ';';
  652. for (var i = 0; i < nargs; i++) {
  653. var arg = argNames[i], type = argTypes[i];
  654. if (type === 'number') continue;
  655. var convertCode = JSsource[type + 'ToC']; // [code, return]
  656. funcstr += 'var ' + convertCode.arguments + ' = ' + arg + ';';
  657. funcstr += convertCode.body + ';';
  658. funcstr += arg + '=(' + convertCode.returnValue + ');';
  659. }
  660. }
  661. // When the code is compressed, the name of cfunc is not literally 'cfunc' anymore
  662. var cfuncname = parseJSFunc(function(){return cfunc}).returnValue;
  663. // Call the function
  664. funcstr += 'var ret = ' + cfuncname + '(' + argNames.join(',') + ');';
  665. if (!numericRet) { // Return type can only by 'string' or 'number'
  666. // Convert the result to a string
  667. var strgfy = parseJSFunc(function(){return Pointer_stringify}).returnValue;
  668. funcstr += 'ret = ' + strgfy + '(ret);';
  669. }
  670. funcstr += "if (typeof EmterpreterAsync === 'object') { assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling cwrap') }";
  671. if (!numericArgs) {
  672. // If we had a stack, restore it
  673. ensureJSsource();
  674. funcstr += JSsource['stackRestore'].body.replace('()', '(stack)') + ';';
  675. }
  676. funcstr += 'return ret})';
  677. return eval(funcstr);
  678. };
  679. })();
  680. Module["ccall"] = ccall;
  681. Module["cwrap"] = cwrap;
  682. function setValue(ptr, value, type, noSafe) {
  683. type = type || 'i8';
  684. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  685. switch(type) {
  686. case 'i1': HEAP8[((ptr)>>0)]=value; break;
  687. case 'i8': HEAP8[((ptr)>>0)]=value; break;
  688. case 'i16': HEAP16[((ptr)>>1)]=value; break;
  689. case 'i32': HEAP32[((ptr)>>2)]=value; break;
  690. case 'i64': (tempI64 = [value>>>0,(tempDouble=value,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[((ptr)>>2)]=tempI64[0],HEAP32[(((ptr)+(4))>>2)]=tempI64[1]); break;
  691. case 'float': HEAPF32[((ptr)>>2)]=value; break;
  692. case 'double': HEAPF64[((ptr)>>3)]=value; break;
  693. default: abort('invalid type for setValue: ' + type);
  694. }
  695. }
  696. Module["setValue"] = setValue;
  697. function getValue(ptr, type, noSafe) {
  698. type = type || 'i8';
  699. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  700. switch(type) {
  701. case 'i1': return HEAP8[((ptr)>>0)];
  702. case 'i8': return HEAP8[((ptr)>>0)];
  703. case 'i16': return HEAP16[((ptr)>>1)];
  704. case 'i32': return HEAP32[((ptr)>>2)];
  705. case 'i64': return HEAP32[((ptr)>>2)];
  706. case 'float': return HEAPF32[((ptr)>>2)];
  707. case 'double': return HEAPF64[((ptr)>>3)];
  708. default: abort('invalid type for setValue: ' + type);
  709. }
  710. return null;
  711. }
  712. Module["getValue"] = getValue;
  713. var ALLOC_NORMAL = 0; // Tries to use _malloc()
  714. var ALLOC_STACK = 1; // Lives for the duration of the current function call
  715. var ALLOC_STATIC = 2; // Cannot be freed
  716. var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
  717. var ALLOC_NONE = 4; // Do not allocate
  718. Module["ALLOC_NORMAL"] = ALLOC_NORMAL;
  719. Module["ALLOC_STACK"] = ALLOC_STACK;
  720. Module["ALLOC_STATIC"] = ALLOC_STATIC;
  721. Module["ALLOC_DYNAMIC"] = ALLOC_DYNAMIC;
  722. Module["ALLOC_NONE"] = ALLOC_NONE;
  723. // allocate(): This is for internal use. You can use it yourself as well, but the interface
  724. // is a little tricky (see docs right below). The reason is that it is optimized
  725. // for multiple syntaxes to save space in generated code. So you should
  726. // normally not use allocate(), and instead allocate memory using _malloc(),
  727. // initialize it with setValue(), and so forth.
  728. // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
  729. // in *bytes* (note that this is sometimes confusing: the next parameter does not
  730. // affect this!)
  731. // @types: Either an array of types, one for each byte (or 0 if no type at that position),
  732. // or a single type which is used for the entire block. This only matters if there
  733. // is initial data - if @slab is a number, then this does not matter at all and is
  734. // ignored.
  735. // @allocator: How to allocate memory, see ALLOC_*
  736. function allocate(slab, types, allocator, ptr) {
  737. var zeroinit, size;
  738. if (typeof slab === 'number') {
  739. zeroinit = true;
  740. size = slab;
  741. } else {
  742. zeroinit = false;
  743. size = slab.length;
  744. }
  745. var singleType = typeof types === 'string' ? types : null;
  746. var ret;
  747. if (allocator == ALLOC_NONE) {
  748. ret = ptr;
  749. } else {
  750. ret = [typeof _malloc === 'function' ? _malloc : Runtime.staticAlloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][allocator === undefined ? ALLOC_STATIC : allocator](Math.max(size, singleType ? 1 : types.length));
  751. }
  752. if (zeroinit) {
  753. var ptr = ret, stop;
  754. assert((ret & 3) == 0);
  755. stop = ret + (size & ~3);
  756. for (; ptr < stop; ptr += 4) {
  757. HEAP32[((ptr)>>2)]=0;
  758. }
  759. stop = ret + size;
  760. while (ptr < stop) {
  761. HEAP8[((ptr++)>>0)]=0;
  762. }
  763. return ret;
  764. }
  765. if (singleType === 'i8') {
  766. if (slab.subarray || slab.slice) {
  767. HEAPU8.set(slab, ret);
  768. } else {
  769. HEAPU8.set(new Uint8Array(slab), ret);
  770. }
  771. return ret;
  772. }
  773. var i = 0, type, typeSize, previousType;
  774. while (i < size) {
  775. var curr = slab[i];
  776. if (typeof curr === 'function') {
  777. curr = Runtime.getFunctionIndex(curr);
  778. }
  779. type = singleType || types[i];
  780. if (type === 0) {
  781. i++;
  782. continue;
  783. }
  784. assert(type, 'Must know what type to store in allocate!');
  785. if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
  786. setValue(ret+i, curr, type);
  787. // no need to look up size unless type changes, so cache it
  788. if (previousType !== type) {
  789. typeSize = Runtime.getNativeTypeSize(type);
  790. previousType = type;
  791. }
  792. i += typeSize;
  793. }
  794. return ret;
  795. }
  796. Module["allocate"] = allocate;
  797. // Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
  798. function getMemory(size) {
  799. if (!staticSealed) return Runtime.staticAlloc(size);
  800. if (!runtimeInitialized) return Runtime.dynamicAlloc(size);
  801. return _malloc(size);
  802. }
  803. Module["getMemory"] = getMemory;
  804. function Pointer_stringify(ptr, /* optional */ length) {
  805. if (length === 0 || !ptr) return '';
  806. // TODO: use TextDecoder
  807. // Find the length, and check for UTF while doing so
  808. var hasUtf = 0;
  809. var t;
  810. var i = 0;
  811. while (1) {
  812. assert(ptr + i < TOTAL_MEMORY);
  813. t = HEAPU8[(((ptr)+(i))>>0)];
  814. hasUtf |= t;
  815. if (t == 0 && !length) break;
  816. i++;
  817. if (length && i == length) break;
  818. }
  819. if (!length) length = i;
  820. var ret = '';
  821. if (hasUtf < 128) {
  822. var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
  823. var curr;
  824. while (length > 0) {
  825. curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
  826. ret = ret ? ret + curr : curr;
  827. ptr += MAX_CHUNK;
  828. length -= MAX_CHUNK;
  829. }
  830. return ret;
  831. }
  832. return Module['UTF8ToString'](ptr);
  833. }
  834. Module["Pointer_stringify"] = Pointer_stringify;
  835. // Given a pointer 'ptr' to a null-terminated ASCII-encoded string in the emscripten HEAP, returns
  836. // a copy of that string as a Javascript String object.
  837. function AsciiToString(ptr) {
  838. var str = '';
  839. while (1) {
  840. var ch = HEAP8[((ptr++)>>0)];
  841. if (!ch) return str;
  842. str += String.fromCharCode(ch);
  843. }
  844. }
  845. Module["AsciiToString"] = AsciiToString;
  846. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  847. // null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
  848. function stringToAscii(str, outPtr) {
  849. return writeAsciiToMemory(str, outPtr, false);
  850. }
  851. Module["stringToAscii"] = stringToAscii;
  852. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns
  853. // a copy of that string as a Javascript String object.
  854. var UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
  855. function UTF8ArrayToString(u8Array, idx) {
  856. var endPtr = idx;
  857. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  858. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  859. while (u8Array[endPtr]) ++endPtr;
  860. if (endPtr - idx > 16 && u8Array.subarray && UTF8Decoder) {
  861. return UTF8Decoder.decode(u8Array.subarray(idx, endPtr));
  862. } else {
  863. var u0, u1, u2, u3, u4, u5;
  864. var str = '';
  865. while (1) {
  866. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  867. u0 = u8Array[idx++];
  868. if (!u0) return str;
  869. if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; }
  870. u1 = u8Array[idx++] & 63;
  871. if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; }
  872. u2 = u8Array[idx++] & 63;
  873. if ((u0 & 0xF0) == 0xE0) {
  874. u0 = ((u0 & 15) << 12) | (u1 << 6) | u2;
  875. } else {
  876. u3 = u8Array[idx++] & 63;
  877. if ((u0 & 0xF8) == 0xF0) {
  878. u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | u3;
  879. } else {
  880. u4 = u8Array[idx++] & 63;
  881. if ((u0 & 0xFC) == 0xF8) {
  882. u0 = ((u0 & 3) << 24) | (u1 << 18) | (u2 << 12) | (u3 << 6) | u4;
  883. } else {
  884. u5 = u8Array[idx++] & 63;
  885. u0 = ((u0 & 1) << 30) | (u1 << 24) | (u2 << 18) | (u3 << 12) | (u4 << 6) | u5;
  886. }
  887. }
  888. }
  889. if (u0 < 0x10000) {
  890. str += String.fromCharCode(u0);
  891. } else {
  892. var ch = u0 - 0x10000;
  893. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  894. }
  895. }
  896. }
  897. }
  898. Module["UTF8ArrayToString"] = UTF8ArrayToString;
  899. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the emscripten HEAP, returns
  900. // a copy of that string as a Javascript String object.
  901. function UTF8ToString(ptr) {
  902. return UTF8ArrayToString(HEAPU8,ptr);
  903. }
  904. Module["UTF8ToString"] = UTF8ToString;
  905. // Copies the given Javascript String object 'str' to the given byte array at address 'outIdx',
  906. // encoded in UTF8 form and null-terminated. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  907. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  908. // Parameters:
  909. // str: the Javascript string to copy.
  910. // outU8Array: the array to copy to. Each index in this array is assumed to be one 8-byte element.
  911. // outIdx: The starting offset in the array to begin the copying.
  912. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  913. // terminator, i.e. if maxBytesToWrite=1, only the null terminator will be written and nothing else.
  914. // maxBytesToWrite=0 does not write any bytes to the output, not even the null terminator.
  915. // Returns the number of bytes written, EXCLUDING the null terminator.
  916. function stringToUTF8Array(str, outU8Array, outIdx, maxBytesToWrite) {
  917. if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes.
  918. return 0;
  919. var startIdx = outIdx;
  920. var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator.
  921. for (var i = 0; i < str.length; ++i) {
  922. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  923. // See http://unicode.org/faq/utf_bom.html#utf16-3
  924. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  925. var u = str.charCodeAt(i); // possibly a lead surrogate
  926. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  927. if (u <= 0x7F) {
  928. if (outIdx >= endIdx) break;
  929. outU8Array[outIdx++] = u;
  930. } else if (u <= 0x7FF) {
  931. if (outIdx + 1 >= endIdx) break;
  932. outU8Array[outIdx++] = 0xC0 | (u >> 6);
  933. outU8Array[outIdx++] = 0x80 | (u & 63);
  934. } else if (u <= 0xFFFF) {
  935. if (outIdx + 2 >= endIdx) break;
  936. outU8Array[outIdx++] = 0xE0 | (u >> 12);
  937. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  938. outU8Array[outIdx++] = 0x80 | (u & 63);
  939. } else if (u <= 0x1FFFFF) {
  940. if (outIdx + 3 >= endIdx) break;
  941. outU8Array[outIdx++] = 0xF0 | (u >> 18);
  942. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  943. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  944. outU8Array[outIdx++] = 0x80 | (u & 63);
  945. } else if (u <= 0x3FFFFFF) {
  946. if (outIdx + 4 >= endIdx) break;
  947. outU8Array[outIdx++] = 0xF8 | (u >> 24);
  948. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  949. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  950. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  951. outU8Array[outIdx++] = 0x80 | (u & 63);
  952. } else {
  953. if (outIdx + 5 >= endIdx) break;
  954. outU8Array[outIdx++] = 0xFC | (u >> 30);
  955. outU8Array[outIdx++] = 0x80 | ((u >> 24) & 63);
  956. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  957. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  958. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  959. outU8Array[outIdx++] = 0x80 | (u & 63);
  960. }
  961. }
  962. // Null-terminate the pointer to the buffer.
  963. outU8Array[outIdx] = 0;
  964. return outIdx - startIdx;
  965. }
  966. Module["stringToUTF8Array"] = stringToUTF8Array;
  967. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  968. // null-terminated and encoded in UTF8 form. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  969. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  970. // Returns the number of bytes written, EXCLUDING the null terminator.
  971. function stringToUTF8(str, outPtr, maxBytesToWrite) {
  972. assert(typeof maxBytesToWrite == 'number', 'stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  973. return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
  974. }
  975. Module["stringToUTF8"] = stringToUTF8;
  976. // Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.
  977. function lengthBytesUTF8(str) {
  978. var len = 0;
  979. for (var i = 0; i < str.length; ++i) {
  980. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  981. // See http://unicode.org/faq/utf_bom.html#utf16-3
  982. var u = str.charCodeAt(i); // possibly a lead surrogate
  983. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  984. if (u <= 0x7F) {
  985. ++len;
  986. } else if (u <= 0x7FF) {
  987. len += 2;
  988. } else if (u <= 0xFFFF) {
  989. len += 3;
  990. } else if (u <= 0x1FFFFF) {
  991. len += 4;
  992. } else if (u <= 0x3FFFFFF) {
  993. len += 5;
  994. } else {
  995. len += 6;
  996. }
  997. }
  998. return len;
  999. }
  1000. Module["lengthBytesUTF8"] = lengthBytesUTF8;
  1001. // Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
  1002. // a copy of that string as a Javascript String object.
  1003. var UTF16Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-16le') : undefined;
  1004. function UTF16ToString(ptr) {
  1005. assert(ptr % 2 == 0, 'Pointer passed to UTF16ToString must be aligned to two bytes!');
  1006. var endPtr = ptr;
  1007. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  1008. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  1009. var idx = endPtr >> 1;
  1010. while (HEAP16[idx]) ++idx;
  1011. endPtr = idx << 1;
  1012. if (endPtr - ptr > 32 && UTF16Decoder) {
  1013. return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
  1014. } else {
  1015. var i = 0;
  1016. var str = '';
  1017. while (1) {
  1018. var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
  1019. if (codeUnit == 0) return str;
  1020. ++i;
  1021. // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
  1022. str += String.fromCharCode(codeUnit);
  1023. }
  1024. }
  1025. }
  1026. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1027. // null-terminated and encoded in UTF16 form. The copy will require at most str.length*4+2 bytes of space in the HEAP.
  1028. // Use the function lengthBytesUTF16() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1029. // Parameters:
  1030. // str: the Javascript string to copy.
  1031. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1032. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1033. // terminator, i.e. if maxBytesToWrite=2, only the null terminator will be written and nothing else.
  1034. // maxBytesToWrite<2 does not write any bytes to the output, not even the null terminator.
  1035. // Returns the number of bytes written, EXCLUDING the null terminator.
  1036. function stringToUTF16(str, outPtr, maxBytesToWrite) {
  1037. assert(outPtr % 2 == 0, 'Pointer passed to stringToUTF16 must be aligned to two bytes!');
  1038. assert(typeof maxBytesToWrite == 'number', 'stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1039. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1040. if (maxBytesToWrite === undefined) {
  1041. maxBytesToWrite = 0x7FFFFFFF;
  1042. }
  1043. if (maxBytesToWrite < 2) return 0;
  1044. maxBytesToWrite -= 2; // Null terminator.
  1045. var startPtr = outPtr;
  1046. var numCharsToWrite = (maxBytesToWrite < str.length*2) ? (maxBytesToWrite / 2) : str.length;
  1047. for (var i = 0; i < numCharsToWrite; ++i) {
  1048. // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
  1049. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1050. HEAP16[((outPtr)>>1)]=codeUnit;
  1051. outPtr += 2;
  1052. }
  1053. // Null-terminate the pointer to the HEAP.
  1054. HEAP16[((outPtr)>>1)]=0;
  1055. return outPtr - startPtr;
  1056. }
  1057. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1058. function lengthBytesUTF16(str) {
  1059. return str.length*2;
  1060. }
  1061. function UTF32ToString(ptr) {
  1062. assert(ptr % 4 == 0, 'Pointer passed to UTF32ToString must be aligned to four bytes!');
  1063. var i = 0;
  1064. var str = '';
  1065. while (1) {
  1066. var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
  1067. if (utf32 == 0)
  1068. return str;
  1069. ++i;
  1070. // Gotcha: fromCharCode constructs a character from a UTF-16 encoded code (pair), not from a Unicode code point! So encode the code point to UTF-16 for constructing.
  1071. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1072. if (utf32 >= 0x10000) {
  1073. var ch = utf32 - 0x10000;
  1074. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  1075. } else {
  1076. str += String.fromCharCode(utf32);
  1077. }
  1078. }
  1079. }
  1080. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1081. // null-terminated and encoded in UTF32 form. The copy will require at most str.length*4+4 bytes of space in the HEAP.
  1082. // Use the function lengthBytesUTF32() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1083. // Parameters:
  1084. // str: the Javascript string to copy.
  1085. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1086. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1087. // terminator, i.e. if maxBytesToWrite=4, only the null terminator will be written and nothing else.
  1088. // maxBytesToWrite<4 does not write any bytes to the output, not even the null terminator.
  1089. // Returns the number of bytes written, EXCLUDING the null terminator.
  1090. function stringToUTF32(str, outPtr, maxBytesToWrite) {
  1091. assert(outPtr % 4 == 0, 'Pointer passed to stringToUTF32 must be aligned to four bytes!');
  1092. assert(typeof maxBytesToWrite == 'number', 'stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1093. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1094. if (maxBytesToWrite === undefined) {
  1095. maxBytesToWrite = 0x7FFFFFFF;
  1096. }
  1097. if (maxBytesToWrite < 4) return 0;
  1098. var startPtr = outPtr;
  1099. var endPtr = startPtr + maxBytesToWrite - 4;
  1100. for (var i = 0; i < str.length; ++i) {
  1101. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1102. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1103. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1104. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
  1105. var trailSurrogate = str.charCodeAt(++i);
  1106. codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
  1107. }
  1108. HEAP32[((outPtr)>>2)]=codeUnit;
  1109. outPtr += 4;
  1110. if (outPtr + 4 > endPtr) break;
  1111. }
  1112. // Null-terminate the pointer to the HEAP.
  1113. HEAP32[((outPtr)>>2)]=0;
  1114. return outPtr - startPtr;
  1115. }
  1116. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1117. function lengthBytesUTF32(str) {
  1118. var len = 0;
  1119. for (var i = 0; i < str.length; ++i) {
  1120. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1121. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1122. var codeUnit = str.charCodeAt(i);
  1123. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) ++i; // possibly a lead surrogate, so skip over the tail surrogate.
  1124. len += 4;
  1125. }
  1126. return len;
  1127. }
  1128. function demangle(func) {
  1129. var __cxa_demangle_func = Module['___cxa_demangle'] || Module['__cxa_demangle'];
  1130. if (__cxa_demangle_func) {
  1131. try {
  1132. var s =
  1133. func.substr(1);
  1134. var len = lengthBytesUTF8(s)+1;
  1135. var buf = _malloc(len);
  1136. stringToUTF8(s, buf, len);
  1137. var status = _malloc(4);
  1138. var ret = __cxa_demangle_func(buf, 0, 0, status);
  1139. if (getValue(status, 'i32') === 0 && ret) {
  1140. return Pointer_stringify(ret);
  1141. }
  1142. // otherwise, libcxxabi failed
  1143. } catch(e) {
  1144. // ignore problems here
  1145. } finally {
  1146. if (buf) _free(buf);
  1147. if (status) _free(status);
  1148. if (ret) _free(ret);
  1149. }
  1150. // failure when using libcxxabi, don't demangle
  1151. return func;
  1152. }
  1153. Runtime.warnOnce('warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling');
  1154. return func;
  1155. }
  1156. function demangleAll(text) {
  1157. var regex =
  1158. /__Z[\w\d_]+/g;
  1159. return text.replace(regex,
  1160. function(x) {
  1161. var y = demangle(x);
  1162. return x === y ? x : (x + ' [' + y + ']');
  1163. });
  1164. }
  1165. function jsStackTrace() {
  1166. var err = new Error();
  1167. if (!err.stack) {
  1168. // IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
  1169. // so try that as a special-case.
  1170. try {
  1171. throw new Error(0);
  1172. } catch(e) {
  1173. err = e;
  1174. }
  1175. if (!err.stack) {
  1176. return '(no stack trace available)';
  1177. }
  1178. }
  1179. return err.stack.toString();
  1180. }
  1181. function stackTrace() {
  1182. var js = jsStackTrace();
  1183. if (Module['extraStackTrace']) js += '\n' + Module['extraStackTrace']();
  1184. return demangleAll(js);
  1185. }
  1186. Module["stackTrace"] = stackTrace;
  1187. // Memory management
  1188. var PAGE_SIZE = 16384;
  1189. var WASM_PAGE_SIZE = 65536;
  1190. var ASMJS_PAGE_SIZE = 16777216;
  1191. var MIN_TOTAL_MEMORY = 16777216;
  1192. function alignUp(x, multiple) {
  1193. if (x % multiple > 0) {
  1194. x += multiple - (x % multiple);
  1195. }
  1196. return x;
  1197. }
  1198. var HEAP;
  1199. var buffer;
  1200. var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
  1201. function updateGlobalBuffer(buf) {
  1202. Module['buffer'] = buffer = buf;
  1203. }
  1204. function updateGlobalBufferViews() {
  1205. Module['HEAP8'] = HEAP8 = new Int8Array(buffer);
  1206. Module['HEAP16'] = HEAP16 = new Int16Array(buffer);
  1207. Module['HEAP32'] = HEAP32 = new Int32Array(buffer);
  1208. Module['HEAPU8'] = HEAPU8 = new Uint8Array(buffer);
  1209. Module['HEAPU16'] = HEAPU16 = new Uint16Array(buffer);
  1210. Module['HEAPU32'] = HEAPU32 = new Uint32Array(buffer);
  1211. Module['HEAPF32'] = HEAPF32 = new Float32Array(buffer);
  1212. Module['HEAPF64'] = HEAPF64 = new Float64Array(buffer);
  1213. }
  1214. var STATIC_BASE, STATICTOP, staticSealed; // static area
  1215. var STACK_BASE, STACKTOP, STACK_MAX; // stack area
  1216. var DYNAMIC_BASE, DYNAMICTOP_PTR; // dynamic area handled by sbrk
  1217. STATIC_BASE = STATICTOP = STACK_BASE = STACKTOP = STACK_MAX = DYNAMIC_BASE = DYNAMICTOP_PTR = 0;
  1218. staticSealed = false;
  1219. // Initializes the stack cookie. Called at the startup of main and at the startup of each thread in pthreads mode.
  1220. function writeStackCookie() {
  1221. assert((STACK_MAX & 3) == 0);
  1222. HEAPU32[(STACK_MAX >> 2)-1] = 0x02135467;
  1223. HEAPU32[(STACK_MAX >> 2)-2] = 0x89BACDFE;
  1224. }
  1225. function checkStackCookie() {
  1226. if (HEAPU32[(STACK_MAX >> 2)-1] != 0x02135467 || HEAPU32[(STACK_MAX >> 2)-2] != 0x89BACDFE) {
  1227. abort('Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x' + HEAPU32[(STACK_MAX >> 2)-2].toString(16) + ' ' + HEAPU32[(STACK_MAX >> 2)-1].toString(16));
  1228. }
  1229. // Also test the global address 0 for integrity. This check is not compatible with SAFE_SPLIT_MEMORY though, since that mode already tests all address 0 accesses on its own.
  1230. if (HEAP32[0] !== 0x63736d65 /* 'emsc' */) throw 'Runtime error: The application has corrupted its heap memory area (address zero)!';
  1231. }
  1232. function abortStackOverflow(allocSize) {
  1233. abort('Stack overflow! Attempted to allocate ' + allocSize + ' bytes on the stack, but stack has only ' + (STACK_MAX - asm.stackSave() + allocSize) + ' bytes available!');
  1234. }
  1235. function abortOnCannotGrowMemory() {
  1236. abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ');
  1237. }
  1238. function enlargeMemory() {
  1239. abortOnCannotGrowMemory();
  1240. }
  1241. var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
  1242. var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 16777216;
  1243. if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
  1244. // Initialize the runtime's memory
  1245. // check for full engine support (use string 'subarray' to avoid closure compiler confusion)
  1246. assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
  1247. 'JS engine does not provide full typed array support');
  1248. // Use a provided buffer, if there is one, or else allocate a new one
  1249. if (Module['buffer']) {
  1250. buffer = Module['buffer'];
  1251. assert(buffer.byteLength === TOTAL_MEMORY, 'provided buffer should be ' + TOTAL_MEMORY + ' bytes, but it is ' + buffer.byteLength);
  1252. } else {
  1253. // Use a WebAssembly memory where available
  1254. {
  1255. buffer = new ArrayBuffer(TOTAL_MEMORY);
  1256. }
  1257. assert(buffer.byteLength === TOTAL_MEMORY);
  1258. }
  1259. updateGlobalBufferViews();
  1260. function getTotalMemory() {
  1261. return TOTAL_MEMORY;
  1262. }
  1263. // Endianness check (note: assumes compiler arch was little-endian)
  1264. HEAP32[0] = 0x63736d65; /* 'emsc' */
  1265. HEAP16[1] = 0x6373;
  1266. if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
  1267. Module['HEAP'] = HEAP;
  1268. Module['buffer'] = buffer;
  1269. Module['HEAP8'] = HEAP8;
  1270. Module['HEAP16'] = HEAP16;
  1271. Module['HEAP32'] = HEAP32;
  1272. Module['HEAPU8'] = HEAPU8;
  1273. Module['HEAPU16'] = HEAPU16;
  1274. Module['HEAPU32'] = HEAPU32;
  1275. Module['HEAPF32'] = HEAPF32;
  1276. Module['HEAPF64'] = HEAPF64;
  1277. function callRuntimeCallbacks(callbacks) {
  1278. while(callbacks.length > 0) {
  1279. var callback = callbacks.shift();
  1280. if (typeof callback == 'function') {
  1281. callback();
  1282. continue;
  1283. }
  1284. var func = callback.func;
  1285. if (typeof func === 'number') {
  1286. if (callback.arg === undefined) {
  1287. Module['dynCall_v'](func);
  1288. } else {
  1289. Module['dynCall_vi'](func, callback.arg);
  1290. }
  1291. } else {
  1292. func(callback.arg === undefined ? null : callback.arg);
  1293. }
  1294. }
  1295. }
  1296. var __ATPRERUN__ = []; // functions called before the runtime is initialized
  1297. var __ATINIT__ = []; // functions called during startup
  1298. var __ATMAIN__ = []; // functions called when main() is to be run
  1299. var __ATEXIT__ = []; // functions called during shutdown
  1300. var __ATPOSTRUN__ = []; // functions called after the runtime has exited
  1301. var runtimeInitialized = false;
  1302. var runtimeExited = false;
  1303. function preRun() {
  1304. // compatibility - merge in anything from Module['preRun'] at this time
  1305. if (Module['preRun']) {
  1306. if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
  1307. while (Module['preRun'].length) {
  1308. addOnPreRun(Module['preRun'].shift());
  1309. }
  1310. }
  1311. callRuntimeCallbacks(__ATPRERUN__);
  1312. }
  1313. function ensureInitRuntime() {
  1314. checkStackCookie();
  1315. if (runtimeInitialized) return;
  1316. runtimeInitialized = true;
  1317. callRuntimeCallbacks(__ATINIT__);
  1318. }
  1319. function preMain() {
  1320. checkStackCookie();
  1321. callRuntimeCallbacks(__ATMAIN__);
  1322. }
  1323. function exitRuntime() {
  1324. checkStackCookie();
  1325. callRuntimeCallbacks(__ATEXIT__);
  1326. runtimeExited = true;
  1327. }
  1328. function postRun() {
  1329. checkStackCookie();
  1330. // compatibility - merge in anything from Module['postRun'] at this time
  1331. if (Module['postRun']) {
  1332. if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
  1333. while (Module['postRun'].length) {
  1334. addOnPostRun(Module['postRun'].shift());
  1335. }
  1336. }
  1337. callRuntimeCallbacks(__ATPOSTRUN__);
  1338. }
  1339. function addOnPreRun(cb) {
  1340. __ATPRERUN__.unshift(cb);
  1341. }
  1342. Module["addOnPreRun"] = addOnPreRun;
  1343. function addOnInit(cb) {
  1344. __ATINIT__.unshift(cb);
  1345. }
  1346. Module["addOnInit"] = addOnInit;
  1347. function addOnPreMain(cb) {
  1348. __ATMAIN__.unshift(cb);
  1349. }
  1350. Module["addOnPreMain"] = addOnPreMain;
  1351. function addOnExit(cb) {
  1352. __ATEXIT__.unshift(cb);
  1353. }
  1354. Module["addOnExit"] = addOnExit;
  1355. function addOnPostRun(cb) {
  1356. __ATPOSTRUN__.unshift(cb);
  1357. }
  1358. Module["addOnPostRun"] = addOnPostRun;
  1359. // Tools
  1360. function intArrayFromString(stringy, dontAddNull, length /* optional */) {
  1361. var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
  1362. var u8array = new Array(len);
  1363. var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
  1364. if (dontAddNull) u8array.length = numBytesWritten;
  1365. return u8array;
  1366. }
  1367. Module["intArrayFromString"] = intArrayFromString;
  1368. function intArrayToString(array) {
  1369. var ret = [];
  1370. for (var i = 0; i < array.length; i++) {
  1371. var chr = array[i];
  1372. if (chr > 0xFF) {
  1373. assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
  1374. chr &= 0xFF;
  1375. }
  1376. ret.push(String.fromCharCode(chr));
  1377. }
  1378. return ret.join('');
  1379. }
  1380. Module["intArrayToString"] = intArrayToString;
  1381. // Deprecated: This function should not be called because it is unsafe and does not provide
  1382. // a maximum length limit of how many bytes it is allowed to write. Prefer calling the
  1383. // function stringToUTF8Array() instead, which takes in a maximum length that can be used
  1384. // to be secure from out of bounds writes.
  1385. function writeStringToMemory(string, buffer, dontAddNull) {
  1386. Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
  1387. var lastChar, end;
  1388. if (dontAddNull) {
  1389. // stringToUTF8Array always appends null. If we don't want to do that, remember the
  1390. // character that existed at the location where the null will be placed, and restore
  1391. // that after the write (below).
  1392. end = buffer + lengthBytesUTF8(string);
  1393. lastChar = HEAP8[end];
  1394. }
  1395. stringToUTF8(string, buffer, Infinity);
  1396. if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
  1397. }
  1398. Module["writeStringToMemory"] = writeStringToMemory;
  1399. function writeArrayToMemory(array, buffer) {
  1400. assert(array.length >= 0, 'writeArrayToMemory array must have a length (should be an array or typed array)')
  1401. HEAP8.set(array, buffer);
  1402. }
  1403. Module["writeArrayToMemory"] = writeArrayToMemory;
  1404. function writeAsciiToMemory(str, buffer, dontAddNull) {
  1405. for (var i = 0; i < str.length; ++i) {
  1406. assert(str.charCodeAt(i) === str.charCodeAt(i)&0xff);
  1407. HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
  1408. }
  1409. // Null-terminate the pointer to the HEAP.
  1410. if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
  1411. }
  1412. Module["writeAsciiToMemory"] = writeAsciiToMemory;
  1413. function unSign(value, bits, ignore) {
  1414. if (value >= 0) {
  1415. return value;
  1416. }
  1417. return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts
  1418. : Math.pow(2, bits) + value;
  1419. }
  1420. function reSign(value, bits, ignore) {
  1421. if (value <= 0) {
  1422. return value;
  1423. }
  1424. var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
  1425. : Math.pow(2, bits-1);
  1426. if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
  1427. // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
  1428. // TODO: In i64 mode 1, resign the two parts separately and safely
  1429. value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
  1430. }
  1431. return value;
  1432. }
  1433. // check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
  1434. if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
  1435. var ah = a >>> 16;
  1436. var al = a & 0xffff;
  1437. var bh = b >>> 16;
  1438. var bl = b & 0xffff;
  1439. return (al*bl + ((ah*bl + al*bh) << 16))|0;
  1440. };
  1441. Math.imul = Math['imul'];
  1442. if (!Math['clz32']) Math['clz32'] = function(x) {
  1443. x = x >>> 0;
  1444. for (var i = 0; i < 32; i++) {
  1445. if (x & (1 << (31 - i))) return i;
  1446. }
  1447. return 32;
  1448. };
  1449. Math.clz32 = Math['clz32']
  1450. if (!Math['trunc']) Math['trunc'] = function(x) {
  1451. return x < 0 ? Math.ceil(x) : Math.floor(x);
  1452. };
  1453. Math.trunc = Math['trunc'];
  1454. var Math_abs = Math.abs;
  1455. var Math_cos = Math.cos;
  1456. var Math_sin = Math.sin;
  1457. var Math_tan = Math.tan;
  1458. var Math_acos = Math.acos;
  1459. var Math_asin = Math.asin;
  1460. var Math_atan = Math.atan;
  1461. var Math_atan2 = Math.atan2;
  1462. var Math_exp = Math.exp;
  1463. var Math_log = Math.log;
  1464. var Math_sqrt = Math.sqrt;
  1465. var Math_ceil = Math.ceil;
  1466. var Math_floor = Math.floor;
  1467. var Math_pow = Math.pow;
  1468. var Math_imul = Math.imul;
  1469. var Math_fround = Math.fround;
  1470. var Math_round = Math.round;
  1471. var Math_min = Math.min;
  1472. var Math_clz32 = Math.clz32;
  1473. var Math_trunc = Math.trunc;
  1474. // A counter of dependencies for calling run(). If we need to
  1475. // do asynchronous work before running, increment this and
  1476. // decrement it. Incrementing must happen in a place like
  1477. // PRE_RUN_ADDITIONS (used by emcc to add file preloading).
  1478. // Note that you can add dependencies in preRun, even though
  1479. // it happens right before run - run will be postponed until
  1480. // the dependencies are met.
  1481. var runDependencies = 0;
  1482. var runDependencyWatcher = null;
  1483. var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
  1484. var runDependencyTracking = {};
  1485. function getUniqueRunDependency(id) {
  1486. var orig = id;
  1487. while (1) {
  1488. if (!runDependencyTracking[id]) return id;
  1489. id = orig + Math.random();
  1490. }
  1491. return id;
  1492. }
  1493. function addRunDependency(id) {
  1494. runDependencies++;
  1495. if (Module['monitorRunDependencies']) {
  1496. Module['monitorRunDependencies'](runDependencies);
  1497. }
  1498. if (id) {
  1499. assert(!runDependencyTracking[id]);
  1500. runDependencyTracking[id] = 1;
  1501. if (runDependencyWatcher === null && typeof setInterval !== 'undefined') {
  1502. // Check for missing dependencies every few seconds
  1503. runDependencyWatcher = setInterval(function() {
  1504. if (ABORT) {
  1505. clearInterval(runDependencyWatcher);
  1506. runDependencyWatcher = null;
  1507. return;
  1508. }
  1509. var shown = false;
  1510. for (var dep in runDependencyTracking) {
  1511. if (!shown) {
  1512. shown = true;
  1513. Module.printErr('still waiting on run dependencies:');
  1514. }
  1515. Module.printErr('dependency: ' + dep);
  1516. }
  1517. if (shown) {
  1518. Module.printErr('(end of list)');
  1519. }
  1520. }, 10000);
  1521. }
  1522. } else {
  1523. Module.printErr('warning: run dependency added without ID');
  1524. }
  1525. }
  1526. Module["addRunDependency"] = addRunDependency;
  1527. function removeRunDependency(id) {
  1528. runDependencies--;
  1529. if (Module['monitorRunDependencies']) {
  1530. Module['monitorRunDependencies'](runDependencies);
  1531. }
  1532. if (id) {
  1533. assert(runDependencyTracking[id]);
  1534. delete runDependencyTracking[id];
  1535. } else {
  1536. Module.printErr('warning: run dependency removed without ID');
  1537. }
  1538. if (runDependencies == 0) {
  1539. if (runDependencyWatcher !== null) {
  1540. clearInterval(runDependencyWatcher);
  1541. runDependencyWatcher = null;
  1542. }
  1543. if (dependenciesFulfilled) {
  1544. var callback = dependenciesFulfilled;
  1545. dependenciesFulfilled = null;
  1546. callback(); // can add another dependenciesFulfilled
  1547. }
  1548. }
  1549. }
  1550. Module["removeRunDependency"] = removeRunDependency;
  1551. Module["preloadedImages"] = {}; // maps url to image data
  1552. Module["preloadedAudios"] = {}; // maps url to audio data
  1553. var memoryInitializer = null;
  1554. // === Body ===
  1555. var ASM_CONSTS = [function($0, $1) { { Module.printErr('bad name in getProcAddress: ' + [Pointer_stringify($0), Pointer_stringify($1)]); } }];
  1556. function _emscripten_asm_const_iii(code, a0, a1) {
  1557. return ASM_CONSTS[code](a0, a1);
  1558. }
  1559. STATIC_BASE = 8;
  1560. STATICTOP = STATIC_BASE + 24784;
  1561. /* global initializers */ __ATINIT__.push();
  1562. /* memory initializer */ allocate([32,3,0,0,194,1,0,0,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,32,0,0,176,1,0,0,0,0,0,0,0,0,0,32,37,249,142,0,10,2,0,0,128,190,125,95,244,125,31,160,242,43,74,30,9,82,8,0,64,34,65,80,20,4,16,32,32,41,46,18,8,34,8,0,32,34,65,80,20,4,16,32,32,249,16,76,8,250,62,60,16,34,125,222,247,125,16,32,32,161,232,50,8,34,8,0,8,34,5,16,4,69,16,0,240,163,164,50,8,82,8,0,4,34,5,16,4,69,16,32,32,249,226,94,8,2,0,129,2,62,125,31,244,125,16,0,0,32,0,0,176,1,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,15,0,192,15,224,247,251,125,126,191,95,232,190,80,0,162,8,8,68,232,47,20,10,133,2,129,80,72,160,80,0,162,40,228,73,40,40,20,10,132,2,129,64,72,160,72,0,190,15,2,16,175,235,247,9,132,62,159,216,79,160,71,0,34,136,228,9,161,42,20,10,132,2,129,80,72,160,72,0,34,40,8,4,160,47,20,10,133,2,129,80,72,162,80,0,190,143,0,0,33,32,244,251,125,126,129,95,232,156,208,7,0,128,0,0,224,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,1,12,0,130,66,191,223,239,247,251,11,5,5,133,66,191,4,72,0,198,66,161,80,40,20,64,8,5,37,133,66,160,8,168,0,170,70,161,80,40,20,64,8,5,37,133,66,144,16,8,0,146,74,161,95,232,247,67,8,5,37,121,126,136,32,8,0,130,82,161,64,40,1,66,8,137,36,133,64,132,64,8,0,130,98,161,64,42,2,66,8,81,36,133,64,130,128,8,0,130,66,191,192,47,244,67,248,33,252,133,126,191,0,9,62,0,0,0,0,4,0,0,0,0,0,0,0,128,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,0,4,0,32,72,65,0,0,0,0,0,8,0,0,4,4,0,4,60,32,0,65,0,0,0,0,0,8,0,0,240,125,223,247,133,239,75,81,190,239,251,190,239,59,81,4,0,69,65,20,133,40,74,73,170,40,138,162,32,8,81,4,240,69,65,244,157,40,74,71,170,40,138,162,224,11,81,4,16,69,65,20,132,40,74,73,170,40,138,162,0,10,145,2,240,125,223,247,133,47,74,209,170,232,251,190,224,123,31,1,0,0,0,0,4,8,64,0,0,0,8,32,0,0,0,0,0,0,0,0,132,15,96,0,0,0,8,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,1,15,0,0,0,0,0,0,0,0,0,0,0,0,0,36,1,9,0,0,0,0,0,0,0,0,0,6,0,0,0,36,1,9,0,0,0,0,0,0,0,128,16,9,162,40,250,36,1,9,0,0,0,0,0,0,0,0,62,1,42,37,66,34,82,9,0,0,0,0,0,0,0,128,138,3,42,34,34,36,41,9,0,0,0,0,0,0,0,128,10,1,42,37,18,36,1,9,0,0,0,0,0,0,0,128,10,1,190,232,251,36,1,9,0,0,0,0,0,0,0,128,190,14,0,0,2,172,1,15,0,0,0,0,0,0,0,128,4,0,0,224,3,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,0,0,14,184,67,132,3,58,32,0,128,160,190,2,32,0,0,240,138,32,82,196,2,43,32,4,34,145,2,248,59,0,240,7,142,56,75,228,2,58,32,2,28,138,30,8,42,233,17,4,224,11,66,244,2,130,36,1,20,4,20,232,186,4,209,5,128,184,195,231,10,58,137,0,28,14,60,40,2,9,80,4,128,0,64,196,2,128,68,0,34,132,32,232,2,0,80,4,0,0,64,128,2,0,32,5,0,142,62,8,2,0,16,4,224,3,64,128,66,0,0,7,0,132,0,248,3,0,240,7,0,0,64,128,34,0,0,4,0,0,0,0,0,0,0,0,0,0,64,128,2,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,7,128,0,194,160,72,24,0,0,1,132,33,9,146,2,66,38,4,1,33,81,0,0,127,63,2,66,2,16,41,0,34,20,192,239,247,251,253,126,9,161,223,239,247,187,187,3,18,15,68,40,20,10,133,66,9,129,64,32,16,16,17,1,8,4,68,40,20,10,133,66,127,129,64,32,16,16,17,1,4,130,199,239,247,251,253,126,9,129,207,231,243,17,17,1,50,169,80,40,20,10,133,66,9,161,64,32,16,16,17,1,64,184,80,40,20,10,133,66,121,191,223,239,247,187,187,3,32,160,31,0,0,0,0,0,0,16,0,0,0,0,0,0,112,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,2,8,131,34,1,0,2,8,67,2,1,0,1,1,124,20,4,132,68,1,0,32,4,132,4,128,8,63,130,0,132,66,191,223,239,247,3,126,161,80,40,20,10,33,0,0,132,70,161,80,40,20,138,82,161,80,40,20,122,161,239,3,158,74,161,80,40,20,82,82,161,80,40,20,74,31,8,2,132,82,161,80,40,20,34,74,161,80,40,244,75,161,239,3,132,98,161,80,40,20,82,74,161,80,40,4,122,161,40,2,124,66,191,223,239,247,139,126,191,223,239,247,11,189,239,3,0,0,0,0,0,0,0,4,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,5,32,0,0,4,132,0,34,129,69,17,16,66,1,0,148,66,81,0,0,8,66,81,148,42,162,32,8,165,80,0,0,0,32,0,0,0,0,0,0,0,5,0,0,0,0,8,190,239,251,254,251,190,239,251,20,145,235,251,190,239,251,0,32,8,130,32,10,162,40,138,20,145,40,138,162,40,138,62,190,239,251,254,11,190,239,251,20,145,40,138,162,40,138,0,162,40,138,34,8,130,32,8,20,145,40,138,162,40,138,8,190,239,251,254,251,190,239,251,20,145,47,250,190,239,251,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,33,0,4,0,0,0,0,0,0,0,0,0,0,0,0,130,80,20,2,20,0,0,0,0,0,0,0,0,0,0,16,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,190,40,138,162,40,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,168,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,190,239,251,190,47,62,0,0,0,0,0,0,0,0,0,0,4,0,0,0,40,32,0,0,0,0,0,0,0,0,0,0,0,0,0,128,15,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,2,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,7,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,7,0,0,0,3,0,0,0,5,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,4,0,0,0,3,0,0,0,5,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,9,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,5,0,0,0,255,255,255,255,0,1,0,0,255,255,255,255,0,0,128,191,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,13,0,0,0,15,0,0,0,17,0,0,0,19,0,0,0,23,0,0,0,27,0,0,0,31,0,0,0,35,0,0,0,43,0,0,0,51,0,0,0,59,0,0,0,67,0,0,0,83,0,0,0,99,0,0,0,115,0,0,0,131,0,0,0,163,0,0,0,195,0,0,0,227,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,12,0,0,0,12,0,0,0,13,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,7,0,0,0,9,0,0,0,13,0,0,0,17,0,0,0,25,0,0,0,33,0,0,0,49,0,0,0,65,0,0,0,97,0,0,0,129,0,0,0,193,0,0,0,1,1,0,0,129,1,0,0,1,2,0,0,1,3,0,0,1,4,0,0,1,6,0,0,1,8,0,0,1,12,0,0,1,16,0,0,1,24,0,0,1,32,0,0,1,48,0,0,1,64,0,0,1,96,0,0,0,0,0,0,0,0,0,0,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,156,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,15,0,0,5,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,3,0,0,0,199,92,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,15,0,0,10,0,0,0,100,0,0,0,232,3,0,0,16,39,0,0,160,134,1,0,64,66,15,0,128,150,152,0,0,225,245,5,95,112,137,0,255,9,47,15,84,72,73,83,32,73,83,32,65,32,99,117,115,116,111,109,32,83,80,82,73,84,69,32,70,79,78,84,46,46,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,46,46,97,110,100,32,116,104,105,115,32,105,115,32,65,78,79,84,72,69,82,32,67,85,83,84,79,77,32,102,111,110,116,46,46,46,0,0,0,0,0,0,0,0,0,0,0,0,0,46,46,46,97,110,100,32,97,32,84,72,73,82,68,32,111,110,101,33,32,71,82,69,65,84,33,32,58,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,97,121,108,105,98,32,91,116,101,120,116,93,32,101,120,97,109,112,108,101,32,45,32,115,112,114,105,116,101,32,102,111,110,116,115,32,117,115,97,103,101,0,114,101,115,111,117,114,99,101,115,47,99,117,115,116,111,109,95,109,101,99,104,97,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,99,117,115,116,111,109,95,97,108,97,103,97,114,100,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,99,117,115,116,111,109,95,106,117,112,105,116,101,114,95,99,114,97,115,104,46,112,110,103,0,73,110,105,116,105,97,108,105,122,105,110,103,32,114,97,121,108,105,98,32,40,118,49,46,55,46,48,41,0,35,99,97,110,118,97,115,0,84,97,114,103,101,116,32,116,105,109,101,32,112,101,114,32,102,114,97,109,101,58,32,37,48,50,46,48,51,102,32,109,105,108,108,105,115,101,99,111,110,100,115,0,69,115,99,97,112,101,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,102,117,108,108,115,99,114,101,101,110,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,119,105,110,100,111,119,101,100,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,91,84,69,88,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,102,111,110,116,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,50,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,84,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,84,101,120,116,117,114,101,32,99,114,101,97,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,84,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,99,114,101,97,116,101,100,0,73,109,97,103,101,32,100,97,116,97,32,102,111,114,109,97,116,32,105,115,32,99,111,109,112,114,101,115,115,101,100,44,32,99,97,110,32,110,111,116,32,98,101,32,99,111,110,118,101,114,116,101,100,0,70,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,102,111,114,32,112,105,120,101,108,32,100,97,116,97,32,114,101,116,114,105,101,118,97,108,0,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,71,76,70,87,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,77,83,65,65,32,120,52,0,67,108,111,115,101,115,116,32,102,117,108,108,115,99,114,101,101,110,32,118,105,100,101,111,109,111,100,101,58,32,37,105,32,120,32,37,105,0,71,76,70,87,32,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,87,105,110,100,111,119,0,68,105,115,112,108,97,121,32,100,101,118,105,99,101,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,82,101,110,100,101,114,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,83,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,86,105,101,119,112,111,114,116,32,111,102,102,115,101,116,115,58,32,37,105,44,32,37,105,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,86,83,89,78,67,0,71,80,85,58,32,86,101,110,100,111,114,58,32,32,32,37,115,0,71,80,85,58,32,82,101,110,100,101,114,101,114,58,32,37,115,0,71,80,85,58,32,86,101,114,115,105,111,110,58,32,32,37,115,0,71,80,85,58,32,71,76,83,76,58,32,32,32,32,32,37,115,0,32,0,78,117,109,98,101,114,32,111,102,32,115,117,112,112,111,114,116,101,100,32,101,120,116,101,110,115,105,111,110,115,58,32,37,105,0,71,76,95,79,69,83,95,118,101,114,116,101,120,95,97,114,114,97,121,95,111,98,106,101,99,116,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,79,69,83,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,71,76,95,79,69,83,95,116,101,120,116,117,114,101,95,110,112,111,116,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,115,51,116,99,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,87,69,66,75,73,84,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,79,69,83,95,99,111,109,112,114,101,115,115,101,100,95,69,84,67,49,95,82,71,66,56,95,116,101,120,116,117,114,101,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,101,116,99,49,0,71,76,95,65,82,66,95,69,83,51,95,99,111,109,112,97,116,105,98,105,108,105,116,121,0,71,76,95,73,77,71,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,112,118,114,116,99,0,71,76,95,75,72,82,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,97,115,116,99,95,104,100,114,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,102,105,108,116,101,114,95,97,110,105,115,111,116,114,111,112,105,99,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,109,105,114,114,111,114,95,99,108,97,109,112,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,86,65,79,32,102,117,110,99,116,105,111,110,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,86,65,79,32,117,115,97,103,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,102,117,108,108,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,108,105,109,105,116,101,100,32,78,80,79,84,32,115,117,112,112,111,114,116,32,40,110,111,45,109,105,112,109,97,112,115,44,32,110,111,45,114,101,112,101,97,116,41,0,91,69,88,84,69,78,83,73,79,78,93,32,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,50,47,69,65,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,110,105,115,111,116,114,111,112,105,99,32,116,101,120,116,117,114,101,115,32,102,105,108,116,101,114,105,110,103,32,115,117,112,112,111,114,116,101,100,32,40,109,97,120,58,32,37,46,48,102,88,41,0,91,69,88,84,69,78,83,73,79,78,93,32,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,116,101,120,116,117,114,101,32,109,111,100,101,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,79,112,101,110,71,76,32,100,101,102,97,117,108,116,32,115,116,97,116,101,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,67,80,85,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,44,32,116,114,105,97,110,103,108,101,115,44,32,113,117,97,100,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,51,32,118,101,114,116,101,120,80,111,115,105,116,105,111,110,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,50,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,52,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,109,97,116,52,32,109,118,112,77,97,116,114,105,120,59,32,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,102,114,97,103,84,101,120,67,111,111,114,100,32,61,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,10,32,32,32,32,102,114,97,103,67,111,108,111,114,32,61,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,10,32,32,32,32,103,108,95,80,111,115,105,116,105,111,110,32,61,32,109,118,112,77,97,116,114,105,120,42,118,101,99,52,40,118,101,114,116,101,120,80,111,115,105,116,105,111,110,44,32,49,46,48,41,59,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,112,114,101,99,105,115,105,111,110,32,109,101,100,105,117,109,112,32,102,108,111,97,116,59,32,32,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,115,97,109,112,108,101,114,50,68,32,116,101,120,116,117,114,101,48,59,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,118,101,99,52,32,99,111,108,68,105,102,102,117,115,101,59,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,118,101,99,52,32,116,101,120,101,108,67,111,108,111,114,32,61,32,116,101,120,116,117,114,101,50,68,40,116,101,120,116,117,114,101,48,44,32,102,114,97,103,84,101,120,67,111,111,114,100,41,59,32,10,32,32,32,32,103,108,95,70,114,97,103,67,111,108,111,114,32,61,32,116,101,120,101,108,67,111,108,111,114,42,99,111,108,68,105,102,102,117,115,101,42,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,118,101,114,116,101,120,80,111,115,105,116,105,111,110,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,50,0,118,101,114,116,101,120,78,111,114,109,97,108,0,118,101,114,116,101,120,84,97,110,103,101,110,116,0,118,101,114,116,101,120,67,111,108,111,114,0,109,118,112,77,97,116,114,105,120,0,99,111,108,68,105,102,102,117,115,101,0,99,111,108,65,109,98,105,101,110,116,0,99,111,108,83,112,101,99,117,108,97,114,0,116,101,120,116,117,114,101,48,0,116,101,120,116,117,114,101,49,0,116,101,120,116,117,114,101,50,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,118,101,114,116,101,120,32,115,104,97,100,101,114,46,46,46,0,37,115,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,86,101,114,116,101,120,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,102,114,97,103,109,101,110,116,32,115,104,97,100,101,114,46,46,46,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,114,97,103,109,101,110,116,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,108,105,110,107,32,115,104,97,100,101,114,32,112,114,111,103,114,97,109,46,46,46,0,91,83,72,68,82,32,73,68,32,37,105,93,32,83,104,97,100,101,114,32,112,114,111,103,114,97,109,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,79,87,78,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,32,40,37,105,120,37,105,41,32,105,115,32,98,105,103,103,101,114,32,116,104,97,110,32,100,105,115,112,108,97,121,32,115,105,122,101,32,40,37,105,120,37,105,41,0,68,111,119,110,115,99,97,108,101,32,109,97,116,114,105,120,32,103,101,110,101,114,97,116,101,100,44,32,99,111,110,116,101,110,116,32,119,105,108,108,32,98,101,32,114,101,110,100,101,114,101,100,32,97,116,58,32,37,105,32,120,32,37,105,0,85,80,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,32,45,62,32,68,105,115,112,108,97,121,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,91,71,76,70,87,51,32,69,114,114,111,114,93,32,67,111,100,101,58,32,37,105,32,68,101,99,114,105,112,116,105,111,110,58,32,37,115,0,73,78,70,79,58,32,0,87,65,82,78,73,78,71,58,32,0,87,105,110,100,111,119,32,99,108,111,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,40,98,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,41,32,102,114,111,109,32,86,82,65,77,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,83,116,97,99,107,32,66,117,102,102,101,114,32,79,118,101,114,102,108,111,119,32,40,77,65,88,32,37,105,32,77,97,116,114,105,120,41,0,77,65,88,95,76,73,78,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,84,82,73,65,78,71,76,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,81,85,65,68,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,109,111,100,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,77,97,120,105,109,117,109,32,97,110,105,115,111,116,114,111,112,105,99,32,102,105,108,116,101,114,32,108,101,118,101,108,32,115,117,112,112,111,114,116,101,100,32,105,115,32,37,105,88,0,65,110,105,115,111,116,114,111,112,105,99,32,102,105,108,116,101,114,105,110,103,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,114,105,46,98,105,116,115,95,112,101,114,95,99,104,97,110,110,101,108,32,61,61,32,49,54,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,105,109,97,103,101,46,104,0,115,116,98,105,95,95,108,111,97,100,95,97,110,100,95,112,111,115,116,112,114,111,99,101,115,115,95,56,98,105,116,0,111,117,116,111,102,109,101,109,0,117,110,107,110,111,119,110,32,105,109,97,103,101,32,116,121,112,101,0,98,97,100,32,114,101,113,95,99,111,109,112,0,114,101,113,95,99,111,109,112,32,62,61,32,49,32,38,38,32,114,101,113,95,99,111,109,112,32,60,61,32,52,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,49,54,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,0,109,117,108,116,105,112,108,101,32,73,72,68,82,0,98,97,100,32,73,72,68,82,32,108,101,110,0,116,111,111,32,108,97,114,103,101,0,49,47,50,47,52,47,56,47,49,54,45,98,105,116,32,111,110,108,121,0,98,97,100,32,99,116,121,112,101,0,98,97,100,32,99,111,109,112,32,109,101,116,104,111,100,0,98,97,100,32,102,105,108,116,101,114,32,109,101,116,104,111,100,0,98,97,100,32,105,110,116,101,114,108,97,99,101,32,109,101,116,104,111,100,0,48,45,112,105,120,101,108,32,105,109,97,103,101,0,102,105,114,115,116,32,110,111,116,32,73,72,68,82,0,105,110,118,97,108,105,100,32,80,76,84,69,0,116,82,78,83,32,97,102,116,101,114,32,73,68,65,84,0,116,82,78,83,32,98,101,102,111,114,101,32,80,76,84,69,0,98,97,100,32,116,82,78,83,32,108,101,110,0,116,82,78,83,32,119,105,116,104,32,97,108,112,104,97,0,0,255,85,0,17,0,0,0,1,110,111,32,80,76,84,69,0,111,117,116,111,102,100,97,116,97,0,110,111,32,73,68,65,84,0,88,88,88,88,32,80,78,71,32,99,104,117,110,107,32,110,111,116,32,107,110,111,119,110,0,115,45,62,105,109,103,95,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,100,101,95,105,112,104,111,110,101,0,111,117,116,95,110,32,61,61,32,50,32,124,124,32,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,49,54,0,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,32,124,124,32,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,43,49,0,115,116,98,105,95,95,99,114,101,97,116,101,95,112,110,103,95,105,109,97,103,101,95,114,97,119,0,110,111,116,32,101,110,111,117,103,104,32,112,105,120,101,108,115,0,105,109,103,95,119,105,100,116,104,95,98,121,116,101,115,32,60,61,32,120,0,0,1,0,5,6,105,109,103,95,110,43,49,32,61,61,32,111,117,116,95,110,0,105,110,118,97,108,105,100,32,102,105,108,116,101,114,0,105,109,103,95,110,32,61,61,32,51,0,8,8], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1563. /* memory initializer */ allocate([8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,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);
  1564. /* no memory initializer */
  1565. var tempDoublePtr = STATICTOP; STATICTOP += 16;
  1566. assert(tempDoublePtr % 8 == 0);
  1567. function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
  1568. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1569. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1570. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1571. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1572. }
  1573. function copyTempDouble(ptr) {
  1574. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1575. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1576. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1577. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1578. HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
  1579. HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
  1580. HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
  1581. HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
  1582. }
  1583. // {{PRE_LIBRARY}}
  1584. var GL={counter:1,lastError:0,buffers:[],mappedBuffers:{},programs:[],framebuffers:[],renderbuffers:[],textures:[],uniforms:[],shaders:[],vaos:[],contexts:[],currentContext:null,offscreenCanvases:{},timerQueriesEXT:[],byteSizeByTypeRoot:5120,byteSizeByType:[1,1,2,2,4,4,4,2,3,4,8],programInfos:{},stringCache:{},tempFixedLengthArray:[],packAlignment:4,unpackAlignment:4,init:function () {
  1585. GL.miniTempBuffer = new Float32Array(GL.MINI_TEMP_BUFFER_SIZE);
  1586. for (var i = 0; i < GL.MINI_TEMP_BUFFER_SIZE; i++) {
  1587. GL.miniTempBufferViews[i] = GL.miniTempBuffer.subarray(0, i+1);
  1588. }
  1589. // For functions such as glDrawBuffers, glInvalidateFramebuffer and glInvalidateSubFramebuffer that need to pass a short array to the WebGL API,
  1590. // create a set of short fixed-length arrays to avoid having to generate any garbage when calling those functions.
  1591. for (var i = 0; i < 32; i++) {
  1592. GL.tempFixedLengthArray.push(new Array(i));
  1593. }
  1594. },recordError:function recordError(errorCode) {
  1595. if (!GL.lastError) {
  1596. GL.lastError = errorCode;
  1597. }
  1598. },getNewId:function (table) {
  1599. var ret = GL.counter++;
  1600. for (var i = table.length; i < ret; i++) {
  1601. table[i] = null;
  1602. }
  1603. return ret;
  1604. },MINI_TEMP_BUFFER_SIZE:256,miniTempBuffer:null,miniTempBufferViews:[0],getSource:function (shader, count, string, length) {
  1605. var source = '';
  1606. for (var i = 0; i < count; ++i) {
  1607. var frag;
  1608. if (length) {
  1609. var len = HEAP32[(((length)+(i*4))>>2)];
  1610. if (len < 0) {
  1611. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1612. } else {
  1613. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)], len);
  1614. }
  1615. } else {
  1616. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1617. }
  1618. source += frag;
  1619. }
  1620. return source;
  1621. },createContext:function (canvas, webGLContextAttributes) {
  1622. if (typeof webGLContextAttributes['majorVersion'] === 'undefined' && typeof webGLContextAttributes['minorVersion'] === 'undefined') {
  1623. webGLContextAttributes['majorVersion'] = 1;
  1624. webGLContextAttributes['minorVersion'] = 0;
  1625. }
  1626. var ctx;
  1627. var errorInfo = '?';
  1628. function onContextCreationError(event) {
  1629. errorInfo = event.statusMessage || errorInfo;
  1630. }
  1631. try {
  1632. canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
  1633. try {
  1634. if (webGLContextAttributes['majorVersion'] == 1 && webGLContextAttributes['minorVersion'] == 0) {
  1635. ctx = canvas.getContext("webgl", webGLContextAttributes) || canvas.getContext("experimental-webgl", webGLContextAttributes);
  1636. } else if (webGLContextAttributes['majorVersion'] == 2 && webGLContextAttributes['minorVersion'] == 0) {
  1637. ctx = canvas.getContext("webgl2", webGLContextAttributes) || canvas.getContext("experimental-webgl2", webGLContextAttributes);
  1638. } else {
  1639. throw 'Unsupported WebGL context version ' + majorVersion + '.' + minorVersion + '!'
  1640. }
  1641. } finally {
  1642. canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
  1643. }
  1644. if (!ctx) throw ':(';
  1645. } catch (e) {
  1646. Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);
  1647. return 0;
  1648. }
  1649. // possible GL_DEBUG entry point: ctx = wrapDebugGL(ctx);
  1650. if (!ctx) return 0;
  1651. return GL.registerContext(ctx, webGLContextAttributes);
  1652. },registerContext:function (ctx, webGLContextAttributes) {
  1653. var handle = GL.getNewId(GL.contexts);
  1654. var context = {
  1655. handle: handle,
  1656. attributes: webGLContextAttributes,
  1657. version: webGLContextAttributes['majorVersion'],
  1658. GLctx: ctx
  1659. };
  1660. // Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
  1661. if (ctx.canvas) ctx.canvas.GLctxObject = context;
  1662. GL.contexts[handle] = context;
  1663. if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes['enableExtensionsByDefault']) {
  1664. GL.initExtensions(context);
  1665. }
  1666. return handle;
  1667. },makeContextCurrent:function (contextHandle) {
  1668. var context = GL.contexts[contextHandle];
  1669. if (!context) return false;
  1670. GLctx = Module.ctx = context.GLctx; // Active WebGL context object.
  1671. GL.currentContext = context; // Active Emscripten GL layer context object.
  1672. return true;
  1673. },getContext:function (contextHandle) {
  1674. return GL.contexts[contextHandle];
  1675. },deleteContext:function (contextHandle) {
  1676. if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null;
  1677. if (typeof JSEvents === 'object') JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas); // Release all JS event handlers on the DOM element that the GL context is associated with since the context is now deleted.
  1678. if (GL.contexts[contextHandle] && GL.contexts[contextHandle].GLctx.canvas) GL.contexts[contextHandle].GLctx.canvas.GLctxObject = undefined; // Make sure the canvas object no longer refers to the context object so there are no GC surprises.
  1679. GL.contexts[contextHandle] = null;
  1680. },initExtensions:function (context) {
  1681. // If this function is called without a specific context object, init the extensions of the currently active context.
  1682. if (!context) context = GL.currentContext;
  1683. if (context.initExtensionsDone) return;
  1684. context.initExtensionsDone = true;
  1685. var GLctx = context.GLctx;
  1686. context.maxVertexAttribs = GLctx.getParameter(GLctx.MAX_VERTEX_ATTRIBS);
  1687. // Detect the presence of a few extensions manually, this GL interop layer itself will need to know if they exist.
  1688. if (context.version < 2) {
  1689. // Extension available from Firefox 26 and Google Chrome 30
  1690. var instancedArraysExt = GLctx.getExtension('ANGLE_instanced_arrays');
  1691. if (instancedArraysExt) {
  1692. GLctx['vertexAttribDivisor'] = function(index, divisor) { instancedArraysExt['vertexAttribDivisorANGLE'](index, divisor); };
  1693. GLctx['drawArraysInstanced'] = function(mode, first, count, primcount) { instancedArraysExt['drawArraysInstancedANGLE'](mode, first, count, primcount); };
  1694. GLctx['drawElementsInstanced'] = function(mode, count, type, indices, primcount) { instancedArraysExt['drawElementsInstancedANGLE'](mode, count, type, indices, primcount); };
  1695. }
  1696. // Extension available from Firefox 25 and WebKit
  1697. var vaoExt = GLctx.getExtension('OES_vertex_array_object');
  1698. if (vaoExt) {
  1699. GLctx['createVertexArray'] = function() { return vaoExt['createVertexArrayOES'](); };
  1700. GLctx['deleteVertexArray'] = function(vao) { vaoExt['deleteVertexArrayOES'](vao); };
  1701. GLctx['bindVertexArray'] = function(vao) { vaoExt['bindVertexArrayOES'](vao); };
  1702. GLctx['isVertexArray'] = function(vao) { return vaoExt['isVertexArrayOES'](vao); };
  1703. }
  1704. var drawBuffersExt = GLctx.getExtension('WEBGL_draw_buffers');
  1705. if (drawBuffersExt) {
  1706. GLctx['drawBuffers'] = function(n, bufs) { drawBuffersExt['drawBuffersWEBGL'](n, bufs); };
  1707. }
  1708. }
  1709. GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query");
  1710. // These are the 'safe' feature-enabling extensions that don't add any performance impact related to e.g. debugging, and
  1711. // should be enabled by default so that client GLES2/GL code will not need to go through extra hoops to get its stuff working.
  1712. // As new extensions are ratified at http://www.khronos.org/registry/webgl/extensions/ , feel free to add your new extensions
  1713. // here, as long as they don't produce a performance impact for users that might not be using those extensions.
  1714. // E.g. debugging-related extensions should probably be off by default.
  1715. var automaticallyEnabledExtensions = [ "OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives",
  1716. "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture",
  1717. "OES_element_index_uint", "EXT_texture_filter_anisotropic", "ANGLE_instanced_arrays",
  1718. "OES_texture_float_linear", "OES_texture_half_float_linear", "WEBGL_compressed_texture_atc",
  1719. "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
  1720. "EXT_frag_depth", "EXT_sRGB", "WEBGL_draw_buffers", "WEBGL_shared_resources",
  1721. "EXT_shader_texture_lod", "EXT_color_buffer_float"];
  1722. function shouldEnableAutomatically(extension) {
  1723. var ret = false;
  1724. automaticallyEnabledExtensions.forEach(function(include) {
  1725. if (ext.indexOf(include) != -1) {
  1726. ret = true;
  1727. }
  1728. });
  1729. return ret;
  1730. }
  1731. var exts = GLctx.getSupportedExtensions();
  1732. if (exts && exts.length > 0) {
  1733. GLctx.getSupportedExtensions().forEach(function(ext) {
  1734. if (automaticallyEnabledExtensions.indexOf(ext) != -1) {
  1735. GLctx.getExtension(ext); // Calling .getExtension enables that extension permanently, no need to store the return value to be enabled.
  1736. }
  1737. });
  1738. }
  1739. },populateUniformTable:function (program) {
  1740. var p = GL.programs[program];
  1741. GL.programInfos[program] = {
  1742. uniforms: {},
  1743. maxUniformLength: 0, // This is eagerly computed below, since we already enumerate all uniforms anyway.
  1744. maxAttributeLength: -1, // This is lazily computed and cached, computed when/if first asked, "-1" meaning not computed yet.
  1745. maxUniformBlockNameLength: -1 // Lazily computed as well
  1746. };
  1747. var ptable = GL.programInfos[program];
  1748. var utable = ptable.uniforms;
  1749. // A program's uniform table maps the string name of an uniform to an integer location of that uniform.
  1750. // The global GL.uniforms map maps integer locations to WebGLUniformLocations.
  1751. var numUniforms = GLctx.getProgramParameter(p, GLctx.ACTIVE_UNIFORMS);
  1752. for (var i = 0; i < numUniforms; ++i) {
  1753. var u = GLctx.getActiveUniform(p, i);
  1754. var name = u.name;
  1755. ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length+1);
  1756. // Strip off any trailing array specifier we might have got, e.g. "[0]".
  1757. if (name.indexOf(']', name.length-1) !== -1) {
  1758. var ls = name.lastIndexOf('[');
  1759. name = name.slice(0, ls);
  1760. }
  1761. // Optimize memory usage slightly: If we have an array of uniforms, e.g. 'vec3 colors[3];', then
  1762. // only store the string 'colors' in utable, and 'colors[0]', 'colors[1]' and 'colors[2]' will be parsed as 'colors'+i.
  1763. // Note that for the GL.uniforms table, we still need to fetch the all WebGLUniformLocations for all the indices.
  1764. var loc = GLctx.getUniformLocation(p, name);
  1765. if (loc != null)
  1766. {
  1767. var id = GL.getNewId(GL.uniforms);
  1768. utable[name] = [u.size, id];
  1769. GL.uniforms[id] = loc;
  1770. for (var j = 1; j < u.size; ++j) {
  1771. var n = name + '['+j+']';
  1772. loc = GLctx.getUniformLocation(p, n);
  1773. id = GL.getNewId(GL.uniforms);
  1774. GL.uniforms[id] = loc;
  1775. }
  1776. }
  1777. }
  1778. }};function _emscripten_glIsRenderbuffer(renderbuffer) {
  1779. var rb = GL.renderbuffers[renderbuffer];
  1780. if (!rb) return 0;
  1781. return GLctx.isRenderbuffer(rb);
  1782. }
  1783. function _emscripten_glStencilMaskSeparate(x0, x1) { GLctx['stencilMaskSeparate'](x0, x1) }
  1784. function _emscripten_get_now() { abort() }
  1785. function _emscripten_set_main_loop_timing(mode, value) {
  1786. Browser.mainLoop.timingMode = mode;
  1787. Browser.mainLoop.timingValue = value;
  1788. if (!Browser.mainLoop.func) {
  1789. console.error('emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.');
  1790. return 1; // Return non-zero on failure, can't set timing mode when there is no main loop.
  1791. }
  1792. if (mode == 0 /*EM_TIMING_SETTIMEOUT*/) {
  1793. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() {
  1794. var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now())|0;
  1795. setTimeout(Browser.mainLoop.runner, timeUntilNextTick); // doing this each time means that on exception, we stop
  1796. };
  1797. Browser.mainLoop.method = 'timeout';
  1798. } else if (mode == 1 /*EM_TIMING_RAF*/) {
  1799. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() {
  1800. Browser.requestAnimationFrame(Browser.mainLoop.runner);
  1801. };
  1802. Browser.mainLoop.method = 'rAF';
  1803. } else if (mode == 2 /*EM_TIMING_SETIMMEDIATE*/) {
  1804. if (!window['setImmediate']) {
  1805. // Emulate setImmediate. (note: not a complete polyfill, we don't emulate clearImmediate() to keep code size to minimum, since not needed)
  1806. var setImmediates = [];
  1807. var emscriptenMainLoopMessageId = 'setimmediate';
  1808. function Browser_setImmediate_messageHandler(event) {
  1809. if (event.source === window && event.data === emscriptenMainLoopMessageId) {
  1810. event.stopPropagation();
  1811. setImmediates.shift()();
  1812. }
  1813. }
  1814. window.addEventListener("message", Browser_setImmediate_messageHandler, true);
  1815. window['setImmediate'] = function Browser_emulated_setImmediate(func) {
  1816. setImmediates.push(func);
  1817. if (ENVIRONMENT_IS_WORKER) {
  1818. if (Module['setImmediates'] === undefined) Module['setImmediates'] = [];
  1819. Module['setImmediates'].push(func);
  1820. window.postMessage({target: emscriptenMainLoopMessageId}); // In --proxy-to-worker, route the message via proxyClient.js
  1821. } else window.postMessage(emscriptenMainLoopMessageId, "*"); // On the main thread, can just send the message to itself.
  1822. }
  1823. }
  1824. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() {
  1825. window['setImmediate'](Browser.mainLoop.runner);
  1826. };
  1827. Browser.mainLoop.method = 'immediate';
  1828. }
  1829. return 0;
  1830. }function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) {
  1831. Module['noExitRuntime'] = true;
  1832. assert(!Browser.mainLoop.func, 'emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.');
  1833. Browser.mainLoop.func = func;
  1834. Browser.mainLoop.arg = arg;
  1835. var browserIterationFunc;
  1836. if (typeof arg !== 'undefined') {
  1837. browserIterationFunc = function() {
  1838. Module['dynCall_vi'](func, arg);
  1839. };
  1840. } else {
  1841. browserIterationFunc = function() {
  1842. Module['dynCall_v'](func);
  1843. };
  1844. }
  1845. var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop;
  1846. Browser.mainLoop.runner = function Browser_mainLoop_runner() {
  1847. if (ABORT) return;
  1848. if (Browser.mainLoop.queue.length > 0) {
  1849. var start = Date.now();
  1850. var blocker = Browser.mainLoop.queue.shift();
  1851. blocker.func(blocker.arg);
  1852. if (Browser.mainLoop.remainingBlockers) {
  1853. var remaining = Browser.mainLoop.remainingBlockers;
  1854. var next = remaining%1 == 0 ? remaining-1 : Math.floor(remaining);
  1855. if (blocker.counted) {
  1856. Browser.mainLoop.remainingBlockers = next;
  1857. } else {
  1858. // not counted, but move the progress along a tiny bit
  1859. next = next + 0.5; // do not steal all the next one's progress
  1860. Browser.mainLoop.remainingBlockers = (8*remaining + next)/9;
  1861. }
  1862. }
  1863. console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + ' ms'); //, left: ' + Browser.mainLoop.remainingBlockers);
  1864. Browser.mainLoop.updateStatus();
  1865. // catches pause/resume main loop from blocker execution
  1866. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1867. setTimeout(Browser.mainLoop.runner, 0);
  1868. return;
  1869. }
  1870. // catch pauses from non-main loop sources
  1871. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1872. // Implement very basic swap interval control
  1873. Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0;
  1874. if (Browser.mainLoop.timingMode == 1/*EM_TIMING_RAF*/ && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) {
  1875. // Not the scheduled time to render this frame - skip.
  1876. Browser.mainLoop.scheduler();
  1877. return;
  1878. } else if (Browser.mainLoop.timingMode == 0/*EM_TIMING_SETTIMEOUT*/) {
  1879. Browser.mainLoop.tickStartTime = _emscripten_get_now();
  1880. }
  1881. // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize
  1882. // VBO double-buffering and reduce GPU stalls.
  1883. if (Browser.mainLoop.method === 'timeout' && Module.ctx) {
  1884. Module.printErr('Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!');
  1885. Browser.mainLoop.method = ''; // just warn once per call to set main loop
  1886. }
  1887. Browser.mainLoop.runIter(browserIterationFunc);
  1888. checkStackCookie();
  1889. // catch pauses from the main loop itself
  1890. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1891. // Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
  1892. // to queue the newest produced audio samples.
  1893. // TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
  1894. // do not need to be hardcoded into this function, but can be more generic.
  1895. if (typeof SDL === 'object' && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData();
  1896. Browser.mainLoop.scheduler();
  1897. }
  1898. if (!noSetTiming) {
  1899. if (fps && fps > 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 1000.0 / fps);
  1900. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, 1); // Do rAF by rendering each frame (no decimating)
  1901. Browser.mainLoop.scheduler();
  1902. }
  1903. if (simulateInfiniteLoop) {
  1904. throw 'SimulateInfiniteLoop';
  1905. }
  1906. }var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function () {
  1907. Browser.mainLoop.scheduler = null;
  1908. Browser.mainLoop.currentlyRunningMainloop++; // Incrementing this signals the previous main loop that it's now become old, and it must return.
  1909. },resume:function () {
  1910. Browser.mainLoop.currentlyRunningMainloop++;
  1911. var timingMode = Browser.mainLoop.timingMode;
  1912. var timingValue = Browser.mainLoop.timingValue;
  1913. var func = Browser.mainLoop.func;
  1914. Browser.mainLoop.func = null;
  1915. _emscripten_set_main_loop(func, 0, false, Browser.mainLoop.arg, true /* do not set timing and call scheduler, we will do it on the next lines */);
  1916. _emscripten_set_main_loop_timing(timingMode, timingValue);
  1917. Browser.mainLoop.scheduler();
  1918. },updateStatus:function () {
  1919. if (Module['setStatus']) {
  1920. var message = Module['statusMessage'] || 'Please wait...';
  1921. var remaining = Browser.mainLoop.remainingBlockers;
  1922. var expected = Browser.mainLoop.expectedBlockers;
  1923. if (remaining) {
  1924. if (remaining < expected) {
  1925. Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
  1926. } else {
  1927. Module['setStatus'](message);
  1928. }
  1929. } else {
  1930. Module['setStatus']('');
  1931. }
  1932. }
  1933. },runIter:function (func) {
  1934. if (ABORT) return;
  1935. if (Module['preMainLoop']) {
  1936. var preRet = Module['preMainLoop']();
  1937. if (preRet === false) {
  1938. return; // |return false| skips a frame
  1939. }
  1940. }
  1941. try {
  1942. func();
  1943. } catch (e) {
  1944. if (e instanceof ExitStatus) {
  1945. return;
  1946. } else {
  1947. if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
  1948. throw e;
  1949. }
  1950. }
  1951. if (Module['postMainLoop']) Module['postMainLoop']();
  1952. }},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
  1953. if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
  1954. if (Browser.initted) return;
  1955. Browser.initted = true;
  1956. try {
  1957. new Blob();
  1958. Browser.hasBlobConstructor = true;
  1959. } catch(e) {
  1960. Browser.hasBlobConstructor = false;
  1961. console.log("warning: no blob constructor, cannot create blobs with mimetypes");
  1962. }
  1963. Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
  1964. Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
  1965. if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
  1966. console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
  1967. Module.noImageDecoding = true;
  1968. }
  1969. // Support for plugins that can process preloaded files. You can add more of these to
  1970. // your app by creating and appending to Module.preloadPlugins.
  1971. //
  1972. // Each plugin is asked if it can handle a file based on the file's name. If it can,
  1973. // it is given the file's raw data. When it is done, it calls a callback with the file's
  1974. // (possibly modified) data. For example, a plugin might decompress a file, or it
  1975. // might create some side data structure for use later (like an Image element, etc.).
  1976. var imagePlugin = {};
  1977. imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
  1978. return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
  1979. };
  1980. imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
  1981. var b = null;
  1982. if (Browser.hasBlobConstructor) {
  1983. try {
  1984. b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  1985. if (b.size !== byteArray.length) { // Safari bug #118630
  1986. // Safari's Blob can only take an ArrayBuffer
  1987. b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
  1988. }
  1989. } catch(e) {
  1990. Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
  1991. }
  1992. }
  1993. if (!b) {
  1994. var bb = new Browser.BlobBuilder();
  1995. bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
  1996. b = bb.getBlob();
  1997. }
  1998. var url = Browser.URLObject.createObjectURL(b);
  1999. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2000. var img = new Image();
  2001. img.onload = function img_onload() {
  2002. assert(img.complete, 'Image ' + name + ' could not be decoded');
  2003. var canvas = document.createElement('canvas');
  2004. canvas.width = img.width;
  2005. canvas.height = img.height;
  2006. var ctx = canvas.getContext('2d');
  2007. ctx.drawImage(img, 0, 0);
  2008. Module["preloadedImages"][name] = canvas;
  2009. Browser.URLObject.revokeObjectURL(url);
  2010. if (onload) onload(byteArray);
  2011. };
  2012. img.onerror = function img_onerror(event) {
  2013. console.log('Image ' + url + ' could not be decoded');
  2014. if (onerror) onerror();
  2015. };
  2016. img.src = url;
  2017. };
  2018. Module['preloadPlugins'].push(imagePlugin);
  2019. var audioPlugin = {};
  2020. audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
  2021. return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
  2022. };
  2023. audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
  2024. var done = false;
  2025. function finish(audio) {
  2026. if (done) return;
  2027. done = true;
  2028. Module["preloadedAudios"][name] = audio;
  2029. if (onload) onload(byteArray);
  2030. }
  2031. function fail() {
  2032. if (done) return;
  2033. done = true;
  2034. Module["preloadedAudios"][name] = new Audio(); // empty shim
  2035. if (onerror) onerror();
  2036. }
  2037. if (Browser.hasBlobConstructor) {
  2038. try {
  2039. var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2040. } catch(e) {
  2041. return fail();
  2042. }
  2043. var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
  2044. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2045. var audio = new Audio();
  2046. audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
  2047. audio.onerror = function audio_onerror(event) {
  2048. if (done) return;
  2049. console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
  2050. function encode64(data) {
  2051. var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  2052. var PAD = '=';
  2053. var ret = '';
  2054. var leftchar = 0;
  2055. var leftbits = 0;
  2056. for (var i = 0; i < data.length; i++) {
  2057. leftchar = (leftchar << 8) | data[i];
  2058. leftbits += 8;
  2059. while (leftbits >= 6) {
  2060. var curr = (leftchar >> (leftbits-6)) & 0x3f;
  2061. leftbits -= 6;
  2062. ret += BASE[curr];
  2063. }
  2064. }
  2065. if (leftbits == 2) {
  2066. ret += BASE[(leftchar&3) << 4];
  2067. ret += PAD + PAD;
  2068. } else if (leftbits == 4) {
  2069. ret += BASE[(leftchar&0xf) << 2];
  2070. ret += PAD;
  2071. }
  2072. return ret;
  2073. }
  2074. audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
  2075. finish(audio); // we don't wait for confirmation this worked - but it's worth trying
  2076. };
  2077. audio.src = url;
  2078. // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
  2079. Browser.safeSetTimeout(function() {
  2080. finish(audio); // try to use it even though it is not necessarily ready to play
  2081. }, 10000);
  2082. } else {
  2083. return fail();
  2084. }
  2085. };
  2086. Module['preloadPlugins'].push(audioPlugin);
  2087. // Canvas event setup
  2088. function pointerLockChange() {
  2089. Browser.pointerLock = document['pointerLockElement'] === Module['canvas'] ||
  2090. document['mozPointerLockElement'] === Module['canvas'] ||
  2091. document['webkitPointerLockElement'] === Module['canvas'] ||
  2092. document['msPointerLockElement'] === Module['canvas'];
  2093. }
  2094. var canvas = Module['canvas'];
  2095. if (canvas) {
  2096. // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
  2097. // Module['forcedAspectRatio'] = 4 / 3;
  2098. canvas.requestPointerLock = canvas['requestPointerLock'] ||
  2099. canvas['mozRequestPointerLock'] ||
  2100. canvas['webkitRequestPointerLock'] ||
  2101. canvas['msRequestPointerLock'] ||
  2102. function(){};
  2103. canvas.exitPointerLock = document['exitPointerLock'] ||
  2104. document['mozExitPointerLock'] ||
  2105. document['webkitExitPointerLock'] ||
  2106. document['msExitPointerLock'] ||
  2107. function(){}; // no-op if function does not exist
  2108. canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
  2109. document.addEventListener('pointerlockchange', pointerLockChange, false);
  2110. document.addEventListener('mozpointerlockchange', pointerLockChange, false);
  2111. document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
  2112. document.addEventListener('mspointerlockchange', pointerLockChange, false);
  2113. if (Module['elementPointerLock']) {
  2114. canvas.addEventListener("click", function(ev) {
  2115. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2116. Module['canvas'].requestPointerLock();
  2117. ev.preventDefault();
  2118. }
  2119. }, false);
  2120. }
  2121. }
  2122. },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
  2123. if (useWebGL && Module.ctx && canvas == Module.canvas) return Module.ctx; // no need to recreate GL context if it's already been created for this canvas.
  2124. var ctx;
  2125. var contextHandle;
  2126. if (useWebGL) {
  2127. // For GLES2/desktop GL compatibility, adjust a few defaults to be different to WebGL defaults, so that they align better with the desktop defaults.
  2128. var contextAttributes = {
  2129. antialias: false,
  2130. alpha: false
  2131. };
  2132. if (webGLContextAttributes) {
  2133. for (var attribute in webGLContextAttributes) {
  2134. contextAttributes[attribute] = webGLContextAttributes[attribute];
  2135. }
  2136. }
  2137. contextHandle = GL.createContext(canvas, contextAttributes);
  2138. if (contextHandle) {
  2139. ctx = GL.getContext(contextHandle).GLctx;
  2140. }
  2141. } else {
  2142. ctx = canvas.getContext('2d');
  2143. }
  2144. if (!ctx) return null;
  2145. if (setInModule) {
  2146. if (!useWebGL) assert(typeof GLctx === 'undefined', 'cannot set in module if GLctx is used, but we are a non-GL context that would replace it');
  2147. Module.ctx = ctx;
  2148. if (useWebGL) GL.makeContextCurrent(contextHandle);
  2149. Module.useWebGL = useWebGL;
  2150. Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
  2151. Browser.init();
  2152. }
  2153. return ctx;
  2154. },destroyContext:function (canvas, useWebGL, setInModule) {},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function (lockPointer, resizeCanvas, vrDevice) {
  2155. Browser.lockPointer = lockPointer;
  2156. Browser.resizeCanvas = resizeCanvas;
  2157. Browser.vrDevice = vrDevice;
  2158. if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
  2159. if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
  2160. if (typeof Browser.vrDevice === 'undefined') Browser.vrDevice = null;
  2161. var canvas = Module['canvas'];
  2162. function fullscreenChange() {
  2163. Browser.isFullscreen = false;
  2164. var canvasContainer = canvas.parentNode;
  2165. if ((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2166. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2167. document['webkitCurrentFullScreenElement']) === canvasContainer) {
  2168. canvas.exitFullscreen = document['exitFullscreen'] ||
  2169. document['cancelFullScreen'] ||
  2170. document['mozCancelFullScreen'] ||
  2171. document['msExitFullscreen'] ||
  2172. document['webkitCancelFullScreen'] ||
  2173. function() {};
  2174. canvas.exitFullscreen = canvas.exitFullscreen.bind(document);
  2175. if (Browser.lockPointer) canvas.requestPointerLock();
  2176. Browser.isFullscreen = true;
  2177. if (Browser.resizeCanvas) Browser.setFullscreenCanvasSize();
  2178. } else {
  2179. // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
  2180. canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
  2181. canvasContainer.parentNode.removeChild(canvasContainer);
  2182. if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
  2183. }
  2184. if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullscreen);
  2185. if (Module['onFullscreen']) Module['onFullscreen'](Browser.isFullscreen);
  2186. Browser.updateCanvasDimensions(canvas);
  2187. }
  2188. if (!Browser.fullscreenHandlersInstalled) {
  2189. Browser.fullscreenHandlersInstalled = true;
  2190. document.addEventListener('fullscreenchange', fullscreenChange, false);
  2191. document.addEventListener('mozfullscreenchange', fullscreenChange, false);
  2192. document.addEventListener('webkitfullscreenchange', fullscreenChange, false);
  2193. document.addEventListener('MSFullscreenChange', fullscreenChange, false);
  2194. }
  2195. // create a new parent to ensure the canvas has no siblings. this allows browsers to optimize full screen performance when its parent is the full screen root
  2196. var canvasContainer = document.createElement("div");
  2197. canvas.parentNode.insertBefore(canvasContainer, canvas);
  2198. canvasContainer.appendChild(canvas);
  2199. // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
  2200. canvasContainer.requestFullscreen = canvasContainer['requestFullscreen'] ||
  2201. canvasContainer['mozRequestFullScreen'] ||
  2202. canvasContainer['msRequestFullscreen'] ||
  2203. (canvasContainer['webkitRequestFullscreen'] ? function() { canvasContainer['webkitRequestFullscreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null) ||
  2204. (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
  2205. if (vrDevice) {
  2206. canvasContainer.requestFullscreen({ vrDisplay: vrDevice });
  2207. } else {
  2208. canvasContainer.requestFullscreen();
  2209. }
  2210. },requestFullScreen:function (lockPointer, resizeCanvas, vrDevice) {
  2211. Module.printErr('Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead.');
  2212. Browser.requestFullScreen = function(lockPointer, resizeCanvas, vrDevice) {
  2213. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2214. }
  2215. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2216. },nextRAF:0,fakeRequestAnimationFrame:function (func) {
  2217. // try to keep 60fps between calls to here
  2218. var now = Date.now();
  2219. if (Browser.nextRAF === 0) {
  2220. Browser.nextRAF = now + 1000/60;
  2221. } else {
  2222. while (now + 2 >= Browser.nextRAF) { // fudge a little, to avoid timer jitter causing us to do lots of delay:0
  2223. Browser.nextRAF += 1000/60;
  2224. }
  2225. }
  2226. var delay = Math.max(Browser.nextRAF - now, 0);
  2227. setTimeout(func, delay);
  2228. },requestAnimationFrame:function requestAnimationFrame(func) {
  2229. if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
  2230. Browser.fakeRequestAnimationFrame(func);
  2231. } else {
  2232. if (!window.requestAnimationFrame) {
  2233. window.requestAnimationFrame = window['requestAnimationFrame'] ||
  2234. window['mozRequestAnimationFrame'] ||
  2235. window['webkitRequestAnimationFrame'] ||
  2236. window['msRequestAnimationFrame'] ||
  2237. window['oRequestAnimationFrame'] ||
  2238. Browser.fakeRequestAnimationFrame;
  2239. }
  2240. window.requestAnimationFrame(func);
  2241. }
  2242. },safeCallback:function (func) {
  2243. return function() {
  2244. if (!ABORT) return func.apply(null, arguments);
  2245. };
  2246. },allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function () {
  2247. Browser.allowAsyncCallbacks = false;
  2248. },resumeAsyncCallbacks:function () { // marks future callbacks as ok to execute, and synchronously runs any remaining ones right now
  2249. Browser.allowAsyncCallbacks = true;
  2250. if (Browser.queuedAsyncCallbacks.length > 0) {
  2251. var callbacks = Browser.queuedAsyncCallbacks;
  2252. Browser.queuedAsyncCallbacks = [];
  2253. callbacks.forEach(function(func) {
  2254. func();
  2255. });
  2256. }
  2257. },safeRequestAnimationFrame:function (func) {
  2258. return Browser.requestAnimationFrame(function() {
  2259. if (ABORT) return;
  2260. if (Browser.allowAsyncCallbacks) {
  2261. func();
  2262. } else {
  2263. Browser.queuedAsyncCallbacks.push(func);
  2264. }
  2265. });
  2266. },safeSetTimeout:function (func, timeout) {
  2267. Module['noExitRuntime'] = true;
  2268. return setTimeout(function() {
  2269. if (ABORT) return;
  2270. if (Browser.allowAsyncCallbacks) {
  2271. func();
  2272. } else {
  2273. Browser.queuedAsyncCallbacks.push(func);
  2274. }
  2275. }, timeout);
  2276. },safeSetInterval:function (func, timeout) {
  2277. Module['noExitRuntime'] = true;
  2278. return setInterval(function() {
  2279. if (ABORT) return;
  2280. if (Browser.allowAsyncCallbacks) {
  2281. func();
  2282. } // drop it on the floor otherwise, next interval will kick in
  2283. }, timeout);
  2284. },getMimetype:function (name) {
  2285. return {
  2286. 'jpg': 'image/jpeg',
  2287. 'jpeg': 'image/jpeg',
  2288. 'png': 'image/png',
  2289. 'bmp': 'image/bmp',
  2290. 'ogg': 'audio/ogg',
  2291. 'wav': 'audio/wav',
  2292. 'mp3': 'audio/mpeg'
  2293. }[name.substr(name.lastIndexOf('.')+1)];
  2294. },getUserMedia:function (func) {
  2295. if(!window.getUserMedia) {
  2296. window.getUserMedia = navigator['getUserMedia'] ||
  2297. navigator['mozGetUserMedia'];
  2298. }
  2299. window.getUserMedia(func);
  2300. },getMovementX:function (event) {
  2301. return event['movementX'] ||
  2302. event['mozMovementX'] ||
  2303. event['webkitMovementX'] ||
  2304. 0;
  2305. },getMovementY:function (event) {
  2306. return event['movementY'] ||
  2307. event['mozMovementY'] ||
  2308. event['webkitMovementY'] ||
  2309. 0;
  2310. },getMouseWheelDelta:function (event) {
  2311. var delta = 0;
  2312. switch (event.type) {
  2313. case 'DOMMouseScroll':
  2314. delta = event.detail;
  2315. break;
  2316. case 'mousewheel':
  2317. delta = event.wheelDelta;
  2318. break;
  2319. case 'wheel':
  2320. delta = event['deltaY'];
  2321. break;
  2322. default:
  2323. throw 'unrecognized mouse wheel event: ' + event.type;
  2324. }
  2325. return delta;
  2326. },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
  2327. if (Browser.pointerLock) {
  2328. // When the pointer is locked, calculate the coordinates
  2329. // based on the movement of the mouse.
  2330. // Workaround for Firefox bug 764498
  2331. if (event.type != 'mousemove' &&
  2332. ('mozMovementX' in event)) {
  2333. Browser.mouseMovementX = Browser.mouseMovementY = 0;
  2334. } else {
  2335. Browser.mouseMovementX = Browser.getMovementX(event);
  2336. Browser.mouseMovementY = Browser.getMovementY(event);
  2337. }
  2338. // check if SDL is available
  2339. if (typeof SDL != "undefined") {
  2340. Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
  2341. Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
  2342. } else {
  2343. // just add the mouse delta to the current absolut mouse position
  2344. // FIXME: ideally this should be clamped against the canvas size and zero
  2345. Browser.mouseX += Browser.mouseMovementX;
  2346. Browser.mouseY += Browser.mouseMovementY;
  2347. }
  2348. } else {
  2349. // Otherwise, calculate the movement based on the changes
  2350. // in the coordinates.
  2351. var rect = Module["canvas"].getBoundingClientRect();
  2352. var cw = Module["canvas"].width;
  2353. var ch = Module["canvas"].height;
  2354. // Neither .scrollX or .pageXOffset are defined in a spec, but
  2355. // we prefer .scrollX because it is currently in a spec draft.
  2356. // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
  2357. var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
  2358. var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
  2359. // If this assert lands, it's likely because the browser doesn't support scrollX or pageXOffset
  2360. // and we have no viable fallback.
  2361. assert((typeof scrollX !== 'undefined') && (typeof scrollY !== 'undefined'), 'Unable to retrieve scroll position, mouse positions likely broken.');
  2362. if (event.type === 'touchstart' || event.type === 'touchend' || event.type === 'touchmove') {
  2363. var touch = event.touch;
  2364. if (touch === undefined) {
  2365. return; // the "touch" property is only defined in SDL
  2366. }
  2367. var adjustedX = touch.pageX - (scrollX + rect.left);
  2368. var adjustedY = touch.pageY - (scrollY + rect.top);
  2369. adjustedX = adjustedX * (cw / rect.width);
  2370. adjustedY = adjustedY * (ch / rect.height);
  2371. var coords = { x: adjustedX, y: adjustedY };
  2372. if (event.type === 'touchstart') {
  2373. Browser.lastTouches[touch.identifier] = coords;
  2374. Browser.touches[touch.identifier] = coords;
  2375. } else if (event.type === 'touchend' || event.type === 'touchmove') {
  2376. var last = Browser.touches[touch.identifier];
  2377. if (!last) last = coords;
  2378. Browser.lastTouches[touch.identifier] = last;
  2379. Browser.touches[touch.identifier] = coords;
  2380. }
  2381. return;
  2382. }
  2383. var x = event.pageX - (scrollX + rect.left);
  2384. var y = event.pageY - (scrollY + rect.top);
  2385. // the canvas might be CSS-scaled compared to its backbuffer;
  2386. // SDL-using content will want mouse coordinates in terms
  2387. // of backbuffer units.
  2388. x = x * (cw / rect.width);
  2389. y = y * (ch / rect.height);
  2390. Browser.mouseMovementX = x - Browser.mouseX;
  2391. Browser.mouseMovementY = y - Browser.mouseY;
  2392. Browser.mouseX = x;
  2393. Browser.mouseY = y;
  2394. }
  2395. },asyncLoad:function (url, onload, onerror, noRunDep) {
  2396. var dep = !noRunDep ? getUniqueRunDependency('al ' + url) : '';
  2397. Module['readAsync'](url, function(arrayBuffer) {
  2398. assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
  2399. onload(new Uint8Array(arrayBuffer));
  2400. if (dep) removeRunDependency(dep);
  2401. }, function(event) {
  2402. if (onerror) {
  2403. onerror();
  2404. } else {
  2405. throw 'Loading data file "' + url + '" failed.';
  2406. }
  2407. });
  2408. if (dep) addRunDependency(dep);
  2409. },resizeListeners:[],updateResizeListeners:function () {
  2410. var canvas = Module['canvas'];
  2411. Browser.resizeListeners.forEach(function(listener) {
  2412. listener(canvas.width, canvas.height);
  2413. });
  2414. },setCanvasSize:function (width, height, noUpdates) {
  2415. var canvas = Module['canvas'];
  2416. Browser.updateCanvasDimensions(canvas, width, height);
  2417. if (!noUpdates) Browser.updateResizeListeners();
  2418. },windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function () {
  2419. // check if SDL is available
  2420. if (typeof SDL != "undefined") {
  2421. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2422. flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
  2423. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2424. }
  2425. Browser.updateResizeListeners();
  2426. },setWindowedCanvasSize:function () {
  2427. // check if SDL is available
  2428. if (typeof SDL != "undefined") {
  2429. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2430. flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
  2431. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2432. }
  2433. Browser.updateResizeListeners();
  2434. },updateCanvasDimensions:function (canvas, wNative, hNative) {
  2435. if (wNative && hNative) {
  2436. canvas.widthNative = wNative;
  2437. canvas.heightNative = hNative;
  2438. } else {
  2439. wNative = canvas.widthNative;
  2440. hNative = canvas.heightNative;
  2441. }
  2442. var w = wNative;
  2443. var h = hNative;
  2444. if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
  2445. if (w/h < Module['forcedAspectRatio']) {
  2446. w = Math.round(h * Module['forcedAspectRatio']);
  2447. } else {
  2448. h = Math.round(w / Module['forcedAspectRatio']);
  2449. }
  2450. }
  2451. if (((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2452. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2453. document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
  2454. var factor = Math.min(screen.width / w, screen.height / h);
  2455. w = Math.round(w * factor);
  2456. h = Math.round(h * factor);
  2457. }
  2458. if (Browser.resizeCanvas) {
  2459. if (canvas.width != w) canvas.width = w;
  2460. if (canvas.height != h) canvas.height = h;
  2461. if (typeof canvas.style != 'undefined') {
  2462. canvas.style.removeProperty( "width");
  2463. canvas.style.removeProperty("height");
  2464. }
  2465. } else {
  2466. if (canvas.width != wNative) canvas.width = wNative;
  2467. if (canvas.height != hNative) canvas.height = hNative;
  2468. if (typeof canvas.style != 'undefined') {
  2469. if (w != wNative || h != hNative) {
  2470. canvas.style.setProperty( "width", w + "px", "important");
  2471. canvas.style.setProperty("height", h + "px", "important");
  2472. } else {
  2473. canvas.style.removeProperty( "width");
  2474. canvas.style.removeProperty("height");
  2475. }
  2476. }
  2477. }
  2478. },wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function () {
  2479. var handle = Browser.nextWgetRequestHandle;
  2480. Browser.nextWgetRequestHandle++;
  2481. return handle;
  2482. }};var GLFW={Window:function (id, width, height, title, monitor, share) {
  2483. this.id = id;
  2484. this.x = 0;
  2485. this.y = 0;
  2486. this.fullscreen = false; // Used to determine if app in fullscreen mode
  2487. this.storedX = 0; // Used to store X before fullscreen
  2488. this.storedY = 0; // Used to store Y before fullscreen
  2489. this.width = width;
  2490. this.height = height;
  2491. this.storedWidth = width; // Used to store width before fullscreen
  2492. this.storedHeight = height; // Used to store height before fullscreen
  2493. this.title = title;
  2494. this.monitor = monitor;
  2495. this.share = share;
  2496. this.attributes = GLFW.hints;
  2497. this.inputModes = {
  2498. 0x00033001:0x00034001, // GLFW_CURSOR (GLFW_CURSOR_NORMAL)
  2499. 0x00033002:0, // GLFW_STICKY_KEYS
  2500. 0x00033003:0, // GLFW_STICKY_MOUSE_BUTTONS
  2501. };
  2502. this.buttons = 0;
  2503. this.keys = new Array();
  2504. this.shouldClose = 0;
  2505. this.title = null;
  2506. this.windowPosFunc = null; // GLFWwindowposfun
  2507. this.windowSizeFunc = null; // GLFWwindowsizefun
  2508. this.windowCloseFunc = null; // GLFWwindowclosefun
  2509. this.windowRefreshFunc = null; // GLFWwindowrefreshfun
  2510. this.windowFocusFunc = null; // GLFWwindowfocusfun
  2511. this.windowIconifyFunc = null; // GLFWwindowiconifyfun
  2512. this.framebufferSizeFunc = null; // GLFWframebuffersizefun
  2513. this.mouseButtonFunc = null; // GLFWmousebuttonfun
  2514. this.cursorPosFunc = null; // GLFWcursorposfun
  2515. this.cursorEnterFunc = null; // GLFWcursorenterfun
  2516. this.scrollFunc = null; // GLFWscrollfun
  2517. this.keyFunc = null; // GLFWkeyfun
  2518. this.charFunc = null; // GLFWcharfun
  2519. this.userptr = null;
  2520. },WindowFromId:function (id) {
  2521. if (id <= 0 || !GLFW.windows) return null;
  2522. return GLFW.windows[id - 1];
  2523. },errorFunc:null,monitorFunc:null,active:null,windows:null,monitors:null,monitorString:null,versionString:null,initialTime:null,extensions:null,hints:null,defaultHints:{131073:0,131074:0,131075:1,131076:1,131077:1,135169:8,135170:8,135171:8,135172:8,135173:24,135174:8,135175:0,135176:0,135177:0,135178:0,135179:0,135180:0,135181:0,135182:0,135183:0,139265:196609,139266:1,139267:0,139268:0,139269:0,139270:0,139271:0,139272:0},DOMToGLFWKeyCode:function (keycode) {
  2524. switch (keycode) {
  2525. // these keycodes are only defined for GLFW3, assume they are the same for GLFW2
  2526. case 0x20:return 32; // DOM_VK_SPACE -> GLFW_KEY_SPACE
  2527. case 0xDE:return 39; // DOM_VK_QUOTE -> GLFW_KEY_APOSTROPHE
  2528. case 0xBC:return 44; // DOM_VK_COMMA -> GLFW_KEY_COMMA
  2529. case 0xAD:return 45; // DOM_VK_HYPHEN_MINUS -> GLFW_KEY_MINUS
  2530. case 0xBD:return 45; // DOM_VK_MINUS -> GLFW_KEY_MINUS
  2531. case 0xBE:return 46; // DOM_VK_PERIOD -> GLFW_KEY_PERIOD
  2532. case 0xBF:return 47; // DOM_VK_SLASH -> GLFW_KEY_SLASH
  2533. case 0x30:return 48; // DOM_VK_0 -> GLFW_KEY_0
  2534. case 0x31:return 49; // DOM_VK_1 -> GLFW_KEY_1
  2535. case 0x32:return 50; // DOM_VK_2 -> GLFW_KEY_2
  2536. case 0x33:return 51; // DOM_VK_3 -> GLFW_KEY_3
  2537. case 0x34:return 52; // DOM_VK_4 -> GLFW_KEY_4
  2538. case 0x35:return 53; // DOM_VK_5 -> GLFW_KEY_5
  2539. case 0x36:return 54; // DOM_VK_6 -> GLFW_KEY_6
  2540. case 0x37:return 55; // DOM_VK_7 -> GLFW_KEY_7
  2541. case 0x38:return 56; // DOM_VK_8 -> GLFW_KEY_8
  2542. case 0x39:return 57; // DOM_VK_9 -> GLFW_KEY_9
  2543. case 0x3B:return 59; // DOM_VK_SEMICOLON -> GLFW_KEY_SEMICOLON
  2544. case 0x3D:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2545. case 0xBB:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2546. case 0x41:return 65; // DOM_VK_A -> GLFW_KEY_A
  2547. case 0x42:return 66; // DOM_VK_B -> GLFW_KEY_B
  2548. case 0x43:return 67; // DOM_VK_C -> GLFW_KEY_C
  2549. case 0x44:return 68; // DOM_VK_D -> GLFW_KEY_D
  2550. case 0x45:return 69; // DOM_VK_E -> GLFW_KEY_E
  2551. case 0x46:return 70; // DOM_VK_F -> GLFW_KEY_F
  2552. case 0x47:return 71; // DOM_VK_G -> GLFW_KEY_G
  2553. case 0x48:return 72; // DOM_VK_H -> GLFW_KEY_H
  2554. case 0x49:return 73; // DOM_VK_I -> GLFW_KEY_I
  2555. case 0x4A:return 74; // DOM_VK_J -> GLFW_KEY_J
  2556. case 0x4B:return 75; // DOM_VK_K -> GLFW_KEY_K
  2557. case 0x4C:return 76; // DOM_VK_L -> GLFW_KEY_L
  2558. case 0x4D:return 77; // DOM_VK_M -> GLFW_KEY_M
  2559. case 0x4E:return 78; // DOM_VK_N -> GLFW_KEY_N
  2560. case 0x4F:return 79; // DOM_VK_O -> GLFW_KEY_O
  2561. case 0x50:return 80; // DOM_VK_P -> GLFW_KEY_P
  2562. case 0x51:return 81; // DOM_VK_Q -> GLFW_KEY_Q
  2563. case 0x52:return 82; // DOM_VK_R -> GLFW_KEY_R
  2564. case 0x53:return 83; // DOM_VK_S -> GLFW_KEY_S
  2565. case 0x54:return 84; // DOM_VK_T -> GLFW_KEY_T
  2566. case 0x55:return 85; // DOM_VK_U -> GLFW_KEY_U
  2567. case 0x56:return 86; // DOM_VK_V -> GLFW_KEY_V
  2568. case 0x57:return 87; // DOM_VK_W -> GLFW_KEY_W
  2569. case 0x58:return 88; // DOM_VK_X -> GLFW_KEY_X
  2570. case 0x59:return 89; // DOM_VK_Y -> GLFW_KEY_Y
  2571. case 0x5a:return 90; // DOM_VK_Z -> GLFW_KEY_Z
  2572. case 0xDB:return 91; // DOM_VK_OPEN_BRACKET -> GLFW_KEY_LEFT_BRACKET
  2573. case 0xDC:return 92; // DOM_VK_BACKSLASH -> GLFW_KEY_BACKSLASH
  2574. case 0xDD:return 93; // DOM_VK_CLOSE_BRACKET -> GLFW_KEY_RIGHT_BRACKET
  2575. case 0xC0:return 94; // DOM_VK_BACK_QUOTE -> GLFW_KEY_GRAVE_ACCENT
  2576. case 0x1B:return 256; // DOM_VK_ESCAPE -> GLFW_KEY_ESCAPE
  2577. case 0x0D:return 257; // DOM_VK_RETURN -> GLFW_KEY_ENTER
  2578. case 0x09:return 258; // DOM_VK_TAB -> GLFW_KEY_TAB
  2579. case 0x08:return 259; // DOM_VK_BACK -> GLFW_KEY_BACKSPACE
  2580. case 0x2D:return 260; // DOM_VK_INSERT -> GLFW_KEY_INSERT
  2581. case 0x2E:return 261; // DOM_VK_DELETE -> GLFW_KEY_DELETE
  2582. case 0x27:return 262; // DOM_VK_RIGHT -> GLFW_KEY_RIGHT
  2583. case 0x25:return 263; // DOM_VK_LEFT -> GLFW_KEY_LEFT
  2584. case 0x28:return 264; // DOM_VK_DOWN -> GLFW_KEY_DOWN
  2585. case 0x26:return 265; // DOM_VK_UP -> GLFW_KEY_UP
  2586. case 0x21:return 266; // DOM_VK_PAGE_UP -> GLFW_KEY_PAGE_UP
  2587. case 0x22:return 267; // DOM_VK_PAGE_DOWN -> GLFW_KEY_PAGE_DOWN
  2588. case 0x24:return 268; // DOM_VK_HOME -> GLFW_KEY_HOME
  2589. case 0x23:return 269; // DOM_VK_END -> GLFW_KEY_END
  2590. case 0x14:return 280; // DOM_VK_CAPS_LOCK -> GLFW_KEY_CAPS_LOCK
  2591. case 0x91:return 281; // DOM_VK_SCROLL_LOCK -> GLFW_KEY_SCROLL_LOCK
  2592. case 0x90:return 282; // DOM_VK_NUM_LOCK -> GLFW_KEY_NUM_LOCK
  2593. case 0x2C:return 283; // DOM_VK_SNAPSHOT -> GLFW_KEY_PRINT_SCREEN
  2594. case 0x13:return 284; // DOM_VK_PAUSE -> GLFW_KEY_PAUSE
  2595. case 0x70:return 290; // DOM_VK_F1 -> GLFW_KEY_F1
  2596. case 0x71:return 291; // DOM_VK_F2 -> GLFW_KEY_F2
  2597. case 0x72:return 292; // DOM_VK_F3 -> GLFW_KEY_F3
  2598. case 0x73:return 293; // DOM_VK_F4 -> GLFW_KEY_F4
  2599. case 0x74:return 294; // DOM_VK_F5 -> GLFW_KEY_F5
  2600. case 0x75:return 295; // DOM_VK_F6 -> GLFW_KEY_F6
  2601. case 0x76:return 296; // DOM_VK_F7 -> GLFW_KEY_F7
  2602. case 0x77:return 297; // DOM_VK_F8 -> GLFW_KEY_F8
  2603. case 0x78:return 298; // DOM_VK_F9 -> GLFW_KEY_F9
  2604. case 0x79:return 299; // DOM_VK_F10 -> GLFW_KEY_F10
  2605. case 0x7A:return 300; // DOM_VK_F11 -> GLFW_KEY_F11
  2606. case 0x7B:return 301; // DOM_VK_F12 -> GLFW_KEY_F12
  2607. case 0x7C:return 302; // DOM_VK_F13 -> GLFW_KEY_F13
  2608. case 0x7D:return 303; // DOM_VK_F14 -> GLFW_KEY_F14
  2609. case 0x7E:return 304; // DOM_VK_F15 -> GLFW_KEY_F15
  2610. case 0x7F:return 305; // DOM_VK_F16 -> GLFW_KEY_F16
  2611. case 0x80:return 306; // DOM_VK_F17 -> GLFW_KEY_F17
  2612. case 0x81:return 307; // DOM_VK_F18 -> GLFW_KEY_F18
  2613. case 0x82:return 308; // DOM_VK_F19 -> GLFW_KEY_F19
  2614. case 0x83:return 309; // DOM_VK_F20 -> GLFW_KEY_F20
  2615. case 0x84:return 310; // DOM_VK_F21 -> GLFW_KEY_F21
  2616. case 0x85:return 311; // DOM_VK_F22 -> GLFW_KEY_F22
  2617. case 0x86:return 312; // DOM_VK_F23 -> GLFW_KEY_F23
  2618. case 0x87:return 313; // DOM_VK_F24 -> GLFW_KEY_F24
  2619. case 0x88:return 314; // 0x88 (not used?) -> GLFW_KEY_F25
  2620. case 0x60:return 320; // DOM_VK_NUMPAD0 -> GLFW_KEY_KP_0
  2621. case 0x61:return 321; // DOM_VK_NUMPAD1 -> GLFW_KEY_KP_1
  2622. case 0x62:return 322; // DOM_VK_NUMPAD2 -> GLFW_KEY_KP_2
  2623. case 0x63:return 323; // DOM_VK_NUMPAD3 -> GLFW_KEY_KP_3
  2624. case 0x64:return 324; // DOM_VK_NUMPAD4 -> GLFW_KEY_KP_4
  2625. case 0x65:return 325; // DOM_VK_NUMPAD5 -> GLFW_KEY_KP_5
  2626. case 0x66:return 326; // DOM_VK_NUMPAD6 -> GLFW_KEY_KP_6
  2627. case 0x67:return 327; // DOM_VK_NUMPAD7 -> GLFW_KEY_KP_7
  2628. case 0x68:return 328; // DOM_VK_NUMPAD8 -> GLFW_KEY_KP_8
  2629. case 0x69:return 329; // DOM_VK_NUMPAD9 -> GLFW_KEY_KP_9
  2630. case 0x6E:return 330; // DOM_VK_DECIMAL -> GLFW_KEY_KP_DECIMAL
  2631. case 0x6F:return 331; // DOM_VK_DIVIDE -> GLFW_KEY_KP_DIVIDE
  2632. case 0x6A:return 332; // DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
  2633. case 0x6D:return 333; // DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT
  2634. case 0x6B:return 334; // DOM_VK_ADD -> GLFW_KEY_KP_ADD
  2635. // case 0x0D:return 335; // DOM_VK_RETURN -> GLFW_KEY_KP_ENTER (DOM_KEY_LOCATION_RIGHT)
  2636. // case 0x61:return 336; // DOM_VK_EQUALS -> GLFW_KEY_KP_EQUAL (DOM_KEY_LOCATION_RIGHT)
  2637. case 0x10:return 340; // DOM_VK_SHIFT -> GLFW_KEY_LEFT_SHIFT
  2638. case 0x11:return 341; // DOM_VK_CONTROL -> GLFW_KEY_LEFT_CONTROL
  2639. case 0x12:return 342; // DOM_VK_ALT -> GLFW_KEY_LEFT_ALT
  2640. case 0x5B:return 343; // DOM_VK_WIN -> GLFW_KEY_LEFT_SUPER
  2641. // case 0x10:return 344; // DOM_VK_SHIFT -> GLFW_KEY_RIGHT_SHIFT (DOM_KEY_LOCATION_RIGHT)
  2642. // case 0x11:return 345; // DOM_VK_CONTROL -> GLFW_KEY_RIGHT_CONTROL (DOM_KEY_LOCATION_RIGHT)
  2643. // case 0x12:return 346; // DOM_VK_ALT -> GLFW_KEY_RIGHT_ALT (DOM_KEY_LOCATION_RIGHT)
  2644. // case 0x5B:return 347; // DOM_VK_WIN -> GLFW_KEY_RIGHT_SUPER (DOM_KEY_LOCATION_RIGHT)
  2645. case 0x5D:return 348; // DOM_VK_CONTEXT_MENU -> GLFW_KEY_MENU
  2646. // XXX: GLFW_KEY_WORLD_1, GLFW_KEY_WORLD_2 what are these?
  2647. default:return -1; // GLFW_KEY_UNKNOWN
  2648. };
  2649. },getModBits:function (win) {
  2650. var mod = 0;
  2651. if (win.keys[340]) mod |= 0x0001; // GLFW_MOD_SHIFT
  2652. if (win.keys[341]) mod |= 0x0002; // GLFW_MOD_CONTROL
  2653. if (win.keys[342]) mod |= 0x0004; // GLFW_MOD_ALT
  2654. if (win.keys[343]) mod |= 0x0008; // GLFW_MOD_SUPER
  2655. return mod;
  2656. },onKeyPress:function (event) {
  2657. if (!GLFW.active || !GLFW.active.charFunc) return;
  2658. // correct unicode charCode is only available with onKeyPress event
  2659. var charCode = event.charCode;
  2660. if (charCode == 0 || (charCode >= 0x00 && charCode <= 0x1F)) return;
  2661. Module['dynCall_vii'](GLFW.active.charFunc, GLFW.active.id, charCode);
  2662. },onKeyChanged:function (event, status) {
  2663. if (!GLFW.active) return;
  2664. var key = GLFW.DOMToGLFWKeyCode(event.keyCode);
  2665. if (key == -1) return;
  2666. var repeat = status && GLFW.active.keys[key];
  2667. GLFW.active.keys[key] = status;
  2668. if (!GLFW.active.keyFunc) return;
  2669. if (repeat) status = 2; // GLFW_REPEAT
  2670. Module['dynCall_viiiii'](GLFW.active.keyFunc, GLFW.active.id, key, event.keyCode, status, GLFW.getModBits(GLFW.active));
  2671. },onKeydown:function (event) {
  2672. GLFW.onKeyChanged(event, 1); // GLFW_PRESS or GLFW_REPEAT
  2673. // This logic comes directly from the sdl implementation. We cannot
  2674. // call preventDefault on all keydown events otherwise onKeyPress will
  2675. // not get called
  2676. if (event.keyCode === 8 /* backspace */ || event.keyCode === 9 /* tab */) {
  2677. event.preventDefault();
  2678. }
  2679. },onKeyup:function (event) {
  2680. GLFW.onKeyChanged(event, 0); // GLFW_RELEASE
  2681. },onMousemove:function (event) {
  2682. if (!GLFW.active) return;
  2683. Browser.calculateMouseEvent(event);
  2684. if (event.target != Module["canvas"] || !GLFW.active.cursorPosFunc) return;
  2685. Module['dynCall_vidd'](GLFW.active.cursorPosFunc, GLFW.active.id, Browser.mouseX, Browser.mouseY);
  2686. },DOMToGLFWMouseButton:function (event) {
  2687. // DOM and glfw have different button codes.
  2688. // See http://www.w3schools.com/jsref/event_button.asp.
  2689. var eventButton = event['button'];
  2690. if (eventButton > 0) {
  2691. if (eventButton == 1) {
  2692. eventButton = 2;
  2693. } else {
  2694. eventButton = 1;
  2695. }
  2696. }
  2697. return eventButton;
  2698. },onMouseenter:function (event) {
  2699. if (!GLFW.active) return;
  2700. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2701. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 1);
  2702. },onMouseleave:function (event) {
  2703. if (!GLFW.active) return;
  2704. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2705. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 0);
  2706. },onMouseButtonChanged:function (event, status) {
  2707. if (!GLFW.active) return;
  2708. Browser.calculateMouseEvent(event);
  2709. if (event.target != Module["canvas"]) return;
  2710. eventButton = GLFW.DOMToGLFWMouseButton(event);
  2711. if (status == 1) { // GLFW_PRESS
  2712. GLFW.active.buttons |= (1 << eventButton);
  2713. try {
  2714. event.target.setCapture();
  2715. } catch (e) {}
  2716. } else { // GLFW_RELEASE
  2717. GLFW.active.buttons &= ~(1 << eventButton);
  2718. }
  2719. if (!GLFW.active.mouseButtonFunc) return;
  2720. Module['dynCall_viiii'](GLFW.active.mouseButtonFunc, GLFW.active.id, eventButton, status, GLFW.getModBits(GLFW.active));
  2721. },onMouseButtonDown:function (event) {
  2722. if (!GLFW.active) return;
  2723. GLFW.onMouseButtonChanged(event, 1); // GLFW_PRESS
  2724. },onMouseButtonUp:function (event) {
  2725. if (!GLFW.active) return;
  2726. GLFW.onMouseButtonChanged(event, 0); // GLFW_RELEASE
  2727. },onMouseWheel:function (event) {
  2728. // Note the minus sign that flips browser wheel direction (positive direction scrolls page down) to native wheel direction (positive direction is mouse wheel up)
  2729. var delta = -Browser.getMouseWheelDelta(event);
  2730. delta = (delta == 0) ? 0 : (delta > 0 ? Math.max(delta, 1) : Math.min(delta, -1)); // Quantize to integer so that minimum scroll is at least +/- 1.
  2731. GLFW.wheelPos += delta;
  2732. if (!GLFW.active || !GLFW.active.scrollFunc || event.target != Module['canvas']) return;
  2733. var sx = 0;
  2734. var sy = 0;
  2735. if (event.type == 'mousewheel') {
  2736. sx = event.wheelDeltaX;
  2737. sy = event.wheelDeltaY;
  2738. } else {
  2739. sx = event.deltaX;
  2740. sy = event.deltaY;
  2741. }
  2742. Module['dynCall_vidd'](GLFW.active.scrollFunc, GLFW.active.id, sx, sy);
  2743. event.preventDefault();
  2744. },onCanvasResize:function (width, height) {
  2745. if (!GLFW.active) return;
  2746. var resizeNeeded = true;
  2747. // If the client is requestiong fullscreen mode
  2748. if (document["fullscreen"] || document["fullScreen"] || document["mozFullScreen"] || document["webkitIsFullScreen"]) {
  2749. GLFW.active.storedX = GLFW.active.x;
  2750. GLFW.active.storedY = GLFW.active.y;
  2751. GLFW.active.storedWidth = GLFW.active.width;
  2752. GLFW.active.storedHeight = GLFW.active.height;
  2753. GLFW.active.x = GLFW.active.y = 0;
  2754. GLFW.active.width = screen.width;
  2755. GLFW.active.height = screen.height;
  2756. GLFW.active.fullscreen = true;
  2757. // If the client is reverting from fullscreen mode
  2758. } else if (GLFW.active.fullscreen == true) {
  2759. GLFW.active.x = GLFW.active.storedX;
  2760. GLFW.active.y = GLFW.active.storedY;
  2761. GLFW.active.width = GLFW.active.storedWidth;
  2762. GLFW.active.height = GLFW.active.storedHeight;
  2763. GLFW.active.fullscreen = false;
  2764. // If the width/height values do not match current active window sizes
  2765. } else if (GLFW.active.width != width || GLFW.active.height != height) {
  2766. GLFW.active.width = width;
  2767. GLFW.active.height = height;
  2768. } else {
  2769. resizeNeeded = false;
  2770. }
  2771. // If any of the above conditions were true, we need to resize the canvas
  2772. if (resizeNeeded) {
  2773. // resets the canvas size to counter the aspect preservation of Browser.updateCanvasDimensions
  2774. Browser.setCanvasSize(GLFW.active.width, GLFW.active.height, true);
  2775. // TODO: Client dimensions (clientWidth/clientHeight) vs pixel dimensions (width/height) of
  2776. // the canvas should drive window and framebuffer size respectfully.
  2777. GLFW.onWindowSizeChanged();
  2778. GLFW.onFramebufferSizeChanged();
  2779. }
  2780. },onWindowSizeChanged:function () {
  2781. if (!GLFW.active) return;
  2782. if (!GLFW.active.windowSizeFunc) return;
  2783. Module['dynCall_viii'](GLFW.active.windowSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2784. },onFramebufferSizeChanged:function () {
  2785. if (!GLFW.active) return;
  2786. if (!GLFW.active.framebufferSizeFunc) return;
  2787. Module['dynCall_viii'](GLFW.active.framebufferSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2788. },requestFullscreen:function () {
  2789. var RFS = Module["canvas"]['requestFullscreen'] ||
  2790. Module["canvas"]['mozRequestFullScreen'] ||
  2791. Module["canvas"]['webkitRequestFullScreen'] ||
  2792. (function() {});
  2793. RFS.apply(Module["canvas"], []);
  2794. },requestFullScreen:function () {
  2795. Module.printErr('GLFW.requestFullScreen() is deprecated. Please call GLFW.requestFullscreen instead.');
  2796. GLFW.requestFullScreen = function() {
  2797. return GLFW.requestFullscreen();
  2798. }
  2799. return GLFW.requestFullscreen();
  2800. },exitFullscreen:function () {
  2801. var CFS = document['exitFullscreen'] ||
  2802. document['cancelFullScreen'] ||
  2803. document['mozCancelFullScreen'] ||
  2804. document['webkitCancelFullScreen'] ||
  2805. (function() {});
  2806. CFS.apply(document, []);
  2807. },cancelFullScreen:function () {
  2808. Module.printErr('GLFW.cancelFullScreen() is deprecated. Please call GLFW.exitFullscreen instead.');
  2809. GLFW.cancelFullScreen = function() {
  2810. return GLFW.exitFullscreen();
  2811. }
  2812. return GLFW.exitFullscreen();
  2813. },getTime:function () {
  2814. return _emscripten_get_now() / 1000;
  2815. },setWindowTitle:function (winid, title) {
  2816. var win = GLFW.WindowFromId(winid);
  2817. if (!win) return;
  2818. win.title = Pointer_stringify(title);
  2819. if (GLFW.active.id == win.id) {
  2820. document.title = win.title;
  2821. }
  2822. },setKeyCallback:function (winid, cbfun) {
  2823. var win = GLFW.WindowFromId(winid);
  2824. if (!win) return;
  2825. win.keyFunc = cbfun;
  2826. },setCharCallback:function (winid, cbfun) {
  2827. var win = GLFW.WindowFromId(winid);
  2828. if (!win) return;
  2829. win.charFunc = cbfun;
  2830. },setMouseButtonCallback:function (winid, cbfun) {
  2831. var win = GLFW.WindowFromId(winid);
  2832. if (!win) return;
  2833. win.mouseButtonFunc = cbfun;
  2834. },setCursorPosCallback:function (winid, cbfun) {
  2835. var win = GLFW.WindowFromId(winid);
  2836. if (!win) return;
  2837. win.cursorPosFunc = cbfun;
  2838. },setScrollCallback:function (winid, cbfun) {
  2839. var win = GLFW.WindowFromId(winid);
  2840. if (!win) return;
  2841. win.scrollFunc = cbfun;
  2842. },setWindowSizeCallback:function (winid, cbfun) {
  2843. var win = GLFW.WindowFromId(winid);
  2844. if (!win) return;
  2845. win.windowSizeFunc = cbfun;
  2846. },setWindowCloseCallback:function (winid, cbfun) {
  2847. var win = GLFW.WindowFromId(winid);
  2848. if (!win) return;
  2849. win.windowCloseFunc = cbfun;
  2850. },setWindowRefreshCallback:function (winid, cbfun) {
  2851. var win = GLFW.WindowFromId(winid);
  2852. if (!win) return;
  2853. win.windowRefreshFunc = cbfun;
  2854. },onClickRequestPointerLock:function (e) {
  2855. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2856. Module['canvas'].requestPointerLock();
  2857. e.preventDefault();
  2858. }
  2859. },setInputMode:function (winid, mode, value) {
  2860. var win = GLFW.WindowFromId(winid);
  2861. if (!win) return;
  2862. switch(mode) {
  2863. case 0x00033001: { // GLFW_CURSOR
  2864. switch(value) {
  2865. case 0x00034001: { // GLFW_CURSOR_NORMAL
  2866. win.inputModes[mode] = value;
  2867. Module['canvas'].removeEventListener('click', GLFW.onClickRequestPointerLock, true);
  2868. Module['canvas'].exitPointerLock();
  2869. break;
  2870. }
  2871. case 0x00034002: { // GLFW_CURSOR_HIDDEN
  2872. console.log("glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.");
  2873. break;
  2874. }
  2875. case 0x00034003: { // GLFW_CURSOR_DISABLED
  2876. win.inputModes[mode] = value;
  2877. Module['canvas'].addEventListener('click', GLFW.onClickRequestPointerLock, true);
  2878. Module['canvas'].requestPointerLock();
  2879. break;
  2880. }
  2881. default: {
  2882. console.log("glfwSetInputMode called with unknown value parameter value: " + value + ".");
  2883. break;
  2884. }
  2885. }
  2886. break;
  2887. }
  2888. case 0x00033002: { // GLFW_STICKY_KEYS
  2889. console.log("glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.");
  2890. break;
  2891. }
  2892. case 0x00033003: { // GLFW_STICKY_MOUSE_BUTTONS
  2893. console.log("glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.");
  2894. break;
  2895. }
  2896. default: {
  2897. console.log("glfwSetInputMode called with unknown mode parameter value: " + mode + ".");
  2898. break;
  2899. }
  2900. }
  2901. },getKey:function (winid, key) {
  2902. var win = GLFW.WindowFromId(winid);
  2903. if (!win) return 0;
  2904. return win.keys[key];
  2905. },getMouseButton:function (winid, button) {
  2906. var win = GLFW.WindowFromId(winid);
  2907. if (!win) return 0;
  2908. return (win.buttons & (1 << button)) > 0;
  2909. },getCursorPos:function (winid, x, y) {
  2910. setValue(x, Browser.mouseX, 'double');
  2911. setValue(y, Browser.mouseY, 'double');
  2912. },getMousePos:function (winid, x, y) {
  2913. setValue(x, Browser.mouseX, 'i32');
  2914. setValue(y, Browser.mouseY, 'i32');
  2915. },setCursorPos:function (winid, x, y) {
  2916. },getWindowPos:function (winid, x, y) {
  2917. var wx = 0;
  2918. var wy = 0;
  2919. var win = GLFW.WindowFromId(winid);
  2920. if (win) {
  2921. wx = win.x;
  2922. wy = win.y;
  2923. }
  2924. setValue(x, wx, 'i32');
  2925. setValue(y, wy, 'i32');
  2926. },setWindowPos:function (winid, x, y) {
  2927. var win = GLFW.WindowFromId(winid);
  2928. if (!win) return;
  2929. win.x = x;
  2930. win.y = y;
  2931. },getWindowSize:function (winid, width, height) {
  2932. var ww = 0;
  2933. var wh = 0;
  2934. var win = GLFW.WindowFromId(winid);
  2935. if (win) {
  2936. ww = win.width;
  2937. wh = win.height;
  2938. }
  2939. setValue(width, ww, 'i32');
  2940. setValue(height, wh, 'i32');
  2941. },setWindowSize:function (winid, width, height) {
  2942. var win = GLFW.WindowFromId(winid);
  2943. if (!win) return;
  2944. if (GLFW.active.id == win.id) {
  2945. if (width == screen.width && height == screen.height) {
  2946. GLFW.requestFullscreen();
  2947. } else {
  2948. GLFW.exitFullscreen();
  2949. Browser.setCanvasSize(width, height);
  2950. win.width = width;
  2951. win.height = height;
  2952. }
  2953. }
  2954. if (!win.windowSizeFunc) return;
  2955. Module['dynCall_viii'](win.windowSizeFunc, win.id, width, height);
  2956. },createWindow:function (width, height, title, monitor, share) {
  2957. var i, id;
  2958. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] !== null; i++);
  2959. if (i > 0) throw "glfwCreateWindow only supports one window at time currently";
  2960. // id for window
  2961. id = i + 1;
  2962. // not valid
  2963. if (width <= 0 || height <= 0) return 0;
  2964. if (monitor) {
  2965. GLFW.requestFullscreen();
  2966. } else {
  2967. Browser.setCanvasSize(width, height);
  2968. }
  2969. // Create context when there are no existing alive windows
  2970. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] == null; i++);
  2971. if (i == GLFW.windows.length) {
  2972. var contextAttributes = {
  2973. antialias: (GLFW.hints[0x0002100D] > 1), // GLFW_SAMPLES
  2974. depth: (GLFW.hints[0x00021005] > 0), // GLFW_DEPTH_BITS
  2975. stencil: (GLFW.hints[0x00021006] > 0), // GLFW_STENCIL_BITS
  2976. alpha: (GLFW.hints[0x00021004] > 0) // GLFW_ALPHA_BITS
  2977. }
  2978. Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
  2979. }
  2980. // If context creation failed, do not return a valid window
  2981. if (!Module.ctx) return 0;
  2982. // Get non alive id
  2983. var win = new GLFW.Window(id, width, height, title, monitor, share);
  2984. // Set window to array
  2985. if (id - 1 == GLFW.windows.length) {
  2986. GLFW.windows.push(win);
  2987. } else {
  2988. GLFW.windows[id - 1] = win;
  2989. }
  2990. GLFW.active = win;
  2991. return win.id;
  2992. },destroyWindow:function (winid) {
  2993. var win = GLFW.WindowFromId(winid);
  2994. if (!win) return;
  2995. if (win.windowCloseFunc)
  2996. Module['dynCall_vi'](win.windowCloseFunc, win.id);
  2997. GLFW.windows[win.id - 1] = null;
  2998. if (GLFW.active.id == win.id)
  2999. GLFW.active = null;
  3000. // Destroy context when no alive windows
  3001. for (var i = 0; i < GLFW.windows.length; i++)
  3002. if (GLFW.windows[i] !== null) return;
  3003. Module.ctx = Browser.destroyContext(Module['canvas'], true, true);
  3004. },swapBuffers:function (winid) {
  3005. },GLFW2ParamToGLFW3Param:function (param) {
  3006. table = {
  3007. 0x00030001:0, // GLFW_MOUSE_CURSOR
  3008. 0x00030002:0, // GLFW_STICKY_KEYS
  3009. 0x00030003:0, // GLFW_STICKY_MOUSE_BUTTONS
  3010. 0x00030004:0, // GLFW_SYSTEM_KEYS
  3011. 0x00030005:0, // GLFW_KEY_REPEAT
  3012. 0x00030006:0, // GLFW_AUTO_POLL_EVENTS
  3013. 0x00020001:0, // GLFW_OPENED
  3014. 0x00020002:0, // GLFW_ACTIVE
  3015. 0x00020003:0, // GLFW_ICONIFIED
  3016. 0x00020004:0, // GLFW_ACCELERATED
  3017. 0x00020005:0x00021001, // GLFW_RED_BITS
  3018. 0x00020006:0x00021002, // GLFW_GREEN_BITS
  3019. 0x00020007:0x00021003, // GLFW_BLUE_BITS
  3020. 0x00020008:0x00021004, // GLFW_ALPHA_BITS
  3021. 0x00020009:0x00021005, // GLFW_DEPTH_BITS
  3022. 0x0002000A:0x00021006, // GLFW_STENCIL_BITS
  3023. 0x0002000B:0x0002100F, // GLFW_REFRESH_RATE
  3024. 0x0002000C:0x00021007, // GLFW_ACCUM_RED_BITS
  3025. 0x0002000D:0x00021008, // GLFW_ACCUM_GREEN_BITS
  3026. 0x0002000E:0x00021009, // GLFW_ACCUM_BLUE_BITS
  3027. 0x0002000F:0x0002100A, // GLFW_ACCUM_ALPHA_BITS
  3028. 0x00020010:0x0002100B, // GLFW_AUX_BUFFERS
  3029. 0x00020011:0x0002100C, // GLFW_STEREO
  3030. 0x00020012:0, // GLFW_WINDOW_NO_RESIZE
  3031. 0x00020013:0x0002100D, // GLFW_FSAA_SAMPLES
  3032. 0x00020014:0x00022002, // GLFW_OPENGL_VERSION_MAJOR
  3033. 0x00020015:0x00022003, // GLFW_OPENGL_VERSION_MINOR
  3034. 0x00020016:0x00022006, // GLFW_OPENGL_FORWARD_COMPAT
  3035. 0x00020017:0x00022007, // GLFW_OPENGL_DEBUG_CONTEXT
  3036. 0x00020018:0x00022008, // GLFW_OPENGL_PROFILE
  3037. };
  3038. return table[param];
  3039. }};function _glfwGetVideoModes(monitor, count) {
  3040. setValue(count, 0, 'i32');
  3041. return 0;
  3042. }
  3043. function _glLinkProgram(program) {
  3044. GLctx.linkProgram(GL.programs[program]);
  3045. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  3046. GL.populateUniformTable(program);
  3047. }
  3048. function _glBindTexture(target, texture) {
  3049. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  3050. }
  3051. function _emscripten_glStencilFunc(x0, x1, x2) { GLctx['stencilFunc'](x0, x1, x2) }
  3052. function _glGetString(name_) {
  3053. if (GL.stringCache[name_]) return GL.stringCache[name_];
  3054. var ret;
  3055. switch(name_) {
  3056. case 0x1F00 /* GL_VENDOR */:
  3057. case 0x1F01 /* GL_RENDERER */:
  3058. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  3059. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  3060. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  3061. break;
  3062. case 0x1F02 /* GL_VERSION */:
  3063. var glVersion = GLctx.getParameter(GLctx.VERSION);
  3064. // return GLES version string corresponding to the version of the WebGL context
  3065. {
  3066. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  3067. }
  3068. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  3069. break;
  3070. case 0x1F03 /* GL_EXTENSIONS */:
  3071. var exts = GLctx.getSupportedExtensions();
  3072. var gl_exts = [];
  3073. for (var i = 0; i < exts.length; ++i) {
  3074. gl_exts.push(exts[i]);
  3075. gl_exts.push("GL_" + exts[i]);
  3076. }
  3077. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  3078. break;
  3079. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  3080. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  3081. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  3082. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  3083. var ver_num = glslVersion.match(ver_re);
  3084. if (ver_num !== null) {
  3085. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  3086. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  3087. }
  3088. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  3089. break;
  3090. default:
  3091. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  3092. return 0;
  3093. }
  3094. GL.stringCache[name_] = ret;
  3095. return ret;
  3096. }
  3097. function _emscripten_glUniform3iv(location, count, value) {
  3098. GLctx.uniform3iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*12)>>2));
  3099. }
  3100. function _emscripten_glShaderSource(shader, count, string, length) {
  3101. var source = GL.getSource(shader, count, string, length);
  3102. GLctx.shaderSource(GL.shaders[shader], source);
  3103. }
  3104. function _emscripten_glReleaseShaderCompiler() {
  3105. // NOP (as allowed by GLES 2.0 spec)
  3106. }
  3107. function _glfwSetScrollCallback(winid, cbfun) {
  3108. GLFW.setScrollCallback(winid, cbfun);
  3109. }
  3110. function _emscripten_glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  3111. function _emscripten_glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  3112. function _glCompileShader(shader) {
  3113. GLctx.compileShader(GL.shaders[shader]);
  3114. }
  3115. var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};
  3116. var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};
  3117. function ___setErrNo(value) {
  3118. if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
  3119. else Module.printErr('failed to set errno from JS');
  3120. return value;
  3121. }
  3122. var PATH={splitPath:function (filename) {
  3123. var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  3124. return splitPathRe.exec(filename).slice(1);
  3125. },normalizeArray:function (parts, allowAboveRoot) {
  3126. // if the path tries to go above the root, `up` ends up > 0
  3127. var up = 0;
  3128. for (var i = parts.length - 1; i >= 0; i--) {
  3129. var last = parts[i];
  3130. if (last === '.') {
  3131. parts.splice(i, 1);
  3132. } else if (last === '..') {
  3133. parts.splice(i, 1);
  3134. up++;
  3135. } else if (up) {
  3136. parts.splice(i, 1);
  3137. up--;
  3138. }
  3139. }
  3140. // if the path is allowed to go above the root, restore leading ..s
  3141. if (allowAboveRoot) {
  3142. for (; up--; up) {
  3143. parts.unshift('..');
  3144. }
  3145. }
  3146. return parts;
  3147. },normalize:function (path) {
  3148. var isAbsolute = path.charAt(0) === '/',
  3149. trailingSlash = path.substr(-1) === '/';
  3150. // Normalize the path
  3151. path = PATH.normalizeArray(path.split('/').filter(function(p) {
  3152. return !!p;
  3153. }), !isAbsolute).join('/');
  3154. if (!path && !isAbsolute) {
  3155. path = '.';
  3156. }
  3157. if (path && trailingSlash) {
  3158. path += '/';
  3159. }
  3160. return (isAbsolute ? '/' : '') + path;
  3161. },dirname:function (path) {
  3162. var result = PATH.splitPath(path),
  3163. root = result[0],
  3164. dir = result[1];
  3165. if (!root && !dir) {
  3166. // No dirname whatsoever
  3167. return '.';
  3168. }
  3169. if (dir) {
  3170. // It has a dirname, strip trailing slash
  3171. dir = dir.substr(0, dir.length - 1);
  3172. }
  3173. return root + dir;
  3174. },basename:function (path) {
  3175. // EMSCRIPTEN return '/'' for '/', not an empty string
  3176. if (path === '/') return '/';
  3177. var lastSlash = path.lastIndexOf('/');
  3178. if (lastSlash === -1) return path;
  3179. return path.substr(lastSlash+1);
  3180. },extname:function (path) {
  3181. return PATH.splitPath(path)[3];
  3182. },join:function () {
  3183. var paths = Array.prototype.slice.call(arguments, 0);
  3184. return PATH.normalize(paths.join('/'));
  3185. },join2:function (l, r) {
  3186. return PATH.normalize(l + '/' + r);
  3187. },resolve:function () {
  3188. var resolvedPath = '',
  3189. resolvedAbsolute = false;
  3190. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  3191. var path = (i >= 0) ? arguments[i] : FS.cwd();
  3192. // Skip empty and invalid entries
  3193. if (typeof path !== 'string') {
  3194. throw new TypeError('Arguments to path.resolve must be strings');
  3195. } else if (!path) {
  3196. return ''; // an invalid portion invalidates the whole thing
  3197. }
  3198. resolvedPath = path + '/' + resolvedPath;
  3199. resolvedAbsolute = path.charAt(0) === '/';
  3200. }
  3201. // At this point the path should be resolved to a full absolute path, but
  3202. // handle relative paths to be safe (might happen when process.cwd() fails)
  3203. resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
  3204. return !!p;
  3205. }), !resolvedAbsolute).join('/');
  3206. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  3207. },relative:function (from, to) {
  3208. from = PATH.resolve(from).substr(1);
  3209. to = PATH.resolve(to).substr(1);
  3210. function trim(arr) {
  3211. var start = 0;
  3212. for (; start < arr.length; start++) {
  3213. if (arr[start] !== '') break;
  3214. }
  3215. var end = arr.length - 1;
  3216. for (; end >= 0; end--) {
  3217. if (arr[end] !== '') break;
  3218. }
  3219. if (start > end) return [];
  3220. return arr.slice(start, end - start + 1);
  3221. }
  3222. var fromParts = trim(from.split('/'));
  3223. var toParts = trim(to.split('/'));
  3224. var length = Math.min(fromParts.length, toParts.length);
  3225. var samePartsLength = length;
  3226. for (var i = 0; i < length; i++) {
  3227. if (fromParts[i] !== toParts[i]) {
  3228. samePartsLength = i;
  3229. break;
  3230. }
  3231. }
  3232. var outputParts = [];
  3233. for (var i = samePartsLength; i < fromParts.length; i++) {
  3234. outputParts.push('..');
  3235. }
  3236. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  3237. return outputParts.join('/');
  3238. }};
  3239. var TTY={ttys:[],init:function () {
  3240. // https://github.com/kripken/emscripten/pull/1555
  3241. // if (ENVIRONMENT_IS_NODE) {
  3242. // // currently, FS.init does not distinguish if process.stdin is a file or TTY
  3243. // // device, it always assumes it's a TTY device. because of this, we're forcing
  3244. // // process.stdin to UTF8 encoding to at least make stdin reading compatible
  3245. // // with text files until FS.init can be refactored.
  3246. // process['stdin']['setEncoding']('utf8');
  3247. // }
  3248. },shutdown:function () {
  3249. // https://github.com/kripken/emscripten/pull/1555
  3250. // if (ENVIRONMENT_IS_NODE) {
  3251. // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
  3252. // // isaacs: because now it's reading from the stream, you've expressed interest in it, so that read() kicks off a _read() which creates a ReadReq operation
  3253. // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
  3254. // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
  3255. // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
  3256. // process['stdin']['pause']();
  3257. // }
  3258. },register:function (dev, ops) {
  3259. TTY.ttys[dev] = { input: [], output: [], ops: ops };
  3260. FS.registerDevice(dev, TTY.stream_ops);
  3261. },stream_ops:{open:function (stream) {
  3262. var tty = TTY.ttys[stream.node.rdev];
  3263. if (!tty) {
  3264. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3265. }
  3266. stream.tty = tty;
  3267. stream.seekable = false;
  3268. },close:function (stream) {
  3269. // flush any pending line data
  3270. stream.tty.ops.flush(stream.tty);
  3271. },flush:function (stream) {
  3272. stream.tty.ops.flush(stream.tty);
  3273. },read:function (stream, buffer, offset, length, pos /* ignored */) {
  3274. if (!stream.tty || !stream.tty.ops.get_char) {
  3275. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3276. }
  3277. var bytesRead = 0;
  3278. for (var i = 0; i < length; i++) {
  3279. var result;
  3280. try {
  3281. result = stream.tty.ops.get_char(stream.tty);
  3282. } catch (e) {
  3283. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3284. }
  3285. if (result === undefined && bytesRead === 0) {
  3286. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  3287. }
  3288. if (result === null || result === undefined) break;
  3289. bytesRead++;
  3290. buffer[offset+i] = result;
  3291. }
  3292. if (bytesRead) {
  3293. stream.node.timestamp = Date.now();
  3294. }
  3295. return bytesRead;
  3296. },write:function (stream, buffer, offset, length, pos) {
  3297. if (!stream.tty || !stream.tty.ops.put_char) {
  3298. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3299. }
  3300. for (var i = 0; i < length; i++) {
  3301. try {
  3302. stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
  3303. } catch (e) {
  3304. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3305. }
  3306. }
  3307. if (length) {
  3308. stream.node.timestamp = Date.now();
  3309. }
  3310. return i;
  3311. }},default_tty_ops:{get_char:function (tty) {
  3312. if (!tty.input.length) {
  3313. var result = null;
  3314. if (ENVIRONMENT_IS_NODE) {
  3315. // we will read data by chunks of BUFSIZE
  3316. var BUFSIZE = 256;
  3317. var buf = new Buffer(BUFSIZE);
  3318. var bytesRead = 0;
  3319. var isPosixPlatform = (process.platform != 'win32'); // Node doesn't offer a direct check, so test by exclusion
  3320. var fd = process.stdin.fd;
  3321. if (isPosixPlatform) {
  3322. // Linux and Mac cannot use process.stdin.fd (which isn't set up as sync)
  3323. var usingDevice = false;
  3324. try {
  3325. fd = fs.openSync('/dev/stdin', 'r');
  3326. usingDevice = true;
  3327. } catch (e) {}
  3328. }
  3329. try {
  3330. bytesRead = fs.readSync(fd, buf, 0, BUFSIZE, null);
  3331. } catch(e) {
  3332. // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes,
  3333. // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0.
  3334. if (e.toString().indexOf('EOF') != -1) bytesRead = 0;
  3335. else throw e;
  3336. }
  3337. if (usingDevice) { fs.closeSync(fd); }
  3338. if (bytesRead > 0) {
  3339. result = buf.slice(0, bytesRead).toString('utf-8');
  3340. } else {
  3341. result = null;
  3342. }
  3343. } else if (typeof window != 'undefined' &&
  3344. typeof window.prompt == 'function') {
  3345. // Browser.
  3346. result = window.prompt('Input: '); // returns null on cancel
  3347. if (result !== null) {
  3348. result += '\n';
  3349. }
  3350. } else if (typeof readline == 'function') {
  3351. // Command line.
  3352. result = readline();
  3353. if (result !== null) {
  3354. result += '\n';
  3355. }
  3356. }
  3357. if (!result) {
  3358. return null;
  3359. }
  3360. tty.input = intArrayFromString(result, true);
  3361. }
  3362. return tty.input.shift();
  3363. },put_char:function (tty, val) {
  3364. if (val === null || val === 10) {
  3365. Module['print'](UTF8ArrayToString(tty.output, 0));
  3366. tty.output = [];
  3367. } else {
  3368. if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle.
  3369. }
  3370. },flush:function (tty) {
  3371. if (tty.output && tty.output.length > 0) {
  3372. Module['print'](UTF8ArrayToString(tty.output, 0));
  3373. tty.output = [];
  3374. }
  3375. }},default_tty1_ops:{put_char:function (tty, val) {
  3376. if (val === null || val === 10) {
  3377. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3378. tty.output = [];
  3379. } else {
  3380. if (val != 0) tty.output.push(val);
  3381. }
  3382. },flush:function (tty) {
  3383. if (tty.output && tty.output.length > 0) {
  3384. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3385. tty.output = [];
  3386. }
  3387. }}};
  3388. var MEMFS={ops_table:null,mount:function (mount) {
  3389. return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
  3390. },createNode:function (parent, name, mode, dev) {
  3391. if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
  3392. // no supported
  3393. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  3394. }
  3395. if (!MEMFS.ops_table) {
  3396. MEMFS.ops_table = {
  3397. dir: {
  3398. node: {
  3399. getattr: MEMFS.node_ops.getattr,
  3400. setattr: MEMFS.node_ops.setattr,
  3401. lookup: MEMFS.node_ops.lookup,
  3402. mknod: MEMFS.node_ops.mknod,
  3403. rename: MEMFS.node_ops.rename,
  3404. unlink: MEMFS.node_ops.unlink,
  3405. rmdir: MEMFS.node_ops.rmdir,
  3406. readdir: MEMFS.node_ops.readdir,
  3407. symlink: MEMFS.node_ops.symlink
  3408. },
  3409. stream: {
  3410. llseek: MEMFS.stream_ops.llseek
  3411. }
  3412. },
  3413. file: {
  3414. node: {
  3415. getattr: MEMFS.node_ops.getattr,
  3416. setattr: MEMFS.node_ops.setattr
  3417. },
  3418. stream: {
  3419. llseek: MEMFS.stream_ops.llseek,
  3420. read: MEMFS.stream_ops.read,
  3421. write: MEMFS.stream_ops.write,
  3422. allocate: MEMFS.stream_ops.allocate,
  3423. mmap: MEMFS.stream_ops.mmap,
  3424. msync: MEMFS.stream_ops.msync
  3425. }
  3426. },
  3427. link: {
  3428. node: {
  3429. getattr: MEMFS.node_ops.getattr,
  3430. setattr: MEMFS.node_ops.setattr,
  3431. readlink: MEMFS.node_ops.readlink
  3432. },
  3433. stream: {}
  3434. },
  3435. chrdev: {
  3436. node: {
  3437. getattr: MEMFS.node_ops.getattr,
  3438. setattr: MEMFS.node_ops.setattr
  3439. },
  3440. stream: FS.chrdev_stream_ops
  3441. }
  3442. };
  3443. }
  3444. var node = FS.createNode(parent, name, mode, dev);
  3445. if (FS.isDir(node.mode)) {
  3446. node.node_ops = MEMFS.ops_table.dir.node;
  3447. node.stream_ops = MEMFS.ops_table.dir.stream;
  3448. node.contents = {};
  3449. } else if (FS.isFile(node.mode)) {
  3450. node.node_ops = MEMFS.ops_table.file.node;
  3451. node.stream_ops = MEMFS.ops_table.file.stream;
  3452. node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
  3453. // When the byte data of the file is populated, this will point to either a typed array, or a normal JS array. Typed arrays are preferred
  3454. // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
  3455. // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
  3456. node.contents = null;
  3457. } else if (FS.isLink(node.mode)) {
  3458. node.node_ops = MEMFS.ops_table.link.node;
  3459. node.stream_ops = MEMFS.ops_table.link.stream;
  3460. } else if (FS.isChrdev(node.mode)) {
  3461. node.node_ops = MEMFS.ops_table.chrdev.node;
  3462. node.stream_ops = MEMFS.ops_table.chrdev.stream;
  3463. }
  3464. node.timestamp = Date.now();
  3465. // add the new node to the parent
  3466. if (parent) {
  3467. parent.contents[name] = node;
  3468. }
  3469. return node;
  3470. },getFileDataAsRegularArray:function (node) {
  3471. if (node.contents && node.contents.subarray) {
  3472. var arr = [];
  3473. for (var i = 0; i < node.usedBytes; ++i) arr.push(node.contents[i]);
  3474. return arr; // Returns a copy of the original data.
  3475. }
  3476. return node.contents; // No-op, the file contents are already in a JS array. Return as-is.
  3477. },getFileDataAsTypedArray:function (node) {
  3478. if (!node.contents) return new Uint8Array;
  3479. if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes.
  3480. return new Uint8Array(node.contents);
  3481. },expandFileStorage:function (node, newCapacity) {
  3482. // If we are asked to expand the size of a file that already exists, revert to using a standard JS array to store the file
  3483. // instead of a typed array. This makes resizing the array more flexible because we can just .push() elements at the back to
  3484. // increase the size.
  3485. if (node.contents && node.contents.subarray && newCapacity > node.contents.length) {
  3486. node.contents = MEMFS.getFileDataAsRegularArray(node);
  3487. node.usedBytes = node.contents.length; // We might be writing to a lazy-loaded file which had overridden this property, so force-reset it.
  3488. }
  3489. if (!node.contents || node.contents.subarray) { // Keep using a typed array if creating a new storage, or if old one was a typed array as well.
  3490. var prevCapacity = node.contents ? node.contents.length : 0;
  3491. if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough.
  3492. // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
  3493. // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
  3494. // avoid overshooting the allocation cap by a very large margin.
  3495. var CAPACITY_DOUBLING_MAX = 1024 * 1024;
  3496. newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) | 0);
  3497. if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding.
  3498. var oldContents = node.contents;
  3499. node.contents = new Uint8Array(newCapacity); // Allocate new storage.
  3500. if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage.
  3501. return;
  3502. }
  3503. // Not using a typed array to back the file storage. Use a standard JS array instead.
  3504. if (!node.contents && newCapacity > 0) node.contents = [];
  3505. while (node.contents.length < newCapacity) node.contents.push(0);
  3506. },resizeFileStorage:function (node, newSize) {
  3507. if (node.usedBytes == newSize) return;
  3508. if (newSize == 0) {
  3509. node.contents = null; // Fully decommit when requesting a resize to zero.
  3510. node.usedBytes = 0;
  3511. return;
  3512. }
  3513. if (!node.contents || node.contents.subarray) { // Resize a typed array if that is being used as the backing store.
  3514. var oldContents = node.contents;
  3515. node.contents = new Uint8Array(new ArrayBuffer(newSize)); // Allocate new storage.
  3516. if (oldContents) {
  3517. node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage.
  3518. }
  3519. node.usedBytes = newSize;
  3520. return;
  3521. }
  3522. // Backing with a JS array.
  3523. if (!node.contents) node.contents = [];
  3524. if (node.contents.length > newSize) node.contents.length = newSize;
  3525. else while (node.contents.length < newSize) node.contents.push(0);
  3526. node.usedBytes = newSize;
  3527. },node_ops:{getattr:function (node) {
  3528. var attr = {};
  3529. // device numbers reuse inode numbers.
  3530. attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
  3531. attr.ino = node.id;
  3532. attr.mode = node.mode;
  3533. attr.nlink = 1;
  3534. attr.uid = 0;
  3535. attr.gid = 0;
  3536. attr.rdev = node.rdev;
  3537. if (FS.isDir(node.mode)) {
  3538. attr.size = 4096;
  3539. } else if (FS.isFile(node.mode)) {
  3540. attr.size = node.usedBytes;
  3541. } else if (FS.isLink(node.mode)) {
  3542. attr.size = node.link.length;
  3543. } else {
  3544. attr.size = 0;
  3545. }
  3546. attr.atime = new Date(node.timestamp);
  3547. attr.mtime = new Date(node.timestamp);
  3548. attr.ctime = new Date(node.timestamp);
  3549. // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
  3550. // but this is not required by the standard.
  3551. attr.blksize = 4096;
  3552. attr.blocks = Math.ceil(attr.size / attr.blksize);
  3553. return attr;
  3554. },setattr:function (node, attr) {
  3555. if (attr.mode !== undefined) {
  3556. node.mode = attr.mode;
  3557. }
  3558. if (attr.timestamp !== undefined) {
  3559. node.timestamp = attr.timestamp;
  3560. }
  3561. if (attr.size !== undefined) {
  3562. MEMFS.resizeFileStorage(node, attr.size);
  3563. }
  3564. },lookup:function (parent, name) {
  3565. throw FS.genericErrors[ERRNO_CODES.ENOENT];
  3566. },mknod:function (parent, name, mode, dev) {
  3567. return MEMFS.createNode(parent, name, mode, dev);
  3568. },rename:function (old_node, new_dir, new_name) {
  3569. // if we're overwriting a directory at new_name, make sure it's empty.
  3570. if (FS.isDir(old_node.mode)) {
  3571. var new_node;
  3572. try {
  3573. new_node = FS.lookupNode(new_dir, new_name);
  3574. } catch (e) {
  3575. }
  3576. if (new_node) {
  3577. for (var i in new_node.contents) {
  3578. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3579. }
  3580. }
  3581. }
  3582. // do the internal rewiring
  3583. delete old_node.parent.contents[old_node.name];
  3584. old_node.name = new_name;
  3585. new_dir.contents[new_name] = old_node;
  3586. old_node.parent = new_dir;
  3587. },unlink:function (parent, name) {
  3588. delete parent.contents[name];
  3589. },rmdir:function (parent, name) {
  3590. var node = FS.lookupNode(parent, name);
  3591. for (var i in node.contents) {
  3592. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3593. }
  3594. delete parent.contents[name];
  3595. },readdir:function (node) {
  3596. var entries = ['.', '..']
  3597. for (var key in node.contents) {
  3598. if (!node.contents.hasOwnProperty(key)) {
  3599. continue;
  3600. }
  3601. entries.push(key);
  3602. }
  3603. return entries;
  3604. },symlink:function (parent, newname, oldpath) {
  3605. var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
  3606. node.link = oldpath;
  3607. return node;
  3608. },readlink:function (node) {
  3609. if (!FS.isLink(node.mode)) {
  3610. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3611. }
  3612. return node.link;
  3613. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  3614. var contents = stream.node.contents;
  3615. if (position >= stream.node.usedBytes) return 0;
  3616. var size = Math.min(stream.node.usedBytes - position, length);
  3617. assert(size >= 0);
  3618. if (size > 8 && contents.subarray) { // non-trivial, and typed array
  3619. buffer.set(contents.subarray(position, position + size), offset);
  3620. } else {
  3621. for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
  3622. }
  3623. return size;
  3624. },write:function (stream, buffer, offset, length, position, canOwn) {
  3625. if (!length) return 0;
  3626. var node = stream.node;
  3627. node.timestamp = Date.now();
  3628. if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array?
  3629. if (canOwn) {
  3630. assert(position === 0, 'canOwn must imply no weird position inside the file');
  3631. node.contents = buffer.subarray(offset, offset + length);
  3632. node.usedBytes = length;
  3633. return length;
  3634. } else if (node.usedBytes === 0 && position === 0) { // If this is a simple first write to an empty file, do a fast set since we don't need to care about old data.
  3635. node.contents = new Uint8Array(buffer.subarray(offset, offset + length));
  3636. node.usedBytes = length;
  3637. return length;
  3638. } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file?
  3639. node.contents.set(buffer.subarray(offset, offset + length), position);
  3640. return length;
  3641. }
  3642. }
  3643. // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
  3644. MEMFS.expandFileStorage(node, position+length);
  3645. if (node.contents.subarray && buffer.subarray) node.contents.set(buffer.subarray(offset, offset + length), position); // Use typed array write if available.
  3646. else {
  3647. for (var i = 0; i < length; i++) {
  3648. node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not.
  3649. }
  3650. }
  3651. node.usedBytes = Math.max(node.usedBytes, position+length);
  3652. return length;
  3653. },llseek:function (stream, offset, whence) {
  3654. var position = offset;
  3655. if (whence === 1) { // SEEK_CUR.
  3656. position += stream.position;
  3657. } else if (whence === 2) { // SEEK_END.
  3658. if (FS.isFile(stream.node.mode)) {
  3659. position += stream.node.usedBytes;
  3660. }
  3661. }
  3662. if (position < 0) {
  3663. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3664. }
  3665. return position;
  3666. },allocate:function (stream, offset, length) {
  3667. MEMFS.expandFileStorage(stream.node, offset + length);
  3668. stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
  3669. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  3670. if (!FS.isFile(stream.node.mode)) {
  3671. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3672. }
  3673. var ptr;
  3674. var allocated;
  3675. var contents = stream.node.contents;
  3676. // Only make a new copy when MAP_PRIVATE is specified.
  3677. if ( !(flags & 2) &&
  3678. (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
  3679. // We can't emulate MAP_SHARED when the file is not backed by the buffer
  3680. // we're mapping to (e.g. the HEAP buffer).
  3681. allocated = false;
  3682. ptr = contents.byteOffset;
  3683. } else {
  3684. // Try to avoid unnecessary slices.
  3685. if (position > 0 || position + length < stream.node.usedBytes) {
  3686. if (contents.subarray) {
  3687. contents = contents.subarray(position, position + length);
  3688. } else {
  3689. contents = Array.prototype.slice.call(contents, position, position + length);
  3690. }
  3691. }
  3692. allocated = true;
  3693. ptr = _malloc(length);
  3694. if (!ptr) {
  3695. throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
  3696. }
  3697. buffer.set(contents, ptr);
  3698. }
  3699. return { ptr: ptr, allocated: allocated };
  3700. },msync:function (stream, buffer, offset, length, mmapFlags) {
  3701. if (!FS.isFile(stream.node.mode)) {
  3702. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3703. }
  3704. if (mmapFlags & 2) {
  3705. // MAP_PRIVATE calls need not to be synced back to underlying fs
  3706. return 0;
  3707. }
  3708. var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false);
  3709. // should we check if bytesWritten and length are the same?
  3710. return 0;
  3711. }}};
  3712. var IDBFS={dbs:{},indexedDB:function () {
  3713. if (typeof indexedDB !== 'undefined') return indexedDB;
  3714. var ret = null;
  3715. if (typeof window === 'object') ret = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  3716. assert(ret, 'IDBFS used, but indexedDB not supported');
  3717. return ret;
  3718. },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
  3719. // reuse all of the core MEMFS functionality
  3720. return MEMFS.mount.apply(null, arguments);
  3721. },syncfs:function (mount, populate, callback) {
  3722. IDBFS.getLocalSet(mount, function(err, local) {
  3723. if (err) return callback(err);
  3724. IDBFS.getRemoteSet(mount, function(err, remote) {
  3725. if (err) return callback(err);
  3726. var src = populate ? remote : local;
  3727. var dst = populate ? local : remote;
  3728. IDBFS.reconcile(src, dst, callback);
  3729. });
  3730. });
  3731. },getDB:function (name, callback) {
  3732. // check the cache first
  3733. var db = IDBFS.dbs[name];
  3734. if (db) {
  3735. return callback(null, db);
  3736. }
  3737. var req;
  3738. try {
  3739. req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
  3740. } catch (e) {
  3741. return callback(e);
  3742. }
  3743. if (!req) {
  3744. return callback("Unable to connect to IndexedDB");
  3745. }
  3746. req.onupgradeneeded = function(e) {
  3747. var db = e.target.result;
  3748. var transaction = e.target.transaction;
  3749. var fileStore;
  3750. if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
  3751. fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3752. } else {
  3753. fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
  3754. }
  3755. if (!fileStore.indexNames.contains('timestamp')) {
  3756. fileStore.createIndex('timestamp', 'timestamp', { unique: false });
  3757. }
  3758. };
  3759. req.onsuccess = function() {
  3760. db = req.result;
  3761. // add to the cache
  3762. IDBFS.dbs[name] = db;
  3763. callback(null, db);
  3764. };
  3765. req.onerror = function(e) {
  3766. callback(this.error);
  3767. e.preventDefault();
  3768. };
  3769. },getLocalSet:function (mount, callback) {
  3770. var entries = {};
  3771. function isRealDir(p) {
  3772. return p !== '.' && p !== '..';
  3773. };
  3774. function toAbsolute(root) {
  3775. return function(p) {
  3776. return PATH.join2(root, p);
  3777. }
  3778. };
  3779. var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
  3780. while (check.length) {
  3781. var path = check.pop();
  3782. var stat;
  3783. try {
  3784. stat = FS.stat(path);
  3785. } catch (e) {
  3786. return callback(e);
  3787. }
  3788. if (FS.isDir(stat.mode)) {
  3789. check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
  3790. }
  3791. entries[path] = { timestamp: stat.mtime };
  3792. }
  3793. return callback(null, { type: 'local', entries: entries });
  3794. },getRemoteSet:function (mount, callback) {
  3795. var entries = {};
  3796. IDBFS.getDB(mount.mountpoint, function(err, db) {
  3797. if (err) return callback(err);
  3798. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
  3799. transaction.onerror = function(e) {
  3800. callback(this.error);
  3801. e.preventDefault();
  3802. };
  3803. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3804. var index = store.index('timestamp');
  3805. index.openKeyCursor().onsuccess = function(event) {
  3806. var cursor = event.target.result;
  3807. if (!cursor) {
  3808. return callback(null, { type: 'remote', db: db, entries: entries });
  3809. }
  3810. entries[cursor.primaryKey] = { timestamp: cursor.key };
  3811. cursor.continue();
  3812. };
  3813. });
  3814. },loadLocalEntry:function (path, callback) {
  3815. var stat, node;
  3816. try {
  3817. var lookup = FS.lookupPath(path);
  3818. node = lookup.node;
  3819. stat = FS.stat(path);
  3820. } catch (e) {
  3821. return callback(e);
  3822. }
  3823. if (FS.isDir(stat.mode)) {
  3824. return callback(null, { timestamp: stat.mtime, mode: stat.mode });
  3825. } else if (FS.isFile(stat.mode)) {
  3826. // Performance consideration: storing a normal JavaScript array to a IndexedDB is much slower than storing a typed array.
  3827. // Therefore always convert the file contents to a typed array first before writing the data to IndexedDB.
  3828. node.contents = MEMFS.getFileDataAsTypedArray(node);
  3829. return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
  3830. } else {
  3831. return callback(new Error('node type not supported'));
  3832. }
  3833. },storeLocalEntry:function (path, entry, callback) {
  3834. try {
  3835. if (FS.isDir(entry.mode)) {
  3836. FS.mkdir(path, entry.mode);
  3837. } else if (FS.isFile(entry.mode)) {
  3838. FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
  3839. } else {
  3840. return callback(new Error('node type not supported'));
  3841. }
  3842. FS.chmod(path, entry.mode);
  3843. FS.utime(path, entry.timestamp, entry.timestamp);
  3844. } catch (e) {
  3845. return callback(e);
  3846. }
  3847. callback(null);
  3848. },removeLocalEntry:function (path, callback) {
  3849. try {
  3850. var lookup = FS.lookupPath(path);
  3851. var stat = FS.stat(path);
  3852. if (FS.isDir(stat.mode)) {
  3853. FS.rmdir(path);
  3854. } else if (FS.isFile(stat.mode)) {
  3855. FS.unlink(path);
  3856. }
  3857. } catch (e) {
  3858. return callback(e);
  3859. }
  3860. callback(null);
  3861. },loadRemoteEntry:function (store, path, callback) {
  3862. var req = store.get(path);
  3863. req.onsuccess = function(event) { callback(null, event.target.result); };
  3864. req.onerror = function(e) {
  3865. callback(this.error);
  3866. e.preventDefault();
  3867. };
  3868. },storeRemoteEntry:function (store, path, entry, callback) {
  3869. var req = store.put(entry, path);
  3870. req.onsuccess = function() { callback(null); };
  3871. req.onerror = function(e) {
  3872. callback(this.error);
  3873. e.preventDefault();
  3874. };
  3875. },removeRemoteEntry:function (store, path, callback) {
  3876. var req = store.delete(path);
  3877. req.onsuccess = function() { callback(null); };
  3878. req.onerror = function(e) {
  3879. callback(this.error);
  3880. e.preventDefault();
  3881. };
  3882. },reconcile:function (src, dst, callback) {
  3883. var total = 0;
  3884. var create = [];
  3885. Object.keys(src.entries).forEach(function (key) {
  3886. var e = src.entries[key];
  3887. var e2 = dst.entries[key];
  3888. if (!e2 || e.timestamp > e2.timestamp) {
  3889. create.push(key);
  3890. total++;
  3891. }
  3892. });
  3893. var remove = [];
  3894. Object.keys(dst.entries).forEach(function (key) {
  3895. var e = dst.entries[key];
  3896. var e2 = src.entries[key];
  3897. if (!e2) {
  3898. remove.push(key);
  3899. total++;
  3900. }
  3901. });
  3902. if (!total) {
  3903. return callback(null);
  3904. }
  3905. var errored = false;
  3906. var completed = 0;
  3907. var db = src.type === 'remote' ? src.db : dst.db;
  3908. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
  3909. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3910. function done(err) {
  3911. if (err) {
  3912. if (!done.errored) {
  3913. done.errored = true;
  3914. return callback(err);
  3915. }
  3916. return;
  3917. }
  3918. if (++completed >= total) {
  3919. return callback(null);
  3920. }
  3921. };
  3922. transaction.onerror = function(e) {
  3923. done(this.error);
  3924. e.preventDefault();
  3925. };
  3926. // sort paths in ascending order so directory entries are created
  3927. // before the files inside them
  3928. create.sort().forEach(function (path) {
  3929. if (dst.type === 'local') {
  3930. IDBFS.loadRemoteEntry(store, path, function (err, entry) {
  3931. if (err) return done(err);
  3932. IDBFS.storeLocalEntry(path, entry, done);
  3933. });
  3934. } else {
  3935. IDBFS.loadLocalEntry(path, function (err, entry) {
  3936. if (err) return done(err);
  3937. IDBFS.storeRemoteEntry(store, path, entry, done);
  3938. });
  3939. }
  3940. });
  3941. // sort paths in descending order so files are deleted before their
  3942. // parent directories
  3943. remove.sort().reverse().forEach(function(path) {
  3944. if (dst.type === 'local') {
  3945. IDBFS.removeLocalEntry(path, done);
  3946. } else {
  3947. IDBFS.removeRemoteEntry(store, path, done);
  3948. }
  3949. });
  3950. }};
  3951. var NODEFS={isWindows:false,staticInit:function () {
  3952. NODEFS.isWindows = !!process.platform.match(/^win/);
  3953. },mount:function (mount) {
  3954. assert(ENVIRONMENT_IS_NODE);
  3955. return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
  3956. },createNode:function (parent, name, mode, dev) {
  3957. if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
  3958. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3959. }
  3960. var node = FS.createNode(parent, name, mode);
  3961. node.node_ops = NODEFS.node_ops;
  3962. node.stream_ops = NODEFS.stream_ops;
  3963. return node;
  3964. },getMode:function (path) {
  3965. var stat;
  3966. try {
  3967. stat = fs.lstatSync(path);
  3968. if (NODEFS.isWindows) {
  3969. // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so
  3970. // propagate write bits to execute bits.
  3971. stat.mode = stat.mode | ((stat.mode & 146) >> 1);
  3972. }
  3973. } catch (e) {
  3974. if (!e.code) throw e;
  3975. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  3976. }
  3977. return stat.mode;
  3978. },realPath:function (node) {
  3979. var parts = [];
  3980. while (node.parent !== node) {
  3981. parts.push(node.name);
  3982. node = node.parent;
  3983. }
  3984. parts.push(node.mount.opts.root);
  3985. parts.reverse();
  3986. return PATH.join.apply(null, parts);
  3987. },flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:function (flags) {
  3988. flags &= ~0x200000 /*O_PATH*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3989. flags &= ~0x800 /*O_NONBLOCK*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3990. flags &= ~0x8000 /*O_LARGEFILE*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3991. flags &= ~0x80000 /*O_CLOEXEC*/; // Some applications may pass it; it makes no sense for a single process.
  3992. if (flags in NODEFS.flagsToPermissionStringMap) {
  3993. return NODEFS.flagsToPermissionStringMap[flags];
  3994. } else {
  3995. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3996. }
  3997. },node_ops:{getattr:function (node) {
  3998. var path = NODEFS.realPath(node);
  3999. var stat;
  4000. try {
  4001. stat = fs.lstatSync(path);
  4002. } catch (e) {
  4003. if (!e.code) throw e;
  4004. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4005. }
  4006. // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
  4007. // See http://support.microsoft.com/kb/140365
  4008. if (NODEFS.isWindows && !stat.blksize) {
  4009. stat.blksize = 4096;
  4010. }
  4011. if (NODEFS.isWindows && !stat.blocks) {
  4012. stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
  4013. }
  4014. return {
  4015. dev: stat.dev,
  4016. ino: stat.ino,
  4017. mode: stat.mode,
  4018. nlink: stat.nlink,
  4019. uid: stat.uid,
  4020. gid: stat.gid,
  4021. rdev: stat.rdev,
  4022. size: stat.size,
  4023. atime: stat.atime,
  4024. mtime: stat.mtime,
  4025. ctime: stat.ctime,
  4026. blksize: stat.blksize,
  4027. blocks: stat.blocks
  4028. };
  4029. },setattr:function (node, attr) {
  4030. var path = NODEFS.realPath(node);
  4031. try {
  4032. if (attr.mode !== undefined) {
  4033. fs.chmodSync(path, attr.mode);
  4034. // update the common node structure mode as well
  4035. node.mode = attr.mode;
  4036. }
  4037. if (attr.timestamp !== undefined) {
  4038. var date = new Date(attr.timestamp);
  4039. fs.utimesSync(path, date, date);
  4040. }
  4041. if (attr.size !== undefined) {
  4042. fs.truncateSync(path, attr.size);
  4043. }
  4044. } catch (e) {
  4045. if (!e.code) throw e;
  4046. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4047. }
  4048. },lookup:function (parent, name) {
  4049. var path = PATH.join2(NODEFS.realPath(parent), name);
  4050. var mode = NODEFS.getMode(path);
  4051. return NODEFS.createNode(parent, name, mode);
  4052. },mknod:function (parent, name, mode, dev) {
  4053. var node = NODEFS.createNode(parent, name, mode, dev);
  4054. // create the backing node for this in the fs root as well
  4055. var path = NODEFS.realPath(node);
  4056. try {
  4057. if (FS.isDir(node.mode)) {
  4058. fs.mkdirSync(path, node.mode);
  4059. } else {
  4060. fs.writeFileSync(path, '', { mode: node.mode });
  4061. }
  4062. } catch (e) {
  4063. if (!e.code) throw e;
  4064. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4065. }
  4066. return node;
  4067. },rename:function (oldNode, newDir, newName) {
  4068. var oldPath = NODEFS.realPath(oldNode);
  4069. var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
  4070. try {
  4071. fs.renameSync(oldPath, newPath);
  4072. } catch (e) {
  4073. if (!e.code) throw e;
  4074. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4075. }
  4076. },unlink:function (parent, name) {
  4077. var path = PATH.join2(NODEFS.realPath(parent), name);
  4078. try {
  4079. fs.unlinkSync(path);
  4080. } catch (e) {
  4081. if (!e.code) throw e;
  4082. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4083. }
  4084. },rmdir:function (parent, name) {
  4085. var path = PATH.join2(NODEFS.realPath(parent), name);
  4086. try {
  4087. fs.rmdirSync(path);
  4088. } catch (e) {
  4089. if (!e.code) throw e;
  4090. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4091. }
  4092. },readdir:function (node) {
  4093. var path = NODEFS.realPath(node);
  4094. try {
  4095. return fs.readdirSync(path);
  4096. } catch (e) {
  4097. if (!e.code) throw e;
  4098. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4099. }
  4100. },symlink:function (parent, newName, oldPath) {
  4101. var newPath = PATH.join2(NODEFS.realPath(parent), newName);
  4102. try {
  4103. fs.symlinkSync(oldPath, newPath);
  4104. } catch (e) {
  4105. if (!e.code) throw e;
  4106. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4107. }
  4108. },readlink:function (node) {
  4109. var path = NODEFS.realPath(node);
  4110. try {
  4111. path = fs.readlinkSync(path);
  4112. path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
  4113. return path;
  4114. } catch (e) {
  4115. if (!e.code) throw e;
  4116. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4117. }
  4118. }},stream_ops:{open:function (stream) {
  4119. var path = NODEFS.realPath(stream.node);
  4120. try {
  4121. if (FS.isFile(stream.node.mode)) {
  4122. stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
  4123. }
  4124. } catch (e) {
  4125. if (!e.code) throw e;
  4126. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4127. }
  4128. },close:function (stream) {
  4129. try {
  4130. if (FS.isFile(stream.node.mode) && stream.nfd) {
  4131. fs.closeSync(stream.nfd);
  4132. }
  4133. } catch (e) {
  4134. if (!e.code) throw e;
  4135. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4136. }
  4137. },read:function (stream, buffer, offset, length, position) {
  4138. if (length === 0) return 0; // node errors on 0 length reads
  4139. // FIXME this is terrible.
  4140. var nbuffer = new Buffer(length);
  4141. var res;
  4142. try {
  4143. res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
  4144. } catch (e) {
  4145. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4146. }
  4147. if (res > 0) {
  4148. for (var i = 0; i < res; i++) {
  4149. buffer[offset + i] = nbuffer[i];
  4150. }
  4151. }
  4152. return res;
  4153. },write:function (stream, buffer, offset, length, position) {
  4154. // FIXME this is terrible.
  4155. var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
  4156. var res;
  4157. try {
  4158. res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
  4159. } catch (e) {
  4160. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4161. }
  4162. return res;
  4163. },llseek:function (stream, offset, whence) {
  4164. var position = offset;
  4165. if (whence === 1) { // SEEK_CUR.
  4166. position += stream.position;
  4167. } else if (whence === 2) { // SEEK_END.
  4168. if (FS.isFile(stream.node.mode)) {
  4169. try {
  4170. var stat = fs.fstatSync(stream.nfd);
  4171. position += stat.size;
  4172. } catch (e) {
  4173. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4174. }
  4175. }
  4176. }
  4177. if (position < 0) {
  4178. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4179. }
  4180. return position;
  4181. }}};
  4182. var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function (mount) {
  4183. assert(ENVIRONMENT_IS_WORKER);
  4184. if (!WORKERFS.reader) WORKERFS.reader = new FileReaderSync();
  4185. var root = WORKERFS.createNode(null, '/', WORKERFS.DIR_MODE, 0);
  4186. var createdParents = {};
  4187. function ensureParent(path) {
  4188. // return the parent node, creating subdirs as necessary
  4189. var parts = path.split('/');
  4190. var parent = root;
  4191. for (var i = 0; i < parts.length-1; i++) {
  4192. var curr = parts.slice(0, i+1).join('/');
  4193. // Issue 4254: Using curr as a node name will prevent the node
  4194. // from being found in FS.nameTable when FS.open is called on
  4195. // a path which holds a child of this node,
  4196. // given that all FS functions assume node names
  4197. // are just their corresponding parts within their given path,
  4198. // rather than incremental aggregates which include their parent's
  4199. // directories.
  4200. if (!createdParents[curr]) {
  4201. createdParents[curr] = WORKERFS.createNode(parent, parts[i], WORKERFS.DIR_MODE, 0);
  4202. }
  4203. parent = createdParents[curr];
  4204. }
  4205. return parent;
  4206. }
  4207. function base(path) {
  4208. var parts = path.split('/');
  4209. return parts[parts.length-1];
  4210. }
  4211. // We also accept FileList here, by using Array.prototype
  4212. Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
  4213. WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);
  4214. });
  4215. (mount.opts["blobs"] || []).forEach(function(obj) {
  4216. WORKERFS.createNode(ensureParent(obj["name"]), base(obj["name"]), WORKERFS.FILE_MODE, 0, obj["data"]);
  4217. });
  4218. (mount.opts["packages"] || []).forEach(function(pack) {
  4219. pack['metadata'].files.forEach(function(file) {
  4220. var name = file.filename.substr(1); // remove initial slash
  4221. WORKERFS.createNode(ensureParent(name), base(name), WORKERFS.FILE_MODE, 0, pack['blob'].slice(file.start, file.end));
  4222. });
  4223. });
  4224. return root;
  4225. },createNode:function (parent, name, mode, dev, contents, mtime) {
  4226. var node = FS.createNode(parent, name, mode);
  4227. node.mode = mode;
  4228. node.node_ops = WORKERFS.node_ops;
  4229. node.stream_ops = WORKERFS.stream_ops;
  4230. node.timestamp = (mtime || new Date).getTime();
  4231. assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE);
  4232. if (mode === WORKERFS.FILE_MODE) {
  4233. node.size = contents.size;
  4234. node.contents = contents;
  4235. } else {
  4236. node.size = 4096;
  4237. node.contents = {};
  4238. }
  4239. if (parent) {
  4240. parent.contents[name] = node;
  4241. }
  4242. return node;
  4243. },node_ops:{getattr:function (node) {
  4244. return {
  4245. dev: 1,
  4246. ino: undefined,
  4247. mode: node.mode,
  4248. nlink: 1,
  4249. uid: 0,
  4250. gid: 0,
  4251. rdev: undefined,
  4252. size: node.size,
  4253. atime: new Date(node.timestamp),
  4254. mtime: new Date(node.timestamp),
  4255. ctime: new Date(node.timestamp),
  4256. blksize: 4096,
  4257. blocks: Math.ceil(node.size / 4096),
  4258. };
  4259. },setattr:function (node, attr) {
  4260. if (attr.mode !== undefined) {
  4261. node.mode = attr.mode;
  4262. }
  4263. if (attr.timestamp !== undefined) {
  4264. node.timestamp = attr.timestamp;
  4265. }
  4266. },lookup:function (parent, name) {
  4267. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4268. },mknod:function (parent, name, mode, dev) {
  4269. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4270. },rename:function (oldNode, newDir, newName) {
  4271. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4272. },unlink:function (parent, name) {
  4273. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4274. },rmdir:function (parent, name) {
  4275. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4276. },readdir:function (node) {
  4277. var entries = ['.', '..'];
  4278. for (var key in node.contents) {
  4279. if (!node.contents.hasOwnProperty(key)) {
  4280. continue;
  4281. }
  4282. entries.push(key);
  4283. }
  4284. return entries;
  4285. },symlink:function (parent, newName, oldPath) {
  4286. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4287. },readlink:function (node) {
  4288. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4289. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  4290. if (position >= stream.node.size) return 0;
  4291. var chunk = stream.node.contents.slice(position, position + length);
  4292. var ab = WORKERFS.reader.readAsArrayBuffer(chunk);
  4293. buffer.set(new Uint8Array(ab), offset);
  4294. return chunk.size;
  4295. },write:function (stream, buffer, offset, length, position) {
  4296. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  4297. },llseek:function (stream, offset, whence) {
  4298. var position = offset;
  4299. if (whence === 1) { // SEEK_CUR.
  4300. position += stream.position;
  4301. } else if (whence === 2) { // SEEK_END.
  4302. if (FS.isFile(stream.node.mode)) {
  4303. position += stream.node.size;
  4304. }
  4305. }
  4306. if (position < 0) {
  4307. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4308. }
  4309. return position;
  4310. }}};
  4311. var _stdin=STATICTOP; STATICTOP += 16;;
  4312. var _stdout=STATICTOP; STATICTOP += 16;;
  4313. var _stderr=STATICTOP; STATICTOP += 16;;var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:function (e) {
  4314. if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
  4315. return ___setErrNo(e.errno);
  4316. },lookupPath:function (path, opts) {
  4317. path = PATH.resolve(FS.cwd(), path);
  4318. opts = opts || {};
  4319. if (!path) return { path: '', node: null };
  4320. var defaults = {
  4321. follow_mount: true,
  4322. recurse_count: 0
  4323. };
  4324. for (var key in defaults) {
  4325. if (opts[key] === undefined) {
  4326. opts[key] = defaults[key];
  4327. }
  4328. }
  4329. if (opts.recurse_count > 8) { // max recursive lookup of 8
  4330. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4331. }
  4332. // split the path
  4333. var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
  4334. return !!p;
  4335. }), false);
  4336. // start at the root
  4337. var current = FS.root;
  4338. var current_path = '/';
  4339. for (var i = 0; i < parts.length; i++) {
  4340. var islast = (i === parts.length-1);
  4341. if (islast && opts.parent) {
  4342. // stop resolving
  4343. break;
  4344. }
  4345. current = FS.lookupNode(current, parts[i]);
  4346. current_path = PATH.join2(current_path, parts[i]);
  4347. // jump to the mount's root node if this is a mountpoint
  4348. if (FS.isMountpoint(current)) {
  4349. if (!islast || (islast && opts.follow_mount)) {
  4350. current = current.mounted.root;
  4351. }
  4352. }
  4353. // by default, lookupPath will not follow a symlink if it is the final path component.
  4354. // setting opts.follow = true will override this behavior.
  4355. if (!islast || opts.follow) {
  4356. var count = 0;
  4357. while (FS.isLink(current.mode)) {
  4358. var link = FS.readlink(current_path);
  4359. current_path = PATH.resolve(PATH.dirname(current_path), link);
  4360. var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
  4361. current = lookup.node;
  4362. if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
  4363. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4364. }
  4365. }
  4366. }
  4367. }
  4368. return { path: current_path, node: current };
  4369. },getPath:function (node) {
  4370. var path;
  4371. while (true) {
  4372. if (FS.isRoot(node)) {
  4373. var mount = node.mount.mountpoint;
  4374. if (!path) return mount;
  4375. return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
  4376. }
  4377. path = path ? node.name + '/' + path : node.name;
  4378. node = node.parent;
  4379. }
  4380. },hashName:function (parentid, name) {
  4381. var hash = 0;
  4382. for (var i = 0; i < name.length; i++) {
  4383. hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
  4384. }
  4385. return ((parentid + hash) >>> 0) % FS.nameTable.length;
  4386. },hashAddNode:function (node) {
  4387. var hash = FS.hashName(node.parent.id, node.name);
  4388. node.name_next = FS.nameTable[hash];
  4389. FS.nameTable[hash] = node;
  4390. },hashRemoveNode:function (node) {
  4391. var hash = FS.hashName(node.parent.id, node.name);
  4392. if (FS.nameTable[hash] === node) {
  4393. FS.nameTable[hash] = node.name_next;
  4394. } else {
  4395. var current = FS.nameTable[hash];
  4396. while (current) {
  4397. if (current.name_next === node) {
  4398. current.name_next = node.name_next;
  4399. break;
  4400. }
  4401. current = current.name_next;
  4402. }
  4403. }
  4404. },lookupNode:function (parent, name) {
  4405. var err = FS.mayLookup(parent);
  4406. if (err) {
  4407. throw new FS.ErrnoError(err, parent);
  4408. }
  4409. var hash = FS.hashName(parent.id, name);
  4410. for (var node = FS.nameTable[hash]; node; node = node.name_next) {
  4411. var nodeName = node.name;
  4412. if (node.parent.id === parent.id && nodeName === name) {
  4413. return node;
  4414. }
  4415. }
  4416. // if we failed to find it in the cache, call into the VFS
  4417. return FS.lookup(parent, name);
  4418. },createNode:function (parent, name, mode, rdev) {
  4419. if (!FS.FSNode) {
  4420. FS.FSNode = function(parent, name, mode, rdev) {
  4421. if (!parent) {
  4422. parent = this; // root node sets parent to itself
  4423. }
  4424. this.parent = parent;
  4425. this.mount = parent.mount;
  4426. this.mounted = null;
  4427. this.id = FS.nextInode++;
  4428. this.name = name;
  4429. this.mode = mode;
  4430. this.node_ops = {};
  4431. this.stream_ops = {};
  4432. this.rdev = rdev;
  4433. };
  4434. FS.FSNode.prototype = {};
  4435. // compatibility
  4436. var readMode = 292 | 73;
  4437. var writeMode = 146;
  4438. // NOTE we must use Object.defineProperties instead of individual calls to
  4439. // Object.defineProperty in order to make closure compiler happy
  4440. Object.defineProperties(FS.FSNode.prototype, {
  4441. read: {
  4442. get: function() { return (this.mode & readMode) === readMode; },
  4443. set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
  4444. },
  4445. write: {
  4446. get: function() { return (this.mode & writeMode) === writeMode; },
  4447. set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
  4448. },
  4449. isFolder: {
  4450. get: function() { return FS.isDir(this.mode); }
  4451. },
  4452. isDevice: {
  4453. get: function() { return FS.isChrdev(this.mode); }
  4454. }
  4455. });
  4456. }
  4457. var node = new FS.FSNode(parent, name, mode, rdev);
  4458. FS.hashAddNode(node);
  4459. return node;
  4460. },destroyNode:function (node) {
  4461. FS.hashRemoveNode(node);
  4462. },isRoot:function (node) {
  4463. return node === node.parent;
  4464. },isMountpoint:function (node) {
  4465. return !!node.mounted;
  4466. },isFile:function (mode) {
  4467. return (mode & 61440) === 32768;
  4468. },isDir:function (mode) {
  4469. return (mode & 61440) === 16384;
  4470. },isLink:function (mode) {
  4471. return (mode & 61440) === 40960;
  4472. },isChrdev:function (mode) {
  4473. return (mode & 61440) === 8192;
  4474. },isBlkdev:function (mode) {
  4475. return (mode & 61440) === 24576;
  4476. },isFIFO:function (mode) {
  4477. return (mode & 61440) === 4096;
  4478. },isSocket:function (mode) {
  4479. return (mode & 49152) === 49152;
  4480. },flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function (str) {
  4481. var flags = FS.flagModes[str];
  4482. if (typeof flags === 'undefined') {
  4483. throw new Error('Unknown file open mode: ' + str);
  4484. }
  4485. return flags;
  4486. },flagsToPermissionString:function (flag) {
  4487. var perms = ['r', 'w', 'rw'][flag & 3];
  4488. if ((flag & 512)) {
  4489. perms += 'w';
  4490. }
  4491. return perms;
  4492. },nodePermissions:function (node, perms) {
  4493. if (FS.ignorePermissions) {
  4494. return 0;
  4495. }
  4496. // return 0 if any user, group or owner bits are set.
  4497. if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
  4498. return ERRNO_CODES.EACCES;
  4499. } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
  4500. return ERRNO_CODES.EACCES;
  4501. } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
  4502. return ERRNO_CODES.EACCES;
  4503. }
  4504. return 0;
  4505. },mayLookup:function (dir) {
  4506. var err = FS.nodePermissions(dir, 'x');
  4507. if (err) return err;
  4508. if (!dir.node_ops.lookup) return ERRNO_CODES.EACCES;
  4509. return 0;
  4510. },mayCreate:function (dir, name) {
  4511. try {
  4512. var node = FS.lookupNode(dir, name);
  4513. return ERRNO_CODES.EEXIST;
  4514. } catch (e) {
  4515. }
  4516. return FS.nodePermissions(dir, 'wx');
  4517. },mayDelete:function (dir, name, isdir) {
  4518. var node;
  4519. try {
  4520. node = FS.lookupNode(dir, name);
  4521. } catch (e) {
  4522. return e.errno;
  4523. }
  4524. var err = FS.nodePermissions(dir, 'wx');
  4525. if (err) {
  4526. return err;
  4527. }
  4528. if (isdir) {
  4529. if (!FS.isDir(node.mode)) {
  4530. return ERRNO_CODES.ENOTDIR;
  4531. }
  4532. if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
  4533. return ERRNO_CODES.EBUSY;
  4534. }
  4535. } else {
  4536. if (FS.isDir(node.mode)) {
  4537. return ERRNO_CODES.EISDIR;
  4538. }
  4539. }
  4540. return 0;
  4541. },mayOpen:function (node, flags) {
  4542. if (!node) {
  4543. return ERRNO_CODES.ENOENT;
  4544. }
  4545. if (FS.isLink(node.mode)) {
  4546. return ERRNO_CODES.ELOOP;
  4547. } else if (FS.isDir(node.mode)) {
  4548. if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write
  4549. (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only)
  4550. return ERRNO_CODES.EISDIR;
  4551. }
  4552. }
  4553. return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
  4554. },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
  4555. fd_start = fd_start || 0;
  4556. fd_end = fd_end || FS.MAX_OPEN_FDS;
  4557. for (var fd = fd_start; fd <= fd_end; fd++) {
  4558. if (!FS.streams[fd]) {
  4559. return fd;
  4560. }
  4561. }
  4562. throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
  4563. },getStream:function (fd) {
  4564. return FS.streams[fd];
  4565. },createStream:function (stream, fd_start, fd_end) {
  4566. if (!FS.FSStream) {
  4567. FS.FSStream = function(){};
  4568. FS.FSStream.prototype = {};
  4569. // compatibility
  4570. Object.defineProperties(FS.FSStream.prototype, {
  4571. object: {
  4572. get: function() { return this.node; },
  4573. set: function(val) { this.node = val; }
  4574. },
  4575. isRead: {
  4576. get: function() { return (this.flags & 2097155) !== 1; }
  4577. },
  4578. isWrite: {
  4579. get: function() { return (this.flags & 2097155) !== 0; }
  4580. },
  4581. isAppend: {
  4582. get: function() { return (this.flags & 1024); }
  4583. }
  4584. });
  4585. }
  4586. // clone it, so we can return an instance of FSStream
  4587. var newStream = new FS.FSStream();
  4588. for (var p in stream) {
  4589. newStream[p] = stream[p];
  4590. }
  4591. stream = newStream;
  4592. var fd = FS.nextfd(fd_start, fd_end);
  4593. stream.fd = fd;
  4594. FS.streams[fd] = stream;
  4595. return stream;
  4596. },closeStream:function (fd) {
  4597. FS.streams[fd] = null;
  4598. },chrdev_stream_ops:{open:function (stream) {
  4599. var device = FS.getDevice(stream.node.rdev);
  4600. // override node's stream ops with the device's
  4601. stream.stream_ops = device.stream_ops;
  4602. // forward the open call
  4603. if (stream.stream_ops.open) {
  4604. stream.stream_ops.open(stream);
  4605. }
  4606. },llseek:function () {
  4607. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  4608. }},major:function (dev) {
  4609. return ((dev) >> 8);
  4610. },minor:function (dev) {
  4611. return ((dev) & 0xff);
  4612. },makedev:function (ma, mi) {
  4613. return ((ma) << 8 | (mi));
  4614. },registerDevice:function (dev, ops) {
  4615. FS.devices[dev] = { stream_ops: ops };
  4616. },getDevice:function (dev) {
  4617. return FS.devices[dev];
  4618. },getMounts:function (mount) {
  4619. var mounts = [];
  4620. var check = [mount];
  4621. while (check.length) {
  4622. var m = check.pop();
  4623. mounts.push(m);
  4624. check.push.apply(check, m.mounts);
  4625. }
  4626. return mounts;
  4627. },syncfs:function (populate, callback) {
  4628. if (typeof(populate) === 'function') {
  4629. callback = populate;
  4630. populate = false;
  4631. }
  4632. FS.syncFSRequests++;
  4633. if (FS.syncFSRequests > 1) {
  4634. console.log('warning: ' + FS.syncFSRequests + ' FS.syncfs operations in flight at once, probably just doing extra work');
  4635. }
  4636. var mounts = FS.getMounts(FS.root.mount);
  4637. var completed = 0;
  4638. function doCallback(err) {
  4639. assert(FS.syncFSRequests > 0);
  4640. FS.syncFSRequests--;
  4641. return callback(err);
  4642. }
  4643. function done(err) {
  4644. if (err) {
  4645. if (!done.errored) {
  4646. done.errored = true;
  4647. return doCallback(err);
  4648. }
  4649. return;
  4650. }
  4651. if (++completed >= mounts.length) {
  4652. doCallback(null);
  4653. }
  4654. };
  4655. // sync all mounts
  4656. mounts.forEach(function (mount) {
  4657. if (!mount.type.syncfs) {
  4658. return done(null);
  4659. }
  4660. mount.type.syncfs(mount, populate, done);
  4661. });
  4662. },mount:function (type, opts, mountpoint) {
  4663. var root = mountpoint === '/';
  4664. var pseudo = !mountpoint;
  4665. var node;
  4666. if (root && FS.root) {
  4667. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4668. } else if (!root && !pseudo) {
  4669. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4670. mountpoint = lookup.path; // use the absolute path
  4671. node = lookup.node;
  4672. if (FS.isMountpoint(node)) {
  4673. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4674. }
  4675. if (!FS.isDir(node.mode)) {
  4676. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4677. }
  4678. }
  4679. var mount = {
  4680. type: type,
  4681. opts: opts,
  4682. mountpoint: mountpoint,
  4683. mounts: []
  4684. };
  4685. // create a root node for the fs
  4686. var mountRoot = type.mount(mount);
  4687. mountRoot.mount = mount;
  4688. mount.root = mountRoot;
  4689. if (root) {
  4690. FS.root = mountRoot;
  4691. } else if (node) {
  4692. // set as a mountpoint
  4693. node.mounted = mount;
  4694. // add the new mount to the current mount's children
  4695. if (node.mount) {
  4696. node.mount.mounts.push(mount);
  4697. }
  4698. }
  4699. return mountRoot;
  4700. },unmount:function (mountpoint) {
  4701. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4702. if (!FS.isMountpoint(lookup.node)) {
  4703. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4704. }
  4705. // destroy the nodes for this mount, and all its child mounts
  4706. var node = lookup.node;
  4707. var mount = node.mounted;
  4708. var mounts = FS.getMounts(mount);
  4709. Object.keys(FS.nameTable).forEach(function (hash) {
  4710. var current = FS.nameTable[hash];
  4711. while (current) {
  4712. var next = current.name_next;
  4713. if (mounts.indexOf(current.mount) !== -1) {
  4714. FS.destroyNode(current);
  4715. }
  4716. current = next;
  4717. }
  4718. });
  4719. // no longer a mountpoint
  4720. node.mounted = null;
  4721. // remove this mount from the child mounts
  4722. var idx = node.mount.mounts.indexOf(mount);
  4723. assert(idx !== -1);
  4724. node.mount.mounts.splice(idx, 1);
  4725. },lookup:function (parent, name) {
  4726. return parent.node_ops.lookup(parent, name);
  4727. },mknod:function (path, mode, dev) {
  4728. var lookup = FS.lookupPath(path, { parent: true });
  4729. var parent = lookup.node;
  4730. var name = PATH.basename(path);
  4731. if (!name || name === '.' || name === '..') {
  4732. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4733. }
  4734. var err = FS.mayCreate(parent, name);
  4735. if (err) {
  4736. throw new FS.ErrnoError(err);
  4737. }
  4738. if (!parent.node_ops.mknod) {
  4739. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4740. }
  4741. return parent.node_ops.mknod(parent, name, mode, dev);
  4742. },create:function (path, mode) {
  4743. mode = mode !== undefined ? mode : 438 /* 0666 */;
  4744. mode &= 4095;
  4745. mode |= 32768;
  4746. return FS.mknod(path, mode, 0);
  4747. },mkdir:function (path, mode) {
  4748. mode = mode !== undefined ? mode : 511 /* 0777 */;
  4749. mode &= 511 | 512;
  4750. mode |= 16384;
  4751. return FS.mknod(path, mode, 0);
  4752. },mkdirTree:function (path, mode) {
  4753. var dirs = path.split('/');
  4754. var d = '';
  4755. for (var i = 0; i < dirs.length; ++i) {
  4756. if (!dirs[i]) continue;
  4757. d += '/' + dirs[i];
  4758. try {
  4759. FS.mkdir(d, mode);
  4760. } catch(e) {
  4761. if (e.errno != ERRNO_CODES.EEXIST) throw e;
  4762. }
  4763. }
  4764. },mkdev:function (path, mode, dev) {
  4765. if (typeof(dev) === 'undefined') {
  4766. dev = mode;
  4767. mode = 438 /* 0666 */;
  4768. }
  4769. mode |= 8192;
  4770. return FS.mknod(path, mode, dev);
  4771. },symlink:function (oldpath, newpath) {
  4772. if (!PATH.resolve(oldpath)) {
  4773. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4774. }
  4775. var lookup = FS.lookupPath(newpath, { parent: true });
  4776. var parent = lookup.node;
  4777. if (!parent) {
  4778. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4779. }
  4780. var newname = PATH.basename(newpath);
  4781. var err = FS.mayCreate(parent, newname);
  4782. if (err) {
  4783. throw new FS.ErrnoError(err);
  4784. }
  4785. if (!parent.node_ops.symlink) {
  4786. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4787. }
  4788. return parent.node_ops.symlink(parent, newname, oldpath);
  4789. },rename:function (old_path, new_path) {
  4790. var old_dirname = PATH.dirname(old_path);
  4791. var new_dirname = PATH.dirname(new_path);
  4792. var old_name = PATH.basename(old_path);
  4793. var new_name = PATH.basename(new_path);
  4794. // parents must exist
  4795. var lookup, old_dir, new_dir;
  4796. try {
  4797. lookup = FS.lookupPath(old_path, { parent: true });
  4798. old_dir = lookup.node;
  4799. lookup = FS.lookupPath(new_path, { parent: true });
  4800. new_dir = lookup.node;
  4801. } catch (e) {
  4802. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4803. }
  4804. if (!old_dir || !new_dir) throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4805. // need to be part of the same mount
  4806. if (old_dir.mount !== new_dir.mount) {
  4807. throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
  4808. }
  4809. // source must exist
  4810. var old_node = FS.lookupNode(old_dir, old_name);
  4811. // old path should not be an ancestor of the new path
  4812. var relative = PATH.relative(old_path, new_dirname);
  4813. if (relative.charAt(0) !== '.') {
  4814. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4815. }
  4816. // new path should not be an ancestor of the old path
  4817. relative = PATH.relative(new_path, old_dirname);
  4818. if (relative.charAt(0) !== '.') {
  4819. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  4820. }
  4821. // see if the new path already exists
  4822. var new_node;
  4823. try {
  4824. new_node = FS.lookupNode(new_dir, new_name);
  4825. } catch (e) {
  4826. // not fatal
  4827. }
  4828. // early out if nothing needs to change
  4829. if (old_node === new_node) {
  4830. return;
  4831. }
  4832. // we'll need to delete the old entry
  4833. var isdir = FS.isDir(old_node.mode);
  4834. var err = FS.mayDelete(old_dir, old_name, isdir);
  4835. if (err) {
  4836. throw new FS.ErrnoError(err);
  4837. }
  4838. // need delete permissions if we'll be overwriting.
  4839. // need create permissions if new doesn't already exist.
  4840. err = new_node ?
  4841. FS.mayDelete(new_dir, new_name, isdir) :
  4842. FS.mayCreate(new_dir, new_name);
  4843. if (err) {
  4844. throw new FS.ErrnoError(err);
  4845. }
  4846. if (!old_dir.node_ops.rename) {
  4847. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4848. }
  4849. if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
  4850. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4851. }
  4852. // if we are going to change the parent, check write permissions
  4853. if (new_dir !== old_dir) {
  4854. err = FS.nodePermissions(old_dir, 'w');
  4855. if (err) {
  4856. throw new FS.ErrnoError(err);
  4857. }
  4858. }
  4859. try {
  4860. if (FS.trackingDelegate['willMovePath']) {
  4861. FS.trackingDelegate['willMovePath'](old_path, new_path);
  4862. }
  4863. } catch(e) {
  4864. console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4865. }
  4866. // remove the node from the lookup hash
  4867. FS.hashRemoveNode(old_node);
  4868. // do the underlying fs rename
  4869. try {
  4870. old_dir.node_ops.rename(old_node, new_dir, new_name);
  4871. } catch (e) {
  4872. throw e;
  4873. } finally {
  4874. // add the node back to the hash (in case node_ops.rename
  4875. // changed its name)
  4876. FS.hashAddNode(old_node);
  4877. }
  4878. try {
  4879. if (FS.trackingDelegate['onMovePath']) FS.trackingDelegate['onMovePath'](old_path, new_path);
  4880. } catch(e) {
  4881. console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4882. }
  4883. },rmdir:function (path) {
  4884. var lookup = FS.lookupPath(path, { parent: true });
  4885. var parent = lookup.node;
  4886. var name = PATH.basename(path);
  4887. var node = FS.lookupNode(parent, name);
  4888. var err = FS.mayDelete(parent, name, true);
  4889. if (err) {
  4890. throw new FS.ErrnoError(err);
  4891. }
  4892. if (!parent.node_ops.rmdir) {
  4893. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4894. }
  4895. if (FS.isMountpoint(node)) {
  4896. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4897. }
  4898. try {
  4899. if (FS.trackingDelegate['willDeletePath']) {
  4900. FS.trackingDelegate['willDeletePath'](path);
  4901. }
  4902. } catch(e) {
  4903. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4904. }
  4905. parent.node_ops.rmdir(parent, name);
  4906. FS.destroyNode(node);
  4907. try {
  4908. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4909. } catch(e) {
  4910. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4911. }
  4912. },readdir:function (path) {
  4913. var lookup = FS.lookupPath(path, { follow: true });
  4914. var node = lookup.node;
  4915. if (!node.node_ops.readdir) {
  4916. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4917. }
  4918. return node.node_ops.readdir(node);
  4919. },unlink:function (path) {
  4920. var lookup = FS.lookupPath(path, { parent: true });
  4921. var parent = lookup.node;
  4922. var name = PATH.basename(path);
  4923. var node = FS.lookupNode(parent, name);
  4924. var err = FS.mayDelete(parent, name, false);
  4925. if (err) {
  4926. // According to POSIX, we should map EISDIR to EPERM, but
  4927. // we instead do what Linux does (and we must, as we use
  4928. // the musl linux libc).
  4929. throw new FS.ErrnoError(err);
  4930. }
  4931. if (!parent.node_ops.unlink) {
  4932. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4933. }
  4934. if (FS.isMountpoint(node)) {
  4935. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4936. }
  4937. try {
  4938. if (FS.trackingDelegate['willDeletePath']) {
  4939. FS.trackingDelegate['willDeletePath'](path);
  4940. }
  4941. } catch(e) {
  4942. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4943. }
  4944. parent.node_ops.unlink(parent, name);
  4945. FS.destroyNode(node);
  4946. try {
  4947. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4948. } catch(e) {
  4949. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4950. }
  4951. },readlink:function (path) {
  4952. var lookup = FS.lookupPath(path);
  4953. var link = lookup.node;
  4954. if (!link) {
  4955. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4956. }
  4957. if (!link.node_ops.readlink) {
  4958. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4959. }
  4960. return PATH.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
  4961. },stat:function (path, dontFollow) {
  4962. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4963. var node = lookup.node;
  4964. if (!node) {
  4965. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4966. }
  4967. if (!node.node_ops.getattr) {
  4968. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4969. }
  4970. return node.node_ops.getattr(node);
  4971. },lstat:function (path) {
  4972. return FS.stat(path, true);
  4973. },chmod:function (path, mode, dontFollow) {
  4974. var node;
  4975. if (typeof path === 'string') {
  4976. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4977. node = lookup.node;
  4978. } else {
  4979. node = path;
  4980. }
  4981. if (!node.node_ops.setattr) {
  4982. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4983. }
  4984. node.node_ops.setattr(node, {
  4985. mode: (mode & 4095) | (node.mode & ~4095),
  4986. timestamp: Date.now()
  4987. });
  4988. },lchmod:function (path, mode) {
  4989. FS.chmod(path, mode, true);
  4990. },fchmod:function (fd, mode) {
  4991. var stream = FS.getStream(fd);
  4992. if (!stream) {
  4993. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  4994. }
  4995. FS.chmod(stream.node, mode);
  4996. },chown:function (path, uid, gid, dontFollow) {
  4997. var node;
  4998. if (typeof path === 'string') {
  4999. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5000. node = lookup.node;
  5001. } else {
  5002. node = path;
  5003. }
  5004. if (!node.node_ops.setattr) {
  5005. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5006. }
  5007. node.node_ops.setattr(node, {
  5008. timestamp: Date.now()
  5009. // we ignore the uid / gid for now
  5010. });
  5011. },lchown:function (path, uid, gid) {
  5012. FS.chown(path, uid, gid, true);
  5013. },fchown:function (fd, uid, gid) {
  5014. var stream = FS.getStream(fd);
  5015. if (!stream) {
  5016. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5017. }
  5018. FS.chown(stream.node, uid, gid);
  5019. },truncate:function (path, len) {
  5020. if (len < 0) {
  5021. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5022. }
  5023. var node;
  5024. if (typeof path === 'string') {
  5025. var lookup = FS.lookupPath(path, { follow: true });
  5026. node = lookup.node;
  5027. } else {
  5028. node = path;
  5029. }
  5030. if (!node.node_ops.setattr) {
  5031. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5032. }
  5033. if (FS.isDir(node.mode)) {
  5034. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5035. }
  5036. if (!FS.isFile(node.mode)) {
  5037. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5038. }
  5039. var err = FS.nodePermissions(node, 'w');
  5040. if (err) {
  5041. throw new FS.ErrnoError(err);
  5042. }
  5043. node.node_ops.setattr(node, {
  5044. size: len,
  5045. timestamp: Date.now()
  5046. });
  5047. },ftruncate:function (fd, len) {
  5048. var stream = FS.getStream(fd);
  5049. if (!stream) {
  5050. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5051. }
  5052. if ((stream.flags & 2097155) === 0) {
  5053. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5054. }
  5055. FS.truncate(stream.node, len);
  5056. },utime:function (path, atime, mtime) {
  5057. var lookup = FS.lookupPath(path, { follow: true });
  5058. var node = lookup.node;
  5059. node.node_ops.setattr(node, {
  5060. timestamp: Math.max(atime, mtime)
  5061. });
  5062. },open:function (path, flags, mode, fd_start, fd_end) {
  5063. if (path === "") {
  5064. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5065. }
  5066. flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
  5067. mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
  5068. if ((flags & 64)) {
  5069. mode = (mode & 4095) | 32768;
  5070. } else {
  5071. mode = 0;
  5072. }
  5073. var node;
  5074. if (typeof path === 'object') {
  5075. node = path;
  5076. } else {
  5077. path = PATH.normalize(path);
  5078. try {
  5079. var lookup = FS.lookupPath(path, {
  5080. follow: !(flags & 131072)
  5081. });
  5082. node = lookup.node;
  5083. } catch (e) {
  5084. // ignore
  5085. }
  5086. }
  5087. // perhaps we need to create the node
  5088. var created = false;
  5089. if ((flags & 64)) {
  5090. if (node) {
  5091. // if O_CREAT and O_EXCL are set, error out if the node already exists
  5092. if ((flags & 128)) {
  5093. throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
  5094. }
  5095. } else {
  5096. // node doesn't exist, try to create it
  5097. node = FS.mknod(path, mode, 0);
  5098. created = true;
  5099. }
  5100. }
  5101. if (!node) {
  5102. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5103. }
  5104. // can't truncate a device
  5105. if (FS.isChrdev(node.mode)) {
  5106. flags &= ~512;
  5107. }
  5108. // if asked only for a directory, then this must be one
  5109. if ((flags & 65536) && !FS.isDir(node.mode)) {
  5110. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5111. }
  5112. // check permissions, if this is not a file we just created now (it is ok to
  5113. // create and write to a file with read-only permissions; it is read-only
  5114. // for later use)
  5115. if (!created) {
  5116. var err = FS.mayOpen(node, flags);
  5117. if (err) {
  5118. throw new FS.ErrnoError(err);
  5119. }
  5120. }
  5121. // do truncation if necessary
  5122. if ((flags & 512)) {
  5123. FS.truncate(node, 0);
  5124. }
  5125. // we've already handled these, don't pass down to the underlying vfs
  5126. flags &= ~(128 | 512);
  5127. // register the stream with the filesystem
  5128. var stream = FS.createStream({
  5129. node: node,
  5130. path: FS.getPath(node), // we want the absolute path to the node
  5131. flags: flags,
  5132. seekable: true,
  5133. position: 0,
  5134. stream_ops: node.stream_ops,
  5135. // used by the file family libc calls (fopen, fwrite, ferror, etc.)
  5136. ungotten: [],
  5137. error: false
  5138. }, fd_start, fd_end);
  5139. // call the new stream's open function
  5140. if (stream.stream_ops.open) {
  5141. stream.stream_ops.open(stream);
  5142. }
  5143. if (Module['logReadFiles'] && !(flags & 1)) {
  5144. if (!FS.readFiles) FS.readFiles = {};
  5145. if (!(path in FS.readFiles)) {
  5146. FS.readFiles[path] = 1;
  5147. Module['printErr']('read file: ' + path);
  5148. }
  5149. }
  5150. try {
  5151. if (FS.trackingDelegate['onOpenFile']) {
  5152. var trackingFlags = 0;
  5153. if ((flags & 2097155) !== 1) {
  5154. trackingFlags |= FS.tracking.openFlags.READ;
  5155. }
  5156. if ((flags & 2097155) !== 0) {
  5157. trackingFlags |= FS.tracking.openFlags.WRITE;
  5158. }
  5159. FS.trackingDelegate['onOpenFile'](path, trackingFlags);
  5160. }
  5161. } catch(e) {
  5162. console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: " + e.message);
  5163. }
  5164. return stream;
  5165. },close:function (stream) {
  5166. if (stream.getdents) stream.getdents = null; // free readdir state
  5167. try {
  5168. if (stream.stream_ops.close) {
  5169. stream.stream_ops.close(stream);
  5170. }
  5171. } catch (e) {
  5172. throw e;
  5173. } finally {
  5174. FS.closeStream(stream.fd);
  5175. }
  5176. },llseek:function (stream, offset, whence) {
  5177. if (!stream.seekable || !stream.stream_ops.llseek) {
  5178. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5179. }
  5180. stream.position = stream.stream_ops.llseek(stream, offset, whence);
  5181. stream.ungotten = [];
  5182. return stream.position;
  5183. },read:function (stream, buffer, offset, length, position) {
  5184. if (length < 0 || position < 0) {
  5185. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5186. }
  5187. if ((stream.flags & 2097155) === 1) {
  5188. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5189. }
  5190. if (FS.isDir(stream.node.mode)) {
  5191. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5192. }
  5193. if (!stream.stream_ops.read) {
  5194. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5195. }
  5196. var seeking = true;
  5197. if (typeof position === 'undefined') {
  5198. position = stream.position;
  5199. seeking = false;
  5200. } else if (!stream.seekable) {
  5201. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5202. }
  5203. var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
  5204. if (!seeking) stream.position += bytesRead;
  5205. return bytesRead;
  5206. },write:function (stream, buffer, offset, length, position, canOwn) {
  5207. if (length < 0 || position < 0) {
  5208. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5209. }
  5210. if ((stream.flags & 2097155) === 0) {
  5211. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5212. }
  5213. if (FS.isDir(stream.node.mode)) {
  5214. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5215. }
  5216. if (!stream.stream_ops.write) {
  5217. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5218. }
  5219. if (stream.flags & 1024) {
  5220. // seek to the end before writing in append mode
  5221. FS.llseek(stream, 0, 2);
  5222. }
  5223. var seeking = true;
  5224. if (typeof position === 'undefined') {
  5225. position = stream.position;
  5226. seeking = false;
  5227. } else if (!stream.seekable) {
  5228. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5229. }
  5230. var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
  5231. if (!seeking) stream.position += bytesWritten;
  5232. try {
  5233. if (stream.path && FS.trackingDelegate['onWriteToFile']) FS.trackingDelegate['onWriteToFile'](stream.path);
  5234. } catch(e) {
  5235. console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: " + e.message);
  5236. }
  5237. return bytesWritten;
  5238. },allocate:function (stream, offset, length) {
  5239. if (offset < 0 || length <= 0) {
  5240. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5241. }
  5242. if ((stream.flags & 2097155) === 0) {
  5243. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5244. }
  5245. if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
  5246. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5247. }
  5248. if (!stream.stream_ops.allocate) {
  5249. throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
  5250. }
  5251. stream.stream_ops.allocate(stream, offset, length);
  5252. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  5253. // TODO if PROT is PROT_WRITE, make sure we have write access
  5254. if ((stream.flags & 2097155) === 1) {
  5255. throw new FS.ErrnoError(ERRNO_CODES.EACCES);
  5256. }
  5257. if (!stream.stream_ops.mmap) {
  5258. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5259. }
  5260. return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
  5261. },msync:function (stream, buffer, offset, length, mmapFlags) {
  5262. if (!stream || !stream.stream_ops.msync) {
  5263. return 0;
  5264. }
  5265. return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags);
  5266. },munmap:function (stream) {
  5267. return 0;
  5268. },ioctl:function (stream, cmd, arg) {
  5269. if (!stream.stream_ops.ioctl) {
  5270. throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
  5271. }
  5272. return stream.stream_ops.ioctl(stream, cmd, arg);
  5273. },readFile:function (path, opts) {
  5274. opts = opts || {};
  5275. opts.flags = opts.flags || 'r';
  5276. opts.encoding = opts.encoding || 'binary';
  5277. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5278. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5279. }
  5280. var ret;
  5281. var stream = FS.open(path, opts.flags);
  5282. var stat = FS.stat(path);
  5283. var length = stat.size;
  5284. var buf = new Uint8Array(length);
  5285. FS.read(stream, buf, 0, length, 0);
  5286. if (opts.encoding === 'utf8') {
  5287. ret = UTF8ArrayToString(buf, 0);
  5288. } else if (opts.encoding === 'binary') {
  5289. ret = buf;
  5290. }
  5291. FS.close(stream);
  5292. return ret;
  5293. },writeFile:function (path, data, opts) {
  5294. opts = opts || {};
  5295. opts.flags = opts.flags || 'w';
  5296. opts.encoding = opts.encoding || 'utf8';
  5297. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5298. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5299. }
  5300. var stream = FS.open(path, opts.flags, opts.mode);
  5301. if (opts.encoding === 'utf8') {
  5302. var buf = new Uint8Array(lengthBytesUTF8(data)+1);
  5303. var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
  5304. FS.write(stream, buf, 0, actualNumBytes, 0, opts.canOwn);
  5305. } else if (opts.encoding === 'binary') {
  5306. FS.write(stream, data, 0, data.length, 0, opts.canOwn);
  5307. }
  5308. FS.close(stream);
  5309. },cwd:function () {
  5310. return FS.currentPath;
  5311. },chdir:function (path) {
  5312. var lookup = FS.lookupPath(path, { follow: true });
  5313. if (lookup.node === null) {
  5314. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5315. }
  5316. if (!FS.isDir(lookup.node.mode)) {
  5317. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5318. }
  5319. var err = FS.nodePermissions(lookup.node, 'x');
  5320. if (err) {
  5321. throw new FS.ErrnoError(err);
  5322. }
  5323. FS.currentPath = lookup.path;
  5324. },createDefaultDirectories:function () {
  5325. FS.mkdir('/tmp');
  5326. FS.mkdir('/home');
  5327. FS.mkdir('/home/web_user');
  5328. },createDefaultDevices:function () {
  5329. // create /dev
  5330. FS.mkdir('/dev');
  5331. // setup /dev/null
  5332. FS.registerDevice(FS.makedev(1, 3), {
  5333. read: function() { return 0; },
  5334. write: function(stream, buffer, offset, length, pos) { return length; }
  5335. });
  5336. FS.mkdev('/dev/null', FS.makedev(1, 3));
  5337. // setup /dev/tty and /dev/tty1
  5338. // stderr needs to print output using Module['printErr']
  5339. // so we register a second tty just for it.
  5340. TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
  5341. TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
  5342. FS.mkdev('/dev/tty', FS.makedev(5, 0));
  5343. FS.mkdev('/dev/tty1', FS.makedev(6, 0));
  5344. // setup /dev/[u]random
  5345. var random_device;
  5346. if (typeof crypto !== 'undefined') {
  5347. // for modern web browsers
  5348. var randomBuffer = new Uint8Array(1);
  5349. random_device = function() { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
  5350. } else if (ENVIRONMENT_IS_NODE) {
  5351. // for nodejs
  5352. random_device = function() { return require('crypto').randomBytes(1)[0]; };
  5353. } else {
  5354. // default for ES5 platforms
  5355. random_device = function() { return (Math.random()*256)|0; };
  5356. }
  5357. FS.createDevice('/dev', 'random', random_device);
  5358. FS.createDevice('/dev', 'urandom', random_device);
  5359. // we're not going to emulate the actual shm device,
  5360. // just create the tmp dirs that reside in it commonly
  5361. FS.mkdir('/dev/shm');
  5362. FS.mkdir('/dev/shm/tmp');
  5363. },createSpecialDirectories:function () {
  5364. // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the name of the stream for fd 6 (see test_unistd_ttyname)
  5365. FS.mkdir('/proc');
  5366. FS.mkdir('/proc/self');
  5367. FS.mkdir('/proc/self/fd');
  5368. FS.mount({
  5369. mount: function() {
  5370. var node = FS.createNode('/proc/self', 'fd', 16384 | 511 /* 0777 */, 73);
  5371. node.node_ops = {
  5372. lookup: function(parent, name) {
  5373. var fd = +name;
  5374. var stream = FS.getStream(fd);
  5375. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5376. var ret = {
  5377. parent: null,
  5378. mount: { mountpoint: 'fake' },
  5379. node_ops: { readlink: function() { return stream.path } }
  5380. };
  5381. ret.parent = ret; // make it look like a simple root node
  5382. return ret;
  5383. }
  5384. };
  5385. return node;
  5386. }
  5387. }, {}, '/proc/self/fd');
  5388. },createStandardStreams:function () {
  5389. // TODO deprecate the old functionality of a single
  5390. // input / output callback and that utilizes FS.createDevice
  5391. // and instead require a unique set of stream ops
  5392. // by default, we symlink the standard streams to the
  5393. // default tty devices. however, if the standard streams
  5394. // have been overwritten we create a unique device for
  5395. // them instead.
  5396. if (Module['stdin']) {
  5397. FS.createDevice('/dev', 'stdin', Module['stdin']);
  5398. } else {
  5399. FS.symlink('/dev/tty', '/dev/stdin');
  5400. }
  5401. if (Module['stdout']) {
  5402. FS.createDevice('/dev', 'stdout', null, Module['stdout']);
  5403. } else {
  5404. FS.symlink('/dev/tty', '/dev/stdout');
  5405. }
  5406. if (Module['stderr']) {
  5407. FS.createDevice('/dev', 'stderr', null, Module['stderr']);
  5408. } else {
  5409. FS.symlink('/dev/tty1', '/dev/stderr');
  5410. }
  5411. // open default streams for the stdin, stdout and stderr devices
  5412. var stdin = FS.open('/dev/stdin', 'r');
  5413. assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
  5414. var stdout = FS.open('/dev/stdout', 'w');
  5415. assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
  5416. var stderr = FS.open('/dev/stderr', 'w');
  5417. assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
  5418. },ensureErrnoError:function () {
  5419. if (FS.ErrnoError) return;
  5420. FS.ErrnoError = function ErrnoError(errno, node) {
  5421. //Module.printErr(stackTrace()); // useful for debugging
  5422. this.node = node;
  5423. this.setErrno = function(errno) {
  5424. this.errno = errno;
  5425. for (var key in ERRNO_CODES) {
  5426. if (ERRNO_CODES[key] === errno) {
  5427. this.code = key;
  5428. break;
  5429. }
  5430. }
  5431. };
  5432. this.setErrno(errno);
  5433. this.message = ERRNO_MESSAGES[errno];
  5434. if (this.stack) this.stack = demangleAll(this.stack);
  5435. };
  5436. FS.ErrnoError.prototype = new Error();
  5437. FS.ErrnoError.prototype.constructor = FS.ErrnoError;
  5438. // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
  5439. [ERRNO_CODES.ENOENT].forEach(function(code) {
  5440. FS.genericErrors[code] = new FS.ErrnoError(code);
  5441. FS.genericErrors[code].stack = '<generic error, no stack>';
  5442. });
  5443. },staticInit:function () {
  5444. FS.ensureErrnoError();
  5445. FS.nameTable = new Array(4096);
  5446. FS.mount(MEMFS, {}, '/');
  5447. FS.createDefaultDirectories();
  5448. FS.createDefaultDevices();
  5449. FS.createSpecialDirectories();
  5450. FS.filesystems = {
  5451. 'MEMFS': MEMFS,
  5452. 'IDBFS': IDBFS,
  5453. 'NODEFS': NODEFS,
  5454. 'WORKERFS': WORKERFS,
  5455. };
  5456. },init:function (input, output, error) {
  5457. assert(!FS.init.initialized, 'FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)');
  5458. FS.init.initialized = true;
  5459. FS.ensureErrnoError();
  5460. // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
  5461. Module['stdin'] = input || Module['stdin'];
  5462. Module['stdout'] = output || Module['stdout'];
  5463. Module['stderr'] = error || Module['stderr'];
  5464. FS.createStandardStreams();
  5465. },quit:function () {
  5466. FS.init.initialized = false;
  5467. // force-flush all streams, so we get musl std streams printed out
  5468. var fflush = Module['_fflush'];
  5469. if (fflush) fflush(0);
  5470. // close all of our streams
  5471. for (var i = 0; i < FS.streams.length; i++) {
  5472. var stream = FS.streams[i];
  5473. if (!stream) {
  5474. continue;
  5475. }
  5476. FS.close(stream);
  5477. }
  5478. },getMode:function (canRead, canWrite) {
  5479. var mode = 0;
  5480. if (canRead) mode |= 292 | 73;
  5481. if (canWrite) mode |= 146;
  5482. return mode;
  5483. },joinPath:function (parts, forceRelative) {
  5484. var path = PATH.join.apply(null, parts);
  5485. if (forceRelative && path[0] == '/') path = path.substr(1);
  5486. return path;
  5487. },absolutePath:function (relative, base) {
  5488. return PATH.resolve(base, relative);
  5489. },standardizePath:function (path) {
  5490. return PATH.normalize(path);
  5491. },findObject:function (path, dontResolveLastLink) {
  5492. var ret = FS.analyzePath(path, dontResolveLastLink);
  5493. if (ret.exists) {
  5494. return ret.object;
  5495. } else {
  5496. ___setErrNo(ret.error);
  5497. return null;
  5498. }
  5499. },analyzePath:function (path, dontResolveLastLink) {
  5500. // operate from within the context of the symlink's target
  5501. try {
  5502. var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5503. path = lookup.path;
  5504. } catch (e) {
  5505. }
  5506. var ret = {
  5507. isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
  5508. parentExists: false, parentPath: null, parentObject: null
  5509. };
  5510. try {
  5511. var lookup = FS.lookupPath(path, { parent: true });
  5512. ret.parentExists = true;
  5513. ret.parentPath = lookup.path;
  5514. ret.parentObject = lookup.node;
  5515. ret.name = PATH.basename(path);
  5516. lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5517. ret.exists = true;
  5518. ret.path = lookup.path;
  5519. ret.object = lookup.node;
  5520. ret.name = lookup.node.name;
  5521. ret.isRoot = lookup.path === '/';
  5522. } catch (e) {
  5523. ret.error = e.errno;
  5524. };
  5525. return ret;
  5526. },createFolder:function (parent, name, canRead, canWrite) {
  5527. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5528. var mode = FS.getMode(canRead, canWrite);
  5529. return FS.mkdir(path, mode);
  5530. },createPath:function (parent, path, canRead, canWrite) {
  5531. parent = typeof parent === 'string' ? parent : FS.getPath(parent);
  5532. var parts = path.split('/').reverse();
  5533. while (parts.length) {
  5534. var part = parts.pop();
  5535. if (!part) continue;
  5536. var current = PATH.join2(parent, part);
  5537. try {
  5538. FS.mkdir(current);
  5539. } catch (e) {
  5540. // ignore EEXIST
  5541. }
  5542. parent = current;
  5543. }
  5544. return current;
  5545. },createFile:function (parent, name, properties, canRead, canWrite) {
  5546. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5547. var mode = FS.getMode(canRead, canWrite);
  5548. return FS.create(path, mode);
  5549. },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
  5550. var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
  5551. var mode = FS.getMode(canRead, canWrite);
  5552. var node = FS.create(path, mode);
  5553. if (data) {
  5554. if (typeof data === 'string') {
  5555. var arr = new Array(data.length);
  5556. for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
  5557. data = arr;
  5558. }
  5559. // make sure we can write to the file
  5560. FS.chmod(node, mode | 146);
  5561. var stream = FS.open(node, 'w');
  5562. FS.write(stream, data, 0, data.length, 0, canOwn);
  5563. FS.close(stream);
  5564. FS.chmod(node, mode);
  5565. }
  5566. return node;
  5567. },createDevice:function (parent, name, input, output) {
  5568. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5569. var mode = FS.getMode(!!input, !!output);
  5570. if (!FS.createDevice.major) FS.createDevice.major = 64;
  5571. var dev = FS.makedev(FS.createDevice.major++, 0);
  5572. // Create a fake device that a set of stream ops to emulate
  5573. // the old behavior.
  5574. FS.registerDevice(dev, {
  5575. open: function(stream) {
  5576. stream.seekable = false;
  5577. },
  5578. close: function(stream) {
  5579. // flush any pending line data
  5580. if (output && output.buffer && output.buffer.length) {
  5581. output(10);
  5582. }
  5583. },
  5584. read: function(stream, buffer, offset, length, pos /* ignored */) {
  5585. var bytesRead = 0;
  5586. for (var i = 0; i < length; i++) {
  5587. var result;
  5588. try {
  5589. result = input();
  5590. } catch (e) {
  5591. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5592. }
  5593. if (result === undefined && bytesRead === 0) {
  5594. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  5595. }
  5596. if (result === null || result === undefined) break;
  5597. bytesRead++;
  5598. buffer[offset+i] = result;
  5599. }
  5600. if (bytesRead) {
  5601. stream.node.timestamp = Date.now();
  5602. }
  5603. return bytesRead;
  5604. },
  5605. write: function(stream, buffer, offset, length, pos) {
  5606. for (var i = 0; i < length; i++) {
  5607. try {
  5608. output(buffer[offset+i]);
  5609. } catch (e) {
  5610. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5611. }
  5612. }
  5613. if (length) {
  5614. stream.node.timestamp = Date.now();
  5615. }
  5616. return i;
  5617. }
  5618. });
  5619. return FS.mkdev(path, mode, dev);
  5620. },createLink:function (parent, name, target, canRead, canWrite) {
  5621. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5622. return FS.symlink(target, path);
  5623. },forceLoadFile:function (obj) {
  5624. if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
  5625. var success = true;
  5626. if (typeof XMLHttpRequest !== 'undefined') {
  5627. throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
  5628. } else if (Module['read']) {
  5629. // Command-line.
  5630. try {
  5631. // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
  5632. // read() will try to parse UTF8.
  5633. obj.contents = intArrayFromString(Module['read'](obj.url), true);
  5634. obj.usedBytes = obj.contents.length;
  5635. } catch (e) {
  5636. success = false;
  5637. }
  5638. } else {
  5639. throw new Error('Cannot load without read() or XMLHttpRequest.');
  5640. }
  5641. if (!success) ___setErrNo(ERRNO_CODES.EIO);
  5642. return success;
  5643. },createLazyFile:function (parent, name, url, canRead, canWrite) {
  5644. // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
  5645. function LazyUint8Array() {
  5646. this.lengthKnown = false;
  5647. this.chunks = []; // Loaded chunks. Index is the chunk number
  5648. }
  5649. LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
  5650. if (idx > this.length-1 || idx < 0) {
  5651. return undefined;
  5652. }
  5653. var chunkOffset = idx % this.chunkSize;
  5654. var chunkNum = (idx / this.chunkSize)|0;
  5655. return this.getter(chunkNum)[chunkOffset];
  5656. }
  5657. LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
  5658. this.getter = getter;
  5659. }
  5660. LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
  5661. // Find length
  5662. var xhr = new XMLHttpRequest();
  5663. xhr.open('HEAD', url, false);
  5664. xhr.send(null);
  5665. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5666. var datalength = Number(xhr.getResponseHeader("Content-length"));
  5667. var header;
  5668. var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
  5669. var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip";
  5670. var chunkSize = 1024*1024; // Chunk size in bytes
  5671. if (!hasByteServing) chunkSize = datalength;
  5672. // Function to get a range from the remote URL.
  5673. var doXHR = (function(from, to) {
  5674. if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
  5675. if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
  5676. // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
  5677. var xhr = new XMLHttpRequest();
  5678. xhr.open('GET', url, false);
  5679. if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
  5680. // Some hints to the browser that we want binary data.
  5681. if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
  5682. if (xhr.overrideMimeType) {
  5683. xhr.overrideMimeType('text/plain; charset=x-user-defined');
  5684. }
  5685. xhr.send(null);
  5686. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5687. if (xhr.response !== undefined) {
  5688. return new Uint8Array(xhr.response || []);
  5689. } else {
  5690. return intArrayFromString(xhr.responseText || '', true);
  5691. }
  5692. });
  5693. var lazyArray = this;
  5694. lazyArray.setDataGetter(function(chunkNum) {
  5695. var start = chunkNum * chunkSize;
  5696. var end = (chunkNum+1) * chunkSize - 1; // including this byte
  5697. end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
  5698. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
  5699. lazyArray.chunks[chunkNum] = doXHR(start, end);
  5700. }
  5701. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
  5702. return lazyArray.chunks[chunkNum];
  5703. });
  5704. if (usesGzip || !datalength) {
  5705. // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length
  5706. chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file
  5707. datalength = this.getter(0).length;
  5708. chunkSize = datalength;
  5709. console.log("LazyFiles on gzip forces download of the whole file when length is accessed");
  5710. }
  5711. this._length = datalength;
  5712. this._chunkSize = chunkSize;
  5713. this.lengthKnown = true;
  5714. }
  5715. if (typeof XMLHttpRequest !== 'undefined') {
  5716. if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
  5717. var lazyArray = new LazyUint8Array();
  5718. Object.defineProperties(lazyArray, {
  5719. length: {
  5720. get: function() {
  5721. if(!this.lengthKnown) {
  5722. this.cacheLength();
  5723. }
  5724. return this._length;
  5725. }
  5726. },
  5727. chunkSize: {
  5728. get: function() {
  5729. if(!this.lengthKnown) {
  5730. this.cacheLength();
  5731. }
  5732. return this._chunkSize;
  5733. }
  5734. }
  5735. });
  5736. var properties = { isDevice: false, contents: lazyArray };
  5737. } else {
  5738. var properties = { isDevice: false, url: url };
  5739. }
  5740. var node = FS.createFile(parent, name, properties, canRead, canWrite);
  5741. // This is a total hack, but I want to get this lazy file code out of the
  5742. // core of MEMFS. If we want to keep this lazy file concept I feel it should
  5743. // be its own thin LAZYFS proxying calls to MEMFS.
  5744. if (properties.contents) {
  5745. node.contents = properties.contents;
  5746. } else if (properties.url) {
  5747. node.contents = null;
  5748. node.url = properties.url;
  5749. }
  5750. // Add a function that defers querying the file size until it is asked the first time.
  5751. Object.defineProperties(node, {
  5752. usedBytes: {
  5753. get: function() { return this.contents.length; }
  5754. }
  5755. });
  5756. // override each stream op with one that tries to force load the lazy file first
  5757. var stream_ops = {};
  5758. var keys = Object.keys(node.stream_ops);
  5759. keys.forEach(function(key) {
  5760. var fn = node.stream_ops[key];
  5761. stream_ops[key] = function forceLoadLazyFile() {
  5762. if (!FS.forceLoadFile(node)) {
  5763. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5764. }
  5765. return fn.apply(null, arguments);
  5766. };
  5767. });
  5768. // use a custom read function
  5769. stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
  5770. if (!FS.forceLoadFile(node)) {
  5771. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5772. }
  5773. var contents = stream.node.contents;
  5774. if (position >= contents.length)
  5775. return 0;
  5776. var size = Math.min(contents.length - position, length);
  5777. assert(size >= 0);
  5778. if (contents.slice) { // normal array
  5779. for (var i = 0; i < size; i++) {
  5780. buffer[offset + i] = contents[position + i];
  5781. }
  5782. } else {
  5783. for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
  5784. buffer[offset + i] = contents.get(position + i);
  5785. }
  5786. }
  5787. return size;
  5788. };
  5789. node.stream_ops = stream_ops;
  5790. return node;
  5791. },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
  5792. Browser.init(); // XXX perhaps this method should move onto Browser?
  5793. // TODO we should allow people to just pass in a complete filename instead
  5794. // of parent and name being that we just join them anyways
  5795. var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
  5796. var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
  5797. function processData(byteArray) {
  5798. function finish(byteArray) {
  5799. if (preFinish) preFinish();
  5800. if (!dontCreateFile) {
  5801. FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
  5802. }
  5803. if (onload) onload();
  5804. removeRunDependency(dep);
  5805. }
  5806. var handled = false;
  5807. Module['preloadPlugins'].forEach(function(plugin) {
  5808. if (handled) return;
  5809. if (plugin['canHandle'](fullname)) {
  5810. plugin['handle'](byteArray, fullname, finish, function() {
  5811. if (onerror) onerror();
  5812. removeRunDependency(dep);
  5813. });
  5814. handled = true;
  5815. }
  5816. });
  5817. if (!handled) finish(byteArray);
  5818. }
  5819. addRunDependency(dep);
  5820. if (typeof url == 'string') {
  5821. Browser.asyncLoad(url, function(byteArray) {
  5822. processData(byteArray);
  5823. }, onerror);
  5824. } else {
  5825. processData(url);
  5826. }
  5827. },indexedDB:function () {
  5828. return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  5829. },DB_NAME:function () {
  5830. return 'EM_FS_' + window.location.pathname;
  5831. },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) {
  5832. onload = onload || function(){};
  5833. onerror = onerror || function(){};
  5834. var indexedDB = FS.indexedDB();
  5835. try {
  5836. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5837. } catch (e) {
  5838. return onerror(e);
  5839. }
  5840. openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
  5841. console.log('creating db');
  5842. var db = openRequest.result;
  5843. db.createObjectStore(FS.DB_STORE_NAME);
  5844. };
  5845. openRequest.onsuccess = function openRequest_onsuccess() {
  5846. var db = openRequest.result;
  5847. var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
  5848. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5849. var ok = 0, fail = 0, total = paths.length;
  5850. function finish() {
  5851. if (fail == 0) onload(); else onerror();
  5852. }
  5853. paths.forEach(function(path) {
  5854. var putRequest = files.put(FS.analyzePath(path).object.contents, path);
  5855. putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
  5856. putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5857. });
  5858. transaction.onerror = onerror;
  5859. };
  5860. openRequest.onerror = onerror;
  5861. },loadFilesFromDB:function (paths, onload, onerror) {
  5862. onload = onload || function(){};
  5863. onerror = onerror || function(){};
  5864. var indexedDB = FS.indexedDB();
  5865. try {
  5866. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5867. } catch (e) {
  5868. return onerror(e);
  5869. }
  5870. openRequest.onupgradeneeded = onerror; // no database to load from
  5871. openRequest.onsuccess = function openRequest_onsuccess() {
  5872. var db = openRequest.result;
  5873. try {
  5874. var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
  5875. } catch(e) {
  5876. onerror(e);
  5877. return;
  5878. }
  5879. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5880. var ok = 0, fail = 0, total = paths.length;
  5881. function finish() {
  5882. if (fail == 0) onload(); else onerror();
  5883. }
  5884. paths.forEach(function(path) {
  5885. var getRequest = files.get(path);
  5886. getRequest.onsuccess = function getRequest_onsuccess() {
  5887. if (FS.analyzePath(path).exists) {
  5888. FS.unlink(path);
  5889. }
  5890. FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
  5891. ok++;
  5892. if (ok + fail == total) finish();
  5893. };
  5894. getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5895. });
  5896. transaction.onerror = onerror;
  5897. };
  5898. openRequest.onerror = onerror;
  5899. }};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function (dirfd, path) {
  5900. if (path[0] !== '/') {
  5901. // relative path
  5902. var dir;
  5903. if (dirfd === -100) {
  5904. dir = FS.cwd();
  5905. } else {
  5906. var dirstream = FS.getStream(dirfd);
  5907. if (!dirstream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5908. dir = dirstream.path;
  5909. }
  5910. path = PATH.join2(dir, path);
  5911. }
  5912. return path;
  5913. },doStat:function (func, path, buf) {
  5914. try {
  5915. var stat = func(path);
  5916. } catch (e) {
  5917. if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
  5918. // an error occurred while trying to look up the path; we should just report ENOTDIR
  5919. return -ERRNO_CODES.ENOTDIR;
  5920. }
  5921. throw e;
  5922. }
  5923. HEAP32[((buf)>>2)]=stat.dev;
  5924. HEAP32[(((buf)+(4))>>2)]=0;
  5925. HEAP32[(((buf)+(8))>>2)]=stat.ino;
  5926. HEAP32[(((buf)+(12))>>2)]=stat.mode;
  5927. HEAP32[(((buf)+(16))>>2)]=stat.nlink;
  5928. HEAP32[(((buf)+(20))>>2)]=stat.uid;
  5929. HEAP32[(((buf)+(24))>>2)]=stat.gid;
  5930. HEAP32[(((buf)+(28))>>2)]=stat.rdev;
  5931. HEAP32[(((buf)+(32))>>2)]=0;
  5932. HEAP32[(((buf)+(36))>>2)]=stat.size;
  5933. HEAP32[(((buf)+(40))>>2)]=4096;
  5934. HEAP32[(((buf)+(44))>>2)]=stat.blocks;
  5935. HEAP32[(((buf)+(48))>>2)]=(stat.atime.getTime() / 1000)|0;
  5936. HEAP32[(((buf)+(52))>>2)]=0;
  5937. HEAP32[(((buf)+(56))>>2)]=(stat.mtime.getTime() / 1000)|0;
  5938. HEAP32[(((buf)+(60))>>2)]=0;
  5939. HEAP32[(((buf)+(64))>>2)]=(stat.ctime.getTime() / 1000)|0;
  5940. HEAP32[(((buf)+(68))>>2)]=0;
  5941. HEAP32[(((buf)+(72))>>2)]=stat.ino;
  5942. return 0;
  5943. },doMsync:function (addr, stream, len, flags) {
  5944. var buffer = new Uint8Array(HEAPU8.subarray(addr, addr + len));
  5945. FS.msync(stream, buffer, 0, len, flags);
  5946. },doMkdir:function (path, mode) {
  5947. // remove a trailing slash, if one - /a/b/ has basename of '', but
  5948. // we want to create b in the context of this function
  5949. path = PATH.normalize(path);
  5950. if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
  5951. FS.mkdir(path, mode, 0);
  5952. return 0;
  5953. },doMknod:function (path, mode, dev) {
  5954. // we don't want this in the JS API as it uses mknod to create all nodes.
  5955. switch (mode & 61440) {
  5956. case 32768:
  5957. case 8192:
  5958. case 24576:
  5959. case 4096:
  5960. case 49152:
  5961. break;
  5962. default: return -ERRNO_CODES.EINVAL;
  5963. }
  5964. FS.mknod(path, mode, dev);
  5965. return 0;
  5966. },doReadlink:function (path, buf, bufsize) {
  5967. if (bufsize <= 0) return -ERRNO_CODES.EINVAL;
  5968. var ret = FS.readlink(path);
  5969. var len = Math.min(bufsize, lengthBytesUTF8(ret));
  5970. var endChar = HEAP8[buf+len];
  5971. stringToUTF8(ret, buf, bufsize+1);
  5972. // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
  5973. // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
  5974. HEAP8[buf+len] = endChar;
  5975. return len;
  5976. },doAccess:function (path, amode) {
  5977. if (amode & ~7) {
  5978. // need a valid mode
  5979. return -ERRNO_CODES.EINVAL;
  5980. }
  5981. var node;
  5982. var lookup = FS.lookupPath(path, { follow: true });
  5983. node = lookup.node;
  5984. var perms = '';
  5985. if (amode & 4) perms += 'r';
  5986. if (amode & 2) perms += 'w';
  5987. if (amode & 1) perms += 'x';
  5988. if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) {
  5989. return -ERRNO_CODES.EACCES;
  5990. }
  5991. return 0;
  5992. },doDup:function (path, flags, suggestFD) {
  5993. var suggest = FS.getStream(suggestFD);
  5994. if (suggest) FS.close(suggest);
  5995. return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
  5996. },doReadv:function (stream, iov, iovcnt, offset) {
  5997. var ret = 0;
  5998. for (var i = 0; i < iovcnt; i++) {
  5999. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6000. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6001. var curr = FS.read(stream, HEAP8,ptr, len, offset);
  6002. if (curr < 0) return -1;
  6003. ret += curr;
  6004. if (curr < len) break; // nothing more to read
  6005. }
  6006. return ret;
  6007. },doWritev:function (stream, iov, iovcnt, offset) {
  6008. var ret = 0;
  6009. for (var i = 0; i < iovcnt; i++) {
  6010. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6011. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6012. var curr = FS.write(stream, HEAP8,ptr, len, offset);
  6013. if (curr < 0) return -1;
  6014. ret += curr;
  6015. }
  6016. return ret;
  6017. },varargs:0,get:function (varargs) {
  6018. SYSCALLS.varargs += 4;
  6019. var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
  6020. return ret;
  6021. },getStr:function () {
  6022. var ret = Pointer_stringify(SYSCALLS.get());
  6023. return ret;
  6024. },getStreamFromFD:function () {
  6025. var stream = FS.getStream(SYSCALLS.get());
  6026. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6027. return stream;
  6028. },getSocketFromFD:function () {
  6029. var socket = SOCKFS.getSocket(SYSCALLS.get());
  6030. if (!socket) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6031. return socket;
  6032. },getSocketAddress:function (allowNull) {
  6033. var addrp = SYSCALLS.get(), addrlen = SYSCALLS.get();
  6034. if (allowNull && addrp === 0) return null;
  6035. var info = __read_sockaddr(addrp, addrlen);
  6036. if (info.errno) throw new FS.ErrnoError(info.errno);
  6037. info.addr = DNS.lookup_addr(info.addr) || info.addr;
  6038. return info;
  6039. },get64:function () {
  6040. var low = SYSCALLS.get(), high = SYSCALLS.get();
  6041. if (low >= 0) assert(high === 0);
  6042. else assert(high === -1);
  6043. return low;
  6044. },getZero:function () {
  6045. assert(SYSCALLS.get() === 0);
  6046. }};function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
  6047. try {
  6048. // ioctl
  6049. var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
  6050. switch (op) {
  6051. case 21505: {
  6052. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6053. return 0;
  6054. }
  6055. case 21506: {
  6056. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6057. return 0; // no-op, not actually adjusting terminal settings
  6058. }
  6059. case 21519: {
  6060. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6061. var argp = SYSCALLS.get();
  6062. HEAP32[((argp)>>2)]=0;
  6063. return 0;
  6064. }
  6065. case 21520: {
  6066. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6067. return -ERRNO_CODES.EINVAL; // not supported
  6068. }
  6069. case 21531: {
  6070. var argp = SYSCALLS.get();
  6071. return FS.ioctl(stream, op, argp);
  6072. }
  6073. case 21523: {
  6074. // TODO: in theory we should write to the winsize struct that gets
  6075. // passed in, but for now musl doesn't read anything on it
  6076. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6077. return 0;
  6078. }
  6079. default: abort('bad ioctl syscall ' + op);
  6080. }
  6081. } catch (e) {
  6082. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  6083. return -e.errno;
  6084. }
  6085. }
  6086. function _emscripten_glSampleCoverage(value, invert) {
  6087. GLctx.sampleCoverage(value, !!invert);
  6088. }
  6089. function _glDeleteTextures(n, textures) {
  6090. for (var i = 0; i < n; i++) {
  6091. var id = HEAP32[(((textures)+(i*4))>>2)];
  6092. var texture = GL.textures[id];
  6093. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  6094. GLctx.deleteTexture(texture);
  6095. texture.name = 0;
  6096. GL.textures[id] = null;
  6097. }
  6098. }
  6099. function _emscripten_glFrustum() {
  6100. Module['printErr']('missing function: emscripten_glFrustum'); abort(-1);
  6101. }
  6102. function _glfwSetWindowSizeCallback(winid, cbfun) {
  6103. GLFW.setWindowSizeCallback(winid, cbfun);
  6104. }
  6105. function _emscripten_glGetTexParameterfv(target, pname, params) {
  6106. if (!params) {
  6107. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  6108. // if p == null, issue a GL error to notify user about it.
  6109. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  6110. return;
  6111. }
  6112. HEAPF32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  6113. }
  6114. function _emscripten_glUniform4i(location, v0, v1, v2, v3) {
  6115. GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3);
  6116. }
  6117. function _emscripten_glBindRenderbuffer(target, renderbuffer) {
  6118. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  6119. }
  6120. function _emscripten_glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  6121. 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 () {
  6122. if (typeof window !== 'undefined') {
  6123. window.addEventListener("gamepadconnected", function() { ++JSEvents.numGamepadsConnected; });
  6124. window.addEventListener("gamepaddisconnected", function() { --JSEvents.numGamepadsConnected; });
  6125. }
  6126. },registerRemoveEventListeners:function () {
  6127. if (!JSEvents.removeEventListenersRegistered) {
  6128. __ATEXIT__.push(function() {
  6129. for(var i = JSEvents.eventHandlers.length-1; i >= 0; --i) {
  6130. JSEvents._removeHandler(i);
  6131. }
  6132. });
  6133. JSEvents.removeEventListenersRegistered = true;
  6134. }
  6135. },findEventTarget:function (target) {
  6136. if (target) {
  6137. if (typeof target == "number") {
  6138. target = Pointer_stringify(target);
  6139. }
  6140. if (target == '#window') return window;
  6141. else if (target == '#document') return document;
  6142. else if (target == '#screen') return window.screen;
  6143. else if (target == '#canvas') return Module['canvas'];
  6144. if (typeof target == 'string') return document.getElementById(target);
  6145. else return target;
  6146. } else {
  6147. // The sensible target varies between events, but use window as the default
  6148. // since DOM events mostly can default to that. Specific callback registrations
  6149. // override their own defaults.
  6150. return window;
  6151. }
  6152. },deferredCalls:[],deferCall:function (targetFunction, precedence, argsList) {
  6153. function arraysHaveEqualContent(arrA, arrB) {
  6154. if (arrA.length != arrB.length) return false;
  6155. for(var i in arrA) {
  6156. if (arrA[i] != arrB[i]) return false;
  6157. }
  6158. return true;
  6159. }
  6160. // Test if the given call was already queued, and if so, don't add it again.
  6161. for(var i in JSEvents.deferredCalls) {
  6162. var call = JSEvents.deferredCalls[i];
  6163. if (call.targetFunction == targetFunction && arraysHaveEqualContent(call.argsList, argsList)) {
  6164. return;
  6165. }
  6166. }
  6167. JSEvents.deferredCalls.push({
  6168. targetFunction: targetFunction,
  6169. precedence: precedence,
  6170. argsList: argsList
  6171. });
  6172. JSEvents.deferredCalls.sort(function(x,y) { return x.precedence < y.precedence; });
  6173. },removeDeferredCalls:function (targetFunction) {
  6174. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6175. if (JSEvents.deferredCalls[i].targetFunction == targetFunction) {
  6176. JSEvents.deferredCalls.splice(i, 1);
  6177. --i;
  6178. }
  6179. }
  6180. },canPerformEventHandlerRequests:function () {
  6181. return JSEvents.inEventHandler && JSEvents.currentEventHandler.allowsDeferredCalls;
  6182. },runDeferredCalls:function () {
  6183. if (!JSEvents.canPerformEventHandlerRequests()) {
  6184. return;
  6185. }
  6186. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6187. var call = JSEvents.deferredCalls[i];
  6188. JSEvents.deferredCalls.splice(i, 1);
  6189. --i;
  6190. call.targetFunction.apply(this, call.argsList);
  6191. }
  6192. },inEventHandler:0,currentEventHandler:null,eventHandlers:[],isInternetExplorer:function () { return navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; },removeAllHandlersOnTarget:function (target, eventTypeString) {
  6193. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6194. if (JSEvents.eventHandlers[i].target == target &&
  6195. (!eventTypeString || eventTypeString == JSEvents.eventHandlers[i].eventTypeString)) {
  6196. JSEvents._removeHandler(i--);
  6197. }
  6198. }
  6199. },_removeHandler:function (i) {
  6200. var h = JSEvents.eventHandlers[i];
  6201. h.target.removeEventListener(h.eventTypeString, h.eventListenerFunc, h.useCapture);
  6202. JSEvents.eventHandlers.splice(i, 1);
  6203. },registerOrRemoveHandler:function (eventHandler) {
  6204. var jsEventHandler = function jsEventHandler(event) {
  6205. // Increment nesting count for the event handler.
  6206. ++JSEvents.inEventHandler;
  6207. JSEvents.currentEventHandler = eventHandler;
  6208. // Process any old deferred calls the user has placed.
  6209. JSEvents.runDeferredCalls();
  6210. // Process the actual event, calls back to user C code handler.
  6211. eventHandler.handlerFunc(event);
  6212. // Process any new deferred calls that were placed right now from this event handler.
  6213. JSEvents.runDeferredCalls();
  6214. // Out of event handler - restore nesting count.
  6215. --JSEvents.inEventHandler;
  6216. }
  6217. if (eventHandler.callbackfunc) {
  6218. eventHandler.eventListenerFunc = jsEventHandler;
  6219. eventHandler.target.addEventListener(eventHandler.eventTypeString, jsEventHandler, eventHandler.useCapture);
  6220. JSEvents.eventHandlers.push(eventHandler);
  6221. JSEvents.registerRemoveEventListeners();
  6222. } else {
  6223. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6224. if (JSEvents.eventHandlers[i].target == eventHandler.target
  6225. && JSEvents.eventHandlers[i].eventTypeString == eventHandler.eventTypeString) {
  6226. JSEvents._removeHandler(i--);
  6227. }
  6228. }
  6229. }
  6230. },registerKeyEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6231. if (!JSEvents.keyEvent) {
  6232. JSEvents.keyEvent = _malloc( 164 );
  6233. }
  6234. var handlerFunc = function(event) {
  6235. var e = event || window.event;
  6236. stringToUTF8(e.key ? e.key : "", JSEvents.keyEvent + 0, 32);
  6237. stringToUTF8(e.code ? e.code : "", JSEvents.keyEvent + 32, 32);
  6238. HEAP32[(((JSEvents.keyEvent)+(64))>>2)]=e.location;
  6239. HEAP32[(((JSEvents.keyEvent)+(68))>>2)]=e.ctrlKey;
  6240. HEAP32[(((JSEvents.keyEvent)+(72))>>2)]=e.shiftKey;
  6241. HEAP32[(((JSEvents.keyEvent)+(76))>>2)]=e.altKey;
  6242. HEAP32[(((JSEvents.keyEvent)+(80))>>2)]=e.metaKey;
  6243. HEAP32[(((JSEvents.keyEvent)+(84))>>2)]=e.repeat;
  6244. stringToUTF8(e.locale ? e.locale : "", JSEvents.keyEvent + 88, 32);
  6245. stringToUTF8(e.char ? e.char : "", JSEvents.keyEvent + 120, 32);
  6246. HEAP32[(((JSEvents.keyEvent)+(152))>>2)]=e.charCode;
  6247. HEAP32[(((JSEvents.keyEvent)+(156))>>2)]=e.keyCode;
  6248. HEAP32[(((JSEvents.keyEvent)+(160))>>2)]=e.which;
  6249. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.keyEvent, userData);
  6250. if (shouldCancel) {
  6251. e.preventDefault();
  6252. }
  6253. };
  6254. var eventHandler = {
  6255. target: JSEvents.findEventTarget(target),
  6256. allowsDeferredCalls: JSEvents.isInternetExplorer() ? false : true, // MSIE doesn't allow fullscreen and pointerlock requests from key handlers, others do.
  6257. eventTypeString: eventTypeString,
  6258. callbackfunc: callbackfunc,
  6259. handlerFunc: handlerFunc,
  6260. useCapture: useCapture
  6261. };
  6262. JSEvents.registerOrRemoveHandler(eventHandler);
  6263. },getBoundingClientRectOrZeros:function (target) {
  6264. return target.getBoundingClientRect ? target.getBoundingClientRect() : { left: 0, top: 0 };
  6265. },fillMouseEventData:function (eventStruct, e, target) {
  6266. HEAPF64[((eventStruct)>>3)]=JSEvents.tick();
  6267. HEAP32[(((eventStruct)+(8))>>2)]=e.screenX;
  6268. HEAP32[(((eventStruct)+(12))>>2)]=e.screenY;
  6269. HEAP32[(((eventStruct)+(16))>>2)]=e.clientX;
  6270. HEAP32[(((eventStruct)+(20))>>2)]=e.clientY;
  6271. HEAP32[(((eventStruct)+(24))>>2)]=e.ctrlKey;
  6272. HEAP32[(((eventStruct)+(28))>>2)]=e.shiftKey;
  6273. HEAP32[(((eventStruct)+(32))>>2)]=e.altKey;
  6274. HEAP32[(((eventStruct)+(36))>>2)]=e.metaKey;
  6275. HEAP16[(((eventStruct)+(40))>>1)]=e.button;
  6276. HEAP16[(((eventStruct)+(42))>>1)]=e.buttons;
  6277. HEAP32[(((eventStruct)+(44))>>2)]=e["movementX"] || e["mozMovementX"] || e["webkitMovementX"] || (e.screenX-JSEvents.previousScreenX);
  6278. HEAP32[(((eventStruct)+(48))>>2)]=e["movementY"] || e["mozMovementY"] || e["webkitMovementY"] || (e.screenY-JSEvents.previousScreenY);
  6279. if (Module['canvas']) {
  6280. var rect = Module['canvas'].getBoundingClientRect();
  6281. HEAP32[(((eventStruct)+(60))>>2)]=e.clientX - rect.left;
  6282. HEAP32[(((eventStruct)+(64))>>2)]=e.clientY - rect.top;
  6283. } else { // Canvas is not initialized, return 0.
  6284. HEAP32[(((eventStruct)+(60))>>2)]=0;
  6285. HEAP32[(((eventStruct)+(64))>>2)]=0;
  6286. }
  6287. if (target) {
  6288. var rect = JSEvents.getBoundingClientRectOrZeros(target);
  6289. HEAP32[(((eventStruct)+(52))>>2)]=e.clientX - rect.left;
  6290. HEAP32[(((eventStruct)+(56))>>2)]=e.clientY - rect.top;
  6291. } else { // No specific target passed, return 0.
  6292. HEAP32[(((eventStruct)+(52))>>2)]=0;
  6293. HEAP32[(((eventStruct)+(56))>>2)]=0;
  6294. }
  6295. // wheel and mousewheel events contain wrong screenX/screenY on chrome/opera
  6296. // https://github.com/kripken/emscripten/pull/4997
  6297. // https://bugs.chromium.org/p/chromium/issues/detail?id=699956
  6298. if (e.type !== 'wheel' && e.type !== 'mousewheel') {
  6299. JSEvents.previousScreenX = e.screenX;
  6300. JSEvents.previousScreenY = e.screenY;
  6301. }
  6302. },registerMouseEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6303. if (!JSEvents.mouseEvent) {
  6304. JSEvents.mouseEvent = _malloc( 72 );
  6305. }
  6306. target = JSEvents.findEventTarget(target);
  6307. var handlerFunc = function(event) {
  6308. var e = event || window.event;
  6309. JSEvents.fillMouseEventData(JSEvents.mouseEvent, e, target);
  6310. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.mouseEvent, userData);
  6311. if (shouldCancel) {
  6312. e.preventDefault();
  6313. }
  6314. };
  6315. var eventHandler = {
  6316. target: target,
  6317. allowsDeferredCalls: eventTypeString != 'mousemove' && eventTypeString != 'mouseenter' && eventTypeString != 'mouseleave', // Mouse move events do not allow fullscreen/pointer lock requests to be handled in them!
  6318. eventTypeString: eventTypeString,
  6319. callbackfunc: callbackfunc,
  6320. handlerFunc: handlerFunc,
  6321. useCapture: useCapture
  6322. };
  6323. // In IE, mousedown events don't either allow deferred calls to be run!
  6324. if (JSEvents.isInternetExplorer() && eventTypeString == 'mousedown') eventHandler.allowsDeferredCalls = false;
  6325. JSEvents.registerOrRemoveHandler(eventHandler);
  6326. },registerWheelEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6327. if (!JSEvents.wheelEvent) {
  6328. JSEvents.wheelEvent = _malloc( 104 );
  6329. }
  6330. target = JSEvents.findEventTarget(target);
  6331. // The DOM Level 3 events spec event 'wheel'
  6332. var wheelHandlerFunc = function(event) {
  6333. var e = event || window.event;
  6334. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6335. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["deltaX"];
  6336. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=e["deltaY"];
  6337. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=e["deltaZ"];
  6338. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=e["deltaMode"];
  6339. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6340. if (shouldCancel) {
  6341. e.preventDefault();
  6342. }
  6343. };
  6344. // The 'mousewheel' event as implemented in Safari 6.0.5
  6345. var mouseWheelHandlerFunc = function(event) {
  6346. var e = event || window.event;
  6347. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6348. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["wheelDeltaX"] || 0;
  6349. 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. */;
  6350. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=0 /* Not available */;
  6351. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=0 /* DOM_DELTA_PIXEL */;
  6352. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6353. if (shouldCancel) {
  6354. e.preventDefault();
  6355. }
  6356. };
  6357. var eventHandler = {
  6358. target: target,
  6359. allowsDeferredCalls: true,
  6360. eventTypeString: eventTypeString,
  6361. callbackfunc: callbackfunc,
  6362. handlerFunc: (eventTypeString == 'wheel') ? wheelHandlerFunc : mouseWheelHandlerFunc,
  6363. useCapture: useCapture
  6364. };
  6365. JSEvents.registerOrRemoveHandler(eventHandler);
  6366. },pageScrollPos:function () {
  6367. if (window.pageXOffset > 0 || window.pageYOffset > 0) {
  6368. return [window.pageXOffset, window.pageYOffset];
  6369. }
  6370. if (typeof document.documentElement.scrollLeft !== 'undefined' || typeof document.documentElement.scrollTop !== 'undefined') {
  6371. return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
  6372. }
  6373. return [document.body.scrollLeft|0, document.body.scrollTop|0];
  6374. },registerUiEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6375. if (!JSEvents.uiEvent) {
  6376. JSEvents.uiEvent = _malloc( 36 );
  6377. }
  6378. if (eventTypeString == "scroll" && !target) {
  6379. target = document; // By default read scroll events on document rather than window.
  6380. } else {
  6381. target = JSEvents.findEventTarget(target);
  6382. }
  6383. var handlerFunc = function(event) {
  6384. var e = event || window.event;
  6385. if (e.target != target) {
  6386. // Never take ui events such as scroll via a 'bubbled' route, but always from the direct element that
  6387. // was targeted. Otherwise e.g. if app logs a message in response to a page scroll, the Emscripten log
  6388. // message box could cause to scroll, generating a new (bubbled) scroll message, causing a new log print,
  6389. // causing a new scroll, etc..
  6390. return;
  6391. }
  6392. var scrollPos = JSEvents.pageScrollPos();
  6393. HEAP32[((JSEvents.uiEvent)>>2)]=e.detail;
  6394. HEAP32[(((JSEvents.uiEvent)+(4))>>2)]=document.body.clientWidth;
  6395. HEAP32[(((JSEvents.uiEvent)+(8))>>2)]=document.body.clientHeight;
  6396. HEAP32[(((JSEvents.uiEvent)+(12))>>2)]=window.innerWidth;
  6397. HEAP32[(((JSEvents.uiEvent)+(16))>>2)]=window.innerHeight;
  6398. HEAP32[(((JSEvents.uiEvent)+(20))>>2)]=window.outerWidth;
  6399. HEAP32[(((JSEvents.uiEvent)+(24))>>2)]=window.outerHeight;
  6400. HEAP32[(((JSEvents.uiEvent)+(28))>>2)]=scrollPos[0];
  6401. HEAP32[(((JSEvents.uiEvent)+(32))>>2)]=scrollPos[1];
  6402. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.uiEvent, userData);
  6403. if (shouldCancel) {
  6404. e.preventDefault();
  6405. }
  6406. };
  6407. var eventHandler = {
  6408. target: target,
  6409. allowsDeferredCalls: false, // Neither scroll or resize events allow running requests inside them.
  6410. eventTypeString: eventTypeString,
  6411. callbackfunc: callbackfunc,
  6412. handlerFunc: handlerFunc,
  6413. useCapture: useCapture
  6414. };
  6415. JSEvents.registerOrRemoveHandler(eventHandler);
  6416. },getNodeNameForTarget:function (target) {
  6417. if (!target) return '';
  6418. if (target == window) return '#window';
  6419. if (target == window.screen) return '#screen';
  6420. return (target && target.nodeName) ? target.nodeName : '';
  6421. },registerFocusEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6422. if (!JSEvents.focusEvent) {
  6423. JSEvents.focusEvent = _malloc( 256 );
  6424. }
  6425. var handlerFunc = function(event) {
  6426. var e = event || window.event;
  6427. var nodeName = JSEvents.getNodeNameForTarget(e.target);
  6428. var id = e.target.id ? e.target.id : '';
  6429. stringToUTF8(nodeName, JSEvents.focusEvent + 0, 128);
  6430. stringToUTF8(id, JSEvents.focusEvent + 128, 128);
  6431. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.focusEvent, userData);
  6432. if (shouldCancel) {
  6433. e.preventDefault();
  6434. }
  6435. };
  6436. var eventHandler = {
  6437. target: JSEvents.findEventTarget(target),
  6438. allowsDeferredCalls: false,
  6439. eventTypeString: eventTypeString,
  6440. callbackfunc: callbackfunc,
  6441. handlerFunc: handlerFunc,
  6442. useCapture: useCapture
  6443. };
  6444. JSEvents.registerOrRemoveHandler(eventHandler);
  6445. },tick:function () {
  6446. if (window['performance'] && window['performance']['now']) return window['performance']['now']();
  6447. else return Date.now();
  6448. },registerDeviceOrientationEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6449. if (!JSEvents.deviceOrientationEvent) {
  6450. JSEvents.deviceOrientationEvent = _malloc( 40 );
  6451. }
  6452. var handlerFunc = function(event) {
  6453. var e = event || window.event;
  6454. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6455. HEAPF64[(((JSEvents.deviceOrientationEvent)+(8))>>3)]=e.alpha;
  6456. HEAPF64[(((JSEvents.deviceOrientationEvent)+(16))>>3)]=e.beta;
  6457. HEAPF64[(((JSEvents.deviceOrientationEvent)+(24))>>3)]=e.gamma;
  6458. HEAP32[(((JSEvents.deviceOrientationEvent)+(32))>>2)]=e.absolute;
  6459. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceOrientationEvent, userData);
  6460. if (shouldCancel) {
  6461. e.preventDefault();
  6462. }
  6463. };
  6464. var eventHandler = {
  6465. target: JSEvents.findEventTarget(target),
  6466. allowsDeferredCalls: false,
  6467. eventTypeString: eventTypeString,
  6468. callbackfunc: callbackfunc,
  6469. handlerFunc: handlerFunc,
  6470. useCapture: useCapture
  6471. };
  6472. JSEvents.registerOrRemoveHandler(eventHandler);
  6473. },registerDeviceMotionEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6474. if (!JSEvents.deviceMotionEvent) {
  6475. JSEvents.deviceMotionEvent = _malloc( 80 );
  6476. }
  6477. var handlerFunc = function(event) {
  6478. var e = event || window.event;
  6479. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6480. HEAPF64[(((JSEvents.deviceMotionEvent)+(8))>>3)]=e.acceleration.x;
  6481. HEAPF64[(((JSEvents.deviceMotionEvent)+(16))>>3)]=e.acceleration.y;
  6482. HEAPF64[(((JSEvents.deviceMotionEvent)+(24))>>3)]=e.acceleration.z;
  6483. HEAPF64[(((JSEvents.deviceMotionEvent)+(32))>>3)]=e.accelerationIncludingGravity.x;
  6484. HEAPF64[(((JSEvents.deviceMotionEvent)+(40))>>3)]=e.accelerationIncludingGravity.y;
  6485. HEAPF64[(((JSEvents.deviceMotionEvent)+(48))>>3)]=e.accelerationIncludingGravity.z;
  6486. HEAPF64[(((JSEvents.deviceMotionEvent)+(56))>>3)]=e.rotationRate.alpha;
  6487. HEAPF64[(((JSEvents.deviceMotionEvent)+(64))>>3)]=e.rotationRate.beta;
  6488. HEAPF64[(((JSEvents.deviceMotionEvent)+(72))>>3)]=e.rotationRate.gamma;
  6489. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceMotionEvent, userData);
  6490. if (shouldCancel) {
  6491. e.preventDefault();
  6492. }
  6493. };
  6494. var eventHandler = {
  6495. target: JSEvents.findEventTarget(target),
  6496. allowsDeferredCalls: false,
  6497. eventTypeString: eventTypeString,
  6498. callbackfunc: callbackfunc,
  6499. handlerFunc: handlerFunc,
  6500. useCapture: useCapture
  6501. };
  6502. JSEvents.registerOrRemoveHandler(eventHandler);
  6503. },screenOrientation:function () {
  6504. if (!window.screen) return undefined;
  6505. return window.screen.orientation || window.screen.mozOrientation || window.screen.webkitOrientation || window.screen.msOrientation;
  6506. },fillOrientationChangeEventData:function (eventStruct, e) {
  6507. var orientations = ["portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"];
  6508. var orientations2 = ["portrait", "portrait", "landscape", "landscape"];
  6509. var orientationString = JSEvents.screenOrientation();
  6510. var orientation = orientations.indexOf(orientationString);
  6511. if (orientation == -1) {
  6512. orientation = orientations2.indexOf(orientationString);
  6513. }
  6514. HEAP32[((eventStruct)>>2)]=1 << orientation;
  6515. HEAP32[(((eventStruct)+(4))>>2)]=window.orientation;
  6516. },registerOrientationChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6517. if (!JSEvents.orientationChangeEvent) {
  6518. JSEvents.orientationChangeEvent = _malloc( 8 );
  6519. }
  6520. if (!target) {
  6521. target = window.screen; // Orientation events need to be captured from 'window.screen' instead of 'window'
  6522. } else {
  6523. target = JSEvents.findEventTarget(target);
  6524. }
  6525. var handlerFunc = function(event) {
  6526. var e = event || window.event;
  6527. JSEvents.fillOrientationChangeEventData(JSEvents.orientationChangeEvent, e);
  6528. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.orientationChangeEvent, userData);
  6529. if (shouldCancel) {
  6530. e.preventDefault();
  6531. }
  6532. };
  6533. if (eventTypeString == "orientationchange" && window.screen.mozOrientation !== undefined) {
  6534. eventTypeString = "mozorientationchange";
  6535. }
  6536. var eventHandler = {
  6537. target: target,
  6538. allowsDeferredCalls: false,
  6539. eventTypeString: eventTypeString,
  6540. callbackfunc: callbackfunc,
  6541. handlerFunc: handlerFunc,
  6542. useCapture: useCapture
  6543. };
  6544. JSEvents.registerOrRemoveHandler(eventHandler);
  6545. },fullscreenEnabled:function () {
  6546. return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
  6547. },fillFullscreenChangeEventData:function (eventStruct, e) {
  6548. var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
  6549. var isFullscreen = !!fullscreenElement;
  6550. HEAP32[((eventStruct)>>2)]=isFullscreen;
  6551. HEAP32[(((eventStruct)+(4))>>2)]=JSEvents.fullscreenEnabled();
  6552. // If transitioning to fullscreen, report info about the element that is now fullscreen.
  6553. // If transitioning to windowed mode, report info about the element that just was fullscreen.
  6554. var reportedElement = isFullscreen ? fullscreenElement : JSEvents.previousFullscreenElement;
  6555. var nodeName = JSEvents.getNodeNameForTarget(reportedElement);
  6556. var id = (reportedElement && reportedElement.id) ? reportedElement.id : '';
  6557. stringToUTF8(nodeName, eventStruct + 8, 128);
  6558. stringToUTF8(id, eventStruct + 136, 128);
  6559. HEAP32[(((eventStruct)+(264))>>2)]=reportedElement ? reportedElement.clientWidth : 0;
  6560. HEAP32[(((eventStruct)+(268))>>2)]=reportedElement ? reportedElement.clientHeight : 0;
  6561. HEAP32[(((eventStruct)+(272))>>2)]=screen.width;
  6562. HEAP32[(((eventStruct)+(276))>>2)]=screen.height;
  6563. if (isFullscreen) {
  6564. JSEvents.previousFullscreenElement = fullscreenElement;
  6565. }
  6566. },registerFullscreenChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6567. if (!JSEvents.fullscreenChangeEvent) {
  6568. JSEvents.fullscreenChangeEvent = _malloc( 280 );
  6569. }
  6570. if (!target) {
  6571. target = document; // Fullscreen change events need to be captured from 'document' by default instead of 'window'
  6572. } else {
  6573. target = JSEvents.findEventTarget(target);
  6574. }
  6575. var handlerFunc = function(event) {
  6576. var e = event || window.event;
  6577. JSEvents.fillFullscreenChangeEventData(JSEvents.fullscreenChangeEvent, e);
  6578. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.fullscreenChangeEvent, userData);
  6579. if (shouldCancel) {
  6580. e.preventDefault();
  6581. }
  6582. };
  6583. var eventHandler = {
  6584. target: target,
  6585. allowsDeferredCalls: false,
  6586. eventTypeString: eventTypeString,
  6587. callbackfunc: callbackfunc,
  6588. handlerFunc: handlerFunc,
  6589. useCapture: useCapture
  6590. };
  6591. JSEvents.registerOrRemoveHandler(eventHandler);
  6592. },resizeCanvasForFullscreen:function (target, strategy) {
  6593. var restoreOldStyle = __registerRestoreOldStyle(target);
  6594. var cssWidth = strategy.softFullscreen ? window.innerWidth : screen.width;
  6595. var cssHeight = strategy.softFullscreen ? window.innerHeight : screen.height;
  6596. var rect = target.getBoundingClientRect();
  6597. var windowedCssWidth = rect.right - rect.left;
  6598. var windowedCssHeight = rect.bottom - rect.top;
  6599. var windowedRttWidth = target.width;
  6600. var windowedRttHeight = target.height;
  6601. if (strategy.scaleMode == 3) {
  6602. __setLetterbox(target, (cssHeight - windowedCssHeight) / 2, (cssWidth - windowedCssWidth) / 2);
  6603. cssWidth = windowedCssWidth;
  6604. cssHeight = windowedCssHeight;
  6605. } else if (strategy.scaleMode == 2) {
  6606. if (cssWidth*windowedRttHeight < windowedRttWidth*cssHeight) {
  6607. var desiredCssHeight = windowedRttHeight * cssWidth / windowedRttWidth;
  6608. __setLetterbox(target, (cssHeight - desiredCssHeight) / 2, 0);
  6609. cssHeight = desiredCssHeight;
  6610. } else {
  6611. var desiredCssWidth = windowedRttWidth * cssHeight / windowedRttHeight;
  6612. __setLetterbox(target, 0, (cssWidth - desiredCssWidth) / 2);
  6613. cssWidth = desiredCssWidth;
  6614. }
  6615. }
  6616. // If we are adding padding, must choose a background color or otherwise Chrome will give the
  6617. // padding a default white color. Do it only if user has not customized their own background color.
  6618. if (!target.style.backgroundColor) target.style.backgroundColor = 'black';
  6619. // IE11 does the same, but requires the color to be set in the document body.
  6620. if (!document.body.style.backgroundColor) document.body.style.backgroundColor = 'black'; // IE11
  6621. // Firefox always shows black letterboxes independent of style color.
  6622. target.style.width = cssWidth + 'px';
  6623. target.style.height = cssHeight + 'px';
  6624. if (strategy.filteringMode == 1) {
  6625. target.style.imageRendering = 'optimizeSpeed';
  6626. target.style.imageRendering = '-moz-crisp-edges';
  6627. target.style.imageRendering = '-o-crisp-edges';
  6628. target.style.imageRendering = '-webkit-optimize-contrast';
  6629. target.style.imageRendering = 'optimize-contrast';
  6630. target.style.imageRendering = 'crisp-edges';
  6631. target.style.imageRendering = 'pixelated';
  6632. }
  6633. var dpiScale = (strategy.canvasResolutionScaleMode == 2) ? window.devicePixelRatio : 1;
  6634. if (strategy.canvasResolutionScaleMode != 0) {
  6635. target.width = cssWidth * dpiScale;
  6636. target.height = cssHeight * dpiScale;
  6637. if (target.GLctxObject) target.GLctxObject.GLctx.viewport(0, 0, target.width, target.height);
  6638. }
  6639. return restoreOldStyle;
  6640. },requestFullscreen:function (target, strategy) {
  6641. // EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT + EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE is a mode where no extra logic is performed to the DOM elements.
  6642. if (strategy.scaleMode != 0 || strategy.canvasResolutionScaleMode != 0) {
  6643. JSEvents.resizeCanvasForFullscreen(target, strategy);
  6644. }
  6645. if (target.requestFullscreen) {
  6646. target.requestFullscreen();
  6647. } else if (target.msRequestFullscreen) {
  6648. target.msRequestFullscreen();
  6649. } else if (target.mozRequestFullScreen) {
  6650. target.mozRequestFullScreen();
  6651. } else if (target.mozRequestFullscreen) {
  6652. target.mozRequestFullscreen();
  6653. } else if (target.webkitRequestFullscreen) {
  6654. target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  6655. } else {
  6656. if (typeof JSEvents.fullscreenEnabled() === 'undefined') {
  6657. return -1;
  6658. } else {
  6659. return -3;
  6660. }
  6661. }
  6662. if (strategy.canvasResizedCallback) {
  6663. Module['dynCall_iiii'](strategy.canvasResizedCallback, 37, 0, strategy.canvasResizedCallbackUserData);
  6664. }
  6665. return 0;
  6666. },fillPointerlockChangeEventData:function (eventStruct, e) {
  6667. var pointerLockElement = document.pointerLockElement || document.mozPointerLockElement || document.webkitPointerLockElement || document.msPointerLockElement;
  6668. var isPointerlocked = !!pointerLockElement;
  6669. HEAP32[((eventStruct)>>2)]=isPointerlocked;
  6670. var nodeName = JSEvents.getNodeNameForTarget(pointerLockElement);
  6671. var id = (pointerLockElement && pointerLockElement.id) ? pointerLockElement.id : '';
  6672. stringToUTF8(nodeName, eventStruct + 4, 128);
  6673. stringToUTF8(id, eventStruct + 132, 128);
  6674. },registerPointerlockChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6675. if (!JSEvents.pointerlockChangeEvent) {
  6676. JSEvents.pointerlockChangeEvent = _malloc( 260 );
  6677. }
  6678. if (!target) {
  6679. target = document; // Pointer lock change events need to be captured from 'document' by default instead of 'window'
  6680. } else {
  6681. target = JSEvents.findEventTarget(target);
  6682. }
  6683. var handlerFunc = function(event) {
  6684. var e = event || window.event;
  6685. JSEvents.fillPointerlockChangeEventData(JSEvents.pointerlockChangeEvent, e);
  6686. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.pointerlockChangeEvent, userData);
  6687. if (shouldCancel) {
  6688. e.preventDefault();
  6689. }
  6690. };
  6691. var eventHandler = {
  6692. target: target,
  6693. allowsDeferredCalls: false,
  6694. eventTypeString: eventTypeString,
  6695. callbackfunc: callbackfunc,
  6696. handlerFunc: handlerFunc,
  6697. useCapture: useCapture
  6698. };
  6699. JSEvents.registerOrRemoveHandler(eventHandler);
  6700. },registerPointerlockErrorEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6701. if (!target) {
  6702. target = document; // Pointer lock events need to be captured from 'document' by default instead of 'window'
  6703. } else {
  6704. target = JSEvents.findEventTarget(target);
  6705. }
  6706. var handlerFunc = function(event) {
  6707. var e = event || window.event;
  6708. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6709. if (shouldCancel) {
  6710. e.preventDefault();
  6711. }
  6712. };
  6713. var eventHandler = {
  6714. target: target,
  6715. allowsDeferredCalls: false,
  6716. eventTypeString: eventTypeString,
  6717. callbackfunc: callbackfunc,
  6718. handlerFunc: handlerFunc,
  6719. useCapture: useCapture
  6720. };
  6721. JSEvents.registerOrRemoveHandler(eventHandler);
  6722. },requestPointerLock:function (target) {
  6723. if (target.requestPointerLock) {
  6724. target.requestPointerLock();
  6725. } else if (target.mozRequestPointerLock) {
  6726. target.mozRequestPointerLock();
  6727. } else if (target.webkitRequestPointerLock) {
  6728. target.webkitRequestPointerLock();
  6729. } else if (target.msRequestPointerLock) {
  6730. target.msRequestPointerLock();
  6731. } else {
  6732. // document.body is known to accept pointer lock, so use that to differentiate if the user passed a bad element,
  6733. // or if the whole browser just doesn't support the feature.
  6734. if (document.body.requestPointerLock || document.body.mozRequestPointerLock || document.body.webkitRequestPointerLock || document.body.msRequestPointerLock) {
  6735. return -3;
  6736. } else {
  6737. return -1;
  6738. }
  6739. }
  6740. return 0;
  6741. },fillVisibilityChangeEventData:function (eventStruct, e) {
  6742. var visibilityStates = [ "hidden", "visible", "prerender", "unloaded" ];
  6743. var visibilityState = visibilityStates.indexOf(document.visibilityState);
  6744. HEAP32[((eventStruct)>>2)]=document.hidden;
  6745. HEAP32[(((eventStruct)+(4))>>2)]=visibilityState;
  6746. },registerVisibilityChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6747. if (!JSEvents.visibilityChangeEvent) {
  6748. JSEvents.visibilityChangeEvent = _malloc( 8 );
  6749. }
  6750. if (!target) {
  6751. target = document; // Visibility change events need to be captured from 'document' by default instead of 'window'
  6752. } else {
  6753. target = JSEvents.findEventTarget(target);
  6754. }
  6755. var handlerFunc = function(event) {
  6756. var e = event || window.event;
  6757. JSEvents.fillVisibilityChangeEventData(JSEvents.visibilityChangeEvent, e);
  6758. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.visibilityChangeEvent, userData);
  6759. if (shouldCancel) {
  6760. e.preventDefault();
  6761. }
  6762. };
  6763. var eventHandler = {
  6764. target: target,
  6765. allowsDeferredCalls: false,
  6766. eventTypeString: eventTypeString,
  6767. callbackfunc: callbackfunc,
  6768. handlerFunc: handlerFunc,
  6769. useCapture: useCapture
  6770. };
  6771. JSEvents.registerOrRemoveHandler(eventHandler);
  6772. },registerTouchEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6773. if (!JSEvents.touchEvent) {
  6774. JSEvents.touchEvent = _malloc( 1684 );
  6775. }
  6776. target = JSEvents.findEventTarget(target);
  6777. var handlerFunc = function(event) {
  6778. var e = event || window.event;
  6779. var touches = {};
  6780. for(var i = 0; i < e.touches.length; ++i) {
  6781. var touch = e.touches[i];
  6782. touches[touch.identifier] = touch;
  6783. }
  6784. for(var i = 0; i < e.changedTouches.length; ++i) {
  6785. var touch = e.changedTouches[i];
  6786. touches[touch.identifier] = touch;
  6787. touch.changed = true;
  6788. }
  6789. for(var i = 0; i < e.targetTouches.length; ++i) {
  6790. var touch = e.targetTouches[i];
  6791. touches[touch.identifier].onTarget = true;
  6792. }
  6793. var ptr = JSEvents.touchEvent;
  6794. HEAP32[(((ptr)+(4))>>2)]=e.ctrlKey;
  6795. HEAP32[(((ptr)+(8))>>2)]=e.shiftKey;
  6796. HEAP32[(((ptr)+(12))>>2)]=e.altKey;
  6797. HEAP32[(((ptr)+(16))>>2)]=e.metaKey;
  6798. ptr += 20; // Advance to the start of the touch array.
  6799. var canvasRect = Module['canvas'] ? Module['canvas'].getBoundingClientRect() : undefined;
  6800. var targetRect = JSEvents.getBoundingClientRectOrZeros(target);
  6801. var numTouches = 0;
  6802. for(var i in touches) {
  6803. var t = touches[i];
  6804. HEAP32[((ptr)>>2)]=t.identifier;
  6805. HEAP32[(((ptr)+(4))>>2)]=t.screenX;
  6806. HEAP32[(((ptr)+(8))>>2)]=t.screenY;
  6807. HEAP32[(((ptr)+(12))>>2)]=t.clientX;
  6808. HEAP32[(((ptr)+(16))>>2)]=t.clientY;
  6809. HEAP32[(((ptr)+(20))>>2)]=t.pageX;
  6810. HEAP32[(((ptr)+(24))>>2)]=t.pageY;
  6811. HEAP32[(((ptr)+(28))>>2)]=t.changed;
  6812. HEAP32[(((ptr)+(32))>>2)]=t.onTarget;
  6813. if (canvasRect) {
  6814. HEAP32[(((ptr)+(44))>>2)]=t.clientX - canvasRect.left;
  6815. HEAP32[(((ptr)+(48))>>2)]=t.clientY - canvasRect.top;
  6816. } else {
  6817. HEAP32[(((ptr)+(44))>>2)]=0;
  6818. HEAP32[(((ptr)+(48))>>2)]=0;
  6819. }
  6820. HEAP32[(((ptr)+(36))>>2)]=t.clientX - targetRect.left;
  6821. HEAP32[(((ptr)+(40))>>2)]=t.clientY - targetRect.top;
  6822. ptr += 52;
  6823. if (++numTouches >= 32) {
  6824. break;
  6825. }
  6826. }
  6827. HEAP32[((JSEvents.touchEvent)>>2)]=numTouches;
  6828. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.touchEvent, userData);
  6829. if (shouldCancel) {
  6830. e.preventDefault();
  6831. }
  6832. };
  6833. var eventHandler = {
  6834. target: target,
  6835. allowsDeferredCalls: false, // XXX Currently disabled, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=966493
  6836. // Once the above bug is resolved, enable the following condition if possible:
  6837. // allowsDeferredCalls: eventTypeString == 'touchstart',
  6838. eventTypeString: eventTypeString,
  6839. callbackfunc: callbackfunc,
  6840. handlerFunc: handlerFunc,
  6841. useCapture: useCapture
  6842. };
  6843. JSEvents.registerOrRemoveHandler(eventHandler);
  6844. },fillGamepadEventData:function (eventStruct, e) {
  6845. HEAPF64[((eventStruct)>>3)]=e.timestamp;
  6846. for(var i = 0; i < e.axes.length; ++i) {
  6847. HEAPF64[(((eventStruct+i*8)+(16))>>3)]=e.axes[i];
  6848. }
  6849. for(var i = 0; i < e.buttons.length; ++i) {
  6850. if (typeof(e.buttons[i]) === 'object') {
  6851. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i].value;
  6852. } else {
  6853. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i];
  6854. }
  6855. }
  6856. for(var i = 0; i < e.buttons.length; ++i) {
  6857. if (typeof(e.buttons[i]) === 'object') {
  6858. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i].pressed;
  6859. } else {
  6860. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i] == 1.0;
  6861. }
  6862. }
  6863. HEAP32[(((eventStruct)+(1296))>>2)]=e.connected;
  6864. HEAP32[(((eventStruct)+(1300))>>2)]=e.index;
  6865. HEAP32[(((eventStruct)+(8))>>2)]=e.axes.length;
  6866. HEAP32[(((eventStruct)+(12))>>2)]=e.buttons.length;
  6867. stringToUTF8(e.id, eventStruct + 1304, 64);
  6868. stringToUTF8(e.mapping, eventStruct + 1368, 64);
  6869. },registerGamepadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6870. if (!JSEvents.gamepadEvent) {
  6871. JSEvents.gamepadEvent = _malloc( 1432 );
  6872. }
  6873. var handlerFunc = function(event) {
  6874. var e = event || window.event;
  6875. JSEvents.fillGamepadEventData(JSEvents.gamepadEvent, e.gamepad);
  6876. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.gamepadEvent, userData);
  6877. if (shouldCancel) {
  6878. e.preventDefault();
  6879. }
  6880. };
  6881. var eventHandler = {
  6882. target: JSEvents.findEventTarget(target),
  6883. allowsDeferredCalls: true,
  6884. eventTypeString: eventTypeString,
  6885. callbackfunc: callbackfunc,
  6886. handlerFunc: handlerFunc,
  6887. useCapture: useCapture
  6888. };
  6889. JSEvents.registerOrRemoveHandler(eventHandler);
  6890. },registerBeforeUnloadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6891. var handlerFunc = function(event) {
  6892. var e = event || window.event;
  6893. var confirmationMessage = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6894. if (confirmationMessage) {
  6895. confirmationMessage = Pointer_stringify(confirmationMessage);
  6896. }
  6897. if (confirmationMessage) {
  6898. e.preventDefault();
  6899. e.returnValue = confirmationMessage;
  6900. return confirmationMessage;
  6901. }
  6902. };
  6903. var eventHandler = {
  6904. target: JSEvents.findEventTarget(target),
  6905. allowsDeferredCalls: false,
  6906. eventTypeString: eventTypeString,
  6907. callbackfunc: callbackfunc,
  6908. handlerFunc: handlerFunc,
  6909. useCapture: useCapture
  6910. };
  6911. JSEvents.registerOrRemoveHandler(eventHandler);
  6912. },battery:function () { return navigator.battery || navigator.mozBattery || navigator.webkitBattery; },fillBatteryEventData:function (eventStruct, e) {
  6913. HEAPF64[((eventStruct)>>3)]=e.chargingTime;
  6914. HEAPF64[(((eventStruct)+(8))>>3)]=e.dischargingTime;
  6915. HEAPF64[(((eventStruct)+(16))>>3)]=e.level;
  6916. HEAP32[(((eventStruct)+(24))>>2)]=e.charging;
  6917. },registerBatteryEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6918. if (!JSEvents.batteryEvent) {
  6919. JSEvents.batteryEvent = _malloc( 32 );
  6920. }
  6921. var handlerFunc = function(event) {
  6922. var e = event || window.event;
  6923. JSEvents.fillBatteryEventData(JSEvents.batteryEvent, JSEvents.battery());
  6924. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.batteryEvent, userData);
  6925. if (shouldCancel) {
  6926. e.preventDefault();
  6927. }
  6928. };
  6929. var eventHandler = {
  6930. target: JSEvents.findEventTarget(target),
  6931. allowsDeferredCalls: false,
  6932. eventTypeString: eventTypeString,
  6933. callbackfunc: callbackfunc,
  6934. handlerFunc: handlerFunc,
  6935. useCapture: useCapture
  6936. };
  6937. JSEvents.registerOrRemoveHandler(eventHandler);
  6938. },registerWebGlEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6939. if (!target) {
  6940. target = Module['canvas'];
  6941. }
  6942. var handlerFunc = function(event) {
  6943. var e = event || window.event;
  6944. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6945. if (shouldCancel) {
  6946. e.preventDefault();
  6947. }
  6948. };
  6949. var eventHandler = {
  6950. target: JSEvents.findEventTarget(target),
  6951. allowsDeferredCalls: false,
  6952. eventTypeString: eventTypeString,
  6953. callbackfunc: callbackfunc,
  6954. handlerFunc: handlerFunc,
  6955. useCapture: useCapture
  6956. };
  6957. JSEvents.registerOrRemoveHandler(eventHandler);
  6958. }};function __emscripten_sample_gamepad_data() {
  6959. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  6960. if (!JSEvents.numGamepadsConnected) return;
  6961. // 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.
  6962. if (Browser.mainLoop.currentFrameNumber !== JSEvents.lastGamepadStateFrame || !Browser.mainLoop.currentFrameNumber) {
  6963. JSEvents.lastGamepadState = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ? navigator.webkitGetGamepads : null);
  6964. JSEvents.lastGamepadStateFrame = Browser.mainLoop.currentFrameNumber;
  6965. }
  6966. }function _emscripten_get_gamepad_status(index, gamepadState) {
  6967. __emscripten_sample_gamepad_data();
  6968. if (!JSEvents.lastGamepadState) return -1;
  6969. // INVALID_PARAM is returned on a Gamepad index that never was there.
  6970. if (index < 0 || index >= JSEvents.lastGamepadState.length) return -5;
  6971. // NO_DATA is returned on a Gamepad index that was removed.
  6972. // For previously disconnected gamepads there should be an empty slot (null/undefined/false) at the index.
  6973. // This is because gamepads must keep their original position in the array.
  6974. // For example, removing the first of two gamepads produces [null/undefined/false, gamepad].
  6975. if (!JSEvents.lastGamepadState[index]) return -7;
  6976. JSEvents.fillGamepadEventData(gamepadState, JSEvents.lastGamepadState[index]);
  6977. return 0;
  6978. }
  6979. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  6980. function _emscripten_glTexParameterfv(target, pname, params) {
  6981. var param = HEAPF32[((params)>>2)];
  6982. GLctx.texParameterf(target, pname, param);
  6983. }
  6984. function _emscripten_glLinkProgram(program) {
  6985. GLctx.linkProgram(GL.programs[program]);
  6986. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  6987. GL.populateUniformTable(program);
  6988. }
  6989. function _emscripten_glUniform3f(location, v0, v1, v2) {
  6990. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  6991. }
  6992. function _emscripten_glGetObjectParameterivARB() {
  6993. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  6994. }
  6995. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  6996. function _emscripten_glUniform3i(location, v0, v1, v2) {
  6997. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  6998. }
  6999. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7000. function _glCreateShader(shaderType) {
  7001. var id = GL.getNewId(GL.shaders);
  7002. GL.shaders[id] = GLctx.createShader(shaderType);
  7003. return id;
  7004. }
  7005. function _glUniform1i(location, v0) {
  7006. GLctx.uniform1i(GL.uniforms[location], v0);
  7007. }
  7008. function _emscripten_glBindAttribLocation(program, index, name) {
  7009. name = Pointer_stringify(name);
  7010. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7011. }
  7012. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7013. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7014. }
  7015. function _glDisable(x0) { GLctx['disable'](x0) }
  7016. function _emscripten_glEnableVertexAttribArray(index) {
  7017. GLctx.enableVertexAttribArray(index);
  7018. }
  7019. Module["_memset"] = _memset;
  7020. function _glfwMakeContextCurrent(winid) {}
  7021. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7022. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7023. return 0;
  7024. }
  7025. function ___lock() {}
  7026. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7027. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7028. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7029. if (!pointer) {
  7030. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7031. // if pointer == null, issue a GL error to notify user about it.
  7032. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7033. return;
  7034. }
  7035. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7036. }
  7037. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7038. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7039. function _emscripten_glNormalPointer() {
  7040. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7041. }
  7042. var _emscripten_GetProcAddress=undefined;
  7043. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7044. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7045. EGL.errorCode = code;
  7046. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7047. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7048. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7049. return 0;
  7050. }
  7051. // TODO: read attribList.
  7052. if ((!config || !config_size) && !numConfigs) {
  7053. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7054. return 0;
  7055. }
  7056. if (numConfigs) {
  7057. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7058. }
  7059. if (config && config_size > 0) {
  7060. HEAP32[((config)>>2)]=62002;
  7061. }
  7062. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7063. return 1;
  7064. }};function _eglGetProcAddress(name_) {
  7065. return _emscripten_GetProcAddress(name_);
  7066. }
  7067. function _glDeleteProgram(id) {
  7068. if (!id) return;
  7069. var program = GL.programs[id];
  7070. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7071. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7072. return;
  7073. }
  7074. GLctx.deleteProgram(program);
  7075. program.name = 0;
  7076. GL.programs[id] = null;
  7077. GL.programInfos[id] = null;
  7078. }
  7079. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7080. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7081. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7082. return -1;
  7083. }
  7084. return 0;
  7085. }
  7086. function _glAttachShader(program, shader) {
  7087. GLctx.attachShader(GL.programs[program],
  7088. GL.shaders[shader]);
  7089. }
  7090. function _glfwGetPrimaryMonitor() {
  7091. return 1;
  7092. }
  7093. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7094. if (!params) {
  7095. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7096. // if params == null, issue a GL error to notify user about it.
  7097. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7098. return;
  7099. }
  7100. var data = GLctx.getVertexAttrib(index, pname);
  7101. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7102. HEAP32[((params)>>2)]=data["name"];
  7103. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7104. switch (type) {
  7105. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7106. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7107. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7108. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7109. }
  7110. } else {
  7111. for (var i = 0; i < data.length; i++) {
  7112. switch (type) {
  7113. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7114. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7115. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7116. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7117. }
  7118. }
  7119. }
  7120. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7121. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7122. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7123. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7124. }
  7125. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7126. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7127. return 0;
  7128. }
  7129. function _emscripten_glDeleteShader(id) {
  7130. if (!id) return;
  7131. var shader = GL.shaders[id];
  7132. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7133. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7134. return;
  7135. }
  7136. GLctx.deleteShader(shader);
  7137. GL.shaders[id] = null;
  7138. }
  7139. function _emscripten_glVertexPointer(){ throw 'Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.'; }
  7140. function _emscripten_glDeleteBuffers(n, buffers) {
  7141. for (var i = 0; i < n; i++) {
  7142. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7143. var buffer = GL.buffers[id];
  7144. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7145. // correspond to existing buffer objects."
  7146. if (!buffer) continue;
  7147. GLctx.deleteBuffer(buffer);
  7148. buffer.name = 0;
  7149. GL.buffers[id] = null;
  7150. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7151. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7152. }
  7153. }
  7154. function _emscripten_glTexParameteriv(target, pname, params) {
  7155. var param = HEAP32[((params)>>2)];
  7156. GLctx.texParameteri(target, pname, param);
  7157. }
  7158. function _glDrawElements(mode, count, type, indices) {
  7159. GLctx.drawElements(mode, count, type, indices);
  7160. }
  7161. function _glfwTerminate() {
  7162. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7163. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7164. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7165. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7166. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7167. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7168. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7169. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7170. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7171. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7172. Module["canvas"].width = Module["canvas"].height = 1;
  7173. GLFW.windows = null;
  7174. GLFW.active = null;
  7175. }
  7176. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7177. var view;
  7178. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7179. // avoid allocation when uploading few enough uniforms
  7180. view = GL.miniTempBufferViews[4*count-1];
  7181. for (var i = 0; i < 4*count; i += 4) {
  7182. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7183. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7184. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7185. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7186. }
  7187. } else {
  7188. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7189. }
  7190. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7191. }
  7192. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7193. try {
  7194. // open
  7195. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7196. var stream = FS.open(pathname, flags, mode);
  7197. return stream.fd;
  7198. } catch (e) {
  7199. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7200. return -e.errno;
  7201. }
  7202. }
  7203. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7204. try {
  7205. // close
  7206. var stream = SYSCALLS.getStreamFromFD();
  7207. FS.close(stream);
  7208. return 0;
  7209. } catch (e) {
  7210. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7211. return -e.errno;
  7212. }
  7213. }
  7214. function _llvm_stacksave() {
  7215. var self = _llvm_stacksave;
  7216. if (!self.LLVM_SAVEDSTACKS) {
  7217. self.LLVM_SAVEDSTACKS = [];
  7218. }
  7219. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7220. return self.LLVM_SAVEDSTACKS.length-1;
  7221. }
  7222. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7223. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7224. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7225. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7226. }
  7227. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7228. var view;
  7229. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7230. // avoid allocation when uploading few enough uniforms
  7231. view = GL.miniTempBufferViews[16*count-1];
  7232. for (var i = 0; i < 16*count; i += 16) {
  7233. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7234. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7235. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7236. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7237. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7238. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7239. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7240. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7241. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7242. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7243. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7244. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7245. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7246. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7247. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7248. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7249. }
  7250. } else {
  7251. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7252. }
  7253. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7254. }
  7255. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7256. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7257. }
  7258. function _emscripten_glEnableClientState() {
  7259. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7260. }
  7261. function _emscripten_glGetPointerv() {
  7262. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7263. }
  7264. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7265. try {
  7266. // llseek
  7267. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7268. var offset = offset_low;
  7269. assert(offset_high === 0);
  7270. FS.llseek(stream, offset, whence);
  7271. HEAP32[((result)>>2)]=stream.position;
  7272. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7273. return 0;
  7274. } catch (e) {
  7275. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7276. return -e.errno;
  7277. }
  7278. }
  7279. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7280. try {
  7281. // writev
  7282. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7283. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7284. } catch (e) {
  7285. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7286. return -e.errno;
  7287. }
  7288. }
  7289. function _emscripten_glUniform1i(location, v0) {
  7290. GLctx.uniform1i(GL.uniforms[location], v0);
  7291. }
  7292. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7293. try {
  7294. // readv
  7295. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7296. return SYSCALLS.doReadv(stream, iov, iovcnt);
  7297. } catch (e) {
  7298. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7299. return -e.errno;
  7300. }
  7301. }
  7302. function _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7303. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7304. Module["_i64Subtract"] = _i64Subtract;
  7305. Module["_i64Add"] = _i64Add;
  7306. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7307. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7308. return 0;
  7309. }
  7310. function _glUseProgram(program) {
  7311. GLctx.useProgram(program ? GL.programs[program] : null);
  7312. }
  7313. function _emscripten_glDisableVertexAttribArray(index) {
  7314. GLctx.disableVertexAttribArray(index);
  7315. }
  7316. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7317. function _emscripten_glFinish() { GLctx['finish']() }
  7318. function _glDrawArrays(mode, first, count) {
  7319. GLctx.drawArrays(mode, first, count);
  7320. }
  7321. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7322. function _emscripten_get_num_gamepads() {
  7323. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7324. if (!JSEvents.numGamepadsConnected) return 0;
  7325. __emscripten_sample_gamepad_data();
  7326. if (!JSEvents.lastGamepadState) return -1;
  7327. return JSEvents.lastGamepadState.length;
  7328. }
  7329. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  7330. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  7331. if (log === null) log = '(unknown error)';
  7332. if (maxLength > 0 && infoLog) {
  7333. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7334. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7335. } else {
  7336. if (length) HEAP32[((length)>>2)]=0;
  7337. }
  7338. }
  7339. function _emscripten_glUniform4iv(location, count, value) {
  7340. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7341. }
  7342. function _glClear(x0) { GLctx['clear'](x0) }
  7343. 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.'; }
  7344. function _emscripten_glUniform3fv(location, count, value) {
  7345. var view;
  7346. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7347. // avoid allocation when uploading few enough uniforms
  7348. view = GL.miniTempBufferViews[3*count-1];
  7349. for (var i = 0; i < 3*count; i += 3) {
  7350. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7351. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7352. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7353. }
  7354. } else {
  7355. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7356. }
  7357. GLctx.uniform3fv(GL.uniforms[location], view);
  7358. }
  7359. function _emscripten_glIsTexture(texture) {
  7360. var texture = GL.textures[texture];
  7361. if (!texture) return 0;
  7362. return GLctx.isTexture(texture);
  7363. }
  7364. function _glEnableVertexAttribArray(index) {
  7365. GLctx.enableVertexAttribArray(index);
  7366. }
  7367. function _emscripten_glAttachShader(program, shader) {
  7368. GLctx.attachShader(GL.programs[program],
  7369. GL.shaders[shader]);
  7370. }
  7371. function _glUniform4f(location, v0, v1, v2, v3) {
  7372. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7373. }
  7374. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7375. if (!target) target = '#canvas';
  7376. target = JSEvents.findEventTarget(target);
  7377. if (!target) return -4;
  7378. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7379. return -1;
  7380. }
  7381. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7382. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7383. if (!canPerformRequests) {
  7384. if (deferUntilInEventHandler) {
  7385. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7386. return 1;
  7387. } else {
  7388. return -2;
  7389. }
  7390. }
  7391. return JSEvents.requestPointerLock(target);
  7392. }
  7393. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  7394. function _glfwCreateWindow(width, height, title, monitor, share) {
  7395. return GLFW.createWindow(width, height, title, monitor, share);
  7396. }
  7397. function _glfwDefaultWindowHints() {
  7398. GLFW.hints = GLFW.defaultHints;
  7399. }
  7400. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7401. function _emscripten_glDetachShader(program, shader) {
  7402. GLctx.detachShader(GL.programs[program],
  7403. GL.shaders[shader]);
  7404. }
  7405. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7406. for (var i = 0; i < n; i++) {
  7407. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7408. GLctx['deleteVertexArray'](GL.vaos[id]);
  7409. GL.vaos[id] = null;
  7410. }
  7411. }
  7412. function _glfwInit() {
  7413. if (GLFW.windows) return 1; // GL_TRUE
  7414. GLFW.initialTime = GLFW.getTime();
  7415. GLFW.hints = GLFW.defaultHints;
  7416. GLFW.windows = new Array()
  7417. GLFW.active = null;
  7418. window.addEventListener("keydown", GLFW.onKeydown, true);
  7419. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7420. window.addEventListener("keyup", GLFW.onKeyup, true);
  7421. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7422. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7423. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7424. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7425. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7426. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7427. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7428. Browser.resizeListeners.push(function(width, height) {
  7429. GLFW.onCanvasResize(width, height);
  7430. });
  7431. return 1; // GL_TRUE
  7432. }
  7433. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7434. if (!params) {
  7435. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7436. // if p == null, issue a GL error to notify user about it.
  7437. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7438. return;
  7439. }
  7440. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7441. }
  7442. function _glfwSwapBuffers(winid) {
  7443. GLFW.swapBuffers(winid);
  7444. }
  7445. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7446. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7447. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7448. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7449. }
  7450. function _glDisableVertexAttribArray(index) {
  7451. GLctx.disableVertexAttribArray(index);
  7452. }
  7453. function _emscripten_glUseProgram(program) {
  7454. GLctx.useProgram(program ? GL.programs[program] : null);
  7455. }
  7456. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7457. function _emscripten_glUniform2fv(location, count, value) {
  7458. var view;
  7459. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7460. // avoid allocation when uploading few enough uniforms
  7461. view = GL.miniTempBufferViews[2*count-1];
  7462. for (var i = 0; i < 2*count; i += 2) {
  7463. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7464. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7465. }
  7466. } else {
  7467. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7468. }
  7469. GLctx.uniform2fv(GL.uniforms[location], view);
  7470. }
  7471. function _glfwSwapInterval(interval) {
  7472. 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.
  7473. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7474. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7475. }
  7476. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7477. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7478. if (log === null) log = '(unknown error)';
  7479. if (maxLength > 0 && infoLog) {
  7480. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7481. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7482. } else {
  7483. if (length) HEAP32[((length)>>2)]=0;
  7484. }
  7485. }
  7486. 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.'; }
  7487. function _abort() {
  7488. Module['abort']();
  7489. }
  7490. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7491. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7492. GL.renderbuffers[renderbuffer]);
  7493. }
  7494. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7495. for (var i = 0; i < n; ++i) {
  7496. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7497. var framebuffer = GL.framebuffers[id];
  7498. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7499. GLctx.deleteFramebuffer(framebuffer);
  7500. framebuffer.name = 0;
  7501. GL.framebuffers[id] = null;
  7502. }
  7503. }
  7504. function _emscripten_glIsBuffer(buffer) {
  7505. var b = GL.buffers[buffer];
  7506. if (!b) return 0;
  7507. return GLctx.isBuffer(b);
  7508. }
  7509. function _emscripten_glUniform2iv(location, count, value) {
  7510. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7511. }
  7512. function _emscripten_glVertexAttrib1fv(index, v) {
  7513. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7514. }
  7515. function _glEnable(x0) { GLctx['enable'](x0) }
  7516. function _emscripten_glGenFramebuffers(n, ids) {
  7517. for (var i = 0; i < n; ++i) {
  7518. var framebuffer = GLctx.createFramebuffer();
  7519. if (!framebuffer) {
  7520. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7521. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  7522. return;
  7523. }
  7524. var id = GL.getNewId(GL.framebuffers);
  7525. framebuffer.name = id;
  7526. GL.framebuffers[id] = framebuffer;
  7527. HEAP32[(((ids)+(i*4))>>2)]=id;
  7528. }
  7529. }
  7530. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7531. function roundedToNextMultipleOf(x, y) {
  7532. return Math.floor((x + y - 1) / y) * y
  7533. }
  7534. var plainRowSize = width * sizePerPixel;
  7535. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7536. return (height <= 0) ? 0 :
  7537. ((height - 1) * alignedRowSize + plainRowSize);
  7538. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7539. var sizePerPixel;
  7540. var numChannels;
  7541. switch(format) {
  7542. case 0x1906 /* GL_ALPHA */:
  7543. case 0x1909 /* GL_LUMINANCE */:
  7544. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7545. numChannels = 1;
  7546. break;
  7547. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7548. numChannels = 2;
  7549. break;
  7550. case 0x1907 /* GL_RGB */:
  7551. case 0x8C40 /* GL_SRGB_EXT */:
  7552. numChannels = 3;
  7553. break;
  7554. case 0x1908 /* GL_RGBA */:
  7555. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7556. numChannels = 4;
  7557. break;
  7558. default:
  7559. GL.recordError(0x0500); // GL_INVALID_ENUM
  7560. return null;
  7561. }
  7562. switch (type) {
  7563. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7564. sizePerPixel = numChannels*1;
  7565. break;
  7566. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7567. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7568. sizePerPixel = numChannels*2;
  7569. break;
  7570. case 0x1405 /* GL_UNSIGNED_INT */:
  7571. case 0x1406 /* GL_FLOAT */:
  7572. sizePerPixel = numChannels*4;
  7573. break;
  7574. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7575. sizePerPixel = 4;
  7576. break;
  7577. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7578. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7579. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7580. sizePerPixel = 2;
  7581. break;
  7582. default:
  7583. GL.recordError(0x0500); // GL_INVALID_ENUM
  7584. return null;
  7585. }
  7586. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7587. switch(type) {
  7588. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7589. return HEAPU8.subarray((pixels),(pixels+bytes));
  7590. case 0x1406 /* GL_FLOAT */:
  7591. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7592. case 0x1405 /* GL_UNSIGNED_INT */:
  7593. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7594. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7595. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7596. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7597. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7598. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7599. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7600. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7601. default:
  7602. GL.recordError(0x0500); // GL_INVALID_ENUM
  7603. return null;
  7604. }
  7605. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7606. var pixelData = null;
  7607. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7608. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7609. }
  7610. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7611. var _emscripten_asm_const_int=true;
  7612. function _emscripten_glUniform2f(location, v0, v1) {
  7613. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7614. }
  7615. function _glGetAttribLocation(program, name) {
  7616. program = GL.programs[program];
  7617. name = Pointer_stringify(name);
  7618. return GLctx.getAttribLocation(program, name);
  7619. }
  7620. function _glfwWindowHint(target, hint) {
  7621. GLFW.hints[target] = hint;
  7622. }
  7623. function _emscripten_glUniform2i(location, v0, v1) {
  7624. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7625. }
  7626. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7627. function _glCreateProgram() {
  7628. var id = GL.getNewId(GL.programs);
  7629. var program = GLctx.createProgram();
  7630. program.name = id;
  7631. GL.programs[id] = program;
  7632. return id;
  7633. }
  7634. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7635. for (var i = 0; i < n; i++) {
  7636. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7637. var renderbuffer = GL.renderbuffers[id];
  7638. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7639. GLctx.deleteRenderbuffer(renderbuffer);
  7640. renderbuffer.name = 0;
  7641. GL.renderbuffers[id] = null;
  7642. }
  7643. }
  7644. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7645. if (!data) {
  7646. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7647. // if data == null, issue a GL error to notify user about it.
  7648. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7649. return;
  7650. }
  7651. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7652. }
  7653. function emscriptenWebGLGetUniform(program, location, params, type) {
  7654. if (!params) {
  7655. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7656. // if params == null, issue a GL error to notify user about it.
  7657. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7658. return;
  7659. }
  7660. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7661. if (typeof data == 'number' || typeof data == 'boolean') {
  7662. switch (type) {
  7663. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7664. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7665. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7666. }
  7667. } else {
  7668. for (var i = 0; i < data.length; i++) {
  7669. switch (type) {
  7670. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7671. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7672. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7673. }
  7674. }
  7675. }
  7676. }function _emscripten_glGetUniformiv(program, location, params) {
  7677. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7678. }
  7679. function _emscripten_glDepthMask(flag) {
  7680. GLctx.depthMask(!!flag);
  7681. }
  7682. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  7683. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7684. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7685. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7686. if (!target) target = document;
  7687. else {
  7688. target = JSEvents.findEventTarget(target);
  7689. if (!target) return -4;
  7690. }
  7691. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7692. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7693. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7694. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7695. return 0;
  7696. }
  7697. Module["___muldsi3"] = ___muldsi3;
  7698. Module["___muldi3"] = ___muldi3;
  7699. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7700. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7701. HEAP32[((range)>>2)]=result.rangeMin;
  7702. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7703. HEAP32[((precision)>>2)]=result.precision;
  7704. }
  7705. function _emscripten_glUniform1fv(location, count, value) {
  7706. var view;
  7707. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7708. // avoid allocation when uploading few enough uniforms
  7709. view = GL.miniTempBufferViews[count-1];
  7710. for (var i = 0; i < count; ++i) {
  7711. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7712. }
  7713. } else {
  7714. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7715. }
  7716. GLctx.uniform1fv(GL.uniforms[location], view);
  7717. }
  7718. function _glDeleteBuffers(n, buffers) {
  7719. for (var i = 0; i < n; i++) {
  7720. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7721. var buffer = GL.buffers[id];
  7722. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7723. // correspond to existing buffer objects."
  7724. if (!buffer) continue;
  7725. GLctx.deleteBuffer(buffer);
  7726. buffer.name = 0;
  7727. GL.buffers[id] = null;
  7728. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7729. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7730. }
  7731. }
  7732. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7733. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7734. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7735. return 0;
  7736. }
  7737. function _emscripten_glBindProgramARB() {
  7738. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7739. }
  7740. function _emscripten_glBindTexture(target, texture) {
  7741. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7742. }
  7743. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7744. function _emscripten_glDeleteProgram(id) {
  7745. if (!id) return;
  7746. var program = GL.programs[id];
  7747. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7748. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7749. return;
  7750. }
  7751. GLctx.deleteProgram(program);
  7752. program.name = 0;
  7753. GL.programs[id] = null;
  7754. GL.programInfos[id] = null;
  7755. }
  7756. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7757. function _emscripten_glVertexAttrib3fv(index, v) {
  7758. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7759. }
  7760. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7761. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7762. program = GL.programs[program];
  7763. var info = GLctx.getActiveAttrib(program, index);
  7764. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7765. if (bufSize > 0 && name) {
  7766. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7767. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7768. } else {
  7769. if (length) HEAP32[((length)>>2)]=0;
  7770. }
  7771. if (size) HEAP32[((size)>>2)]=info.size;
  7772. if (type) HEAP32[((type)>>2)]=info.type;
  7773. }
  7774. function _emscripten_glIsFramebuffer(framebuffer) {
  7775. var fb = GL.framebuffers[framebuffer];
  7776. if (!fb) return 0;
  7777. return GLctx.isFramebuffer(fb);
  7778. }
  7779. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7780. function _glfwGetCursorPos(winid, x, y) {
  7781. GLFW.getCursorPos(winid, x, y);
  7782. }
  7783. function _emscripten_glGetString(name_) {
  7784. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7785. var ret;
  7786. switch(name_) {
  7787. case 0x1F00 /* GL_VENDOR */:
  7788. case 0x1F01 /* GL_RENDERER */:
  7789. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7790. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7791. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7792. break;
  7793. case 0x1F02 /* GL_VERSION */:
  7794. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7795. // return GLES version string corresponding to the version of the WebGL context
  7796. {
  7797. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7798. }
  7799. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7800. break;
  7801. case 0x1F03 /* GL_EXTENSIONS */:
  7802. var exts = GLctx.getSupportedExtensions();
  7803. var gl_exts = [];
  7804. for (var i = 0; i < exts.length; ++i) {
  7805. gl_exts.push(exts[i]);
  7806. gl_exts.push("GL_" + exts[i]);
  7807. }
  7808. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7809. break;
  7810. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7811. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7812. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7813. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7814. var ver_num = glslVersion.match(ver_re);
  7815. if (ver_num !== null) {
  7816. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7817. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7818. }
  7819. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7820. break;
  7821. default:
  7822. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7823. return 0;
  7824. }
  7825. GL.stringCache[name_] = ret;
  7826. return ret;
  7827. }
  7828. function _emscripten_glGetAttribLocation(program, name) {
  7829. program = GL.programs[program];
  7830. name = Pointer_stringify(name);
  7831. return GLctx.getAttribLocation(program, name);
  7832. }
  7833. function _emscripten_glRotatef() {
  7834. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7835. }
  7836. function emscriptenWebGLGet(name_, p, type) {
  7837. // Guard against user passing a null pointer.
  7838. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7839. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7840. // better to report an error instead of doing anything random.
  7841. if (!p) {
  7842. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7843. return;
  7844. }
  7845. var ret = undefined;
  7846. switch(name_) { // Handle a few trivial GLES values
  7847. case 0x8DFA: // GL_SHADER_COMPILER
  7848. ret = 1;
  7849. break;
  7850. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7851. if (type !== 'Integer' && type !== 'Integer64') {
  7852. GL.recordError(0x0500); // GL_INVALID_ENUM
  7853. }
  7854. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7855. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7856. ret = 0;
  7857. break;
  7858. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7859. // WebGL doesn't have GL_NUM_COMPRESSED_TEXTURE_FORMATS (it's obsolete since GL_COMPRESSED_TEXTURE_FORMATS returns a JS array that can be queried for length),
  7860. // so implement it ourselves to allow C++ GLES2 code get the length.
  7861. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7862. ret = formats.length;
  7863. break;
  7864. }
  7865. if (ret === undefined) {
  7866. var result = GLctx.getParameter(name_);
  7867. switch (typeof(result)) {
  7868. case "number":
  7869. ret = result;
  7870. break;
  7871. case "boolean":
  7872. ret = result ? 1 : 0;
  7873. break;
  7874. case "string":
  7875. GL.recordError(0x0500); // GL_INVALID_ENUM
  7876. return;
  7877. case "object":
  7878. if (result === null) {
  7879. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7880. // can mean an invalid name_, which we need to report as an error
  7881. switch(name_) {
  7882. case 0x8894: // ARRAY_BUFFER_BINDING
  7883. case 0x8B8D: // CURRENT_PROGRAM
  7884. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7885. case 0x8CA6: // FRAMEBUFFER_BINDING
  7886. case 0x8CA7: // RENDERBUFFER_BINDING
  7887. case 0x8069: // TEXTURE_BINDING_2D
  7888. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7889. ret = 0;
  7890. break;
  7891. }
  7892. default: {
  7893. GL.recordError(0x0500); // GL_INVALID_ENUM
  7894. return;
  7895. }
  7896. }
  7897. } else if (result instanceof Float32Array ||
  7898. result instanceof Uint32Array ||
  7899. result instanceof Int32Array ||
  7900. result instanceof Array) {
  7901. for (var i = 0; i < result.length; ++i) {
  7902. switch (type) {
  7903. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7904. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7905. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7906. default: throw 'internal glGet error, bad type: ' + type;
  7907. }
  7908. }
  7909. return;
  7910. } else if (result instanceof WebGLBuffer ||
  7911. result instanceof WebGLProgram ||
  7912. result instanceof WebGLFramebuffer ||
  7913. result instanceof WebGLRenderbuffer ||
  7914. result instanceof WebGLTexture) {
  7915. ret = result.name | 0;
  7916. } else {
  7917. GL.recordError(0x0500); // GL_INVALID_ENUM
  7918. return;
  7919. }
  7920. break;
  7921. default:
  7922. GL.recordError(0x0500); // GL_INVALID_ENUM
  7923. return;
  7924. }
  7925. }
  7926. switch (type) {
  7927. case 'Integer64': (tempI64 = [ret>>>0,(tempDouble=ret,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[((p)>>2)]=tempI64[0],HEAP32[(((p)+(4))>>2)]=tempI64[1]); break;
  7928. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7929. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7930. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7931. default: throw 'internal glGet error, bad type: ' + type;
  7932. }
  7933. }function _emscripten_glGetIntegerv(name_, p) {
  7934. emscriptenWebGLGet(name_, p, 'Integer');
  7935. }
  7936. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7937. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7938. HEAP32[((params)>>2)]=result;
  7939. }
  7940. function _llvm_stackrestore(p) {
  7941. var self = _llvm_stacksave;
  7942. var ret = self.LLVM_SAVEDSTACKS[p];
  7943. self.LLVM_SAVEDSTACKS.splice(p, 1);
  7944. Runtime.stackRestore(ret);
  7945. }
  7946. function _glfwSetWindowShouldClose(winid, value) {
  7947. var win = GLFW.WindowFromId(winid);
  7948. if (!win) return;
  7949. win.shouldClose = value;
  7950. }
  7951. function _emscripten_glClientActiveTexture() {
  7952. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  7953. }
  7954. function _glGenBuffers(n, buffers) {
  7955. for (var i = 0; i < n; i++) {
  7956. var buffer = GLctx.createBuffer();
  7957. if (!buffer) {
  7958. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7959. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  7960. return;
  7961. }
  7962. var id = GL.getNewId(GL.buffers);
  7963. buffer.name = id;
  7964. GL.buffers[id] = buffer;
  7965. HEAP32[(((buffers)+(i*4))>>2)]=id;
  7966. }
  7967. }
  7968. function _emscripten_memcpy_big(dest, src, num) {
  7969. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  7970. return dest;
  7971. }
  7972. Module["_memcpy"] = _memcpy;
  7973. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7974. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7975. if (log === null) log = '(unknown error)';
  7976. if (maxLength > 0 && infoLog) {
  7977. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7978. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7979. } else {
  7980. if (length) HEAP32[((length)>>2)]=0;
  7981. }
  7982. }
  7983. function _glfwGetTime() {
  7984. return GLFW.getTime() - GLFW.initialTime;
  7985. }
  7986. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  7987. if (!params) {
  7988. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7989. // if params == null, issue a GL error to notify user about it.
  7990. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7991. return;
  7992. }
  7993. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  7994. }
  7995. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  7996. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  7997. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  7998. if (!pixelData) {
  7999. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8000. return;
  8001. }
  8002. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  8003. }
  8004. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8005. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8006. }
  8007. function _emscripten_glGetError() {
  8008. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8009. if (GL.lastError) {
  8010. var error = GL.lastError;
  8011. GL.lastError = 0/*GL_NO_ERROR*/;
  8012. return error;
  8013. } else { // If there were none, return the GL error from the browser GL context.
  8014. return GLctx.getError();
  8015. }
  8016. }
  8017. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8018. GLctx.framebufferTexture2D(target, attachment, textarget,
  8019. GL.textures[texture], level);
  8020. }
  8021. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8022. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8023. Module["_memmove"] = _memmove;
  8024. function _glGenTextures(n, textures) {
  8025. for (var i = 0; i < n; i++) {
  8026. var texture = GLctx.createTexture();
  8027. if (!texture) {
  8028. GL.recordError(0x0502 /* GL_INVALID_OPERATION */); // GLES + EGL specs don't specify what should happen here, so best to issue an error and create IDs with 0.
  8029. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8030. return;
  8031. }
  8032. var id = GL.getNewId(GL.textures);
  8033. texture.name = id;
  8034. GL.textures[id] = texture;
  8035. HEAP32[(((textures)+(i*4))>>2)]=id;
  8036. }
  8037. }
  8038. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8039. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8040. 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);
  8041. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  8042. Module["___udivmoddi4"] = ___udivmoddi4;
  8043. Module["___uremdi3"] = ___uremdi3;
  8044. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8045. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8046. function _emscripten_glBindBuffer(target, buffer) {
  8047. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8048. GLctx.bindBuffer(target, bufferObj);
  8049. }
  8050. function _emscripten_glGetUniformfv(program, location, params) {
  8051. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8052. }
  8053. function _glGetProgramiv(program, pname, p) {
  8054. if (!p) {
  8055. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8056. // if p == null, issue a GL error to notify user about it.
  8057. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8058. return;
  8059. }
  8060. if (program >= GL.counter) {
  8061. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8062. return;
  8063. }
  8064. var ptable = GL.programInfos[program];
  8065. if (!ptable) {
  8066. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8067. return;
  8068. }
  8069. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8070. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8071. if (log === null) log = '(unknown error)';
  8072. HEAP32[((p)>>2)]=log.length + 1;
  8073. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8074. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8075. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8076. if (ptable.maxAttributeLength == -1) {
  8077. var program = GL.programs[program];
  8078. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8079. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8080. for (var i = 0; i < numAttribs; ++i) {
  8081. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8082. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8083. }
  8084. }
  8085. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8086. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8087. if (ptable.maxUniformBlockNameLength == -1) {
  8088. var program = GL.programs[program];
  8089. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8090. ptable.maxUniformBlockNameLength = 0;
  8091. for (var i = 0; i < numBlocks; ++i) {
  8092. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8093. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8094. }
  8095. }
  8096. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8097. } else {
  8098. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8099. }
  8100. }
  8101. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8102. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8103. }
  8104. function _emscripten_exit_pointerlock() {
  8105. // Make sure no queued up calls will fire after this.
  8106. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8107. if (document.exitPointerLock) {
  8108. document.exitPointerLock();
  8109. } else if (document.msExitPointerLock) {
  8110. document.msExitPointerLock();
  8111. } else if (document.mozExitPointerLock) {
  8112. document.mozExitPointerLock();
  8113. } else if (document.webkitExitPointerLock) {
  8114. document.webkitExitPointerLock();
  8115. } else {
  8116. return -1;
  8117. }
  8118. return 0;
  8119. }
  8120. function _glGetUniformLocation(program, name) {
  8121. name = Pointer_stringify(name);
  8122. var arrayOffset = 0;
  8123. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8124. if (name.indexOf(']', name.length-1) !== -1) {
  8125. var ls = name.lastIndexOf('[');
  8126. var arrayIndex = name.slice(ls+1, -1);
  8127. if (arrayIndex.length > 0) {
  8128. arrayOffset = parseInt(arrayIndex);
  8129. if (arrayOffset < 0) {
  8130. return -1;
  8131. }
  8132. }
  8133. name = name.slice(0, ls);
  8134. }
  8135. var ptable = GL.programInfos[program];
  8136. if (!ptable) {
  8137. return -1;
  8138. }
  8139. var utable = ptable.uniforms;
  8140. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8141. if (uniformInfo && arrayOffset < uniformInfo[0]) { // Check if user asked for an out-of-bounds element, i.e. for 'vec4 colors[3];' user could ask for 'colors[10]' which should return -1.
  8142. return uniformInfo[1]+arrayOffset;
  8143. } else {
  8144. return -1;
  8145. }
  8146. }
  8147. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8148. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8149. var len = result.length;
  8150. if (len > maxCount) {
  8151. len = maxCount;
  8152. }
  8153. HEAP32[((count)>>2)]=len;
  8154. for (var i = 0; i < len; ++i) {
  8155. var id = GL.shaders.indexOf(result[i]);
  8156. assert(id !== -1, 'shader not bound to local id');
  8157. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8158. }
  8159. }
  8160. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8161. for (var i = 0; i < n; i++) {
  8162. var renderbuffer = GLctx.createRenderbuffer();
  8163. if (!renderbuffer) {
  8164. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8165. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8166. return;
  8167. }
  8168. var id = GL.getNewId(GL.renderbuffers);
  8169. renderbuffer.name = id;
  8170. GL.renderbuffers[id] = renderbuffer;
  8171. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8172. }
  8173. }
  8174. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8175. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8176. function _emscripten_glUniform1iv(location, count, value) {
  8177. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8178. }
  8179. function _emscripten_glTexCoordPointer() {
  8180. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8181. }
  8182. function _emscripten_glGetInfoLogARB() {
  8183. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8184. }
  8185. function __exit(status) {
  8186. // void _exit(int status);
  8187. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8188. Module['exit'](status);
  8189. }function _exit(status) {
  8190. __exit(status);
  8191. }
  8192. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8193. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8194. function _glfwSetCursorPosCallback(winid, cbfun) {
  8195. GLFW.setCursorPosCallback(winid, cbfun);
  8196. }
  8197. function _glBindAttribLocation(program, index, name) {
  8198. name = Pointer_stringify(name);
  8199. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8200. }
  8201. function _emscripten_glShaderBinary() {
  8202. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8203. }
  8204. function _emscripten_glIsProgram(program) {
  8205. var program = GL.programs[program];
  8206. if (!program) return 0;
  8207. return GLctx.isProgram(program);
  8208. }
  8209. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8210. function _emscripten_glGetShaderiv(shader, pname, p) {
  8211. if (!p) {
  8212. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8213. // if p == null, issue a GL error to notify user about it.
  8214. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8215. return;
  8216. }
  8217. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8218. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8219. if (log === null) log = '(unknown error)';
  8220. HEAP32[((p)>>2)]=log.length + 1;
  8221. } else {
  8222. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8223. }
  8224. }
  8225. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8226. var view;
  8227. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8228. // avoid allocation when uploading few enough uniforms
  8229. view = GL.miniTempBufferViews[9*count-1];
  8230. for (var i = 0; i < 9*count; i += 9) {
  8231. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8232. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8233. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8234. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8235. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8236. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8237. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8238. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8239. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8240. }
  8241. } else {
  8242. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8243. }
  8244. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8245. }
  8246. Module["___udivdi3"] = ___udivdi3;
  8247. function _emscripten_glUniform4fv(location, count, value) {
  8248. var view;
  8249. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8250. // avoid allocation when uploading few enough uniforms
  8251. view = GL.miniTempBufferViews[4*count-1];
  8252. for (var i = 0; i < 4*count; i += 4) {
  8253. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8254. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8255. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8256. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8257. }
  8258. } else {
  8259. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8260. }
  8261. GLctx.uniform4fv(GL.uniforms[location], view);
  8262. }
  8263. function _glBufferSubData(target, offset, size, data) {
  8264. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8265. }
  8266. function _llvm_exp2_f32(x) {
  8267. return Math.pow(2, x);
  8268. }
  8269. function _glGetShaderiv(shader, pname, p) {
  8270. if (!p) {
  8271. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8272. // if p == null, issue a GL error to notify user about it.
  8273. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8274. return;
  8275. }
  8276. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8277. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8278. if (log === null) log = '(unknown error)';
  8279. HEAP32[((p)>>2)]=log.length + 1;
  8280. } else {
  8281. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8282. }
  8283. }
  8284. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8285. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8286. var win = GLFW.WindowFromId(winid);
  8287. if (!win) return;
  8288. win.windowIconifyFunc = cbfun;
  8289. }
  8290. function _emscripten_glDrawRangeElements() {
  8291. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8292. }
  8293. function _emscripten_glGenTextures(n, textures) {
  8294. for (var i = 0; i < n; i++) {
  8295. var texture = GLctx.createTexture();
  8296. if (!texture) {
  8297. 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.
  8298. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8299. return;
  8300. }
  8301. var id = GL.getNewId(GL.textures);
  8302. texture.name = id;
  8303. GL.textures[id] = texture;
  8304. HEAP32[(((textures)+(i*4))>>2)]=id;
  8305. }
  8306. }
  8307. function _emscripten_glVertexAttrib2fv(index, v) {
  8308. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8309. }
  8310. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8311. program = GL.programs[program];
  8312. var info = GLctx.getActiveUniform(program, index);
  8313. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8314. if (bufSize > 0 && name) {
  8315. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8316. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8317. } else {
  8318. if (length) HEAP32[((length)>>2)]=0;
  8319. }
  8320. if (size) HEAP32[((size)>>2)]=info.size;
  8321. if (type) HEAP32[((type)>>2)]=info.type;
  8322. }
  8323. Module["_roundf"] = _roundf;
  8324. function _emscripten_glDeleteObjectARB() {
  8325. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8326. }
  8327. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8328. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8329. return 0;
  8330. }
  8331. function _emscripten_glUniform1f(location, v0) {
  8332. GLctx.uniform1f(GL.uniforms[location], v0);
  8333. }
  8334. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8335. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8336. }
  8337. function _glShaderSource(shader, count, string, length) {
  8338. var source = GL.getSource(shader, count, string, length);
  8339. GLctx.shaderSource(GL.shaders[shader], source);
  8340. }
  8341. function _emscripten_glDrawArrays(mode, first, count) {
  8342. GLctx.drawArrays(mode, first, count);
  8343. }
  8344. function _emscripten_glGenBuffers(n, buffers) {
  8345. for (var i = 0; i < n; i++) {
  8346. var buffer = GLctx.createBuffer();
  8347. if (!buffer) {
  8348. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8349. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8350. return;
  8351. }
  8352. var id = GL.getNewId(GL.buffers);
  8353. buffer.name = id;
  8354. GL.buffers[id] = buffer;
  8355. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8356. }
  8357. }
  8358. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8359. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8360. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8361. return 0;
  8362. }
  8363. function _glfwSetCharCallback(winid, cbfun) {
  8364. GLFW.setCharCallback(winid, cbfun);
  8365. }
  8366. function _emscripten_glGetUniformLocation(program, name) {
  8367. name = Pointer_stringify(name);
  8368. var arrayOffset = 0;
  8369. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8370. if (name.indexOf(']', name.length-1) !== -1) {
  8371. var ls = name.lastIndexOf('[');
  8372. var arrayIndex = name.slice(ls+1, -1);
  8373. if (arrayIndex.length > 0) {
  8374. arrayOffset = parseInt(arrayIndex);
  8375. if (arrayOffset < 0) {
  8376. return -1;
  8377. }
  8378. }
  8379. name = name.slice(0, ls);
  8380. }
  8381. var ptable = GL.programInfos[program];
  8382. if (!ptable) {
  8383. return -1;
  8384. }
  8385. var utable = ptable.uniforms;
  8386. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8387. 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.
  8388. return uniformInfo[1]+arrayOffset;
  8389. } else {
  8390. return -1;
  8391. }
  8392. }
  8393. function _glBindBuffer(target, buffer) {
  8394. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8395. GLctx.bindBuffer(target, bufferObj);
  8396. }
  8397. function _emscripten_glVertexAttrib4fv(index, v) {
  8398. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8399. }
  8400. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8401. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8402. var win = GLFW.WindowFromId(winid);
  8403. if (!win) return;
  8404. win.cursorEnterFunc = cbfun;
  8405. }
  8406. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8407. function _glBufferData(target, size, data, usage) {
  8408. if (!data) {
  8409. GLctx.bufferData(target, size, usage);
  8410. } else {
  8411. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8412. }
  8413. }
  8414. function _emscripten_glIsShader(shader) {
  8415. var s = GL.shaders[shader];
  8416. if (!s) return 0;
  8417. return GLctx.isShader(s);
  8418. }
  8419. function _emscripten_glDrawBuffers(n, bufs) {
  8420. var bufArray = GL.tempFixedLengthArray[n];
  8421. for (var i = 0; i < n; i++) {
  8422. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8423. }
  8424. GLctx['drawBuffers'](bufArray);
  8425. }
  8426. function _glGetFloatv(name_, p) {
  8427. emscriptenWebGLGet(name_, p, 'Float');
  8428. }
  8429. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8430. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8431. }
  8432. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8433. function _emscripten_glBufferSubData(target, offset, size, data) {
  8434. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8435. }
  8436. function _emscripten_glBufferData(target, size, data, usage) {
  8437. if (!data) {
  8438. GLctx.bufferData(target, size, usage);
  8439. } else {
  8440. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8441. }
  8442. }
  8443. Module["_sbrk"] = _sbrk;
  8444. Module["_bitshift64Shl"] = _bitshift64Shl;
  8445. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8446. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8447. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8448. if (bufSize > 0 && source) {
  8449. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8450. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8451. } else {
  8452. if (length) HEAP32[((length)>>2)]=0;
  8453. }
  8454. }
  8455. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8456. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8457. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8458. return 0;
  8459. }
  8460. function _glfwSetKeyCallback(winid, cbfun) {
  8461. GLFW.setKeyCallback(winid, cbfun);
  8462. }
  8463. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8464. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8465. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8466. return 0;
  8467. }
  8468. function _emscripten_glGetFloatv(name_, p) {
  8469. emscriptenWebGLGet(name_, p, 'Float');
  8470. }
  8471. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8472. var pixelData = null;
  8473. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8474. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8475. }
  8476. function ___assert_fail(condition, filename, line, func) {
  8477. ABORT = true;
  8478. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  8479. }
  8480. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8481. GLctx['vertexAttribDivisor'](index, divisor);
  8482. }
  8483. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8484. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8485. }
  8486. function _emscripten_glDrawElements(mode, count, type, indices) {
  8487. GLctx.drawElements(mode, count, type, indices);
  8488. }
  8489. function _glfwSetMouseButtonCallback(winid, cbfun) {
  8490. GLFW.setMouseButtonCallback(winid, cbfun);
  8491. }
  8492. function _emscripten_glCreateProgram() {
  8493. var id = GL.getNewId(GL.programs);
  8494. var program = GLctx.createProgram();
  8495. program.name = id;
  8496. GL.programs[id] = program;
  8497. return id;
  8498. }
  8499. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8500. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8501. }
  8502. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8503. function _emscripten_glBindVertexArray(vao) {
  8504. GLctx['bindVertexArray'](GL.vaos[vao]);
  8505. }
  8506. function _emscripten_glLoadMatrixf() {
  8507. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8508. }
  8509. function _glDeleteShader(id) {
  8510. if (!id) return;
  8511. var shader = GL.shaders[id];
  8512. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8513. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8514. return;
  8515. }
  8516. GLctx.deleteShader(shader);
  8517. GL.shaders[id] = null;
  8518. }
  8519. function _emscripten_glGetProgramiv(program, pname, p) {
  8520. if (!p) {
  8521. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8522. // if p == null, issue a GL error to notify user about it.
  8523. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8524. return;
  8525. }
  8526. if (program >= GL.counter) {
  8527. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8528. return;
  8529. }
  8530. var ptable = GL.programInfos[program];
  8531. if (!ptable) {
  8532. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8533. return;
  8534. }
  8535. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8536. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8537. if (log === null) log = '(unknown error)';
  8538. HEAP32[((p)>>2)]=log.length + 1;
  8539. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8540. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8541. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8542. if (ptable.maxAttributeLength == -1) {
  8543. var program = GL.programs[program];
  8544. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8545. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8546. for (var i = 0; i < numAttribs; ++i) {
  8547. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8548. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8549. }
  8550. }
  8551. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8552. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8553. if (ptable.maxUniformBlockNameLength == -1) {
  8554. var program = GL.programs[program];
  8555. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8556. ptable.maxUniformBlockNameLength = 0;
  8557. for (var i = 0; i < numBlocks; ++i) {
  8558. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8559. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8560. }
  8561. }
  8562. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8563. } else {
  8564. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8565. }
  8566. }
  8567. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8568. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8569. if (log === null) log = '(unknown error)';
  8570. if (maxLength > 0 && infoLog) {
  8571. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8572. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8573. } else {
  8574. if (length) HEAP32[((length)>>2)]=0;
  8575. }
  8576. }
  8577. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8578. var pixelData = null;
  8579. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8580. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8581. }
  8582. function _glPixelStorei(pname, param) {
  8583. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8584. GL.packAlignment = param;
  8585. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8586. GL.unpackAlignment = param;
  8587. }
  8588. GLctx.pixelStorei(pname, param);
  8589. }
  8590. function ___unlock() {}
  8591. function _emscripten_glColorPointer() {
  8592. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  8593. }
  8594. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8595. function _glfwDestroyWindow(winid) {
  8596. return GLFW.destroyWindow(winid);
  8597. }
  8598. function _emscripten_glFlush() { GLctx['flush']() }
  8599. function _glfwSetErrorCallback(cbfun) {
  8600. GLFW.errorFunc = cbfun;
  8601. }
  8602. function _emscripten_glCreateShader(shaderType) {
  8603. var id = GL.getNewId(GL.shaders);
  8604. GL.shaders[id] = GLctx.createShader(shaderType);
  8605. return id;
  8606. }
  8607. function _glUniformMatrix4fv(location, count, transpose, value) {
  8608. var view;
  8609. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8610. // avoid allocation when uploading few enough uniforms
  8611. view = GL.miniTempBufferViews[16*count-1];
  8612. for (var i = 0; i < 16*count; i += 16) {
  8613. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8614. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8615. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8616. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8617. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8618. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8619. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8620. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8621. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8622. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8623. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8624. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8625. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8626. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8627. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8628. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8629. }
  8630. } else {
  8631. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8632. }
  8633. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8634. }
  8635. function _emscripten_glValidateProgram(program) {
  8636. GLctx.validateProgram(GL.programs[program]);
  8637. }
  8638. function _glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  8639. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8640. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8641. function _emscripten_glColorMask(red, green, blue, alpha) {
  8642. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8643. }
  8644. function _emscripten_glPixelStorei(pname, param) {
  8645. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8646. GL.packAlignment = param;
  8647. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8648. GL.unpackAlignment = param;
  8649. }
  8650. GLctx.pixelStorei(pname, param);
  8651. }
  8652. function _emscripten_glDeleteTextures(n, textures) {
  8653. for (var i = 0; i < n; i++) {
  8654. var id = HEAP32[(((textures)+(i*4))>>2)];
  8655. var texture = GL.textures[id];
  8656. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8657. GLctx.deleteTexture(texture);
  8658. texture.name = 0;
  8659. GL.textures[id] = null;
  8660. }
  8661. }
  8662. function _emscripten_glCompileShader(shader) {
  8663. GLctx.compileShader(GL.shaders[shader]);
  8664. }
  8665. function _emscripten_glGenVertexArrays(n, arrays) {
  8666. for (var i = 0; i < n; i++) {
  8667. var vao = GLctx['createVertexArray']();
  8668. if (!vao) {
  8669. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8670. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8671. return;
  8672. }
  8673. var id = GL.getNewId(GL.vaos);
  8674. vao.name = id;
  8675. GL.vaos[id] = vao;
  8676. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8677. }
  8678. }
  8679. function _time(ptr) {
  8680. var ret = (Date.now()/1000)|0;
  8681. if (ptr) {
  8682. HEAP32[((ptr)>>2)]=ret;
  8683. }
  8684. return ret;
  8685. }
  8686. function _emscripten_glGetBooleanv(name_, p) {
  8687. emscriptenWebGLGet(name_, p, 'Boolean');
  8688. }
  8689. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8690. try {
  8691. // fcntl64
  8692. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8693. switch (cmd) {
  8694. case 0: {
  8695. var arg = SYSCALLS.get();
  8696. if (arg < 0) {
  8697. return -ERRNO_CODES.EINVAL;
  8698. }
  8699. var newStream;
  8700. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8701. return newStream.fd;
  8702. }
  8703. case 1:
  8704. case 2:
  8705. return 0; // FD_CLOEXEC makes no sense for a single process.
  8706. case 3:
  8707. return stream.flags;
  8708. case 4: {
  8709. var arg = SYSCALLS.get();
  8710. stream.flags |= arg;
  8711. return 0;
  8712. }
  8713. case 12:
  8714. case 12: {
  8715. var arg = SYSCALLS.get();
  8716. var offset = 0;
  8717. // We're always unlocked.
  8718. HEAP16[(((arg)+(offset))>>1)]=2;
  8719. return 0;
  8720. }
  8721. case 13:
  8722. case 14:
  8723. case 13:
  8724. case 14:
  8725. return 0; // Pretend that the locking is successful.
  8726. case 16:
  8727. case 8:
  8728. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8729. case 9:
  8730. // 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.
  8731. ___setErrNo(ERRNO_CODES.EINVAL);
  8732. return -1;
  8733. default: {
  8734. return -ERRNO_CODES.EINVAL;
  8735. }
  8736. }
  8737. } catch (e) {
  8738. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8739. return -e.errno;
  8740. }
  8741. }
  8742. var GLctx; GL.init();
  8743. if (ENVIRONMENT_IS_NODE) {
  8744. _emscripten_get_now = function _emscripten_get_now_actual() {
  8745. var t = process['hrtime']();
  8746. return t[0] * 1e3 + t[1] / 1e6;
  8747. };
  8748. } else if (typeof dateNow !== 'undefined') {
  8749. _emscripten_get_now = dateNow;
  8750. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8751. _emscripten_get_now = function() { return self['performance']['now'](); };
  8752. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8753. _emscripten_get_now = function() { return performance['now'](); };
  8754. } else {
  8755. _emscripten_get_now = Date.now;
  8756. };
  8757. 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) };
  8758. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8759. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8760. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8761. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8762. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8763. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8764. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8765. 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;;
  8766. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8767. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8768. JSEvents.staticInit();;
  8769. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8770. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8771. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8772. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8773. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8774. staticSealed = true; // seal the static portion of memory
  8775. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8776. 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) }
  8777. 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) }
  8778. 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) }
  8779. 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) }
  8780. 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) }
  8781. 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) }
  8782. 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) }
  8783. 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) }
  8784. 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) }
  8785. 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) }
  8786. 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) }
  8787. 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) }
  8788. 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) }
  8789. 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) }
  8790. 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) }
  8791. 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) }
  8792. 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) }
  8793. 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) }
  8794. 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) }
  8795. 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) }
  8796. 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) }
  8797. 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) }
  8798. 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) }
  8799. 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) }
  8800. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8801. try {
  8802. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8803. } catch(e) {
  8804. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8805. Module["setThrew"](1, 0);
  8806. }
  8807. }
  8808. function invoke_vd(index,a1) {
  8809. try {
  8810. Module["dynCall_vd"](index,a1);
  8811. } catch(e) {
  8812. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8813. Module["setThrew"](1, 0);
  8814. }
  8815. }
  8816. function invoke_vid(index,a1,a2) {
  8817. try {
  8818. Module["dynCall_vid"](index,a1,a2);
  8819. } catch(e) {
  8820. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8821. Module["setThrew"](1, 0);
  8822. }
  8823. }
  8824. function invoke_vi(index,a1) {
  8825. try {
  8826. Module["dynCall_vi"](index,a1);
  8827. } catch(e) {
  8828. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8829. Module["setThrew"](1, 0);
  8830. }
  8831. }
  8832. function invoke_vii(index,a1,a2) {
  8833. try {
  8834. Module["dynCall_vii"](index,a1,a2);
  8835. } catch(e) {
  8836. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8837. Module["setThrew"](1, 0);
  8838. }
  8839. }
  8840. function invoke_ii(index,a1) {
  8841. try {
  8842. return Module["dynCall_ii"](index,a1);
  8843. } catch(e) {
  8844. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8845. Module["setThrew"](1, 0);
  8846. }
  8847. }
  8848. function invoke_viddd(index,a1,a2,a3,a4) {
  8849. try {
  8850. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8851. } catch(e) {
  8852. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8853. Module["setThrew"](1, 0);
  8854. }
  8855. }
  8856. function invoke_vidd(index,a1,a2,a3) {
  8857. try {
  8858. Module["dynCall_vidd"](index,a1,a2,a3);
  8859. } catch(e) {
  8860. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8861. Module["setThrew"](1, 0);
  8862. }
  8863. }
  8864. function invoke_iiii(index,a1,a2,a3) {
  8865. try {
  8866. return Module["dynCall_iiii"](index,a1,a2,a3);
  8867. } catch(e) {
  8868. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8869. Module["setThrew"](1, 0);
  8870. }
  8871. }
  8872. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  8873. try {
  8874. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  8875. } catch(e) {
  8876. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8877. Module["setThrew"](1, 0);
  8878. }
  8879. }
  8880. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  8881. try {
  8882. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  8883. } catch(e) {
  8884. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8885. Module["setThrew"](1, 0);
  8886. }
  8887. }
  8888. function invoke_viii(index,a1,a2,a3) {
  8889. try {
  8890. Module["dynCall_viii"](index,a1,a2,a3);
  8891. } catch(e) {
  8892. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8893. Module["setThrew"](1, 0);
  8894. }
  8895. }
  8896. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  8897. try {
  8898. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  8899. } catch(e) {
  8900. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8901. Module["setThrew"](1, 0);
  8902. }
  8903. }
  8904. function invoke_vdi(index,a1,a2) {
  8905. try {
  8906. Module["dynCall_vdi"](index,a1,a2);
  8907. } catch(e) {
  8908. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8909. Module["setThrew"](1, 0);
  8910. }
  8911. }
  8912. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  8913. try {
  8914. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  8915. } catch(e) {
  8916. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8917. Module["setThrew"](1, 0);
  8918. }
  8919. }
  8920. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  8921. try {
  8922. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  8923. } catch(e) {
  8924. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8925. Module["setThrew"](1, 0);
  8926. }
  8927. }
  8928. function invoke_iii(index,a1,a2) {
  8929. try {
  8930. return Module["dynCall_iii"](index,a1,a2);
  8931. } catch(e) {
  8932. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8933. Module["setThrew"](1, 0);
  8934. }
  8935. }
  8936. function invoke_i(index) {
  8937. try {
  8938. return Module["dynCall_i"](index);
  8939. } catch(e) {
  8940. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8941. Module["setThrew"](1, 0);
  8942. }
  8943. }
  8944. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  8945. try {
  8946. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  8947. } catch(e) {
  8948. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8949. Module["setThrew"](1, 0);
  8950. }
  8951. }
  8952. function invoke_vdddd(index,a1,a2,a3,a4) {
  8953. try {
  8954. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  8955. } catch(e) {
  8956. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8957. Module["setThrew"](1, 0);
  8958. }
  8959. }
  8960. function invoke_vdd(index,a1,a2) {
  8961. try {
  8962. Module["dynCall_vdd"](index,a1,a2);
  8963. } catch(e) {
  8964. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8965. Module["setThrew"](1, 0);
  8966. }
  8967. }
  8968. function invoke_v(index) {
  8969. try {
  8970. Module["dynCall_v"](index);
  8971. } catch(e) {
  8972. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8973. Module["setThrew"](1, 0);
  8974. }
  8975. }
  8976. function invoke_viid(index,a1,a2,a3) {
  8977. try {
  8978. Module["dynCall_viid"](index,a1,a2,a3);
  8979. } catch(e) {
  8980. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8981. Module["setThrew"](1, 0);
  8982. }
  8983. }
  8984. function invoke_viiii(index,a1,a2,a3,a4) {
  8985. try {
  8986. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  8987. } catch(e) {
  8988. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8989. Module["setThrew"](1, 0);
  8990. }
  8991. }
  8992. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
  8993. 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 };
  8994. // EMSCRIPTEN_START_ASM
  8995. var asm = (function(global, env, buffer) {
  8996. 'use asm';
  8997. var HEAP8 = new global.Int8Array(buffer);
  8998. var HEAP16 = new global.Int16Array(buffer);
  8999. var HEAP32 = new global.Int32Array(buffer);
  9000. var HEAPU8 = new global.Uint8Array(buffer);
  9001. var HEAPU16 = new global.Uint16Array(buffer);
  9002. var HEAPU32 = new global.Uint32Array(buffer);
  9003. var HEAPF32 = new global.Float32Array(buffer);
  9004. var HEAPF64 = new global.Float64Array(buffer);
  9005. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9006. var tempDoublePtr=env.tempDoublePtr|0;
  9007. var ABORT=env.ABORT|0;
  9008. var STACKTOP=env.STACKTOP|0;
  9009. var STACK_MAX=env.STACK_MAX|0;
  9010. var cttz_i8=env.cttz_i8|0;
  9011. var __THREW__ = 0;
  9012. var threwValue = 0;
  9013. var setjmpId = 0;
  9014. var undef = 0;
  9015. var nan = global.NaN, inf = global.Infinity;
  9016. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9017. var tempRet0 = 0;
  9018. var Math_floor=global.Math.floor;
  9019. var Math_abs=global.Math.abs;
  9020. var Math_sqrt=global.Math.sqrt;
  9021. var Math_pow=global.Math.pow;
  9022. var Math_cos=global.Math.cos;
  9023. var Math_sin=global.Math.sin;
  9024. var Math_tan=global.Math.tan;
  9025. var Math_acos=global.Math.acos;
  9026. var Math_asin=global.Math.asin;
  9027. var Math_atan=global.Math.atan;
  9028. var Math_atan2=global.Math.atan2;
  9029. var Math_exp=global.Math.exp;
  9030. var Math_log=global.Math.log;
  9031. var Math_ceil=global.Math.ceil;
  9032. var Math_imul=global.Math.imul;
  9033. var Math_min=global.Math.min;
  9034. var Math_max=global.Math.max;
  9035. var Math_clz32=global.Math.clz32;
  9036. var abort=env.abort;
  9037. var assert=env.assert;
  9038. var enlargeMemory=env.enlargeMemory;
  9039. var getTotalMemory=env.getTotalMemory;
  9040. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9041. var abortStackOverflow=env.abortStackOverflow;
  9042. var nullFunc_viiiii=env.nullFunc_viiiii;
  9043. var nullFunc_vd=env.nullFunc_vd;
  9044. var nullFunc_vid=env.nullFunc_vid;
  9045. var nullFunc_vi=env.nullFunc_vi;
  9046. var nullFunc_vii=env.nullFunc_vii;
  9047. var nullFunc_ii=env.nullFunc_ii;
  9048. var nullFunc_viddd=env.nullFunc_viddd;
  9049. var nullFunc_vidd=env.nullFunc_vidd;
  9050. var nullFunc_iiii=env.nullFunc_iiii;
  9051. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9052. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9053. var nullFunc_viii=env.nullFunc_viii;
  9054. var nullFunc_vidddd=env.nullFunc_vidddd;
  9055. var nullFunc_vdi=env.nullFunc_vdi;
  9056. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9057. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9058. var nullFunc_iii=env.nullFunc_iii;
  9059. var nullFunc_i=env.nullFunc_i;
  9060. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9061. var nullFunc_vdddd=env.nullFunc_vdddd;
  9062. var nullFunc_vdd=env.nullFunc_vdd;
  9063. var nullFunc_v=env.nullFunc_v;
  9064. var nullFunc_viid=env.nullFunc_viid;
  9065. var nullFunc_viiii=env.nullFunc_viiii;
  9066. var invoke_viiiii=env.invoke_viiiii;
  9067. var invoke_vd=env.invoke_vd;
  9068. var invoke_vid=env.invoke_vid;
  9069. var invoke_vi=env.invoke_vi;
  9070. var invoke_vii=env.invoke_vii;
  9071. var invoke_ii=env.invoke_ii;
  9072. var invoke_viddd=env.invoke_viddd;
  9073. var invoke_vidd=env.invoke_vidd;
  9074. var invoke_iiii=env.invoke_iiii;
  9075. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9076. var invoke_viiiiii=env.invoke_viiiiii;
  9077. var invoke_viii=env.invoke_viii;
  9078. var invoke_vidddd=env.invoke_vidddd;
  9079. var invoke_vdi=env.invoke_vdi;
  9080. var invoke_viiiiiii=env.invoke_viiiiiii;
  9081. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9082. var invoke_iii=env.invoke_iii;
  9083. var invoke_i=env.invoke_i;
  9084. var invoke_vdddddd=env.invoke_vdddddd;
  9085. var invoke_vdddd=env.invoke_vdddd;
  9086. var invoke_vdd=env.invoke_vdd;
  9087. var invoke_v=env.invoke_v;
  9088. var invoke_viid=env.invoke_viid;
  9089. var invoke_viiii=env.invoke_viiii;
  9090. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9091. var _glUseProgram=env._glUseProgram;
  9092. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9093. var _glfwCreateWindow=env._glfwCreateWindow;
  9094. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9095. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9096. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9097. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9098. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9099. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9100. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9101. var _emscripten_glViewport=env._emscripten_glViewport;
  9102. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9103. var ___assert_fail=env.___assert_fail;
  9104. var _glDeleteProgram=env._glDeleteProgram;
  9105. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9106. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9107. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9108. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9109. var _glBindBuffer=env._glBindBuffer;
  9110. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9111. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9112. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9113. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9114. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9115. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9116. var _glDisable=env._glDisable;
  9117. var _glBlendFunc=env._glBlendFunc;
  9118. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9119. var _glGetAttribLocation=env._glGetAttribLocation;
  9120. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9121. var _glCreateShader=env._glCreateShader;
  9122. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9123. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9124. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9125. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9126. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9127. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9128. var _glUniform4f=env._glUniform4f;
  9129. var _llvm_stacksave=env._llvm_stacksave;
  9130. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9131. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9132. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9133. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9134. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9135. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9136. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9137. var _glfwInit=env._glfwInit;
  9138. var _glGenBuffers=env._glGenBuffers;
  9139. var _glShaderSource=env._glShaderSource;
  9140. var _emscripten_glGetString=env._emscripten_glGetString;
  9141. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9142. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9143. var _emscripten_glScissor=env._emscripten_glScissor;
  9144. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9145. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9146. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9147. var ___syscall145=env.___syscall145;
  9148. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9149. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9150. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9151. var ___syscall140=env.___syscall140;
  9152. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9153. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9154. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9155. var ___syscall146=env.___syscall146;
  9156. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9157. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9158. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9159. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9160. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9161. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9162. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9163. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9164. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9165. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9166. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9167. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9168. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9169. var _llvm_stackrestore=env._llvm_stackrestore;
  9170. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9171. var _emscripten_glClear=env._emscripten_glClear;
  9172. var _glDrawElements=env._glDrawElements;
  9173. var _glBufferSubData=env._glBufferSubData;
  9174. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9175. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9176. var _glViewport=env._glViewport;
  9177. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9178. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9179. var ___setErrNo=env.___setErrNo;
  9180. var _eglGetProcAddress=env._eglGetProcAddress;
  9181. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9182. var _glDeleteTextures=env._glDeleteTextures;
  9183. var _glDepthFunc=env._glDepthFunc;
  9184. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9185. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9186. var _emscripten_glFlush=env._emscripten_glFlush;
  9187. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9188. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9189. var _emscripten_glGetError=env._emscripten_glGetError;
  9190. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9191. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9192. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9193. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9194. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9195. var _glEnable=env._glEnable;
  9196. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9197. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9198. var _glGetString=env._glGetString;
  9199. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9200. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9201. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9202. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9203. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9204. var _emscripten_get_now=env._emscripten_get_now;
  9205. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9206. var _glAttachShader=env._glAttachShader;
  9207. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9208. var _emscripten_glEnable=env._emscripten_glEnable;
  9209. var _glCreateProgram=env._glCreateProgram;
  9210. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9211. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9212. var ___lock=env.___lock;
  9213. var _llvm_exp2_f32=env._llvm_exp2_f32;
  9214. var ___syscall6=env.___syscall6;
  9215. var ___syscall5=env.___syscall5;
  9216. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9217. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9218. var _time=env._time;
  9219. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9220. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9221. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9222. var _exit=env._exit;
  9223. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9224. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9225. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9226. var _glCullFace=env._glCullFace;
  9227. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9228. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9229. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9230. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9231. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9232. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9233. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9234. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9235. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9236. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9237. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9238. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9239. var ___syscall221=env.___syscall221;
  9240. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9241. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9242. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9243. var _glClearDepthf=env._glClearDepthf;
  9244. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9245. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9246. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9247. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9248. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9249. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9250. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9251. var _glBindTexture=env._glBindTexture;
  9252. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9253. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9254. var _emscripten_glHint=env._emscripten_glHint;
  9255. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9256. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9257. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9258. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9259. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9260. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9261. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9262. var _glDrawArrays=env._glDrawArrays;
  9263. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9264. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9265. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9266. var _glCompileShader=env._glCompileShader;
  9267. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9268. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9269. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9270. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9271. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9272. var _emscripten_glFinish=env._emscripten_glFinish;
  9273. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9274. var _glGetFloatv=env._glGetFloatv;
  9275. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9276. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9277. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9278. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9279. var _glfwTerminate=env._glfwTerminate;
  9280. var _glFrontFace=env._glFrontFace;
  9281. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9282. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9283. var _glfwSwapInterval=env._glfwSwapInterval;
  9284. var _glUniform1i=env._glUniform1i;
  9285. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9286. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9287. var _abort=env._abort;
  9288. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9289. var _glDeleteBuffers=env._glDeleteBuffers;
  9290. var _glBufferData=env._glBufferData;
  9291. var _glTexImage2D=env._glTexImage2D;
  9292. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9293. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9294. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9295. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9296. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9297. var _glDeleteShader=env._glDeleteShader;
  9298. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9299. var _glGetProgramiv=env._glGetProgramiv;
  9300. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9301. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9302. var _glfwGetTime=env._glfwGetTime;
  9303. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9304. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9305. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9306. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9307. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9308. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9309. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9310. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9311. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9312. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9313. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9314. var _glLinkProgram=env._glLinkProgram;
  9315. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9316. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9317. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9318. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9319. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9320. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9321. var _glGetShaderiv=env._glGetShaderiv;
  9322. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9323. var _glGetUniformLocation=env._glGetUniformLocation;
  9324. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9325. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9326. var _glClear=env._glClear;
  9327. var _glGenTextures=env._glGenTextures;
  9328. var _emscripten_glDisable=env._emscripten_glDisable;
  9329. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9330. var __exit=env.__exit;
  9331. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9332. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9333. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9334. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9335. var _glBindAttribLocation=env._glBindAttribLocation;
  9336. var _glPixelStorei=env._glPixelStorei;
  9337. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9338. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9339. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9340. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9341. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9342. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9343. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9344. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9345. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9346. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9347. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9348. var ___syscall54=env.___syscall54;
  9349. var ___unlock=env.___unlock;
  9350. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9351. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9352. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9353. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9354. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9355. var _glfwWindowHint=env._glfwWindowHint;
  9356. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9357. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9358. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9359. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9360. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9361. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9362. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9363. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9364. var _glTexParameteri=env._glTexParameteri;
  9365. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9366. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9367. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9368. var _glClearColor=env._glClearColor;
  9369. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9370. var _glTexParameterf=env._glTexParameterf;
  9371. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9372. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9373. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9374. var tempFloat = 0.0;
  9375. // EMSCRIPTEN_START_FUNCS
  9376. function stackAlloc(size) {
  9377. size = size|0;
  9378. var ret = 0;
  9379. ret = STACKTOP;
  9380. STACKTOP = (STACKTOP + size)|0;
  9381. STACKTOP = (STACKTOP + 15)&-16;
  9382. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9383. return ret|0;
  9384. }
  9385. function stackSave() {
  9386. return STACKTOP|0;
  9387. }
  9388. function stackRestore(top) {
  9389. top = top|0;
  9390. STACKTOP = top;
  9391. }
  9392. function establishStackSpace(stackBase, stackMax) {
  9393. stackBase = stackBase|0;
  9394. stackMax = stackMax|0;
  9395. STACKTOP = stackBase;
  9396. STACK_MAX = stackMax;
  9397. }
  9398. function setThrew(threw, value) {
  9399. threw = threw|0;
  9400. value = value|0;
  9401. if ((__THREW__|0) == 0) {
  9402. __THREW__ = threw;
  9403. threwValue = value;
  9404. }
  9405. }
  9406. function setTempRet0(value) {
  9407. value = value|0;
  9408. tempRet0 = value;
  9409. }
  9410. function getTempRet0() {
  9411. return tempRet0|0;
  9412. }
  9413. function _main() {
  9414. var $$neg = 0, $$neg1 = 0, $$neg2 = 0, $0 = 0, $1 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0;
  9415. var $24 = 0.0, $25 = 0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0.0, $36 = 0, $37 = 0, $38 = 0.0, $39 = 0, $4 = 0, $40 = 0.0, $41 = 0.0;
  9416. var $42 = 0.0, $43 = 0.0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0.0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $font3$byval_copy3 = 0, label = 0, sp = 0;
  9417. sp = STACKTOP;
  9418. STACKTOP = STACKTOP + 160|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(160|0);
  9419. $font3$byval_copy3 = sp + 120|0;
  9420. $0 = sp + 88|0;
  9421. $1 = sp + 56|0;
  9422. $2 = sp + 24|0;
  9423. $3 = sp + 16|0;
  9424. $4 = sp + 8|0;
  9425. $5 = sp;
  9426. $6 = HEAP32[2]|0;
  9427. $7 = HEAP32[3]|0;
  9428. _InitWindow($6,$7,4390);
  9429. _LoadSpriteFont($0,4433);
  9430. ;HEAP32[19472>>2]=HEAP32[$0>>2]|0;HEAP32[19472+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[19472+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[19472+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[19472+16>>2]=HEAP32[$0+16>>2]|0;HEAP32[19472+20>>2]=HEAP32[$0+20>>2]|0;HEAP32[19472+24>>2]=HEAP32[$0+24>>2]|0;HEAP32[19472+28>>2]=HEAP32[$0+28>>2]|0;
  9431. _LoadSpriteFont($1,4460);
  9432. ;HEAP32[19504>>2]=HEAP32[$1>>2]|0;HEAP32[19504+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[19504+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[19504+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[19504+16>>2]=HEAP32[$1+16>>2]|0;HEAP32[19504+20>>2]=HEAP32[$1+20>>2]|0;HEAP32[19504+24>>2]=HEAP32[$1+24>>2]|0;HEAP32[19504+28>>2]=HEAP32[$1+28>>2]|0;
  9433. _LoadSpriteFont($2,4489);
  9434. ;HEAP32[19536>>2]=HEAP32[$2>>2]|0;HEAP32[19536+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[19536+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[19536+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[19536+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[19536+20>>2]=HEAP32[$2+20>>2]|0;HEAP32[19536+24>>2]=HEAP32[$2+24>>2]|0;HEAP32[19536+28>>2]=HEAP32[$2+28>>2]|0;
  9435. $8 = HEAP32[2]|0;
  9436. $9 = (($8|0) / 2)&-1;
  9437. $10 = (+($9|0));
  9438. $11 = HEAP32[(19492)>>2]|0;
  9439. $12 = (+($11|0));
  9440. ;HEAP32[$font3$byval_copy3>>2]=HEAP32[19472>>2]|0;HEAP32[$font3$byval_copy3+4>>2]=HEAP32[19472+4>>2]|0;HEAP32[$font3$byval_copy3+8>>2]=HEAP32[19472+8>>2]|0;HEAP32[$font3$byval_copy3+12>>2]=HEAP32[19472+12>>2]|0;HEAP32[$font3$byval_copy3+16>>2]=HEAP32[19472+16>>2]|0;HEAP32[$font3$byval_copy3+20>>2]=HEAP32[19472+20>>2]|0;HEAP32[$font3$byval_copy3+24>>2]=HEAP32[19472+24>>2]|0;HEAP32[$font3$byval_copy3+28>>2]=HEAP32[19472+28>>2]|0;
  9441. _MeasureTextEx($3,$font3$byval_copy3,4240,$12,-3);
  9442. $13 = +HEAPF32[$3>>2];
  9443. $14 = $13 * 0.5;
  9444. $15 = $10 - $14;
  9445. HEAPF32[4892] = $15;
  9446. $16 = HEAP32[3]|0;
  9447. $17 = (($16|0) / 2)&-1;
  9448. $18 = HEAP32[(19492)>>2]|0;
  9449. $$neg = (($18|0) / -2)&-1;
  9450. $19 = (($17) + -80)|0;
  9451. $20 = (($19) + ($$neg))|0;
  9452. $21 = (+($20|0));
  9453. HEAPF32[(19572)>>2] = $21;
  9454. $22 = HEAP32[2]|0;
  9455. $23 = (($22|0) / 2)&-1;
  9456. $24 = (+($23|0));
  9457. $25 = HEAP32[(19524)>>2]|0;
  9458. $26 = (+($25|0));
  9459. ;HEAP32[$font3$byval_copy3>>2]=HEAP32[19504>>2]|0;HEAP32[$font3$byval_copy3+4>>2]=HEAP32[19504+4>>2]|0;HEAP32[$font3$byval_copy3+8>>2]=HEAP32[19504+8>>2]|0;HEAP32[$font3$byval_copy3+12>>2]=HEAP32[19504+12>>2]|0;HEAP32[$font3$byval_copy3+16>>2]=HEAP32[19504+16>>2]|0;HEAP32[$font3$byval_copy3+20>>2]=HEAP32[19504+20>>2]|0;HEAP32[$font3$byval_copy3+24>>2]=HEAP32[19504+24>>2]|0;HEAP32[$font3$byval_copy3+28>>2]=HEAP32[19504+28>>2]|0;
  9460. _MeasureTextEx($4,$font3$byval_copy3,4290,$26,-2);
  9461. $27 = +HEAPF32[$4>>2];
  9462. $28 = $27 * 0.5;
  9463. $29 = $24 - $28;
  9464. HEAPF32[4894] = $29;
  9465. $30 = HEAP32[3]|0;
  9466. $31 = (($30|0) / 2)&-1;
  9467. $32 = HEAP32[(19524)>>2]|0;
  9468. $$neg1 = (($32|0) / -2)&-1;
  9469. $33 = (($31) + -10)|0;
  9470. $34 = (($33) + ($$neg1))|0;
  9471. $35 = (+($34|0));
  9472. HEAPF32[(19580)>>2] = $35;
  9473. $36 = HEAP32[2]|0;
  9474. $37 = (($36|0) / 2)&-1;
  9475. $38 = (+($37|0));
  9476. $39 = HEAP32[(19556)>>2]|0;
  9477. $40 = (+($39|0));
  9478. ;HEAP32[$font3$byval_copy3>>2]=HEAP32[19536>>2]|0;HEAP32[$font3$byval_copy3+4>>2]=HEAP32[19536+4>>2]|0;HEAP32[$font3$byval_copy3+8>>2]=HEAP32[19536+8>>2]|0;HEAP32[$font3$byval_copy3+12>>2]=HEAP32[19536+12>>2]|0;HEAP32[$font3$byval_copy3+16>>2]=HEAP32[19536+16>>2]|0;HEAP32[$font3$byval_copy3+20>>2]=HEAP32[19536+20>>2]|0;HEAP32[$font3$byval_copy3+24>>2]=HEAP32[19536+24>>2]|0;HEAP32[$font3$byval_copy3+28>>2]=HEAP32[19536+28>>2]|0;
  9479. _MeasureTextEx($5,$font3$byval_copy3,4340,$40,2);
  9480. $41 = +HEAPF32[$5>>2];
  9481. $42 = $41 * 0.5;
  9482. $43 = $38 - $42;
  9483. HEAPF32[4896] = $43;
  9484. $44 = HEAP32[3]|0;
  9485. $45 = (($44|0) / 2)&-1;
  9486. $46 = HEAP32[(19556)>>2]|0;
  9487. $$neg2 = (($46|0) / -2)&-1;
  9488. $47 = (($45) + 50)|0;
  9489. $48 = (($47) + ($$neg2))|0;
  9490. $49 = (+($48|0));
  9491. HEAPF32[(19588)>>2] = $49;
  9492. _emscripten_set_main_loop((1|0),0,1);
  9493. ;HEAP32[$font3$byval_copy3>>2]=HEAP32[19472>>2]|0;HEAP32[$font3$byval_copy3+4>>2]=HEAP32[19472+4>>2]|0;HEAP32[$font3$byval_copy3+8>>2]=HEAP32[19472+8>>2]|0;HEAP32[$font3$byval_copy3+12>>2]=HEAP32[19472+12>>2]|0;HEAP32[$font3$byval_copy3+16>>2]=HEAP32[19472+16>>2]|0;HEAP32[$font3$byval_copy3+20>>2]=HEAP32[19472+20>>2]|0;HEAP32[$font3$byval_copy3+24>>2]=HEAP32[19472+24>>2]|0;HEAP32[$font3$byval_copy3+28>>2]=HEAP32[19472+28>>2]|0;
  9494. _UnloadSpriteFont($font3$byval_copy3);
  9495. ;HEAP32[$font3$byval_copy3>>2]=HEAP32[19504>>2]|0;HEAP32[$font3$byval_copy3+4>>2]=HEAP32[19504+4>>2]|0;HEAP32[$font3$byval_copy3+8>>2]=HEAP32[19504+8>>2]|0;HEAP32[$font3$byval_copy3+12>>2]=HEAP32[19504+12>>2]|0;HEAP32[$font3$byval_copy3+16>>2]=HEAP32[19504+16>>2]|0;HEAP32[$font3$byval_copy3+20>>2]=HEAP32[19504+20>>2]|0;HEAP32[$font3$byval_copy3+24>>2]=HEAP32[19504+24>>2]|0;HEAP32[$font3$byval_copy3+28>>2]=HEAP32[19504+28>>2]|0;
  9496. _UnloadSpriteFont($font3$byval_copy3);
  9497. ;HEAP32[$font3$byval_copy3>>2]=HEAP32[19536>>2]|0;HEAP32[$font3$byval_copy3+4>>2]=HEAP32[19536+4>>2]|0;HEAP32[$font3$byval_copy3+8>>2]=HEAP32[19536+8>>2]|0;HEAP32[$font3$byval_copy3+12>>2]=HEAP32[19536+12>>2]|0;HEAP32[$font3$byval_copy3+16>>2]=HEAP32[19536+16>>2]|0;HEAP32[$font3$byval_copy3+20>>2]=HEAP32[19536+20>>2]|0;HEAP32[$font3$byval_copy3+24>>2]=HEAP32[19536+24>>2]|0;HEAP32[$font3$byval_copy3+28>>2]=HEAP32[19536+28>>2]|0;
  9498. _UnloadSpriteFont($font3$byval_copy3);
  9499. _CloseWindow();
  9500. STACKTOP = sp;return 0;
  9501. }
  9502. function _UpdateDrawFrame() {
  9503. var $0 = 0, $1 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0, $font3$byval_copy = 0, $fontPosition3$byval_copy = 0, $tmpcast2$byval_copy = 0, label = 0, sp = 0;
  9504. sp = STACKTOP;
  9505. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  9506. $tmpcast2$byval_copy = sp + 60|0;
  9507. $fontPosition3$byval_copy = sp + 48|0;
  9508. $font3$byval_copy = sp + 16|0;
  9509. $0 = sp + 56|0;
  9510. $1 = sp + 8|0;
  9511. $2 = sp + 4|0;
  9512. $3 = sp;
  9513. _BeginDrawing();
  9514. HEAP8[$0>>0] = -11;
  9515. $4 = ((($0)) + 1|0);
  9516. HEAP8[$4>>0] = -11;
  9517. $5 = ((($0)) + 2|0);
  9518. HEAP8[$5>>0] = -11;
  9519. $6 = ((($0)) + 3|0);
  9520. HEAP8[$6>>0] = -1;
  9521. ;HEAP8[$tmpcast2$byval_copy>>0]=HEAP8[$0>>0]|0;HEAP8[$tmpcast2$byval_copy+1>>0]=HEAP8[$0+1>>0]|0;HEAP8[$tmpcast2$byval_copy+2>>0]=HEAP8[$0+2>>0]|0;HEAP8[$tmpcast2$byval_copy+3>>0]=HEAP8[$0+3>>0]|0;
  9522. _ClearBackground($tmpcast2$byval_copy);
  9523. $7 = HEAP32[(19492)>>2]|0;
  9524. $8 = (+($7|0));
  9525. HEAP32[$1>>2] = -1;
  9526. ;HEAP32[$font3$byval_copy>>2]=HEAP32[19472>>2]|0;HEAP32[$font3$byval_copy+4>>2]=HEAP32[19472+4>>2]|0;HEAP32[$font3$byval_copy+8>>2]=HEAP32[19472+8>>2]|0;HEAP32[$font3$byval_copy+12>>2]=HEAP32[19472+12>>2]|0;HEAP32[$font3$byval_copy+16>>2]=HEAP32[19472+16>>2]|0;HEAP32[$font3$byval_copy+20>>2]=HEAP32[19472+20>>2]|0;HEAP32[$font3$byval_copy+24>>2]=HEAP32[19472+24>>2]|0;HEAP32[$font3$byval_copy+28>>2]=HEAP32[19472+28>>2]|0;
  9527. ;HEAP32[$fontPosition3$byval_copy>>2]=HEAP32[19568>>2]|0;HEAP32[$fontPosition3$byval_copy+4>>2]=HEAP32[19568+4>>2]|0;
  9528. ;HEAP8[$tmpcast2$byval_copy>>0]=HEAP8[$1>>0]|0;HEAP8[$tmpcast2$byval_copy+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$tmpcast2$byval_copy+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$tmpcast2$byval_copy+3>>0]=HEAP8[$1+3>>0]|0;
  9529. _DrawTextEx($font3$byval_copy,4240,$fontPosition3$byval_copy,$8,-3,$tmpcast2$byval_copy);
  9530. $9 = HEAP32[(19524)>>2]|0;
  9531. $10 = (+($9|0));
  9532. HEAP32[$2>>2] = -1;
  9533. ;HEAP32[$font3$byval_copy>>2]=HEAP32[19504>>2]|0;HEAP32[$font3$byval_copy+4>>2]=HEAP32[19504+4>>2]|0;HEAP32[$font3$byval_copy+8>>2]=HEAP32[19504+8>>2]|0;HEAP32[$font3$byval_copy+12>>2]=HEAP32[19504+12>>2]|0;HEAP32[$font3$byval_copy+16>>2]=HEAP32[19504+16>>2]|0;HEAP32[$font3$byval_copy+20>>2]=HEAP32[19504+20>>2]|0;HEAP32[$font3$byval_copy+24>>2]=HEAP32[19504+24>>2]|0;HEAP32[$font3$byval_copy+28>>2]=HEAP32[19504+28>>2]|0;
  9534. ;HEAP32[$fontPosition3$byval_copy>>2]=HEAP32[19576>>2]|0;HEAP32[$fontPosition3$byval_copy+4>>2]=HEAP32[19576+4>>2]|0;
  9535. ;HEAP8[$tmpcast2$byval_copy>>0]=HEAP8[$2>>0]|0;HEAP8[$tmpcast2$byval_copy+1>>0]=HEAP8[$2+1>>0]|0;HEAP8[$tmpcast2$byval_copy+2>>0]=HEAP8[$2+2>>0]|0;HEAP8[$tmpcast2$byval_copy+3>>0]=HEAP8[$2+3>>0]|0;
  9536. _DrawTextEx($font3$byval_copy,4290,$fontPosition3$byval_copy,$10,-2,$tmpcast2$byval_copy);
  9537. $11 = HEAP32[(19556)>>2]|0;
  9538. $12 = (+($11|0));
  9539. HEAP32[$3>>2] = -1;
  9540. ;HEAP32[$font3$byval_copy>>2]=HEAP32[19536>>2]|0;HEAP32[$font3$byval_copy+4>>2]=HEAP32[19536+4>>2]|0;HEAP32[$font3$byval_copy+8>>2]=HEAP32[19536+8>>2]|0;HEAP32[$font3$byval_copy+12>>2]=HEAP32[19536+12>>2]|0;HEAP32[$font3$byval_copy+16>>2]=HEAP32[19536+16>>2]|0;HEAP32[$font3$byval_copy+20>>2]=HEAP32[19536+20>>2]|0;HEAP32[$font3$byval_copy+24>>2]=HEAP32[19536+24>>2]|0;HEAP32[$font3$byval_copy+28>>2]=HEAP32[19536+28>>2]|0;
  9541. ;HEAP32[$fontPosition3$byval_copy>>2]=HEAP32[19584>>2]|0;HEAP32[$fontPosition3$byval_copy+4>>2]=HEAP32[19584+4>>2]|0;
  9542. ;HEAP8[$tmpcast2$byval_copy>>0]=HEAP8[$3>>0]|0;HEAP8[$tmpcast2$byval_copy+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$tmpcast2$byval_copy+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$tmpcast2$byval_copy+3>>0]=HEAP8[$3+3>>0]|0;
  9543. _DrawTextEx($font3$byval_copy,4340,$fontPosition3$byval_copy,$12,2,$tmpcast2$byval_copy);
  9544. _EndDrawing();
  9545. STACKTOP = sp;return;
  9546. }
  9547. function _Vector2Distance($0,$1) {
  9548. $0 = $0|0;
  9549. $1 = $1|0;
  9550. 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;
  9551. sp = STACKTOP;
  9552. $2 = +HEAPF32[$0>>2];
  9553. $3 = +HEAPF32[$1>>2];
  9554. $4 = $2 - $3;
  9555. $5 = $4 * $4;
  9556. $6 = ((($0)) + 4|0);
  9557. $7 = +HEAPF32[$6>>2];
  9558. $8 = ((($1)) + 4|0);
  9559. $9 = +HEAPF32[$8>>2];
  9560. $10 = $7 - $9;
  9561. $11 = $10 * $10;
  9562. $12 = $5 + $11;
  9563. $13 = (+Math_sqrt((+$12)));
  9564. return (+$13);
  9565. }
  9566. function _Vector2Angle($0,$1) {
  9567. $0 = $0|0;
  9568. $1 = $1|0;
  9569. 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;
  9570. sp = STACKTOP;
  9571. $2 = ((($1)) + 4|0);
  9572. $3 = +HEAPF32[$2>>2];
  9573. $4 = ((($0)) + 4|0);
  9574. $5 = +HEAPF32[$4>>2];
  9575. $6 = $3 - $5;
  9576. $7 = +HEAPF32[$1>>2];
  9577. $8 = +HEAPF32[$0>>2];
  9578. $9 = $7 - $8;
  9579. $10 = (+Math_atan2((+$6),(+$9)));
  9580. $11 = $10 * 57.2957763671875;
  9581. $12 = $11 < 0.0;
  9582. $13 = $11 + 360.0;
  9583. $$0 = $12 ? $13 : $11;
  9584. return (+$$0);
  9585. }
  9586. function _VectorZero($0) {
  9587. $0 = $0|0;
  9588. var $1 = 0, $2 = 0, label = 0, sp = 0;
  9589. sp = STACKTOP;
  9590. HEAPF32[$0>>2] = 0.0;
  9591. $1 = ((($0)) + 4|0);
  9592. HEAPF32[$1>>2] = 0.0;
  9593. $2 = ((($0)) + 8|0);
  9594. HEAPF32[$2>>2] = 0.0;
  9595. return;
  9596. }
  9597. function _VectorLength($0) {
  9598. $0 = $0|0;
  9599. 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;
  9600. sp = STACKTOP;
  9601. $1 = +HEAPF32[$0>>2];
  9602. $2 = $1 * $1;
  9603. $3 = ((($0)) + 4|0);
  9604. $4 = +HEAPF32[$3>>2];
  9605. $5 = $4 * $4;
  9606. $6 = $2 + $5;
  9607. $7 = ((($0)) + 8|0);
  9608. $8 = +HEAPF32[$7>>2];
  9609. $9 = $8 * $8;
  9610. $10 = $6 + $9;
  9611. $11 = (+Math_sqrt((+$10)));
  9612. return (+$11);
  9613. }
  9614. function _VectorNormalize($0) {
  9615. $0 = $0|0;
  9616. 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;
  9617. sp = STACKTOP;
  9618. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  9619. $$byval_copy = sp;
  9620. ;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;
  9621. $1 = (+_VectorLength($$byval_copy));
  9622. $2 = $1 == 0.0;
  9623. $$op = 1.0 / $1;
  9624. $3 = $2 ? 1.0 : $$op;
  9625. $4 = +HEAPF32[$0>>2];
  9626. $5 = $4 * $3;
  9627. HEAPF32[$0>>2] = $5;
  9628. $6 = ((($0)) + 4|0);
  9629. $7 = +HEAPF32[$6>>2];
  9630. $8 = $3 * $7;
  9631. HEAPF32[$6>>2] = $8;
  9632. $9 = ((($0)) + 8|0);
  9633. $10 = +HEAPF32[$9>>2];
  9634. $11 = $3 * $10;
  9635. HEAPF32[$9>>2] = $11;
  9636. STACKTOP = sp;return;
  9637. }
  9638. function _VectorTransform($0,$1) {
  9639. $0 = $0|0;
  9640. $1 = $1|0;
  9641. 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;
  9642. 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;
  9643. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9644. sp = STACKTOP;
  9645. $2 = +HEAPF32[$0>>2];
  9646. $3 = ((($0)) + 4|0);
  9647. $4 = +HEAPF32[$3>>2];
  9648. $5 = ((($0)) + 8|0);
  9649. $6 = +HEAPF32[$5>>2];
  9650. $7 = +HEAPF32[$1>>2];
  9651. $8 = $2 * $7;
  9652. $9 = ((($1)) + 4|0);
  9653. $10 = +HEAPF32[$9>>2];
  9654. $11 = $4 * $10;
  9655. $12 = $8 + $11;
  9656. $13 = ((($1)) + 8|0);
  9657. $14 = +HEAPF32[$13>>2];
  9658. $15 = $6 * $14;
  9659. $16 = $12 + $15;
  9660. $17 = ((($1)) + 12|0);
  9661. $18 = +HEAPF32[$17>>2];
  9662. $19 = $18 + $16;
  9663. HEAPF32[$0>>2] = $19;
  9664. $20 = ((($1)) + 16|0);
  9665. $21 = +HEAPF32[$20>>2];
  9666. $22 = $2 * $21;
  9667. $23 = ((($1)) + 20|0);
  9668. $24 = +HEAPF32[$23>>2];
  9669. $25 = $4 * $24;
  9670. $26 = $22 + $25;
  9671. $27 = ((($1)) + 24|0);
  9672. $28 = +HEAPF32[$27>>2];
  9673. $29 = $6 * $28;
  9674. $30 = $26 + $29;
  9675. $31 = ((($1)) + 28|0);
  9676. $32 = +HEAPF32[$31>>2];
  9677. $33 = $32 + $30;
  9678. HEAPF32[$3>>2] = $33;
  9679. $34 = ((($1)) + 32|0);
  9680. $35 = +HEAPF32[$34>>2];
  9681. $36 = $2 * $35;
  9682. $37 = ((($1)) + 36|0);
  9683. $38 = +HEAPF32[$37>>2];
  9684. $39 = $4 * $38;
  9685. $40 = $36 + $39;
  9686. $41 = ((($1)) + 40|0);
  9687. $42 = +HEAPF32[$41>>2];
  9688. $43 = $6 * $42;
  9689. $44 = $40 + $43;
  9690. $45 = ((($1)) + 44|0);
  9691. $46 = +HEAPF32[$45>>2];
  9692. $47 = $46 + $44;
  9693. HEAPF32[$5>>2] = $47;
  9694. return;
  9695. }
  9696. function _MatrixTranspose($0) {
  9697. $0 = $0|0;
  9698. 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;
  9699. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  9700. sp = STACKTOP;
  9701. $1 = ((($0)) + 4|0);
  9702. $2 = HEAP32[$1>>2]|0;
  9703. $3 = ((($0)) + 8|0);
  9704. $4 = HEAP32[$3>>2]|0;
  9705. $5 = ((($0)) + 12|0);
  9706. $6 = HEAP32[$5>>2]|0;
  9707. $7 = ((($0)) + 16|0);
  9708. $8 = HEAP32[$7>>2]|0;
  9709. $9 = ((($0)) + 24|0);
  9710. $10 = HEAP32[$9>>2]|0;
  9711. $11 = ((($0)) + 28|0);
  9712. $12 = HEAP32[$11>>2]|0;
  9713. $13 = ((($0)) + 32|0);
  9714. $14 = HEAP32[$13>>2]|0;
  9715. $15 = ((($0)) + 36|0);
  9716. $16 = HEAP32[$15>>2]|0;
  9717. $17 = ((($0)) + 44|0);
  9718. $18 = HEAP32[$17>>2]|0;
  9719. $19 = ((($0)) + 48|0);
  9720. $20 = HEAP32[$19>>2]|0;
  9721. $21 = ((($0)) + 52|0);
  9722. $22 = HEAP32[$21>>2]|0;
  9723. $23 = ((($0)) + 56|0);
  9724. $24 = HEAP32[$23>>2]|0;
  9725. HEAP32[$1>>2] = $8;
  9726. HEAP32[$3>>2] = $14;
  9727. HEAP32[$5>>2] = $20;
  9728. HEAP32[$7>>2] = $2;
  9729. HEAP32[$9>>2] = $16;
  9730. HEAP32[$11>>2] = $22;
  9731. HEAP32[$13>>2] = $4;
  9732. HEAP32[$15>>2] = $10;
  9733. HEAP32[$17>>2] = $24;
  9734. HEAP32[$19>>2] = $6;
  9735. HEAP32[$21>>2] = $12;
  9736. HEAP32[$23>>2] = $18;
  9737. return;
  9738. }
  9739. function _MatrixIdentity($0) {
  9740. $0 = $0|0;
  9741. 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;
  9742. sp = STACKTOP;
  9743. HEAPF32[$0>>2] = 1.0;
  9744. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  9745. ;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;
  9746. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  9747. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  9748. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  9749. ;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;
  9750. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  9751. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  9752. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  9753. ;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;
  9754. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  9755. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  9756. return;
  9757. }
  9758. function _MatrixTranslate($0,$1,$2,$3) {
  9759. $0 = $0|0;
  9760. $1 = +$1;
  9761. $2 = +$2;
  9762. $3 = +$3;
  9763. 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;
  9764. sp = STACKTOP;
  9765. HEAPF32[$0>>2] = 1.0;
  9766. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  9767. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  9768. ;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;
  9769. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  9770. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  9771. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  9772. ;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;
  9773. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  9774. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  9775. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  9776. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  9777. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  9778. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  9779. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  9780. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  9781. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  9782. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  9783. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  9784. return;
  9785. }
  9786. function _MatrixRotate($0,$1,$2) {
  9787. $0 = $0|0;
  9788. $1 = $1|0;
  9789. $2 = +$2;
  9790. 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;
  9791. 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;
  9792. 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;
  9793. 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;
  9794. 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;
  9795. 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;
  9796. 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;
  9797. 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;
  9798. sp = STACKTOP;
  9799. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  9800. $3 = sp;
  9801. _MatrixIdentity($3);
  9802. $4 = +HEAPF32[$1>>2];
  9803. $5 = ((($1)) + 4|0);
  9804. $6 = +HEAPF32[$5>>2];
  9805. $7 = ((($1)) + 8|0);
  9806. $8 = +HEAPF32[$7>>2];
  9807. $9 = $4 * $4;
  9808. $10 = $6 * $6;
  9809. $11 = $9 + $10;
  9810. $12 = $8 * $8;
  9811. $13 = $11 + $12;
  9812. $14 = (+Math_sqrt((+$13)));
  9813. $15 = $14 != 1.0;
  9814. $16 = $14 != 0.0;
  9815. $or$cond = $15 & $16;
  9816. $17 = 1.0 / $14;
  9817. $18 = $4 * $17;
  9818. $19 = $6 * $17;
  9819. $20 = $8 * $17;
  9820. $$ = $or$cond ? $20 : $8;
  9821. $$221 = $or$cond ? $19 : $6;
  9822. $$222 = $or$cond ? $18 : $4;
  9823. $21 = (+Math_sin((+$2)));
  9824. $22 = (+Math_cos((+$2)));
  9825. $23 = 1.0 - $22;
  9826. $24 = +HEAPF32[$3>>2];
  9827. $25 = ((($3)) + 16|0);
  9828. $26 = +HEAPF32[$25>>2];
  9829. $27 = ((($3)) + 32|0);
  9830. $28 = +HEAPF32[$27>>2];
  9831. $29 = ((($3)) + 48|0);
  9832. $30 = +HEAPF32[$29>>2];
  9833. $31 = ((($3)) + 4|0);
  9834. $32 = +HEAPF32[$31>>2];
  9835. $33 = ((($3)) + 20|0);
  9836. $34 = +HEAPF32[$33>>2];
  9837. $35 = ((($3)) + 36|0);
  9838. $36 = +HEAPF32[$35>>2];
  9839. $37 = ((($3)) + 52|0);
  9840. $38 = +HEAPF32[$37>>2];
  9841. $39 = ((($3)) + 8|0);
  9842. $40 = +HEAPF32[$39>>2];
  9843. $41 = ((($3)) + 24|0);
  9844. $42 = +HEAPF32[$41>>2];
  9845. $43 = ((($3)) + 40|0);
  9846. $44 = +HEAPF32[$43>>2];
  9847. $45 = ((($3)) + 56|0);
  9848. $46 = +HEAPF32[$45>>2];
  9849. $47 = $$222 * $$222;
  9850. $48 = $23 * $47;
  9851. $49 = $22 + $48;
  9852. $50 = $$221 * $$222;
  9853. $51 = $23 * $50;
  9854. $52 = $21 * $$;
  9855. $53 = $52 + $51;
  9856. $54 = $$ * $$222;
  9857. $55 = $23 * $54;
  9858. $56 = $21 * $$221;
  9859. $57 = $55 - $56;
  9860. $58 = $51 - $52;
  9861. $59 = $$221 * $$221;
  9862. $60 = $23 * $59;
  9863. $61 = $22 + $60;
  9864. $62 = $$ * $$221;
  9865. $63 = $23 * $62;
  9866. $64 = $21 * $$222;
  9867. $65 = $64 + $63;
  9868. $66 = $56 + $55;
  9869. $67 = $63 - $64;
  9870. $68 = $$ * $$;
  9871. $69 = $23 * $68;
  9872. $70 = $22 + $69;
  9873. $71 = $24 * $49;
  9874. $72 = $53 * $32;
  9875. $73 = $71 + $72;
  9876. $74 = $57 * $40;
  9877. $75 = $73 + $74;
  9878. $76 = $26 * $49;
  9879. $77 = $53 * $34;
  9880. $78 = $76 + $77;
  9881. $79 = $57 * $42;
  9882. $80 = $78 + $79;
  9883. $81 = $28 * $49;
  9884. $82 = $53 * $36;
  9885. $83 = $81 + $82;
  9886. $84 = $57 * $44;
  9887. $85 = $83 + $84;
  9888. $86 = $30 * $49;
  9889. $87 = $53 * $38;
  9890. $88 = $86 + $87;
  9891. $89 = $57 * $46;
  9892. $90 = $88 + $89;
  9893. $91 = $24 * $58;
  9894. $92 = $61 * $32;
  9895. $93 = $91 + $92;
  9896. $94 = $65 * $40;
  9897. $95 = $93 + $94;
  9898. $96 = $26 * $58;
  9899. $97 = $61 * $34;
  9900. $98 = $96 + $97;
  9901. $99 = $65 * $42;
  9902. $100 = $98 + $99;
  9903. $101 = $28 * $58;
  9904. $102 = $61 * $36;
  9905. $103 = $101 + $102;
  9906. $104 = $65 * $44;
  9907. $105 = $103 + $104;
  9908. $106 = $30 * $58;
  9909. $107 = $61 * $38;
  9910. $108 = $106 + $107;
  9911. $109 = $65 * $46;
  9912. $110 = $108 + $109;
  9913. $111 = $24 * $66;
  9914. $112 = $67 * $32;
  9915. $113 = $111 + $112;
  9916. $114 = $70 * $40;
  9917. $115 = $113 + $114;
  9918. $116 = $26 * $66;
  9919. $117 = $67 * $34;
  9920. $118 = $116 + $117;
  9921. $119 = $70 * $42;
  9922. $120 = $118 + $119;
  9923. $121 = $28 * $66;
  9924. $122 = $67 * $36;
  9925. $123 = $121 + $122;
  9926. $124 = $70 * $44;
  9927. $125 = $123 + $124;
  9928. $126 = $30 * $66;
  9929. $127 = $67 * $38;
  9930. $128 = $126 + $127;
  9931. $129 = $70 * $46;
  9932. $130 = $128 + $129;
  9933. $131 = ((($3)) + 12|0);
  9934. $132 = HEAP32[$131>>2]|0;
  9935. $133 = ((($3)) + 28|0);
  9936. $134 = HEAP32[$133>>2]|0;
  9937. $135 = ((($3)) + 44|0);
  9938. $136 = HEAP32[$135>>2]|0;
  9939. $137 = ((($3)) + 60|0);
  9940. $138 = HEAP32[$137>>2]|0;
  9941. HEAPF32[$0>>2] = $75;
  9942. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  9943. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  9944. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  9945. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  9946. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  9947. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  9948. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  9949. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  9950. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  9951. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  9952. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  9953. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  9954. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  9955. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  9956. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  9957. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  9958. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  9959. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  9960. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  9961. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  9962. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  9963. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  9964. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  9965. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  9966. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  9967. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  9968. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  9969. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  9970. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  9971. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  9972. STACKTOP = sp;return;
  9973. }
  9974. function _MatrixScale($0,$1,$2,$3) {
  9975. $0 = $0|0;
  9976. $1 = +$1;
  9977. $2 = +$2;
  9978. $3 = +$3;
  9979. 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;
  9980. sp = STACKTOP;
  9981. HEAPF32[$0>>2] = $1;
  9982. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  9983. ;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;
  9984. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  9985. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  9986. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  9987. ;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;
  9988. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  9989. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  9990. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  9991. ;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;
  9992. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  9993. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  9994. return;
  9995. }
  9996. function _MatrixMultiply($0,$1,$2) {
  9997. $0 = $0|0;
  9998. $1 = $1|0;
  9999. $2 = $2|0;
  10000. 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;
  10001. 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;
  10002. 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;
  10003. 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;
  10004. 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;
  10005. 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;
  10006. 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;
  10007. 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;
  10008. 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;
  10009. 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;
  10010. sp = STACKTOP;
  10011. $3 = +HEAPF32[$2>>2];
  10012. $4 = +HEAPF32[$1>>2];
  10013. $5 = $3 * $4;
  10014. $6 = ((($2)) + 16|0);
  10015. $7 = +HEAPF32[$6>>2];
  10016. $8 = ((($1)) + 4|0);
  10017. $9 = +HEAPF32[$8>>2];
  10018. $10 = $7 * $9;
  10019. $11 = $5 + $10;
  10020. $12 = ((($2)) + 32|0);
  10021. $13 = +HEAPF32[$12>>2];
  10022. $14 = ((($1)) + 8|0);
  10023. $15 = +HEAPF32[$14>>2];
  10024. $16 = $13 * $15;
  10025. $17 = $11 + $16;
  10026. $18 = ((($2)) + 48|0);
  10027. $19 = +HEAPF32[$18>>2];
  10028. $20 = ((($1)) + 12|0);
  10029. $21 = +HEAPF32[$20>>2];
  10030. $22 = $19 * $21;
  10031. $23 = $17 + $22;
  10032. $24 = ((($1)) + 16|0);
  10033. $25 = +HEAPF32[$24>>2];
  10034. $26 = $3 * $25;
  10035. $27 = ((($1)) + 20|0);
  10036. $28 = +HEAPF32[$27>>2];
  10037. $29 = $7 * $28;
  10038. $30 = $26 + $29;
  10039. $31 = ((($1)) + 24|0);
  10040. $32 = +HEAPF32[$31>>2];
  10041. $33 = $13 * $32;
  10042. $34 = $30 + $33;
  10043. $35 = ((($1)) + 28|0);
  10044. $36 = +HEAPF32[$35>>2];
  10045. $37 = $19 * $36;
  10046. $38 = $34 + $37;
  10047. $39 = ((($1)) + 32|0);
  10048. $40 = +HEAPF32[$39>>2];
  10049. $41 = $3 * $40;
  10050. $42 = ((($1)) + 36|0);
  10051. $43 = +HEAPF32[$42>>2];
  10052. $44 = $7 * $43;
  10053. $45 = $41 + $44;
  10054. $46 = ((($1)) + 40|0);
  10055. $47 = +HEAPF32[$46>>2];
  10056. $48 = $13 * $47;
  10057. $49 = $45 + $48;
  10058. $50 = ((($1)) + 44|0);
  10059. $51 = +HEAPF32[$50>>2];
  10060. $52 = $19 * $51;
  10061. $53 = $49 + $52;
  10062. $54 = ((($1)) + 48|0);
  10063. $55 = +HEAPF32[$54>>2];
  10064. $56 = $3 * $55;
  10065. $57 = ((($1)) + 52|0);
  10066. $58 = +HEAPF32[$57>>2];
  10067. $59 = $7 * $58;
  10068. $60 = $56 + $59;
  10069. $61 = ((($1)) + 56|0);
  10070. $62 = +HEAPF32[$61>>2];
  10071. $63 = $13 * $62;
  10072. $64 = $60 + $63;
  10073. $65 = ((($1)) + 60|0);
  10074. $66 = +HEAPF32[$65>>2];
  10075. $67 = $19 * $66;
  10076. $68 = $64 + $67;
  10077. $69 = ((($2)) + 4|0);
  10078. $70 = +HEAPF32[$69>>2];
  10079. $71 = $4 * $70;
  10080. $72 = ((($2)) + 20|0);
  10081. $73 = +HEAPF32[$72>>2];
  10082. $74 = $9 * $73;
  10083. $75 = $71 + $74;
  10084. $76 = ((($2)) + 36|0);
  10085. $77 = +HEAPF32[$76>>2];
  10086. $78 = $15 * $77;
  10087. $79 = $75 + $78;
  10088. $80 = ((($2)) + 52|0);
  10089. $81 = +HEAPF32[$80>>2];
  10090. $82 = $21 * $81;
  10091. $83 = $79 + $82;
  10092. $84 = $25 * $70;
  10093. $85 = $28 * $73;
  10094. $86 = $84 + $85;
  10095. $87 = $32 * $77;
  10096. $88 = $86 + $87;
  10097. $89 = $36 * $81;
  10098. $90 = $88 + $89;
  10099. $91 = $40 * $70;
  10100. $92 = $43 * $73;
  10101. $93 = $91 + $92;
  10102. $94 = $47 * $77;
  10103. $95 = $93 + $94;
  10104. $96 = $51 * $81;
  10105. $97 = $95 + $96;
  10106. $98 = $55 * $70;
  10107. $99 = $58 * $73;
  10108. $100 = $98 + $99;
  10109. $101 = $62 * $77;
  10110. $102 = $100 + $101;
  10111. $103 = $66 * $81;
  10112. $104 = $102 + $103;
  10113. $105 = ((($2)) + 8|0);
  10114. $106 = +HEAPF32[$105>>2];
  10115. $107 = $4 * $106;
  10116. $108 = ((($2)) + 24|0);
  10117. $109 = +HEAPF32[$108>>2];
  10118. $110 = $9 * $109;
  10119. $111 = $107 + $110;
  10120. $112 = ((($2)) + 40|0);
  10121. $113 = +HEAPF32[$112>>2];
  10122. $114 = $15 * $113;
  10123. $115 = $111 + $114;
  10124. $116 = ((($2)) + 56|0);
  10125. $117 = +HEAPF32[$116>>2];
  10126. $118 = $21 * $117;
  10127. $119 = $115 + $118;
  10128. $120 = $25 * $106;
  10129. $121 = $28 * $109;
  10130. $122 = $120 + $121;
  10131. $123 = $32 * $113;
  10132. $124 = $122 + $123;
  10133. $125 = $36 * $117;
  10134. $126 = $124 + $125;
  10135. $127 = $40 * $106;
  10136. $128 = $43 * $109;
  10137. $129 = $127 + $128;
  10138. $130 = $47 * $113;
  10139. $131 = $129 + $130;
  10140. $132 = $51 * $117;
  10141. $133 = $131 + $132;
  10142. $134 = $55 * $106;
  10143. $135 = $58 * $109;
  10144. $136 = $134 + $135;
  10145. $137 = $62 * $113;
  10146. $138 = $136 + $137;
  10147. $139 = $66 * $117;
  10148. $140 = $138 + $139;
  10149. $141 = ((($2)) + 12|0);
  10150. $142 = +HEAPF32[$141>>2];
  10151. $143 = $4 * $142;
  10152. $144 = ((($2)) + 28|0);
  10153. $145 = +HEAPF32[$144>>2];
  10154. $146 = $9 * $145;
  10155. $147 = $143 + $146;
  10156. $148 = ((($2)) + 44|0);
  10157. $149 = +HEAPF32[$148>>2];
  10158. $150 = $15 * $149;
  10159. $151 = $147 + $150;
  10160. $152 = ((($2)) + 60|0);
  10161. $153 = +HEAPF32[$152>>2];
  10162. $154 = $21 * $153;
  10163. $155 = $151 + $154;
  10164. $156 = $25 * $142;
  10165. $157 = $28 * $145;
  10166. $158 = $156 + $157;
  10167. $159 = $32 * $149;
  10168. $160 = $158 + $159;
  10169. $161 = $36 * $153;
  10170. $162 = $160 + $161;
  10171. $163 = $40 * $142;
  10172. $164 = $43 * $145;
  10173. $165 = $163 + $164;
  10174. $166 = $47 * $149;
  10175. $167 = $165 + $166;
  10176. $168 = $51 * $153;
  10177. $169 = $167 + $168;
  10178. $170 = $55 * $142;
  10179. $171 = $58 * $145;
  10180. $172 = $170 + $171;
  10181. $173 = $62 * $149;
  10182. $174 = $172 + $173;
  10183. $175 = $66 * $153;
  10184. $176 = $174 + $175;
  10185. HEAPF32[$0>>2] = $23;
  10186. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10187. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  10188. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10189. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  10190. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10191. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  10192. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10193. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  10194. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10195. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  10196. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10197. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  10198. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10199. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  10200. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10201. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  10202. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10203. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  10204. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10205. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  10206. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10207. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  10208. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10209. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  10210. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10211. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  10212. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10213. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  10214. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10215. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  10216. return;
  10217. }
  10218. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  10219. $0 = $0|0;
  10220. $1 = +$1;
  10221. $2 = +$2;
  10222. $3 = +$3;
  10223. $4 = +$4;
  10224. $5 = +$5;
  10225. $6 = +$6;
  10226. 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;
  10227. 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;
  10228. var sp = 0;
  10229. sp = STACKTOP;
  10230. $7 = $2 - $1;
  10231. $8 = $7;
  10232. $9 = $4 - $3;
  10233. $10 = $9;
  10234. $11 = $6 - $5;
  10235. $12 = $11;
  10236. $13 = 2.0 / $8;
  10237. $14 = 2.0 / $10;
  10238. $15 = -2.0 / $12;
  10239. $16 = $1 + $2;
  10240. $17 = -$16;
  10241. $18 = $8;
  10242. $19 = $17 / $18;
  10243. $20 = $19;
  10244. $21 = $3 + $4;
  10245. $22 = -$21;
  10246. $23 = $10;
  10247. $24 = $22 / $23;
  10248. $25 = $24;
  10249. $26 = $5 + $6;
  10250. $27 = -$26;
  10251. $28 = $12;
  10252. $29 = $27 / $28;
  10253. $30 = $29;
  10254. HEAPF32[$0>>2] = $13;
  10255. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10256. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10257. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10258. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  10259. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10260. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  10261. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10262. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10263. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10264. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  10265. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10266. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  10267. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10268. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  10269. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10270. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10271. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10272. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10273. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10274. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  10275. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10276. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  10277. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10278. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10279. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10280. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10281. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10282. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  10283. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10284. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  10285. return;
  10286. }
  10287. function _ProcessGestureEvent($0) {
  10288. $0 = $0|0;
  10289. 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;
  10290. 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;
  10291. 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;
  10292. 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;
  10293. 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;
  10294. 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;
  10295. 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;
  10296. 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;
  10297. 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;
  10298. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  10299. sp = STACKTOP;
  10300. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10301. $moveDownPosition2$byval_copy12 = sp + 8|0;
  10302. $moveDownPosition$byval_copy11 = sp;
  10303. $1 = ((($0)) + 4|0);
  10304. $2 = HEAP32[$1>>2]|0;
  10305. HEAP32[4899] = $2;
  10306. $3 = ($2|0)<(2);
  10307. $4 = HEAP32[$0>>2]|0;
  10308. $5 = ($4|0)==(1);
  10309. if (!($3)) {
  10310. if ($5) {
  10311. $88 = ((($0)) + 24|0);
  10312. $89 = $88;
  10313. $90 = $89;
  10314. $91 = HEAP32[$90>>2]|0;
  10315. $92 = (($89) + 4)|0;
  10316. $93 = $92;
  10317. $94 = HEAP32[$93>>2]|0;
  10318. $95 = 19200;
  10319. $96 = $95;
  10320. HEAP32[$96>>2] = $91;
  10321. $97 = (($95) + 4)|0;
  10322. $98 = $97;
  10323. HEAP32[$98>>2] = $94;
  10324. $99 = ((($0)) + 32|0);
  10325. $100 = $99;
  10326. $101 = $100;
  10327. $102 = HEAP32[$101>>2]|0;
  10328. $103 = (($100) + 4)|0;
  10329. $104 = $103;
  10330. $105 = HEAP32[$104>>2]|0;
  10331. $106 = 19240;
  10332. $107 = $106;
  10333. HEAP32[$107>>2] = $102;
  10334. $108 = (($106) + 4)|0;
  10335. $109 = $108;
  10336. HEAP32[$109>>2] = $105;
  10337. $110 = +HEAPF32[4810];
  10338. $111 = +HEAPF32[4800];
  10339. $112 = $110 - $111;
  10340. HEAPF32[4812] = $112;
  10341. $113 = +HEAPF32[(19244)>>2];
  10342. $114 = +HEAPF32[(19204)>>2];
  10343. $115 = $113 - $114;
  10344. HEAPF32[(19252)>>2] = $115;
  10345. HEAP32[4898] = 4;
  10346. STACKTOP = sp;return;
  10347. }
  10348. switch ($4|0) {
  10349. case 2: {
  10350. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19232>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19232+4>>2]|0;
  10351. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19256>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19256+4>>2]|0;
  10352. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10353. HEAPF32[4904] = $116;
  10354. $117 = 19232;
  10355. $118 = $117;
  10356. $119 = HEAP32[$118>>2]|0;
  10357. $120 = (($117) + 4)|0;
  10358. $121 = $120;
  10359. $122 = HEAP32[$121>>2]|0;
  10360. $123 = 19200;
  10361. $124 = $123;
  10362. HEAP32[$124>>2] = $119;
  10363. $125 = (($123) + 4)|0;
  10364. $126 = $125;
  10365. HEAP32[$126>>2] = $122;
  10366. $127 = 19256;
  10367. $128 = $127;
  10368. $129 = HEAP32[$128>>2]|0;
  10369. $130 = (($127) + 4)|0;
  10370. $131 = $130;
  10371. $132 = HEAP32[$131>>2]|0;
  10372. $133 = 19240;
  10373. $134 = $133;
  10374. HEAP32[$134>>2] = $129;
  10375. $135 = (($133) + 4)|0;
  10376. $136 = $135;
  10377. HEAP32[$136>>2] = $132;
  10378. $137 = ((($0)) + 24|0);
  10379. $138 = $137;
  10380. $139 = $138;
  10381. $140 = HEAP32[$139>>2]|0;
  10382. $141 = (($138) + 4)|0;
  10383. $142 = $141;
  10384. $143 = HEAP32[$142>>2]|0;
  10385. $144 = 19232;
  10386. $145 = $144;
  10387. HEAP32[$145>>2] = $140;
  10388. $146 = (($144) + 4)|0;
  10389. $147 = $146;
  10390. HEAP32[$147>>2] = $143;
  10391. $148 = ((($0)) + 32|0);
  10392. $149 = $148;
  10393. $150 = $149;
  10394. $151 = HEAP32[$150>>2]|0;
  10395. $152 = (($149) + 4)|0;
  10396. $153 = $152;
  10397. $154 = HEAP32[$153>>2]|0;
  10398. $155 = 19256;
  10399. $156 = $155;
  10400. HEAP32[$156>>2] = $151;
  10401. $157 = (($155) + 4)|0;
  10402. $158 = $157;
  10403. HEAP32[$158>>2] = $154;
  10404. $159 = +HEAPF32[4814];
  10405. $160 = +HEAPF32[4808];
  10406. $161 = $159 - $160;
  10407. HEAPF32[4812] = $161;
  10408. $162 = +HEAPF32[(19260)>>2];
  10409. $163 = +HEAPF32[(19236)>>2];
  10410. $164 = $162 - $163;
  10411. HEAPF32[(19252)>>2] = $164;
  10412. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19200>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19200+4>>2]|0;
  10413. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19232>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19232+4>>2]|0;
  10414. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10415. $166 = !($165 >= 0.004999999888241291);
  10416. if ($166) {
  10417. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19240>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19240+4>>2]|0;
  10418. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19256>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19256+4>>2]|0;
  10419. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10420. $168 = !($167 >= 0.004999999888241291);
  10421. if ($168) {
  10422. $$sink16 = 4;
  10423. } else {
  10424. label = 29;
  10425. }
  10426. } else {
  10427. label = 29;
  10428. }
  10429. if ((label|0) == 29) {
  10430. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19232>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19232+4>>2]|0;
  10431. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19256>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19256+4>>2]|0;
  10432. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10433. $170 = +HEAPF32[4904];
  10434. $171 = $169 - $170;
  10435. $172 = $171 < 0.0;
  10436. $$sink11 = $172 ? 256 : 512;
  10437. $$sink16 = $$sink11;
  10438. }
  10439. HEAP32[4898] = $$sink16;
  10440. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19232>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19232+4>>2]|0;
  10441. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19256>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19256+4>>2]|0;
  10442. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10443. $174 = 360.0 - $173;
  10444. HEAPF32[4905] = $174;
  10445. STACKTOP = sp;return;
  10446. break;
  10447. }
  10448. case 0: {
  10449. HEAPF32[4904] = 0.0;
  10450. HEAPF32[4905] = 0.0;
  10451. HEAPF32[4812] = 0.0;
  10452. HEAPF32[(19252)>>2] = 0.0;
  10453. HEAP32[4899] = 0;
  10454. HEAP32[4898] = 0;
  10455. STACKTOP = sp;return;
  10456. break;
  10457. }
  10458. default: {
  10459. STACKTOP = sp;return;
  10460. }
  10461. }
  10462. }
  10463. if ($5) {
  10464. $6 = HEAP32[4900]|0;
  10465. $7 = (($6) + 1)|0;
  10466. HEAP32[4900] = $7;
  10467. $8 = HEAP32[4898]|0;
  10468. $9 = ($8|0)==(0);
  10469. $10 = ($6|0)>(0);
  10470. $or$cond = $10 & $9;
  10471. if ($or$cond) {
  10472. $11 = ((($0)) + 24|0);
  10473. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19200>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19200+4>>2]|0;
  10474. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  10475. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10476. $13 = $12 < 0.029999999329447746;
  10477. if ($13) {
  10478. HEAP32[4898] = 2;
  10479. HEAP32[4900] = 0;
  10480. } else {
  10481. label = 6;
  10482. }
  10483. } else {
  10484. label = 6;
  10485. }
  10486. if ((label|0) == 6) {
  10487. HEAP32[4900] = 1;
  10488. HEAP32[4898] = 1;
  10489. }
  10490. $14 = ((($0)) + 24|0);
  10491. $15 = $14;
  10492. $16 = $15;
  10493. $17 = HEAP32[$16>>2]|0;
  10494. $18 = (($15) + 4)|0;
  10495. $19 = $18;
  10496. $20 = HEAP32[$19>>2]|0;
  10497. $21 = 19200;
  10498. $22 = $21;
  10499. HEAP32[$22>>2] = $17;
  10500. $23 = (($21) + 4)|0;
  10501. $24 = $23;
  10502. HEAP32[$24>>2] = $20;
  10503. $25 = 19208;
  10504. $26 = $25;
  10505. HEAP32[$26>>2] = $17;
  10506. $27 = (($25) + 4)|0;
  10507. $28 = $27;
  10508. HEAP32[$28>>2] = $20;
  10509. $29 = 19216;
  10510. $30 = $29;
  10511. HEAP32[$30>>2] = $17;
  10512. $31 = (($29) + 4)|0;
  10513. $32 = $31;
  10514. HEAP32[$32>>2] = $20;
  10515. $33 = ((($0)) + 8|0);
  10516. $34 = HEAP32[$33>>2]|0;
  10517. HEAP32[4] = $34;
  10518. HEAPF32[4806] = 0.0;
  10519. HEAPF32[(19228)>>2] = 0.0;
  10520. STACKTOP = sp;return;
  10521. }
  10522. switch ($4|0) {
  10523. case 0: {
  10524. $35 = HEAP32[4898]|0;
  10525. $36 = ($35|0)==(8);
  10526. if ($36) {
  10527. $37 = ((($0)) + 24|0);
  10528. $38 = $37;
  10529. $39 = $38;
  10530. $40 = HEAP32[$39>>2]|0;
  10531. $41 = (($38) + 4)|0;
  10532. $42 = $41;
  10533. $43 = HEAP32[$42>>2]|0;
  10534. $44 = 19216;
  10535. $45 = $44;
  10536. HEAP32[$45>>2] = $40;
  10537. $46 = (($44) + 4)|0;
  10538. $47 = $46;
  10539. HEAP32[$47>>2] = $43;
  10540. }
  10541. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19200>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19200+4>>2]|0;
  10542. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19216>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19216+4>>2]|0;
  10543. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10544. $49 = $48 / 0.0;
  10545. HEAPF32[4901] = $49;
  10546. HEAP32[4902] = 0;
  10547. $50 = $49 > 5.0000002374872565E-4;
  10548. if ($50) {
  10549. $51 = HEAP32[4]|0;
  10550. $52 = ((($0)) + 8|0);
  10551. $53 = HEAP32[$52>>2]|0;
  10552. $54 = ($51|0)==($53|0);
  10553. if ($54) {
  10554. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19200>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19200+4>>2]|0;
  10555. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19216>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19216+4>>2]|0;
  10556. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10557. $56 = 360.0 - $55;
  10558. HEAPF32[4903] = $56;
  10559. $57 = $56 < 30.0;
  10560. $58 = $56 > 330.0;
  10561. $or$cond3 = $57 | $58;
  10562. if ($or$cond3) {
  10563. $$sink10 = 16;
  10564. } else {
  10565. $59 = $56 > 30.0;
  10566. $60 = $56 < 120.0;
  10567. $or$cond5 = $59 & $60;
  10568. if ($or$cond5) {
  10569. $$sink10 = 64;
  10570. } else {
  10571. $61 = $56 > 120.0;
  10572. $62 = $56 < 210.0;
  10573. $or$cond7 = $61 & $62;
  10574. $63 = $56 > 210.0;
  10575. $64 = $56 < 300.0;
  10576. $or$cond9 = $63 & $64;
  10577. $$sink = $or$cond9 ? 128 : 0;
  10578. $$$sink = $or$cond7 ? 32 : $$sink;
  10579. $$sink10 = $$$sink;
  10580. }
  10581. }
  10582. } else {
  10583. label = 16;
  10584. }
  10585. } else {
  10586. label = 16;
  10587. }
  10588. if ((label|0) == 16) {
  10589. HEAPF32[4901] = 0.0;
  10590. HEAPF32[4903] = 0.0;
  10591. $$sink10 = 0;
  10592. }
  10593. HEAP32[4898] = $$sink10;
  10594. HEAPF32[4802] = 0.0;
  10595. HEAPF32[(19212)>>2] = 0.0;
  10596. HEAP32[4899] = 0;
  10597. STACKTOP = sp;return;
  10598. break;
  10599. }
  10600. case 2: {
  10601. $65 = HEAP32[4902]|0;
  10602. $66 = ($65|0)==(0);
  10603. if ($66) {
  10604. HEAP32[4902] = 1;
  10605. }
  10606. $67 = ((($0)) + 24|0);
  10607. $68 = $67;
  10608. $69 = $68;
  10609. $70 = HEAP32[$69>>2]|0;
  10610. $71 = (($68) + 4)|0;
  10611. $72 = $71;
  10612. $73 = HEAP32[$72>>2]|0;
  10613. $74 = 19232;
  10614. $75 = $74;
  10615. HEAP32[$75>>2] = $70;
  10616. $76 = (($74) + 4)|0;
  10617. $77 = $76;
  10618. HEAP32[$77>>2] = $73;
  10619. $78 = HEAP32[4898]|0;
  10620. $79 = ($78|0)==(4);
  10621. if ($79) {
  10622. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19200>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19200+4>>2]|0;
  10623. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19232>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19232+4>>2]|0;
  10624. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10625. $81 = !($80 >= 0.014999999664723873);
  10626. if (!($81)) {
  10627. HEAP32[4898] = 8;
  10628. }
  10629. }
  10630. $82 = +HEAPF32[4808];
  10631. $83 = +HEAPF32[4802];
  10632. $84 = $82 - $83;
  10633. HEAPF32[4806] = $84;
  10634. $85 = +HEAPF32[(19236)>>2];
  10635. $86 = +HEAPF32[(19212)>>2];
  10636. $87 = $85 - $86;
  10637. HEAPF32[(19228)>>2] = $87;
  10638. STACKTOP = sp;return;
  10639. break;
  10640. }
  10641. default: {
  10642. STACKTOP = sp;return;
  10643. }
  10644. }
  10645. }
  10646. function _UpdateGestures() {
  10647. 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;
  10648. sp = STACKTOP;
  10649. $0 = HEAP32[4898]|0;
  10650. $$off = (($0) + -1)|0;
  10651. $1 = ($$off>>>0)<(2);
  10652. $2 = HEAP32[4899]|0;
  10653. $3 = ($2|0)<(2);
  10654. $or$cond3 = $1 & $3;
  10655. if ($or$cond3) {
  10656. HEAP32[4898] = 4;
  10657. }
  10658. $4 = HEAP32[4898]|0;
  10659. $5 = (($4) + -16)|0;
  10660. $6 = $5 >>> 4;
  10661. $7 = $5 << 28;
  10662. $8 = $6 | $7;
  10663. switch ($8|0) {
  10664. case 0: case 1: case 3: case 7: {
  10665. break;
  10666. }
  10667. default: {
  10668. return;
  10669. }
  10670. }
  10671. HEAP32[4898] = 0;
  10672. return;
  10673. }
  10674. function _GetMousePosition($0) {
  10675. $0 = $0|0;
  10676. 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;
  10677. sp = STACKTOP;
  10678. $1 = 19264;
  10679. $2 = $1;
  10680. $3 = HEAP32[$2>>2]|0;
  10681. $4 = (($1) + 4)|0;
  10682. $5 = $4;
  10683. $6 = HEAP32[$5>>2]|0;
  10684. $7 = $0;
  10685. $8 = $7;
  10686. HEAP32[$8>>2] = $3;
  10687. $9 = (($7) + 4)|0;
  10688. $10 = $9;
  10689. HEAP32[$10>>2] = $6;
  10690. return;
  10691. }
  10692. function _GetScreenWidth() {
  10693. var $0 = 0, label = 0, sp = 0;
  10694. sp = STACKTOP;
  10695. $0 = HEAP32[4908]|0;
  10696. return ($0|0);
  10697. }
  10698. function _GetScreenHeight() {
  10699. var $0 = 0, label = 0, sp = 0;
  10700. sp = STACKTOP;
  10701. $0 = HEAP32[4907]|0;
  10702. return ($0|0);
  10703. }
  10704. function _InitWindow($0,$1,$2) {
  10705. $0 = $0|0;
  10706. $1 = $1|0;
  10707. $2 = $2|0;
  10708. 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;
  10709. sp = STACKTOP;
  10710. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10711. $vararg_buffer = sp;
  10712. _TraceLog(0,4524,$vararg_buffer);
  10713. HEAP32[4910] = $2;
  10714. _InitGraphicsDevice($0,$1);
  10715. _LoadDefaultFont();
  10716. _InitTimer();
  10717. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(4|0))|0);
  10718. (_emscripten_set_keypress_callback((4553|0),(0|0),1,(5|0))|0);
  10719. (_emscripten_set_click_callback((4553|0),(0|0),1,(6|0))|0);
  10720. (_emscripten_set_touchstart_callback((4553|0),(0|0),1,(7|0))|0);
  10721. (_emscripten_set_touchend_callback((4553|0),(0|0),1,(7|0))|0);
  10722. (_emscripten_set_touchmove_callback((4553|0),(0|0),1,(7|0))|0);
  10723. (_emscripten_set_touchcancel_callback((4553|0),(0|0),1,(7|0))|0);
  10724. (_emscripten_set_gamepadconnected_callback((0|0),1,(8|0))|0);
  10725. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(8|0))|0);
  10726. $3 = HEAP32[4908]|0;
  10727. $4 = (+($3|0));
  10728. $5 = $4 * 0.5;
  10729. HEAPF32[4816] = $5;
  10730. $6 = HEAP32[4907]|0;
  10731. $7 = (+($6|0));
  10732. $8 = $7 * 0.5;
  10733. HEAPF32[(19268)>>2] = $8;
  10734. $9 = HEAP32[4911]|0;
  10735. $10 = ($9|0)==(0);
  10736. if ($10) {
  10737. STACKTOP = sp;return;
  10738. }
  10739. _SetTargetFPS(60);
  10740. _LogoAnimation();
  10741. STACKTOP = sp;return;
  10742. }
  10743. function _TraceLog($0,$1,$varargs) {
  10744. $0 = $0|0;
  10745. $1 = $1|0;
  10746. $varargs = $varargs|0;
  10747. 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;
  10748. sp = STACKTOP;
  10749. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10750. $2 = sp;
  10751. switch ($0|0) {
  10752. case 0: {
  10753. ;HEAP8[19304>>0]=HEAP8[9082>>0]|0;HEAP8[19304+1>>0]=HEAP8[9082+1>>0]|0;HEAP8[19304+2>>0]=HEAP8[9082+2>>0]|0;HEAP8[19304+3>>0]=HEAP8[9082+3>>0]|0;HEAP8[19304+4>>0]=HEAP8[9082+4>>0]|0;HEAP8[19304+5>>0]=HEAP8[9082+5>>0]|0;HEAP8[19304+6>>0]=HEAP8[9082+6>>0]|0;
  10754. break;
  10755. }
  10756. case 1: {
  10757. $3 = 19304;
  10758. $4 = $3;
  10759. HEAP32[$4>>2] = 1330795077;
  10760. $5 = (($3) + 4)|0;
  10761. $6 = $5;
  10762. HEAP32[$6>>2] = 2112082;
  10763. break;
  10764. }
  10765. case 2: {
  10766. dest=19304; src=9089; 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));
  10767. break;
  10768. }
  10769. case 3: {
  10770. $7 = 19304;
  10771. $8 = $7;
  10772. HEAP32[$8>>2] = 1430406468;
  10773. $9 = (($7) + 4)|0;
  10774. $10 = $9;
  10775. HEAP32[$10>>2] = 2112071;
  10776. break;
  10777. }
  10778. default: {
  10779. }
  10780. }
  10781. (_strcat(19304,$1)|0);
  10782. $strlen = (_strlen(19304)|0);
  10783. $endptr = (19304 + ($strlen)|0);
  10784. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  10785. HEAP32[$2>>2] = $varargs;
  10786. $11 = ($0|0)==(3);
  10787. if ($11) {
  10788. STACKTOP = sp;return;
  10789. }
  10790. (_vprintf(19304,$2)|0);
  10791. $12 = ($0|0)==(1);
  10792. if ($12) {
  10793. _exit(1);
  10794. // unreachable;
  10795. } else {
  10796. STACKTOP = sp;return;
  10797. }
  10798. }
  10799. function _InitGraphicsDevice($0,$1) {
  10800. $0 = $0|0;
  10801. $1 = $1|0;
  10802. 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;
  10803. 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;
  10804. 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;
  10805. 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;
  10806. 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;
  10807. var label = 0, sp = 0, src = 0, stop = 0;
  10808. sp = STACKTOP;
  10809. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  10810. $$byval_copy = sp + 136|0;
  10811. $vararg_buffer22 = sp + 64|0;
  10812. $vararg_buffer18 = sp + 56|0;
  10813. $vararg_buffer14 = sp + 48|0;
  10814. $vararg_buffer10 = sp + 40|0;
  10815. $vararg_buffer8 = sp + 32|0;
  10816. $vararg_buffer6 = sp + 24|0;
  10817. $vararg_buffer3 = sp + 16|0;
  10818. $vararg_buffer1 = sp + 8|0;
  10819. $vararg_buffer = sp;
  10820. $2 = sp + 72|0;
  10821. $3 = sp + 140|0;
  10822. HEAP32[4908] = $0;
  10823. HEAP32[4907] = $1;
  10824. _MatrixIdentity($2);
  10825. dest=19720; 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));
  10826. (_glfwSetErrorCallback((2|0))|0);
  10827. $4 = (_glfwInit()|0);
  10828. $5 = ($4|0)==(0);
  10829. if ($5) {
  10830. _TraceLog(1,5224,$vararg_buffer);
  10831. }
  10832. $6 = HEAP32[4908]|0;
  10833. HEAP32[4946] = $6;
  10834. $7 = HEAP32[4907]|0;
  10835. HEAP32[4947] = $7;
  10836. _glfwDefaultWindowHints();
  10837. $8 = HEAP8[22456]|0;
  10838. $9 = $8 & 4;
  10839. $10 = ($9<<24>>24)==(0);
  10840. if ($10) {
  10841. _glfwWindowHint(131075,0);
  10842. } else {
  10843. _glfwWindowHint(131075,1);
  10844. }
  10845. $11 = HEAP8[22456]|0;
  10846. $12 = $11 & 8;
  10847. $13 = ($12<<24>>24)==(0);
  10848. if (!($13)) {
  10849. _glfwWindowHint(131077,1);
  10850. }
  10851. $14 = HEAP8[22456]|0;
  10852. $15 = $14 & 32;
  10853. $16 = ($15<<24>>24)==(0);
  10854. if (!($16)) {
  10855. _glfwWindowHint(135181,4);
  10856. _TraceLog(0,5250,$vararg_buffer1);
  10857. }
  10858. $17 = (_rlGetVersion()|0);
  10859. $18 = ($17|0)==(2);
  10860. if ($18) {
  10861. _glfwWindowHint(139266,2);
  10862. _glfwWindowHint(139267,1);
  10863. } else {
  10864. $19 = (_rlGetVersion()|0);
  10865. $20 = ($19|0)==(3);
  10866. if ($20) {
  10867. _glfwWindowHint(139266,3);
  10868. _glfwWindowHint(139267,3);
  10869. _glfwWindowHint(139272,204801);
  10870. _glfwWindowHint(139270,0);
  10871. }
  10872. }
  10873. $21 = HEAP32[4948]|0;
  10874. $22 = ($21|0)==(0);
  10875. if ($22) {
  10876. $47 = HEAP32[4908]|0;
  10877. $48 = HEAP32[4907]|0;
  10878. $49 = HEAP32[4910]|0;
  10879. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  10880. HEAP32[4906] = $50;
  10881. $51 = HEAP32[4908]|0;
  10882. HEAP32[4949] = $51;
  10883. $52 = HEAP32[4907]|0;
  10884. HEAP32[4950] = $52;
  10885. $54 = $50;
  10886. } else {
  10887. $23 = (_glfwGetPrimaryMonitor()|0);
  10888. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  10889. $25 = HEAP32[$$byval_copy>>2]|0;
  10890. $26 = ($25|0)>(0);
  10891. L22: do {
  10892. if ($26) {
  10893. $27 = HEAP32[4908]|0;
  10894. $28 = HEAP32[$$byval_copy>>2]|0;
  10895. $29 = HEAP32[4907]|0;
  10896. $$015 = 0;
  10897. while(1) {
  10898. $30 = (($24) + (($$015*24)|0)|0);
  10899. $31 = HEAP32[$30>>2]|0;
  10900. $32 = ($31|0)<($27|0);
  10901. if (!($32)) {
  10902. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  10903. $34 = HEAP32[$33>>2]|0;
  10904. $35 = ($34|0)<($29|0);
  10905. if (!($35)) {
  10906. break;
  10907. }
  10908. }
  10909. $36 = (($$015) + 1)|0;
  10910. $37 = ($36|0)<($28|0);
  10911. if ($37) {
  10912. $$015 = $36;
  10913. } else {
  10914. break L22;
  10915. }
  10916. }
  10917. HEAP32[4946] = $31;
  10918. HEAP32[4947] = $34;
  10919. }
  10920. } while(0);
  10921. $38 = HEAP32[4946]|0;
  10922. $39 = HEAP32[4947]|0;
  10923. HEAP32[$vararg_buffer3>>2] = $38;
  10924. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  10925. HEAP32[$vararg_ptr5>>2] = $39;
  10926. _TraceLog(2,5275,$vararg_buffer3);
  10927. $40 = HEAP32[4946]|0;
  10928. $41 = HEAP32[4947]|0;
  10929. _SetupFramebufferSize($40,$41);
  10930. $42 = HEAP32[4946]|0;
  10931. $43 = HEAP32[4947]|0;
  10932. $44 = HEAP32[4910]|0;
  10933. $45 = (_glfwGetPrimaryMonitor()|0);
  10934. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  10935. HEAP32[4906] = $46;
  10936. $54 = $46;
  10937. }
  10938. $53 = ($54|0)==(0|0);
  10939. if ($53) {
  10940. _glfwTerminate();
  10941. _TraceLog(1,5313,$vararg_buffer6);
  10942. } else {
  10943. _TraceLog(0,5346,$vararg_buffer8);
  10944. $55 = HEAP32[4949]|0;
  10945. $56 = HEAP32[4950]|0;
  10946. HEAP32[$vararg_buffer10>>2] = $55;
  10947. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  10948. HEAP32[$vararg_ptr13>>2] = $56;
  10949. _TraceLog(0,5386,$vararg_buffer10);
  10950. $57 = HEAP32[4908]|0;
  10951. $58 = HEAP32[4907]|0;
  10952. HEAP32[$vararg_buffer14>>2] = $57;
  10953. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  10954. HEAP32[$vararg_ptr17>>2] = $58;
  10955. _TraceLog(0,5407,$vararg_buffer14);
  10956. $59 = HEAP32[4951]|0;
  10957. $60 = HEAP32[4952]|0;
  10958. HEAP32[$vararg_buffer18>>2] = $59;
  10959. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  10960. HEAP32[$vararg_ptr21>>2] = $60;
  10961. _TraceLog(0,5428,$vararg_buffer18);
  10962. }
  10963. $61 = HEAP32[4906]|0;
  10964. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  10965. $62 = HEAP32[4906]|0;
  10966. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  10967. $63 = HEAP32[4906]|0;
  10968. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  10969. $64 = HEAP32[4906]|0;
  10970. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  10971. $65 = HEAP32[4906]|0;
  10972. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  10973. $66 = HEAP32[4906]|0;
  10974. (_glfwSetCharCallback(($66|0),(4|0))|0);
  10975. $67 = HEAP32[4906]|0;
  10976. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  10977. $68 = HEAP32[4906]|0;
  10978. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  10979. $69 = HEAP32[4906]|0;
  10980. _glfwMakeContextCurrent(($69|0));
  10981. _glfwSwapInterval(0);
  10982. $70 = HEAP8[22456]|0;
  10983. $71 = $70 & 64;
  10984. $72 = ($71<<24>>24)==(0);
  10985. if ($72) {
  10986. $73 = HEAP32[4908]|0;
  10987. $74 = HEAP32[4907]|0;
  10988. _rlglInit($73,$74);
  10989. _SetupViewport();
  10990. _rlMatrixMode(5889);
  10991. _rlLoadIdentity();
  10992. $75 = HEAP32[4949]|0;
  10993. $76 = HEAP32[4951]|0;
  10994. $77 = (($75) - ($76))|0;
  10995. $78 = (+($77|0));
  10996. $79 = HEAP32[4950]|0;
  10997. $80 = HEAP32[4952]|0;
  10998. $81 = (($79) - ($80))|0;
  10999. $82 = (+($81|0));
  11000. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  11001. _rlMatrixMode(5888);
  11002. _rlLoadIdentity();
  11003. HEAP8[$3>>0] = -11;
  11004. $83 = ((($3)) + 1|0);
  11005. HEAP8[$83>>0] = -11;
  11006. $84 = ((($3)) + 2|0);
  11007. HEAP8[$84>>0] = -11;
  11008. $85 = ((($3)) + 3|0);
  11009. HEAP8[$85>>0] = -1;
  11010. ;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;
  11011. _ClearBackground($$byval_copy);
  11012. STACKTOP = sp;return;
  11013. }
  11014. _glfwSwapInterval(1);
  11015. _TraceLog(0,5453,$vararg_buffer22);
  11016. $73 = HEAP32[4908]|0;
  11017. $74 = HEAP32[4907]|0;
  11018. _rlglInit($73,$74);
  11019. _SetupViewport();
  11020. _rlMatrixMode(5889);
  11021. _rlLoadIdentity();
  11022. $75 = HEAP32[4949]|0;
  11023. $76 = HEAP32[4951]|0;
  11024. $77 = (($75) - ($76))|0;
  11025. $78 = (+($77|0));
  11026. $79 = HEAP32[4950]|0;
  11027. $80 = HEAP32[4952]|0;
  11028. $81 = (($79) - ($80))|0;
  11029. $82 = (+($81|0));
  11030. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  11031. _rlMatrixMode(5888);
  11032. _rlLoadIdentity();
  11033. HEAP8[$3>>0] = -11;
  11034. $83 = ((($3)) + 1|0);
  11035. HEAP8[$83>>0] = -11;
  11036. $84 = ((($3)) + 2|0);
  11037. HEAP8[$84>>0] = -11;
  11038. $85 = ((($3)) + 3|0);
  11039. HEAP8[$85>>0] = -1;
  11040. ;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;
  11041. _ClearBackground($$byval_copy);
  11042. STACKTOP = sp;return;
  11043. }
  11044. function _LoadDefaultFont() {
  11045. 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;
  11046. 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;
  11047. 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;
  11048. var $vararg_buffer = 0, label = 0, sp = 0;
  11049. sp = STACKTOP;
  11050. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  11051. $$byval_copy1 = sp + 44|0;
  11052. $vararg_buffer = sp;
  11053. $0 = sp + 4|0;
  11054. $1 = sp + 24|0;
  11055. HEAP32[(19688)>>2] = 224;
  11056. $2 = (_malloc(65536)|0);
  11057. _memset(($2|0),0,65536)|0;
  11058. $$095104 = 0;$$096103 = 0;
  11059. while(1) {
  11060. $3 = (20 + ($$095104<<2)|0);
  11061. $4 = HEAP32[$3>>2]|0;
  11062. $$097102 = 31;
  11063. while(1) {
  11064. $16 = 1 << $$097102;
  11065. $17 = $4 & $16;
  11066. $18 = ($17|0)==(0);
  11067. if (!($18)) {
  11068. $19 = (($$097102) + ($$096103))|0;
  11069. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  11070. 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;
  11071. }
  11072. $20 = (($$097102) + -1)|0;
  11073. $21 = ($$097102|0)>(0);
  11074. if ($21) {
  11075. $$097102 = $20;
  11076. } else {
  11077. break;
  11078. }
  11079. }
  11080. $12 = (($$095104) + 1)|0;
  11081. $13 = ($$095104|0)>(511);
  11082. $$ = $13 ? 0 : $12;
  11083. $14 = (($$096103) + 32)|0;
  11084. $15 = ($14|0)<(16384);
  11085. if ($15) {
  11086. $$095104 = $$;$$096103 = $14;
  11087. } else {
  11088. break;
  11089. }
  11090. }
  11091. _LoadImageEx($0,$2,128,128);
  11092. _ImageFormat($0,2);
  11093. _free($2);
  11094. ;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;
  11095. _LoadTextureFromImage($1,$$byval_copy1);
  11096. ;HEAP32[19664>>2]=HEAP32[$1>>2]|0;HEAP32[19664+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[19664+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[19664+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[19664+16>>2]=HEAP32[$1+16>>2]|0;
  11097. ;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;
  11098. _UnloadImage($$byval_copy1);
  11099. $5 = HEAP32[(19688)>>2]|0;
  11100. $6 = $5 << 5;
  11101. $7 = (_malloc($6)|0);
  11102. HEAP32[(19692)>>2] = $7;
  11103. $8 = ($5|0)>(0);
  11104. if (!($8)) {
  11105. $$lcssa = $7;
  11106. $22 = ((($$lcssa)) + 16|0);
  11107. $23 = HEAP32[$22>>2]|0;
  11108. HEAP32[(19684)>>2] = $23;
  11109. $24 = HEAP32[4916]|0;
  11110. HEAP32[$vararg_buffer>>2] = $24;
  11111. _TraceLog(0,4748,$vararg_buffer);
  11112. STACKTOP = sp;return;
  11113. }
  11114. $9 = HEAP32[(19668)>>2]|0;
  11115. $10 = HEAP32[(19688)>>2]|0;
  11116. $11 = HEAP32[(19692)>>2]|0;
  11117. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  11118. while(1) {
  11119. $25 = (($$0101) + 32)|0;
  11120. $26 = (($27) + ($$0101<<5)|0);
  11121. HEAP32[$26>>2] = $25;
  11122. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  11123. HEAP32[$28>>2] = $$090100;
  11124. $29 = ($$09299*11)|0;
  11125. $30 = (($29) + 1)|0;
  11126. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  11127. HEAP32[$31>>2] = $30;
  11128. $32 = (2068 + ($$0101<<2)|0);
  11129. $33 = HEAP32[$32>>2]|0;
  11130. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  11131. HEAP32[$34>>2] = $33;
  11132. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  11133. HEAP32[$35>>2] = 10;
  11134. $36 = (($$090100) + 1)|0;
  11135. $37 = (($36) + ($33))|0;
  11136. $38 = ($37|0)<($9|0);
  11137. $39 = (($$09299) + 1)|0;
  11138. if ($38) {
  11139. $$191 = $37;$$193 = $$09299;
  11140. } else {
  11141. $40 = ($39*11)|0;
  11142. $41 = (($40) + 1)|0;
  11143. $42 = (($33) + 2)|0;
  11144. HEAP32[$28>>2] = 1;
  11145. HEAP32[$31>>2] = $41;
  11146. $$191 = $42;$$193 = $39;
  11147. }
  11148. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  11149. HEAP32[$43>>2] = 0;
  11150. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  11151. HEAP32[$44>>2] = 0;
  11152. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  11153. HEAP32[$45>>2] = 0;
  11154. $46 = (($$0101) + 1)|0;
  11155. $47 = ($46|0)<($10|0);
  11156. if ($47) {
  11157. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  11158. } else {
  11159. $$lcssa = $11;
  11160. break;
  11161. }
  11162. }
  11163. $22 = ((($$lcssa)) + 16|0);
  11164. $23 = HEAP32[$22>>2]|0;
  11165. HEAP32[(19684)>>2] = $23;
  11166. $24 = HEAP32[4916]|0;
  11167. HEAP32[$vararg_buffer>>2] = $24;
  11168. _TraceLog(0,4748,$vararg_buffer);
  11169. STACKTOP = sp;return;
  11170. }
  11171. function _InitTimer() {
  11172. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  11173. sp = STACKTOP;
  11174. $0 = (_time((0|0))|0);
  11175. _srand($0);
  11176. $1 = (+_GetTime());
  11177. HEAPF64[2412] = $1;
  11178. return;
  11179. }
  11180. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  11181. $0 = $0|0;
  11182. $1 = $1|0;
  11183. $2 = $2|0;
  11184. 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;
  11185. sp = STACKTOP;
  11186. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  11187. $vararg_buffer4 = sp + 16|0;
  11188. $vararg_buffer = sp;
  11189. $3 = HEAP32[$1>>2]|0;
  11190. $4 = ($3|0)==(0);
  11191. $5 = ((($1)) + 264|0);
  11192. $6 = HEAP32[$5>>2]|0;
  11193. $7 = ((($1)) + 268|0);
  11194. $8 = HEAP32[$7>>2]|0;
  11195. $9 = ((($1)) + 272|0);
  11196. $10 = HEAP32[$9>>2]|0;
  11197. $11 = ((($1)) + 276|0);
  11198. $12 = HEAP32[$11>>2]|0;
  11199. if ($4) {
  11200. HEAP32[$vararg_buffer4>>2] = $6;
  11201. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  11202. HEAP32[$vararg_ptr7>>2] = $8;
  11203. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  11204. HEAP32[$vararg_ptr8>>2] = $10;
  11205. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  11206. HEAP32[$vararg_ptr9>>2] = $12;
  11207. _TraceLog(0,4681,$vararg_buffer4);
  11208. STACKTOP = sp;return 0;
  11209. } else {
  11210. HEAP32[$vararg_buffer>>2] = $6;
  11211. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  11212. HEAP32[$vararg_ptr1>>2] = $8;
  11213. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  11214. HEAP32[$vararg_ptr2>>2] = $10;
  11215. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  11216. HEAP32[$vararg_ptr3>>2] = $12;
  11217. _TraceLog(0,4612,$vararg_buffer);
  11218. STACKTOP = sp;return 0;
  11219. }
  11220. return (0)|0;
  11221. }
  11222. function _EmscriptenKeyboardCallback($0,$1,$2) {
  11223. $0 = $0|0;
  11224. $1 = $1|0;
  11225. $2 = $2|0;
  11226. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  11227. sp = STACKTOP;
  11228. $3 = ($0|0)==(1);
  11229. if (!($3)) {
  11230. return 0;
  11231. }
  11232. $4 = ((($1)) + 32|0);
  11233. $5 = (_strcmp($4,4605)|0);
  11234. $6 = ($5|0)==(0);
  11235. if (!($6)) {
  11236. return 0;
  11237. }
  11238. (_emscripten_exit_pointerlock()|0);
  11239. return 0;
  11240. }
  11241. function _EmscriptenMouseCallback($0,$1,$2) {
  11242. $0 = $0|0;
  11243. $1 = $1|0;
  11244. $2 = $2|0;
  11245. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  11246. sp = STACKTOP;
  11247. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  11248. $3 = sp;
  11249. $4 = ($0|0)==(4);
  11250. if (!($4)) {
  11251. STACKTOP = sp;return 0;
  11252. }
  11253. (_emscripten_get_pointerlock_status(($3|0))|0);
  11254. $5 = HEAP32[$3>>2]|0;
  11255. $6 = ($5|0)==(0);
  11256. if ($6) {
  11257. (_emscripten_request_pointerlock((0|0),1)|0);
  11258. } else {
  11259. (_emscripten_exit_pointerlock()|0);
  11260. (_emscripten_get_pointerlock_status(($3|0))|0);
  11261. }
  11262. STACKTOP = sp;return 0;
  11263. }
  11264. function _EmscriptenTouchCallback($0,$1,$2) {
  11265. $0 = $0|0;
  11266. $1 = $1|0;
  11267. $2 = $2|0;
  11268. 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;
  11269. 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;
  11270. 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;
  11271. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  11272. sp = STACKTOP;
  11273. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  11274. $$byval_copy = sp + 56|0;
  11275. $3 = sp;
  11276. switch ($0|0) {
  11277. case 22: {
  11278. $$sink = 1;
  11279. label = 4;
  11280. break;
  11281. }
  11282. case 23: {
  11283. $$sink = 0;
  11284. label = 4;
  11285. break;
  11286. }
  11287. case 24: {
  11288. $$sink = 2;
  11289. label = 4;
  11290. break;
  11291. }
  11292. default: {
  11293. }
  11294. }
  11295. if ((label|0) == 4) {
  11296. HEAP32[$3>>2] = $$sink;
  11297. }
  11298. $4 = HEAP32[$1>>2]|0;
  11299. $5 = ((($3)) + 4|0);
  11300. HEAP32[$5>>2] = $4;
  11301. $6 = ((($1)) + 20|0);
  11302. $7 = HEAP32[$6>>2]|0;
  11303. $8 = ((($3)) + 8|0);
  11304. HEAP32[$8>>2] = $7;
  11305. $9 = ((($1)) + 72|0);
  11306. $10 = HEAP32[$9>>2]|0;
  11307. $11 = ((($3)) + 12|0);
  11308. HEAP32[$11>>2] = $10;
  11309. $12 = ((($1)) + 56|0);
  11310. $13 = HEAP32[$12>>2]|0;
  11311. $14 = (+($13|0));
  11312. $15 = ((($1)) + 60|0);
  11313. $16 = HEAP32[$15>>2]|0;
  11314. $17 = (+($16|0));
  11315. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  11316. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  11317. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  11318. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  11319. $18 = ((($1)) + 108|0);
  11320. $19 = HEAP32[$18>>2]|0;
  11321. $20 = (+($19|0));
  11322. $21 = ((($1)) + 112|0);
  11323. $22 = HEAP32[$21>>2]|0;
  11324. $23 = (+($22|0));
  11325. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  11326. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  11327. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  11328. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  11329. $24 = ((($3)) + 24|0);
  11330. $25 = $24;
  11331. $26 = $25;
  11332. $27 = HEAP32[$26>>2]|0;
  11333. $28 = (($25) + 4)|0;
  11334. $29 = $28;
  11335. $30 = HEAP32[$29>>2]|0;
  11336. $31 = 19280;
  11337. $32 = $31;
  11338. HEAP32[$32>>2] = $27;
  11339. $33 = (($31) + 4)|0;
  11340. $34 = $33;
  11341. HEAP32[$34>>2] = $30;
  11342. $35 = ((($3)) + 32|0);
  11343. $36 = $35;
  11344. $37 = $36;
  11345. $38 = HEAP32[$37>>2]|0;
  11346. $39 = (($36) + 4)|0;
  11347. $40 = $39;
  11348. $41 = HEAP32[$40>>2]|0;
  11349. $42 = (19288);
  11350. $43 = $42;
  11351. HEAP32[$43>>2] = $38;
  11352. $44 = (($42) + 4)|0;
  11353. $45 = $44;
  11354. HEAP32[$45>>2] = $41;
  11355. $46 = (_GetScreenWidth()|0);
  11356. $47 = (+($46|0));
  11357. $48 = +HEAPF32[$24>>2];
  11358. $49 = $48 / $47;
  11359. HEAPF32[$24>>2] = $49;
  11360. $50 = (_GetScreenHeight()|0);
  11361. $51 = (+($50|0));
  11362. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  11363. $53 = $52 / $51;
  11364. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  11365. $54 = (_GetScreenWidth()|0);
  11366. $55 = (+($54|0));
  11367. $56 = +HEAPF32[$35>>2];
  11368. $57 = $56 / $55;
  11369. HEAPF32[$35>>2] = $57;
  11370. $58 = (_GetScreenHeight()|0);
  11371. $59 = (+($58|0));
  11372. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  11373. $61 = $60 / $59;
  11374. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  11375. 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));
  11376. _ProcessGestureEvent($$byval_copy);
  11377. STACKTOP = sp;return 1;
  11378. }
  11379. function _EmscriptenGamepadCallback($0,$1,$2) {
  11380. $0 = $0|0;
  11381. $1 = $1|0;
  11382. $2 = $2|0;
  11383. 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;
  11384. sp = STACKTOP;
  11385. $3 = ((($1)) + 1296|0);
  11386. $4 = HEAP32[$3>>2]|0;
  11387. $5 = ($4|0)==(0);
  11388. if ($5) {
  11389. label = 3;
  11390. } else {
  11391. $6 = ((($1)) + 1300|0);
  11392. $7 = HEAP32[$6>>2]|0;
  11393. $8 = ($7|0)<(4);
  11394. if ($8) {
  11395. $$sink = 1;
  11396. } else {
  11397. label = 3;
  11398. }
  11399. }
  11400. if ((label|0) == 3) {
  11401. $$sink = 0;
  11402. }
  11403. $9 = ((($1)) + 1300|0);
  11404. $10 = HEAP32[$9>>2]|0;
  11405. $11 = (19648 + ($10<<2)|0);
  11406. HEAP32[$11>>2] = $$sink;
  11407. return 0;
  11408. }
  11409. function _SetTargetFPS($0) {
  11410. $0 = $0|0;
  11411. 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;
  11412. sp = STACKTOP;
  11413. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  11414. $vararg_buffer = sp;
  11415. $1 = ($0|0)<(1);
  11416. $2 = (+($0|0));
  11417. $3 = 1.0 / $2;
  11418. $$ = $1 ? 0.0 : $3;
  11419. HEAPF64[2409] = $$;
  11420. $4 = $3;
  11421. $$op = $4 * 1000.0;
  11422. $5 = $$op;
  11423. $6 = $1 ? 0.0 : $5;
  11424. HEAPF64[$vararg_buffer>>3] = $6;
  11425. _TraceLog(0,4561,$vararg_buffer);
  11426. STACKTOP = sp;return;
  11427. }
  11428. function _LogoAnimation() {
  11429. var label = 0, sp = 0;
  11430. sp = STACKTOP;
  11431. HEAP32[4911] = 0;
  11432. return;
  11433. }
  11434. function _GetTime() {
  11435. var $0 = 0.0, label = 0, sp = 0;
  11436. sp = STACKTOP;
  11437. $0 = (+_glfwGetTime());
  11438. return (+$0);
  11439. }
  11440. function _LoadImageEx($0,$1,$2,$3) {
  11441. $0 = $0|0;
  11442. $1 = $1|0;
  11443. $2 = $2|0;
  11444. $3 = $3|0;
  11445. 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;
  11446. 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;
  11447. sp = STACKTOP;
  11448. $4 = $2 << 2;
  11449. $5 = Math_imul($4, $3)|0;
  11450. $6 = (_malloc($5)|0);
  11451. $7 = ($5|0)>(0);
  11452. if ($7) {
  11453. $8 = (($5) + -1)|0;
  11454. $9 = $8 >>> 2;
  11455. $$03334 = 0;$$035 = 0;
  11456. while(1) {
  11457. $10 = (($1) + ($$03334<<2)|0);
  11458. $11 = HEAP8[$10>>0]|0;
  11459. $12 = (($6) + ($$035)|0);
  11460. HEAP8[$12>>0] = $11;
  11461. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  11462. $14 = HEAP8[$13>>0]|0;
  11463. $15 = $$035 | 1;
  11464. $16 = (($6) + ($15)|0);
  11465. HEAP8[$16>>0] = $14;
  11466. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  11467. $18 = HEAP8[$17>>0]|0;
  11468. $19 = $$035 | 2;
  11469. $20 = (($6) + ($19)|0);
  11470. HEAP8[$20>>0] = $18;
  11471. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  11472. $22 = HEAP8[$21>>0]|0;
  11473. $23 = $$035 | 3;
  11474. $24 = (($6) + ($23)|0);
  11475. HEAP8[$24>>0] = $22;
  11476. $25 = (($$03334) + 1)|0;
  11477. $26 = (($$035) + 4)|0;
  11478. $exitcond = ($$03334|0)==($9|0);
  11479. if ($exitcond) {
  11480. break;
  11481. } else {
  11482. $$03334 = $25;$$035 = $26;
  11483. }
  11484. }
  11485. }
  11486. HEAP32[$0>>2] = $6;
  11487. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  11488. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  11489. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  11490. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  11491. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  11492. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  11493. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  11494. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  11495. return;
  11496. }
  11497. function _ImageFormat($0,$1) {
  11498. $0 = $0|0;
  11499. $1 = $1|0;
  11500. 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;
  11501. 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;
  11502. 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;
  11503. 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;
  11504. 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;
  11505. 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;
  11506. 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;
  11507. 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;
  11508. 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;
  11509. 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;
  11510. 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;
  11511. 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;
  11512. 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;
  11513. 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;
  11514. 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;
  11515. 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;
  11516. sp = STACKTOP;
  11517. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  11518. $$byval_copy = sp + 4|0;
  11519. $vararg_buffer = sp;
  11520. $2 = ((($0)) + 16|0);
  11521. $3 = HEAP32[$2>>2]|0;
  11522. $4 = ($3|0)==($1|0);
  11523. if ($4) {
  11524. STACKTOP = sp;return;
  11525. }
  11526. $5 = ($3|0)<(8);
  11527. $6 = ($1|0)<(8);
  11528. $or$cond = $6 & $5;
  11529. if (!($or$cond)) {
  11530. _TraceLog(2,5124,$vararg_buffer);
  11531. STACKTOP = sp;return;
  11532. }
  11533. ;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;
  11534. $7 = (_GetImageData($$byval_copy)|0);
  11535. $8 = HEAP32[$0>>2]|0;
  11536. _free($8);
  11537. HEAP32[$2>>2] = $1;
  11538. switch ($1|0) {
  11539. case 1: {
  11540. $9 = ((($0)) + 4|0);
  11541. $10 = HEAP32[$9>>2]|0;
  11542. $11 = ((($0)) + 8|0);
  11543. $12 = HEAP32[$11>>2]|0;
  11544. $13 = Math_imul($12, $10)|0;
  11545. $14 = (_malloc($13)|0);
  11546. HEAP32[$0>>2] = $14;
  11547. $15 = Math_imul($12, $10)|0;
  11548. $16 = ($15|0)>(0);
  11549. if ($16) {
  11550. $$0171188 = 0;
  11551. while(1) {
  11552. $17 = (($7) + ($$0171188<<2)|0);
  11553. $18 = HEAP8[$17>>0]|0;
  11554. $19 = (+($18&255));
  11555. $20 = $19 * 0.29899999499320984;
  11556. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  11557. $22 = HEAP8[$21>>0]|0;
  11558. $23 = (+($22&255));
  11559. $24 = $23 * 0.58700001239776611;
  11560. $25 = $20 + $24;
  11561. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  11562. $27 = HEAP8[$26>>0]|0;
  11563. $28 = (+($27&255));
  11564. $29 = $28 * 0.11400000005960464;
  11565. $30 = $25 + $29;
  11566. $31 = (~~(($30))&255);
  11567. $32 = HEAP32[$0>>2]|0;
  11568. $33 = (($32) + ($$0171188)|0);
  11569. HEAP8[$33>>0] = $31;
  11570. $34 = (($$0171188) + 1)|0;
  11571. $35 = HEAP32[$9>>2]|0;
  11572. $36 = HEAP32[$11>>2]|0;
  11573. $37 = Math_imul($36, $35)|0;
  11574. $38 = ($34|0)<($37|0);
  11575. if ($38) {
  11576. $$0171188 = $34;
  11577. } else {
  11578. break;
  11579. }
  11580. }
  11581. }
  11582. break;
  11583. }
  11584. case 2: {
  11585. $39 = ((($0)) + 4|0);
  11586. $40 = HEAP32[$39>>2]|0;
  11587. $41 = ((($0)) + 8|0);
  11588. $42 = HEAP32[$41>>2]|0;
  11589. $43 = $40 << 1;
  11590. $44 = Math_imul($43, $42)|0;
  11591. $45 = (_malloc($44)|0);
  11592. HEAP32[$0>>2] = $45;
  11593. $46 = HEAP32[$39>>2]|0;
  11594. $47 = $46 << 1;
  11595. $48 = Math_imul($47, $42)|0;
  11596. $49 = ($48|0)>(0);
  11597. if ($49) {
  11598. $$0170190 = 0;$$0172189 = 0;
  11599. while(1) {
  11600. $50 = (($7) + ($$0172189<<2)|0);
  11601. $51 = HEAP8[$50>>0]|0;
  11602. $52 = (+($51&255));
  11603. $53 = $52 * 0.29899999499320984;
  11604. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  11605. $55 = HEAP8[$54>>0]|0;
  11606. $56 = (+($55&255));
  11607. $57 = $56 * 0.58700001239776611;
  11608. $58 = $53 + $57;
  11609. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  11610. $60 = HEAP8[$59>>0]|0;
  11611. $61 = (+($60&255));
  11612. $62 = $61 * 0.11400000005960464;
  11613. $63 = $58 + $62;
  11614. $64 = (~~(($63))&255);
  11615. $65 = HEAP32[$0>>2]|0;
  11616. $66 = (($65) + ($$0170190)|0);
  11617. HEAP8[$66>>0] = $64;
  11618. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  11619. $68 = HEAP8[$67>>0]|0;
  11620. $69 = HEAP32[$0>>2]|0;
  11621. $70 = $$0170190 | 1;
  11622. $71 = (($69) + ($70)|0);
  11623. HEAP8[$71>>0] = $68;
  11624. $72 = (($$0172189) + 1)|0;
  11625. $73 = (($$0170190) + 2)|0;
  11626. $74 = HEAP32[$39>>2]|0;
  11627. $75 = HEAP32[$41>>2]|0;
  11628. $76 = $74 << 1;
  11629. $77 = Math_imul($76, $75)|0;
  11630. $78 = ($73|0)<($77|0);
  11631. if ($78) {
  11632. $$0170190 = $73;$$0172189 = $72;
  11633. } else {
  11634. break;
  11635. }
  11636. }
  11637. }
  11638. break;
  11639. }
  11640. case 3: {
  11641. $79 = ((($0)) + 4|0);
  11642. $80 = HEAP32[$79>>2]|0;
  11643. $81 = ((($0)) + 8|0);
  11644. $82 = HEAP32[$81>>2]|0;
  11645. $83 = $80 << 1;
  11646. $84 = Math_imul($83, $82)|0;
  11647. $85 = (_malloc($84)|0);
  11648. HEAP32[$0>>2] = $85;
  11649. $86 = HEAP32[$79>>2]|0;
  11650. $87 = Math_imul($82, $86)|0;
  11651. $88 = ($87|0)>(0);
  11652. if ($88) {
  11653. $89 = HEAP8[$7>>0]|0;
  11654. $90 = (+($89&255));
  11655. $91 = $90 * 31.0;
  11656. $92 = $91 / 255.0;
  11657. $roundf179 = (+_roundf((+$92)));
  11658. $93 = (~~(($roundf179))&255);
  11659. $94 = ((($7)) + 1|0);
  11660. $95 = HEAP8[$94>>0]|0;
  11661. $96 = (+($95&255));
  11662. $97 = $96 * 63.0;
  11663. $98 = $97 / 255.0;
  11664. $roundf180 = (+_roundf((+$98)));
  11665. $99 = (~~(($roundf180))&255);
  11666. $100 = ((($7)) + 2|0);
  11667. $101 = HEAP8[$100>>0]|0;
  11668. $102 = (+($101&255));
  11669. $103 = $102 * 31.0;
  11670. $104 = $103 / 255.0;
  11671. $roundf181 = (+_roundf((+$104)));
  11672. $105 = (~~(($roundf181))&255);
  11673. $106 = $93&255;
  11674. $107 = $106 << 11;
  11675. $108 = $99&255;
  11676. $109 = $108 << 5;
  11677. $110 = $109 | $107;
  11678. $111 = $105&255;
  11679. $112 = $110 | $111;
  11680. $113 = $112&65535;
  11681. $114 = HEAP32[$0>>2]|0;
  11682. $115 = HEAP32[$79>>2]|0;
  11683. $116 = HEAP32[$81>>2]|0;
  11684. $117 = Math_imul($116, $115)|0;
  11685. $$0169192 = 0;
  11686. while(1) {
  11687. $118 = (($114) + ($$0169192<<1)|0);
  11688. HEAP16[$118>>1] = $113;
  11689. $119 = (($$0169192) + 1)|0;
  11690. $120 = ($119|0)<($117|0);
  11691. if ($120) {
  11692. $$0169192 = $119;
  11693. } else {
  11694. break;
  11695. }
  11696. }
  11697. }
  11698. break;
  11699. }
  11700. case 4: {
  11701. $121 = ((($0)) + 4|0);
  11702. $122 = HEAP32[$121>>2]|0;
  11703. $123 = ((($0)) + 8|0);
  11704. $124 = HEAP32[$123>>2]|0;
  11705. $125 = ($122*3)|0;
  11706. $126 = Math_imul($125, $124)|0;
  11707. $127 = (_malloc($126)|0);
  11708. HEAP32[$0>>2] = $127;
  11709. $128 = HEAP32[$121>>2]|0;
  11710. $129 = ($128*3)|0;
  11711. $130 = Math_imul($129, $124)|0;
  11712. $131 = ($130|0)>(0);
  11713. if ($131) {
  11714. $$0168195 = 0;$$1194 = 0;
  11715. while(1) {
  11716. $132 = (($7) + ($$1194<<2)|0);
  11717. $133 = HEAP8[$132>>0]|0;
  11718. $134 = HEAP32[$0>>2]|0;
  11719. $135 = (($134) + ($$0168195)|0);
  11720. HEAP8[$135>>0] = $133;
  11721. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  11722. $137 = HEAP8[$136>>0]|0;
  11723. $138 = HEAP32[$0>>2]|0;
  11724. $139 = (($$0168195) + 1)|0;
  11725. $140 = (($138) + ($139)|0);
  11726. HEAP8[$140>>0] = $137;
  11727. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  11728. $142 = HEAP8[$141>>0]|0;
  11729. $143 = HEAP32[$0>>2]|0;
  11730. $144 = (($$0168195) + 2)|0;
  11731. $145 = (($143) + ($144)|0);
  11732. HEAP8[$145>>0] = $142;
  11733. $146 = (($$1194) + 1)|0;
  11734. $147 = (($$0168195) + 3)|0;
  11735. $148 = HEAP32[$121>>2]|0;
  11736. $149 = HEAP32[$123>>2]|0;
  11737. $150 = ($148*3)|0;
  11738. $151 = Math_imul($150, $149)|0;
  11739. $152 = ($147|0)<($151|0);
  11740. if ($152) {
  11741. $$0168195 = $147;$$1194 = $146;
  11742. } else {
  11743. break;
  11744. }
  11745. }
  11746. }
  11747. break;
  11748. }
  11749. case 5: {
  11750. $153 = ((($0)) + 4|0);
  11751. $154 = HEAP32[$153>>2]|0;
  11752. $155 = ((($0)) + 8|0);
  11753. $156 = HEAP32[$155>>2]|0;
  11754. $157 = $154 << 1;
  11755. $158 = Math_imul($157, $156)|0;
  11756. $159 = (_malloc($158)|0);
  11757. HEAP32[$0>>2] = $159;
  11758. $160 = HEAP32[$153>>2]|0;
  11759. $161 = Math_imul($156, $160)|0;
  11760. $162 = ($161|0)>(0);
  11761. if ($162) {
  11762. $163 = HEAP32[$0>>2]|0;
  11763. $164 = HEAP32[$153>>2]|0;
  11764. $165 = HEAP32[$155>>2]|0;
  11765. $166 = Math_imul($165, $164)|0;
  11766. $$0167197 = 0;
  11767. while(1) {
  11768. $167 = (($7) + ($$0167197<<2)|0);
  11769. $168 = HEAP8[$167>>0]|0;
  11770. $169 = (+($168&255));
  11771. $170 = $169 * 31.0;
  11772. $171 = $170 / 255.0;
  11773. $roundf176 = (+_roundf((+$171)));
  11774. $172 = (~~(($roundf176))&255);
  11775. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  11776. $174 = HEAP8[$173>>0]|0;
  11777. $175 = (+($174&255));
  11778. $176 = $175 * 31.0;
  11779. $177 = $176 / 255.0;
  11780. $roundf177 = (+_roundf((+$177)));
  11781. $178 = (~~(($roundf177))&255);
  11782. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  11783. $180 = HEAP8[$179>>0]|0;
  11784. $181 = (+($180&255));
  11785. $182 = $181 * 31.0;
  11786. $183 = $182 / 255.0;
  11787. $roundf178 = (+_roundf((+$183)));
  11788. $184 = (~~(($roundf178))&255);
  11789. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  11790. $186 = HEAP8[$185>>0]|0;
  11791. $187 = ($186&255)>(50);
  11792. $188 = $172&255;
  11793. $189 = $188 << 11;
  11794. $190 = $178&255;
  11795. $191 = $190 << 6;
  11796. $192 = $191 | $189;
  11797. $193 = $184&255;
  11798. $194 = $193 << 1;
  11799. $195 = $192 | $194;
  11800. $196 = $187&1;
  11801. $197 = $195 | $196;
  11802. $198 = $197&65535;
  11803. $199 = (($163) + ($$0167197<<1)|0);
  11804. HEAP16[$199>>1] = $198;
  11805. $200 = (($$0167197) + 1)|0;
  11806. $201 = ($200|0)<($166|0);
  11807. if ($201) {
  11808. $$0167197 = $200;
  11809. } else {
  11810. break;
  11811. }
  11812. }
  11813. }
  11814. break;
  11815. }
  11816. case 6: {
  11817. $202 = ((($0)) + 4|0);
  11818. $203 = HEAP32[$202>>2]|0;
  11819. $204 = ((($0)) + 8|0);
  11820. $205 = HEAP32[$204>>2]|0;
  11821. $206 = $203 << 1;
  11822. $207 = Math_imul($206, $205)|0;
  11823. $208 = (_malloc($207)|0);
  11824. HEAP32[$0>>2] = $208;
  11825. $209 = HEAP32[$202>>2]|0;
  11826. $210 = Math_imul($205, $209)|0;
  11827. $211 = ($210|0)>(0);
  11828. if ($211) {
  11829. $212 = HEAP32[$0>>2]|0;
  11830. $213 = HEAP32[$202>>2]|0;
  11831. $214 = HEAP32[$204>>2]|0;
  11832. $215 = Math_imul($214, $213)|0;
  11833. $$0166199 = 0;
  11834. while(1) {
  11835. $216 = (($7) + ($$0166199<<2)|0);
  11836. $217 = HEAP8[$216>>0]|0;
  11837. $218 = (+($217&255));
  11838. $219 = $218 * 15.0;
  11839. $220 = $219 / 255.0;
  11840. $roundf = (+_roundf((+$220)));
  11841. $221 = (~~(($roundf))&255);
  11842. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  11843. $223 = HEAP8[$222>>0]|0;
  11844. $224 = (+($223&255));
  11845. $225 = $224 * 15.0;
  11846. $226 = $225 / 255.0;
  11847. $roundf173 = (+_roundf((+$226)));
  11848. $227 = (~~(($roundf173))&255);
  11849. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  11850. $229 = HEAP8[$228>>0]|0;
  11851. $230 = (+($229&255));
  11852. $231 = $230 * 15.0;
  11853. $232 = $231 / 255.0;
  11854. $roundf174 = (+_roundf((+$232)));
  11855. $233 = (~~(($roundf174))&255);
  11856. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  11857. $235 = HEAP8[$234>>0]|0;
  11858. $236 = (+($235&255));
  11859. $237 = $236 * 15.0;
  11860. $238 = $237 / 255.0;
  11861. $roundf175 = (+_roundf((+$238)));
  11862. $239 = (~~(($roundf175))&255);
  11863. $240 = $221&255;
  11864. $241 = $240 << 12;
  11865. $242 = $227&255;
  11866. $243 = $242 << 8;
  11867. $244 = $243 | $241;
  11868. $245 = $233&255;
  11869. $246 = $245 << 4;
  11870. $247 = $244 | $246;
  11871. $248 = $239&255;
  11872. $249 = $247 | $248;
  11873. $250 = $249&65535;
  11874. $251 = (($212) + ($$0166199<<1)|0);
  11875. HEAP16[$251>>1] = $250;
  11876. $252 = (($$0166199) + 1)|0;
  11877. $253 = ($252|0)<($215|0);
  11878. if ($253) {
  11879. $$0166199 = $252;
  11880. } else {
  11881. break;
  11882. }
  11883. }
  11884. }
  11885. break;
  11886. }
  11887. case 7: {
  11888. $254 = ((($0)) + 4|0);
  11889. $255 = HEAP32[$254>>2]|0;
  11890. $256 = ((($0)) + 8|0);
  11891. $257 = HEAP32[$256>>2]|0;
  11892. $258 = $255 << 2;
  11893. $259 = Math_imul($258, $257)|0;
  11894. $260 = (_malloc($259)|0);
  11895. HEAP32[$0>>2] = $260;
  11896. $261 = HEAP32[$254>>2]|0;
  11897. $262 = $261 << 2;
  11898. $263 = Math_imul($262, $257)|0;
  11899. $264 = ($263|0)>(0);
  11900. if ($264) {
  11901. $$0202 = 0;$$2201 = 0;
  11902. while(1) {
  11903. $265 = (($7) + ($$2201<<2)|0);
  11904. $266 = HEAP8[$265>>0]|0;
  11905. $267 = HEAP32[$0>>2]|0;
  11906. $268 = (($267) + ($$0202)|0);
  11907. HEAP8[$268>>0] = $266;
  11908. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  11909. $270 = HEAP8[$269>>0]|0;
  11910. $271 = HEAP32[$0>>2]|0;
  11911. $272 = $$0202 | 1;
  11912. $273 = (($271) + ($272)|0);
  11913. HEAP8[$273>>0] = $270;
  11914. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  11915. $275 = HEAP8[$274>>0]|0;
  11916. $276 = HEAP32[$0>>2]|0;
  11917. $277 = $$0202 | 2;
  11918. $278 = (($276) + ($277)|0);
  11919. HEAP8[$278>>0] = $275;
  11920. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  11921. $280 = HEAP8[$279>>0]|0;
  11922. $281 = HEAP32[$0>>2]|0;
  11923. $282 = $$0202 | 3;
  11924. $283 = (($281) + ($282)|0);
  11925. HEAP8[$283>>0] = $280;
  11926. $284 = (($$2201) + 1)|0;
  11927. $285 = (($$0202) + 4)|0;
  11928. $286 = HEAP32[$254>>2]|0;
  11929. $287 = HEAP32[$256>>2]|0;
  11930. $288 = $286 << 2;
  11931. $289 = Math_imul($288, $287)|0;
  11932. $290 = ($285|0)<($289|0);
  11933. if ($290) {
  11934. $$0202 = $285;$$2201 = $284;
  11935. } else {
  11936. break;
  11937. }
  11938. }
  11939. }
  11940. break;
  11941. }
  11942. default: {
  11943. }
  11944. }
  11945. _free($7);
  11946. STACKTOP = sp;return;
  11947. }
  11948. function _LoadTextureFromImage($0,$1) {
  11949. $0 = $0|0;
  11950. $1 = $1|0;
  11951. 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;
  11952. sp = STACKTOP;
  11953. $2 = HEAP32[$1>>2]|0;
  11954. $3 = ((($1)) + 4|0);
  11955. $4 = HEAP32[$3>>2]|0;
  11956. $5 = ((($1)) + 8|0);
  11957. $6 = HEAP32[$5>>2]|0;
  11958. $7 = ((($1)) + 16|0);
  11959. $8 = HEAP32[$7>>2]|0;
  11960. $9 = ((($1)) + 12|0);
  11961. $10 = HEAP32[$9>>2]|0;
  11962. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  11963. $12 = HEAP32[$3>>2]|0;
  11964. $13 = HEAP32[$5>>2]|0;
  11965. HEAP32[$0>>2] = $11;
  11966. $$sroa$5$0$$sroa_idx2 = ((($0)) + 4|0);
  11967. HEAP32[$$sroa$5$0$$sroa_idx2>>2] = $12;
  11968. $$sroa$7$0$$sroa_idx4 = ((($0)) + 8|0);
  11969. HEAP32[$$sroa$7$0$$sroa_idx4>>2] = $13;
  11970. $$sroa$9$0$$sroa_idx6 = ((($0)) + 12|0);
  11971. HEAP32[$$sroa$9$0$$sroa_idx6>>2] = $10;
  11972. $$sroa$11$0$$sroa_idx8 = ((($0)) + 16|0);
  11973. HEAP32[$$sroa$11$0$$sroa_idx8>>2] = $8;
  11974. return;
  11975. }
  11976. function _UnloadImage($0) {
  11977. $0 = $0|0;
  11978. var $1 = 0, label = 0, sp = 0;
  11979. sp = STACKTOP;
  11980. $1 = HEAP32[$0>>2]|0;
  11981. _free($1);
  11982. return;
  11983. }
  11984. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  11985. $0 = $0|0;
  11986. $1 = $1|0;
  11987. $2 = $2|0;
  11988. $3 = $3|0;
  11989. $4 = $4|0;
  11990. 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;
  11991. 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;
  11992. 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;
  11993. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  11994. sp = STACKTOP;
  11995. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  11996. $vararg_buffer15 = sp + 64|0;
  11997. $vararg_buffer11 = sp + 48|0;
  11998. $vararg_buffer9 = sp + 40|0;
  11999. $vararg_buffer7 = sp + 32|0;
  12000. $vararg_buffer5 = sp + 24|0;
  12001. $vararg_buffer3 = sp + 16|0;
  12002. $vararg_buffer1 = sp + 8|0;
  12003. $vararg_buffer = sp;
  12004. $5 = sp + 68|0;
  12005. _glBindTexture(3553,0);
  12006. HEAP32[$5>>2] = 0;
  12007. $6 = HEAP32[4924]|0;
  12008. $7 = ($6|0)==(0);
  12009. $8 = $3 & -4;
  12010. $switch = ($8|0)==(8);
  12011. $or$cond100 = $switch & $7;
  12012. if ($or$cond100) {
  12013. _TraceLog(2,4793,$vararg_buffer);
  12014. $$0 = HEAP32[$5>>2]|0;
  12015. STACKTOP = sp;return ($$0|0);
  12016. }
  12017. $9 = HEAP32[4925]|0;
  12018. $10 = ($9|0)==(0);
  12019. $11 = ($3|0)==(12);
  12020. $or$cond7 = $11 & $10;
  12021. if ($or$cond7) {
  12022. _TraceLog(2,4837,$vararg_buffer1);
  12023. $$0 = HEAP32[$5>>2]|0;
  12024. STACKTOP = sp;return ($$0|0);
  12025. }
  12026. $12 = HEAP32[4926]|0;
  12027. $13 = ($12|0)==(0);
  12028. $$off = (($3) + -13)|0;
  12029. $14 = ($$off>>>0)<(2);
  12030. $or$cond = $14 & $13;
  12031. if ($or$cond) {
  12032. _TraceLog(2,4882,$vararg_buffer3);
  12033. $$0 = HEAP32[$5>>2]|0;
  12034. STACKTOP = sp;return ($$0|0);
  12035. }
  12036. $15 = HEAP32[4927]|0;
  12037. $16 = ($15|0)==(0);
  12038. $$off92 = (($3) + -15)|0;
  12039. $17 = ($$off92>>>0)<(2);
  12040. $or$cond96 = $17 & $16;
  12041. if ($or$cond96) {
  12042. _TraceLog(2,4927,$vararg_buffer5);
  12043. $$0 = HEAP32[$5>>2]|0;
  12044. STACKTOP = sp;return ($$0|0);
  12045. }
  12046. $18 = HEAP32[4928]|0;
  12047. $19 = ($18|0)==(0);
  12048. $$off93 = (($3) + -17)|0;
  12049. $20 = ($$off93>>>0)<(2);
  12050. $or$cond98 = $20 & $19;
  12051. if ($or$cond98) {
  12052. _TraceLog(2,4972,$vararg_buffer7);
  12053. $$0 = HEAP32[$5>>2]|0;
  12054. STACKTOP = sp;return ($$0|0);
  12055. }
  12056. _glGenTextures(1,($5|0));
  12057. $21 = HEAP32[$5>>2]|0;
  12058. _glBindTexture(3553,($21|0));
  12059. do {
  12060. switch ($3|0) {
  12061. case 1: {
  12062. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  12063. break;
  12064. }
  12065. case 2: {
  12066. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  12067. break;
  12068. }
  12069. case 3: {
  12070. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  12071. break;
  12072. }
  12073. case 4: {
  12074. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  12075. break;
  12076. }
  12077. case 5: {
  12078. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  12079. break;
  12080. }
  12081. case 6: {
  12082. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  12083. break;
  12084. }
  12085. case 7: {
  12086. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  12087. break;
  12088. }
  12089. case 8: {
  12090. $22 = HEAP32[4924]|0;
  12091. $23 = ($22|0)==(0);
  12092. if (!($23)) {
  12093. _LoadCompressedTexture($0,$1,$2,$4,33776);
  12094. }
  12095. break;
  12096. }
  12097. case 9: {
  12098. $24 = HEAP32[4924]|0;
  12099. $25 = ($24|0)==(0);
  12100. if (!($25)) {
  12101. _LoadCompressedTexture($0,$1,$2,$4,33777);
  12102. }
  12103. break;
  12104. }
  12105. case 10: {
  12106. $26 = HEAP32[4924]|0;
  12107. $27 = ($26|0)==(0);
  12108. if (!($27)) {
  12109. _LoadCompressedTexture($0,$1,$2,$4,33778);
  12110. }
  12111. break;
  12112. }
  12113. case 11: {
  12114. $28 = HEAP32[4924]|0;
  12115. $29 = ($28|0)==(0);
  12116. if (!($29)) {
  12117. _LoadCompressedTexture($0,$1,$2,$4,33779);
  12118. }
  12119. break;
  12120. }
  12121. case 12: {
  12122. $30 = HEAP32[4925]|0;
  12123. $31 = ($30|0)==(0);
  12124. if (!($31)) {
  12125. _LoadCompressedTexture($0,$1,$2,$4,36196);
  12126. }
  12127. break;
  12128. }
  12129. case 13: {
  12130. $32 = HEAP32[4926]|0;
  12131. $33 = ($32|0)==(0);
  12132. if (!($33)) {
  12133. _LoadCompressedTexture($0,$1,$2,$4,37492);
  12134. }
  12135. break;
  12136. }
  12137. case 14: {
  12138. $34 = HEAP32[4926]|0;
  12139. $35 = ($34|0)==(0);
  12140. if (!($35)) {
  12141. _LoadCompressedTexture($0,$1,$2,$4,37496);
  12142. }
  12143. break;
  12144. }
  12145. case 15: {
  12146. $36 = HEAP32[4927]|0;
  12147. $37 = ($36|0)==(0);
  12148. if (!($37)) {
  12149. _LoadCompressedTexture($0,$1,$2,$4,35840);
  12150. }
  12151. break;
  12152. }
  12153. case 16: {
  12154. $38 = HEAP32[4927]|0;
  12155. $39 = ($38|0)==(0);
  12156. if (!($39)) {
  12157. _LoadCompressedTexture($0,$1,$2,$4,35842);
  12158. }
  12159. break;
  12160. }
  12161. case 17: {
  12162. $40 = HEAP32[4928]|0;
  12163. $41 = ($40|0)==(0);
  12164. if (!($41)) {
  12165. _LoadCompressedTexture($0,$1,$2,$4,37808);
  12166. }
  12167. break;
  12168. }
  12169. case 18: {
  12170. $42 = HEAP32[4928]|0;
  12171. $43 = ($42|0)==(0);
  12172. if (!($43)) {
  12173. _LoadCompressedTexture($0,$1,$2,$4,37815);
  12174. }
  12175. break;
  12176. }
  12177. default: {
  12178. _TraceLog(2,5017,$vararg_buffer9);
  12179. }
  12180. }
  12181. } while(0);
  12182. $44 = HEAP32[4929]|0;
  12183. $45 = ($44|0)==(0);
  12184. if ($45) {
  12185. _glTexParameteri(3553,10242,33071);
  12186. _glTexParameteri(3553,10243,33071);
  12187. } else {
  12188. _glTexParameteri(3553,10242,10497);
  12189. _glTexParameteri(3553,10243,10497);
  12190. }
  12191. _glTexParameteri(3553,10240,9728);
  12192. _glTexParameteri(3553,10241,9728);
  12193. _glBindTexture(3553,0);
  12194. $46 = HEAP32[$5>>2]|0;
  12195. $47 = ($46|0)==(0);
  12196. if ($47) {
  12197. _TraceLog(2,5095,$vararg_buffer15);
  12198. $$0 = HEAP32[$5>>2]|0;
  12199. STACKTOP = sp;return ($$0|0);
  12200. } else {
  12201. HEAP32[$vararg_buffer11>>2] = $46;
  12202. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  12203. HEAP32[$vararg_ptr13>>2] = $1;
  12204. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  12205. HEAP32[$vararg_ptr14>>2] = $2;
  12206. _TraceLog(0,5046,$vararg_buffer11);
  12207. $$0 = HEAP32[$5>>2]|0;
  12208. STACKTOP = sp;return ($$0|0);
  12209. }
  12210. return (0)|0;
  12211. }
  12212. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  12213. $0 = $0|0;
  12214. $1 = $1|0;
  12215. $2 = $2|0;
  12216. $3 = $3|0;
  12217. $4 = $4|0;
  12218. 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;
  12219. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  12220. sp = STACKTOP;
  12221. _glPixelStorei(3317,1);
  12222. switch ($4|0) {
  12223. case 33776: case 33777: case 36196: case 37492: {
  12224. $$038 = 8;
  12225. break;
  12226. }
  12227. default: {
  12228. $$038 = 16;
  12229. }
  12230. }
  12231. $5 = ($3|0)<(1);
  12232. $6 = $1 | $2;
  12233. $7 = ($6|0)==(0);
  12234. $or$cond42 = $5 | $7;
  12235. if ($or$cond42) {
  12236. return;
  12237. } else {
  12238. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  12239. }
  12240. while(1) {
  12241. $8 = (($$046) + 3)|0;
  12242. $9 = (($8|0) / 4)&-1;
  12243. $10 = (($$03943) + 3)|0;
  12244. $11 = (($10|0) / 4)&-1;
  12245. $12 = Math_imul($11, $$038)|0;
  12246. $13 = Math_imul($12, $9)|0;
  12247. $14 = (($0) + ($$03744)|0);
  12248. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  12249. $15 = (($13) + ($$03744))|0;
  12250. $16 = (($$046|0) / 2)&-1;
  12251. $17 = (($$03943|0) / 2)&-1;
  12252. $18 = ($$046|0)<(2);
  12253. $$ = $18 ? 1 : $16;
  12254. $19 = ($$03943|0)<(2);
  12255. $$140 = $19 ? 1 : $17;
  12256. $20 = (($$03645) + 1)|0;
  12257. $21 = ($20|0)>=($3|0);
  12258. $22 = $$ | $$140;
  12259. $23 = ($22|0)==(0);
  12260. $or$cond = $21 | $23;
  12261. if ($or$cond) {
  12262. break;
  12263. } else {
  12264. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  12265. }
  12266. }
  12267. return;
  12268. }
  12269. function _GetImageData($0) {
  12270. $0 = $0|0;
  12271. 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;
  12272. 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;
  12273. 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;
  12274. 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;
  12275. 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;
  12276. 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;
  12277. 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;
  12278. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  12279. sp = STACKTOP;
  12280. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12281. $vararg_buffer = sp;
  12282. $1 = ((($0)) + 4|0);
  12283. $2 = HEAP32[$1>>2]|0;
  12284. $3 = ((($0)) + 8|0);
  12285. $4 = HEAP32[$3>>2]|0;
  12286. $5 = $2 << 2;
  12287. $6 = Math_imul($5, $4)|0;
  12288. $7 = (_malloc($6)|0);
  12289. $8 = HEAP32[$1>>2]|0;
  12290. $9 = Math_imul($4, $8)|0;
  12291. $10 = ($9|0)>(0);
  12292. if (!($10)) {
  12293. STACKTOP = sp;return ($7|0);
  12294. }
  12295. $11 = ((($0)) + 16|0);
  12296. $12 = HEAP32[$11>>2]|0;
  12297. $13 = HEAP32[$0>>2]|0;
  12298. $$0104105 = 0;$$0106 = 0;
  12299. while(1) {
  12300. switch ($12|0) {
  12301. case 1: {
  12302. $14 = (($13) + ($$0106)|0);
  12303. $15 = HEAP8[$14>>0]|0;
  12304. $16 = (($7) + ($$0104105<<2)|0);
  12305. HEAP8[$16>>0] = $15;
  12306. $17 = HEAP8[$14>>0]|0;
  12307. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12308. HEAP8[$18>>0] = $17;
  12309. $19 = HEAP8[$14>>0]|0;
  12310. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12311. HEAP8[$20>>0] = $19;
  12312. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12313. HEAP8[$21>>0] = -1;
  12314. $22 = (($$0106) + 1)|0;
  12315. $$1 = $22;
  12316. break;
  12317. }
  12318. case 2: {
  12319. $23 = (($13) + ($$0106)|0);
  12320. $24 = HEAP8[$23>>0]|0;
  12321. $25 = (($7) + ($$0104105<<2)|0);
  12322. HEAP8[$25>>0] = $24;
  12323. $26 = HEAP8[$23>>0]|0;
  12324. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12325. HEAP8[$27>>0] = $26;
  12326. $28 = HEAP8[$23>>0]|0;
  12327. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12328. HEAP8[$29>>0] = $28;
  12329. $30 = (($$0106) + 1)|0;
  12330. $31 = (($13) + ($30)|0);
  12331. $32 = HEAP8[$31>>0]|0;
  12332. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12333. HEAP8[$33>>0] = $32;
  12334. $34 = (($$0106) + 2)|0;
  12335. $$1 = $34;
  12336. break;
  12337. }
  12338. case 5: {
  12339. $35 = (($13) + ($$0106<<1)|0);
  12340. $36 = HEAP16[$35>>1]|0;
  12341. $37 = $36&65535;
  12342. $38 = $37 >>> 11;
  12343. $39 = (+($38|0));
  12344. $40 = $39 * 8.0;
  12345. $41 = (~~(($40))&255);
  12346. $42 = (($7) + ($$0104105<<2)|0);
  12347. HEAP8[$42>>0] = $41;
  12348. $43 = $37 >>> 6;
  12349. $44 = $43 & 31;
  12350. $45 = (+($44|0));
  12351. $46 = $45 * 8.0;
  12352. $47 = (~~(($46))&255);
  12353. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12354. HEAP8[$48>>0] = $47;
  12355. $49 = $37 >>> 1;
  12356. $50 = $49 & 31;
  12357. $51 = (+($50|0));
  12358. $52 = $51 * 8.0;
  12359. $53 = (~~(($52))&255);
  12360. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12361. HEAP8[$54>>0] = $53;
  12362. $55 = $37 & 1;
  12363. $56 = (0 - ($55))|0;
  12364. $57 = $56&255;
  12365. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12366. HEAP8[$58>>0] = $57;
  12367. $59 = (($$0106) + 1)|0;
  12368. $$1 = $59;
  12369. break;
  12370. }
  12371. case 3: {
  12372. $60 = (($13) + ($$0106<<1)|0);
  12373. $61 = HEAP16[$60>>1]|0;
  12374. $62 = $61&65535;
  12375. $63 = $62 >>> 11;
  12376. $64 = (+($63|0));
  12377. $65 = $64 * 8.0;
  12378. $66 = (~~(($65))&255);
  12379. $67 = (($7) + ($$0104105<<2)|0);
  12380. HEAP8[$67>>0] = $66;
  12381. $68 = $62 >>> 5;
  12382. $69 = $68 & 63;
  12383. $70 = (+($69|0));
  12384. $71 = $70 * 4.0;
  12385. $72 = (~~(($71))&255);
  12386. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12387. HEAP8[$73>>0] = $72;
  12388. $74 = $62 & 31;
  12389. $75 = (+($74|0));
  12390. $76 = $75 * 8.0;
  12391. $77 = (~~(($76))&255);
  12392. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12393. HEAP8[$78>>0] = $77;
  12394. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12395. HEAP8[$79>>0] = -1;
  12396. $80 = (($$0106) + 1)|0;
  12397. $$1 = $80;
  12398. break;
  12399. }
  12400. case 6: {
  12401. $81 = (($13) + ($$0106<<1)|0);
  12402. $82 = HEAP16[$81>>1]|0;
  12403. $83 = $82&65535;
  12404. $84 = $83 >>> 12;
  12405. $85 = (+($84|0));
  12406. $86 = $85 * 17.0;
  12407. $87 = (~~(($86))&255);
  12408. $88 = (($7) + ($$0104105<<2)|0);
  12409. HEAP8[$88>>0] = $87;
  12410. $89 = $83 >>> 8;
  12411. $90 = $89 & 15;
  12412. $91 = (+($90|0));
  12413. $92 = $91 * 17.0;
  12414. $93 = (~~(($92))&255);
  12415. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12416. HEAP8[$94>>0] = $93;
  12417. $95 = $83 >>> 4;
  12418. $96 = $95 & 15;
  12419. $97 = (+($96|0));
  12420. $98 = $97 * 17.0;
  12421. $99 = (~~(($98))&255);
  12422. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12423. HEAP8[$100>>0] = $99;
  12424. $101 = $83 & 15;
  12425. $102 = (+($101|0));
  12426. $103 = $102 * 17.0;
  12427. $104 = (~~(($103))&255);
  12428. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12429. HEAP8[$105>>0] = $104;
  12430. $106 = (($$0106) + 1)|0;
  12431. $$1 = $106;
  12432. break;
  12433. }
  12434. case 7: {
  12435. $107 = (($13) + ($$0106)|0);
  12436. $108 = HEAP8[$107>>0]|0;
  12437. $109 = (($7) + ($$0104105<<2)|0);
  12438. HEAP8[$109>>0] = $108;
  12439. $110 = (($$0106) + 1)|0;
  12440. $111 = (($13) + ($110)|0);
  12441. $112 = HEAP8[$111>>0]|0;
  12442. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12443. HEAP8[$113>>0] = $112;
  12444. $114 = (($$0106) + 2)|0;
  12445. $115 = (($13) + ($114)|0);
  12446. $116 = HEAP8[$115>>0]|0;
  12447. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12448. HEAP8[$117>>0] = $116;
  12449. $118 = (($$0106) + 3)|0;
  12450. $119 = (($13) + ($118)|0);
  12451. $120 = HEAP8[$119>>0]|0;
  12452. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12453. HEAP8[$121>>0] = $120;
  12454. $122 = (($$0106) + 4)|0;
  12455. $$1 = $122;
  12456. break;
  12457. }
  12458. case 4: {
  12459. $123 = (($13) + ($$0106)|0);
  12460. $124 = HEAP8[$123>>0]|0;
  12461. $125 = (($7) + ($$0104105<<2)|0);
  12462. HEAP8[$125>>0] = $124;
  12463. $126 = (($$0106) + 1)|0;
  12464. $127 = (($13) + ($126)|0);
  12465. $128 = HEAP8[$127>>0]|0;
  12466. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  12467. HEAP8[$129>>0] = $128;
  12468. $130 = (($$0106) + 2)|0;
  12469. $131 = (($13) + ($130)|0);
  12470. $132 = HEAP8[$131>>0]|0;
  12471. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  12472. HEAP8[$133>>0] = $132;
  12473. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  12474. HEAP8[$134>>0] = -1;
  12475. $135 = (($$0106) + 3)|0;
  12476. $$1 = $135;
  12477. break;
  12478. }
  12479. default: {
  12480. _TraceLog(2,5178,$vararg_buffer);
  12481. $$1 = $$0106;
  12482. }
  12483. }
  12484. $136 = (($$0104105) + 1)|0;
  12485. $137 = HEAP32[$1>>2]|0;
  12486. $138 = HEAP32[$3>>2]|0;
  12487. $139 = Math_imul($138, $137)|0;
  12488. $140 = ($136|0)<($139|0);
  12489. if ($140) {
  12490. $$0104105 = $136;$$0106 = $$1;
  12491. } else {
  12492. break;
  12493. }
  12494. }
  12495. STACKTOP = sp;return ($7|0);
  12496. }
  12497. function _ErrorCallback($0,$1) {
  12498. $0 = $0|0;
  12499. $1 = $1|0;
  12500. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  12501. sp = STACKTOP;
  12502. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12503. $vararg_buffer = sp;
  12504. HEAP32[$vararg_buffer>>2] = $0;
  12505. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12506. HEAP32[$vararg_ptr1>>2] = $1;
  12507. _TraceLog(2,9044,$vararg_buffer);
  12508. STACKTOP = sp;return;
  12509. }
  12510. function _rlGetVersion() {
  12511. var label = 0, sp = 0;
  12512. sp = STACKTOP;
  12513. return 4;
  12514. }
  12515. function _SetupFramebufferSize($0,$1) {
  12516. $0 = $0|0;
  12517. $1 = $1|0;
  12518. 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;
  12519. 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;
  12520. 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;
  12521. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  12522. sp = STACKTOP;
  12523. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12524. $vararg_buffer8 = sp + 24|0;
  12525. $vararg_buffer4 = sp + 16|0;
  12526. $vararg_buffer = sp;
  12527. $2 = sp + 40|0;
  12528. $3 = HEAP32[4908]|0;
  12529. $4 = ($3|0)>($0|0);
  12530. if (!($4)) {
  12531. $5 = HEAP32[4907]|0;
  12532. $6 = ($5|0)>($1|0);
  12533. if (!($6)) {
  12534. $30 = ($3|0)<($0|0);
  12535. $31 = ($5|0)<($1|0);
  12536. $or$cond = $30 | $31;
  12537. if (!($or$cond)) {
  12538. HEAP32[4949] = $3;
  12539. HEAP32[4950] = $5;
  12540. HEAP32[4951] = 0;
  12541. HEAP32[4952] = 0;
  12542. STACKTOP = sp;return;
  12543. }
  12544. HEAP32[$vararg_buffer8>>2] = $3;
  12545. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  12546. HEAP32[$vararg_ptr11>>2] = $5;
  12547. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  12548. HEAP32[$vararg_ptr12>>2] = $0;
  12549. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  12550. HEAP32[$vararg_ptr13>>2] = $1;
  12551. _TraceLog(0,8978,$vararg_buffer8);
  12552. $32 = (+($0|0));
  12553. $33 = (+($1|0));
  12554. $34 = $32 / $33;
  12555. $35 = HEAP32[4908]|0;
  12556. $36 = (+($35|0));
  12557. $37 = HEAP32[4907]|0;
  12558. $38 = (+($37|0));
  12559. $39 = $36 / $38;
  12560. $40 = !($34 <= $39);
  12561. if ($40) {
  12562. $44 = $34 * $38;
  12563. $roundf = (+_roundf((+$44)));
  12564. $45 = (~~(($roundf)));
  12565. HEAP32[4949] = $45;
  12566. HEAP32[4950] = $37;
  12567. $46 = (($45) - ($35))|0;
  12568. HEAP32[4951] = $46;
  12569. $$sink1 = 0;
  12570. } else {
  12571. HEAP32[4949] = $35;
  12572. $41 = $36 / $34;
  12573. $roundf38 = (+_roundf((+$41)));
  12574. $42 = (~~(($roundf38)));
  12575. HEAP32[4950] = $42;
  12576. HEAP32[4951] = 0;
  12577. $43 = (($42) - ($37))|0;
  12578. $$sink1 = $43;
  12579. }
  12580. HEAP32[4952] = $$sink1;
  12581. STACKTOP = sp;return;
  12582. }
  12583. }
  12584. $7 = HEAP32[4907]|0;
  12585. HEAP32[$vararg_buffer>>2] = $3;
  12586. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12587. HEAP32[$vararg_ptr1>>2] = $7;
  12588. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  12589. HEAP32[$vararg_ptr2>>2] = $0;
  12590. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  12591. HEAP32[$vararg_ptr3>>2] = $1;
  12592. _TraceLog(2,8835,$vararg_buffer);
  12593. $8 = (+($0|0));
  12594. $9 = HEAP32[4908]|0;
  12595. $10 = (+($9|0));
  12596. $11 = $8 / $10;
  12597. $12 = (+($1|0));
  12598. $13 = HEAP32[4907]|0;
  12599. $14 = (+($13|0));
  12600. $15 = $12 / $14;
  12601. $16 = !($11 <= $15);
  12602. if ($16) {
  12603. $22 = $10 * $15;
  12604. $roundf39 = (+_roundf((+$22)));
  12605. $23 = (~~(($roundf39)));
  12606. HEAP32[4949] = $23;
  12607. HEAP32[4950] = $1;
  12608. $24 = (($0) - ($23))|0;
  12609. HEAP32[4951] = $24;
  12610. $$sink = 0;
  12611. } else {
  12612. HEAP32[4949] = $0;
  12613. $17 = HEAP32[4907]|0;
  12614. $18 = (+($17|0));
  12615. $19 = $11 * $18;
  12616. $roundf40 = (+_roundf((+$19)));
  12617. $20 = (~~(($roundf40)));
  12618. HEAP32[4950] = $20;
  12619. HEAP32[4951] = 0;
  12620. $21 = (($1) - ($20))|0;
  12621. $$sink = $21;
  12622. }
  12623. HEAP32[4952] = $$sink;
  12624. $25 = HEAP32[4949]|0;
  12625. $26 = (+($25|0));
  12626. $27 = HEAP32[4908]|0;
  12627. $28 = (+($27|0));
  12628. $29 = $26 / $28;
  12629. _MatrixScale($2,$29,$29,$29);
  12630. dest=19720; 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));
  12631. HEAP32[4949] = $0;
  12632. HEAP32[4950] = $1;
  12633. HEAP32[$vararg_buffer4>>2] = $0;
  12634. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  12635. HEAP32[$vararg_ptr7>>2] = $1;
  12636. _TraceLog(2,8913,$vararg_buffer4);
  12637. STACKTOP = sp;return;
  12638. }
  12639. function _WindowSizeCallback($0,$1,$2) {
  12640. $0 = $0|0;
  12641. $1 = $1|0;
  12642. $2 = $2|0;
  12643. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  12644. sp = STACKTOP;
  12645. _rlViewport(0,0,$1,$2);
  12646. _rlMatrixMode(5889);
  12647. _rlLoadIdentity();
  12648. $3 = (+($1|0));
  12649. $4 = (+($2|0));
  12650. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  12651. _rlMatrixMode(5888);
  12652. _rlLoadIdentity();
  12653. _rlClearScreenBuffers();
  12654. HEAP32[4908] = $1;
  12655. HEAP32[4907] = $2;
  12656. HEAP32[4949] = $1;
  12657. HEAP32[4950] = $2;
  12658. return;
  12659. }
  12660. function _CursorEnterCallback($0,$1) {
  12661. $0 = $0|0;
  12662. $1 = $1|0;
  12663. var label = 0, sp = 0;
  12664. sp = STACKTOP;
  12665. return;
  12666. }
  12667. function _KeyCallback($0,$1,$2,$3,$4) {
  12668. $0 = $0|0;
  12669. $1 = $1|0;
  12670. $2 = $2|0;
  12671. $3 = $3|0;
  12672. $4 = $4|0;
  12673. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  12674. sp = STACKTOP;
  12675. $5 = HEAP32[742]|0;
  12676. $6 = ($5|0)==($1|0);
  12677. $7 = ($3|0)==(1);
  12678. $or$cond = $7 & $6;
  12679. if ($or$cond) {
  12680. _glfwSetWindowShouldClose(($0|0),1);
  12681. return;
  12682. }
  12683. $8 = $3&255;
  12684. $9 = (22463 + ($1)|0);
  12685. HEAP8[$9>>0] = $8;
  12686. if (!($7)) {
  12687. return;
  12688. }
  12689. HEAP32[741] = $1;
  12690. return;
  12691. }
  12692. function _MouseButtonCallback($0,$1,$2,$3) {
  12693. $0 = $0|0;
  12694. $1 = $1|0;
  12695. $2 = $2|0;
  12696. $3 = $3|0;
  12697. 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;
  12698. 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;
  12699. sp = STACKTOP;
  12700. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  12701. $$byval_copy = sp + 64|0;
  12702. $4 = sp + 8|0;
  12703. $5 = sp;
  12704. $6 = $2&255;
  12705. $7 = (22457 + ($1)|0);
  12706. HEAP8[$7>>0] = $6;
  12707. $8 = (_IsMouseButtonPressed(0)|0);
  12708. $9 = ($8|0)==(0);
  12709. if ($9) {
  12710. $10 = (_IsMouseButtonReleased(0)|0);
  12711. $11 = ($10|0)==(0);
  12712. if (!($11)) {
  12713. $$sink = 0;
  12714. label = 3;
  12715. }
  12716. } else {
  12717. $$sink = 1;
  12718. label = 3;
  12719. }
  12720. if ((label|0) == 3) {
  12721. HEAP32[$4>>2] = $$sink;
  12722. }
  12723. $12 = ((($4)) + 8|0);
  12724. HEAP32[$12>>2] = 0;
  12725. $13 = ((($4)) + 4|0);
  12726. HEAP32[$13>>2] = 1;
  12727. $14 = ((($4)) + 24|0);
  12728. _GetMousePosition($5);
  12729. $15 = $5;
  12730. $16 = $15;
  12731. $17 = HEAP32[$16>>2]|0;
  12732. $18 = (($15) + 4)|0;
  12733. $19 = $18;
  12734. $20 = HEAP32[$19>>2]|0;
  12735. $21 = $14;
  12736. $22 = $21;
  12737. HEAP32[$22>>2] = $17;
  12738. $23 = (($21) + 4)|0;
  12739. $24 = $23;
  12740. HEAP32[$24>>2] = $20;
  12741. $25 = (_GetScreenWidth()|0);
  12742. $26 = (+($25|0));
  12743. $27 = +HEAPF32[$14>>2];
  12744. $28 = $27 / $26;
  12745. HEAPF32[$14>>2] = $28;
  12746. $29 = (_GetScreenHeight()|0);
  12747. $30 = (+($29|0));
  12748. $31 = ((($4)) + 28|0);
  12749. $32 = +HEAPF32[$31>>2];
  12750. $33 = $32 / $30;
  12751. HEAPF32[$31>>2] = $33;
  12752. 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));
  12753. _ProcessGestureEvent($$byval_copy);
  12754. STACKTOP = sp;return;
  12755. }
  12756. function _MouseCursorPosCallback($0,$1,$2) {
  12757. $0 = $0|0;
  12758. $1 = +$1;
  12759. $2 = +$2;
  12760. 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;
  12761. 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;
  12762. sp = STACKTOP;
  12763. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12764. $$byval_copy = sp + 56|0;
  12765. $3 = sp;
  12766. HEAP32[$3>>2] = 2;
  12767. $4 = ((($3)) + 8|0);
  12768. HEAP32[$4>>2] = 0;
  12769. $5 = ((($3)) + 4|0);
  12770. HEAP32[$5>>2] = 1;
  12771. $6 = $1;
  12772. $7 = $2;
  12773. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  12774. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  12775. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  12776. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  12777. $8 = ((($3)) + 24|0);
  12778. $9 = $8;
  12779. $10 = $9;
  12780. $11 = HEAP32[$10>>2]|0;
  12781. $12 = (($9) + 4)|0;
  12782. $13 = $12;
  12783. $14 = HEAP32[$13>>2]|0;
  12784. $15 = 19280;
  12785. $16 = $15;
  12786. HEAP32[$16>>2] = $11;
  12787. $17 = (($15) + 4)|0;
  12788. $18 = $17;
  12789. HEAP32[$18>>2] = $14;
  12790. $19 = (_GetScreenWidth()|0);
  12791. $20 = (+($19|0));
  12792. $21 = +HEAPF32[$8>>2];
  12793. $22 = $21 / $20;
  12794. HEAPF32[$8>>2] = $22;
  12795. $23 = (_GetScreenHeight()|0);
  12796. $24 = (+($23|0));
  12797. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  12798. $26 = $25 / $24;
  12799. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  12800. 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));
  12801. _ProcessGestureEvent($$byval_copy);
  12802. STACKTOP = sp;return;
  12803. }
  12804. function _CharCallback($0,$1) {
  12805. $0 = $0|0;
  12806. $1 = $1|0;
  12807. var label = 0, sp = 0;
  12808. sp = STACKTOP;
  12809. HEAP32[741] = $1;
  12810. return;
  12811. }
  12812. function _ScrollCallback($0,$1,$2) {
  12813. $0 = $0|0;
  12814. $1 = +$1;
  12815. $2 = +$2;
  12816. var $3 = 0, label = 0, sp = 0;
  12817. sp = STACKTOP;
  12818. $3 = (~~(($2)));
  12819. HEAP32[5322] = $3;
  12820. return;
  12821. }
  12822. function _WindowIconifyCallback($0,$1) {
  12823. $0 = $0|0;
  12824. $1 = $1|0;
  12825. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  12826. sp = STACKTOP;
  12827. $2 = ($1|0)!=(0);
  12828. $$sink = $2&1;
  12829. HEAP32[5321] = $$sink;
  12830. return;
  12831. }
  12832. function _rlglInit($0,$1) {
  12833. $0 = $0|0;
  12834. $1 = $1|0;
  12835. 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;
  12836. 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;
  12837. 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;
  12838. 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;
  12839. 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;
  12840. 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;
  12841. sp = STACKTOP;
  12842. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  12843. $vararg_buffer41 = sp + 2184|0;
  12844. $vararg_buffer39 = sp + 2176|0;
  12845. $vararg_buffer36 = sp + 2168|0;
  12846. $vararg_buffer34 = sp + 2160|0;
  12847. $vararg_buffer31 = sp + 2152|0;
  12848. $vararg_buffer29 = sp + 2144|0;
  12849. $vararg_buffer27 = sp + 2136|0;
  12850. $vararg_buffer25 = sp + 2128|0;
  12851. $vararg_buffer23 = sp + 2120|0;
  12852. $vararg_buffer21 = sp + 2112|0;
  12853. $vararg_buffer19 = sp + 2104|0;
  12854. $vararg_buffer17 = sp + 2096|0;
  12855. $vararg_buffer15 = sp + 2088|0;
  12856. $vararg_buffer13 = sp + 2080|0;
  12857. $vararg_buffer10 = sp + 2072|0;
  12858. $vararg_buffer7 = sp + 24|0;
  12859. $vararg_buffer4 = sp + 16|0;
  12860. $vararg_buffer1 = sp + 8|0;
  12861. $vararg_buffer = sp;
  12862. $2 = sp + 2400|0;
  12863. $3 = sp + 2384|0;
  12864. $4 = sp + 2320|0;
  12865. $5 = sp + 2256|0;
  12866. $6 = sp + 2192|0;
  12867. $7 = (_glGetString(7936)|0);
  12868. HEAP32[$vararg_buffer>>2] = $7;
  12869. _TraceLog(0,5476,$vararg_buffer);
  12870. $8 = (_glGetString(7937)|0);
  12871. HEAP32[$vararg_buffer1>>2] = $8;
  12872. _TraceLog(0,5494,$vararg_buffer1);
  12873. $9 = (_glGetString(7938)|0);
  12874. HEAP32[$vararg_buffer4>>2] = $9;
  12875. _TraceLog(0,5512,$vararg_buffer4);
  12876. $10 = (_glGetString(35724)|0);
  12877. HEAP32[$vararg_buffer7>>2] = $10;
  12878. _TraceLog(0,5530,$vararg_buffer7);
  12879. $11 = (_glGetString(7939)|0);
  12880. $12 = (_strlen($11)|0);
  12881. $13 = (($12) + 1)|0;
  12882. $14 = (_malloc($13)|0);
  12883. _memcpy(($14|0),($11|0),($13|0))|0;
  12884. $$062 = 0;$$sink63 = $14;
  12885. while(1) {
  12886. $15 = (_strtok($$sink63,5548)|0);
  12887. $16 = (($vararg_buffer7) + ($$062<<2)|0);
  12888. HEAP32[$16>>2] = $15;
  12889. $17 = ($15|0)==(0|0);
  12890. $18 = (($$062) + 1)|0;
  12891. if ($17) {
  12892. break;
  12893. } else {
  12894. $$062 = $18;$$sink63 = 0;
  12895. }
  12896. }
  12897. _free($14);
  12898. $19 = (($$062) + -1)|0;
  12899. HEAP32[$vararg_buffer10>>2] = $19;
  12900. _TraceLog(0,5550,$vararg_buffer10);
  12901. $20 = ($$062|0)>(1);
  12902. if ($20) {
  12903. $$06167 = 0;
  12904. while(1) {
  12905. $23 = (($vararg_buffer7) + ($$06167<<2)|0);
  12906. $24 = HEAP32[$23>>2]|0;
  12907. $25 = (_strcmp($24,5585)|0);
  12908. $26 = ($25|0)==(0);
  12909. if ($26) {
  12910. HEAP32[4987] = 1;
  12911. $27 = (_eglGetProcAddress((5612|0))|0);
  12912. HEAP32[4988] = $27;
  12913. $28 = (_eglGetProcAddress((5633|0))|0);
  12914. HEAP32[4989] = $28;
  12915. $29 = (_eglGetProcAddress((5654|0))|0);
  12916. HEAP32[4990] = $29;
  12917. }
  12918. $30 = (_strcmp($24,5678)|0);
  12919. $31 = ($30|0)==(0);
  12920. if ($31) {
  12921. HEAP32[4929] = 1;
  12922. }
  12923. $32 = (_strcmp($24,5698)|0);
  12924. $33 = ($32|0)==(0);
  12925. if ($33) {
  12926. label = 12;
  12927. } else {
  12928. $34 = HEAP32[$23>>2]|0;
  12929. $35 = (_strcmp($34,5730)|0);
  12930. $36 = ($35|0)==(0);
  12931. if ($36) {
  12932. label = 12;
  12933. } else {
  12934. $37 = (_strcmp($34,5763)|0);
  12935. $38 = ($37|0)==(0);
  12936. if ($38) {
  12937. label = 12;
  12938. }
  12939. }
  12940. }
  12941. if ((label|0) == 12) {
  12942. label = 0;
  12943. HEAP32[4924] = 1;
  12944. }
  12945. $39 = (_strcmp($24,5803)|0);
  12946. $40 = ($39|0)==(0);
  12947. if ($40) {
  12948. label = 15;
  12949. } else {
  12950. $41 = HEAP32[$23>>2]|0;
  12951. $42 = (_strcmp($41,5839)|0);
  12952. $43 = ($42|0)==(0);
  12953. if ($43) {
  12954. label = 15;
  12955. }
  12956. }
  12957. if ((label|0) == 15) {
  12958. label = 0;
  12959. HEAP32[4925] = 1;
  12960. }
  12961. $44 = HEAP32[$23>>2]|0;
  12962. $45 = (_strcmp($44,5872)|0);
  12963. $46 = ($45|0)==(0);
  12964. if ($46) {
  12965. HEAP32[4926] = 1;
  12966. }
  12967. $47 = (_strcmp($44,5897)|0);
  12968. $48 = ($47|0)==(0);
  12969. if ($48) {
  12970. HEAP32[4927] = 1;
  12971. }
  12972. $49 = (_strcmp($44,5930)|0);
  12973. $50 = ($49|0)==(0);
  12974. if ($50) {
  12975. HEAP32[4928] = 1;
  12976. }
  12977. $51 = (_strcmp($44,5966)|0);
  12978. $52 = ($51|0)==(0);
  12979. if ($52) {
  12980. HEAP32[4991] = 1;
  12981. _glGetFloatv(34047,(19968|0));
  12982. }
  12983. $53 = HEAP32[$23>>2]|0;
  12984. $54 = (_strcmp($53,6000)|0);
  12985. $55 = ($54|0)==(0);
  12986. if ($55) {
  12987. HEAP32[4993] = 1;
  12988. }
  12989. $56 = (($$06167) + 1)|0;
  12990. $exitcond70 = ($56|0)==($19|0);
  12991. if ($exitcond70) {
  12992. break;
  12993. } else {
  12994. $$06167 = $56;
  12995. }
  12996. }
  12997. }
  12998. $21 = HEAP32[4987]|0;
  12999. $22 = ($21|0)==(0);
  13000. if ($22) {
  13001. _TraceLog(2,6103,$vararg_buffer15);
  13002. } else {
  13003. _TraceLog(0,6028,$vararg_buffer13);
  13004. }
  13005. $57 = HEAP32[4929]|0;
  13006. $58 = ($57|0)==(0);
  13007. if ($58) {
  13008. _TraceLog(2,6239,$vararg_buffer19);
  13009. } else {
  13010. _TraceLog(0,6164,$vararg_buffer17);
  13011. }
  13012. $59 = HEAP32[4924]|0;
  13013. $60 = ($59|0)==(0);
  13014. if (!($60)) {
  13015. _TraceLog(0,6331,$vararg_buffer21);
  13016. }
  13017. $61 = HEAP32[4925]|0;
  13018. $62 = ($61|0)==(0);
  13019. if (!($62)) {
  13020. _TraceLog(0,6377,$vararg_buffer23);
  13021. }
  13022. $63 = HEAP32[4926]|0;
  13023. $64 = ($63|0)==(0);
  13024. if (!($64)) {
  13025. _TraceLog(0,6424,$vararg_buffer25);
  13026. }
  13027. $65 = HEAP32[4927]|0;
  13028. $66 = ($65|0)==(0);
  13029. if (!($66)) {
  13030. _TraceLog(0,6475,$vararg_buffer27);
  13031. }
  13032. $67 = HEAP32[4928]|0;
  13033. $68 = ($67|0)==(0);
  13034. if (!($68)) {
  13035. _TraceLog(0,6522,$vararg_buffer29);
  13036. }
  13037. $69 = HEAP32[4991]|0;
  13038. $70 = ($69|0)==(0);
  13039. if (!($70)) {
  13040. $71 = +HEAPF32[4992];
  13041. $72 = $71;
  13042. HEAPF64[$vararg_buffer31>>3] = $72;
  13043. _TraceLog(0,6569,$vararg_buffer31);
  13044. }
  13045. $73 = HEAP32[4993]|0;
  13046. $74 = ($73|0)==(0);
  13047. if (!($74)) {
  13048. _TraceLog(0,6635,$vararg_buffer34);
  13049. }
  13050. HEAP32[$vararg_buffer10>>2] = -1;
  13051. $75 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  13052. HEAP32[4994] = $75;
  13053. $76 = ($75|0)==(0);
  13054. if ($76) {
  13055. _TraceLog(2,6739,$vararg_buffer39);
  13056. } else {
  13057. HEAP32[$vararg_buffer36>>2] = $75;
  13058. _TraceLog(0,6688,$vararg_buffer36);
  13059. }
  13060. _LoadDefaultShader($2);
  13061. dest=19980; 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));
  13062. dest=20036; 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));
  13063. _LoadDefaultBuffers();
  13064. $77 = (_malloc(49152)|0);
  13065. HEAP32[5023] = $77;
  13066. $$06066 = 0;
  13067. while(1) {
  13068. $79 = HEAP32[5023]|0;
  13069. $80 = (($79) + (($$06066*12)|0)|0);
  13070. _VectorZero($3);
  13071. ;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;
  13072. $81 = (($$06066) + 1)|0;
  13073. $exitcond69 = ($81|0)==(4096);
  13074. if ($exitcond69) {
  13075. break;
  13076. } else {
  13077. $$06066 = $81;
  13078. }
  13079. }
  13080. $78 = (_malloc(36864)|0);
  13081. HEAP32[5024] = $78;
  13082. $$05965 = 0;
  13083. while(1) {
  13084. $82 = (((($78) + (($$05965*144)|0)|0)) + 8|0);
  13085. HEAP32[$82>>2] = 0;
  13086. $83 = (($78) + (($$05965*144)|0)|0);
  13087. HEAP32[$83>>2] = 0;
  13088. $84 = (($$05965) + 1)|0;
  13089. $exitcond = ($84|0)==(256);
  13090. if ($exitcond) {
  13091. break;
  13092. } else {
  13093. $$05965 = $84;
  13094. }
  13095. }
  13096. HEAP32[5025] = 1;
  13097. $85 = HEAP32[4994]|0;
  13098. $86 = ((($78)) + 8|0);
  13099. HEAP32[$86>>2] = $85;
  13100. HEAP32[5026] = 4;
  13101. _MatrixIdentity($4);
  13102. dest=20108; 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));
  13103. _MatrixIdentity($4);
  13104. dest=(20172); 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));
  13105. _MatrixIdentity($4);
  13106. dest=(20236); 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));
  13107. _MatrixIdentity($4);
  13108. dest=(20300); 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));
  13109. _MatrixIdentity($4);
  13110. dest=(20364); 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));
  13111. _MatrixIdentity($4);
  13112. dest=(20428); 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));
  13113. _MatrixIdentity($4);
  13114. dest=(20492); 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));
  13115. _MatrixIdentity($4);
  13116. dest=(20556); 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));
  13117. _MatrixIdentity($4);
  13118. dest=(20620); 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));
  13119. _MatrixIdentity($4);
  13120. dest=(20684); 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));
  13121. _MatrixIdentity($4);
  13122. dest=(20748); 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));
  13123. _MatrixIdentity($4);
  13124. dest=(20812); 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));
  13125. _MatrixIdentity($4);
  13126. dest=(20876); 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));
  13127. _MatrixIdentity($4);
  13128. dest=(20940); 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));
  13129. _MatrixIdentity($4);
  13130. dest=(21004); 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));
  13131. _MatrixIdentity($4);
  13132. dest=(21068); 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));
  13133. _MatrixIdentity($5);
  13134. dest=19816; 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));
  13135. _MatrixIdentity($6);
  13136. dest=19880; 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));
  13137. HEAP32[4953] = 19880;
  13138. _glDepthFunc(515);
  13139. _glDisable(2929);
  13140. _glBlendFunc(770,771);
  13141. _glEnable(3042);
  13142. _glCullFace(1029);
  13143. _glFrontFace(2305);
  13144. _glEnable(2884);
  13145. _glClearColor(0.0,0.0,0.0,1.0);
  13146. _glClearDepthf(1.0);
  13147. _glClear(16640);
  13148. HEAP32[5283] = $0;
  13149. HEAP32[5284] = $1;
  13150. _TraceLog(0,6778,$vararg_buffer41);
  13151. STACKTOP = sp;return;
  13152. }
  13153. function _SetupViewport() {
  13154. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  13155. sp = STACKTOP;
  13156. $0 = HEAP32[4951]|0;
  13157. $1 = (($0|0) / 2)&-1;
  13158. $2 = HEAP32[4952]|0;
  13159. $3 = (($2|0) / 2)&-1;
  13160. $4 = HEAP32[4949]|0;
  13161. $5 = (($4) - ($0))|0;
  13162. $6 = HEAP32[4950]|0;
  13163. $7 = (($6) - ($2))|0;
  13164. _rlViewport($1,$3,$5,$7);
  13165. return;
  13166. }
  13167. function _rlMatrixMode($0) {
  13168. $0 = $0|0;
  13169. var $modelview$sink = 0, label = 0, sp = 0;
  13170. sp = STACKTOP;
  13171. switch ($0|0) {
  13172. case 5889: {
  13173. $modelview$sink = 19816;
  13174. label = 3;
  13175. break;
  13176. }
  13177. case 5888: {
  13178. $modelview$sink = 19880;
  13179. label = 3;
  13180. break;
  13181. }
  13182. default: {
  13183. }
  13184. }
  13185. if ((label|0) == 3) {
  13186. HEAP32[4953] = $modelview$sink;
  13187. }
  13188. HEAP32[4986] = $0;
  13189. return;
  13190. }
  13191. function _rlLoadIdentity() {
  13192. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13193. sp = STACKTOP;
  13194. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13195. $0 = sp;
  13196. $1 = HEAP32[4953]|0;
  13197. _MatrixIdentity($0);
  13198. 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));
  13199. STACKTOP = sp;return;
  13200. }
  13201. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  13202. $0 = +$0;
  13203. $1 = +$1;
  13204. $2 = +$2;
  13205. $3 = +$3;
  13206. $4 = +$4;
  13207. $5 = +$5;
  13208. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13209. sp = STACKTOP;
  13210. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  13211. $$byval_copy1 = sp + 192|0;
  13212. $$byval_copy = sp + 128|0;
  13213. $6 = sp + 64|0;
  13214. $7 = sp;
  13215. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  13216. _MatrixTranspose($6);
  13217. $8 = HEAP32[4953]|0;
  13218. 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));
  13219. 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));
  13220. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  13221. 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));
  13222. STACKTOP = sp;return;
  13223. }
  13224. function _ClearBackground($0) {
  13225. $0 = $0|0;
  13226. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  13227. sp = STACKTOP;
  13228. $1 = HEAP8[$0>>0]|0;
  13229. $2 = ((($0)) + 1|0);
  13230. $3 = HEAP8[$2>>0]|0;
  13231. $4 = ((($0)) + 2|0);
  13232. $5 = HEAP8[$4>>0]|0;
  13233. $6 = ((($0)) + 3|0);
  13234. $7 = HEAP8[$6>>0]|0;
  13235. _rlClearColor($1,$3,$5,$7);
  13236. return;
  13237. }
  13238. function _rlClearColor($0,$1,$2,$3) {
  13239. $0 = $0|0;
  13240. $1 = $1|0;
  13241. $2 = $2|0;
  13242. $3 = $3|0;
  13243. 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;
  13244. sp = STACKTOP;
  13245. $4 = (+($0&255));
  13246. $5 = $4 / 255.0;
  13247. $6 = (+($1&255));
  13248. $7 = $6 / 255.0;
  13249. $8 = (+($2&255));
  13250. $9 = $8 / 255.0;
  13251. $10 = (+($3&255));
  13252. $11 = $10 / 255.0;
  13253. _glClearColor((+$5),(+$7),(+$9),(+$11));
  13254. return;
  13255. }
  13256. function _rlViewport($0,$1,$2,$3) {
  13257. $0 = $0|0;
  13258. $1 = $1|0;
  13259. $2 = $2|0;
  13260. $3 = $3|0;
  13261. var label = 0, sp = 0;
  13262. sp = STACKTOP;
  13263. _glViewport(($0|0),($1|0),($2|0),($3|0));
  13264. return;
  13265. }
  13266. function _LoadDefaultShader($0) {
  13267. $0 = $0|0;
  13268. 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;
  13269. sp = STACKTOP;
  13270. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  13271. $vararg_buffer1 = sp + 8|0;
  13272. $vararg_buffer = sp;
  13273. $1 = sp + 16|0;
  13274. $2 = sp + 513|0;
  13275. $3 = sp + 72|0;
  13276. _memcpy(($2|0),(7354|0),489)|0;
  13277. _memcpy(($3|0),(7843|0),441)|0;
  13278. $4 = (_LoadShaderProgram($2,$3)|0);
  13279. HEAP32[$1>>2] = $4;
  13280. $5 = ($4|0)==(0);
  13281. if ($5) {
  13282. HEAP32[$vararg_buffer1>>2] = $4;
  13283. _TraceLog(2,8332,$vararg_buffer1);
  13284. } else {
  13285. HEAP32[$vararg_buffer>>2] = $4;
  13286. _TraceLog(0,8284,$vararg_buffer);
  13287. }
  13288. $6 = HEAP32[$1>>2]|0;
  13289. $7 = ($6|0)==(0);
  13290. if (!($7)) {
  13291. _LoadDefaultShaderLocations($1);
  13292. }
  13293. 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));
  13294. STACKTOP = sp;return;
  13295. }
  13296. function _LoadDefaultBuffers() {
  13297. 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;
  13298. 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;
  13299. 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;
  13300. 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;
  13301. 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;
  13302. 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;
  13303. 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;
  13304. sp = STACKTOP;
  13305. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13306. $vararg_buffer17 = sp + 48|0;
  13307. $vararg_buffer14 = sp + 40|0;
  13308. $vararg_buffer10 = sp + 32|0;
  13309. $vararg_buffer7 = sp + 24|0;
  13310. $vararg_buffer3 = sp + 16|0;
  13311. $vararg_buffer1 = sp + 8|0;
  13312. $vararg_buffer = sp;
  13313. $0 = (_malloc(24576)|0);
  13314. HEAP32[(21152)>>2] = $0;
  13315. $1 = (_malloc(8192)|0);
  13316. HEAP32[(21160)>>2] = $1;
  13317. HEAP32[(21156)>>2] = 0;
  13318. HEAP32[(21164)>>2] = 0;
  13319. _memset(($0|0),0,24576)|0;
  13320. $$05972 = 0;
  13321. while(1) {
  13322. $2 = HEAP32[(21160)>>2]|0;
  13323. $3 = (($2) + ($$05972)|0);
  13324. HEAP8[$3>>0] = 0;
  13325. $4 = (($$05972) + 1)|0;
  13326. $exitcond80 = ($4|0)==(8192);
  13327. if ($exitcond80) {
  13328. break;
  13329. } else {
  13330. $$05972 = $4;
  13331. }
  13332. }
  13333. HEAP32[5285] = 0;
  13334. HEAP32[(21148)>>2] = 0;
  13335. HEAP32[(21144)>>2] = 0;
  13336. $5 = (_malloc(73728)|0);
  13337. HEAP32[(21200)>>2] = $5;
  13338. $6 = (_malloc(24576)|0);
  13339. HEAP32[(21208)>>2] = $6;
  13340. HEAP32[(21204)>>2] = 0;
  13341. HEAP32[(21212)>>2] = 0;
  13342. _memset(($5|0),0,73728)|0;
  13343. $$05770 = 0;
  13344. while(1) {
  13345. $7 = HEAP32[(21208)>>2]|0;
  13346. $8 = (($7) + ($$05770)|0);
  13347. HEAP8[$8>>0] = 0;
  13348. $9 = (($$05770) + 1)|0;
  13349. $exitcond78 = ($9|0)==(24576);
  13350. if ($exitcond78) {
  13351. break;
  13352. } else {
  13353. $$05770 = $9;
  13354. }
  13355. }
  13356. HEAP32[5297] = 0;
  13357. HEAP32[(21196)>>2] = 0;
  13358. HEAP32[(21192)>>2] = 0;
  13359. $10 = (_malloc(49152)|0);
  13360. HEAP32[(21248)>>2] = $10;
  13361. $11 = (_malloc(32768)|0);
  13362. HEAP32[(21252)>>2] = $11;
  13363. $12 = (_malloc(16384)|0);
  13364. HEAP32[(21256)>>2] = $12;
  13365. $13 = (_malloc(12288)|0);
  13366. HEAP32[(21260)>>2] = $13;
  13367. $14 = HEAP32[(21248)>>2]|0;
  13368. _memset(($14|0),0,49152)|0;
  13369. $15 = HEAP32[(21252)>>2]|0;
  13370. _memset(($15|0),0,32768)|0;
  13371. $$05467 = 0;
  13372. while(1) {
  13373. $17 = HEAP32[(21256)>>2]|0;
  13374. $18 = (($17) + ($$05467)|0);
  13375. HEAP8[$18>>0] = 0;
  13376. $19 = (($$05467) + 1)|0;
  13377. $exitcond75 = ($19|0)==(16384);
  13378. if ($exitcond75) {
  13379. break;
  13380. } else {
  13381. $$05467 = $19;
  13382. }
  13383. }
  13384. $16 = HEAP32[(21260)>>2]|0;
  13385. $$05365 = 0;$$066 = 0;
  13386. while(1) {
  13387. $22 = $$05365 << 2;
  13388. $23 = $22&65535;
  13389. $24 = (($16) + ($$066<<1)|0);
  13390. HEAP16[$24>>1] = $23;
  13391. $25 = $22 | 1;
  13392. $26 = $25&65535;
  13393. $27 = $$066 | 1;
  13394. $28 = (($16) + ($27<<1)|0);
  13395. HEAP16[$28>>1] = $26;
  13396. $29 = $22 | 2;
  13397. $30 = $29&65535;
  13398. $31 = (($$066) + 2)|0;
  13399. $32 = (($16) + ($31<<1)|0);
  13400. HEAP16[$32>>1] = $30;
  13401. $33 = (($$066) + 3)|0;
  13402. $34 = (($16) + ($33<<1)|0);
  13403. HEAP16[$34>>1] = $23;
  13404. $35 = (($$066) + 4)|0;
  13405. $36 = (($16) + ($35<<1)|0);
  13406. HEAP16[$36>>1] = $30;
  13407. $37 = $22 | 3;
  13408. $38 = $37&65535;
  13409. $39 = (($$066) + 5)|0;
  13410. $40 = (($16) + ($39<<1)|0);
  13411. HEAP16[$40>>1] = $38;
  13412. $41 = (($$05365) + 1)|0;
  13413. $42 = (($$066) + 6)|0;
  13414. $exitcond = ($41|0)==(1024);
  13415. if ($exitcond) {
  13416. break;
  13417. } else {
  13418. $$05365 = $41;$$066 = $42;
  13419. }
  13420. }
  13421. HEAP32[5309] = 0;
  13422. HEAP32[(21240)>>2] = 0;
  13423. HEAP32[(21244)>>2] = 0;
  13424. _TraceLog(0,6825,$vararg_buffer);
  13425. $20 = HEAP32[4987]|0;
  13426. $21 = ($20|0)==(0);
  13427. if (!($21)) {
  13428. $43 = HEAP32[4988]|0;
  13429. FUNCTION_TABLE_vii[$43 & 63](1,(21168));
  13430. $44 = HEAP32[4989]|0;
  13431. $45 = HEAP32[(21168)>>2]|0;
  13432. FUNCTION_TABLE_vi[$44 & 31]($45);
  13433. }
  13434. _glGenBuffers(2,((21172)|0));
  13435. $46 = HEAP32[(21172)>>2]|0;
  13436. _glBindBuffer(34962,($46|0));
  13437. $47 = HEAP32[(21152)>>2]|0;
  13438. _glBufferData(34962,24576,($47|0),35048);
  13439. $48 = HEAP32[(20040)>>2]|0;
  13440. _glEnableVertexAttribArray(($48|0));
  13441. $49 = HEAP32[(20040)>>2]|0;
  13442. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  13443. _glGenBuffers(2,((21176)|0));
  13444. $50 = HEAP32[(21176)>>2]|0;
  13445. _glBindBuffer(34962,($50|0));
  13446. $51 = HEAP32[(21160)>>2]|0;
  13447. _glBufferData(34962,8192,($51|0),35048);
  13448. $52 = HEAP32[(20060)>>2]|0;
  13449. _glEnableVertexAttribArray(($52|0));
  13450. $53 = HEAP32[(20060)>>2]|0;
  13451. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  13452. $54 = HEAP32[4987]|0;
  13453. $55 = ($54|0)==(0);
  13454. if ($55) {
  13455. $57 = HEAP32[(21172)>>2]|0;
  13456. $58 = HEAP32[(21176)>>2]|0;
  13457. HEAP32[$vararg_buffer3>>2] = $57;
  13458. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  13459. HEAP32[$vararg_ptr6>>2] = $58;
  13460. _TraceLog(0,6963,$vararg_buffer3);
  13461. } else {
  13462. $56 = HEAP32[(21168)>>2]|0;
  13463. HEAP32[$vararg_buffer1>>2] = $56;
  13464. _TraceLog(0,6898,$vararg_buffer1);
  13465. }
  13466. $59 = HEAP32[4987]|0;
  13467. $60 = ($59|0)==(0);
  13468. if (!($60)) {
  13469. $61 = HEAP32[4988]|0;
  13470. FUNCTION_TABLE_vii[$61 & 63](1,(21216));
  13471. $62 = HEAP32[4989]|0;
  13472. $63 = HEAP32[(21216)>>2]|0;
  13473. FUNCTION_TABLE_vi[$62 & 31]($63);
  13474. }
  13475. _glGenBuffers(1,((21220)|0));
  13476. $64 = HEAP32[(21220)>>2]|0;
  13477. _glBindBuffer(34962,($64|0));
  13478. $65 = HEAP32[(21200)>>2]|0;
  13479. _glBufferData(34962,73728,($65|0),35048);
  13480. $66 = HEAP32[(20040)>>2]|0;
  13481. _glEnableVertexAttribArray(($66|0));
  13482. $67 = HEAP32[(20040)>>2]|0;
  13483. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  13484. _glGenBuffers(1,((21224)|0));
  13485. $68 = HEAP32[(21224)>>2]|0;
  13486. _glBindBuffer(34962,($68|0));
  13487. $69 = HEAP32[(21208)>>2]|0;
  13488. _glBufferData(34962,24576,($69|0),35048);
  13489. $70 = HEAP32[(20060)>>2]|0;
  13490. _glEnableVertexAttribArray(($70|0));
  13491. $71 = HEAP32[(20060)>>2]|0;
  13492. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  13493. $72 = HEAP32[4987]|0;
  13494. $73 = ($72|0)==(0);
  13495. if ($73) {
  13496. $75 = HEAP32[(21220)>>2]|0;
  13497. $76 = HEAP32[(21224)>>2]|0;
  13498. HEAP32[$vararg_buffer10>>2] = $75;
  13499. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  13500. HEAP32[$vararg_ptr13>>2] = $76;
  13501. _TraceLog(0,7109,$vararg_buffer10);
  13502. } else {
  13503. $74 = HEAP32[(21216)>>2]|0;
  13504. HEAP32[$vararg_buffer7>>2] = $74;
  13505. _TraceLog(0,7040,$vararg_buffer7);
  13506. }
  13507. $77 = HEAP32[4987]|0;
  13508. $78 = ($77|0)==(0);
  13509. if (!($78)) {
  13510. $79 = HEAP32[4988]|0;
  13511. FUNCTION_TABLE_vii[$79 & 63](1,(21264));
  13512. $80 = HEAP32[4989]|0;
  13513. $81 = HEAP32[(21264)>>2]|0;
  13514. FUNCTION_TABLE_vi[$80 & 31]($81);
  13515. }
  13516. _glGenBuffers(1,((21268)|0));
  13517. $82 = HEAP32[(21268)>>2]|0;
  13518. _glBindBuffer(34962,($82|0));
  13519. $83 = HEAP32[(21248)>>2]|0;
  13520. _glBufferData(34962,49152,($83|0),35048);
  13521. $84 = HEAP32[(20040)>>2]|0;
  13522. _glEnableVertexAttribArray(($84|0));
  13523. $85 = HEAP32[(20040)>>2]|0;
  13524. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  13525. _glGenBuffers(1,((21272)|0));
  13526. $86 = HEAP32[(21272)>>2]|0;
  13527. _glBindBuffer(34962,($86|0));
  13528. $87 = HEAP32[(21252)>>2]|0;
  13529. _glBufferData(34962,32768,($87|0),35048);
  13530. $88 = HEAP32[(20044)>>2]|0;
  13531. _glEnableVertexAttribArray(($88|0));
  13532. $89 = HEAP32[(20044)>>2]|0;
  13533. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  13534. _glGenBuffers(1,((21276)|0));
  13535. $90 = HEAP32[(21276)>>2]|0;
  13536. _glBindBuffer(34962,($90|0));
  13537. $91 = HEAP32[(21256)>>2]|0;
  13538. _glBufferData(34962,16384,($91|0),35048);
  13539. $92 = HEAP32[(20060)>>2]|0;
  13540. _glEnableVertexAttribArray(($92|0));
  13541. $93 = HEAP32[(20060)>>2]|0;
  13542. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  13543. _glGenBuffers(1,((21280)|0));
  13544. $94 = HEAP32[(21280)>>2]|0;
  13545. _glBindBuffer(34963,($94|0));
  13546. $95 = HEAP32[(21260)>>2]|0;
  13547. _glBufferData(34963,12288,($95|0),35044);
  13548. $96 = HEAP32[4987]|0;
  13549. $97 = ($96|0)==(0);
  13550. if ($97) {
  13551. $99 = HEAP32[(21268)>>2]|0;
  13552. $100 = HEAP32[(21272)>>2]|0;
  13553. $101 = HEAP32[(21276)>>2]|0;
  13554. $102 = HEAP32[(21280)>>2]|0;
  13555. HEAP32[$vararg_buffer17>>2] = $99;
  13556. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  13557. HEAP32[$vararg_ptr20>>2] = $100;
  13558. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  13559. HEAP32[$vararg_ptr21>>2] = $101;
  13560. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  13561. HEAP32[$vararg_ptr22>>2] = $102;
  13562. _TraceLog(0,7255,$vararg_buffer17);
  13563. } else {
  13564. $98 = HEAP32[(21264)>>2]|0;
  13565. HEAP32[$vararg_buffer14>>2] = $98;
  13566. _TraceLog(0,7190,$vararg_buffer14);
  13567. }
  13568. $103 = HEAP32[4987]|0;
  13569. $104 = ($103|0)==(0);
  13570. if ($104) {
  13571. STACKTOP = sp;return;
  13572. }
  13573. $105 = HEAP32[4989]|0;
  13574. FUNCTION_TABLE_vi[$105 & 31](0);
  13575. STACKTOP = sp;return;
  13576. }
  13577. function _LoadShaderProgram($0,$1) {
  13578. $0 = $0|0;
  13579. $1 = $1|0;
  13580. 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;
  13581. 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;
  13582. sp = STACKTOP;
  13583. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  13584. $vararg_buffer22 = sp + 64|0;
  13585. $vararg_buffer19 = sp + 56|0;
  13586. $vararg_buffer16 = sp + 48|0;
  13587. $vararg_buffer13 = sp + 40|0;
  13588. $vararg_buffer10 = sp + 32|0;
  13589. $vararg_buffer7 = sp + 24|0;
  13590. $vararg_buffer4 = sp + 16|0;
  13591. $vararg_buffer1 = sp + 8|0;
  13592. $vararg_buffer = sp;
  13593. $2 = sp + 80|0;
  13594. $3 = sp + 76|0;
  13595. $4 = sp + 72|0;
  13596. $5 = sp + 68|0;
  13597. $6 = (_glCreateShader(35633)|0);
  13598. $7 = (_glCreateShader(35632)|0);
  13599. HEAP32[$2>>2] = $0;
  13600. HEAP32[$3>>2] = $1;
  13601. _glShaderSource(($6|0),1,($2|0),(0|0));
  13602. _glShaderSource(($7|0),1,($3|0),(0|0));
  13603. HEAP32[$4>>2] = 0;
  13604. _glCompileShader(($6|0));
  13605. _glGetShaderiv(($6|0),35713,($4|0));
  13606. $8 = HEAP32[$4>>2]|0;
  13607. $9 = ($8|0)==(1);
  13608. if ($9) {
  13609. HEAP32[$vararg_buffer4>>2] = $6;
  13610. _TraceLog(0,8588,$vararg_buffer4);
  13611. } else {
  13612. HEAP32[$vararg_buffer>>2] = $6;
  13613. _TraceLog(2,8536,$vararg_buffer);
  13614. HEAP32[$vararg_buffer>>2] = 0;
  13615. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  13616. $10 = HEAP32[$vararg_buffer>>2]|0;
  13617. $11 = (_llvm_stacksave()|0);
  13618. $$alloca_mul = $10;
  13619. $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);;
  13620. $13 = HEAP32[$vararg_buffer>>2]|0;
  13621. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  13622. HEAP32[$vararg_buffer1>>2] = $12;
  13623. _TraceLog(0,8585,$vararg_buffer1);
  13624. _llvm_stackrestore(($11|0));
  13625. }
  13626. _glCompileShader(($7|0));
  13627. _glGetShaderiv(($7|0),35713,($4|0));
  13628. $14 = HEAP32[$4>>2]|0;
  13629. $15 = ($14|0)==(1);
  13630. if ($15) {
  13631. HEAP32[$vararg_buffer13>>2] = $7;
  13632. _TraceLog(0,8689,$vararg_buffer13);
  13633. } else {
  13634. HEAP32[$vararg_buffer7>>2] = $7;
  13635. _TraceLog(2,8638,$vararg_buffer7);
  13636. HEAP32[$vararg_buffer7>>2] = 0;
  13637. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  13638. $16 = HEAP32[$vararg_buffer7>>2]|0;
  13639. $17 = (_llvm_stacksave()|0);
  13640. $$alloca_mul34 = $16;
  13641. $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);;
  13642. $19 = HEAP32[$vararg_buffer7>>2]|0;
  13643. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  13644. HEAP32[$vararg_buffer10>>2] = $18;
  13645. _TraceLog(0,8585,$vararg_buffer10);
  13646. _llvm_stackrestore(($17|0));
  13647. }
  13648. $20 = (_glCreateProgram()|0);
  13649. _glAttachShader(($20|0),($6|0));
  13650. _glAttachShader(($20|0),($7|0));
  13651. _glBindAttribLocation(($20|0),0,(8380|0));
  13652. _glBindAttribLocation(($20|0),1,(8395|0));
  13653. _glBindAttribLocation(($20|0),2,(8426|0));
  13654. _glBindAttribLocation(($20|0),3,(8453|0));
  13655. _glBindAttribLocation(($20|0),4,(8439|0));
  13656. _glBindAttribLocation(($20|0),5,(8410|0));
  13657. _glLinkProgram(($20|0));
  13658. _glGetProgramiv(($20|0),35714,($4|0));
  13659. $21 = HEAP32[$4>>2]|0;
  13660. $22 = ($21|0)==(0);
  13661. if ($22) {
  13662. HEAP32[$vararg_buffer16>>2] = $20;
  13663. _TraceLog(2,8741,$vararg_buffer16);
  13664. HEAP32[$vararg_buffer16>>2] = 0;
  13665. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  13666. $23 = HEAP32[$vararg_buffer16>>2]|0;
  13667. $24 = (_llvm_stacksave()|0);
  13668. $$alloca_mul36 = $23;
  13669. $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);;
  13670. $26 = HEAP32[$vararg_buffer16>>2]|0;
  13671. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  13672. HEAP32[$vararg_buffer19>>2] = $25;
  13673. _TraceLog(0,8585,$vararg_buffer19);
  13674. _glDeleteProgram(($20|0));
  13675. _llvm_stackrestore(($24|0));
  13676. $$0 = 0;
  13677. _glDeleteShader(($6|0));
  13678. _glDeleteShader(($7|0));
  13679. STACKTOP = sp;return ($$0|0);
  13680. } else {
  13681. HEAP32[$vararg_buffer22>>2] = $20;
  13682. _TraceLog(0,8787,$vararg_buffer22);
  13683. $$0 = $20;
  13684. _glDeleteShader(($6|0));
  13685. _glDeleteShader(($7|0));
  13686. STACKTOP = sp;return ($$0|0);
  13687. }
  13688. return (0)|0;
  13689. }
  13690. function _LoadDefaultShaderLocations($0) {
  13691. $0 = $0|0;
  13692. 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;
  13693. 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;
  13694. var sp = 0;
  13695. sp = STACKTOP;
  13696. $1 = HEAP32[$0>>2]|0;
  13697. $2 = (_glGetAttribLocation(($1|0),(8380|0))|0);
  13698. $3 = ((($0)) + 4|0);
  13699. HEAP32[$3>>2] = $2;
  13700. $4 = HEAP32[$0>>2]|0;
  13701. $5 = (_glGetAttribLocation(($4|0),(8395|0))|0);
  13702. $6 = ((($0)) + 8|0);
  13703. HEAP32[$6>>2] = $5;
  13704. $7 = HEAP32[$0>>2]|0;
  13705. $8 = (_glGetAttribLocation(($7|0),(8410|0))|0);
  13706. $9 = ((($0)) + 12|0);
  13707. HEAP32[$9>>2] = $8;
  13708. $10 = HEAP32[$0>>2]|0;
  13709. $11 = (_glGetAttribLocation(($10|0),(8426|0))|0);
  13710. $12 = ((($0)) + 16|0);
  13711. HEAP32[$12>>2] = $11;
  13712. $13 = HEAP32[$0>>2]|0;
  13713. $14 = (_glGetAttribLocation(($13|0),(8439|0))|0);
  13714. $15 = ((($0)) + 20|0);
  13715. HEAP32[$15>>2] = $14;
  13716. $16 = HEAP32[$0>>2]|0;
  13717. $17 = (_glGetAttribLocation(($16|0),(8453|0))|0);
  13718. $18 = ((($0)) + 24|0);
  13719. HEAP32[$18>>2] = $17;
  13720. $19 = HEAP32[$0>>2]|0;
  13721. $20 = (_glGetUniformLocation(($19|0),(8465|0))|0);
  13722. $21 = ((($0)) + 28|0);
  13723. HEAP32[$21>>2] = $20;
  13724. $22 = HEAP32[$0>>2]|0;
  13725. $23 = (_glGetUniformLocation(($22|0),(8475|0))|0);
  13726. $24 = ((($0)) + 32|0);
  13727. HEAP32[$24>>2] = $23;
  13728. $25 = HEAP32[$0>>2]|0;
  13729. $26 = (_glGetUniformLocation(($25|0),(8486|0))|0);
  13730. $27 = ((($0)) + 36|0);
  13731. HEAP32[$27>>2] = $26;
  13732. $28 = HEAP32[$0>>2]|0;
  13733. $29 = (_glGetUniformLocation(($28|0),(8497|0))|0);
  13734. $30 = ((($0)) + 40|0);
  13735. HEAP32[$30>>2] = $29;
  13736. $31 = HEAP32[$0>>2]|0;
  13737. $32 = (_glGetUniformLocation(($31|0),(8509|0))|0);
  13738. $33 = ((($0)) + 44|0);
  13739. HEAP32[$33>>2] = $32;
  13740. $34 = HEAP32[$0>>2]|0;
  13741. $35 = (_glGetUniformLocation(($34|0),(8518|0))|0);
  13742. $36 = ((($0)) + 48|0);
  13743. HEAP32[$36>>2] = $35;
  13744. $37 = HEAP32[$0>>2]|0;
  13745. $38 = (_glGetUniformLocation(($37|0),(8527|0))|0);
  13746. $39 = ((($0)) + 52|0);
  13747. HEAP32[$39>>2] = $38;
  13748. return;
  13749. }
  13750. function _IsMouseButtonPressed($0) {
  13751. $0 = $0|0;
  13752. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  13753. sp = STACKTOP;
  13754. $1 = (22457 + ($0)|0);
  13755. $2 = HEAP8[$1>>0]|0;
  13756. $3 = (22460 + ($0)|0);
  13757. $4 = HEAP8[$3>>0]|0;
  13758. $5 = ($2<<24>>24)!=($4<<24>>24);
  13759. $6 = ($2<<24>>24)==(1);
  13760. $or$cond = $6 & $5;
  13761. $$0 = $or$cond&1;
  13762. return ($$0|0);
  13763. }
  13764. function _IsMouseButtonReleased($0) {
  13765. $0 = $0|0;
  13766. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  13767. sp = STACKTOP;
  13768. $1 = (22457 + ($0)|0);
  13769. $2 = HEAP8[$1>>0]|0;
  13770. $3 = (22460 + ($0)|0);
  13771. $4 = HEAP8[$3>>0]|0;
  13772. $5 = ($2<<24>>24)!=($4<<24>>24);
  13773. $6 = ($2<<24>>24)==(0);
  13774. $or$cond = $6 & $5;
  13775. $$0 = $or$cond&1;
  13776. return ($$0|0);
  13777. }
  13778. function _rlClearScreenBuffers() {
  13779. var label = 0, sp = 0;
  13780. sp = STACKTOP;
  13781. _glClear(16640);
  13782. return;
  13783. }
  13784. function _CloseWindow() {
  13785. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13786. sp = STACKTOP;
  13787. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13788. $vararg_buffer = sp;
  13789. _UnloadDefaultFont();
  13790. _rlglClose();
  13791. $0 = HEAP32[4906]|0;
  13792. _glfwDestroyWindow(($0|0));
  13793. _glfwTerminate();
  13794. _TraceLog(0,9099,$vararg_buffer);
  13795. STACKTOP = sp;return;
  13796. }
  13797. function _UnloadDefaultFont() {
  13798. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  13799. sp = STACKTOP;
  13800. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  13801. $$byval_copy = sp;
  13802. ;HEAP32[$$byval_copy>>2]=HEAP32[19664>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[19664+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[19664+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[19664+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[19664+16>>2]|0;
  13803. _UnloadTexture($$byval_copy);
  13804. $0 = HEAP32[(19692)>>2]|0;
  13805. _free($0);
  13806. STACKTOP = sp;return;
  13807. }
  13808. function _rlglClose() {
  13809. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13810. sp = STACKTOP;
  13811. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13812. $vararg_buffer = sp;
  13813. _UnloadDefaultShader();
  13814. _UnloadDefaultBuffers();
  13815. _glDeleteTextures(1,(19976|0));
  13816. $0 = HEAP32[4994]|0;
  13817. HEAP32[$vararg_buffer>>2] = $0;
  13818. _TraceLog(0,9126,$vararg_buffer);
  13819. $1 = HEAP32[5024]|0;
  13820. _free($1);
  13821. STACKTOP = sp;return;
  13822. }
  13823. function _UnloadDefaultShader() {
  13824. var $0 = 0, label = 0, sp = 0;
  13825. sp = STACKTOP;
  13826. _glUseProgram(0);
  13827. $0 = HEAP32[4995]|0;
  13828. _glDeleteProgram(($0|0));
  13829. return;
  13830. }
  13831. function _UnloadDefaultBuffers() {
  13832. 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;
  13833. sp = STACKTOP;
  13834. $0 = HEAP32[4987]|0;
  13835. $1 = ($0|0)==(0);
  13836. if (!($1)) {
  13837. $2 = HEAP32[4989]|0;
  13838. FUNCTION_TABLE_vi[$2 & 31](0);
  13839. }
  13840. _glDisableVertexAttribArray(0);
  13841. _glDisableVertexAttribArray(1);
  13842. _glDisableVertexAttribArray(2);
  13843. _glDisableVertexAttribArray(3);
  13844. _glBindBuffer(34962,0);
  13845. _glBindBuffer(34963,0);
  13846. _glDeleteBuffers(1,((21172)|0));
  13847. _glDeleteBuffers(1,((21176)|0));
  13848. _glDeleteBuffers(1,((21220)|0));
  13849. _glDeleteBuffers(1,((21224)|0));
  13850. _glDeleteBuffers(1,((21268)|0));
  13851. _glDeleteBuffers(1,((21272)|0));
  13852. _glDeleteBuffers(1,((21276)|0));
  13853. _glDeleteBuffers(1,((21280)|0));
  13854. $3 = HEAP32[4987]|0;
  13855. $4 = ($3|0)==(0);
  13856. if (!($4)) {
  13857. $5 = HEAP32[4990]|0;
  13858. FUNCTION_TABLE_vii[$5 & 63](1,(21168));
  13859. $6 = HEAP32[4990]|0;
  13860. FUNCTION_TABLE_vii[$6 & 63](1,(21216));
  13861. $7 = HEAP32[4990]|0;
  13862. FUNCTION_TABLE_vii[$7 & 63](1,(21264));
  13863. }
  13864. $8 = HEAP32[(21152)>>2]|0;
  13865. _free($8);
  13866. $9 = HEAP32[(21160)>>2]|0;
  13867. _free($9);
  13868. $10 = HEAP32[(21200)>>2]|0;
  13869. _free($10);
  13870. $11 = HEAP32[(21208)>>2]|0;
  13871. _free($11);
  13872. $12 = HEAP32[(21248)>>2]|0;
  13873. _free($12);
  13874. $13 = HEAP32[(21252)>>2]|0;
  13875. _free($13);
  13876. $14 = HEAP32[(21256)>>2]|0;
  13877. _free($14);
  13878. $15 = HEAP32[(21260)>>2]|0;
  13879. _free($15);
  13880. return;
  13881. }
  13882. function _UnloadTexture($0) {
  13883. $0 = $0|0;
  13884. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13885. sp = STACKTOP;
  13886. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13887. $vararg_buffer = sp;
  13888. $1 = HEAP32[$0>>2]|0;
  13889. $2 = ($1|0)==(0);
  13890. if ($2) {
  13891. STACKTOP = sp;return;
  13892. }
  13893. _rlDeleteTextures($1);
  13894. $3 = HEAP32[$0>>2]|0;
  13895. HEAP32[$vararg_buffer>>2] = $3;
  13896. _TraceLog(0,9191,$vararg_buffer);
  13897. STACKTOP = sp;return;
  13898. }
  13899. function _rlDeleteTextures($0) {
  13900. $0 = $0|0;
  13901. var $1 = 0, $2 = 0, label = 0, sp = 0;
  13902. sp = STACKTOP;
  13903. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13904. $1 = sp;
  13905. HEAP32[$1>>2] = $0;
  13906. $2 = ($0|0)==(0);
  13907. if (!($2)) {
  13908. _glDeleteTextures(1,($1|0));
  13909. }
  13910. STACKTOP = sp;return;
  13911. }
  13912. function _BeginDrawing() {
  13913. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13914. sp = STACKTOP;
  13915. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13916. $downscaleView$byval_copy = sp;
  13917. $0 = (+_GetTime());
  13918. HEAPF64[2429] = $0;
  13919. $1 = +HEAPF64[2412];
  13920. $2 = $0 - $1;
  13921. HEAPF64[2430] = $2;
  13922. HEAPF64[2412] = $0;
  13923. _rlClearScreenBuffers();
  13924. _rlLoadIdentity();
  13925. dest=$downscaleView$byval_copy; src=19720; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  13926. (_MatrixToFloat($downscaleView$byval_copy)|0);
  13927. _rlMultMatrixf(21292);
  13928. STACKTOP = sp;return;
  13929. }
  13930. function _MatrixToFloat($0) {
  13931. $0 = $0|0;
  13932. 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;
  13933. 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;
  13934. sp = STACKTOP;
  13935. $1 = HEAP32[$0>>2]|0;
  13936. HEAP32[5323] = $1;
  13937. $2 = ((($0)) + 4|0);
  13938. $3 = HEAP32[$2>>2]|0;
  13939. HEAP32[(21296)>>2] = $3;
  13940. $4 = ((($0)) + 8|0);
  13941. $5 = HEAP32[$4>>2]|0;
  13942. HEAP32[(21300)>>2] = $5;
  13943. $6 = ((($0)) + 12|0);
  13944. $7 = HEAP32[$6>>2]|0;
  13945. HEAP32[(21304)>>2] = $7;
  13946. $8 = ((($0)) + 16|0);
  13947. $9 = HEAP32[$8>>2]|0;
  13948. HEAP32[(21308)>>2] = $9;
  13949. $10 = ((($0)) + 20|0);
  13950. $11 = HEAP32[$10>>2]|0;
  13951. HEAP32[(21312)>>2] = $11;
  13952. $12 = ((($0)) + 24|0);
  13953. $13 = HEAP32[$12>>2]|0;
  13954. HEAP32[(21316)>>2] = $13;
  13955. $14 = ((($0)) + 28|0);
  13956. $15 = HEAP32[$14>>2]|0;
  13957. HEAP32[(21320)>>2] = $15;
  13958. $16 = ((($0)) + 32|0);
  13959. $17 = HEAP32[$16>>2]|0;
  13960. HEAP32[(21324)>>2] = $17;
  13961. $18 = ((($0)) + 36|0);
  13962. $19 = HEAP32[$18>>2]|0;
  13963. HEAP32[(21328)>>2] = $19;
  13964. $20 = ((($0)) + 40|0);
  13965. $21 = HEAP32[$20>>2]|0;
  13966. HEAP32[(21332)>>2] = $21;
  13967. $22 = ((($0)) + 44|0);
  13968. $23 = HEAP32[$22>>2]|0;
  13969. HEAP32[(21336)>>2] = $23;
  13970. $24 = ((($0)) + 48|0);
  13971. $25 = HEAP32[$24>>2]|0;
  13972. HEAP32[(21340)>>2] = $25;
  13973. $26 = ((($0)) + 52|0);
  13974. $27 = HEAP32[$26>>2]|0;
  13975. HEAP32[(21344)>>2] = $27;
  13976. $28 = ((($0)) + 56|0);
  13977. $29 = HEAP32[$28>>2]|0;
  13978. HEAP32[(21348)>>2] = $29;
  13979. $30 = ((($0)) + 60|0);
  13980. $31 = HEAP32[$30>>2]|0;
  13981. HEAP32[(21352)>>2] = $31;
  13982. return (21292|0);
  13983. }
  13984. function _rlMultMatrixf($0) {
  13985. $0 = $0|0;
  13986. 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;
  13987. 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;
  13988. 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;
  13989. sp = STACKTOP;
  13990. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  13991. $$byval_copy1 = sp + 192|0;
  13992. $$byval_copy = sp + 128|0;
  13993. $1 = sp + 64|0;
  13994. $2 = sp;
  13995. $3 = HEAP32[$0>>2]|0;
  13996. HEAP32[$1>>2] = $3;
  13997. $4 = ((($1)) + 4|0);
  13998. $5 = ((($0)) + 4|0);
  13999. $6 = HEAP32[$5>>2]|0;
  14000. HEAP32[$4>>2] = $6;
  14001. $7 = ((($1)) + 8|0);
  14002. $8 = ((($0)) + 8|0);
  14003. $9 = HEAP32[$8>>2]|0;
  14004. HEAP32[$7>>2] = $9;
  14005. $10 = ((($1)) + 12|0);
  14006. $11 = ((($0)) + 12|0);
  14007. $12 = HEAP32[$11>>2]|0;
  14008. HEAP32[$10>>2] = $12;
  14009. $13 = ((($1)) + 16|0);
  14010. $14 = ((($0)) + 16|0);
  14011. $15 = HEAP32[$14>>2]|0;
  14012. HEAP32[$13>>2] = $15;
  14013. $16 = ((($1)) + 20|0);
  14014. $17 = ((($0)) + 20|0);
  14015. $18 = HEAP32[$17>>2]|0;
  14016. HEAP32[$16>>2] = $18;
  14017. $19 = ((($1)) + 24|0);
  14018. $20 = ((($0)) + 24|0);
  14019. $21 = HEAP32[$20>>2]|0;
  14020. HEAP32[$19>>2] = $21;
  14021. $22 = ((($1)) + 28|0);
  14022. $23 = ((($0)) + 28|0);
  14023. $24 = HEAP32[$23>>2]|0;
  14024. HEAP32[$22>>2] = $24;
  14025. $25 = ((($1)) + 32|0);
  14026. $26 = ((($0)) + 32|0);
  14027. $27 = HEAP32[$26>>2]|0;
  14028. HEAP32[$25>>2] = $27;
  14029. $28 = ((($1)) + 36|0);
  14030. $29 = ((($0)) + 36|0);
  14031. $30 = HEAP32[$29>>2]|0;
  14032. HEAP32[$28>>2] = $30;
  14033. $31 = ((($1)) + 40|0);
  14034. $32 = ((($0)) + 40|0);
  14035. $33 = HEAP32[$32>>2]|0;
  14036. HEAP32[$31>>2] = $33;
  14037. $34 = ((($1)) + 44|0);
  14038. $35 = ((($0)) + 44|0);
  14039. $36 = HEAP32[$35>>2]|0;
  14040. HEAP32[$34>>2] = $36;
  14041. $37 = ((($1)) + 48|0);
  14042. $38 = ((($0)) + 48|0);
  14043. $39 = HEAP32[$38>>2]|0;
  14044. HEAP32[$37>>2] = $39;
  14045. $40 = ((($1)) + 52|0);
  14046. $41 = ((($0)) + 52|0);
  14047. $42 = HEAP32[$41>>2]|0;
  14048. HEAP32[$40>>2] = $42;
  14049. $43 = ((($1)) + 56|0);
  14050. $44 = ((($0)) + 56|0);
  14051. $45 = HEAP32[$44>>2]|0;
  14052. HEAP32[$43>>2] = $45;
  14053. $46 = ((($1)) + 60|0);
  14054. $47 = ((($0)) + 60|0);
  14055. $48 = HEAP32[$47>>2]|0;
  14056. HEAP32[$46>>2] = $48;
  14057. $49 = HEAP32[4953]|0;
  14058. 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));
  14059. 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));
  14060. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  14061. 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));
  14062. STACKTOP = sp;return;
  14063. }
  14064. function _EndDrawing() {
  14065. 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;
  14066. sp = STACKTOP;
  14067. _rlglDraw();
  14068. _SwapBuffers();
  14069. _PollInputEvents();
  14070. $0 = (+_GetTime());
  14071. HEAPF64[2429] = $0;
  14072. $1 = +HEAPF64[2412];
  14073. $2 = $0 - $1;
  14074. HEAPF64[2431] = $2;
  14075. HEAPF64[2412] = $0;
  14076. $3 = +HEAPF64[2430];
  14077. $4 = $2 + $3;
  14078. HEAPF64[2432] = $4;
  14079. $5 = +HEAPF64[2409];
  14080. $6 = $4 < $5;
  14081. if (!($6)) {
  14082. return;
  14083. }
  14084. $7 = $5 - $4;
  14085. $8 = $7 * 1000.0;
  14086. $9 = $8;
  14087. _Wait($9);
  14088. $10 = (+_GetTime());
  14089. HEAPF64[2429] = $10;
  14090. $11 = +HEAPF64[2412];
  14091. $12 = $10 - $11;
  14092. HEAPF64[2412] = $10;
  14093. $13 = +HEAPF64[2432];
  14094. $14 = $12 + $13;
  14095. HEAPF64[2432] = $14;
  14096. return;
  14097. }
  14098. function _rlglDraw() {
  14099. var label = 0, sp = 0;
  14100. sp = STACKTOP;
  14101. _UpdateDefaultBuffers();
  14102. _DrawDefaultBuffers();
  14103. return;
  14104. }
  14105. function _SwapBuffers() {
  14106. var $0 = 0, label = 0, sp = 0;
  14107. sp = STACKTOP;
  14108. $0 = HEAP32[4906]|0;
  14109. _glfwSwapBuffers(($0|0));
  14110. return;
  14111. }
  14112. function _PollInputEvents() {
  14113. 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;
  14114. 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;
  14115. 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;
  14116. sp = STACKTOP;
  14117. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  14118. $0 = sp + 1440|0;
  14119. $1 = sp + 1432|0;
  14120. $2 = sp;
  14121. _UpdateGestures();
  14122. HEAP32[741] = -1;
  14123. HEAP32[743] = -1;
  14124. HEAP32[5339] = 0;
  14125. $3 = HEAP32[4906]|0;
  14126. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  14127. $4 = +HEAPF64[$0>>3];
  14128. $5 = $4;
  14129. HEAPF32[4816] = $5;
  14130. $6 = +HEAPF64[$1>>3];
  14131. $7 = $6;
  14132. HEAPF32[(19268)>>2] = $7;
  14133. _memcpy((22975|0),(22463|0),512)|0;
  14134. ;HEAP8[22460>>0]=HEAP8[22457>>0]|0;HEAP8[22460+1>>0]=HEAP8[22457+1>>0]|0;HEAP8[22460+2>>0]=HEAP8[22457+2>>0]|0;
  14135. $8 = HEAP32[5322]|0;
  14136. HEAP32[4909] = $8;
  14137. HEAP32[5322] = 0;
  14138. $9 = (_emscripten_get_num_gamepads()|0);
  14139. $10 = ($9|0)>(0);
  14140. if (!($10)) {
  14141. STACKTOP = sp;return;
  14142. }
  14143. $11 = ((($2)) + 12|0);
  14144. $12 = ((($2)) + 8|0);
  14145. $$05160 = 0;
  14146. while(1) {
  14147. $scevgep = (23487 + ($$05160<<5)|0);
  14148. $scevgep67 = (23615 + ($$05160<<5)|0);
  14149. 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));
  14150. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  14151. $14 = ($13|0)==(0);
  14152. if ($14) {
  14153. $15 = HEAP32[$11>>2]|0;
  14154. $16 = ($15|0)>(0);
  14155. if ($16) {
  14156. $17 = HEAP32[$11>>2]|0;
  14157. $$04857 = 0;
  14158. while(1) {
  14159. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  14160. $22 = HEAP32[$21>>2]|0;
  14161. $23 = ($22|0)==(1);
  14162. $24 = ((23615 + ($$05160<<5)|0) + ($$04857)|0);
  14163. if ($23) {
  14164. HEAP8[$24>>0] = 1;
  14165. HEAP32[743] = $$04857;
  14166. } else {
  14167. HEAP8[$24>>0] = 0;
  14168. }
  14169. $25 = (($$04857) + 1)|0;
  14170. $26 = ($25|0)<($17|0);
  14171. $27 = ($25|0)<(32);
  14172. $28 = $27 & $26;
  14173. if ($28) {
  14174. $$04857 = $25;
  14175. } else {
  14176. break;
  14177. }
  14178. }
  14179. }
  14180. $18 = HEAP32[$12>>2]|0;
  14181. $19 = ($18|0)>(0);
  14182. if ($19) {
  14183. $20 = HEAP32[$12>>2]|0;
  14184. $$058 = 0;
  14185. while(1) {
  14186. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  14187. $30 = +HEAPF64[$29>>3];
  14188. $31 = $30;
  14189. $32 = ((21360 + ($$05160<<5)|0) + ($$058<<2)|0);
  14190. HEAPF32[$32>>2] = $31;
  14191. $33 = (($$058) + 1)|0;
  14192. $34 = ($33|0)<($20|0);
  14193. $35 = ($33|0)<(8);
  14194. $36 = $35 & $34;
  14195. if ($36) {
  14196. $$058 = $33;
  14197. } else {
  14198. $$lcssa = $20;
  14199. break;
  14200. }
  14201. }
  14202. } else {
  14203. $$lcssa = $18;
  14204. }
  14205. HEAP32[5339] = $$lcssa;
  14206. }
  14207. $37 = (($$05160) + 1)|0;
  14208. $38 = ($37|0)<($9|0);
  14209. $39 = ($37|0)<(4);
  14210. $40 = $38 & $39;
  14211. if ($40) {
  14212. $$05160 = $37;
  14213. } else {
  14214. break;
  14215. }
  14216. }
  14217. STACKTOP = sp;return;
  14218. }
  14219. function _Wait($0) {
  14220. $0 = +$0;
  14221. 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;
  14222. sp = STACKTOP;
  14223. $1 = (+_GetTime());
  14224. $2 = 0.0 - $1;
  14225. $3 = $0 / 1000.0;
  14226. $4 = $3;
  14227. $5 = $2 < $4;
  14228. if (!($5)) {
  14229. return;
  14230. }
  14231. while(1) {
  14232. $6 = (+_GetTime());
  14233. $7 = $6 - $1;
  14234. $8 = $7 < $4;
  14235. if (!($8)) {
  14236. break;
  14237. }
  14238. }
  14239. return;
  14240. }
  14241. function _UpdateDefaultBuffers() {
  14242. 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;
  14243. 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;
  14244. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  14245. sp = STACKTOP;
  14246. $0 = HEAP32[5285]|0;
  14247. $1 = ($0|0)>(0);
  14248. if ($1) {
  14249. $2 = HEAP32[4987]|0;
  14250. $3 = ($2|0)==(0);
  14251. if (!($3)) {
  14252. $4 = HEAP32[4989]|0;
  14253. $5 = HEAP32[(21168)>>2]|0;
  14254. FUNCTION_TABLE_vi[$4 & 31]($5);
  14255. }
  14256. $6 = HEAP32[(21172)>>2]|0;
  14257. _glBindBuffer(34962,($6|0));
  14258. $7 = HEAP32[5285]|0;
  14259. $8 = ($7*12)|0;
  14260. $9 = HEAP32[(21152)>>2]|0;
  14261. _glBufferSubData(34962,0,($8|0),($9|0));
  14262. $10 = HEAP32[(21176)>>2]|0;
  14263. _glBindBuffer(34962,($10|0));
  14264. $11 = HEAP32[(21148)>>2]|0;
  14265. $12 = $11 << 2;
  14266. $13 = HEAP32[(21160)>>2]|0;
  14267. _glBufferSubData(34962,0,($12|0),($13|0));
  14268. }
  14269. $14 = HEAP32[5297]|0;
  14270. $15 = ($14|0)>(0);
  14271. if ($15) {
  14272. $16 = HEAP32[4987]|0;
  14273. $17 = ($16|0)==(0);
  14274. if (!($17)) {
  14275. $18 = HEAP32[4989]|0;
  14276. $19 = HEAP32[(21216)>>2]|0;
  14277. FUNCTION_TABLE_vi[$18 & 31]($19);
  14278. }
  14279. $20 = HEAP32[(21220)>>2]|0;
  14280. _glBindBuffer(34962,($20|0));
  14281. $21 = HEAP32[5297]|0;
  14282. $22 = ($21*12)|0;
  14283. $23 = HEAP32[(21200)>>2]|0;
  14284. _glBufferSubData(34962,0,($22|0),($23|0));
  14285. $24 = HEAP32[(21224)>>2]|0;
  14286. _glBindBuffer(34962,($24|0));
  14287. $25 = HEAP32[(21196)>>2]|0;
  14288. $26 = $25 << 2;
  14289. $27 = HEAP32[(21208)>>2]|0;
  14290. _glBufferSubData(34962,0,($26|0),($27|0));
  14291. }
  14292. $28 = HEAP32[5309]|0;
  14293. $29 = ($28|0)>(0);
  14294. if ($29) {
  14295. $30 = HEAP32[4987]|0;
  14296. $31 = ($30|0)==(0);
  14297. if (!($31)) {
  14298. $32 = HEAP32[4989]|0;
  14299. $33 = HEAP32[(21264)>>2]|0;
  14300. FUNCTION_TABLE_vi[$32 & 31]($33);
  14301. }
  14302. $34 = HEAP32[(21268)>>2]|0;
  14303. _glBindBuffer(34962,($34|0));
  14304. $35 = HEAP32[5309]|0;
  14305. $36 = ($35*12)|0;
  14306. $37 = HEAP32[(21248)>>2]|0;
  14307. _glBufferSubData(34962,0,($36|0),($37|0));
  14308. $38 = HEAP32[(21272)>>2]|0;
  14309. _glBindBuffer(34962,($38|0));
  14310. $39 = HEAP32[5309]|0;
  14311. $40 = $39 << 3;
  14312. $41 = HEAP32[(21252)>>2]|0;
  14313. _glBufferSubData(34962,0,($40|0),($41|0));
  14314. $42 = HEAP32[(21276)>>2]|0;
  14315. _glBindBuffer(34962,($42|0));
  14316. $43 = HEAP32[5309]|0;
  14317. $44 = $43 << 2;
  14318. $45 = HEAP32[(21256)>>2]|0;
  14319. _glBufferSubData(34962,0,($44|0),($45|0));
  14320. }
  14321. $46 = HEAP32[4987]|0;
  14322. $47 = ($46|0)==(0);
  14323. if ($47) {
  14324. return;
  14325. }
  14326. $48 = HEAP32[4989]|0;
  14327. FUNCTION_TABLE_vi[$48 & 31](0);
  14328. return;
  14329. }
  14330. function _DrawDefaultBuffers() {
  14331. 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;
  14332. 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;
  14333. 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;
  14334. 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;
  14335. 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;
  14336. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14337. sp = STACKTOP;
  14338. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  14339. $$byval_copy2 = sp + 256|0;
  14340. $modelview$byval_copy = sp + 192|0;
  14341. $0 = sp + 128|0;
  14342. $1 = sp + 64|0;
  14343. $2 = sp;
  14344. dest=$0; src=19816; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14345. dest=$1; src=19880; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14346. $3 = HEAP32[5372]|0;
  14347. $4 = ($3|0)!=(0);
  14348. $$ = $4 ? 2 : 1;
  14349. $$02932 = 0;
  14350. while(1) {
  14351. if ($4) {
  14352. 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));
  14353. 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));
  14354. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  14355. }
  14356. $8 = HEAP32[5285]|0;
  14357. $9 = ($8|0)>(0);
  14358. $10 = HEAP32[5297]|0;
  14359. $11 = ($10|0)>(0);
  14360. $or$cond = $9 | $11;
  14361. $12 = HEAP32[5309]|0;
  14362. $13 = ($12|0)>(0);
  14363. $or$cond3 = $or$cond | $13;
  14364. if ($or$cond3) {
  14365. $14 = HEAP32[5009]|0;
  14366. _glUseProgram(($14|0));
  14367. dest=$modelview$byval_copy; src=19880; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14368. dest=$$byval_copy2; src=19816; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14369. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  14370. $15 = HEAP32[(20064)>>2]|0;
  14371. 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));
  14372. $16 = (_MatrixToFloat($$byval_copy2)|0);
  14373. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  14374. $17 = HEAP32[(20068)>>2]|0;
  14375. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  14376. $18 = HEAP32[(20080)>>2]|0;
  14377. _glUniform1i(($18|0),0);
  14378. }
  14379. $19 = HEAP32[5285]|0;
  14380. $20 = ($19|0)>(0);
  14381. if ($20) {
  14382. $21 = HEAP32[4994]|0;
  14383. _glBindTexture(3553,($21|0));
  14384. $22 = HEAP32[4987]|0;
  14385. $23 = ($22|0)==(0);
  14386. if ($23) {
  14387. $26 = HEAP32[(21172)>>2]|0;
  14388. _glBindBuffer(34962,($26|0));
  14389. $27 = HEAP32[(20040)>>2]|0;
  14390. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  14391. $28 = HEAP32[(20040)>>2]|0;
  14392. _glEnableVertexAttribArray(($28|0));
  14393. $29 = HEAP32[(21176)>>2]|0;
  14394. _glBindBuffer(34962,($29|0));
  14395. $30 = HEAP32[(20060)>>2]|0;
  14396. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  14397. $31 = HEAP32[(20060)>>2]|0;
  14398. _glEnableVertexAttribArray(($31|0));
  14399. } else {
  14400. $24 = HEAP32[4989]|0;
  14401. $25 = HEAP32[(21168)>>2]|0;
  14402. FUNCTION_TABLE_vi[$24 & 31]($25);
  14403. }
  14404. $32 = HEAP32[5285]|0;
  14405. _glDrawArrays(1,0,($32|0));
  14406. $33 = HEAP32[4987]|0;
  14407. $34 = ($33|0)==(0);
  14408. if ($34) {
  14409. _glBindBuffer(34962,0);
  14410. }
  14411. _glBindTexture(3553,0);
  14412. }
  14413. $35 = HEAP32[5297]|0;
  14414. $36 = ($35|0)>(0);
  14415. if ($36) {
  14416. $37 = HEAP32[4994]|0;
  14417. _glBindTexture(3553,($37|0));
  14418. $38 = HEAP32[4987]|0;
  14419. $39 = ($38|0)==(0);
  14420. if ($39) {
  14421. $42 = HEAP32[(21220)>>2]|0;
  14422. _glBindBuffer(34962,($42|0));
  14423. $43 = HEAP32[(20040)>>2]|0;
  14424. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  14425. $44 = HEAP32[(20040)>>2]|0;
  14426. _glEnableVertexAttribArray(($44|0));
  14427. $45 = HEAP32[(21224)>>2]|0;
  14428. _glBindBuffer(34962,($45|0));
  14429. $46 = HEAP32[(20060)>>2]|0;
  14430. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  14431. $47 = HEAP32[(20060)>>2]|0;
  14432. _glEnableVertexAttribArray(($47|0));
  14433. } else {
  14434. $40 = HEAP32[4989]|0;
  14435. $41 = HEAP32[(21216)>>2]|0;
  14436. FUNCTION_TABLE_vi[$40 & 31]($41);
  14437. }
  14438. $48 = HEAP32[5297]|0;
  14439. _glDrawArrays(4,0,($48|0));
  14440. $49 = HEAP32[4987]|0;
  14441. $50 = ($49|0)==(0);
  14442. if ($50) {
  14443. _glBindBuffer(34962,0);
  14444. }
  14445. _glBindTexture(3553,0);
  14446. }
  14447. $51 = HEAP32[5309]|0;
  14448. $52 = ($51|0)>(0);
  14449. if ($52) {
  14450. $53 = HEAP32[4987]|0;
  14451. $54 = ($53|0)==(0);
  14452. if ($54) {
  14453. $57 = HEAP32[(21268)>>2]|0;
  14454. _glBindBuffer(34962,($57|0));
  14455. $58 = HEAP32[(20040)>>2]|0;
  14456. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  14457. $59 = HEAP32[(20040)>>2]|0;
  14458. _glEnableVertexAttribArray(($59|0));
  14459. $60 = HEAP32[(21272)>>2]|0;
  14460. _glBindBuffer(34962,($60|0));
  14461. $61 = HEAP32[(20044)>>2]|0;
  14462. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  14463. $62 = HEAP32[(20044)>>2]|0;
  14464. _glEnableVertexAttribArray(($62|0));
  14465. $63 = HEAP32[(21276)>>2]|0;
  14466. _glBindBuffer(34962,($63|0));
  14467. $64 = HEAP32[(20060)>>2]|0;
  14468. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  14469. $65 = HEAP32[(20060)>>2]|0;
  14470. _glEnableVertexAttribArray(($65|0));
  14471. $66 = HEAP32[(21280)>>2]|0;
  14472. _glBindBuffer(34963,($66|0));
  14473. } else {
  14474. $55 = HEAP32[4989]|0;
  14475. $56 = HEAP32[(21264)>>2]|0;
  14476. FUNCTION_TABLE_vi[$55 & 31]($56);
  14477. }
  14478. $67 = HEAP32[5025]|0;
  14479. $68 = ($67|0)>(0);
  14480. if ($68) {
  14481. $$02830 = 0;$$031 = 0;
  14482. while(1) {
  14483. $71 = HEAP32[5024]|0;
  14484. $72 = (($71) + (($$031*144)|0)|0);
  14485. $73 = HEAP32[$72>>2]|0;
  14486. $74 = (($73|0) / 4)&-1;
  14487. $75 = ($74*6)|0;
  14488. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  14489. $77 = HEAP32[$76>>2]|0;
  14490. _glBindTexture(3553,($77|0));
  14491. $78 = $$02830 << 1;
  14492. $79 = $78;
  14493. _glDrawElements(4,($75|0),5123,($79|0));
  14494. $80 = HEAP32[5024]|0;
  14495. $81 = (($80) + (($$031*144)|0)|0);
  14496. $82 = HEAP32[$81>>2]|0;
  14497. $83 = (($82|0) / 4)&-1;
  14498. $84 = ($83*6)|0;
  14499. $85 = (($84) + ($$02830))|0;
  14500. $86 = (($$031) + 1)|0;
  14501. $87 = HEAP32[5025]|0;
  14502. $88 = ($86|0)<($87|0);
  14503. if ($88) {
  14504. $$02830 = $85;$$031 = $86;
  14505. } else {
  14506. break;
  14507. }
  14508. }
  14509. }
  14510. $69 = HEAP32[4987]|0;
  14511. $70 = ($69|0)==(0);
  14512. if ($70) {
  14513. _glBindBuffer(34962,0);
  14514. _glBindBuffer(34963,0);
  14515. }
  14516. _glBindTexture(3553,0);
  14517. }
  14518. $89 = HEAP32[4987]|0;
  14519. $90 = ($89|0)==(0);
  14520. if (!($90)) {
  14521. $91 = HEAP32[4989]|0;
  14522. FUNCTION_TABLE_vi[$91 & 31](0);
  14523. }
  14524. _glUseProgram(0);
  14525. $92 = (($$02932) + 1)|0;
  14526. $93 = ($92|0)<($$|0);
  14527. if ($93) {
  14528. $$02932 = $92;
  14529. } else {
  14530. break;
  14531. }
  14532. }
  14533. HEAP32[5025] = 1;
  14534. $5 = HEAP32[4994]|0;
  14535. $6 = HEAP32[5024]|0;
  14536. $7 = ((($6)) + 8|0);
  14537. HEAP32[$7>>2] = $5;
  14538. HEAP32[$6>>2] = 0;
  14539. HEAP32[5285] = 0;
  14540. HEAP32[(21148)>>2] = 0;
  14541. HEAP32[5297] = 0;
  14542. HEAP32[(21196)>>2] = 0;
  14543. HEAP32[5309] = 0;
  14544. HEAP32[(21240)>>2] = 0;
  14545. HEAP32[(21244)>>2] = 0;
  14546. HEAPF32[744] = -1.0;
  14547. dest=19816; 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));
  14548. dest=19880; 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));
  14549. STACKTOP = sp;return;
  14550. }
  14551. function _SetStereoView($0,$1,$2) {
  14552. $0 = $0|0;
  14553. $1 = $1|0;
  14554. $2 = $2|0;
  14555. 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;
  14556. sp = STACKTOP;
  14557. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14558. $$byval_copy3 = sp + 192|0;
  14559. $$byval_copy = sp + 64|0;
  14560. $3 = sp;
  14561. $4 = sp + 128|0;
  14562. 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));
  14563. $5 = HEAP32[5283]|0;
  14564. $6 = Math_imul($5, $0)|0;
  14565. $7 = (($6|0) / 2)&-1;
  14566. $8 = (($5|0) / 2)&-1;
  14567. $9 = HEAP32[5284]|0;
  14568. _rlViewport($7,0,$8,$9);
  14569. $10 = (21720 + ($0<<6)|0);
  14570. 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));
  14571. 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));
  14572. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  14573. $11 = (21592 + ($0<<6)|0);
  14574. 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));
  14575. 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));
  14576. _SetMatrixModelview($$byval_copy3);
  14577. 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));
  14578. _SetMatrixProjection($$byval_copy3);
  14579. STACKTOP = sp;return;
  14580. }
  14581. function _SetMatrixModelview($0) {
  14582. $0 = $0|0;
  14583. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14584. sp = STACKTOP;
  14585. dest=19880; 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));
  14586. return;
  14587. }
  14588. function _SetMatrixProjection($0) {
  14589. $0 = $0|0;
  14590. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14591. sp = STACKTOP;
  14592. dest=19816; 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));
  14593. return;
  14594. }
  14595. function _rlPushMatrix() {
  14596. 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;
  14597. sp = STACKTOP;
  14598. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14599. $vararg_buffer = sp;
  14600. $0 = HEAP32[5462]|0;
  14601. $1 = ($0|0)==(15);
  14602. if ($1) {
  14603. HEAP32[$vararg_buffer>>2] = 16;
  14604. _TraceLog(1,9241,$vararg_buffer);
  14605. }
  14606. $2 = HEAP32[5462]|0;
  14607. $3 = (20108 + ($2<<6)|0);
  14608. $4 = HEAP32[4953]|0;
  14609. 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));
  14610. _rlLoadIdentity();
  14611. $5 = HEAP32[5462]|0;
  14612. $6 = (($5) + 1)|0;
  14613. HEAP32[5462] = $6;
  14614. $7 = HEAP32[4986]|0;
  14615. $8 = ($7|0)==(5888);
  14616. if (!($8)) {
  14617. STACKTOP = sp;return;
  14618. }
  14619. HEAP32[5463] = 1;
  14620. STACKTOP = sp;return;
  14621. }
  14622. function _rlPopMatrix() {
  14623. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  14624. sp = STACKTOP;
  14625. $0 = HEAP32[5462]|0;
  14626. $1 = ($0|0)>(0);
  14627. if (!($1)) {
  14628. return;
  14629. }
  14630. $2 = HEAP32[5462]|0;
  14631. $3 = (($2) + -1)|0;
  14632. $4 = (20108 + ($3<<6)|0);
  14633. $5 = HEAP32[4953]|0;
  14634. _memmove(($5|0),($4|0),64)|0;
  14635. $6 = (($2) + -1)|0;
  14636. HEAP32[5462] = $6;
  14637. return;
  14638. }
  14639. function _IsFileExtension($0,$1) {
  14640. $0 = $0|0;
  14641. $1 = $1|0;
  14642. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  14643. sp = STACKTOP;
  14644. $2 = (_strrchr($0,46)|0);
  14645. $3 = ($2|0)==(0|0);
  14646. if ($3) {
  14647. return 0;
  14648. } else {
  14649. $4 = (_strcmp($2,$1)|0);
  14650. $5 = ($4|0)==(0);
  14651. $$ = $5&1;
  14652. return ($$|0);
  14653. }
  14654. return (0)|0;
  14655. }
  14656. function _rlTranslatef($0,$1,$2) {
  14657. $0 = +$0;
  14658. $1 = +$1;
  14659. $2 = +$2;
  14660. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14661. sp = STACKTOP;
  14662. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14663. $$byval_copy1 = sp + 192|0;
  14664. $$byval_copy = sp + 128|0;
  14665. $3 = sp + 64|0;
  14666. $4 = sp;
  14667. _MatrixTranslate($3,$0,$1,$2);
  14668. _MatrixTranspose($3);
  14669. $5 = HEAP32[4953]|0;
  14670. 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));
  14671. 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));
  14672. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  14673. 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));
  14674. STACKTOP = sp;return;
  14675. }
  14676. function _rlRotatef($0,$1,$2,$3) {
  14677. $0 = +$0;
  14678. $1 = +$1;
  14679. $2 = +$2;
  14680. $3 = +$3;
  14681. 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;
  14682. sp = STACKTOP;
  14683. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  14684. $$byval_copy2 = sp + 272|0;
  14685. $$byval_copy1 = sp + 208|0;
  14686. $4 = sp + 144|0;
  14687. $5 = sp + 64|0;
  14688. $6 = sp + 80|0;
  14689. $7 = sp;
  14690. _MatrixIdentity($4);
  14691. HEAPF32[$5>>2] = $1;
  14692. $8 = ((($5)) + 4|0);
  14693. HEAPF32[$8>>2] = $2;
  14694. $9 = ((($5)) + 8|0);
  14695. HEAPF32[$9>>2] = $3;
  14696. _VectorNormalize($5);
  14697. $10 = $0 * 0.01745329238474369;
  14698. ;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;
  14699. _MatrixRotate($6,$$byval_copy2,$10);
  14700. 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));
  14701. _MatrixTranspose($4);
  14702. $11 = HEAP32[4953]|0;
  14703. 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));
  14704. 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));
  14705. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  14706. 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));
  14707. STACKTOP = sp;return;
  14708. }
  14709. function _rlBegin($0) {
  14710. $0 = $0|0;
  14711. var label = 0, sp = 0;
  14712. sp = STACKTOP;
  14713. HEAP32[5026] = $0;
  14714. return;
  14715. }
  14716. function _rlEnd() {
  14717. 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;
  14718. 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;
  14719. 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;
  14720. 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;
  14721. 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;
  14722. 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;
  14723. 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;
  14724. 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;
  14725. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14726. sp = STACKTOP;
  14727. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14728. $$byval_copy = sp;
  14729. $0 = HEAP32[5463]|0;
  14730. $1 = ($0|0)==(0);
  14731. if (!($1)) {
  14732. $2 = HEAP32[5464]|0;
  14733. $3 = ($2|0)>(0);
  14734. if ($3) {
  14735. $$03956 = 0;
  14736. while(1) {
  14737. $6 = HEAP32[5023]|0;
  14738. $7 = (($6) + (($$03956*12)|0)|0);
  14739. $8 = HEAP32[4953]|0;
  14740. 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));
  14741. _VectorTransform($7,$$byval_copy);
  14742. $9 = (($$03956) + 1)|0;
  14743. $5 = HEAP32[5464]|0;
  14744. $10 = ($9|0)<($5|0);
  14745. if ($10) {
  14746. $$03956 = $9;
  14747. } else {
  14748. break;
  14749. }
  14750. }
  14751. HEAP32[5463] = 0;
  14752. $4 = ($5|0)>(0);
  14753. if ($4) {
  14754. $$04154 = 0;
  14755. while(1) {
  14756. $11 = HEAP32[5023]|0;
  14757. $12 = (($11) + (($$04154*12)|0)|0);
  14758. $13 = +HEAPF32[$12>>2];
  14759. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  14760. $15 = +HEAPF32[$14>>2];
  14761. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  14762. $17 = +HEAPF32[$16>>2];
  14763. _rlVertex3f($13,$15,$17);
  14764. $18 = (($$04154) + 1)|0;
  14765. $19 = HEAP32[5464]|0;
  14766. $20 = ($18|0)<($19|0);
  14767. if ($20) {
  14768. $$04154 = $18;
  14769. } else {
  14770. break;
  14771. }
  14772. }
  14773. }
  14774. } else {
  14775. HEAP32[5463] = 0;
  14776. }
  14777. HEAP32[5464] = 0;
  14778. }
  14779. $21 = HEAP32[5026]|0;
  14780. switch ($21|0) {
  14781. case 1: {
  14782. $22 = HEAP32[5285]|0;
  14783. $23 = HEAP32[(21148)>>2]|0;
  14784. $24 = ($22|0)==($23|0);
  14785. if ($24) {
  14786. $148 = +HEAPF32[744];
  14787. $149 = $148 + 4.9999998736893758E-5;
  14788. HEAPF32[744] = $149;
  14789. STACKTOP = sp;return;
  14790. }
  14791. $25 = (($22) - ($23))|0;
  14792. $26 = ($25|0)>(0);
  14793. if ($26) {
  14794. $$04347 = 0;
  14795. } else {
  14796. $148 = +HEAPF32[744];
  14797. $149 = $148 + 4.9999998736893758E-5;
  14798. HEAPF32[744] = $149;
  14799. STACKTOP = sp;return;
  14800. }
  14801. while(1) {
  14802. $27 = HEAP32[(21160)>>2]|0;
  14803. $28 = HEAP32[(21148)>>2]|0;
  14804. $29 = $28 << 2;
  14805. $30 = (($29) + -4)|0;
  14806. $31 = (($27) + ($30)|0);
  14807. $32 = HEAP8[$31>>0]|0;
  14808. $33 = (($27) + ($29)|0);
  14809. HEAP8[$33>>0] = $32;
  14810. $34 = HEAP32[(21160)>>2]|0;
  14811. $35 = HEAP32[(21148)>>2]|0;
  14812. $36 = $35 << 2;
  14813. $37 = (($36) + -3)|0;
  14814. $38 = (($34) + ($37)|0);
  14815. $39 = HEAP8[$38>>0]|0;
  14816. $40 = $36 | 1;
  14817. $41 = (($34) + ($40)|0);
  14818. HEAP8[$41>>0] = $39;
  14819. $42 = HEAP32[(21160)>>2]|0;
  14820. $43 = HEAP32[(21148)>>2]|0;
  14821. $44 = $43 << 2;
  14822. $45 = (($44) + -2)|0;
  14823. $46 = (($42) + ($45)|0);
  14824. $47 = HEAP8[$46>>0]|0;
  14825. $48 = $44 | 2;
  14826. $49 = (($42) + ($48)|0);
  14827. HEAP8[$49>>0] = $47;
  14828. $50 = HEAP32[(21160)>>2]|0;
  14829. $51 = HEAP32[(21148)>>2]|0;
  14830. $52 = $51 << 2;
  14831. $53 = (($52) + -1)|0;
  14832. $54 = (($50) + ($53)|0);
  14833. $55 = HEAP8[$54>>0]|0;
  14834. $56 = $52 | 3;
  14835. $57 = (($50) + ($56)|0);
  14836. HEAP8[$57>>0] = $55;
  14837. $58 = HEAP32[(21148)>>2]|0;
  14838. $59 = (($58) + 1)|0;
  14839. HEAP32[(21148)>>2] = $59;
  14840. $60 = (($$04347) + 1)|0;
  14841. $exitcond = ($60|0)==($25|0);
  14842. if ($exitcond) {
  14843. break;
  14844. } else {
  14845. $$04347 = $60;
  14846. }
  14847. }
  14848. $148 = +HEAPF32[744];
  14849. $149 = $148 + 4.9999998736893758E-5;
  14850. HEAPF32[744] = $149;
  14851. STACKTOP = sp;return;
  14852. break;
  14853. }
  14854. case 4: {
  14855. $61 = HEAP32[5297]|0;
  14856. $62 = HEAP32[(21196)>>2]|0;
  14857. $63 = ($61|0)==($62|0);
  14858. if ($63) {
  14859. $148 = +HEAPF32[744];
  14860. $149 = $148 + 4.9999998736893758E-5;
  14861. HEAPF32[744] = $149;
  14862. STACKTOP = sp;return;
  14863. }
  14864. $64 = (($61) - ($62))|0;
  14865. $65 = ($64|0)>(0);
  14866. if ($65) {
  14867. $$04248 = 0;
  14868. } else {
  14869. $148 = +HEAPF32[744];
  14870. $149 = $148 + 4.9999998736893758E-5;
  14871. HEAPF32[744] = $149;
  14872. STACKTOP = sp;return;
  14873. }
  14874. while(1) {
  14875. $66 = HEAP32[(21208)>>2]|0;
  14876. $67 = HEAP32[(21196)>>2]|0;
  14877. $68 = $67 << 2;
  14878. $69 = (($68) + -4)|0;
  14879. $70 = (($66) + ($69)|0);
  14880. $71 = HEAP8[$70>>0]|0;
  14881. $72 = (($66) + ($68)|0);
  14882. HEAP8[$72>>0] = $71;
  14883. $73 = HEAP32[(21208)>>2]|0;
  14884. $74 = HEAP32[(21196)>>2]|0;
  14885. $75 = $74 << 2;
  14886. $76 = (($75) + -3)|0;
  14887. $77 = (($73) + ($76)|0);
  14888. $78 = HEAP8[$77>>0]|0;
  14889. $79 = $75 | 1;
  14890. $80 = (($73) + ($79)|0);
  14891. HEAP8[$80>>0] = $78;
  14892. $81 = HEAP32[(21208)>>2]|0;
  14893. $82 = HEAP32[(21196)>>2]|0;
  14894. $83 = $82 << 2;
  14895. $84 = (($83) + -2)|0;
  14896. $85 = (($81) + ($84)|0);
  14897. $86 = HEAP8[$85>>0]|0;
  14898. $87 = $83 | 2;
  14899. $88 = (($81) + ($87)|0);
  14900. HEAP8[$88>>0] = $86;
  14901. $89 = HEAP32[(21208)>>2]|0;
  14902. $90 = HEAP32[(21196)>>2]|0;
  14903. $91 = $90 << 2;
  14904. $92 = (($91) + -1)|0;
  14905. $93 = (($89) + ($92)|0);
  14906. $94 = HEAP8[$93>>0]|0;
  14907. $95 = $91 | 3;
  14908. $96 = (($89) + ($95)|0);
  14909. HEAP8[$96>>0] = $94;
  14910. $97 = HEAP32[(21196)>>2]|0;
  14911. $98 = (($97) + 1)|0;
  14912. HEAP32[(21196)>>2] = $98;
  14913. $99 = (($$04248) + 1)|0;
  14914. $exitcond60 = ($99|0)==($64|0);
  14915. if ($exitcond60) {
  14916. break;
  14917. } else {
  14918. $$04248 = $99;
  14919. }
  14920. }
  14921. $148 = +HEAPF32[744];
  14922. $149 = $148 + 4.9999998736893758E-5;
  14923. HEAPF32[744] = $149;
  14924. STACKTOP = sp;return;
  14925. break;
  14926. }
  14927. case 7: {
  14928. $100 = HEAP32[5309]|0;
  14929. $101 = HEAP32[(21244)>>2]|0;
  14930. $102 = ($100|0)==($101|0);
  14931. if (!($102)) {
  14932. $103 = (($100) - ($101))|0;
  14933. $104 = ($103|0)>(0);
  14934. if ($104) {
  14935. $$04052 = 0;
  14936. while(1) {
  14937. $105 = HEAP32[(21256)>>2]|0;
  14938. $106 = HEAP32[(21244)>>2]|0;
  14939. $107 = $106 << 2;
  14940. $108 = (($107) + -4)|0;
  14941. $109 = (($105) + ($108)|0);
  14942. $110 = HEAP8[$109>>0]|0;
  14943. $111 = (($105) + ($107)|0);
  14944. HEAP8[$111>>0] = $110;
  14945. $112 = HEAP32[(21256)>>2]|0;
  14946. $113 = HEAP32[(21244)>>2]|0;
  14947. $114 = $113 << 2;
  14948. $115 = (($114) + -3)|0;
  14949. $116 = (($112) + ($115)|0);
  14950. $117 = HEAP8[$116>>0]|0;
  14951. $118 = $114 | 1;
  14952. $119 = (($112) + ($118)|0);
  14953. HEAP8[$119>>0] = $117;
  14954. $120 = HEAP32[(21256)>>2]|0;
  14955. $121 = HEAP32[(21244)>>2]|0;
  14956. $122 = $121 << 2;
  14957. $123 = (($122) + -2)|0;
  14958. $124 = (($120) + ($123)|0);
  14959. $125 = HEAP8[$124>>0]|0;
  14960. $126 = $122 | 2;
  14961. $127 = (($120) + ($126)|0);
  14962. HEAP8[$127>>0] = $125;
  14963. $128 = HEAP32[(21256)>>2]|0;
  14964. $129 = HEAP32[(21244)>>2]|0;
  14965. $130 = $129 << 2;
  14966. $131 = (($130) + -1)|0;
  14967. $132 = (($128) + ($131)|0);
  14968. $133 = HEAP8[$132>>0]|0;
  14969. $134 = $130 | 3;
  14970. $135 = (($128) + ($134)|0);
  14971. HEAP8[$135>>0] = $133;
  14972. $136 = HEAP32[(21244)>>2]|0;
  14973. $137 = (($136) + 1)|0;
  14974. HEAP32[(21244)>>2] = $137;
  14975. $138 = (($$04052) + 1)|0;
  14976. $exitcond63 = ($138|0)==($103|0);
  14977. if ($exitcond63) {
  14978. break;
  14979. } else {
  14980. $$04052 = $138;
  14981. }
  14982. }
  14983. }
  14984. }
  14985. $139 = HEAP32[5309]|0;
  14986. $140 = HEAP32[(21240)>>2]|0;
  14987. $141 = ($139|0)>($140|0);
  14988. if (!($141)) {
  14989. $148 = +HEAPF32[744];
  14990. $149 = $148 + 4.9999998736893758E-5;
  14991. HEAPF32[744] = $149;
  14992. STACKTOP = sp;return;
  14993. }
  14994. $142 = HEAP32[(21252)>>2]|0;
  14995. $$promoted = HEAP32[(21240)>>2]|0;
  14996. $143 = $$promoted << 1;
  14997. $scevgep = (($142) + ($143<<2)|0);
  14998. $144 = (($139) - ($140))|0;
  14999. $145 = $144 << 3;
  15000. _memset(($scevgep|0),0,($145|0))|0;
  15001. $146 = (($139) + ($$promoted))|0;
  15002. $147 = (($146) - ($140))|0;
  15003. HEAP32[(21240)>>2] = $147;
  15004. $148 = +HEAPF32[744];
  15005. $149 = $148 + 4.9999998736893758E-5;
  15006. HEAPF32[744] = $149;
  15007. STACKTOP = sp;return;
  15008. break;
  15009. }
  15010. default: {
  15011. $148 = +HEAPF32[744];
  15012. $149 = $148 + 4.9999998736893758E-5;
  15013. HEAPF32[744] = $149;
  15014. STACKTOP = sp;return;
  15015. }
  15016. }
  15017. }
  15018. function _rlVertex3f($0,$1,$2) {
  15019. $0 = +$0;
  15020. $1 = +$1;
  15021. $2 = +$2;
  15022. 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;
  15023. 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;
  15024. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  15025. sp = STACKTOP;
  15026. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15027. $vararg_buffer3 = sp + 16|0;
  15028. $vararg_buffer1 = sp + 8|0;
  15029. $vararg_buffer = sp;
  15030. $3 = HEAP32[5463]|0;
  15031. $4 = ($3|0)==(0);
  15032. if (!($4)) {
  15033. $5 = HEAP32[5023]|0;
  15034. $6 = HEAP32[5464]|0;
  15035. $7 = (($5) + (($6*12)|0)|0);
  15036. HEAPF32[$7>>2] = $0;
  15037. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  15038. HEAPF32[$8>>2] = $1;
  15039. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  15040. HEAPF32[$9>>2] = $2;
  15041. $10 = (($6) + 1)|0;
  15042. HEAP32[5464] = $10;
  15043. STACKTOP = sp;return;
  15044. }
  15045. $11 = HEAP32[5026]|0;
  15046. switch ($11|0) {
  15047. case 1: {
  15048. $12 = HEAP32[5285]|0;
  15049. $13 = ($12|0)<(2048);
  15050. if ($13) {
  15051. $14 = HEAP32[(21152)>>2]|0;
  15052. $15 = ($12*3)|0;
  15053. $16 = (($14) + ($15<<2)|0);
  15054. HEAPF32[$16>>2] = $0;
  15055. $17 = (($15) + 1)|0;
  15056. $18 = (($14) + ($17<<2)|0);
  15057. HEAPF32[$18>>2] = $1;
  15058. $19 = (($15) + 2)|0;
  15059. $20 = (($14) + ($19<<2)|0);
  15060. HEAPF32[$20>>2] = $2;
  15061. $21 = (($12) + 1)|0;
  15062. HEAP32[5285] = $21;
  15063. STACKTOP = sp;return;
  15064. } else {
  15065. _TraceLog(1,9279,$vararg_buffer);
  15066. STACKTOP = sp;return;
  15067. }
  15068. break;
  15069. }
  15070. case 4: {
  15071. $22 = HEAP32[5297]|0;
  15072. $23 = ($22|0)<(6144);
  15073. if ($23) {
  15074. $24 = HEAP32[(21200)>>2]|0;
  15075. $25 = ($22*3)|0;
  15076. $26 = (($24) + ($25<<2)|0);
  15077. HEAPF32[$26>>2] = $0;
  15078. $27 = (($25) + 1)|0;
  15079. $28 = (($24) + ($27<<2)|0);
  15080. HEAPF32[$28>>2] = $1;
  15081. $29 = (($25) + 2)|0;
  15082. $30 = (($24) + ($29<<2)|0);
  15083. HEAPF32[$30>>2] = $2;
  15084. $31 = (($22) + 1)|0;
  15085. HEAP32[5297] = $31;
  15086. STACKTOP = sp;return;
  15087. } else {
  15088. _TraceLog(1,9304,$vararg_buffer1);
  15089. STACKTOP = sp;return;
  15090. }
  15091. break;
  15092. }
  15093. case 7: {
  15094. $32 = HEAP32[5309]|0;
  15095. $33 = ($32|0)<(4096);
  15096. if ($33) {
  15097. $34 = HEAP32[(21248)>>2]|0;
  15098. $35 = ($32*3)|0;
  15099. $36 = (($34) + ($35<<2)|0);
  15100. HEAPF32[$36>>2] = $0;
  15101. $37 = (($35) + 1)|0;
  15102. $38 = (($34) + ($37<<2)|0);
  15103. HEAPF32[$38>>2] = $1;
  15104. $39 = (($35) + 2)|0;
  15105. $40 = (($34) + ($39<<2)|0);
  15106. HEAPF32[$40>>2] = $2;
  15107. $41 = (($32) + 1)|0;
  15108. HEAP32[5309] = $41;
  15109. $42 = HEAP32[5024]|0;
  15110. $43 = HEAP32[5025]|0;
  15111. $44 = (($43) + -1)|0;
  15112. $45 = (($42) + (($44*144)|0)|0);
  15113. $46 = HEAP32[$45>>2]|0;
  15114. $47 = (($46) + 1)|0;
  15115. HEAP32[$45>>2] = $47;
  15116. STACKTOP = sp;return;
  15117. } else {
  15118. _TraceLog(1,9333,$vararg_buffer3);
  15119. STACKTOP = sp;return;
  15120. }
  15121. break;
  15122. }
  15123. default: {
  15124. STACKTOP = sp;return;
  15125. }
  15126. }
  15127. }
  15128. function _rlVertex2f($0,$1) {
  15129. $0 = +$0;
  15130. $1 = +$1;
  15131. var $2 = 0.0, label = 0, sp = 0;
  15132. sp = STACKTOP;
  15133. $2 = +HEAPF32[744];
  15134. _rlVertex3f($0,$1,$2);
  15135. return;
  15136. }
  15137. function _rlTexCoord2f($0,$1) {
  15138. $0 = +$0;
  15139. $1 = +$1;
  15140. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15141. sp = STACKTOP;
  15142. $2 = HEAP32[5026]|0;
  15143. $3 = ($2|0)==(7);
  15144. if (!($3)) {
  15145. return;
  15146. }
  15147. $4 = HEAP32[(21252)>>2]|0;
  15148. $5 = HEAP32[(21240)>>2]|0;
  15149. $6 = $5 << 1;
  15150. $7 = (($4) + ($6<<2)|0);
  15151. HEAPF32[$7>>2] = $0;
  15152. $8 = $6 | 1;
  15153. $9 = (($4) + ($8<<2)|0);
  15154. HEAPF32[$9>>2] = $1;
  15155. $10 = (($5) + 1)|0;
  15156. HEAP32[(21240)>>2] = $10;
  15157. return;
  15158. }
  15159. function _rlNormal3f($0,$1,$2) {
  15160. $0 = +$0;
  15161. $1 = +$1;
  15162. $2 = +$2;
  15163. var label = 0, sp = 0;
  15164. sp = STACKTOP;
  15165. return;
  15166. }
  15167. function _rlColor4ub($0,$1,$2,$3) {
  15168. $0 = $0|0;
  15169. $1 = $1|0;
  15170. $2 = $2|0;
  15171. $3 = $3|0;
  15172. 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;
  15173. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15174. sp = STACKTOP;
  15175. $4 = HEAP32[5026]|0;
  15176. switch ($4|0) {
  15177. case 1: {
  15178. $$sink37 = (21148);$$sink38 = (21160);
  15179. break;
  15180. }
  15181. case 4: {
  15182. $$sink37 = (21196);$$sink38 = (21208);
  15183. break;
  15184. }
  15185. case 7: {
  15186. $$sink37 = (21244);$$sink38 = (21256);
  15187. break;
  15188. }
  15189. default: {
  15190. return;
  15191. }
  15192. }
  15193. $5 = HEAP32[$$sink38>>2]|0;
  15194. $6 = HEAP32[$$sink37>>2]|0;
  15195. $7 = $6 << 2;
  15196. $8 = (($5) + ($7)|0);
  15197. HEAP8[$8>>0] = $0;
  15198. $9 = HEAP32[$$sink38>>2]|0;
  15199. $10 = HEAP32[$$sink37>>2]|0;
  15200. $11 = $10 << 2;
  15201. $12 = $11 | 1;
  15202. $13 = (($9) + ($12)|0);
  15203. HEAP8[$13>>0] = $1;
  15204. $14 = HEAP32[$$sink38>>2]|0;
  15205. $15 = HEAP32[$$sink37>>2]|0;
  15206. $16 = $15 << 2;
  15207. $17 = $16 | 2;
  15208. $18 = (($14) + ($17)|0);
  15209. HEAP8[$18>>0] = $2;
  15210. $19 = HEAP32[$$sink38>>2]|0;
  15211. $20 = HEAP32[$$sink37>>2]|0;
  15212. $21 = $20 << 2;
  15213. $22 = $21 | 3;
  15214. $23 = (($19) + ($22)|0);
  15215. HEAP8[$23>>0] = $3;
  15216. $24 = HEAP32[$$sink37>>2]|0;
  15217. $25 = (($24) + 1)|0;
  15218. HEAP32[$$sink37>>2] = $25;
  15219. return;
  15220. }
  15221. function _rlEnableTexture($0) {
  15222. $0 = $0|0;
  15223. 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;
  15224. sp = STACKTOP;
  15225. $1 = HEAP32[5024]|0;
  15226. $2 = HEAP32[5025]|0;
  15227. $3 = (($2) + -1)|0;
  15228. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  15229. $5 = HEAP32[$4>>2]|0;
  15230. $6 = ($5|0)==($0|0);
  15231. if ($6) {
  15232. return;
  15233. }
  15234. $7 = (($1) + (($3*144)|0)|0);
  15235. $8 = HEAP32[$7>>2]|0;
  15236. $9 = ($8|0)>(0);
  15237. if ($9) {
  15238. $10 = (($2) + 1)|0;
  15239. HEAP32[5025] = $10;
  15240. }
  15241. $11 = HEAP32[5025]|0;
  15242. $12 = (($11) + -1)|0;
  15243. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  15244. HEAP32[$13>>2] = $0;
  15245. $14 = (($1) + (($12*144)|0)|0);
  15246. HEAP32[$14>>2] = 0;
  15247. return;
  15248. }
  15249. function _rlDisableTexture() {
  15250. var $0 = 0, $1 = 0, label = 0, sp = 0;
  15251. sp = STACKTOP;
  15252. $0 = HEAP32[5309]|0;
  15253. $1 = ($0|0)>(4095);
  15254. if (!($1)) {
  15255. return;
  15256. }
  15257. _rlglDraw();
  15258. return;
  15259. }
  15260. function _rlTextureParameters($0,$1,$2) {
  15261. $0 = $0|0;
  15262. $1 = $1|0;
  15263. $2 = $2|0;
  15264. 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;
  15265. sp = STACKTOP;
  15266. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15267. $vararg_buffer4 = sp + 24|0;
  15268. $vararg_buffer1 = sp + 8|0;
  15269. $vararg_buffer = sp;
  15270. _glBindTexture(3553,($0|0));
  15271. L1: do {
  15272. switch ($1|0) {
  15273. case 10243: case 10242: {
  15274. $3 = ($2|0)!=(34626);
  15275. $4 = HEAP32[4993]|0;
  15276. $5 = ($4|0)!=(0);
  15277. $or$cond = $3 | $5;
  15278. if ($or$cond) {
  15279. _glTexParameteri(3553,($1|0),($2|0));
  15280. break L1;
  15281. } else {
  15282. _TraceLog(2,9358,$vararg_buffer);
  15283. break L1;
  15284. }
  15285. break;
  15286. }
  15287. case 10241: case 10240: {
  15288. _glTexParameteri(3553,($1|0),($2|0));
  15289. break;
  15290. }
  15291. case 12288: {
  15292. $6 = (+($2|0));
  15293. $7 = +HEAPF32[4992];
  15294. $8 = !($6 <= $7);
  15295. if (!($8)) {
  15296. _glTexParameterf(3553,34046,(+$6));
  15297. break L1;
  15298. }
  15299. $9 = $7 > 0.0;
  15300. if ($9) {
  15301. $10 = $7;
  15302. HEAP32[$vararg_buffer1>>2] = $0;
  15303. $vararg_ptr3 = ((($vararg_buffer1)) + 8|0);
  15304. HEAPF64[$vararg_ptr3>>3] = $10;
  15305. _TraceLog(2,9395,$vararg_buffer1);
  15306. _glTexParameterf(3553,34046,(+$6));
  15307. break L1;
  15308. } else {
  15309. _TraceLog(2,9457,$vararg_buffer4);
  15310. break L1;
  15311. }
  15312. break;
  15313. }
  15314. default: {
  15315. }
  15316. }
  15317. } while(0);
  15318. _glBindTexture(3553,0);
  15319. STACKTOP = sp;return;
  15320. }
  15321. function _stbi__err($0) {
  15322. $0 = $0|0;
  15323. var label = 0, sp = 0;
  15324. sp = STACKTOP;
  15325. HEAP32[5465] = $0;
  15326. return;
  15327. }
  15328. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  15329. $0 = $0|0;
  15330. $1 = $1|0;
  15331. $2 = $2|0;
  15332. $3 = $3|0;
  15333. $4 = $4|0;
  15334. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15335. sp = STACKTOP;
  15336. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  15337. $5 = sp;
  15338. _stbi__start_file($5,$0);
  15339. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  15340. $7 = ($6|0)==(0|0);
  15341. if ($7) {
  15342. STACKTOP = sp;return ($6|0);
  15343. }
  15344. $8 = ((($5)) + 172|0);
  15345. $9 = HEAP32[$8>>2]|0;
  15346. $10 = ((($5)) + 168|0);
  15347. $11 = HEAP32[$10>>2]|0;
  15348. $12 = (($11) - ($9))|0;
  15349. (_fseek($0,$12,1)|0);
  15350. STACKTOP = sp;return ($6|0);
  15351. }
  15352. function _stbi__start_file($0,$1) {
  15353. $0 = $0|0;
  15354. $1 = $1|0;
  15355. var label = 0, sp = 0;
  15356. sp = STACKTOP;
  15357. _stbi__start_callbacks($0,3092,$1);
  15358. return;
  15359. }
  15360. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  15361. $0 = $0|0;
  15362. $1 = $1|0;
  15363. $2 = $2|0;
  15364. $3 = $3|0;
  15365. $4 = $4|0;
  15366. 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;
  15367. 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;
  15368. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  15369. sp = STACKTOP;
  15370. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15371. $5 = sp;
  15372. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  15373. $7 = ($6|0)==(0|0);
  15374. if ($7) {
  15375. $$0 = 0;
  15376. STACKTOP = sp;return ($$0|0);
  15377. }
  15378. $8 = HEAP32[$5>>2]|0;
  15379. switch ($8|0) {
  15380. case 8: {
  15381. $$070 = $6;
  15382. break;
  15383. }
  15384. case 16: {
  15385. label = 4;
  15386. break;
  15387. }
  15388. default: {
  15389. ___assert_fail((9493|0),(9519|0),1041,(9542|0));
  15390. // unreachable;
  15391. }
  15392. }
  15393. if ((label|0) == 4) {
  15394. $9 = HEAP32[$1>>2]|0;
  15395. $10 = HEAP32[$2>>2]|0;
  15396. $11 = ($4|0)==(0);
  15397. if ($11) {
  15398. $12 = HEAP32[$3>>2]|0;
  15399. $13 = $12;
  15400. } else {
  15401. $13 = $4;
  15402. }
  15403. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  15404. HEAP32[$5>>2] = 8;
  15405. $$070 = $14;
  15406. }
  15407. $15 = HEAP32[5466]|0;
  15408. $16 = ($15|0)==(0);
  15409. if ($16) {
  15410. $$0 = $$070;
  15411. STACKTOP = sp;return ($$0|0);
  15412. }
  15413. $17 = HEAP32[$1>>2]|0;
  15414. $18 = HEAP32[$2>>2]|0;
  15415. $19 = ($4|0)==(0);
  15416. if ($19) {
  15417. $20 = HEAP32[$3>>2]|0;
  15418. $25 = $20;
  15419. } else {
  15420. $25 = $4;
  15421. }
  15422. $21 = $18 >> 1;
  15423. $22 = ($21|0)>(0);
  15424. if (!($22)) {
  15425. $$0 = $$070;
  15426. STACKTOP = sp;return ($$0|0);
  15427. }
  15428. $23 = ($17|0)>(0);
  15429. $24 = ($25|0)>(0);
  15430. $26 = (($18) + -1)|0;
  15431. $$07378 = 0;
  15432. while(1) {
  15433. if ($23) {
  15434. $27 = Math_imul($$07378, $17)|0;
  15435. $28 = (($26) - ($$07378))|0;
  15436. $29 = Math_imul($28, $17)|0;
  15437. $$07276 = 0;
  15438. while(1) {
  15439. if ($24) {
  15440. $30 = (($$07276) + ($27))|0;
  15441. $31 = Math_imul($30, $25)|0;
  15442. $32 = (($$07276) + ($29))|0;
  15443. $33 = Math_imul($32, $25)|0;
  15444. $$07175 = 0;
  15445. while(1) {
  15446. $34 = (($$07175) + ($31))|0;
  15447. $35 = (($$070) + ($34)|0);
  15448. $36 = HEAP8[$35>>0]|0;
  15449. $37 = (($$07175) + ($33))|0;
  15450. $38 = (($$070) + ($37)|0);
  15451. $39 = HEAP8[$38>>0]|0;
  15452. HEAP8[$35>>0] = $39;
  15453. HEAP8[$38>>0] = $36;
  15454. $40 = (($$07175) + 1)|0;
  15455. $exitcond = ($40|0)==($25|0);
  15456. if ($exitcond) {
  15457. break;
  15458. } else {
  15459. $$07175 = $40;
  15460. }
  15461. }
  15462. }
  15463. $41 = (($$07276) + 1)|0;
  15464. $exitcond79 = ($41|0)==($17|0);
  15465. if ($exitcond79) {
  15466. break;
  15467. } else {
  15468. $$07276 = $41;
  15469. }
  15470. }
  15471. }
  15472. $42 = (($$07378) + 1)|0;
  15473. $exitcond80 = ($42|0)==($21|0);
  15474. if ($exitcond80) {
  15475. $$0 = $$070;
  15476. break;
  15477. } else {
  15478. $$07378 = $42;
  15479. }
  15480. }
  15481. STACKTOP = sp;return ($$0|0);
  15482. }
  15483. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  15484. $0 = $0|0;
  15485. $1 = $1|0;
  15486. $2 = $2|0;
  15487. $3 = $3|0;
  15488. $4 = $4|0;
  15489. $5 = $5|0;
  15490. var $$0 = 0, $10 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15491. sp = STACKTOP;
  15492. HEAP32[$5>>2] = 8;
  15493. $6 = ((($5)) + 8|0);
  15494. HEAP32[$6>>2] = 0;
  15495. $7 = ((($5)) + 4|0);
  15496. HEAP32[$7>>2] = 0;
  15497. $8 = (_stbi__png_test($0)|0);
  15498. $9 = ($8|0)==(0);
  15499. if ($9) {
  15500. _stbi__err(9583);
  15501. $$0 = 0;
  15502. return ($$0|0);
  15503. } else {
  15504. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  15505. $$0 = $10;
  15506. return ($$0|0);
  15507. }
  15508. return (0)|0;
  15509. }
  15510. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  15511. $0 = $0|0;
  15512. $1 = $1|0;
  15513. $2 = $2|0;
  15514. $3 = $3|0;
  15515. 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;
  15516. sp = STACKTOP;
  15517. $4 = Math_imul($2, $1)|0;
  15518. $5 = Math_imul($4, $3)|0;
  15519. $6 = (_stbi__malloc($5)|0);
  15520. $7 = ($6|0)==(0|0);
  15521. if ($7) {
  15522. _stbi__err(9574);
  15523. $$0 = 0;
  15524. return ($$0|0);
  15525. }
  15526. $8 = ($5|0)>(0);
  15527. if ($8) {
  15528. $$01819 = 0;
  15529. while(1) {
  15530. $9 = (($0) + ($$01819<<1)|0);
  15531. $10 = HEAP16[$9>>1]|0;
  15532. $11 = ($10&65535) >>> 8;
  15533. $12 = $11&255;
  15534. $13 = (($6) + ($$01819)|0);
  15535. HEAP8[$13>>0] = $12;
  15536. $14 = (($$01819) + 1)|0;
  15537. $exitcond = ($14|0)==($5|0);
  15538. if ($exitcond) {
  15539. break;
  15540. } else {
  15541. $$01819 = $14;
  15542. }
  15543. }
  15544. }
  15545. _free($0);
  15546. $$0 = $6;
  15547. return ($$0|0);
  15548. }
  15549. function _stbi__malloc($0) {
  15550. $0 = $0|0;
  15551. var $1 = 0, label = 0, sp = 0;
  15552. sp = STACKTOP;
  15553. $1 = (_malloc($0)|0);
  15554. return ($1|0);
  15555. }
  15556. function _stbi__png_test($0) {
  15557. $0 = $0|0;
  15558. var $1 = 0, label = 0, sp = 0;
  15559. sp = STACKTOP;
  15560. $1 = (_stbi__check_png_header($0)|0);
  15561. _stbi__rewind($0);
  15562. return ($1|0);
  15563. }
  15564. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  15565. $0 = $0|0;
  15566. $1 = $1|0;
  15567. $2 = $2|0;
  15568. $3 = $3|0;
  15569. $4 = $4|0;
  15570. $5 = $5|0;
  15571. var $6 = 0, $7 = 0, label = 0, sp = 0;
  15572. sp = STACKTOP;
  15573. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15574. $6 = sp;
  15575. HEAP32[$6>>2] = $0;
  15576. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  15577. STACKTOP = sp;return ($7|0);
  15578. }
  15579. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  15580. $0 = $0|0;
  15581. $1 = $1|0;
  15582. $2 = $2|0;
  15583. $3 = $3|0;
  15584. $4 = $4|0;
  15585. $5 = $5|0;
  15586. 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;
  15587. 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;
  15588. var $9 = 0, label = 0, sp = 0;
  15589. sp = STACKTOP;
  15590. $6 = ($4>>>0)>(4);
  15591. if ($6) {
  15592. _stbi__err(9602);
  15593. $$045 = 0;
  15594. return ($$045|0);
  15595. }
  15596. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  15597. $8 = ($7|0)==(0);
  15598. if ($8) {
  15599. $$2 = 0;
  15600. } else {
  15601. $9 = ((($0)) + 16|0);
  15602. $10 = HEAP32[$9>>2]|0;
  15603. $11 = ($10|0)>(8);
  15604. $$ = $11 ? $10 : 8;
  15605. HEAP32[$5>>2] = $$;
  15606. $12 = ((($0)) + 12|0);
  15607. $13 = HEAP32[$12>>2]|0;
  15608. HEAP32[$12>>2] = 0;
  15609. $14 = ($4|0)==(0);
  15610. if ($14) {
  15611. $$1 = $13;
  15612. } else {
  15613. $15 = HEAP32[$0>>2]|0;
  15614. $16 = ((($15)) + 12|0);
  15615. $17 = HEAP32[$16>>2]|0;
  15616. $18 = ($17|0)==($4|0);
  15617. if ($18) {
  15618. $$1 = $13;
  15619. } else {
  15620. $19 = HEAP32[$5>>2]|0;
  15621. $20 = ($19|0)==(8);
  15622. $21 = ((($15)) + 4|0);
  15623. $22 = HEAP32[$21>>2]|0;
  15624. $23 = HEAP32[$15>>2]|0;
  15625. if ($20) {
  15626. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  15627. $$0 = $24;
  15628. } else {
  15629. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  15630. $$0 = $25;
  15631. }
  15632. $26 = HEAP32[$0>>2]|0;
  15633. $27 = ((($26)) + 12|0);
  15634. HEAP32[$27>>2] = $4;
  15635. $28 = ($$0|0)==(0|0);
  15636. if ($28) {
  15637. $$045 = 0;
  15638. return ($$045|0);
  15639. } else {
  15640. $$1 = $$0;
  15641. }
  15642. }
  15643. }
  15644. $29 = HEAP32[$0>>2]|0;
  15645. $30 = HEAP32[$29>>2]|0;
  15646. HEAP32[$1>>2] = $30;
  15647. $31 = ((($29)) + 4|0);
  15648. $32 = HEAP32[$31>>2]|0;
  15649. HEAP32[$2>>2] = $32;
  15650. $33 = ($3|0)==(0|0);
  15651. if ($33) {
  15652. $$2 = $$1;
  15653. } else {
  15654. $34 = ((($29)) + 8|0);
  15655. $35 = HEAP32[$34>>2]|0;
  15656. HEAP32[$3>>2] = $35;
  15657. $$2 = $$1;
  15658. }
  15659. }
  15660. $36 = ((($0)) + 12|0);
  15661. $37 = HEAP32[$36>>2]|0;
  15662. _free($37);
  15663. HEAP32[$36>>2] = 0;
  15664. $38 = ((($0)) + 8|0);
  15665. $39 = HEAP32[$38>>2]|0;
  15666. _free($39);
  15667. HEAP32[$38>>2] = 0;
  15668. $40 = ((($0)) + 4|0);
  15669. $41 = HEAP32[$40>>2]|0;
  15670. _free($41);
  15671. HEAP32[$40>>2] = 0;
  15672. $$045 = $$2;
  15673. return ($$045|0);
  15674. }
  15675. function _stbi__parse_png_file($0,$1,$2) {
  15676. $0 = $0|0;
  15677. $1 = $1|0;
  15678. $2 = $2|0;
  15679. 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;
  15680. 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;
  15681. 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;
  15682. 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;
  15683. 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;
  15684. 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;
  15685. 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;
  15686. 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;
  15687. 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;
  15688. 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;
  15689. 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;
  15690. 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;
  15691. 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;
  15692. sp = STACKTOP;
  15693. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  15694. $3 = sp + 32|0;
  15695. $4 = sp + 22|0;
  15696. $5 = sp + 16|0;
  15697. $6 = sp + 8|0;
  15698. $7 = sp;
  15699. $8 = HEAP32[$0>>2]|0;
  15700. $9 = ((($0)) + 8|0);
  15701. HEAP32[$9>>2] = 0;
  15702. $10 = ((($0)) + 4|0);
  15703. HEAP32[$10>>2] = 0;
  15704. $11 = ((($0)) + 12|0);
  15705. HEAP32[$11>>2] = 0;
  15706. $12 = (_stbi__check_png_header($8)|0);
  15707. $13 = ($12|0)==(0);
  15708. if ($13) {
  15709. $$7 = 0;
  15710. STACKTOP = sp;return ($$7|0);
  15711. }
  15712. $14 = ($1|0)==(1);
  15713. if ($14) {
  15714. $$7 = 1;
  15715. STACKTOP = sp;return ($$7|0);
  15716. }
  15717. $15 = ((($6)) + 4|0);
  15718. $16 = ((($8)) + 4|0);
  15719. $17 = ((($0)) + 16|0);
  15720. $18 = ((($8)) + 8|0);
  15721. $19 = ($1|0)==(2);
  15722. $20 = ((($8)) + 8|0);
  15723. $21 = ((($8)) + 8|0);
  15724. $22 = ((($0)) + 16|0);
  15725. $23 = ($1|0)==(2);
  15726. $24 = ($1|0)==(2);
  15727. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  15728. L7: while(1) {
  15729. _stbi__get_chunk_header($6,$8);
  15730. $25 = HEAP32[$15>>2]|0;
  15731. $switch$split2D = ($25|0)<(1229472850);
  15732. L9: do {
  15733. if ($switch$split2D) {
  15734. $switch$split52D = ($25|0)<(1229209940);
  15735. if ($switch$split52D) {
  15736. switch ($25|0) {
  15737. case 1130840649: {
  15738. break;
  15739. }
  15740. default: {
  15741. label = 103;
  15742. break L9;
  15743. }
  15744. }
  15745. $26 = HEAP32[$6>>2]|0;
  15746. _stbi__skip($8,$26);
  15747. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  15748. break;
  15749. }
  15750. $switch$split112D = ($25|0)<(1229278788);
  15751. if (!($switch$split112D)) {
  15752. switch ($25|0) {
  15753. case 1229278788: {
  15754. label = 85;
  15755. break L7;
  15756. break;
  15757. }
  15758. default: {
  15759. label = 103;
  15760. break L9;
  15761. }
  15762. }
  15763. }
  15764. switch ($25|0) {
  15765. case 1229209940: {
  15766. break;
  15767. }
  15768. default: {
  15769. label = 103;
  15770. break L9;
  15771. }
  15772. }
  15773. $130 = ($$0241|0)==(0);
  15774. if (!($130)) {
  15775. label = 70;
  15776. break L7;
  15777. }
  15778. $131 = ($$0206<<24>>24)==(0);
  15779. $132 = ($$0245|0)!=(0);
  15780. $or$cond = $132 | $131;
  15781. if (!($or$cond)) {
  15782. label = 72;
  15783. break L7;
  15784. }
  15785. if ($24) {
  15786. label = 74;
  15787. break L7;
  15788. }
  15789. $135 = HEAP32[$6>>2]|0;
  15790. $136 = (($135) + ($$0214))|0;
  15791. $137 = ($136|0)<($$0214|0);
  15792. if ($137) {
  15793. $$6$ph = 0;
  15794. break L7;
  15795. }
  15796. $138 = ($136>>>0)>($$0217>>>0);
  15797. if ($138) {
  15798. $139 = ($$0217|0)==(0);
  15799. $140 = ($135>>>0)>(4096);
  15800. $141 = $140 ? $135 : 4096;
  15801. $$$0217 = $139 ? $141 : $$0217;
  15802. $142 = HEAP32[$6>>2]|0;
  15803. $143 = (($142) + ($$0214))|0;
  15804. $$1218 = $$$0217;
  15805. while(1) {
  15806. $144 = ($143>>>0)>($$1218>>>0);
  15807. $145 = $$1218 << 1;
  15808. if ($144) {
  15809. $$1218 = $145;
  15810. } else {
  15811. break;
  15812. }
  15813. }
  15814. $146 = HEAP32[$10>>2]|0;
  15815. $147 = (_realloc($146,$$1218)|0);
  15816. $148 = ($147|0)==(0|0);
  15817. if ($148) {
  15818. label = 81;
  15819. break L7;
  15820. }
  15821. HEAP32[$10>>2] = $147;
  15822. $$2219 = $$1218;
  15823. } else {
  15824. $$2219 = $$0217;
  15825. }
  15826. $149 = HEAP32[$10>>2]|0;
  15827. $150 = (($149) + ($$0214)|0);
  15828. $151 = HEAP32[$6>>2]|0;
  15829. $152 = (_stbi__getn($8,$150,$151)|0);
  15830. $153 = ($152|0)==(0);
  15831. if ($153) {
  15832. label = 83;
  15833. break L7;
  15834. }
  15835. $154 = HEAP32[$6>>2]|0;
  15836. $155 = (($154) + ($$0214))|0;
  15837. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  15838. } else {
  15839. $switch$split82D = ($25|0)<(1347179589);
  15840. if ($switch$split82D) {
  15841. switch ($25|0) {
  15842. case 1229472850: {
  15843. break;
  15844. }
  15845. default: {
  15846. label = 103;
  15847. break L9;
  15848. }
  15849. }
  15850. $27 = ($$0241|0)==(0);
  15851. if ($27) {
  15852. label = 7;
  15853. break L7;
  15854. }
  15855. $28 = HEAP32[$6>>2]|0;
  15856. $29 = ($28|0)==(13);
  15857. if (!($29)) {
  15858. label = 9;
  15859. break L7;
  15860. }
  15861. $30 = (_stbi__get32be($8)|0);
  15862. HEAP32[$8>>2] = $30;
  15863. $31 = ($30>>>0)>(16777216);
  15864. if ($31) {
  15865. label = 11;
  15866. break L7;
  15867. }
  15868. $32 = (_stbi__get32be($8)|0);
  15869. HEAP32[$16>>2] = $32;
  15870. $33 = ($32>>>0)>(16777216);
  15871. if ($33) {
  15872. label = 13;
  15873. break L7;
  15874. }
  15875. $34 = (_stbi__get8($8)|0);
  15876. $35 = $34&255;
  15877. HEAP32[$17>>2] = $35;
  15878. switch ($34<<24>>24) {
  15879. case 16: case 8: case 4: case 2: case 1: {
  15880. break;
  15881. }
  15882. default: {
  15883. label = 15;
  15884. break L7;
  15885. }
  15886. }
  15887. $36 = (_stbi__get8($8)|0);
  15888. $37 = $36&255;
  15889. $38 = ($36&255)>(6);
  15890. if ($38) {
  15891. label = 17;
  15892. break L7;
  15893. }
  15894. $39 = ($36<<24>>24)==(3);
  15895. if ($39) {
  15896. $40 = HEAP32[$17>>2]|0;
  15897. $41 = ($40|0)==(16);
  15898. if ($41) {
  15899. label = 20;
  15900. break L7;
  15901. } else {
  15902. $$1207 = 3;
  15903. }
  15904. } else {
  15905. $42 = $37 & 1;
  15906. $43 = ($42|0)==(0);
  15907. if ($43) {
  15908. $$1207 = $$0206;
  15909. } else {
  15910. label = 22;
  15911. break L7;
  15912. }
  15913. }
  15914. $44 = (_stbi__get8($8)|0);
  15915. $45 = ($44<<24>>24)==(0);
  15916. if (!($45)) {
  15917. label = 24;
  15918. break L7;
  15919. }
  15920. $46 = (_stbi__get8($8)|0);
  15921. $47 = ($46<<24>>24)==(0);
  15922. if (!($47)) {
  15923. label = 26;
  15924. break L7;
  15925. }
  15926. $48 = (_stbi__get8($8)|0);
  15927. $49 = $48&255;
  15928. $50 = ($48&255)>(1);
  15929. if ($50) {
  15930. label = 28;
  15931. break L7;
  15932. }
  15933. $51 = HEAP32[$8>>2]|0;
  15934. $52 = ($51|0)==(0);
  15935. if ($52) {
  15936. label = 31;
  15937. break L7;
  15938. }
  15939. $53 = HEAP32[$16>>2]|0;
  15940. $54 = ($53|0)==(0);
  15941. if ($54) {
  15942. label = 31;
  15943. break L7;
  15944. }
  15945. $55 = ($$1207<<24>>24)==(0);
  15946. $56 = (1073741824 / ($51>>>0))&-1;
  15947. if (!($55)) {
  15948. HEAP32[$20>>2] = 1;
  15949. $63 = $56 >>> 2;
  15950. $64 = ($63>>>0)<($53>>>0);
  15951. if ($64) {
  15952. label = 37;
  15953. break L7;
  15954. } else {
  15955. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  15956. break;
  15957. }
  15958. }
  15959. $57 = $37 & 2;
  15960. $58 = $57 | 1;
  15961. $59 = $37 >>> 2;
  15962. $$lobit = $59 & 1;
  15963. $60 = (($58) + ($$lobit))|0;
  15964. HEAP32[$18>>2] = $60;
  15965. $61 = (($56>>>0) / ($60>>>0))&-1;
  15966. $62 = ($61>>>0)<($53>>>0);
  15967. if ($62) {
  15968. label = 34;
  15969. break L7;
  15970. }
  15971. if ($19) {
  15972. $$6$ph = 1;
  15973. break L7;
  15974. } else {
  15975. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  15976. break;
  15977. }
  15978. }
  15979. $switch$split142D = ($25|0)<(1951551059);
  15980. if ($switch$split142D) {
  15981. switch ($25|0) {
  15982. case 1347179589: {
  15983. break;
  15984. }
  15985. default: {
  15986. label = 103;
  15987. break L9;
  15988. }
  15989. }
  15990. $65 = ($$0241|0)==(0);
  15991. if (!($65)) {
  15992. label = 39;
  15993. break L7;
  15994. }
  15995. $66 = HEAP32[$6>>2]|0;
  15996. $67 = ($66>>>0)>(768);
  15997. if ($67) {
  15998. label = 41;
  15999. break L7;
  16000. }
  16001. $68 = (($66>>>0) / 3)&-1;
  16002. $69 = ($68*3)|0;
  16003. $70 = ($69|0)==($66|0);
  16004. if (!($70)) {
  16005. label = 44;
  16006. break L7;
  16007. }
  16008. $71 = ($66>>>0)>(2);
  16009. if ($71) {
  16010. $$0226593 = 0;
  16011. } else {
  16012. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16013. break;
  16014. }
  16015. while(1) {
  16016. $72 = (_stbi__get8($8)|0);
  16017. $73 = $$0226593 << 2;
  16018. $74 = (($3) + ($73)|0);
  16019. HEAP8[$74>>0] = $72;
  16020. $75 = (_stbi__get8($8)|0);
  16021. $76 = $73 | 1;
  16022. $77 = (($3) + ($76)|0);
  16023. HEAP8[$77>>0] = $75;
  16024. $78 = (_stbi__get8($8)|0);
  16025. $79 = $73 | 2;
  16026. $80 = (($3) + ($79)|0);
  16027. HEAP8[$80>>0] = $78;
  16028. $81 = $73 | 3;
  16029. $82 = (($3) + ($81)|0);
  16030. HEAP8[$82>>0] = -1;
  16031. $83 = (($$0226593) + 1)|0;
  16032. $84 = ($83>>>0)<($68>>>0);
  16033. if ($84) {
  16034. $$0226593 = $83;
  16035. } else {
  16036. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16037. break L9;
  16038. }
  16039. }
  16040. }
  16041. switch ($25|0) {
  16042. case 1951551059: {
  16043. break;
  16044. }
  16045. default: {
  16046. label = 103;
  16047. break L9;
  16048. }
  16049. }
  16050. $85 = ($$0241|0)==(0);
  16051. if (!($85)) {
  16052. label = 47;
  16053. break L7;
  16054. }
  16055. $86 = HEAP32[$10>>2]|0;
  16056. $87 = ($86|0)==(0|0);
  16057. if (!($87)) {
  16058. label = 49;
  16059. break L7;
  16060. }
  16061. $88 = ($$0206<<24>>24)==(0);
  16062. if (!($88)) {
  16063. if ($23) {
  16064. label = 52;
  16065. break L7;
  16066. }
  16067. $90 = ($$0245|0)==(0);
  16068. if ($90) {
  16069. label = 54;
  16070. break L7;
  16071. }
  16072. $91 = HEAP32[$6>>2]|0;
  16073. $92 = ($91>>>0)>($$0245>>>0);
  16074. if ($92) {
  16075. label = 58;
  16076. break L7;
  16077. }
  16078. $93 = HEAP32[$6>>2]|0;
  16079. $94 = ($93|0)==(0);
  16080. if ($94) {
  16081. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  16082. break;
  16083. }
  16084. $95 = HEAP32[$6>>2]|0;
  16085. $$1227588 = 0;
  16086. while(1) {
  16087. $96 = (_stbi__get8($8)|0);
  16088. $97 = $$1227588 << 2;
  16089. $98 = $97 | 3;
  16090. $99 = (($3) + ($98)|0);
  16091. HEAP8[$99>>0] = $96;
  16092. $100 = (($$1227588) + 1)|0;
  16093. $101 = ($100>>>0)<($95>>>0);
  16094. if ($101) {
  16095. $$1227588 = $100;
  16096. } else {
  16097. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  16098. break L9;
  16099. }
  16100. }
  16101. }
  16102. $102 = HEAP32[$21>>2]|0;
  16103. $103 = $102 & 1;
  16104. $104 = ($103|0)==(0);
  16105. if ($104) {
  16106. label = 61;
  16107. break L7;
  16108. }
  16109. $105 = HEAP32[$6>>2]|0;
  16110. $106 = $102 << 1;
  16111. $107 = ($105|0)==($106|0);
  16112. if (!($107)) {
  16113. label = 63;
  16114. break L7;
  16115. }
  16116. $108 = HEAP32[$22>>2]|0;
  16117. $109 = ($108|0)==(16);
  16118. $110 = HEAP32[$21>>2]|0;
  16119. $111 = ($110|0)>(0);
  16120. if ($109) {
  16121. if ($111) {
  16122. $$0239591 = 0;
  16123. } else {
  16124. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16125. break;
  16126. }
  16127. while(1) {
  16128. $112 = (_stbi__get16be($8)|0);
  16129. $113 = $112&65535;
  16130. $114 = (($5) + ($$0239591<<1)|0);
  16131. HEAP16[$114>>1] = $113;
  16132. $115 = (($$0239591) + 1)|0;
  16133. $116 = HEAP32[$21>>2]|0;
  16134. $117 = ($115|0)<($116|0);
  16135. if ($117) {
  16136. $$0239591 = $115;
  16137. } else {
  16138. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16139. break;
  16140. }
  16141. }
  16142. } else {
  16143. if ($111) {
  16144. $$1240589 = 0;
  16145. } else {
  16146. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16147. break;
  16148. }
  16149. while(1) {
  16150. $118 = (_stbi__get16be($8)|0);
  16151. $119 = $118 & 255;
  16152. $120 = HEAP32[$22>>2]|0;
  16153. $121 = (9916 + ($120)|0);
  16154. $122 = HEAP8[$121>>0]|0;
  16155. $123 = $122&255;
  16156. $124 = Math_imul($123, $119)|0;
  16157. $125 = $124&255;
  16158. $126 = (($4) + ($$1240589)|0);
  16159. HEAP8[$126>>0] = $125;
  16160. $127 = (($$1240589) + 1)|0;
  16161. $128 = HEAP32[$21>>2]|0;
  16162. $129 = ($127|0)<($128|0);
  16163. if ($129) {
  16164. $$1240589 = $127;
  16165. } else {
  16166. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16167. break;
  16168. }
  16169. }
  16170. }
  16171. }
  16172. } while(0);
  16173. if ((label|0) == 103) {
  16174. label = 0;
  16175. $202 = ($$0241|0)==(0);
  16176. if (!($202)) {
  16177. label = 104;
  16178. break;
  16179. }
  16180. $203 = $25 & 536870912;
  16181. $204 = ($203|0)==(0);
  16182. if ($204) {
  16183. label = 106;
  16184. break;
  16185. }
  16186. $213 = HEAP32[$6>>2]|0;
  16187. _stbi__skip($8,$213);
  16188. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16189. }
  16190. (_stbi__get32be($8)|0);
  16191. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  16192. }
  16193. switch (label|0) {
  16194. case 7: {
  16195. _stbi__err(9690);
  16196. $$6$ph = 0;
  16197. break;
  16198. }
  16199. case 9: {
  16200. _stbi__err(9704);
  16201. $$6$ph = 0;
  16202. break;
  16203. }
  16204. case 11: {
  16205. _stbi__err(9717);
  16206. $$6$ph = 0;
  16207. break;
  16208. }
  16209. case 13: {
  16210. _stbi__err(9717);
  16211. $$6$ph = 0;
  16212. break;
  16213. }
  16214. case 15: {
  16215. _stbi__err(9727);
  16216. $$6$ph = 0;
  16217. break;
  16218. }
  16219. case 17: {
  16220. _stbi__err(9747);
  16221. $$6$ph = 0;
  16222. break;
  16223. }
  16224. case 20: {
  16225. _stbi__err(9747);
  16226. $$6$ph = 0;
  16227. break;
  16228. }
  16229. case 22: {
  16230. _stbi__err(9747);
  16231. $$6$ph = 0;
  16232. break;
  16233. }
  16234. case 24: {
  16235. _stbi__err(9757);
  16236. $$6$ph = 0;
  16237. break;
  16238. }
  16239. case 26: {
  16240. _stbi__err(9773);
  16241. $$6$ph = 0;
  16242. break;
  16243. }
  16244. case 28: {
  16245. _stbi__err(9791);
  16246. $$6$ph = 0;
  16247. break;
  16248. }
  16249. case 31: {
  16250. _stbi__err(9812);
  16251. $$6$ph = 0;
  16252. break;
  16253. }
  16254. case 34: {
  16255. _stbi__err(9717);
  16256. $$6$ph = 0;
  16257. break;
  16258. }
  16259. case 37: {
  16260. _stbi__err(9717);
  16261. $$6$ph = 0;
  16262. break;
  16263. }
  16264. case 39: {
  16265. _stbi__err(9826);
  16266. $$6$ph = 0;
  16267. break;
  16268. }
  16269. case 41: {
  16270. _stbi__err(9841);
  16271. $$6$ph = 0;
  16272. break;
  16273. }
  16274. case 44: {
  16275. _stbi__err(9841);
  16276. $$6$ph = 0;
  16277. break;
  16278. }
  16279. case 47: {
  16280. _stbi__err(9826);
  16281. $$6$ph = 0;
  16282. break;
  16283. }
  16284. case 49: {
  16285. _stbi__err(9854);
  16286. $$6$ph = 0;
  16287. break;
  16288. }
  16289. case 52: {
  16290. $89 = ((($8)) + 8|0);
  16291. HEAP32[$89>>2] = 4;
  16292. $$6$ph = 1;
  16293. break;
  16294. }
  16295. case 54: {
  16296. _stbi__err(9870);
  16297. $$6$ph = 0;
  16298. break;
  16299. }
  16300. case 58: {
  16301. _stbi__err(9887);
  16302. $$6$ph = 0;
  16303. break;
  16304. }
  16305. case 61: {
  16306. _stbi__err(9900);
  16307. $$6$ph = 0;
  16308. break;
  16309. }
  16310. case 63: {
  16311. _stbi__err(9887);
  16312. $$6$ph = 0;
  16313. break;
  16314. }
  16315. case 70: {
  16316. _stbi__err(9826);
  16317. $$6$ph = 0;
  16318. break;
  16319. }
  16320. case 72: {
  16321. _stbi__err(9925);
  16322. $$6$ph = 0;
  16323. break;
  16324. }
  16325. case 74: {
  16326. $133 = $$0206&255;
  16327. $134 = ((($8)) + 8|0);
  16328. HEAP32[$134>>2] = $133;
  16329. $$6$ph = 1;
  16330. break;
  16331. }
  16332. case 81: {
  16333. _stbi__err(9574);
  16334. $$6$ph = 0;
  16335. break;
  16336. }
  16337. case 83: {
  16338. _stbi__err(9933);
  16339. $$6$ph = 0;
  16340. break;
  16341. }
  16342. case 85: {
  16343. $156 = ($$0241|0)==(0);
  16344. do {
  16345. if ($156) {
  16346. $157 = ($1|0)==(0);
  16347. if ($157) {
  16348. $158 = HEAP32[$10>>2]|0;
  16349. $159 = ($158|0)==(0|0);
  16350. if ($159) {
  16351. _stbi__err(9943);
  16352. $$4 = 0;
  16353. break;
  16354. }
  16355. $160 = HEAP32[$8>>2]|0;
  16356. $161 = ((($0)) + 16|0);
  16357. $162 = HEAP32[$161>>2]|0;
  16358. $163 = Math_imul($162, $160)|0;
  16359. $164 = (($163) + 7)|0;
  16360. $165 = $164 >>> 3;
  16361. $166 = ((($8)) + 4|0);
  16362. $167 = HEAP32[$166>>2]|0;
  16363. $168 = ((($8)) + 8|0);
  16364. $169 = HEAP32[$168>>2]|0;
  16365. $170 = Math_imul($169, $167)|0;
  16366. $171 = Math_imul($170, $165)|0;
  16367. $172 = (($171) + ($167))|0;
  16368. HEAP32[$7>>2] = $172;
  16369. $173 = ($$0228|0)!=(0);
  16370. $174 = $173 ^ 1;
  16371. $175 = $174&1;
  16372. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  16373. HEAP32[$9>>2] = $176;
  16374. $177 = ($176|0)==(0|0);
  16375. if ($177) {
  16376. $$4 = 0;
  16377. } else {
  16378. $178 = HEAP32[$10>>2]|0;
  16379. _free($178);
  16380. HEAP32[$10>>2] = 0;
  16381. $179 = HEAP32[$168>>2]|0;
  16382. $180 = (($179) + 1)|0;
  16383. $notlhs = ($180|0)!=($2|0);
  16384. $notrhs = ($2|0)==(3);
  16385. $or$cond5$not = $notrhs | $notlhs;
  16386. $181 = ($$0206<<24>>24)!=(0);
  16387. $or$cond7 = $181 | $or$cond5$not;
  16388. $182 = ($$0211<<24>>24)==(0);
  16389. $or$cond248 = $182 & $or$cond7;
  16390. $$254 = $or$cond248 ? $179 : $180;
  16391. $183 = ((($8)) + 12|0);
  16392. HEAP32[$183>>2] = $$254;
  16393. $184 = HEAP32[$9>>2]|0;
  16394. $185 = HEAP32[$7>>2]|0;
  16395. $186 = HEAP32[$161>>2]|0;
  16396. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  16397. $188 = ($187|0)==(0);
  16398. if ($188) {
  16399. $$4 = 0;
  16400. } else {
  16401. do {
  16402. if (!($182)) {
  16403. $189 = HEAP32[$161>>2]|0;
  16404. $190 = ($189|0)==(16);
  16405. if ($190) {
  16406. $191 = HEAP32[$183>>2]|0;
  16407. _stbi__compute_transparency16($0,$5,$191);
  16408. break;
  16409. } else {
  16410. $192 = HEAP32[$183>>2]|0;
  16411. _stbi__compute_transparency($0,$4,$192);
  16412. break;
  16413. }
  16414. }
  16415. } while(0);
  16416. $193 = HEAP32[5467]|0;
  16417. $194 = ($193|0)!=(0);
  16418. $or$cond11 = $173 & $194;
  16419. if ($or$cond11) {
  16420. $195 = HEAP32[$183>>2]|0;
  16421. $196 = ($195|0)>(2);
  16422. if ($196) {
  16423. _stbi__de_iphone($0);
  16424. }
  16425. }
  16426. if ($181) {
  16427. $197 = $$0206&255;
  16428. HEAP32[$168>>2] = $197;
  16429. $198 = ($2|0)>(2);
  16430. $$ = $198 ? $2 : $197;
  16431. HEAP32[$183>>2] = $$;
  16432. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  16433. $200 = ($199|0)==(0);
  16434. if ($200) {
  16435. $$4 = 0;
  16436. break;
  16437. }
  16438. }
  16439. $201 = HEAP32[$9>>2]|0;
  16440. _free($201);
  16441. HEAP32[$9>>2] = 0;
  16442. $$4 = 1;
  16443. }
  16444. }
  16445. } else {
  16446. $$4 = 1;
  16447. }
  16448. } else {
  16449. _stbi__err(9826);
  16450. $$4 = 0;
  16451. }
  16452. } while(0);
  16453. $$6$ph = $$4;
  16454. break;
  16455. }
  16456. case 104: {
  16457. _stbi__err(9826);
  16458. $$6$ph = 0;
  16459. break;
  16460. }
  16461. case 106: {
  16462. $205 = $25 >>> 24;
  16463. $206 = $205&255;
  16464. HEAP8[9951] = $206;
  16465. $207 = HEAP32[$15>>2]|0;
  16466. $208 = $207 >>> 16;
  16467. $209 = $208&255;
  16468. HEAP8[(9952)>>0] = $209;
  16469. $210 = $207 >>> 8;
  16470. $211 = $210&255;
  16471. HEAP8[(9953)>>0] = $211;
  16472. $212 = $207&255;
  16473. HEAP8[(9954)>>0] = $212;
  16474. _stbi__err(9951);
  16475. $$6$ph = 0;
  16476. break;
  16477. }
  16478. }
  16479. $$7 = $$6$ph;
  16480. STACKTOP = sp;return ($$7|0);
  16481. }
  16482. function _stbi__convert_format($0,$1,$2,$3,$4) {
  16483. $0 = $0|0;
  16484. $1 = $1|0;
  16485. $2 = $2|0;
  16486. $3 = $3|0;
  16487. $4 = $4|0;
  16488. 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;
  16489. 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;
  16490. 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;
  16491. 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;
  16492. 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;
  16493. 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;
  16494. 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;
  16495. 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;
  16496. 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;
  16497. 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;
  16498. var sp = 0;
  16499. sp = STACKTOP;
  16500. $5 = ($2|0)==($1|0);
  16501. if ($5) {
  16502. $$0163 = $0;
  16503. return ($$0163|0);
  16504. }
  16505. $$off = (($2) + -1)|0;
  16506. $6 = ($$off>>>0)<(4);
  16507. if (!($6)) {
  16508. ___assert_fail((9615|0),(9519|0),1477,(9669|0));
  16509. // unreachable;
  16510. }
  16511. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  16512. $8 = ($7|0)==(0|0);
  16513. if ($8) {
  16514. _free($0);
  16515. _stbi__err(9574);
  16516. $$0163 = 0;
  16517. return ($$0163|0);
  16518. }
  16519. $9 = ($4|0)>(0);
  16520. L11: do {
  16521. if ($9) {
  16522. $10 = $1 << 3;
  16523. $11 = (($10) + ($2))|0;
  16524. $$0165254 = (($3) + -1)|0;
  16525. $12 = ($$0165254|0)>(-1);
  16526. $$1166249 = (($3) + -1)|0;
  16527. $13 = ($$1166249|0)>(-1);
  16528. $$2167244 = (($3) + -1)|0;
  16529. $14 = ($$2167244|0)>(-1);
  16530. $$3168239 = (($3) + -1)|0;
  16531. $15 = ($$3168239|0)>(-1);
  16532. $$4169234 = (($3) + -1)|0;
  16533. $16 = ($$4169234|0)>(-1);
  16534. $$5170229 = (($3) + -1)|0;
  16535. $17 = ($$5170229|0)>(-1);
  16536. $$6171224 = (($3) + -1)|0;
  16537. $18 = ($$6171224|0)>(-1);
  16538. $$7172219 = (($3) + -1)|0;
  16539. $19 = ($$7172219|0)>(-1);
  16540. $$8173214 = (($3) + -1)|0;
  16541. $20 = ($$8173214|0)>(-1);
  16542. $$9174209 = (($3) + -1)|0;
  16543. $21 = ($$9174209|0)>(-1);
  16544. $$10175204 = (($3) + -1)|0;
  16545. $22 = ($$10175204|0)>(-1);
  16546. $$11176200 = (($3) + -1)|0;
  16547. $23 = ($$11176200|0)>(-1);
  16548. $$0164259 = 0;
  16549. L13: while(1) {
  16550. $24 = Math_imul($$0164259, $3)|0;
  16551. $25 = Math_imul($24, $1)|0;
  16552. $26 = (($0) + ($25)|0);
  16553. $27 = Math_imul($24, $2)|0;
  16554. $28 = (($7) + ($27)|0);
  16555. do {
  16556. switch ($11|0) {
  16557. case 10: {
  16558. if ($12) {
  16559. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  16560. while(1) {
  16561. $29 = HEAP8[$$0151255>>0]|0;
  16562. HEAP8[$$0256>>0] = $29;
  16563. $30 = ((($$0256)) + 1|0);
  16564. HEAP8[$30>>0] = -1;
  16565. $31 = ((($$0151255)) + 1|0);
  16566. $32 = ((($$0256)) + 2|0);
  16567. $$0165 = (($$0165257) + -1)|0;
  16568. $33 = ($$0165|0)>(-1);
  16569. if ($33) {
  16570. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  16571. } else {
  16572. break;
  16573. }
  16574. }
  16575. }
  16576. break;
  16577. }
  16578. case 11: {
  16579. if ($13) {
  16580. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  16581. while(1) {
  16582. $34 = HEAP8[$$1152250>>0]|0;
  16583. $35 = ((($$1251)) + 2|0);
  16584. HEAP8[$35>>0] = $34;
  16585. $36 = ((($$1251)) + 1|0);
  16586. HEAP8[$36>>0] = $34;
  16587. HEAP8[$$1251>>0] = $34;
  16588. $37 = ((($$1152250)) + 1|0);
  16589. $38 = ((($$1251)) + 3|0);
  16590. $$1166 = (($$1166252) + -1)|0;
  16591. $39 = ($$1166|0)>(-1);
  16592. if ($39) {
  16593. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  16594. } else {
  16595. break;
  16596. }
  16597. }
  16598. }
  16599. break;
  16600. }
  16601. case 12: {
  16602. if ($14) {
  16603. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  16604. while(1) {
  16605. $40 = HEAP8[$$2153245>>0]|0;
  16606. $41 = ((($$2246)) + 2|0);
  16607. HEAP8[$41>>0] = $40;
  16608. $42 = ((($$2246)) + 1|0);
  16609. HEAP8[$42>>0] = $40;
  16610. HEAP8[$$2246>>0] = $40;
  16611. $43 = ((($$2246)) + 3|0);
  16612. HEAP8[$43>>0] = -1;
  16613. $44 = ((($$2153245)) + 1|0);
  16614. $45 = ((($$2246)) + 4|0);
  16615. $$2167 = (($$2167247) + -1)|0;
  16616. $46 = ($$2167|0)>(-1);
  16617. if ($46) {
  16618. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  16619. } else {
  16620. break;
  16621. }
  16622. }
  16623. }
  16624. break;
  16625. }
  16626. case 17: {
  16627. if ($15) {
  16628. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  16629. while(1) {
  16630. $47 = HEAP8[$$3154240>>0]|0;
  16631. HEAP8[$$3241>>0] = $47;
  16632. $48 = ((($$3154240)) + 2|0);
  16633. $49 = ((($$3241)) + 1|0);
  16634. $$3168 = (($$3168242) + -1)|0;
  16635. $50 = ($$3168|0)>(-1);
  16636. if ($50) {
  16637. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  16638. } else {
  16639. break;
  16640. }
  16641. }
  16642. }
  16643. break;
  16644. }
  16645. case 19: {
  16646. if ($16) {
  16647. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  16648. while(1) {
  16649. $51 = HEAP8[$$4155235>>0]|0;
  16650. $52 = ((($$4236)) + 2|0);
  16651. HEAP8[$52>>0] = $51;
  16652. $53 = ((($$4236)) + 1|0);
  16653. HEAP8[$53>>0] = $51;
  16654. HEAP8[$$4236>>0] = $51;
  16655. $54 = ((($$4155235)) + 2|0);
  16656. $55 = ((($$4236)) + 3|0);
  16657. $$4169 = (($$4169237) + -1)|0;
  16658. $56 = ($$4169|0)>(-1);
  16659. if ($56) {
  16660. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  16661. } else {
  16662. break;
  16663. }
  16664. }
  16665. }
  16666. break;
  16667. }
  16668. case 20: {
  16669. if ($17) {
  16670. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  16671. while(1) {
  16672. $57 = HEAP8[$$5156230>>0]|0;
  16673. $58 = ((($$5231)) + 2|0);
  16674. HEAP8[$58>>0] = $57;
  16675. $59 = ((($$5231)) + 1|0);
  16676. HEAP8[$59>>0] = $57;
  16677. HEAP8[$$5231>>0] = $57;
  16678. $60 = ((($$5156230)) + 1|0);
  16679. $61 = HEAP8[$60>>0]|0;
  16680. $62 = ((($$5231)) + 3|0);
  16681. HEAP8[$62>>0] = $61;
  16682. $63 = ((($$5156230)) + 2|0);
  16683. $64 = ((($$5231)) + 4|0);
  16684. $$5170 = (($$5170232) + -1)|0;
  16685. $65 = ($$5170|0)>(-1);
  16686. if ($65) {
  16687. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  16688. } else {
  16689. break;
  16690. }
  16691. }
  16692. }
  16693. break;
  16694. }
  16695. case 28: {
  16696. if ($18) {
  16697. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  16698. while(1) {
  16699. $66 = HEAP8[$$6157225>>0]|0;
  16700. HEAP8[$$6226>>0] = $66;
  16701. $67 = ((($$6157225)) + 1|0);
  16702. $68 = HEAP8[$67>>0]|0;
  16703. $69 = ((($$6226)) + 1|0);
  16704. HEAP8[$69>>0] = $68;
  16705. $70 = ((($$6157225)) + 2|0);
  16706. $71 = HEAP8[$70>>0]|0;
  16707. $72 = ((($$6226)) + 2|0);
  16708. HEAP8[$72>>0] = $71;
  16709. $73 = ((($$6226)) + 3|0);
  16710. HEAP8[$73>>0] = -1;
  16711. $74 = ((($$6157225)) + 3|0);
  16712. $75 = ((($$6226)) + 4|0);
  16713. $$6171 = (($$6171227) + -1)|0;
  16714. $76 = ($$6171|0)>(-1);
  16715. if ($76) {
  16716. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  16717. } else {
  16718. break;
  16719. }
  16720. }
  16721. }
  16722. break;
  16723. }
  16724. case 25: {
  16725. if ($19) {
  16726. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  16727. while(1) {
  16728. $77 = HEAP8[$$7158220>>0]|0;
  16729. $78 = $77&255;
  16730. $79 = ((($$7158220)) + 1|0);
  16731. $80 = HEAP8[$79>>0]|0;
  16732. $81 = $80&255;
  16733. $82 = ((($$7158220)) + 2|0);
  16734. $83 = HEAP8[$82>>0]|0;
  16735. $84 = $83&255;
  16736. $85 = (_stbi__compute_y($78,$81,$84)|0);
  16737. HEAP8[$$7221>>0] = $85;
  16738. $86 = ((($$7158220)) + 3|0);
  16739. $87 = ((($$7221)) + 1|0);
  16740. $$7172 = (($$7172222) + -1)|0;
  16741. $88 = ($$7172|0)>(-1);
  16742. if ($88) {
  16743. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  16744. } else {
  16745. break;
  16746. }
  16747. }
  16748. }
  16749. break;
  16750. }
  16751. case 26: {
  16752. if ($20) {
  16753. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  16754. while(1) {
  16755. $89 = HEAP8[$$8159215>>0]|0;
  16756. $90 = $89&255;
  16757. $91 = ((($$8159215)) + 1|0);
  16758. $92 = HEAP8[$91>>0]|0;
  16759. $93 = $92&255;
  16760. $94 = ((($$8159215)) + 2|0);
  16761. $95 = HEAP8[$94>>0]|0;
  16762. $96 = $95&255;
  16763. $97 = (_stbi__compute_y($90,$93,$96)|0);
  16764. HEAP8[$$8216>>0] = $97;
  16765. $98 = ((($$8216)) + 1|0);
  16766. HEAP8[$98>>0] = -1;
  16767. $99 = ((($$8159215)) + 3|0);
  16768. $100 = ((($$8216)) + 2|0);
  16769. $$8173 = (($$8173217) + -1)|0;
  16770. $101 = ($$8173|0)>(-1);
  16771. if ($101) {
  16772. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  16773. } else {
  16774. break;
  16775. }
  16776. }
  16777. }
  16778. break;
  16779. }
  16780. case 33: {
  16781. if ($21) {
  16782. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  16783. while(1) {
  16784. $102 = HEAP8[$$9160210>>0]|0;
  16785. $103 = $102&255;
  16786. $104 = ((($$9160210)) + 1|0);
  16787. $105 = HEAP8[$104>>0]|0;
  16788. $106 = $105&255;
  16789. $107 = ((($$9160210)) + 2|0);
  16790. $108 = HEAP8[$107>>0]|0;
  16791. $109 = $108&255;
  16792. $110 = (_stbi__compute_y($103,$106,$109)|0);
  16793. HEAP8[$$9211>>0] = $110;
  16794. $111 = ((($$9160210)) + 4|0);
  16795. $112 = ((($$9211)) + 1|0);
  16796. $$9174 = (($$9174212) + -1)|0;
  16797. $113 = ($$9174|0)>(-1);
  16798. if ($113) {
  16799. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  16800. } else {
  16801. break;
  16802. }
  16803. }
  16804. }
  16805. break;
  16806. }
  16807. case 34: {
  16808. if ($22) {
  16809. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  16810. while(1) {
  16811. $114 = HEAP8[$$10161205>>0]|0;
  16812. $115 = $114&255;
  16813. $116 = ((($$10161205)) + 1|0);
  16814. $117 = HEAP8[$116>>0]|0;
  16815. $118 = $117&255;
  16816. $119 = ((($$10161205)) + 2|0);
  16817. $120 = HEAP8[$119>>0]|0;
  16818. $121 = $120&255;
  16819. $122 = (_stbi__compute_y($115,$118,$121)|0);
  16820. HEAP8[$$10206>>0] = $122;
  16821. $123 = ((($$10161205)) + 3|0);
  16822. $124 = HEAP8[$123>>0]|0;
  16823. $125 = ((($$10206)) + 1|0);
  16824. HEAP8[$125>>0] = $124;
  16825. $126 = ((($$10161205)) + 4|0);
  16826. $127 = ((($$10206)) + 2|0);
  16827. $$10175 = (($$10175207) + -1)|0;
  16828. $128 = ($$10175|0)>(-1);
  16829. if ($128) {
  16830. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  16831. } else {
  16832. break;
  16833. }
  16834. }
  16835. }
  16836. break;
  16837. }
  16838. case 35: {
  16839. if ($23) {
  16840. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  16841. while(1) {
  16842. $129 = HEAP8[$$11162201>>0]|0;
  16843. HEAP8[$$11202>>0] = $129;
  16844. $130 = ((($$11162201)) + 1|0);
  16845. $131 = HEAP8[$130>>0]|0;
  16846. $132 = ((($$11202)) + 1|0);
  16847. HEAP8[$132>>0] = $131;
  16848. $133 = ((($$11162201)) + 2|0);
  16849. $134 = HEAP8[$133>>0]|0;
  16850. $135 = ((($$11202)) + 2|0);
  16851. HEAP8[$135>>0] = $134;
  16852. $136 = ((($$11162201)) + 4|0);
  16853. $137 = ((($$11202)) + 3|0);
  16854. $$11176 = (($$11176203) + -1)|0;
  16855. $138 = ($$11176|0)>(-1);
  16856. if ($138) {
  16857. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  16858. } else {
  16859. break;
  16860. }
  16861. }
  16862. }
  16863. break;
  16864. }
  16865. default: {
  16866. break L13;
  16867. }
  16868. }
  16869. } while(0);
  16870. $139 = (($$0164259) + 1)|0;
  16871. $140 = ($139|0)<($4|0);
  16872. if ($140) {
  16873. $$0164259 = $139;
  16874. } else {
  16875. break L11;
  16876. }
  16877. }
  16878. ___assert_fail((13075|0),(9519|0),1506,(9669|0));
  16879. // unreachable;
  16880. }
  16881. } while(0);
  16882. _free($0);
  16883. $$0163 = $7;
  16884. return ($$0163|0);
  16885. }
  16886. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  16887. $0 = $0|0;
  16888. $1 = $1|0;
  16889. $2 = $2|0;
  16890. $3 = $3|0;
  16891. $4 = $4|0;
  16892. 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;
  16893. 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;
  16894. 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;
  16895. 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;
  16896. 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;
  16897. 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;
  16898. 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;
  16899. 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;
  16900. 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;
  16901. 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;
  16902. var $98 = 0, $99 = 0, label = 0, sp = 0;
  16903. sp = STACKTOP;
  16904. $5 = ($2|0)==($1|0);
  16905. if ($5) {
  16906. $$0163 = $0;
  16907. return ($$0163|0);
  16908. }
  16909. $$off = (($2) + -1)|0;
  16910. $6 = ($$off>>>0)<(4);
  16911. if (!($6)) {
  16912. ___assert_fail((9615|0),(9519|0),1526,(9646|0));
  16913. // unreachable;
  16914. }
  16915. $7 = $2 << 1;
  16916. $8 = Math_imul($7, $3)|0;
  16917. $9 = Math_imul($8, $4)|0;
  16918. $10 = (_stbi__malloc($9)|0);
  16919. $11 = ($10|0)==(0|0);
  16920. if ($11) {
  16921. _free($0);
  16922. _stbi__err(9574);
  16923. $$0163 = 0;
  16924. return ($$0163|0);
  16925. }
  16926. $12 = ($4|0)>(0);
  16927. L11: do {
  16928. if ($12) {
  16929. $13 = $1 << 3;
  16930. $14 = (($13) + ($2))|0;
  16931. $$0165254 = (($3) + -1)|0;
  16932. $15 = ($$0165254|0)>(-1);
  16933. $$1166249 = (($3) + -1)|0;
  16934. $16 = ($$1166249|0)>(-1);
  16935. $$2167244 = (($3) + -1)|0;
  16936. $17 = ($$2167244|0)>(-1);
  16937. $$3168239 = (($3) + -1)|0;
  16938. $18 = ($$3168239|0)>(-1);
  16939. $$4169234 = (($3) + -1)|0;
  16940. $19 = ($$4169234|0)>(-1);
  16941. $$5170229 = (($3) + -1)|0;
  16942. $20 = ($$5170229|0)>(-1);
  16943. $$6171224 = (($3) + -1)|0;
  16944. $21 = ($$6171224|0)>(-1);
  16945. $$7172219 = (($3) + -1)|0;
  16946. $22 = ($$7172219|0)>(-1);
  16947. $$8173214 = (($3) + -1)|0;
  16948. $23 = ($$8173214|0)>(-1);
  16949. $$9174209 = (($3) + -1)|0;
  16950. $24 = ($$9174209|0)>(-1);
  16951. $$10175204 = (($3) + -1)|0;
  16952. $25 = ($$10175204|0)>(-1);
  16953. $$11176200 = (($3) + -1)|0;
  16954. $26 = ($$11176200|0)>(-1);
  16955. $$0164259 = 0;
  16956. L13: while(1) {
  16957. $27 = Math_imul($$0164259, $3)|0;
  16958. $28 = Math_imul($27, $1)|0;
  16959. $29 = (($0) + ($28<<1)|0);
  16960. $30 = Math_imul($27, $2)|0;
  16961. $31 = (($10) + ($30<<1)|0);
  16962. do {
  16963. switch ($14|0) {
  16964. case 10: {
  16965. if ($15) {
  16966. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  16967. while(1) {
  16968. $32 = HEAP16[$$0151255>>1]|0;
  16969. HEAP16[$$0256>>1] = $32;
  16970. $33 = ((($$0256)) + 2|0);
  16971. HEAP16[$33>>1] = -1;
  16972. $34 = ((($$0151255)) + 2|0);
  16973. $35 = ((($$0256)) + 4|0);
  16974. $$0165 = (($$0165257) + -1)|0;
  16975. $36 = ($$0165|0)>(-1);
  16976. if ($36) {
  16977. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  16978. } else {
  16979. break;
  16980. }
  16981. }
  16982. }
  16983. break;
  16984. }
  16985. case 11: {
  16986. if ($16) {
  16987. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  16988. while(1) {
  16989. $37 = HEAP16[$$1152250>>1]|0;
  16990. $38 = ((($$1251)) + 4|0);
  16991. HEAP16[$38>>1] = $37;
  16992. $39 = ((($$1251)) + 2|0);
  16993. HEAP16[$39>>1] = $37;
  16994. HEAP16[$$1251>>1] = $37;
  16995. $40 = ((($$1152250)) + 2|0);
  16996. $41 = ((($$1251)) + 6|0);
  16997. $$1166 = (($$1166252) + -1)|0;
  16998. $42 = ($$1166|0)>(-1);
  16999. if ($42) {
  17000. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  17001. } else {
  17002. break;
  17003. }
  17004. }
  17005. }
  17006. break;
  17007. }
  17008. case 12: {
  17009. if ($17) {
  17010. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  17011. while(1) {
  17012. $43 = HEAP16[$$2153245>>1]|0;
  17013. $44 = ((($$2246)) + 4|0);
  17014. HEAP16[$44>>1] = $43;
  17015. $45 = ((($$2246)) + 2|0);
  17016. HEAP16[$45>>1] = $43;
  17017. HEAP16[$$2246>>1] = $43;
  17018. $46 = ((($$2246)) + 6|0);
  17019. HEAP16[$46>>1] = -1;
  17020. $47 = ((($$2153245)) + 2|0);
  17021. $48 = ((($$2246)) + 8|0);
  17022. $$2167 = (($$2167247) + -1)|0;
  17023. $49 = ($$2167|0)>(-1);
  17024. if ($49) {
  17025. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  17026. } else {
  17027. break;
  17028. }
  17029. }
  17030. }
  17031. break;
  17032. }
  17033. case 17: {
  17034. if ($18) {
  17035. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  17036. while(1) {
  17037. $50 = HEAP16[$$3154240>>1]|0;
  17038. HEAP16[$$3241>>1] = $50;
  17039. $51 = ((($$3154240)) + 4|0);
  17040. $52 = ((($$3241)) + 2|0);
  17041. $$3168 = (($$3168242) + -1)|0;
  17042. $53 = ($$3168|0)>(-1);
  17043. if ($53) {
  17044. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  17045. } else {
  17046. break;
  17047. }
  17048. }
  17049. }
  17050. break;
  17051. }
  17052. case 19: {
  17053. if ($19) {
  17054. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  17055. while(1) {
  17056. $54 = HEAP16[$$4155235>>1]|0;
  17057. $55 = ((($$4236)) + 4|0);
  17058. HEAP16[$55>>1] = $54;
  17059. $56 = ((($$4236)) + 2|0);
  17060. HEAP16[$56>>1] = $54;
  17061. HEAP16[$$4236>>1] = $54;
  17062. $57 = ((($$4155235)) + 4|0);
  17063. $58 = ((($$4236)) + 6|0);
  17064. $$4169 = (($$4169237) + -1)|0;
  17065. $59 = ($$4169|0)>(-1);
  17066. if ($59) {
  17067. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  17068. } else {
  17069. break;
  17070. }
  17071. }
  17072. }
  17073. break;
  17074. }
  17075. case 20: {
  17076. if ($20) {
  17077. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  17078. while(1) {
  17079. $60 = HEAP16[$$5156230>>1]|0;
  17080. $61 = ((($$5231)) + 4|0);
  17081. HEAP16[$61>>1] = $60;
  17082. $62 = ((($$5231)) + 2|0);
  17083. HEAP16[$62>>1] = $60;
  17084. HEAP16[$$5231>>1] = $60;
  17085. $63 = ((($$5156230)) + 2|0);
  17086. $64 = HEAP16[$63>>1]|0;
  17087. $65 = ((($$5231)) + 6|0);
  17088. HEAP16[$65>>1] = $64;
  17089. $66 = ((($$5156230)) + 4|0);
  17090. $67 = ((($$5231)) + 8|0);
  17091. $$5170 = (($$5170232) + -1)|0;
  17092. $68 = ($$5170|0)>(-1);
  17093. if ($68) {
  17094. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  17095. } else {
  17096. break;
  17097. }
  17098. }
  17099. }
  17100. break;
  17101. }
  17102. case 28: {
  17103. if ($21) {
  17104. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  17105. while(1) {
  17106. $69 = HEAP16[$$6157225>>1]|0;
  17107. HEAP16[$$6226>>1] = $69;
  17108. $70 = ((($$6157225)) + 2|0);
  17109. $71 = HEAP16[$70>>1]|0;
  17110. $72 = ((($$6226)) + 2|0);
  17111. HEAP16[$72>>1] = $71;
  17112. $73 = ((($$6157225)) + 4|0);
  17113. $74 = HEAP16[$73>>1]|0;
  17114. $75 = ((($$6226)) + 4|0);
  17115. HEAP16[$75>>1] = $74;
  17116. $76 = ((($$6226)) + 6|0);
  17117. HEAP16[$76>>1] = -1;
  17118. $77 = ((($$6157225)) + 6|0);
  17119. $78 = ((($$6226)) + 8|0);
  17120. $$6171 = (($$6171227) + -1)|0;
  17121. $79 = ($$6171|0)>(-1);
  17122. if ($79) {
  17123. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  17124. } else {
  17125. break;
  17126. }
  17127. }
  17128. }
  17129. break;
  17130. }
  17131. case 25: {
  17132. if ($22) {
  17133. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  17134. while(1) {
  17135. $80 = HEAP16[$$7158220>>1]|0;
  17136. $81 = $80&65535;
  17137. $82 = ((($$7158220)) + 2|0);
  17138. $83 = HEAP16[$82>>1]|0;
  17139. $84 = $83&65535;
  17140. $85 = ((($$7158220)) + 4|0);
  17141. $86 = HEAP16[$85>>1]|0;
  17142. $87 = $86&65535;
  17143. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  17144. HEAP16[$$7221>>1] = $88;
  17145. $89 = ((($$7158220)) + 6|0);
  17146. $90 = ((($$7221)) + 2|0);
  17147. $$7172 = (($$7172222) + -1)|0;
  17148. $91 = ($$7172|0)>(-1);
  17149. if ($91) {
  17150. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  17151. } else {
  17152. break;
  17153. }
  17154. }
  17155. }
  17156. break;
  17157. }
  17158. case 26: {
  17159. if ($23) {
  17160. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  17161. while(1) {
  17162. $92 = HEAP16[$$8159215>>1]|0;
  17163. $93 = $92&65535;
  17164. $94 = ((($$8159215)) + 2|0);
  17165. $95 = HEAP16[$94>>1]|0;
  17166. $96 = $95&65535;
  17167. $97 = ((($$8159215)) + 4|0);
  17168. $98 = HEAP16[$97>>1]|0;
  17169. $99 = $98&65535;
  17170. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  17171. HEAP16[$$8216>>1] = $100;
  17172. $101 = ((($$8216)) + 2|0);
  17173. HEAP16[$101>>1] = -1;
  17174. $102 = ((($$8159215)) + 6|0);
  17175. $103 = ((($$8216)) + 4|0);
  17176. $$8173 = (($$8173217) + -1)|0;
  17177. $104 = ($$8173|0)>(-1);
  17178. if ($104) {
  17179. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  17180. } else {
  17181. break;
  17182. }
  17183. }
  17184. }
  17185. break;
  17186. }
  17187. case 33: {
  17188. if ($24) {
  17189. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  17190. while(1) {
  17191. $105 = HEAP16[$$9160210>>1]|0;
  17192. $106 = $105&65535;
  17193. $107 = ((($$9160210)) + 2|0);
  17194. $108 = HEAP16[$107>>1]|0;
  17195. $109 = $108&65535;
  17196. $110 = ((($$9160210)) + 4|0);
  17197. $111 = HEAP16[$110>>1]|0;
  17198. $112 = $111&65535;
  17199. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  17200. HEAP16[$$9211>>1] = $113;
  17201. $114 = ((($$9160210)) + 8|0);
  17202. $115 = ((($$9211)) + 2|0);
  17203. $$9174 = (($$9174212) + -1)|0;
  17204. $116 = ($$9174|0)>(-1);
  17205. if ($116) {
  17206. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  17207. } else {
  17208. break;
  17209. }
  17210. }
  17211. }
  17212. break;
  17213. }
  17214. case 34: {
  17215. if ($25) {
  17216. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  17217. while(1) {
  17218. $117 = HEAP16[$$10161205>>1]|0;
  17219. $118 = $117&65535;
  17220. $119 = ((($$10161205)) + 2|0);
  17221. $120 = HEAP16[$119>>1]|0;
  17222. $121 = $120&65535;
  17223. $122 = ((($$10161205)) + 4|0);
  17224. $123 = HEAP16[$122>>1]|0;
  17225. $124 = $123&65535;
  17226. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  17227. HEAP16[$$10206>>1] = $125;
  17228. $126 = ((($$10161205)) + 6|0);
  17229. $127 = HEAP16[$126>>1]|0;
  17230. $128 = ((($$10206)) + 2|0);
  17231. HEAP16[$128>>1] = $127;
  17232. $129 = ((($$10161205)) + 8|0);
  17233. $130 = ((($$10206)) + 4|0);
  17234. $$10175 = (($$10175207) + -1)|0;
  17235. $131 = ($$10175|0)>(-1);
  17236. if ($131) {
  17237. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  17238. } else {
  17239. break;
  17240. }
  17241. }
  17242. }
  17243. break;
  17244. }
  17245. case 35: {
  17246. if ($26) {
  17247. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  17248. while(1) {
  17249. $132 = HEAP16[$$11162201>>1]|0;
  17250. HEAP16[$$11202>>1] = $132;
  17251. $133 = ((($$11162201)) + 2|0);
  17252. $134 = HEAP16[$133>>1]|0;
  17253. $135 = ((($$11202)) + 2|0);
  17254. HEAP16[$135>>1] = $134;
  17255. $136 = ((($$11162201)) + 4|0);
  17256. $137 = HEAP16[$136>>1]|0;
  17257. $138 = ((($$11202)) + 4|0);
  17258. HEAP16[$138>>1] = $137;
  17259. $139 = ((($$11162201)) + 8|0);
  17260. $140 = ((($$11202)) + 6|0);
  17261. $$11176 = (($$11176203) + -1)|0;
  17262. $141 = ($$11176|0)>(-1);
  17263. if ($141) {
  17264. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  17265. } else {
  17266. break;
  17267. }
  17268. }
  17269. }
  17270. break;
  17271. }
  17272. default: {
  17273. break L13;
  17274. }
  17275. }
  17276. } while(0);
  17277. $142 = (($$0164259) + 1)|0;
  17278. $143 = ($142|0)<($4|0);
  17279. if ($143) {
  17280. $$0164259 = $142;
  17281. } else {
  17282. break L11;
  17283. }
  17284. }
  17285. ___assert_fail((13075|0),(9519|0),1555,(9646|0));
  17286. // unreachable;
  17287. }
  17288. } while(0);
  17289. _free($0);
  17290. $$0163 = $10;
  17291. return ($$0163|0);
  17292. }
  17293. function _stbi__compute_y_16($0,$1,$2) {
  17294. $0 = $0|0;
  17295. $1 = $1|0;
  17296. $2 = $2|0;
  17297. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17298. sp = STACKTOP;
  17299. $3 = ($0*77)|0;
  17300. $4 = ($1*150)|0;
  17301. $5 = (($4) + ($3))|0;
  17302. $6 = ($2*29)|0;
  17303. $7 = (($5) + ($6))|0;
  17304. $8 = $7 >>> 8;
  17305. $9 = $8&65535;
  17306. return ($9|0);
  17307. }
  17308. function _stbi__malloc_mad3($0,$1,$2) {
  17309. $0 = $0|0;
  17310. $1 = $1|0;
  17311. $2 = $2|0;
  17312. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  17313. sp = STACKTOP;
  17314. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  17315. $4 = ($3|0)==(0);
  17316. if ($4) {
  17317. $$0 = 0;
  17318. return ($$0|0);
  17319. }
  17320. $5 = Math_imul($1, $0)|0;
  17321. $6 = Math_imul($5, $2)|0;
  17322. $7 = (_stbi__malloc($6)|0);
  17323. $$0 = $7;
  17324. return ($$0|0);
  17325. }
  17326. function _stbi__compute_y($0,$1,$2) {
  17327. $0 = $0|0;
  17328. $1 = $1|0;
  17329. $2 = $2|0;
  17330. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17331. sp = STACKTOP;
  17332. $3 = ($0*77)|0;
  17333. $4 = ($1*150)|0;
  17334. $5 = (($4) + ($3))|0;
  17335. $6 = ($2*29)|0;
  17336. $7 = (($5) + ($6))|0;
  17337. $8 = $7 >>> 8;
  17338. $9 = $8&255;
  17339. return ($9|0);
  17340. }
  17341. function _stbi__mad3sizes_valid($0,$1,$2) {
  17342. $0 = $0|0;
  17343. $1 = $1|0;
  17344. $2 = $2|0;
  17345. 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;
  17346. sp = STACKTOP;
  17347. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  17348. $4 = ($3|0)==(0);
  17349. if ($4) {
  17350. $12 = 0;
  17351. } else {
  17352. $5 = Math_imul($1, $0)|0;
  17353. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  17354. $7 = ($6|0)==(0);
  17355. if ($7) {
  17356. $12 = 0;
  17357. } else {
  17358. $8 = Math_imul($5, $2)|0;
  17359. $9 = (_stbi__addsizes_valid($8)|0);
  17360. $10 = ($9|0)!=(0);
  17361. $12 = $10;
  17362. }
  17363. }
  17364. $11 = $12&1;
  17365. return ($11|0);
  17366. }
  17367. function _stbi__mul2sizes_valid($0,$1) {
  17368. $0 = $0|0;
  17369. $1 = $1|0;
  17370. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  17371. sp = STACKTOP;
  17372. $2 = $1 | $0;
  17373. $3 = ($2|0)<(0);
  17374. if ($3) {
  17375. $$0 = 0;
  17376. } else {
  17377. $4 = ($1|0)==(0);
  17378. if ($4) {
  17379. $$0 = 1;
  17380. } else {
  17381. $5 = (2147483647 / ($1|0))&-1;
  17382. $6 = ($5|0)>=($0|0);
  17383. $7 = $6&1;
  17384. $$0 = $7;
  17385. }
  17386. }
  17387. return ($$0|0);
  17388. }
  17389. function _stbi__addsizes_valid($0) {
  17390. $0 = $0|0;
  17391. var label = 0, sp = 0;
  17392. sp = STACKTOP;
  17393. return 1;
  17394. }
  17395. function _stbi__check_png_header($0) {
  17396. $0 = $0|0;
  17397. 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;
  17398. sp = STACKTOP;
  17399. $1 = (_stbi__get8($0)|0);
  17400. $2 = ($1<<24>>24)==(-119);
  17401. if ($2) {
  17402. $3 = (_stbi__get8($0)|0);
  17403. $4 = ($3<<24>>24)==(80);
  17404. if ($4) {
  17405. $5 = (_stbi__get8($0)|0);
  17406. $6 = ($5<<24>>24)==(78);
  17407. if ($6) {
  17408. $7 = (_stbi__get8($0)|0);
  17409. $8 = ($7<<24>>24)==(71);
  17410. if ($8) {
  17411. $9 = (_stbi__get8($0)|0);
  17412. $10 = ($9<<24>>24)==(13);
  17413. if ($10) {
  17414. $11 = (_stbi__get8($0)|0);
  17415. $12 = ($11<<24>>24)==(10);
  17416. if ($12) {
  17417. $13 = (_stbi__get8($0)|0);
  17418. $14 = ($13<<24>>24)==(26);
  17419. if ($14) {
  17420. $15 = (_stbi__get8($0)|0);
  17421. $16 = ($15<<24>>24)==(10);
  17422. if ($16) {
  17423. $$05 = 1;
  17424. return ($$05|0);
  17425. }
  17426. }
  17427. }
  17428. }
  17429. }
  17430. }
  17431. }
  17432. }
  17433. _stbi__err(10928);
  17434. $$05 = 0;
  17435. return ($$05|0);
  17436. }
  17437. function _stbi__get_chunk_header($0,$1) {
  17438. $0 = $0|0;
  17439. $1 = $1|0;
  17440. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  17441. sp = STACKTOP;
  17442. $2 = (_stbi__get32be($1)|0);
  17443. $3 = (_stbi__get32be($1)|0);
  17444. HEAP32[$0>>2] = $2;
  17445. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  17446. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  17447. return;
  17448. }
  17449. function _stbi__skip($0,$1) {
  17450. $0 = $0|0;
  17451. $1 = $1|0;
  17452. 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;
  17453. var $8 = 0, $9 = 0, label = 0, sp = 0;
  17454. sp = STACKTOP;
  17455. $2 = ($1|0)<(0);
  17456. if ($2) {
  17457. $3 = ((($0)) + 172|0);
  17458. $4 = HEAP32[$3>>2]|0;
  17459. $5 = ((($0)) + 168|0);
  17460. HEAP32[$5>>2] = $4;
  17461. return;
  17462. }
  17463. $6 = ((($0)) + 16|0);
  17464. $7 = HEAP32[$6>>2]|0;
  17465. $8 = ($7|0)==(0|0);
  17466. if (!($8)) {
  17467. $9 = ((($0)) + 172|0);
  17468. $10 = HEAP32[$9>>2]|0;
  17469. $11 = ((($0)) + 168|0);
  17470. $12 = HEAP32[$11>>2]|0;
  17471. $13 = $10;
  17472. $14 = (($13) - ($12))|0;
  17473. $15 = ($14|0)<($1|0);
  17474. if ($15) {
  17475. HEAP32[$11>>2] = $10;
  17476. $16 = ((($0)) + 20|0);
  17477. $17 = HEAP32[$16>>2]|0;
  17478. $18 = ((($0)) + 28|0);
  17479. $19 = HEAP32[$18>>2]|0;
  17480. $20 = (($1) - ($14))|0;
  17481. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  17482. return;
  17483. }
  17484. }
  17485. $21 = ((($0)) + 168|0);
  17486. $22 = HEAP32[$21>>2]|0;
  17487. $23 = (($22) + ($1)|0);
  17488. HEAP32[$21>>2] = $23;
  17489. return;
  17490. }
  17491. function _stbi__get32be($0) {
  17492. $0 = $0|0;
  17493. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  17494. sp = STACKTOP;
  17495. $1 = (_stbi__get16be($0)|0);
  17496. $2 = $1 << 16;
  17497. $3 = (_stbi__get16be($0)|0);
  17498. $4 = (($2) + ($3))|0;
  17499. return ($4|0);
  17500. }
  17501. function _stbi__get8($0) {
  17502. $0 = $0|0;
  17503. 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;
  17504. sp = STACKTOP;
  17505. $1 = ((($0)) + 168|0);
  17506. $2 = HEAP32[$1>>2]|0;
  17507. $3 = ((($0)) + 172|0);
  17508. $4 = HEAP32[$3>>2]|0;
  17509. $5 = ($2>>>0)<($4>>>0);
  17510. do {
  17511. if ($5) {
  17512. $$sink6 = $2;
  17513. } else {
  17514. $6 = ((($0)) + 32|0);
  17515. $7 = HEAP32[$6>>2]|0;
  17516. $8 = ($7|0)==(0);
  17517. if ($8) {
  17518. $$0 = 0;
  17519. return ($$0|0);
  17520. } else {
  17521. _stbi__refill_buffer($0);
  17522. $9 = HEAP32[$1>>2]|0;
  17523. $$sink6 = $9;
  17524. break;
  17525. }
  17526. }
  17527. } while(0);
  17528. $10 = ((($$sink6)) + 1|0);
  17529. HEAP32[$1>>2] = $10;
  17530. $11 = HEAP8[$$sink6>>0]|0;
  17531. $$0 = $11;
  17532. return ($$0|0);
  17533. }
  17534. function _stbi__get16be($0) {
  17535. $0 = $0|0;
  17536. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  17537. sp = STACKTOP;
  17538. $1 = (_stbi__get8($0)|0);
  17539. $2 = $1&255;
  17540. $3 = $2 << 8;
  17541. $4 = (_stbi__get8($0)|0);
  17542. $5 = $4&255;
  17543. $6 = $3 | $5;
  17544. return ($6|0);
  17545. }
  17546. function _stbi__getn($0,$1,$2) {
  17547. $0 = $0|0;
  17548. $1 = $1|0;
  17549. $2 = $2|0;
  17550. 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;
  17551. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17552. sp = STACKTOP;
  17553. $3 = ((($0)) + 16|0);
  17554. $4 = HEAP32[$3>>2]|0;
  17555. $5 = ($4|0)==(0|0);
  17556. if (!($5)) {
  17557. $6 = ((($0)) + 172|0);
  17558. $7 = HEAP32[$6>>2]|0;
  17559. $8 = ((($0)) + 168|0);
  17560. $9 = HEAP32[$8>>2]|0;
  17561. $10 = $9;
  17562. $11 = (($7) - ($10))|0;
  17563. $12 = ($11|0)<($2|0);
  17564. if ($12) {
  17565. _memcpy(($1|0),($9|0),($11|0))|0;
  17566. $13 = HEAP32[$3>>2]|0;
  17567. $14 = ((($0)) + 28|0);
  17568. $15 = HEAP32[$14>>2]|0;
  17569. $16 = (($1) + ($11)|0);
  17570. $17 = (($2) - ($11))|0;
  17571. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  17572. $19 = ($18|0)==($17|0);
  17573. $20 = $19&1;
  17574. $21 = HEAP32[$6>>2]|0;
  17575. HEAP32[$8>>2] = $21;
  17576. $$1 = $20;
  17577. return ($$1|0);
  17578. }
  17579. }
  17580. $22 = ((($0)) + 168|0);
  17581. $23 = HEAP32[$22>>2]|0;
  17582. $24 = (($23) + ($2)|0);
  17583. $25 = ((($0)) + 172|0);
  17584. $26 = HEAP32[$25>>2]|0;
  17585. $27 = ($24>>>0)>($26>>>0);
  17586. if ($27) {
  17587. $$1 = 0;
  17588. return ($$1|0);
  17589. }
  17590. _memcpy(($1|0),($23|0),($2|0))|0;
  17591. $28 = HEAP32[$22>>2]|0;
  17592. $29 = (($28) + ($2)|0);
  17593. HEAP32[$22>>2] = $29;
  17594. $$1 = 1;
  17595. return ($$1|0);
  17596. }
  17597. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  17598. $0 = $0|0;
  17599. $1 = $1|0;
  17600. $2 = $2|0;
  17601. $3 = $3|0;
  17602. $4 = $4|0;
  17603. 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;
  17604. sp = STACKTOP;
  17605. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  17606. $5 = sp;
  17607. $6 = (_stbi__malloc($2)|0);
  17608. $7 = ($6|0)==(0|0);
  17609. do {
  17610. if ($7) {
  17611. $$0 = 0;
  17612. } else {
  17613. HEAP32[$5>>2] = $0;
  17614. $8 = (($0) + ($1)|0);
  17615. $9 = ((($5)) + 4|0);
  17616. HEAP32[$9>>2] = $8;
  17617. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  17618. $11 = ($10|0)==(0);
  17619. $12 = ((($5)) + 20|0);
  17620. $13 = HEAP32[$12>>2]|0;
  17621. if ($11) {
  17622. _free($13);
  17623. $$0 = 0;
  17624. break;
  17625. }
  17626. $14 = ($3|0)==(0|0);
  17627. if ($14) {
  17628. $$0 = $13;
  17629. } else {
  17630. $15 = ((($5)) + 16|0);
  17631. $16 = HEAP32[$15>>2]|0;
  17632. $17 = $13;
  17633. $18 = (($16) - ($17))|0;
  17634. HEAP32[$3>>2] = $18;
  17635. $$0 = $13;
  17636. }
  17637. }
  17638. } while(0);
  17639. STACKTOP = sp;return ($$0|0);
  17640. }
  17641. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  17642. $0 = $0|0;
  17643. $1 = $1|0;
  17644. $2 = $2|0;
  17645. $3 = $3|0;
  17646. $4 = $4|0;
  17647. $5 = $5|0;
  17648. $6 = $6|0;
  17649. 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;
  17650. 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;
  17651. 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;
  17652. 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;
  17653. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  17654. sp = STACKTOP;
  17655. $7 = ($4|0)==(16);
  17656. $8 = $7 ? 2 : 1;
  17657. $9 = Math_imul($8, $3)|0;
  17658. $10 = ($6|0)==(0);
  17659. $11 = HEAP32[$0>>2]|0;
  17660. $12 = HEAP32[$11>>2]|0;
  17661. $13 = ((($11)) + 4|0);
  17662. $14 = HEAP32[$13>>2]|0;
  17663. if ($10) {
  17664. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  17665. $$4 = $15;
  17666. return ($$4|0);
  17667. }
  17668. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  17669. $17 = ((($0)) + 12|0);
  17670. $18 = ((($0)) + 12|0);
  17671. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  17672. while(1) {
  17673. $19 = HEAP32[$0>>2]|0;
  17674. $20 = HEAP32[$19>>2]|0;
  17675. $21 = (2980 + ($$0103117<<2)|0);
  17676. $22 = HEAP32[$21>>2]|0;
  17677. $23 = (3008 + ($$0103117<<2)|0);
  17678. $24 = HEAP32[$23>>2]|0;
  17679. $25 = (($20) + -1)|0;
  17680. $26 = (($25) - ($22))|0;
  17681. $27 = (($26) + ($24))|0;
  17682. $28 = (($27>>>0) / ($24>>>0))&-1;
  17683. $29 = ((($19)) + 4|0);
  17684. $30 = HEAP32[$29>>2]|0;
  17685. $31 = (3036 + ($$0103117<<2)|0);
  17686. $32 = HEAP32[$31>>2]|0;
  17687. $33 = (3064 + ($$0103117<<2)|0);
  17688. $34 = HEAP32[$33>>2]|0;
  17689. $35 = (($30) + -1)|0;
  17690. $36 = (($35) - ($32))|0;
  17691. $37 = (($36) + ($34))|0;
  17692. $38 = (($37>>>0) / ($34>>>0))&-1;
  17693. $39 = ($24>>>0)<=($27>>>0);
  17694. $40 = ($34>>>0)<=($37>>>0);
  17695. $or$cond = $39 & $40;
  17696. if ($or$cond) {
  17697. $41 = ((($19)) + 8|0);
  17698. $42 = HEAP32[$41>>2]|0;
  17699. $43 = Math_imul($28, $4)|0;
  17700. $44 = Math_imul($43, $42)|0;
  17701. $45 = (($44) + 7)|0;
  17702. $46 = $45 >> 3;
  17703. $47 = (($46) + 1)|0;
  17704. $48 = Math_imul($47, $38)|0;
  17705. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  17706. $50 = ($49|0)==(0);
  17707. if ($50) {
  17708. label = 13;
  17709. break;
  17710. }
  17711. $51 = ($38|0)>(0);
  17712. if ($51) {
  17713. $52 = ($28|0)>(0);
  17714. $$0106116 = 0;
  17715. while(1) {
  17716. if ($52) {
  17717. $53 = HEAP32[$33>>2]|0;
  17718. $54 = Math_imul($53, $$0106116)|0;
  17719. $55 = HEAP32[$31>>2]|0;
  17720. $56 = (($54) + ($55))|0;
  17721. $57 = HEAP32[$23>>2]|0;
  17722. $58 = HEAP32[$21>>2]|0;
  17723. $59 = Math_imul($56, $9)|0;
  17724. $60 = Math_imul($$0106116, $28)|0;
  17725. $$0107115 = 0;
  17726. while(1) {
  17727. $61 = Math_imul($57, $$0107115)|0;
  17728. $62 = (($61) + ($58))|0;
  17729. $63 = HEAP32[$0>>2]|0;
  17730. $64 = HEAP32[$63>>2]|0;
  17731. $65 = Math_imul($59, $64)|0;
  17732. $66 = (($16) + ($65)|0);
  17733. $67 = Math_imul($62, $9)|0;
  17734. $68 = (($66) + ($67)|0);
  17735. $69 = HEAP32[$18>>2]|0;
  17736. $70 = (($$0107115) + ($60))|0;
  17737. $71 = Math_imul($70, $9)|0;
  17738. $72 = (($69) + ($71)|0);
  17739. _memcpy(($68|0),($72|0),($9|0))|0;
  17740. $73 = (($$0107115) + 1)|0;
  17741. $74 = ($73|0)<($28|0);
  17742. if ($74) {
  17743. $$0107115 = $73;
  17744. } else {
  17745. break;
  17746. }
  17747. }
  17748. }
  17749. $75 = (($$0106116) + 1)|0;
  17750. $76 = ($75|0)<($38|0);
  17751. if ($76) {
  17752. $$0106116 = $75;
  17753. } else {
  17754. break;
  17755. }
  17756. }
  17757. }
  17758. $77 = HEAP32[$17>>2]|0;
  17759. _free($77);
  17760. $78 = (($$095119) + ($48)|0);
  17761. $79 = (($$099118) - ($48))|0;
  17762. $$3102$ph = $79;$$398$ph = $78;
  17763. } else {
  17764. $$3102$ph = $$099118;$$398$ph = $$095119;
  17765. }
  17766. $80 = (($$0103117) + 1)|0;
  17767. $81 = ($80|0)<(7);
  17768. if ($81) {
  17769. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  17770. } else {
  17771. label = 15;
  17772. break;
  17773. }
  17774. }
  17775. if ((label|0) == 13) {
  17776. _free($16);
  17777. $$4 = 0;
  17778. return ($$4|0);
  17779. }
  17780. else if ((label|0) == 15) {
  17781. $82 = ((($0)) + 12|0);
  17782. HEAP32[$82>>2] = $16;
  17783. $$4 = 1;
  17784. return ($$4|0);
  17785. }
  17786. return (0)|0;
  17787. }
  17788. function _stbi__compute_transparency16($0,$1,$2) {
  17789. $0 = $0|0;
  17790. $1 = $1|0;
  17791. $2 = $2|0;
  17792. 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;
  17793. 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;
  17794. sp = STACKTOP;
  17795. $3 = HEAP32[$0>>2]|0;
  17796. $4 = HEAP32[$3>>2]|0;
  17797. $5 = ((($3)) + 4|0);
  17798. $6 = HEAP32[$5>>2]|0;
  17799. $7 = Math_imul($6, $4)|0;
  17800. $8 = ((($0)) + 12|0);
  17801. $9 = HEAP32[$8>>2]|0;
  17802. switch ($2|0) {
  17803. case 2: {
  17804. $13 = ($7|0)==(0);
  17805. if ($13) {
  17806. return;
  17807. } else {
  17808. $$0323 = 0;$$04 = $9;
  17809. }
  17810. while(1) {
  17811. $14 = HEAP16[$$04>>1]|0;
  17812. $15 = HEAP16[$1>>1]|0;
  17813. $not$ = ($14<<16>>16)!=($15<<16>>16);
  17814. $16 = $not$ << 31 >> 31;
  17815. $17 = ((($$04)) + 2|0);
  17816. HEAP16[$17>>1] = $16;
  17817. $18 = ((($$04)) + 4|0);
  17818. $19 = (($$0323) + 1)|0;
  17819. $exitcond = ($19|0)==($7|0);
  17820. if ($exitcond) {
  17821. break;
  17822. } else {
  17823. $$0323 = $19;$$04 = $18;
  17824. }
  17825. }
  17826. return;
  17827. break;
  17828. }
  17829. case 4: {
  17830. $10 = ($7|0)==(0);
  17831. if ($10) {
  17832. return;
  17833. }
  17834. $11 = ((($1)) + 2|0);
  17835. $12 = ((($1)) + 4|0);
  17836. $$1335 = 0;$$16 = $9;
  17837. while(1) {
  17838. $20 = HEAP16[$$16>>1]|0;
  17839. $21 = HEAP16[$1>>1]|0;
  17840. $22 = ($20<<16>>16)==($21<<16>>16);
  17841. if ($22) {
  17842. $23 = ((($$16)) + 2|0);
  17843. $24 = HEAP16[$23>>1]|0;
  17844. $25 = HEAP16[$11>>1]|0;
  17845. $26 = ($24<<16>>16)==($25<<16>>16);
  17846. if ($26) {
  17847. $27 = ((($$16)) + 4|0);
  17848. $28 = HEAP16[$27>>1]|0;
  17849. $29 = HEAP16[$12>>1]|0;
  17850. $30 = ($28<<16>>16)==($29<<16>>16);
  17851. if ($30) {
  17852. $31 = ((($$16)) + 6|0);
  17853. HEAP16[$31>>1] = 0;
  17854. }
  17855. }
  17856. }
  17857. $32 = ((($$16)) + 8|0);
  17858. $33 = (($$1335) + 1)|0;
  17859. $exitcond9 = ($33|0)==($7|0);
  17860. if ($exitcond9) {
  17861. break;
  17862. } else {
  17863. $$1335 = $33;$$16 = $32;
  17864. }
  17865. }
  17866. return;
  17867. break;
  17868. }
  17869. default: {
  17870. ___assert_fail((10010|0),(9519|0),4569,(10062|0));
  17871. // unreachable;
  17872. }
  17873. }
  17874. }
  17875. function _stbi__compute_transparency($0,$1,$2) {
  17876. $0 = $0|0;
  17877. $1 = $1|0;
  17878. $2 = $2|0;
  17879. 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;
  17880. 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;
  17881. sp = STACKTOP;
  17882. $3 = HEAP32[$0>>2]|0;
  17883. $4 = HEAP32[$3>>2]|0;
  17884. $5 = ((($3)) + 4|0);
  17885. $6 = HEAP32[$5>>2]|0;
  17886. $7 = Math_imul($6, $4)|0;
  17887. $8 = ((($0)) + 12|0);
  17888. $9 = HEAP32[$8>>2]|0;
  17889. switch ($2|0) {
  17890. case 2: {
  17891. $13 = ($7|0)==(0);
  17892. if ($13) {
  17893. return;
  17894. } else {
  17895. $$0323 = 0;$$04 = $9;
  17896. }
  17897. while(1) {
  17898. $14 = HEAP8[$$04>>0]|0;
  17899. $15 = HEAP8[$1>>0]|0;
  17900. $not$ = ($14<<24>>24)!=($15<<24>>24);
  17901. $16 = $not$ << 31 >> 31;
  17902. $17 = ((($$04)) + 1|0);
  17903. HEAP8[$17>>0] = $16;
  17904. $18 = ((($$04)) + 2|0);
  17905. $19 = (($$0323) + 1)|0;
  17906. $exitcond = ($19|0)==($7|0);
  17907. if ($exitcond) {
  17908. break;
  17909. } else {
  17910. $$0323 = $19;$$04 = $18;
  17911. }
  17912. }
  17913. return;
  17914. break;
  17915. }
  17916. case 4: {
  17917. $10 = ($7|0)==(0);
  17918. if ($10) {
  17919. return;
  17920. }
  17921. $11 = ((($1)) + 1|0);
  17922. $12 = ((($1)) + 2|0);
  17923. $$1335 = 0;$$16 = $9;
  17924. while(1) {
  17925. $20 = HEAP8[$$16>>0]|0;
  17926. $21 = HEAP8[$1>>0]|0;
  17927. $22 = ($20<<24>>24)==($21<<24>>24);
  17928. if ($22) {
  17929. $23 = ((($$16)) + 1|0);
  17930. $24 = HEAP8[$23>>0]|0;
  17931. $25 = HEAP8[$11>>0]|0;
  17932. $26 = ($24<<24>>24)==($25<<24>>24);
  17933. if ($26) {
  17934. $27 = ((($$16)) + 2|0);
  17935. $28 = HEAP8[$27>>0]|0;
  17936. $29 = HEAP8[$12>>0]|0;
  17937. $30 = ($28<<24>>24)==($29<<24>>24);
  17938. if ($30) {
  17939. $31 = ((($$16)) + 3|0);
  17940. HEAP8[$31>>0] = 0;
  17941. }
  17942. }
  17943. }
  17944. $32 = ((($$16)) + 4|0);
  17945. $33 = (($$1335) + 1)|0;
  17946. $exitcond9 = ($33|0)==($7|0);
  17947. if ($exitcond9) {
  17948. break;
  17949. } else {
  17950. $$1335 = $33;$$16 = $32;
  17951. }
  17952. }
  17953. return;
  17954. break;
  17955. }
  17956. default: {
  17957. ___assert_fail((10010|0),(9519|0),4544,(10035|0));
  17958. // unreachable;
  17959. }
  17960. }
  17961. }
  17962. function _stbi__de_iphone($0) {
  17963. $0 = $0|0;
  17964. 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;
  17965. 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;
  17966. 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;
  17967. sp = STACKTOP;
  17968. $1 = HEAP32[$0>>2]|0;
  17969. $2 = HEAP32[$1>>2]|0;
  17970. $3 = ((($1)) + 4|0);
  17971. $4 = HEAP32[$3>>2]|0;
  17972. $5 = Math_imul($4, $2)|0;
  17973. $6 = ((($0)) + 12|0);
  17974. $7 = HEAP32[$6>>2]|0;
  17975. $8 = ((($1)) + 12|0);
  17976. $9 = HEAP32[$8>>2]|0;
  17977. switch ($9|0) {
  17978. case 3: {
  17979. $10 = ($5|0)==(0);
  17980. if ($10) {
  17981. return;
  17982. } else {
  17983. $$05158 = $7;$$059 = 0;
  17984. }
  17985. while(1) {
  17986. $11 = HEAP8[$$05158>>0]|0;
  17987. $12 = ((($$05158)) + 2|0);
  17988. $13 = HEAP8[$12>>0]|0;
  17989. HEAP8[$$05158>>0] = $13;
  17990. HEAP8[$12>>0] = $11;
  17991. $14 = ((($$05158)) + 3|0);
  17992. $15 = (($$059) + 1)|0;
  17993. $exitcond = ($15|0)==($5|0);
  17994. if ($exitcond) {
  17995. break;
  17996. } else {
  17997. $$05158 = $14;$$059 = $15;
  17998. }
  17999. }
  18000. return;
  18001. break;
  18002. }
  18003. case 4: {
  18004. $16 = HEAP32[5468]|0;
  18005. $17 = ($16|0)==(0);
  18006. $18 = ($5|0)!=(0);
  18007. if ($17) {
  18008. if ($18) {
  18009. $$25360 = $7;$$261 = 0;
  18010. } else {
  18011. return;
  18012. }
  18013. while(1) {
  18014. $42 = HEAP8[$$25360>>0]|0;
  18015. $43 = ((($$25360)) + 2|0);
  18016. $44 = HEAP8[$43>>0]|0;
  18017. HEAP8[$$25360>>0] = $44;
  18018. HEAP8[$43>>0] = $42;
  18019. $45 = ((($$25360)) + 4|0);
  18020. $46 = (($$261) + 1)|0;
  18021. $exitcond68 = ($46|0)==($5|0);
  18022. if ($exitcond68) {
  18023. break;
  18024. } else {
  18025. $$25360 = $45;$$261 = $46;
  18026. }
  18027. }
  18028. return;
  18029. }
  18030. if ($18) {
  18031. $$15263 = $7;$$164 = 0;
  18032. } else {
  18033. return;
  18034. }
  18035. while(1) {
  18036. $19 = ((($$15263)) + 3|0);
  18037. $20 = HEAP8[$19>>0]|0;
  18038. $21 = HEAP8[$$15263>>0]|0;
  18039. $22 = ($20<<24>>24)==(0);
  18040. $23 = ((($$15263)) + 2|0);
  18041. $24 = HEAP8[$23>>0]|0;
  18042. if ($22) {
  18043. HEAP8[$$15263>>0] = $24;
  18044. $$sink = $21;
  18045. } else {
  18046. $25 = $24&255;
  18047. $26 = ($25*255)|0;
  18048. $27 = $20&255;
  18049. $28 = (($26>>>0) / ($27>>>0))&-1;
  18050. $29 = $28&255;
  18051. HEAP8[$$15263>>0] = $29;
  18052. $30 = ((($$15263)) + 1|0);
  18053. $31 = HEAP8[$30>>0]|0;
  18054. $32 = $31&255;
  18055. $33 = ($32*255)|0;
  18056. $34 = (($33>>>0) / ($27>>>0))&-1;
  18057. $35 = $34&255;
  18058. HEAP8[$30>>0] = $35;
  18059. $36 = $21&255;
  18060. $37 = ($36*255)|0;
  18061. $38 = (($37>>>0) / ($27>>>0))&-1;
  18062. $39 = $38&255;
  18063. $$sink = $39;
  18064. }
  18065. HEAP8[$23>>0] = $$sink;
  18066. $40 = ((($$15263)) + 4|0);
  18067. $41 = (($$164) + 1)|0;
  18068. $exitcond69 = ($41|0)==($5|0);
  18069. if ($exitcond69) {
  18070. break;
  18071. } else {
  18072. $$15263 = $40;$$164 = $41;
  18073. }
  18074. }
  18075. return;
  18076. break;
  18077. }
  18078. default: {
  18079. ___assert_fail((9976|0),(9519|0),4650,(9994|0));
  18080. // unreachable;
  18081. }
  18082. }
  18083. }
  18084. function _stbi__expand_png_palette($0,$1,$2) {
  18085. $0 = $0|0;
  18086. $1 = $1|0;
  18087. $2 = $2|0;
  18088. 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;
  18089. 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;
  18090. 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;
  18091. sp = STACKTOP;
  18092. $3 = HEAP32[$0>>2]|0;
  18093. $4 = HEAP32[$3>>2]|0;
  18094. $5 = ((($3)) + 4|0);
  18095. $6 = HEAP32[$5>>2]|0;
  18096. $7 = Math_imul($6, $4)|0;
  18097. $8 = ((($0)) + 12|0);
  18098. $9 = HEAP32[$8>>2]|0;
  18099. $10 = (_stbi__malloc_mad2($7,$2)|0);
  18100. $11 = ($10|0)==(0|0);
  18101. if ($11) {
  18102. _stbi__err(9574);
  18103. $$0 = 0;
  18104. return ($$0|0);
  18105. }
  18106. $12 = ($2|0)==(3);
  18107. $13 = ($7|0)!=(0);
  18108. if ($12) {
  18109. if ($13) {
  18110. $$0574 = 0;$$0583 = $10;
  18111. while(1) {
  18112. $14 = (($9) + ($$0574)|0);
  18113. $15 = HEAP8[$14>>0]|0;
  18114. $16 = $15&255;
  18115. $17 = $16 << 2;
  18116. $18 = (($1) + ($17)|0);
  18117. $19 = HEAP8[$18>>0]|0;
  18118. HEAP8[$$0583>>0] = $19;
  18119. $20 = $17 | 1;
  18120. $21 = (($1) + ($20)|0);
  18121. $22 = HEAP8[$21>>0]|0;
  18122. $23 = ((($$0583)) + 1|0);
  18123. HEAP8[$23>>0] = $22;
  18124. $24 = $17 | 2;
  18125. $25 = (($1) + ($24)|0);
  18126. $26 = HEAP8[$25>>0]|0;
  18127. $27 = ((($$0583)) + 2|0);
  18128. HEAP8[$27>>0] = $26;
  18129. $28 = ((($$0583)) + 3|0);
  18130. $29 = (($$0574) + 1)|0;
  18131. $exitcond = ($29|0)==($7|0);
  18132. if ($exitcond) {
  18133. break;
  18134. } else {
  18135. $$0574 = $29;$$0583 = $28;
  18136. }
  18137. }
  18138. }
  18139. } else {
  18140. if ($13) {
  18141. $$1595 = $10;$$16 = 0;
  18142. while(1) {
  18143. $30 = (($9) + ($$16)|0);
  18144. $31 = HEAP8[$30>>0]|0;
  18145. $32 = $31&255;
  18146. $33 = $32 << 2;
  18147. $34 = (($1) + ($33)|0);
  18148. $35 = HEAP8[$34>>0]|0;
  18149. HEAP8[$$1595>>0] = $35;
  18150. $36 = $33 | 1;
  18151. $37 = (($1) + ($36)|0);
  18152. $38 = HEAP8[$37>>0]|0;
  18153. $39 = ((($$1595)) + 1|0);
  18154. HEAP8[$39>>0] = $38;
  18155. $40 = $33 | 2;
  18156. $41 = (($1) + ($40)|0);
  18157. $42 = HEAP8[$41>>0]|0;
  18158. $43 = ((($$1595)) + 2|0);
  18159. HEAP8[$43>>0] = $42;
  18160. $44 = $33 | 3;
  18161. $45 = (($1) + ($44)|0);
  18162. $46 = HEAP8[$45>>0]|0;
  18163. $47 = ((($$1595)) + 3|0);
  18164. HEAP8[$47>>0] = $46;
  18165. $48 = ((($$1595)) + 4|0);
  18166. $49 = (($$16) + 1)|0;
  18167. $exitcond9 = ($49|0)==($7|0);
  18168. if ($exitcond9) {
  18169. break;
  18170. } else {
  18171. $$1595 = $48;$$16 = $49;
  18172. }
  18173. }
  18174. }
  18175. }
  18176. $50 = HEAP32[$8>>2]|0;
  18177. _free($50);
  18178. HEAP32[$8>>2] = $10;
  18179. $$0 = 1;
  18180. return ($$0|0);
  18181. }
  18182. function _stbi__malloc_mad2($0,$1) {
  18183. $0 = $0|0;
  18184. $1 = $1|0;
  18185. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  18186. sp = STACKTOP;
  18187. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  18188. $3 = ($2|0)==(0);
  18189. if ($3) {
  18190. $$0 = 0;
  18191. return ($$0|0);
  18192. }
  18193. $4 = Math_imul($1, $0)|0;
  18194. $5 = (_stbi__malloc($4)|0);
  18195. $$0 = $5;
  18196. return ($$0|0);
  18197. }
  18198. function _stbi__mad2sizes_valid($0,$1) {
  18199. $0 = $0|0;
  18200. $1 = $1|0;
  18201. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  18202. sp = STACKTOP;
  18203. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  18204. $3 = ($2|0)==(0);
  18205. if ($3) {
  18206. $8 = 0;
  18207. $7 = $8&1;
  18208. return ($7|0);
  18209. }
  18210. $4 = Math_imul($1, $0)|0;
  18211. $5 = (_stbi__addsizes_valid($4)|0);
  18212. $6 = ($5|0)!=(0);
  18213. $8 = $6;
  18214. $7 = $8&1;
  18215. return ($7|0);
  18216. }
  18217. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  18218. $0 = $0|0;
  18219. $1 = $1|0;
  18220. $2 = $2|0;
  18221. $3 = $3|0;
  18222. $4 = $4|0;
  18223. $5 = $5|0;
  18224. $6 = $6|0;
  18225. $7 = $7|0;
  18226. 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;
  18227. 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;
  18228. 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;
  18229. 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;
  18230. 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;
  18231. 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;
  18232. 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;
  18233. 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;
  18234. 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;
  18235. 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;
  18236. 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;
  18237. 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;
  18238. 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;
  18239. 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;
  18240. 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;
  18241. 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;
  18242. 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;
  18243. 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;
  18244. 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;
  18245. 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;
  18246. 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;
  18247. 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;
  18248. 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;
  18249. 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;
  18250. 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;
  18251. 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;
  18252. 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;
  18253. 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;
  18254. 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;
  18255. 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;
  18256. 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;
  18257. 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;
  18258. 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;
  18259. 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;
  18260. 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;
  18261. 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;
  18262. 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;
  18263. 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;
  18264. sp = STACKTOP;
  18265. $8 = ($6|0)==(16);
  18266. $9 = $8 ? 2 : 1;
  18267. $10 = HEAP32[$0>>2]|0;
  18268. $11 = Math_imul($4, $3)|0;
  18269. $12 = Math_imul($9, $11)|0;
  18270. $13 = ((($10)) + 8|0);
  18271. $14 = HEAP32[$13>>2]|0;
  18272. $15 = Math_imul($9, $3)|0;
  18273. $16 = Math_imul($14, $9)|0;
  18274. $17 = ($14|0)==($3|0);
  18275. $18 = (($14) + 1)|0;
  18276. $19 = ($18|0)==($3|0);
  18277. $or$cond = $17 | $19;
  18278. if (!($or$cond)) {
  18279. ___assert_fail((10091|0),(9519|0),4294,(10132|0));
  18280. // unreachable;
  18281. }
  18282. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  18283. $21 = ((($0)) + 12|0);
  18284. HEAP32[$21>>2] = $20;
  18285. $22 = ($20|0)==(0|0);
  18286. if ($22) {
  18287. _stbi__err(9574);
  18288. $$2 = 0;
  18289. return ($$2|0);
  18290. }
  18291. $23 = Math_imul($14, $4)|0;
  18292. $24 = Math_imul($23, $6)|0;
  18293. $25 = (($24) + 7)|0;
  18294. $26 = $25 >>> 3;
  18295. $27 = (($26) + 1)|0;
  18296. $28 = Math_imul($27, $5)|0;
  18297. $29 = HEAP32[$10>>2]|0;
  18298. $30 = ($29|0)==($4|0);
  18299. if ($30) {
  18300. $31 = ((($10)) + 4|0);
  18301. $32 = HEAP32[$31>>2]|0;
  18302. $33 = ($32|0)==($5|0);
  18303. if ($33) {
  18304. $34 = ($28|0)==($2|0);
  18305. if (!($34)) {
  18306. _stbi__err(10159);
  18307. $$2 = 0;
  18308. return ($$2|0);
  18309. }
  18310. } else {
  18311. label = 9;
  18312. }
  18313. } else {
  18314. label = 9;
  18315. }
  18316. if ((label|0) == 9) {
  18317. $35 = ($28>>>0)>($2>>>0);
  18318. if ($35) {
  18319. _stbi__err(10159);
  18320. $$2 = 0;
  18321. return ($$2|0);
  18322. }
  18323. }
  18324. $36 = ($5|0)==(0);
  18325. L18: do {
  18326. if (!($36)) {
  18327. $37 = ($6|0)<(8);
  18328. $38 = ($26>>>0)>($4>>>0);
  18329. $39 = (($11) - ($26))|0;
  18330. $40 = (0 - ($12))|0;
  18331. $41 = ($6|0)==(8);
  18332. $brmerge = $37 | $17;
  18333. $42 = ($4|0)==(0);
  18334. $$0614793 = (($4) + -1)|0;
  18335. $43 = ($$0614793|0)==(0);
  18336. $$1615785 = (($4) + -1)|0;
  18337. $44 = ($$1615785|0)==(0);
  18338. $$2616776 = (($4) + -1)|0;
  18339. $45 = ($$2616776|0)==(0);
  18340. $$3617767 = (($4) + -1)|0;
  18341. $46 = ($$3617767|0)==(0);
  18342. $$4618758 = (($4) + -1)|0;
  18343. $47 = ($$4618758|0)==(0);
  18344. $$5619750 = (($4) + -1)|0;
  18345. $48 = ($$5619750|0)==(0);
  18346. $$6620742 = (($4) + -1)|0;
  18347. $49 = ($$6620742|0)==(0);
  18348. $$not = $8 ^ 1;
  18349. $brmerge894 = $42 | $$not;
  18350. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  18351. while(1) {
  18352. $50 = HEAP32[$21>>2]|0;
  18353. $51 = Math_imul($$0623814, $12)|0;
  18354. $52 = (($50) + ($51)|0);
  18355. $53 = ((($$0577817)) + 1|0);
  18356. $54 = HEAP8[$$0577817>>0]|0;
  18357. $55 = $54&255;
  18358. $56 = ($54&255)>(4);
  18359. if ($56) {
  18360. label = 105;
  18361. break;
  18362. }
  18363. if ($37) {
  18364. if ($38) {
  18365. label = 16;
  18366. break;
  18367. }
  18368. $57 = (($52) + ($39)|0);
  18369. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  18370. } else {
  18371. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  18372. }
  18373. $58 = (($$0597) + ($40)|0);
  18374. $59 = ($$0623814|0)==(0);
  18375. if ($59) {
  18376. $60 = (10198 + ($55)|0);
  18377. $61 = HEAP8[$60>>0]|0;
  18378. $62 = $61&255;
  18379. $$0588 = $62;
  18380. } else {
  18381. $$0588 = $55;
  18382. }
  18383. $63 = ($$1612|0)>(0);
  18384. L30: do {
  18385. if ($63) {
  18386. $trunc638 = $$0588&255;
  18387. $$0625734 = 0;
  18388. while(1) {
  18389. switch ($trunc638<<24>>24) {
  18390. case 0: {
  18391. $64 = (($53) + ($$0625734)|0);
  18392. $65 = HEAP8[$64>>0]|0;
  18393. $$sink = $65;
  18394. label = 30;
  18395. break;
  18396. }
  18397. case 1: {
  18398. $66 = (($53) + ($$0625734)|0);
  18399. $67 = HEAP8[$66>>0]|0;
  18400. $$sink = $67;
  18401. label = 30;
  18402. break;
  18403. }
  18404. case 2: {
  18405. $68 = (($53) + ($$0625734)|0);
  18406. $69 = HEAP8[$68>>0]|0;
  18407. $70 = $69&255;
  18408. $71 = (($58) + ($$0625734)|0);
  18409. $72 = HEAP8[$71>>0]|0;
  18410. $73 = $72&255;
  18411. $74 = (($73) + ($70))|0;
  18412. $75 = $74&255;
  18413. $$sink = $75;
  18414. label = 30;
  18415. break;
  18416. }
  18417. case 3: {
  18418. $76 = (($53) + ($$0625734)|0);
  18419. $77 = HEAP8[$76>>0]|0;
  18420. $78 = $77&255;
  18421. $79 = (($58) + ($$0625734)|0);
  18422. $80 = HEAP8[$79>>0]|0;
  18423. $81 = $80&255;
  18424. $82 = $81 >>> 1;
  18425. $83 = (($82) + ($78))|0;
  18426. $84 = $83&255;
  18427. $$sink = $84;
  18428. label = 30;
  18429. break;
  18430. }
  18431. case 4: {
  18432. $85 = (($53) + ($$0625734)|0);
  18433. $86 = HEAP8[$85>>0]|0;
  18434. $87 = $86&255;
  18435. $88 = (($58) + ($$0625734)|0);
  18436. $89 = HEAP8[$88>>0]|0;
  18437. $90 = $89&255;
  18438. $91 = (_stbi__paeth(0,$90,0)|0);
  18439. $92 = (($91) + ($87))|0;
  18440. $93 = $92&255;
  18441. $$sink = $93;
  18442. label = 30;
  18443. break;
  18444. }
  18445. case 5: {
  18446. $94 = (($53) + ($$0625734)|0);
  18447. $95 = HEAP8[$94>>0]|0;
  18448. $$sink = $95;
  18449. label = 30;
  18450. break;
  18451. }
  18452. case 6: {
  18453. $96 = (($53) + ($$0625734)|0);
  18454. $97 = HEAP8[$96>>0]|0;
  18455. $$sink = $97;
  18456. label = 30;
  18457. break;
  18458. }
  18459. default: {
  18460. }
  18461. }
  18462. if ((label|0) == 30) {
  18463. label = 0;
  18464. $$sink1 = (($$0597) + ($$0625734)|0);
  18465. HEAP8[$$sink1>>0] = $$sink;
  18466. }
  18467. $98 = (($$0625734) + 1)|0;
  18468. $exitcond864 = ($98|0)==($$1612|0);
  18469. if ($exitcond864) {
  18470. break L30;
  18471. } else {
  18472. $$0625734 = $98;
  18473. }
  18474. }
  18475. }
  18476. } while(0);
  18477. do {
  18478. if ($41) {
  18479. if (!($17)) {
  18480. $99 = (($$0597) + ($14)|0);
  18481. HEAP8[$99>>0] = -1;
  18482. }
  18483. $100 = (($53) + ($14)|0);
  18484. $$1578 = $100;$$sink641 = $3;
  18485. } else {
  18486. if (!($8)) {
  18487. $105 = ((($$0577817)) + 2|0);
  18488. $$1578 = $105;$$sink641 = 1;
  18489. break;
  18490. }
  18491. if (!($17)) {
  18492. $101 = (($$1612) + 1)|0;
  18493. $102 = (($$0597) + ($101)|0);
  18494. $103 = (($$0597) + ($$1612)|0);
  18495. HEAP8[$103>>0] = -1;
  18496. HEAP8[$102>>0] = -1;
  18497. }
  18498. $104 = (($53) + ($$1612)|0);
  18499. $$1578 = $104;$$sink641 = $15;
  18500. }
  18501. } while(0);
  18502. $106 = (($$0597) + ($$sink641)|0);
  18503. $107 = (($58) + ($$sink641)|0);
  18504. if ($brmerge) {
  18505. $108 = (($$1609) + -1)|0;
  18506. $109 = Math_imul($108, $$1612)|0;
  18507. $trunc637 = $$0588&255;
  18508. switch ($trunc637<<24>>24) {
  18509. case 0: {
  18510. _memcpy(($106|0),($$1578|0),($109|0))|0;
  18511. break;
  18512. }
  18513. case 1: {
  18514. $115 = ($109|0)>(0);
  18515. if ($115) {
  18516. $$1626812 = 0;
  18517. while(1) {
  18518. $116 = (($$1578) + ($$1626812)|0);
  18519. $117 = HEAP8[$116>>0]|0;
  18520. $118 = $117&255;
  18521. $119 = (($$1626812) - ($$1612))|0;
  18522. $120 = (($106) + ($119)|0);
  18523. $121 = HEAP8[$120>>0]|0;
  18524. $122 = $121&255;
  18525. $123 = (($122) + ($118))|0;
  18526. $124 = $123&255;
  18527. $125 = (($106) + ($$1626812)|0);
  18528. HEAP8[$125>>0] = $124;
  18529. $126 = (($$1626812) + 1)|0;
  18530. $exitcond886 = ($126|0)==($109|0);
  18531. if ($exitcond886) {
  18532. break;
  18533. } else {
  18534. $$1626812 = $126;
  18535. }
  18536. }
  18537. }
  18538. break;
  18539. }
  18540. case 2: {
  18541. $114 = ($109|0)>(0);
  18542. if ($114) {
  18543. $$2627810 = 0;
  18544. while(1) {
  18545. $127 = (($$1578) + ($$2627810)|0);
  18546. $128 = HEAP8[$127>>0]|0;
  18547. $129 = $128&255;
  18548. $130 = (($107) + ($$2627810)|0);
  18549. $131 = HEAP8[$130>>0]|0;
  18550. $132 = $131&255;
  18551. $133 = (($132) + ($129))|0;
  18552. $134 = $133&255;
  18553. $135 = (($106) + ($$2627810)|0);
  18554. HEAP8[$135>>0] = $134;
  18555. $136 = (($$2627810) + 1)|0;
  18556. $exitcond885 = ($136|0)==($109|0);
  18557. if ($exitcond885) {
  18558. break;
  18559. } else {
  18560. $$2627810 = $136;
  18561. }
  18562. }
  18563. }
  18564. break;
  18565. }
  18566. case 3: {
  18567. $113 = ($109|0)>(0);
  18568. if ($113) {
  18569. $$3628808 = 0;
  18570. while(1) {
  18571. $137 = (($$1578) + ($$3628808)|0);
  18572. $138 = HEAP8[$137>>0]|0;
  18573. $139 = $138&255;
  18574. $140 = (($107) + ($$3628808)|0);
  18575. $141 = HEAP8[$140>>0]|0;
  18576. $142 = $141&255;
  18577. $143 = (($$3628808) - ($$1612))|0;
  18578. $144 = (($106) + ($143)|0);
  18579. $145 = HEAP8[$144>>0]|0;
  18580. $146 = $145&255;
  18581. $147 = (($146) + ($142))|0;
  18582. $148 = $147 >>> 1;
  18583. $149 = (($148) + ($139))|0;
  18584. $150 = $149&255;
  18585. $151 = (($106) + ($$3628808)|0);
  18586. HEAP8[$151>>0] = $150;
  18587. $152 = (($$3628808) + 1)|0;
  18588. $exitcond884 = ($152|0)==($109|0);
  18589. if ($exitcond884) {
  18590. break;
  18591. } else {
  18592. $$3628808 = $152;
  18593. }
  18594. }
  18595. }
  18596. break;
  18597. }
  18598. case 4: {
  18599. $112 = ($109|0)>(0);
  18600. if ($112) {
  18601. $$4629806 = 0;
  18602. while(1) {
  18603. $153 = (($$1578) + ($$4629806)|0);
  18604. $154 = HEAP8[$153>>0]|0;
  18605. $155 = $154&255;
  18606. $156 = (($$4629806) - ($$1612))|0;
  18607. $157 = (($106) + ($156)|0);
  18608. $158 = HEAP8[$157>>0]|0;
  18609. $159 = $158&255;
  18610. $160 = (($107) + ($$4629806)|0);
  18611. $161 = HEAP8[$160>>0]|0;
  18612. $162 = $161&255;
  18613. $163 = (($107) + ($156)|0);
  18614. $164 = HEAP8[$163>>0]|0;
  18615. $165 = $164&255;
  18616. $166 = (_stbi__paeth($159,$162,$165)|0);
  18617. $167 = (($166) + ($155))|0;
  18618. $168 = $167&255;
  18619. $169 = (($106) + ($$4629806)|0);
  18620. HEAP8[$169>>0] = $168;
  18621. $170 = (($$4629806) + 1)|0;
  18622. $exitcond883 = ($170|0)==($109|0);
  18623. if ($exitcond883) {
  18624. break;
  18625. } else {
  18626. $$4629806 = $170;
  18627. }
  18628. }
  18629. }
  18630. break;
  18631. }
  18632. case 5: {
  18633. $111 = ($109|0)>(0);
  18634. if ($111) {
  18635. $$5630804 = 0;
  18636. while(1) {
  18637. $171 = (($$1578) + ($$5630804)|0);
  18638. $172 = HEAP8[$171>>0]|0;
  18639. $173 = $172&255;
  18640. $174 = (($$5630804) - ($$1612))|0;
  18641. $175 = (($106) + ($174)|0);
  18642. $176 = HEAP8[$175>>0]|0;
  18643. $177 = $176&255;
  18644. $178 = $177 >>> 1;
  18645. $179 = (($178) + ($173))|0;
  18646. $180 = $179&255;
  18647. $181 = (($106) + ($$5630804)|0);
  18648. HEAP8[$181>>0] = $180;
  18649. $182 = (($$5630804) + 1)|0;
  18650. $exitcond882 = ($182|0)==($109|0);
  18651. if ($exitcond882) {
  18652. break;
  18653. } else {
  18654. $$5630804 = $182;
  18655. }
  18656. }
  18657. }
  18658. break;
  18659. }
  18660. case 6: {
  18661. $110 = ($109|0)>(0);
  18662. if ($110) {
  18663. $$6631802 = 0;
  18664. while(1) {
  18665. $183 = (($$1578) + ($$6631802)|0);
  18666. $184 = HEAP8[$183>>0]|0;
  18667. $185 = $184&255;
  18668. $186 = (($$6631802) - ($$1612))|0;
  18669. $187 = (($106) + ($186)|0);
  18670. $188 = HEAP8[$187>>0]|0;
  18671. $189 = $188&255;
  18672. $190 = (_stbi__paeth($189,0,0)|0);
  18673. $191 = (($190) + ($185))|0;
  18674. $192 = $191&255;
  18675. $193 = (($106) + ($$6631802)|0);
  18676. HEAP8[$193>>0] = $192;
  18677. $194 = (($$6631802) + 1)|0;
  18678. $exitcond881 = ($194|0)==($109|0);
  18679. if ($exitcond881) {
  18680. break;
  18681. } else {
  18682. $$6631802 = $194;
  18683. }
  18684. }
  18685. }
  18686. break;
  18687. }
  18688. default: {
  18689. }
  18690. }
  18691. $195 = (($$1578) + ($109)|0);
  18692. $$11$ph = $195;
  18693. } else {
  18694. if (!($19)) {
  18695. label = 58;
  18696. break;
  18697. }
  18698. $trunc = $$0588&255;
  18699. switch ($trunc<<24>>24) {
  18700. case 0: {
  18701. if ($43) {
  18702. $$9586 = $$1578;
  18703. } else {
  18704. $208 = ($$1612|0)>(0);
  18705. $209 = Math_imul($$6620742, $$1612)|0;
  18706. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  18707. while(1) {
  18708. if ($208) {
  18709. $$7632790 = 0;
  18710. while(1) {
  18711. $210 = (($$2579795) + ($$7632790)|0);
  18712. $211 = HEAP8[$210>>0]|0;
  18713. $212 = (($$2599794) + ($$7632790)|0);
  18714. HEAP8[$212>>0] = $211;
  18715. $213 = (($$7632790) + 1)|0;
  18716. $exitcond877 = ($213|0)==($$1612|0);
  18717. if ($exitcond877) {
  18718. break;
  18719. } else {
  18720. $$7632790 = $213;
  18721. }
  18722. }
  18723. }
  18724. $214 = (($$2599794) + ($$1612)|0);
  18725. HEAP8[$214>>0] = -1;
  18726. $215 = (($$2579795) + ($$1612)|0);
  18727. $216 = (($$2599794) + ($15)|0);
  18728. $$0614 = (($$0614796) + -1)|0;
  18729. $217 = ($$0614|0)==(0);
  18730. if ($217) {
  18731. break;
  18732. } else {
  18733. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  18734. }
  18735. }
  18736. $scevgep879 = (($$1578) + ($209)|0);
  18737. $$9586 = $scevgep879;
  18738. }
  18739. break;
  18740. }
  18741. case 1: {
  18742. if ($44) {
  18743. $$9586 = $$1578;
  18744. } else {
  18745. $206 = ($$1612|0)>(0);
  18746. $207 = Math_imul($$6620742, $$1612)|0;
  18747. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  18748. while(1) {
  18749. if ($206) {
  18750. $$8633782 = 0;
  18751. while(1) {
  18752. $218 = (($$3580787) + ($$8633782)|0);
  18753. $219 = HEAP8[$218>>0]|0;
  18754. $220 = $219&255;
  18755. $221 = (($$8633782) - ($15))|0;
  18756. $222 = (($$3600786) + ($221)|0);
  18757. $223 = HEAP8[$222>>0]|0;
  18758. $224 = $223&255;
  18759. $225 = (($224) + ($220))|0;
  18760. $226 = $225&255;
  18761. $227 = (($$3600786) + ($$8633782)|0);
  18762. HEAP8[$227>>0] = $226;
  18763. $228 = (($$8633782) + 1)|0;
  18764. $exitcond875 = ($228|0)==($$1612|0);
  18765. if ($exitcond875) {
  18766. break;
  18767. } else {
  18768. $$8633782 = $228;
  18769. }
  18770. }
  18771. }
  18772. $229 = (($$3600786) + ($$1612)|0);
  18773. HEAP8[$229>>0] = -1;
  18774. $230 = (($$3580787) + ($$1612)|0);
  18775. $231 = (($$3600786) + ($15)|0);
  18776. $$1615 = (($$1615788) + -1)|0;
  18777. $232 = ($$1615|0)==(0);
  18778. if ($232) {
  18779. break;
  18780. } else {
  18781. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  18782. }
  18783. }
  18784. $scevgep876 = (($$1578) + ($207)|0);
  18785. $$9586 = $scevgep876;
  18786. }
  18787. break;
  18788. }
  18789. case 2: {
  18790. if ($45) {
  18791. $$9586 = $$1578;
  18792. } else {
  18793. $204 = ($$1612|0)>(0);
  18794. $205 = Math_imul($$6620742, $$1612)|0;
  18795. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  18796. while(1) {
  18797. if ($204) {
  18798. $$9634773 = 0;
  18799. while(1) {
  18800. $233 = (($$4581779) + ($$9634773)|0);
  18801. $234 = HEAP8[$233>>0]|0;
  18802. $235 = $234&255;
  18803. $236 = (($$3592778) + ($$9634773)|0);
  18804. $237 = HEAP8[$236>>0]|0;
  18805. $238 = $237&255;
  18806. $239 = (($238) + ($235))|0;
  18807. $240 = $239&255;
  18808. $241 = (($$4601777) + ($$9634773)|0);
  18809. HEAP8[$241>>0] = $240;
  18810. $242 = (($$9634773) + 1)|0;
  18811. $exitcond873 = ($242|0)==($$1612|0);
  18812. if ($exitcond873) {
  18813. break;
  18814. } else {
  18815. $$9634773 = $242;
  18816. }
  18817. }
  18818. }
  18819. $243 = (($$4601777) + ($$1612)|0);
  18820. HEAP8[$243>>0] = -1;
  18821. $244 = (($$4581779) + ($$1612)|0);
  18822. $245 = (($$4601777) + ($15)|0);
  18823. $246 = (($$3592778) + ($15)|0);
  18824. $$2616 = (($$2616780) + -1)|0;
  18825. $247 = ($$2616|0)==(0);
  18826. if ($247) {
  18827. break;
  18828. } else {
  18829. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  18830. }
  18831. }
  18832. $scevgep874 = (($$1578) + ($205)|0);
  18833. $$9586 = $scevgep874;
  18834. }
  18835. break;
  18836. }
  18837. case 3: {
  18838. if ($46) {
  18839. $$9586 = $$1578;
  18840. } else {
  18841. $202 = ($$1612|0)>(0);
  18842. $203 = Math_imul($$6620742, $$1612)|0;
  18843. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  18844. while(1) {
  18845. if ($202) {
  18846. $$10635764 = 0;
  18847. while(1) {
  18848. $248 = (($$5582770) + ($$10635764)|0);
  18849. $249 = HEAP8[$248>>0]|0;
  18850. $250 = $249&255;
  18851. $251 = (($$4593769) + ($$10635764)|0);
  18852. $252 = HEAP8[$251>>0]|0;
  18853. $253 = $252&255;
  18854. $254 = (($$10635764) - ($15))|0;
  18855. $255 = (($$5602768) + ($254)|0);
  18856. $256 = HEAP8[$255>>0]|0;
  18857. $257 = $256&255;
  18858. $258 = (($257) + ($253))|0;
  18859. $259 = $258 >>> 1;
  18860. $260 = (($259) + ($250))|0;
  18861. $261 = $260&255;
  18862. $262 = (($$5602768) + ($$10635764)|0);
  18863. HEAP8[$262>>0] = $261;
  18864. $263 = (($$10635764) + 1)|0;
  18865. $exitcond871 = ($263|0)==($$1612|0);
  18866. if ($exitcond871) {
  18867. break;
  18868. } else {
  18869. $$10635764 = $263;
  18870. }
  18871. }
  18872. }
  18873. $264 = (($$5602768) + ($$1612)|0);
  18874. HEAP8[$264>>0] = -1;
  18875. $265 = (($$5582770) + ($$1612)|0);
  18876. $266 = (($$5602768) + ($15)|0);
  18877. $267 = (($$4593769) + ($15)|0);
  18878. $$3617 = (($$3617771) + -1)|0;
  18879. $268 = ($$3617|0)==(0);
  18880. if ($268) {
  18881. break;
  18882. } else {
  18883. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  18884. }
  18885. }
  18886. $scevgep872 = (($$1578) + ($203)|0);
  18887. $$9586 = $scevgep872;
  18888. }
  18889. break;
  18890. }
  18891. case 4: {
  18892. if ($47) {
  18893. $$9586 = $$1578;
  18894. } else {
  18895. $200 = ($$1612|0)>(0);
  18896. $201 = Math_imul($$6620742, $$1612)|0;
  18897. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  18898. while(1) {
  18899. if ($200) {
  18900. $$11636755 = 0;
  18901. while(1) {
  18902. $269 = (($$6583761) + ($$11636755)|0);
  18903. $270 = HEAP8[$269>>0]|0;
  18904. $271 = $270&255;
  18905. $272 = (($$11636755) - ($15))|0;
  18906. $273 = (($$6603759) + ($272)|0);
  18907. $274 = HEAP8[$273>>0]|0;
  18908. $275 = $274&255;
  18909. $276 = (($$5594760) + ($$11636755)|0);
  18910. $277 = HEAP8[$276>>0]|0;
  18911. $278 = $277&255;
  18912. $279 = (($$5594760) + ($272)|0);
  18913. $280 = HEAP8[$279>>0]|0;
  18914. $281 = $280&255;
  18915. $282 = (_stbi__paeth($275,$278,$281)|0);
  18916. $283 = (($282) + ($271))|0;
  18917. $284 = $283&255;
  18918. $285 = (($$6603759) + ($$11636755)|0);
  18919. HEAP8[$285>>0] = $284;
  18920. $286 = (($$11636755) + 1)|0;
  18921. $exitcond869 = ($286|0)==($$1612|0);
  18922. if ($exitcond869) {
  18923. break;
  18924. } else {
  18925. $$11636755 = $286;
  18926. }
  18927. }
  18928. }
  18929. $287 = (($$6603759) + ($$1612)|0);
  18930. HEAP8[$287>>0] = -1;
  18931. $288 = (($$6583761) + ($$1612)|0);
  18932. $289 = (($$6603759) + ($15)|0);
  18933. $290 = (($$5594760) + ($15)|0);
  18934. $$4618 = (($$4618762) + -1)|0;
  18935. $291 = ($$4618|0)==(0);
  18936. if ($291) {
  18937. break;
  18938. } else {
  18939. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  18940. }
  18941. }
  18942. $scevgep870 = (($$1578) + ($201)|0);
  18943. $$9586 = $scevgep870;
  18944. }
  18945. break;
  18946. }
  18947. case 5: {
  18948. if ($48) {
  18949. $$9586 = $$1578;
  18950. } else {
  18951. $198 = ($$1612|0)>(0);
  18952. $199 = Math_imul($$6620742, $$1612)|0;
  18953. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  18954. while(1) {
  18955. if ($198) {
  18956. $$12747 = 0;
  18957. while(1) {
  18958. $292 = (($$7584752) + ($$12747)|0);
  18959. $293 = HEAP8[$292>>0]|0;
  18960. $294 = $293&255;
  18961. $295 = (($$12747) - ($15))|0;
  18962. $296 = (($$7604751) + ($295)|0);
  18963. $297 = HEAP8[$296>>0]|0;
  18964. $298 = $297&255;
  18965. $299 = $298 >>> 1;
  18966. $300 = (($299) + ($294))|0;
  18967. $301 = $300&255;
  18968. $302 = (($$7604751) + ($$12747)|0);
  18969. HEAP8[$302>>0] = $301;
  18970. $303 = (($$12747) + 1)|0;
  18971. $exitcond867 = ($303|0)==($$1612|0);
  18972. if ($exitcond867) {
  18973. break;
  18974. } else {
  18975. $$12747 = $303;
  18976. }
  18977. }
  18978. }
  18979. $304 = (($$7604751) + ($$1612)|0);
  18980. HEAP8[$304>>0] = -1;
  18981. $305 = (($$7584752) + ($$1612)|0);
  18982. $306 = (($$7604751) + ($15)|0);
  18983. $$5619 = (($$5619753) + -1)|0;
  18984. $307 = ($$5619|0)==(0);
  18985. if ($307) {
  18986. break;
  18987. } else {
  18988. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  18989. }
  18990. }
  18991. $scevgep868 = (($$1578) + ($199)|0);
  18992. $$9586 = $scevgep868;
  18993. }
  18994. break;
  18995. }
  18996. case 6: {
  18997. if ($49) {
  18998. $$9586 = $$1578;
  18999. } else {
  19000. $196 = ($$1612|0)>(0);
  19001. $197 = Math_imul($$6620742, $$1612)|0;
  19002. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  19003. while(1) {
  19004. if ($196) {
  19005. $$13739 = 0;
  19006. while(1) {
  19007. $308 = (($$8585744) + ($$13739)|0);
  19008. $309 = HEAP8[$308>>0]|0;
  19009. $310 = $309&255;
  19010. $311 = (($$13739) - ($15))|0;
  19011. $312 = (($$8605743) + ($311)|0);
  19012. $313 = HEAP8[$312>>0]|0;
  19013. $314 = $313&255;
  19014. $315 = (_stbi__paeth($314,0,0)|0);
  19015. $316 = (($315) + ($310))|0;
  19016. $317 = $316&255;
  19017. $318 = (($$8605743) + ($$13739)|0);
  19018. HEAP8[$318>>0] = $317;
  19019. $319 = (($$13739) + 1)|0;
  19020. $exitcond865 = ($319|0)==($$1612|0);
  19021. if ($exitcond865) {
  19022. break;
  19023. } else {
  19024. $$13739 = $319;
  19025. }
  19026. }
  19027. }
  19028. $320 = (($$8605743) + ($$1612)|0);
  19029. HEAP8[$320>>0] = -1;
  19030. $321 = (($$8585744) + ($$1612)|0);
  19031. $322 = (($$8605743) + ($15)|0);
  19032. $$6620 = (($$6620745) + -1)|0;
  19033. $323 = ($$6620|0)==(0);
  19034. if ($323) {
  19035. break;
  19036. } else {
  19037. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  19038. }
  19039. }
  19040. $scevgep866 = (($$1578) + ($197)|0);
  19041. $$9586 = $scevgep866;
  19042. }
  19043. break;
  19044. }
  19045. default: {
  19046. $$9586 = $$1578;
  19047. }
  19048. }
  19049. if ($brmerge894) {
  19050. $$11$ph = $$9586;
  19051. } else {
  19052. $324 = HEAP32[$21>>2]|0;
  19053. $325 = (($324) + ($51)|0);
  19054. $326 = (($$1612) + 1)|0;
  19055. $$7621798 = 0;$$9606799 = $325;
  19056. while(1) {
  19057. $327 = (($$9606799) + ($326)|0);
  19058. HEAP8[$327>>0] = -1;
  19059. $328 = (($$7621798) + 1)|0;
  19060. $329 = (($$9606799) + ($15)|0);
  19061. $exitcond880 = ($328|0)==($4|0);
  19062. if ($exitcond880) {
  19063. $$11$ph = $$9586;
  19064. break;
  19065. } else {
  19066. $$7621798 = $328;$$9606799 = $329;
  19067. }
  19068. }
  19069. }
  19070. }
  19071. $330 = (($$0623814) + 1)|0;
  19072. $331 = ($330>>>0)<($5>>>0);
  19073. if ($331) {
  19074. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  19075. } else {
  19076. break L18;
  19077. }
  19078. }
  19079. if ((label|0) == 16) {
  19080. ___assert_fail((10177|0),(9519|0),4315,(10132|0));
  19081. // unreachable;
  19082. }
  19083. else if ((label|0) == 58) {
  19084. ___assert_fail((10203|0),(9519|0),4377,(10132|0));
  19085. // unreachable;
  19086. }
  19087. else if ((label|0) == 105) {
  19088. _stbi__err(10220);
  19089. $$2 = 0;
  19090. return ($$2|0);
  19091. }
  19092. }
  19093. } while(0);
  19094. $332 = ($6|0)<(8);
  19095. if (!($332)) {
  19096. if (!($8)) {
  19097. $$2 = 1;
  19098. return ($$2|0);
  19099. }
  19100. $601 = Math_imul($4, $3)|0;
  19101. $602 = Math_imul($601, $5)|0;
  19102. $603 = ($602|0)==(0);
  19103. if ($603) {
  19104. $$2 = 1;
  19105. return ($$2|0);
  19106. }
  19107. $604 = HEAP32[$21>>2]|0;
  19108. $$0731 = $604;$$8622729 = 0;
  19109. while(1) {
  19110. $605 = HEAP8[$$0731>>0]|0;
  19111. $606 = $605&255;
  19112. $607 = $606 << 8;
  19113. $608 = ((($$0731)) + 1|0);
  19114. $609 = HEAP8[$608>>0]|0;
  19115. $610 = $609&255;
  19116. $611 = $607 | $610;
  19117. $612 = $611&65535;
  19118. HEAP16[$$0731>>1] = $612;
  19119. $613 = (($$8622729) + 1)|0;
  19120. $614 = ((($$0731)) + 2|0);
  19121. $exitcond = ($613|0)==($602|0);
  19122. if ($exitcond) {
  19123. $$2 = 1;
  19124. break;
  19125. } else {
  19126. $$0731 = $614;$$8622729 = $613;
  19127. }
  19128. }
  19129. return ($$2|0);
  19130. }
  19131. $333 = ($5|0)==(0);
  19132. if ($333) {
  19133. $$2 = 1;
  19134. return ($$2|0);
  19135. }
  19136. $334 = (0 - ($26))|0;
  19137. $335 = ($7|0)==(0);
  19138. $336 = (9916 + ($6)|0);
  19139. $$0568724 = (($4) + -1)|0;
  19140. $337 = ($$0568724|0)>(-1);
  19141. $$1721 = (($4) + -1)|0;
  19142. $338 = ($$1721|0)>(-1);
  19143. $339 = ($23|0)>(1);
  19144. $340 = ($23|0)>(3);
  19145. $341 = ($23|0)>(7);
  19146. $342 = (($23) + -8)|0;
  19147. $343 = $342 >>> 3;
  19148. $344 = $343 << 3;
  19149. $345 = (($344) + 8)|0;
  19150. $346 = (($342) - ($344))|0;
  19151. $347 = (($343) + ($11))|0;
  19152. $348 = (($347) + 1)|0;
  19153. $349 = (($348) - ($26))|0;
  19154. $350 = (($23) + -4)|0;
  19155. $351 = $350 >>> 2;
  19156. $352 = $351 << 2;
  19157. $353 = (($352) + 4)|0;
  19158. $354 = (($350) - ($352))|0;
  19159. $355 = (($351) + ($11))|0;
  19160. $356 = (($355) + 1)|0;
  19161. $357 = (($356) - ($26))|0;
  19162. $358 = (($23) + -2)|0;
  19163. $359 = $358 >>> 1;
  19164. $360 = $359 << 1;
  19165. $361 = (($360) + 2)|0;
  19166. $362 = (($358) - ($360))|0;
  19167. $363 = (($359) + ($11))|0;
  19168. $364 = (($363) + 1)|0;
  19169. $365 = (($364) - ($26))|0;
  19170. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  19171. L174: while(1) {
  19172. $366 = HEAP32[$21>>2]|0;
  19173. $367 = Math_imul($$1624727, $12)|0;
  19174. $368 = (($366) + ($367)|0);
  19175. $369 = (($368) + ($11)|0);
  19176. $370 = (($369) + ($334)|0);
  19177. if ($335) {
  19178. $371 = HEAP8[$336>>0]|0;
  19179. $372 = $371&255;
  19180. $377 = $372;
  19181. } else {
  19182. $377 = 1;
  19183. }
  19184. switch ($6|0) {
  19185. case 4: {
  19186. if ($339) {
  19187. $scevgep859 = (($366) + ($indvars$iv857)|0);
  19188. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  19189. while(1) {
  19190. $373 = HEAP8[$$0571715>>0]|0;
  19191. $374 = $373&255;
  19192. $375 = $374 >>> 4;
  19193. $376 = Math_imul($375, $377)|0;
  19194. $378 = $376&255;
  19195. $379 = ((($$0574714)) + 1|0);
  19196. HEAP8[$$0574714>>0] = $378;
  19197. $380 = HEAP8[$$0571715>>0]|0;
  19198. $381 = $380 & 15;
  19199. $382 = $381&255;
  19200. $383 = Math_imul($382, $377)|0;
  19201. $384 = $383&255;
  19202. $385 = ((($$0574714)) + 2|0);
  19203. HEAP8[$379>>0] = $384;
  19204. $386 = (($$14713) + -2)|0;
  19205. $387 = ((($$0571715)) + 1|0);
  19206. $388 = ($386|0)>(1);
  19207. if ($388) {
  19208. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  19209. } else {
  19210. break;
  19211. }
  19212. }
  19213. $scevgep862 = (($366) + ($indvars$iv860)|0);
  19214. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  19215. } else {
  19216. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  19217. }
  19218. $389 = ($$14$lcssa|0)==(1);
  19219. if ($389) {
  19220. $390 = HEAP8[$$0571$lcssa>>0]|0;
  19221. $391 = $390&255;
  19222. $392 = $391 >>> 4;
  19223. $393 = Math_imul($392, $377)|0;
  19224. $394 = $393&255;
  19225. HEAP8[$$0574$lcssa>>0] = $394;
  19226. }
  19227. break;
  19228. }
  19229. case 2: {
  19230. if ($340) {
  19231. $scevgep853 = (($366) + ($indvars$iv851)|0);
  19232. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  19233. while(1) {
  19234. $395 = HEAP8[$$1572707>>0]|0;
  19235. $396 = $395&255;
  19236. $397 = $396 >>> 6;
  19237. $398 = Math_imul($397, $377)|0;
  19238. $399 = $398&255;
  19239. $400 = ((($$1575706)) + 1|0);
  19240. HEAP8[$$1575706>>0] = $399;
  19241. $401 = HEAP8[$$1572707>>0]|0;
  19242. $402 = $401&255;
  19243. $403 = $402 >>> 4;
  19244. $404 = $403 & 3;
  19245. $405 = Math_imul($404, $377)|0;
  19246. $406 = $405&255;
  19247. $407 = ((($$1575706)) + 2|0);
  19248. HEAP8[$400>>0] = $406;
  19249. $408 = HEAP8[$$1572707>>0]|0;
  19250. $409 = $408&255;
  19251. $410 = $409 >>> 2;
  19252. $411 = $410 & 3;
  19253. $412 = Math_imul($411, $377)|0;
  19254. $413 = $412&255;
  19255. $414 = ((($$1575706)) + 3|0);
  19256. HEAP8[$407>>0] = $413;
  19257. $415 = HEAP8[$$1572707>>0]|0;
  19258. $416 = $415 & 3;
  19259. $417 = $416&255;
  19260. $418 = Math_imul($417, $377)|0;
  19261. $419 = $418&255;
  19262. $420 = ((($$1575706)) + 4|0);
  19263. HEAP8[$414>>0] = $419;
  19264. $421 = (($$15705) + -4)|0;
  19265. $422 = ((($$1572707)) + 1|0);
  19266. $423 = ($421|0)>(3);
  19267. if ($423) {
  19268. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  19269. } else {
  19270. break;
  19271. }
  19272. }
  19273. $scevgep856 = (($366) + ($indvars$iv854)|0);
  19274. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  19275. } else {
  19276. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  19277. }
  19278. $424 = ($$15$lcssa|0)>(0);
  19279. if ($424) {
  19280. $425 = HEAP8[$$1572$lcssa>>0]|0;
  19281. $426 = $425&255;
  19282. $427 = $426 >>> 6;
  19283. $428 = Math_imul($427, $377)|0;
  19284. $429 = $428&255;
  19285. HEAP8[$$1575$lcssa>>0] = $429;
  19286. $430 = ($$15$lcssa|0)==(1);
  19287. if (!($430)) {
  19288. $431 = ((($$1575$lcssa)) + 1|0);
  19289. $432 = HEAP8[$$1572$lcssa>>0]|0;
  19290. $433 = $432&255;
  19291. $434 = $433 >>> 4;
  19292. $435 = $434 & 3;
  19293. $436 = Math_imul($435, $377)|0;
  19294. $437 = $436&255;
  19295. HEAP8[$431>>0] = $437;
  19296. $438 = ($$15$lcssa|0)>(2);
  19297. if ($438) {
  19298. $439 = ((($$1575$lcssa)) + 2|0);
  19299. $440 = HEAP8[$$1572$lcssa>>0]|0;
  19300. $441 = $440&255;
  19301. $442 = $441 >>> 2;
  19302. $443 = $442 & 3;
  19303. $444 = Math_imul($443, $377)|0;
  19304. $445 = $444&255;
  19305. HEAP8[$439>>0] = $445;
  19306. }
  19307. }
  19308. }
  19309. break;
  19310. }
  19311. case 1: {
  19312. if ($341) {
  19313. $scevgep = (($366) + ($indvars$iv)|0);
  19314. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  19315. while(1) {
  19316. $446 = HEAP8[$$2573702>>0]|0;
  19317. $447 = $446&255;
  19318. $448 = $447 >>> 7;
  19319. $449 = (0 - ($448))|0;
  19320. $450 = $377 & $449;
  19321. $451 = $450&255;
  19322. $452 = ((($$4701)) + 1|0);
  19323. HEAP8[$$4701>>0] = $451;
  19324. $453 = HEAP8[$$2573702>>0]|0;
  19325. $454 = $453&255;
  19326. $455 = $454 >>> 6;
  19327. $456 = $455 & 1;
  19328. $457 = (0 - ($456))|0;
  19329. $458 = $377 & $457;
  19330. $459 = $458&255;
  19331. $460 = ((($$4701)) + 2|0);
  19332. HEAP8[$452>>0] = $459;
  19333. $461 = HEAP8[$$2573702>>0]|0;
  19334. $462 = $461&255;
  19335. $463 = $462 >>> 5;
  19336. $464 = $463 & 1;
  19337. $465 = (0 - ($464))|0;
  19338. $466 = $377 & $465;
  19339. $467 = $466&255;
  19340. $468 = ((($$4701)) + 3|0);
  19341. HEAP8[$460>>0] = $467;
  19342. $469 = HEAP8[$$2573702>>0]|0;
  19343. $470 = $469&255;
  19344. $471 = $470 >>> 4;
  19345. $472 = $471 & 1;
  19346. $473 = (0 - ($472))|0;
  19347. $474 = $377 & $473;
  19348. $475 = $474&255;
  19349. $476 = ((($$4701)) + 4|0);
  19350. HEAP8[$468>>0] = $475;
  19351. $477 = HEAP8[$$2573702>>0]|0;
  19352. $478 = $477&255;
  19353. $479 = $478 >>> 3;
  19354. $480 = $479 & 1;
  19355. $481 = (0 - ($480))|0;
  19356. $482 = $377 & $481;
  19357. $483 = $482&255;
  19358. $484 = ((($$4701)) + 5|0);
  19359. HEAP8[$476>>0] = $483;
  19360. $485 = HEAP8[$$2573702>>0]|0;
  19361. $486 = $485&255;
  19362. $487 = $486 >>> 2;
  19363. $488 = $487 & 1;
  19364. $489 = (0 - ($488))|0;
  19365. $490 = $377 & $489;
  19366. $491 = $490&255;
  19367. $492 = ((($$4701)) + 6|0);
  19368. HEAP8[$484>>0] = $491;
  19369. $493 = HEAP8[$$2573702>>0]|0;
  19370. $494 = $493&255;
  19371. $495 = $494 >>> 1;
  19372. $496 = $495 & 1;
  19373. $497 = (0 - ($496))|0;
  19374. $498 = $377 & $497;
  19375. $499 = $498&255;
  19376. $500 = ((($$4701)) + 7|0);
  19377. HEAP8[$492>>0] = $499;
  19378. $501 = HEAP8[$$2573702>>0]|0;
  19379. $502 = $501 & 1;
  19380. $503 = $502&255;
  19381. $504 = (0 - ($503))|0;
  19382. $505 = $377 & $504;
  19383. $506 = $505&255;
  19384. $507 = ((($$4701)) + 8|0);
  19385. HEAP8[$500>>0] = $506;
  19386. $508 = (($$16700) + -8)|0;
  19387. $509 = ((($$2573702)) + 1|0);
  19388. $510 = ($508|0)>(7);
  19389. if ($510) {
  19390. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  19391. } else {
  19392. break;
  19393. }
  19394. }
  19395. $scevgep850 = (($366) + ($indvars$iv848)|0);
  19396. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  19397. } else {
  19398. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  19399. }
  19400. $511 = ($$16$lcssa|0)>(0);
  19401. if ($511) {
  19402. $512 = HEAP8[$$2573$lcssa>>0]|0;
  19403. $513 = $512&255;
  19404. $514 = $513 >>> 7;
  19405. $515 = (0 - ($514))|0;
  19406. $516 = $377 & $515;
  19407. $517 = $516&255;
  19408. HEAP8[$$4$lcssa>>0] = $517;
  19409. $518 = ($$16$lcssa|0)==(1);
  19410. if (!($518)) {
  19411. $519 = ((($$4$lcssa)) + 1|0);
  19412. $520 = HEAP8[$$2573$lcssa>>0]|0;
  19413. $521 = $520&255;
  19414. $522 = $521 >>> 6;
  19415. $523 = $522 & 1;
  19416. $524 = (0 - ($523))|0;
  19417. $525 = $377 & $524;
  19418. $526 = $525&255;
  19419. HEAP8[$519>>0] = $526;
  19420. $527 = ($$16$lcssa|0)>(2);
  19421. if ($527) {
  19422. $528 = ((($$4$lcssa)) + 2|0);
  19423. $529 = HEAP8[$$2573$lcssa>>0]|0;
  19424. $530 = $529&255;
  19425. $531 = $530 >>> 5;
  19426. $532 = $531 & 1;
  19427. $533 = (0 - ($532))|0;
  19428. $534 = $377 & $533;
  19429. $535 = $534&255;
  19430. HEAP8[$528>>0] = $535;
  19431. $536 = ($$16$lcssa|0)==(3);
  19432. if (!($536)) {
  19433. $537 = ((($$4$lcssa)) + 3|0);
  19434. $538 = HEAP8[$$2573$lcssa>>0]|0;
  19435. $539 = $538&255;
  19436. $540 = $539 >>> 4;
  19437. $541 = $540 & 1;
  19438. $542 = (0 - ($541))|0;
  19439. $543 = $377 & $542;
  19440. $544 = $543&255;
  19441. HEAP8[$537>>0] = $544;
  19442. $545 = ($$16$lcssa|0)>(4);
  19443. if ($545) {
  19444. $546 = ((($$4$lcssa)) + 4|0);
  19445. $547 = HEAP8[$$2573$lcssa>>0]|0;
  19446. $548 = $547&255;
  19447. $549 = $548 >>> 3;
  19448. $550 = $549 & 1;
  19449. $551 = (0 - ($550))|0;
  19450. $552 = $377 & $551;
  19451. $553 = $552&255;
  19452. HEAP8[$546>>0] = $553;
  19453. $554 = ($$16$lcssa|0)==(5);
  19454. if (!($554)) {
  19455. $555 = ((($$4$lcssa)) + 5|0);
  19456. $556 = HEAP8[$$2573$lcssa>>0]|0;
  19457. $557 = $556&255;
  19458. $558 = $557 >>> 2;
  19459. $559 = $558 & 1;
  19460. $560 = (0 - ($559))|0;
  19461. $561 = $377 & $560;
  19462. $562 = $561&255;
  19463. HEAP8[$555>>0] = $562;
  19464. $563 = ($$16$lcssa|0)>(6);
  19465. if ($563) {
  19466. $564 = ((($$4$lcssa)) + 6|0);
  19467. $565 = HEAP8[$$2573$lcssa>>0]|0;
  19468. $566 = $565&255;
  19469. $567 = $566 >>> 1;
  19470. $568 = $567 & 1;
  19471. $569 = (0 - ($568))|0;
  19472. $570 = $377 & $569;
  19473. $571 = $570&255;
  19474. HEAP8[$564>>0] = $571;
  19475. }
  19476. }
  19477. }
  19478. }
  19479. }
  19480. }
  19481. }
  19482. break;
  19483. }
  19484. default: {
  19485. }
  19486. }
  19487. L213: do {
  19488. if (!($17)) {
  19489. $572 = HEAP32[$21>>2]|0;
  19490. $573 = (($572) + ($367)|0);
  19491. switch ($14|0) {
  19492. case 1: {
  19493. if ($337) {
  19494. $$0568725 = $$0568724;
  19495. } else {
  19496. break L213;
  19497. }
  19498. while(1) {
  19499. $574 = $$0568725 << 1;
  19500. $575 = $574 | 1;
  19501. $576 = (($573) + ($575)|0);
  19502. HEAP8[$576>>0] = -1;
  19503. $577 = (($573) + ($$0568725)|0);
  19504. $578 = HEAP8[$577>>0]|0;
  19505. $579 = (($573) + ($574)|0);
  19506. HEAP8[$579>>0] = $578;
  19507. $$0568 = (($$0568725) + -1)|0;
  19508. $580 = ($$0568|0)>(-1);
  19509. if ($580) {
  19510. $$0568725 = $$0568;
  19511. } else {
  19512. break;
  19513. }
  19514. }
  19515. break;
  19516. }
  19517. case 3: {
  19518. if ($338) {
  19519. $$1722 = $$1721;
  19520. } else {
  19521. break L213;
  19522. }
  19523. while(1) {
  19524. $581 = $$1722 << 2;
  19525. $582 = $581 | 3;
  19526. $583 = (($573) + ($582)|0);
  19527. HEAP8[$583>>0] = -1;
  19528. $584 = ($$1722*3)|0;
  19529. $585 = (($584) + 2)|0;
  19530. $586 = (($573) + ($585)|0);
  19531. $587 = HEAP8[$586>>0]|0;
  19532. $588 = $581 | 2;
  19533. $589 = (($573) + ($588)|0);
  19534. HEAP8[$589>>0] = $587;
  19535. $590 = (($584) + 1)|0;
  19536. $591 = (($573) + ($590)|0);
  19537. $592 = HEAP8[$591>>0]|0;
  19538. $593 = $581 | 1;
  19539. $594 = (($573) + ($593)|0);
  19540. HEAP8[$594>>0] = $592;
  19541. $595 = (($573) + ($584)|0);
  19542. $596 = HEAP8[$595>>0]|0;
  19543. $597 = (($573) + ($581)|0);
  19544. HEAP8[$597>>0] = $596;
  19545. $$1 = (($$1722) + -1)|0;
  19546. $598 = ($$1|0)>(-1);
  19547. if ($598) {
  19548. $$1722 = $$1;
  19549. } else {
  19550. break;
  19551. }
  19552. }
  19553. break;
  19554. }
  19555. default: {
  19556. label = 144;
  19557. break L174;
  19558. }
  19559. }
  19560. }
  19561. } while(0);
  19562. $599 = (($$1624727) + 1)|0;
  19563. $600 = ($599>>>0)<($5>>>0);
  19564. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  19565. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  19566. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  19567. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  19568. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  19569. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  19570. if ($600) {
  19571. $$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;
  19572. } else {
  19573. $$2 = 1;
  19574. label = 151;
  19575. break;
  19576. }
  19577. }
  19578. if ((label|0) == 144) {
  19579. ___assert_fail((10235|0),(9519|0),4466,(10132|0));
  19580. // unreachable;
  19581. }
  19582. else if ((label|0) == 151) {
  19583. return ($$2|0);
  19584. }
  19585. return (0)|0;
  19586. }
  19587. function _stbi__paeth($0,$1,$2) {
  19588. $0 = $0|0;
  19589. $1 = $1|0;
  19590. $2 = $2|0;
  19591. 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;
  19592. var label = 0, sp = 0;
  19593. sp = STACKTOP;
  19594. $3 = (($1) + ($0))|0;
  19595. $4 = (($3) - ($2))|0;
  19596. $5 = (($4) - ($0))|0;
  19597. $ispos = ($5|0)>(-1);
  19598. $neg = (0 - ($5))|0;
  19599. $6 = $ispos ? $5 : $neg;
  19600. $7 = (($4) - ($1))|0;
  19601. $ispos26 = ($7|0)>(-1);
  19602. $neg27 = (0 - ($7))|0;
  19603. $8 = $ispos26 ? $7 : $neg27;
  19604. $9 = (($4) - ($2))|0;
  19605. $ispos28 = ($9|0)>(-1);
  19606. $neg29 = (0 - ($9))|0;
  19607. $10 = $ispos28 ? $9 : $neg29;
  19608. $11 = ($6|0)>($8|0);
  19609. $12 = ($6|0)>($10|0);
  19610. $or$cond = $11 | $12;
  19611. $13 = ($8|0)>($10|0);
  19612. $$ = $13 ? $2 : $1;
  19613. $$0 = $or$cond ? $$ : $0;
  19614. return ($$0|0);
  19615. }
  19616. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  19617. $0 = $0|0;
  19618. $1 = $1|0;
  19619. $2 = $2|0;
  19620. $3 = $3|0;
  19621. $4 = $4|0;
  19622. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19623. sp = STACKTOP;
  19624. $5 = ((($0)) + 20|0);
  19625. HEAP32[$5>>2] = $1;
  19626. $6 = ((($0)) + 16|0);
  19627. HEAP32[$6>>2] = $1;
  19628. $7 = (($1) + ($2)|0);
  19629. $8 = ((($0)) + 24|0);
  19630. HEAP32[$8>>2] = $7;
  19631. $9 = ((($0)) + 28|0);
  19632. HEAP32[$9>>2] = $3;
  19633. $10 = (_stbi__parse_zlib($0,$4)|0);
  19634. return ($10|0);
  19635. }
  19636. function _stbi__parse_zlib($0,$1) {
  19637. $0 = $0|0;
  19638. $1 = $1|0;
  19639. 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;
  19640. var $9 = 0, label = 0, sp = 0;
  19641. sp = STACKTOP;
  19642. $2 = ($1|0)==(0);
  19643. if (!($2)) {
  19644. $3 = (_stbi__parse_zlib_header($0)|0);
  19645. $4 = ($3|0)==(0);
  19646. if ($4) {
  19647. $$0 = 0;
  19648. return ($$0|0);
  19649. }
  19650. }
  19651. $5 = ((($0)) + 8|0);
  19652. HEAP32[$5>>2] = 0;
  19653. $6 = ((($0)) + 12|0);
  19654. HEAP32[$6>>2] = 0;
  19655. $7 = ((($0)) + 32|0);
  19656. $8 = ((($0)) + 2052|0);
  19657. L5: while(1) {
  19658. $9 = (_stbi__zreceive($0,1)|0);
  19659. $10 = (_stbi__zreceive($0,2)|0);
  19660. switch ($10|0) {
  19661. case 3: {
  19662. $$0 = 0;
  19663. label = 11;
  19664. break L5;
  19665. break;
  19666. }
  19667. case 0: {
  19668. $11 = (_stbi__parse_uncompressed_block($0)|0);
  19669. $12 = ($11|0)==(0);
  19670. if ($12) {
  19671. $$0 = 0;
  19672. label = 11;
  19673. break L5;
  19674. }
  19675. break;
  19676. }
  19677. case 1: {
  19678. $13 = (_stbi__zbuild_huffman($7,10246,288)|0);
  19679. $14 = ($13|0)==(0);
  19680. if ($14) {
  19681. $$0 = 0;
  19682. label = 11;
  19683. break L5;
  19684. }
  19685. $15 = (_stbi__zbuild_huffman($8,10534,32)|0);
  19686. $16 = ($15|0)==(0);
  19687. if ($16) {
  19688. $$0 = 0;
  19689. label = 11;
  19690. break L5;
  19691. } else {
  19692. label = 9;
  19693. }
  19694. break;
  19695. }
  19696. default: {
  19697. $17 = (_stbi__compute_huffman_codes($0)|0);
  19698. $18 = ($17|0)==(0);
  19699. if ($18) {
  19700. $$0 = 0;
  19701. label = 11;
  19702. break L5;
  19703. } else {
  19704. label = 9;
  19705. }
  19706. }
  19707. }
  19708. if ((label|0) == 9) {
  19709. label = 0;
  19710. $19 = (_stbi__parse_huffman_block($0)|0);
  19711. $20 = ($19|0)==(0);
  19712. if ($20) {
  19713. $$0 = 0;
  19714. label = 11;
  19715. break;
  19716. }
  19717. }
  19718. $21 = ($9|0)==(0);
  19719. if (!($21)) {
  19720. $$0 = 1;
  19721. label = 11;
  19722. break;
  19723. }
  19724. }
  19725. if ((label|0) == 11) {
  19726. return ($$0|0);
  19727. }
  19728. return (0)|0;
  19729. }
  19730. function _stbi__parse_zlib_header($0) {
  19731. $0 = $0|0;
  19732. 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;
  19733. sp = STACKTOP;
  19734. $1 = (_stbi__zget8($0)|0);
  19735. $2 = $1&255;
  19736. $3 = $2 & 15;
  19737. $4 = (_stbi__zget8($0)|0);
  19738. $5 = $4&255;
  19739. $6 = $2 << 8;
  19740. $7 = $6 | $5;
  19741. $8 = (($7>>>0) % 31)&-1;
  19742. $9 = ($8|0)==(0);
  19743. if (!($9)) {
  19744. _stbi__err(10881);
  19745. $$0 = 0;
  19746. return ($$0|0);
  19747. }
  19748. $10 = $5 & 32;
  19749. $11 = ($10|0)==(0);
  19750. if (!($11)) {
  19751. _stbi__err(10897);
  19752. $$0 = 0;
  19753. return ($$0|0);
  19754. }
  19755. $12 = ($3|0)==(8);
  19756. if ($12) {
  19757. $$0 = 1;
  19758. return ($$0|0);
  19759. }
  19760. _stbi__err(10912);
  19761. $$0 = 0;
  19762. return ($$0|0);
  19763. }
  19764. function _stbi__zreceive($0,$1) {
  19765. $0 = $0|0;
  19766. $1 = $1|0;
  19767. 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;
  19768. sp = STACKTOP;
  19769. $2 = ((($0)) + 8|0);
  19770. $3 = HEAP32[$2>>2]|0;
  19771. $4 = ($3|0)<($1|0);
  19772. if ($4) {
  19773. _stbi__fill_bits($0);
  19774. }
  19775. $5 = ((($0)) + 12|0);
  19776. $6 = HEAP32[$5>>2]|0;
  19777. $7 = 1 << $1;
  19778. $8 = (($7) + -1)|0;
  19779. $9 = $6 & $8;
  19780. $10 = $6 >>> $1;
  19781. HEAP32[$5>>2] = $10;
  19782. $11 = HEAP32[$2>>2]|0;
  19783. $12 = (($11) - ($1))|0;
  19784. HEAP32[$2>>2] = $12;
  19785. return ($9|0);
  19786. }
  19787. function _stbi__parse_uncompressed_block($0) {
  19788. $0 = $0|0;
  19789. 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;
  19790. 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;
  19791. 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;
  19792. 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;
  19793. sp = STACKTOP;
  19794. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  19795. $1 = sp;
  19796. $2 = ((($0)) + 8|0);
  19797. $3 = HEAP32[$2>>2]|0;
  19798. $4 = $3 & 7;
  19799. $5 = ($4|0)==(0);
  19800. if ($5) {
  19801. $$ph = $3;
  19802. } else {
  19803. (_stbi__zreceive($0,$4)|0);
  19804. $$pr = HEAP32[$2>>2]|0;
  19805. $$ph = $$pr;
  19806. }
  19807. $6 = ($$ph|0)>(0);
  19808. if ($6) {
  19809. $7 = ((($0)) + 12|0);
  19810. $$promoted = HEAP32[$7>>2]|0;
  19811. $8 = $$ph ^ -1;
  19812. $9 = ($8|0)>(-9);
  19813. $smax = $9 ? $8 : -9;
  19814. $10 = (($$ph) + ($smax))|0;
  19815. $11 = (($10) + 8)|0;
  19816. $12 = $11 >>> 3;
  19817. $13 = (($12) + 1)|0;
  19818. $14 = $12 << 3;
  19819. $$037 = 0;$16 = $$promoted;
  19820. while(1) {
  19821. $15 = $16&255;
  19822. $17 = (($$037) + 1)|0;
  19823. $18 = (($1) + ($$037)|0);
  19824. HEAP8[$18>>0] = $15;
  19825. $19 = $16 >>> 8;
  19826. $exitcond47 = ($17|0)==($13|0);
  19827. if ($exitcond47) {
  19828. break;
  19829. } else {
  19830. $$037 = $17;$16 = $19;
  19831. }
  19832. }
  19833. $20 = (($$ph) + -8)|0;
  19834. $21 = (($20) - ($14))|0;
  19835. HEAP32[$7>>2] = $19;
  19836. HEAP32[$2>>2] = $21;
  19837. $$0$lcssa = $13;$$lcssa = $21;
  19838. } else {
  19839. $$0$lcssa = 0;$$lcssa = $$ph;
  19840. }
  19841. $22 = ($$lcssa|0)==(0);
  19842. if (!($22)) {
  19843. ___assert_fail((10803|0),(9519|0),4033,(10820|0));
  19844. // unreachable;
  19845. }
  19846. $23 = ($$0$lcssa|0)<(4);
  19847. if ($23) {
  19848. $$136 = $$0$lcssa;
  19849. while(1) {
  19850. $24 = (_stbi__zget8($0)|0);
  19851. $25 = (($$136) + 1)|0;
  19852. $26 = (($1) + ($$136)|0);
  19853. HEAP8[$26>>0] = $24;
  19854. $exitcond = ($25|0)==(4);
  19855. if ($exitcond) {
  19856. break;
  19857. } else {
  19858. $$136 = $25;
  19859. }
  19860. }
  19861. }
  19862. $27 = ((($1)) + 1|0);
  19863. $28 = HEAP8[$27>>0]|0;
  19864. $29 = $28&255;
  19865. $30 = $29 << 8;
  19866. $31 = HEAP8[$1>>0]|0;
  19867. $32 = $31&255;
  19868. $33 = $30 | $32;
  19869. $34 = ((($1)) + 3|0);
  19870. $35 = HEAP8[$34>>0]|0;
  19871. $36 = $35&255;
  19872. $37 = $36 << 8;
  19873. $38 = ((($1)) + 2|0);
  19874. $39 = HEAP8[$38>>0]|0;
  19875. $40 = $39&255;
  19876. $41 = $37 | $40;
  19877. $42 = $33 ^ 65535;
  19878. $43 = ($41|0)==($42|0);
  19879. if (!($43)) {
  19880. _stbi__err(10851);
  19881. $$034 = 0;
  19882. STACKTOP = sp;return ($$034|0);
  19883. }
  19884. $44 = HEAP32[$0>>2]|0;
  19885. $45 = (($44) + ($33)|0);
  19886. $46 = ((($0)) + 4|0);
  19887. $47 = HEAP32[$46>>2]|0;
  19888. $48 = ($45>>>0)>($47>>>0);
  19889. if ($48) {
  19890. _stbi__err(10864);
  19891. $$034 = 0;
  19892. STACKTOP = sp;return ($$034|0);
  19893. }
  19894. $49 = ((($0)) + 16|0);
  19895. $50 = HEAP32[$49>>2]|0;
  19896. $51 = (($50) + ($33)|0);
  19897. $52 = ((($0)) + 24|0);
  19898. $53 = HEAP32[$52>>2]|0;
  19899. $54 = ($51>>>0)>($53>>>0);
  19900. if ($54) {
  19901. $55 = (_stbi__zexpand($0,$50,$33)|0);
  19902. $56 = ($55|0)==(0);
  19903. if ($56) {
  19904. $$034 = 0;
  19905. STACKTOP = sp;return ($$034|0);
  19906. }
  19907. }
  19908. $57 = HEAP32[$49>>2]|0;
  19909. $58 = HEAP32[$0>>2]|0;
  19910. _memcpy(($57|0),($58|0),($33|0))|0;
  19911. $59 = HEAP32[$0>>2]|0;
  19912. $60 = (($59) + ($33)|0);
  19913. HEAP32[$0>>2] = $60;
  19914. $61 = HEAP32[$49>>2]|0;
  19915. $62 = (($61) + ($33)|0);
  19916. HEAP32[$49>>2] = $62;
  19917. $$034 = 1;
  19918. STACKTOP = sp;return ($$034|0);
  19919. }
  19920. function _stbi__zbuild_huffman($0,$1,$2) {
  19921. $0 = $0|0;
  19922. $1 = $1|0;
  19923. $2 = $2|0;
  19924. 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;
  19925. 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;
  19926. 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;
  19927. 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;
  19928. 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;
  19929. 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;
  19930. sp = STACKTOP;
  19931. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  19932. $3 = sp + 72|0;
  19933. $4 = sp;
  19934. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  19935. _memset(($0|0),0,1024)|0;
  19936. $5 = ($2|0)>(0);
  19937. if ($5) {
  19938. $$07688 = 0;
  19939. while(1) {
  19940. $6 = (($1) + ($$07688)|0);
  19941. $7 = HEAP8[$6>>0]|0;
  19942. $8 = $7&255;
  19943. $9 = (($4) + ($8<<2)|0);
  19944. $10 = HEAP32[$9>>2]|0;
  19945. $11 = (($10) + 1)|0;
  19946. HEAP32[$9>>2] = $11;
  19947. $12 = (($$07688) + 1)|0;
  19948. $exitcond91 = ($12|0)==($2|0);
  19949. if ($exitcond91) {
  19950. break;
  19951. } else {
  19952. $$07688 = $12;
  19953. }
  19954. }
  19955. }
  19956. HEAP32[$4>>2] = 0;
  19957. $16 = ((($4)) + 4|0);
  19958. $17 = HEAP32[$16>>2]|0;
  19959. $18 = ($17|0)>(2);
  19960. if (!($18)) {
  19961. $13 = ((($4)) + 8|0);
  19962. $14 = HEAP32[$13>>2]|0;
  19963. $15 = ($14|0)>(4);
  19964. if (!($15)) {
  19965. $69 = ((($4)) + 12|0);
  19966. $70 = HEAP32[$69>>2]|0;
  19967. $71 = ($70|0)>(8);
  19968. if (!($71)) {
  19969. $72 = ((($4)) + 16|0);
  19970. $73 = HEAP32[$72>>2]|0;
  19971. $74 = ($73|0)>(16);
  19972. if (!($74)) {
  19973. $75 = ((($4)) + 20|0);
  19974. $76 = HEAP32[$75>>2]|0;
  19975. $77 = ($76|0)>(32);
  19976. if (!($77)) {
  19977. $78 = ((($4)) + 24|0);
  19978. $79 = HEAP32[$78>>2]|0;
  19979. $80 = ($79|0)>(64);
  19980. if (!($80)) {
  19981. $81 = ((($4)) + 28|0);
  19982. $82 = HEAP32[$81>>2]|0;
  19983. $83 = ($82|0)>(128);
  19984. if (!($83)) {
  19985. $84 = ((($4)) + 32|0);
  19986. $85 = HEAP32[$84>>2]|0;
  19987. $86 = ($85|0)>(256);
  19988. if (!($86)) {
  19989. $87 = ((($4)) + 36|0);
  19990. $88 = HEAP32[$87>>2]|0;
  19991. $89 = ($88|0)>(512);
  19992. if (!($89)) {
  19993. $90 = ((($4)) + 40|0);
  19994. $91 = HEAP32[$90>>2]|0;
  19995. $92 = ($91|0)>(1024);
  19996. if (!($92)) {
  19997. $93 = ((($4)) + 44|0);
  19998. $94 = HEAP32[$93>>2]|0;
  19999. $95 = ($94|0)>(2048);
  20000. if (!($95)) {
  20001. $96 = ((($4)) + 48|0);
  20002. $97 = HEAP32[$96>>2]|0;
  20003. $98 = ($97|0)>(4096);
  20004. if (!($98)) {
  20005. $99 = ((($4)) + 52|0);
  20006. $100 = HEAP32[$99>>2]|0;
  20007. $101 = ($100|0)>(8192);
  20008. if (!($101)) {
  20009. $102 = ((($4)) + 56|0);
  20010. $103 = HEAP32[$102>>2]|0;
  20011. $104 = ($103|0)>(16384);
  20012. if (!($104)) {
  20013. $105 = ((($4)) + 60|0);
  20014. $106 = HEAP32[$105>>2]|0;
  20015. $107 = ($106|0)>(32768);
  20016. if (!($107)) {
  20017. $$07785 = 0;$$07884 = 0;$$286 = 1;
  20018. while(1) {
  20019. $19 = (($3) + ($$286<<2)|0);
  20020. HEAP32[$19>>2] = $$07884;
  20021. $20 = $$07884&65535;
  20022. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  20023. HEAP16[$21>>1] = $20;
  20024. $22 = $$07785&65535;
  20025. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  20026. HEAP16[$23>>1] = $22;
  20027. $24 = (($4) + ($$286<<2)|0);
  20028. $25 = HEAP32[$24>>2]|0;
  20029. $26 = (($25) + ($$07884))|0;
  20030. $27 = ($25|0)!=(0);
  20031. $28 = 1 << $$286;
  20032. $29 = ($26|0)>($28|0);
  20033. $or$cond = $27 & $29;
  20034. if ($or$cond) {
  20035. label = 7;
  20036. break;
  20037. }
  20038. $30 = (16 - ($$286))|0;
  20039. $31 = $26 << $30;
  20040. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  20041. HEAP32[$32>>2] = $31;
  20042. $33 = $26 << 1;
  20043. $34 = (($25) + ($$07785))|0;
  20044. $35 = (($$286) + 1)|0;
  20045. $36 = ($35|0)<(16);
  20046. if ($36) {
  20047. $$07785 = $34;$$07884 = $33;$$286 = $35;
  20048. } else {
  20049. break;
  20050. }
  20051. }
  20052. if ((label|0) == 7) {
  20053. _stbi__err(10741);
  20054. $$075 = 0;
  20055. STACKTOP = sp;return ($$075|0);
  20056. }
  20057. $37 = ((($0)) + 1120|0);
  20058. HEAP32[$37>>2] = 65536;
  20059. $38 = ($2|0)>(0);
  20060. if ($38) {
  20061. $$382 = 0;
  20062. } else {
  20063. $$075 = 1;
  20064. STACKTOP = sp;return ($$075|0);
  20065. }
  20066. while(1) {
  20067. $39 = (($1) + ($$382)|0);
  20068. $40 = HEAP8[$39>>0]|0;
  20069. $41 = $40&255;
  20070. $42 = ($40<<24>>24)==(0);
  20071. if (!($42)) {
  20072. $43 = (($3) + ($41<<2)|0);
  20073. $44 = HEAP32[$43>>2]|0;
  20074. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  20075. $46 = HEAP16[$45>>1]|0;
  20076. $47 = $46&65535;
  20077. $48 = (($44) - ($47))|0;
  20078. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  20079. $50 = HEAP16[$49>>1]|0;
  20080. $51 = $50&65535;
  20081. $52 = (($48) + ($51))|0;
  20082. $53 = $41 << 9;
  20083. $54 = $53 | $$382;
  20084. $55 = $54&65535;
  20085. $56 = (((($0)) + 1156|0) + ($52)|0);
  20086. HEAP8[$56>>0] = $40;
  20087. $57 = $$382&65535;
  20088. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  20089. HEAP16[$58>>1] = $57;
  20090. $59 = ($40&255)<(10);
  20091. do {
  20092. if ($59) {
  20093. $60 = (_stbi__bit_reverse($44,$41)|0);
  20094. $61 = ($60|0)<(512);
  20095. if (!($61)) {
  20096. break;
  20097. }
  20098. $62 = 1 << $41;
  20099. $$081 = $60;
  20100. while(1) {
  20101. $63 = (($0) + ($$081<<1)|0);
  20102. HEAP16[$63>>1] = $55;
  20103. $64 = (($$081) + ($62))|0;
  20104. $65 = ($64|0)<(512);
  20105. if ($65) {
  20106. $$081 = $64;
  20107. } else {
  20108. break;
  20109. }
  20110. }
  20111. }
  20112. } while(0);
  20113. $66 = HEAP32[$43>>2]|0;
  20114. $67 = (($66) + 1)|0;
  20115. HEAP32[$43>>2] = $67;
  20116. }
  20117. $68 = (($$382) + 1)|0;
  20118. $exitcond = ($68|0)==($2|0);
  20119. if ($exitcond) {
  20120. $$075 = 1;
  20121. break;
  20122. } else {
  20123. $$382 = $68;
  20124. }
  20125. }
  20126. STACKTOP = sp;return ($$075|0);
  20127. }
  20128. }
  20129. }
  20130. }
  20131. }
  20132. }
  20133. }
  20134. }
  20135. }
  20136. }
  20137. }
  20138. }
  20139. }
  20140. }
  20141. }
  20142. _stbi__err(10793);
  20143. $$075 = 0;
  20144. STACKTOP = sp;return ($$075|0);
  20145. }
  20146. function _stbi__compute_huffman_codes($0) {
  20147. $0 = $0|0;
  20148. 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;
  20149. 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;
  20150. 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;
  20151. var label = 0, sp = 0, stop = 0;
  20152. sp = STACKTOP;
  20153. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  20154. $1 = sp;
  20155. $2 = sp + 2039|0;
  20156. $3 = sp + 2020|0;
  20157. $4 = (_stbi__zreceive($0,5)|0);
  20158. $5 = (($4) + 257)|0;
  20159. $6 = (_stbi__zreceive($0,5)|0);
  20160. $7 = (($6) + 1)|0;
  20161. $8 = (_stbi__zreceive($0,4)|0);
  20162. $9 = (($8) + 4)|0;
  20163. $10 = (($7) + ($5))|0;
  20164. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  20165. $11 = ($9|0)>(0);
  20166. if ($11) {
  20167. $$06579 = 0;
  20168. while(1) {
  20169. $12 = (_stbi__zreceive($0,3)|0);
  20170. $13 = $12&255;
  20171. $14 = (11578 + ($$06579)|0);
  20172. $15 = HEAP8[$14>>0]|0;
  20173. $16 = $15&255;
  20174. $17 = (($3) + ($16)|0);
  20175. HEAP8[$17>>0] = $13;
  20176. $18 = (($$06579) + 1)|0;
  20177. $exitcond = ($18|0)==($9|0);
  20178. if ($exitcond) {
  20179. break;
  20180. } else {
  20181. $$06579 = $18;
  20182. }
  20183. }
  20184. }
  20185. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  20186. $20 = ($19|0)==(0);
  20187. if ($20) {
  20188. $$4 = 0;
  20189. STACKTOP = sp;return ($$4|0);
  20190. }
  20191. $21 = ($10|0)>(0);
  20192. L8: do {
  20193. if ($21) {
  20194. $$06678 = 0;
  20195. L9: while(1) {
  20196. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  20197. $23 = ($22>>>0)>(18);
  20198. if ($23) {
  20199. label = 6;
  20200. break;
  20201. }
  20202. $24 = ($22|0)<(16);
  20203. if ($24) {
  20204. $25 = $22&255;
  20205. $26 = (($$06678) + 1)|0;
  20206. $27 = (($2) + ($$06678)|0);
  20207. HEAP8[$27>>0] = $25;
  20208. $$066$be = $26;
  20209. } else {
  20210. switch ($22|0) {
  20211. case 16: {
  20212. $28 = (_stbi__zreceive($0,2)|0);
  20213. $29 = ($$06678|0)==(0);
  20214. if ($29) {
  20215. label = 11;
  20216. break L9;
  20217. }
  20218. $30 = (($28) + 3)|0;
  20219. $31 = (($$06678) + -1)|0;
  20220. $32 = (($2) + ($31)|0);
  20221. $33 = HEAP8[$32>>0]|0;
  20222. $$0 = $33;$$061 = $30;
  20223. break;
  20224. }
  20225. case 17: {
  20226. $34 = (_stbi__zreceive($0,3)|0);
  20227. $35 = (($34) + 3)|0;
  20228. $$0 = 0;$$061 = $35;
  20229. break;
  20230. }
  20231. case 18: {
  20232. $36 = (_stbi__zreceive($0,7)|0);
  20233. $37 = (($36) + 11)|0;
  20234. $$0 = 0;$$061 = $37;
  20235. break;
  20236. }
  20237. default: {
  20238. label = 14;
  20239. break L9;
  20240. }
  20241. }
  20242. $38 = (($10) - ($$06678))|0;
  20243. $39 = ($38|0)<($$061|0);
  20244. if ($39) {
  20245. label = 17;
  20246. break;
  20247. }
  20248. $40 = (($2) + ($$06678)|0);
  20249. _memset(($40|0),($$0|0),($$061|0))|0;
  20250. $41 = (($$061) + ($$06678))|0;
  20251. $$066$be = $41;
  20252. }
  20253. $42 = ($10|0)>($$066$be|0);
  20254. if ($42) {
  20255. $$06678 = $$066$be;
  20256. } else {
  20257. $$066$lcssa = $$066$be;
  20258. break L8;
  20259. }
  20260. }
  20261. if ((label|0) == 6) {
  20262. _stbi__err(10741);
  20263. $$4 = 0;
  20264. STACKTOP = sp;return ($$4|0);
  20265. }
  20266. else if ((label|0) == 11) {
  20267. _stbi__err(10741);
  20268. $$4 = 0;
  20269. STACKTOP = sp;return ($$4|0);
  20270. }
  20271. else if ((label|0) == 14) {
  20272. ___assert_fail((10757|0),(9519|0),4006,(10765|0));
  20273. // unreachable;
  20274. }
  20275. else if ((label|0) == 17) {
  20276. _stbi__err(10741);
  20277. $$4 = 0;
  20278. STACKTOP = sp;return ($$4|0);
  20279. }
  20280. } else {
  20281. $$066$lcssa = 0;
  20282. }
  20283. } while(0);
  20284. $43 = ($10|0)==($$066$lcssa|0);
  20285. if (!($43)) {
  20286. _stbi__err(10741);
  20287. $$4 = 0;
  20288. STACKTOP = sp;return ($$4|0);
  20289. }
  20290. $44 = ((($0)) + 32|0);
  20291. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  20292. $46 = ($45|0)==(0);
  20293. if ($46) {
  20294. $$4 = 0;
  20295. STACKTOP = sp;return ($$4|0);
  20296. }
  20297. $47 = ((($0)) + 2052|0);
  20298. $48 = (($2) + ($5)|0);
  20299. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  20300. $not$ = ($49|0)!=(0);
  20301. $$ = $not$&1;
  20302. $$4 = $$;
  20303. STACKTOP = sp;return ($$4|0);
  20304. }
  20305. function _stbi__parse_huffman_block($0) {
  20306. $0 = $0|0;
  20307. 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;
  20308. 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;
  20309. 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;
  20310. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  20311. sp = STACKTOP;
  20312. $1 = ((($0)) + 16|0);
  20313. $2 = HEAP32[$1>>2]|0;
  20314. $3 = ((($0)) + 32|0);
  20315. $4 = ((($0)) + 24|0);
  20316. $5 = ((($0)) + 2052|0);
  20317. $6 = ((($0)) + 20|0);
  20318. $7 = ((($0)) + 24|0);
  20319. $$070 = $2;
  20320. while(1) {
  20321. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  20322. $11 = ($10|0)<(256);
  20323. if ($11) {
  20324. $12 = ($10|0)<(0);
  20325. if ($12) {
  20326. label = 6;
  20327. break;
  20328. }
  20329. $13 = HEAP32[$4>>2]|0;
  20330. $14 = ($$070>>>0)<($13>>>0);
  20331. if ($14) {
  20332. $$171 = $$070;
  20333. } else {
  20334. $15 = (_stbi__zexpand($0,$$070,1)|0);
  20335. $16 = ($15|0)==(0);
  20336. if ($16) {
  20337. $$3$ph = 0;
  20338. label = 28;
  20339. break;
  20340. }
  20341. $17 = HEAP32[$1>>2]|0;
  20342. $$171 = $17;
  20343. }
  20344. $18 = $10&255;
  20345. $19 = ((($$171)) + 1|0);
  20346. HEAP8[$$171>>0] = $18;
  20347. $$070 = $19;
  20348. continue;
  20349. }
  20350. $20 = ($10|0)==(256);
  20351. if ($20) {
  20352. label = 12;
  20353. break;
  20354. }
  20355. $21 = (($10) + -257)|0;
  20356. $22 = (3240 + ($21<<2)|0);
  20357. $23 = HEAP32[$22>>2]|0;
  20358. $24 = (($10) + -265)|0;
  20359. $25 = ($24>>>0)<(20);
  20360. if ($25) {
  20361. $26 = (3116 + ($21<<2)|0);
  20362. $27 = HEAP32[$26>>2]|0;
  20363. $28 = (_stbi__zreceive($0,$27)|0);
  20364. $29 = (($28) + ($23))|0;
  20365. $$064 = $29;
  20366. } else {
  20367. $$064 = $23;
  20368. }
  20369. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  20370. $31 = ($30|0)<(0);
  20371. if ($31) {
  20372. label = 16;
  20373. break;
  20374. }
  20375. $32 = (3492 + ($30<<2)|0);
  20376. $33 = HEAP32[$32>>2]|0;
  20377. $34 = (($30) + -4)|0;
  20378. $35 = ($34>>>0)<(26);
  20379. if ($35) {
  20380. $36 = (3364 + ($30<<2)|0);
  20381. $37 = HEAP32[$36>>2]|0;
  20382. $38 = (_stbi__zreceive($0,$37)|0);
  20383. $39 = (($38) + ($33))|0;
  20384. $$063 = $39;
  20385. } else {
  20386. $$063 = $33;
  20387. }
  20388. $40 = HEAP32[$6>>2]|0;
  20389. $41 = $$070;
  20390. $42 = (($41) - ($40))|0;
  20391. $43 = ($42|0)<($$063|0);
  20392. if ($43) {
  20393. label = 20;
  20394. break;
  20395. }
  20396. $44 = (($$070) + ($$064)|0);
  20397. $45 = HEAP32[$7>>2]|0;
  20398. $46 = ($44>>>0)>($45>>>0);
  20399. if ($46) {
  20400. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  20401. $48 = ($47|0)==(0);
  20402. if ($48) {
  20403. $$3$ph = 0;
  20404. label = 28;
  20405. break;
  20406. }
  20407. $49 = HEAP32[$1>>2]|0;
  20408. $$272 = $49;
  20409. } else {
  20410. $$272 = $$070;
  20411. }
  20412. $50 = (0 - ($$063))|0;
  20413. $9 = (($$272) + ($50)|0);
  20414. $51 = ($$063|0)==(1);
  20415. $52 = ($$064|0)!=(0);
  20416. if ($51) {
  20417. if (!($52)) {
  20418. $$070 = $$272;
  20419. continue;
  20420. }
  20421. $8 = HEAP8[$9>>0]|0;
  20422. _memset(($$272|0),($8|0),($$064|0))|0;
  20423. $scevgep92 = (($$272) + ($$064)|0);
  20424. $$070 = $scevgep92;
  20425. continue;
  20426. }
  20427. if ($52) {
  20428. $$067 = $9;$$266 = $$064;$$5 = $$272;
  20429. } else {
  20430. $$070 = $$272;
  20431. continue;
  20432. }
  20433. while(1) {
  20434. $53 = ((($$067)) + 1|0);
  20435. $54 = HEAP8[$$067>>0]|0;
  20436. $55 = ((($$5)) + 1|0);
  20437. HEAP8[$$5>>0] = $54;
  20438. $56 = (($$266) + -1)|0;
  20439. $57 = ($56|0)==(0);
  20440. if ($57) {
  20441. break;
  20442. } else {
  20443. $$067 = $53;$$266 = $56;$$5 = $55;
  20444. }
  20445. }
  20446. $scevgep = (($$272) + ($$064)|0);
  20447. $$070 = $scevgep;
  20448. }
  20449. if ((label|0) == 6) {
  20450. _stbi__err(10566);
  20451. $$3$ph = 0;
  20452. return ($$3$ph|0);
  20453. }
  20454. else if ((label|0) == 12) {
  20455. HEAP32[$1>>2] = $$070;
  20456. $$3$ph = 1;
  20457. return ($$3$ph|0);
  20458. }
  20459. else if ((label|0) == 16) {
  20460. _stbi__err(10566);
  20461. $$3$ph = 0;
  20462. return ($$3$ph|0);
  20463. }
  20464. else if ((label|0) == 20) {
  20465. _stbi__err(10583);
  20466. $$3$ph = 0;
  20467. return ($$3$ph|0);
  20468. }
  20469. else if ((label|0) == 28) {
  20470. return ($$3$ph|0);
  20471. }
  20472. return (0)|0;
  20473. }
  20474. function _stbi__zhuffman_decode($0,$1) {
  20475. $0 = $0|0;
  20476. $1 = $1|0;
  20477. 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;
  20478. sp = STACKTOP;
  20479. $2 = ((($0)) + 8|0);
  20480. $3 = HEAP32[$2>>2]|0;
  20481. $4 = ($3|0)<(16);
  20482. if ($4) {
  20483. _stbi__fill_bits($0);
  20484. }
  20485. $5 = ((($0)) + 12|0);
  20486. $6 = HEAP32[$5>>2]|0;
  20487. $7 = $6 & 511;
  20488. $8 = (($1) + ($7<<1)|0);
  20489. $9 = HEAP16[$8>>1]|0;
  20490. $10 = $9&65535;
  20491. $11 = ($9<<16>>16)==(0);
  20492. if ($11) {
  20493. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  20494. $$0 = $17;
  20495. return ($$0|0);
  20496. } else {
  20497. $12 = $10 >>> 9;
  20498. $13 = $6 >>> $12;
  20499. HEAP32[$5>>2] = $13;
  20500. $14 = HEAP32[$2>>2]|0;
  20501. $15 = (($14) - ($12))|0;
  20502. HEAP32[$2>>2] = $15;
  20503. $16 = $10 & 511;
  20504. $$0 = $16;
  20505. return ($$0|0);
  20506. }
  20507. return (0)|0;
  20508. }
  20509. function _stbi__zexpand($0,$1,$2) {
  20510. $0 = $0|0;
  20511. $1 = $1|0;
  20512. $2 = $2|0;
  20513. 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;
  20514. var $9 = 0, label = 0, sp = 0;
  20515. sp = STACKTOP;
  20516. $3 = ((($0)) + 16|0);
  20517. HEAP32[$3>>2] = $1;
  20518. $4 = ((($0)) + 28|0);
  20519. $5 = HEAP32[$4>>2]|0;
  20520. $6 = ($5|0)==(0);
  20521. if ($6) {
  20522. _stbi__err(10592);
  20523. $$0 = 0;
  20524. return ($$0|0);
  20525. }
  20526. $7 = ((($0)) + 20|0);
  20527. $8 = HEAP32[$7>>2]|0;
  20528. $9 = $1;
  20529. $10 = $8;
  20530. $11 = (($9) - ($10))|0;
  20531. $12 = ((($0)) + 24|0);
  20532. $13 = HEAP32[$12>>2]|0;
  20533. $14 = (($13) - ($10))|0;
  20534. $15 = (($11) + ($2))|0;
  20535. $$029 = $14;
  20536. while(1) {
  20537. $16 = ($15|0)>($$029|0);
  20538. $17 = $$029 << 1;
  20539. if ($16) {
  20540. $$029 = $17;
  20541. } else {
  20542. break;
  20543. }
  20544. }
  20545. $18 = (_realloc($8,$$029)|0);
  20546. $19 = ($18|0)==(0|0);
  20547. if ($19) {
  20548. _stbi__err(9574);
  20549. $$0 = 0;
  20550. return ($$0|0);
  20551. } else {
  20552. HEAP32[$7>>2] = $18;
  20553. $20 = (($18) + ($11)|0);
  20554. HEAP32[$3>>2] = $20;
  20555. $21 = (($18) + ($$029)|0);
  20556. HEAP32[$12>>2] = $21;
  20557. $$0 = 1;
  20558. return ($$0|0);
  20559. }
  20560. return (0)|0;
  20561. }
  20562. function _stbi__fill_bits($0) {
  20563. $0 = $0|0;
  20564. 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;
  20565. sp = STACKTOP;
  20566. $1 = ((($0)) + 12|0);
  20567. $2 = ((($0)) + 8|0);
  20568. while(1) {
  20569. $3 = HEAP32[$1>>2]|0;
  20570. $4 = HEAP32[$2>>2]|0;
  20571. $5 = 1 << $4;
  20572. $6 = ($3>>>0)<($5>>>0);
  20573. if (!($6)) {
  20574. label = 3;
  20575. break;
  20576. }
  20577. $7 = (_stbi__zget8($0)|0);
  20578. $8 = $7&255;
  20579. $9 = HEAP32[$2>>2]|0;
  20580. $10 = $8 << $9;
  20581. $11 = HEAP32[$1>>2]|0;
  20582. $12 = $11 | $10;
  20583. HEAP32[$1>>2] = $12;
  20584. $13 = (($9) + 8)|0;
  20585. HEAP32[$2>>2] = $13;
  20586. $14 = ($13|0)<(25);
  20587. if (!($14)) {
  20588. label = 5;
  20589. break;
  20590. }
  20591. }
  20592. if ((label|0) == 3) {
  20593. ___assert_fail((10688|0),(9519|0),3848,(10725|0));
  20594. // unreachable;
  20595. }
  20596. else if ((label|0) == 5) {
  20597. return;
  20598. }
  20599. }
  20600. function _stbi__zhuffman_decode_slowpath($0,$1) {
  20601. $0 = $0|0;
  20602. $1 = $1|0;
  20603. 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;
  20604. 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;
  20605. sp = STACKTOP;
  20606. $2 = ((($0)) + 12|0);
  20607. $3 = HEAP32[$2>>2]|0;
  20608. $4 = (_stbi__bit_reverse($3,16)|0);
  20609. $$025 = 10;
  20610. while(1) {
  20611. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  20612. $6 = HEAP32[$5>>2]|0;
  20613. $7 = ($4|0)<($6|0);
  20614. $8 = (($$025) + 1)|0;
  20615. if ($7) {
  20616. break;
  20617. } else {
  20618. $$025 = $8;
  20619. }
  20620. }
  20621. $9 = ($$025|0)==(16);
  20622. if ($9) {
  20623. $$0 = -1;
  20624. return ($$0|0);
  20625. }
  20626. $10 = (16 - ($$025))|0;
  20627. $11 = $4 >> $10;
  20628. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  20629. $13 = HEAP16[$12>>1]|0;
  20630. $14 = $13&65535;
  20631. $15 = (($11) - ($14))|0;
  20632. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  20633. $17 = HEAP16[$16>>1]|0;
  20634. $18 = $17&65535;
  20635. $19 = (($15) + ($18))|0;
  20636. $20 = (((($1)) + 1156|0) + ($19)|0);
  20637. $21 = HEAP8[$20>>0]|0;
  20638. $22 = $21&255;
  20639. $23 = ($22|0)==($$025|0);
  20640. if (!($23)) {
  20641. ___assert_fail((10612|0),(9519|0),3876,(10628|0));
  20642. // unreachable;
  20643. }
  20644. $24 = HEAP32[$2>>2]|0;
  20645. $25 = $24 >>> $$025;
  20646. HEAP32[$2>>2] = $25;
  20647. $26 = ((($0)) + 8|0);
  20648. $27 = HEAP32[$26>>2]|0;
  20649. $28 = (($27) - ($$025))|0;
  20650. HEAP32[$26>>2] = $28;
  20651. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  20652. $30 = HEAP16[$29>>1]|0;
  20653. $31 = $30&65535;
  20654. $$0 = $31;
  20655. return ($$0|0);
  20656. }
  20657. function _stbi__bit_reverse($0,$1) {
  20658. $0 = $0|0;
  20659. $1 = $1|0;
  20660. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20661. sp = STACKTOP;
  20662. $2 = ($1|0)<(17);
  20663. if ($2) {
  20664. $3 = (_stbi__bitreverse16($0)|0);
  20665. $4 = (16 - ($1))|0;
  20666. $5 = $3 >> $4;
  20667. return ($5|0);
  20668. } else {
  20669. ___assert_fail((10659|0),(9519|0),3766,(10670|0));
  20670. // unreachable;
  20671. }
  20672. return (0)|0;
  20673. }
  20674. function _stbi__bitreverse16($0) {
  20675. $0 = $0|0;
  20676. 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;
  20677. var sp = 0;
  20678. sp = STACKTOP;
  20679. $1 = $0 >>> 1;
  20680. $2 = $1 & 21845;
  20681. $3 = $0 << 1;
  20682. $4 = $3 & 43690;
  20683. $5 = $2 | $4;
  20684. $6 = $5 >>> 2;
  20685. $7 = $6 & 13107;
  20686. $8 = $5 << 2;
  20687. $9 = $8 & 52428;
  20688. $10 = $7 | $9;
  20689. $11 = $10 >>> 4;
  20690. $12 = $11 & 3855;
  20691. $13 = $10 << 4;
  20692. $14 = $13 & 61680;
  20693. $15 = $12 | $14;
  20694. $16 = $15 >>> 8;
  20695. $17 = $15 << 8;
  20696. $18 = $17 & 65280;
  20697. $19 = $18 | $16;
  20698. return ($19|0);
  20699. }
  20700. function _stbi__zget8($0) {
  20701. $0 = $0|0;
  20702. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20703. sp = STACKTOP;
  20704. $1 = HEAP32[$0>>2]|0;
  20705. $2 = ((($0)) + 4|0);
  20706. $3 = HEAP32[$2>>2]|0;
  20707. $4 = ($1>>>0)<($3>>>0);
  20708. if (!($4)) {
  20709. $$0 = 0;
  20710. return ($$0|0);
  20711. }
  20712. $5 = ((($1)) + 1|0);
  20713. HEAP32[$0>>2] = $5;
  20714. $6 = HEAP8[$1>>0]|0;
  20715. $$0 = $6;
  20716. return ($$0|0);
  20717. }
  20718. function _stbi__refill_buffer($0) {
  20719. $0 = $0|0;
  20720. 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;
  20721. sp = STACKTOP;
  20722. $1 = ((($0)) + 16|0);
  20723. $2 = HEAP32[$1>>2]|0;
  20724. $3 = ((($0)) + 28|0);
  20725. $4 = HEAP32[$3>>2]|0;
  20726. $5 = ((($0)) + 40|0);
  20727. $6 = ((($0)) + 36|0);
  20728. $7 = HEAP32[$6>>2]|0;
  20729. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  20730. $9 = ($8|0)==(0);
  20731. if ($9) {
  20732. $10 = ((($0)) + 32|0);
  20733. HEAP32[$10>>2] = 0;
  20734. $11 = ((($0)) + 168|0);
  20735. HEAP32[$11>>2] = $5;
  20736. $12 = ((($0)) + 41|0);
  20737. $13 = ((($0)) + 172|0);
  20738. HEAP32[$13>>2] = $12;
  20739. HEAP8[$5>>0] = 0;
  20740. return;
  20741. } else {
  20742. $14 = ((($0)) + 168|0);
  20743. HEAP32[$14>>2] = $5;
  20744. $15 = (((($0)) + 40|0) + ($8)|0);
  20745. $16 = ((($0)) + 172|0);
  20746. HEAP32[$16>>2] = $15;
  20747. return;
  20748. }
  20749. }
  20750. function _stbi__rewind($0) {
  20751. $0 = $0|0;
  20752. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20753. sp = STACKTOP;
  20754. $1 = ((($0)) + 176|0);
  20755. $2 = HEAP32[$1>>2]|0;
  20756. $3 = ((($0)) + 168|0);
  20757. HEAP32[$3>>2] = $2;
  20758. $4 = ((($0)) + 180|0);
  20759. $5 = HEAP32[$4>>2]|0;
  20760. $6 = ((($0)) + 172|0);
  20761. HEAP32[$6>>2] = $5;
  20762. return;
  20763. }
  20764. function _stbi__start_callbacks($0,$1,$2) {
  20765. $0 = $0|0;
  20766. $1 = $1|0;
  20767. $2 = $2|0;
  20768. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20769. sp = STACKTOP;
  20770. $3 = ((($0)) + 16|0);
  20771. ;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;
  20772. $4 = ((($0)) + 28|0);
  20773. HEAP32[$4>>2] = $2;
  20774. $5 = ((($0)) + 36|0);
  20775. HEAP32[$5>>2] = 128;
  20776. $6 = ((($0)) + 32|0);
  20777. HEAP32[$6>>2] = 1;
  20778. $7 = ((($0)) + 40|0);
  20779. $8 = ((($0)) + 176|0);
  20780. HEAP32[$8>>2] = $7;
  20781. _stbi__refill_buffer($0);
  20782. $9 = ((($0)) + 172|0);
  20783. $10 = HEAP32[$9>>2]|0;
  20784. $11 = ((($0)) + 180|0);
  20785. HEAP32[$11>>2] = $10;
  20786. return;
  20787. }
  20788. function _stbi__stdio_read($0,$1,$2) {
  20789. $0 = $0|0;
  20790. $1 = $1|0;
  20791. $2 = $2|0;
  20792. var $3 = 0, label = 0, sp = 0;
  20793. sp = STACKTOP;
  20794. $3 = (_fread($1,1,$2,$0)|0);
  20795. return ($3|0);
  20796. }
  20797. function _stbi__stdio_skip($0,$1) {
  20798. $0 = $0|0;
  20799. $1 = $1|0;
  20800. var label = 0, sp = 0;
  20801. sp = STACKTOP;
  20802. (_fseek($0,$1,1)|0);
  20803. return;
  20804. }
  20805. function _stbi__stdio_eof($0) {
  20806. $0 = $0|0;
  20807. var $1 = 0, label = 0, sp = 0;
  20808. sp = STACKTOP;
  20809. $1 = (_feof($0)|0);
  20810. return ($1|0);
  20811. }
  20812. function _LoadImage($0,$1) {
  20813. $0 = $0|0;
  20814. $1 = $1|0;
  20815. 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;
  20816. 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;
  20817. 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;
  20818. var $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, label = 0, sp = 0;
  20819. sp = STACKTOP;
  20820. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  20821. $vararg_buffer9 = sp + 32|0;
  20822. $vararg_buffer4 = sp + 16|0;
  20823. $vararg_buffer1 = sp + 8|0;
  20824. $vararg_buffer = sp;
  20825. $2 = sp + 48|0;
  20826. $3 = sp + 44|0;
  20827. $4 = sp + 40|0;
  20828. $5 = sp + 36|0;
  20829. $6 = (_IsFileExtension($1,11765)|0);
  20830. $7 = ($6|0)==(0);
  20831. do {
  20832. if ($7) {
  20833. $19 = (_IsFileExtension($1,10987)|0);
  20834. $20 = ($19|0)==(0);
  20835. if ($20) {
  20836. HEAP32[$vararg_buffer1>>2] = $1;
  20837. _TraceLog(2,10992,$vararg_buffer1);
  20838. $$sroa$10$141 = 0;$$sroa$13$147 = 0;$$sroa$15$249 = 0;$$sroa$7$143 = 0;
  20839. break;
  20840. }
  20841. HEAP32[$3>>2] = 0;
  20842. HEAP32[$4>>2] = 0;
  20843. HEAP32[$5>>2] = 0;
  20844. $21 = (_fopen($1,12438)|0);
  20845. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  20846. (_fclose($21)|0);
  20847. $23 = HEAP32[$3>>2]|0;
  20848. $24 = HEAP32[$4>>2]|0;
  20849. $25 = HEAP32[$5>>2]|0;
  20850. switch ($25|0) {
  20851. case 1: {
  20852. $$sink = 1;
  20853. label = 11;
  20854. break;
  20855. }
  20856. case 2: {
  20857. $$sink = 2;
  20858. label = 11;
  20859. break;
  20860. }
  20861. case 3: {
  20862. $$sink = 4;
  20863. label = 11;
  20864. break;
  20865. }
  20866. case 4: {
  20867. $$sink = 7;
  20868. label = 11;
  20869. break;
  20870. }
  20871. default: {
  20872. $$sroa$15$1 = 0;
  20873. }
  20874. }
  20875. if ((label|0) == 11) {
  20876. $$sroa$15$1 = $$sink;
  20877. }
  20878. $$sroa$0$1 = $22;$$sroa$10$1 = $24;$$sroa$13$1 = 1;$$sroa$15$2 = $$sroa$15$1;$$sroa$7$1 = $23;
  20879. label = 14;
  20880. } else {
  20881. $8 = (_LoadResource($1,0)|0);
  20882. $9 = HEAP32[$8>>2]|0;
  20883. $10 = ($9|0)==(1);
  20884. if ($10) {
  20885. $11 = ((($8)) + 20|0);
  20886. $12 = HEAP32[$11>>2]|0;
  20887. $13 = ((($8)) + 4|0);
  20888. $14 = HEAP32[$13>>2]|0;
  20889. $15 = ((($8)) + 8|0);
  20890. $16 = HEAP32[$15>>2]|0;
  20891. $17 = ((($8)) + 12|0);
  20892. $18 = HEAP32[$17>>2]|0;
  20893. _LoadImagePro($2,$12,$14,$16,$18);
  20894. $$sroa$0$0$copyload = HEAP32[$2>>2]|0;
  20895. $$sroa$7$0$$sroa_idx15 = ((($2)) + 4|0);
  20896. $$sroa$7$0$copyload = HEAP32[$$sroa$7$0$$sroa_idx15>>2]|0;
  20897. $$sroa$10$0$$sroa_idx19 = ((($2)) + 8|0);
  20898. $$sroa$10$0$copyload = HEAP32[$$sroa$10$0$$sroa_idx19>>2]|0;
  20899. $$sroa$13$0$$sroa_idx23 = ((($2)) + 12|0);
  20900. $$sroa$13$0$copyload = HEAP32[$$sroa$13$0$$sroa_idx23>>2]|0;
  20901. $$sroa$15$0$$sroa_idx27 = ((($2)) + 16|0);
  20902. $$sroa$15$0$copyload = HEAP32[$$sroa$15$0$$sroa_idx27>>2]|0;
  20903. $$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;
  20904. } else {
  20905. HEAP32[$vararg_buffer>>2] = $1;
  20906. _TraceLog(2,10940,$vararg_buffer);
  20907. $$sroa$0$0 = 0;$$sroa$10$0 = 0;$$sroa$13$0 = 0;$$sroa$15$0 = 0;$$sroa$7$0 = 0;
  20908. }
  20909. _UnloadResource($8);
  20910. $$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;
  20911. label = 14;
  20912. }
  20913. } while(0);
  20914. if ((label|0) == 14) {
  20915. $26 = ($$sroa$0$1|0)==(0|0);
  20916. if ($26) {
  20917. $$sroa$10$141 = $$sroa$10$1;$$sroa$13$147 = $$sroa$13$1;$$sroa$15$249 = $$sroa$15$2;$$sroa$7$143 = $$sroa$7$1;
  20918. } else {
  20919. HEAP32[$vararg_buffer4>>2] = $1;
  20920. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  20921. HEAP32[$vararg_ptr7>>2] = $$sroa$7$1;
  20922. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  20923. HEAP32[$vararg_ptr8>>2] = $$sroa$10$1;
  20924. _TraceLog(0,11028,$vararg_buffer4);
  20925. $$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;
  20926. HEAP32[$0>>2] = $$sroa$0$144;
  20927. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  20928. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  20929. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  20930. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  20931. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  20932. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  20933. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  20934. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  20935. STACKTOP = sp;return;
  20936. }
  20937. }
  20938. HEAP32[$vararg_buffer9>>2] = $1;
  20939. _TraceLog(2,11067,$vararg_buffer9);
  20940. $$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;
  20941. HEAP32[$0>>2] = $$sroa$0$144;
  20942. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  20943. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  20944. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  20945. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  20946. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  20947. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  20948. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  20949. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  20950. STACKTOP = sp;return;
  20951. }
  20952. function _LoadResource($0,$1) {
  20953. $0 = $0|0;
  20954. $1 = $1|0;
  20955. 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;
  20956. 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;
  20957. 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;
  20958. 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;
  20959. 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;
  20960. sp = STACKTOP;
  20961. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  20962. $vararg_buffer8 = sp + 24|0;
  20963. $vararg_buffer4 = sp + 16|0;
  20964. $vararg_buffer1 = sp + 8|0;
  20965. $vararg_buffer = sp;
  20966. $2 = sp + 64|0;
  20967. $3 = sp + 32|0;
  20968. $4 = (_fopen($0,12438)|0);
  20969. $5 = ($4|0)==(0|0);
  20970. if ($5) {
  20971. HEAP32[$vararg_buffer>>2] = $0;
  20972. _TraceLog(2,11126,$vararg_buffer);
  20973. $$2 = 0;
  20974. STACKTOP = sp;return ($$2|0);
  20975. }
  20976. (_fread($2,1,1,$4)|0);
  20977. $6 = ((($2)) + 1|0);
  20978. (_fread($6,1,1,$4)|0);
  20979. $7 = ((($2)) + 2|0);
  20980. (_fread($7,1,1,$4)|0);
  20981. $8 = ((($2)) + 3|0);
  20982. (_fread($8,1,1,$4)|0);
  20983. $9 = ((($2)) + 4|0);
  20984. (_fread($9,2,1,$4)|0);
  20985. $10 = ((($2)) + 6|0);
  20986. (_fread($10,2,1,$4)|0);
  20987. $11 = HEAP8[$2>>0]|0;
  20988. $12 = ($11<<24>>24)==(114);
  20989. $13 = HEAP8[$6>>0]|0;
  20990. $14 = ($13<<24>>24)==(82);
  20991. $or$cond = $12 | $14;
  20992. $15 = HEAP8[$7>>0]|0;
  20993. $16 = ($15<<24>>24)==(69);
  20994. $or$cond60 = $or$cond | $16;
  20995. $17 = HEAP8[$8>>0]|0;
  20996. $18 = ($17<<24>>24)==(83);
  20997. $or$cond62 = $or$cond60 | $18;
  20998. if ($or$cond62) {
  20999. $19 = HEAP16[$10>>1]|0;
  21000. $20 = ($19<<16>>16)==(0);
  21001. if ($20) {
  21002. $$0$lcssa = 0;
  21003. } else {
  21004. $21 = ((($3)) + 7|0);
  21005. $22 = HEAP16[$10>>1]|0;
  21006. $23 = $22&65535;
  21007. $24 = ((($3)) + 8|0);
  21008. $25 = ((($3)) + 4|0);
  21009. $26 = ((($3)) + 16|0);
  21010. $27 = ((($3)) + 20|0);
  21011. $28 = ((($3)) + 24|0);
  21012. $29 = ((($3)) + 28|0);
  21013. $30 = ((($3)) + 8|0);
  21014. $31 = ((($3)) + 5|0);
  21015. $32 = ((($3)) + 12|0);
  21016. $$05665 = 0;
  21017. while(1) {
  21018. (_fread($3,32,1,$4)|0);
  21019. $36 = HEAP8[$21>>0]|0;
  21020. $37 = $36&255;
  21021. $38 = ($37*24)|0;
  21022. $39 = (_malloc($38)|0);
  21023. $40 = HEAP32[$3>>2]|0;
  21024. $41 = ($40|0)==($1|0);
  21025. if ($41) {
  21026. $42 = HEAP8[$21>>0]|0;
  21027. $43 = ($42<<24>>24)==(0);
  21028. if (!($43)) {
  21029. $$05764 = 0;
  21030. while(1) {
  21031. $44 = HEAP8[$25>>0]|0;
  21032. $45 = $44&255;
  21033. $46 = (($39) + (($$05764*24)|0)|0);
  21034. HEAP32[$46>>2] = $45;
  21035. $47 = HEAP32[$26>>2]|0;
  21036. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  21037. HEAP32[$48>>2] = $47;
  21038. $49 = HEAP32[$27>>2]|0;
  21039. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  21040. HEAP32[$50>>2] = $49;
  21041. $51 = HEAP32[$28>>2]|0;
  21042. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  21043. HEAP32[$52>>2] = $51;
  21044. $53 = HEAP32[$29>>2]|0;
  21045. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  21046. HEAP32[$54>>2] = $53;
  21047. $55 = HEAP32[$30>>2]|0;
  21048. $56 = (_malloc($55)|0);
  21049. (_fread($56,$55,1,$4)|0);
  21050. $57 = HEAP8[$31>>0]|0;
  21051. $58 = ($57<<24>>24)==(1);
  21052. if ($58) {
  21053. $59 = HEAP32[$30>>2]|0;
  21054. $60 = HEAP32[$32>>2]|0;
  21055. $61 = (_DecompressData($56,$59,$60)|0);
  21056. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21057. HEAP32[$62>>2] = $61;
  21058. _free($56);
  21059. } else {
  21060. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21061. HEAP32[$63>>2] = $56;
  21062. }
  21063. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  21064. $65 = HEAP32[$64>>2]|0;
  21065. $66 = ($65|0)==(0|0);
  21066. if (!($66)) {
  21067. $67 = HEAP32[$3>>2]|0;
  21068. HEAP32[$vararg_buffer4>>2] = $0;
  21069. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  21070. HEAP32[$vararg_ptr7>>2] = $67;
  21071. _TraceLog(0,11223,$vararg_buffer4);
  21072. }
  21073. (_fread($3,32,1,$4)|0);
  21074. $68 = (($$05764) + 1)|0;
  21075. $69 = HEAP8[$21>>0]|0;
  21076. $70 = $69&255;
  21077. $71 = ($68|0)<($70|0);
  21078. if ($71) {
  21079. $$05764 = $68;
  21080. } else {
  21081. break;
  21082. }
  21083. }
  21084. }
  21085. } else {
  21086. $72 = HEAP32[$24>>2]|0;
  21087. (_fseek($4,$72,1)|0);
  21088. }
  21089. $73 = (($$05665) + 1)|0;
  21090. $74 = ($73|0)<($23|0);
  21091. if ($74) {
  21092. $$05665 = $73;
  21093. } else {
  21094. $$0$lcssa = $39;
  21095. break;
  21096. }
  21097. }
  21098. }
  21099. $33 = ((($$0$lcssa)) + 20|0);
  21100. $34 = HEAP32[$33>>2]|0;
  21101. $35 = ($34|0)==(0|0);
  21102. if ($35) {
  21103. HEAP32[$vararg_buffer8>>2] = $0;
  21104. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  21105. HEAP32[$vararg_ptr11>>2] = $1;
  21106. _TraceLog(2,11269,$vararg_buffer8);
  21107. $$1 = $$0$lcssa;
  21108. } else {
  21109. $$1 = $$0$lcssa;
  21110. }
  21111. } else {
  21112. HEAP32[$vararg_buffer1>>2] = $0;
  21113. _TraceLog(2,11177,$vararg_buffer1);
  21114. $$1 = 0;
  21115. }
  21116. (_fclose($4)|0);
  21117. $$2 = $$1;
  21118. STACKTOP = sp;return ($$2|0);
  21119. }
  21120. function _LoadImagePro($0,$1,$2,$3,$4) {
  21121. $0 = $0|0;
  21122. $1 = $1|0;
  21123. $2 = $2|0;
  21124. $3 = $3|0;
  21125. $4 = $4|0;
  21126. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21127. sp = STACKTOP;
  21128. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  21129. $$byval_copy = sp + 20|0;
  21130. $5 = sp;
  21131. HEAP32[$5>>2] = $1;
  21132. $6 = ((($5)) + 4|0);
  21133. HEAP32[$6>>2] = $2;
  21134. $7 = ((($5)) + 8|0);
  21135. HEAP32[$7>>2] = $3;
  21136. $8 = ((($5)) + 12|0);
  21137. HEAP32[$8>>2] = 1;
  21138. $9 = ((($5)) + 16|0);
  21139. HEAP32[$9>>2] = $4;
  21140. ;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;
  21141. _ImageCopy($0,$$byval_copy);
  21142. STACKTOP = sp;return;
  21143. }
  21144. function _UnloadResource($0) {
  21145. $0 = $0|0;
  21146. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  21147. sp = STACKTOP;
  21148. $1 = ((($0)) + 20|0);
  21149. $2 = HEAP32[$1>>2]|0;
  21150. $3 = ($2|0)==(0|0);
  21151. if ($3) {
  21152. return;
  21153. }
  21154. _free($2);
  21155. return;
  21156. }
  21157. function _ImageCopy($0,$1) {
  21158. $0 = $0|0;
  21159. $1 = $1|0;
  21160. 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;
  21161. 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;
  21162. sp = STACKTOP;
  21163. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  21164. $vararg_buffer = sp;
  21165. $2 = ((($1)) + 4|0);
  21166. $3 = HEAP32[$2>>2]|0;
  21167. $4 = ((($1)) + 8|0);
  21168. $5 = HEAP32[$4>>2]|0;
  21169. $6 = Math_imul($5, $3)|0;
  21170. $7 = ((($1)) + 16|0);
  21171. $8 = HEAP32[$7>>2]|0;
  21172. switch ($8|0) {
  21173. case 17: case 14: case 11: case 10: case 1: {
  21174. $$0 = $6;
  21175. break;
  21176. }
  21177. case 6: case 5: case 3: case 2: {
  21178. $9 = $6 << 1;
  21179. $$0 = $9;
  21180. break;
  21181. }
  21182. case 4: {
  21183. $10 = ($6*3)|0;
  21184. $$0 = $10;
  21185. break;
  21186. }
  21187. case 7: {
  21188. $11 = $6 << 2;
  21189. $$0 = $11;
  21190. break;
  21191. }
  21192. case 16: case 15: case 13: case 12: case 9: case 8: {
  21193. $12 = (($6|0) / 2)&-1;
  21194. $$0 = $12;
  21195. break;
  21196. }
  21197. case 18: {
  21198. $13 = (($6|0) / 4)&-1;
  21199. $$0 = $13;
  21200. break;
  21201. }
  21202. default: {
  21203. _TraceLog(2,11098,$vararg_buffer);
  21204. $$0 = $6;
  21205. }
  21206. }
  21207. $14 = (_malloc($$0)|0);
  21208. $15 = ($14|0)==(0|0);
  21209. if ($15) {
  21210. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  21211. } else {
  21212. $16 = HEAP32[$1>>2]|0;
  21213. _memcpy(($14|0),($16|0),($$0|0))|0;
  21214. $17 = HEAP32[$2>>2]|0;
  21215. $18 = HEAP32[$4>>2]|0;
  21216. $19 = ((($1)) + 12|0);
  21217. $20 = HEAP32[$19>>2]|0;
  21218. $21 = HEAP32[$7>>2]|0;
  21219. $$sroa$6$0 = $17;$$sroa$7$0 = $18;$$sroa$8$0 = $20;$$sroa$9$0 = $21;
  21220. }
  21221. HEAP32[$0>>2] = $14;
  21222. $$sroa$6$0$$sroa_idx10 = ((($0)) + 4|0);
  21223. HEAP32[$$sroa$6$0$$sroa_idx10>>2] = $$sroa$6$0;
  21224. $$sroa$7$0$$sroa_idx12 = ((($0)) + 8|0);
  21225. HEAP32[$$sroa$7$0$$sroa_idx12>>2] = $$sroa$7$0;
  21226. $$sroa$8$0$$sroa_idx14 = ((($0)) + 12|0);
  21227. HEAP32[$$sroa$8$0$$sroa_idx14>>2] = $$sroa$8$0;
  21228. $$sroa$9$0$$sroa_idx16 = ((($0)) + 16|0);
  21229. HEAP32[$$sroa$9$0$$sroa_idx16>>2] = $$sroa$9$0;
  21230. STACKTOP = sp;return;
  21231. }
  21232. function _DecompressData($0,$1,$2) {
  21233. $0 = $0|0;
  21234. $1 = $1|0;
  21235. $2 = $2|0;
  21236. 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;
  21237. sp = STACKTOP;
  21238. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  21239. $vararg_buffer10 = sp + 40|0;
  21240. $vararg_buffer7 = sp + 32|0;
  21241. $vararg_buffer5 = sp + 24|0;
  21242. $vararg_buffer3 = sp + 16|0;
  21243. $vararg_buffer1 = sp + 8|0;
  21244. $vararg_buffer = sp;
  21245. $3 = (_malloc($2)|0);
  21246. $4 = ($3|0)==(0|0);
  21247. if ($4) {
  21248. _TraceLog(2,11319,$vararg_buffer);
  21249. STACKTOP = sp;return ($3|0);
  21250. }
  21251. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  21252. $6 = ($5|0)==(-1);
  21253. if ($6) {
  21254. _TraceLog(2,11358,$vararg_buffer1);
  21255. _free($3);
  21256. }
  21257. $7 = ($5|0)==($2|0);
  21258. if (!($7)) {
  21259. _TraceLog(2,11384,$vararg_buffer3);
  21260. HEAP32[$vararg_buffer5>>2] = $2;
  21261. _TraceLog(2,11447,$vararg_buffer5);
  21262. HEAP32[$vararg_buffer7>>2] = $5;
  21263. _TraceLog(2,11482,$vararg_buffer7);
  21264. }
  21265. HEAP32[$vararg_buffer10>>2] = $1;
  21266. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  21267. HEAP32[$vararg_ptr13>>2] = $5;
  21268. _TraceLog(0,11517,$vararg_buffer10);
  21269. STACKTOP = sp;return ($3|0);
  21270. }
  21271. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  21272. $0 = $0|0;
  21273. $1 = $1|0;
  21274. $2 = $2|0;
  21275. $3 = $3|0;
  21276. $4 = $4|0;
  21277. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21278. sp = STACKTOP;
  21279. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  21280. $5 = sp + 11000|0;
  21281. $6 = sp;
  21282. $7 = sp + 8|0;
  21283. HEAP32[$5>>2] = $1;
  21284. HEAP32[$6>>2] = $3;
  21285. HEAP32[$7>>2] = 0;
  21286. $8 = $4 & -7;
  21287. $9 = $8 | 4;
  21288. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  21289. $11 = ($10|0)!=(0);
  21290. $12 = HEAP32[$5>>2]|0;
  21291. $13 = $11 ? -1 : $12;
  21292. STACKTOP = sp;return ($13|0);
  21293. }
  21294. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  21295. $0 = $0|0;
  21296. $1 = $1|0;
  21297. $2 = $2|0;
  21298. $3 = $3|0;
  21299. $4 = $4|0;
  21300. $5 = $5|0;
  21301. $6 = $6|0;
  21302. 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;
  21303. 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;
  21304. 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;
  21305. 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;
  21306. 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;
  21307. 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;
  21308. 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;
  21309. 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;
  21310. 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;
  21311. 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;
  21312. 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;
  21313. 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;
  21314. 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;
  21315. 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;
  21316. 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;
  21317. 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;
  21318. 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;
  21319. 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;
  21320. 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;
  21321. 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;
  21322. 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;
  21323. 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;
  21324. 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;
  21325. 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;
  21326. 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;
  21327. 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;
  21328. 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;
  21329. 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;
  21330. 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;
  21331. 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;
  21332. 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;
  21333. 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;
  21334. 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;
  21335. 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;
  21336. 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;
  21337. 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;
  21338. 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;
  21339. 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;
  21340. 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;
  21341. 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;
  21342. 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;
  21343. 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;
  21344. 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;
  21345. 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;
  21346. 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;
  21347. 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;
  21348. 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;
  21349. 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;
  21350. 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;
  21351. 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;
  21352. 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;
  21353. 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;
  21354. 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;
  21355. 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;
  21356. 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;
  21357. 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;
  21358. 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;
  21359. 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;
  21360. 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;
  21361. 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;
  21362. 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;
  21363. 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;
  21364. 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;
  21365. 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;
  21366. 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;
  21367. 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;
  21368. 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;
  21369. 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;
  21370. 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;
  21371. 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;
  21372. 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;
  21373. 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;
  21374. 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;
  21375. 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;
  21376. 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;
  21377. 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;
  21378. 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;
  21379. 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;
  21380. 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;
  21381. 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;
  21382. 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;
  21383. 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;
  21384. 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;
  21385. 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;
  21386. 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;
  21387. 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;
  21388. 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;
  21389. 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;
  21390. 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;
  21391. 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;
  21392. 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;
  21393. 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;
  21394. 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;
  21395. 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;
  21396. 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;
  21397. 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;
  21398. 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;
  21399. sp = STACKTOP;
  21400. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  21401. $7 = sp + 64|0;
  21402. $8 = sp;
  21403. $9 = HEAP32[$2>>2]|0;
  21404. $10 = (($1) + ($9)|0);
  21405. $11 = HEAP32[$5>>2]|0;
  21406. $12 = (($4) + ($11)|0);
  21407. $13 = $6 & 4;
  21408. $14 = ($13|0)!=(0);
  21409. $15 = $4;
  21410. $16 = $3;
  21411. $17 = $16 ^ -1;
  21412. $18 = (($15) + ($17))|0;
  21413. $19 = (($18) + ($11))|0;
  21414. $$1753 = $14 ? -1 : $19;
  21415. $20 = (($$1753) + 1)|0;
  21416. $21 = $20 & $$1753;
  21417. $22 = ($21|0)!=(0);
  21418. $23 = ($4>>>0)<($3>>>0);
  21419. $or$cond1702 = $23 | $22;
  21420. if ($or$cond1702) {
  21421. HEAP32[$5>>2] = 0;
  21422. HEAP32[$2>>2] = 0;
  21423. $$0951 = -3;
  21424. STACKTOP = sp;return ($$0951|0);
  21425. }
  21426. $24 = ((($0)) + 4|0);
  21427. $25 = HEAP32[$24>>2]|0;
  21428. $26 = ((($0)) + 56|0);
  21429. $27 = HEAP32[$26>>2]|0;
  21430. $28 = ((($0)) + 32|0);
  21431. $29 = HEAP32[$28>>2]|0;
  21432. $30 = ((($0)) + 36|0);
  21433. $31 = HEAP32[$30>>2]|0;
  21434. $32 = ((($0)) + 40|0);
  21435. $33 = HEAP32[$32>>2]|0;
  21436. $34 = ((($0)) + 60|0);
  21437. $35 = HEAP32[$34>>2]|0;
  21438. $36 = HEAP32[$0>>2]|0;
  21439. L5: do {
  21440. switch ($36|0) {
  21441. case 0: {
  21442. $37 = ((($0)) + 12|0);
  21443. HEAP32[$37>>2] = 0;
  21444. $38 = ((($0)) + 8|0);
  21445. HEAP32[$38>>2] = 0;
  21446. $39 = ((($0)) + 28|0);
  21447. HEAP32[$39>>2] = 1;
  21448. $40 = ((($0)) + 16|0);
  21449. HEAP32[$40>>2] = 1;
  21450. $41 = $6 & 1;
  21451. $42 = ($41|0)==(0);
  21452. if ($42) {
  21453. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  21454. label = 14;
  21455. } else {
  21456. $43 = ($9|0)<(1);
  21457. if ($43) {
  21458. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  21459. label = 6;
  21460. } else {
  21461. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  21462. label = 8;
  21463. }
  21464. }
  21465. break;
  21466. }
  21467. case 1: {
  21468. $46 = ($9|0)>(0);
  21469. if ($46) {
  21470. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  21471. label = 8;
  21472. } else {
  21473. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  21474. label = 6;
  21475. }
  21476. break;
  21477. }
  21478. case 2: {
  21479. $53 = ($9|0)>(0);
  21480. if ($53) {
  21481. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  21482. label = 12;
  21483. } else {
  21484. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  21485. label = 10;
  21486. }
  21487. break;
  21488. }
  21489. case 36: {
  21490. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  21491. label = 243;
  21492. break;
  21493. }
  21494. case 3: {
  21495. $75 = ($9|0)>(0);
  21496. if ($75) {
  21497. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  21498. label = 18;
  21499. } else {
  21500. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  21501. label = 16;
  21502. }
  21503. break;
  21504. }
  21505. case 5: {
  21506. $90 = ($9|0)>(0);
  21507. if ($90) {
  21508. $91 = ((($1)) + 1|0);
  21509. $92 = HEAP8[$1>>0]|0;
  21510. $93 = $92&255;
  21511. $$01412 = $93;$$111518 = $91;
  21512. } else {
  21513. $88 = $6 & 2;
  21514. $89 = ($88|0)==(0);
  21515. if ($89) {
  21516. $$01412 = 0;$$111518 = $1;
  21517. } else {
  21518. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  21519. label = 243;
  21520. break L5;
  21521. }
  21522. }
  21523. $94 = $$01412 << $25;
  21524. $95 = $94 | $27;
  21525. $96 = (($25) + 8)|0;
  21526. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  21527. label = 25;
  21528. break;
  21529. }
  21530. case 6: {
  21531. $106 = ($9|0)>(0);
  21532. if ($106) {
  21533. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  21534. label = 32;
  21535. } else {
  21536. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  21537. label = 30;
  21538. }
  21539. break;
  21540. }
  21541. case 7: {
  21542. $120 = ($9|0)>(0);
  21543. if ($120) {
  21544. $121 = ((($1)) + 1|0);
  21545. $122 = HEAP8[$1>>0]|0;
  21546. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  21547. label = 39;
  21548. } else {
  21549. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  21550. label = 36;
  21551. }
  21552. break;
  21553. }
  21554. case 39: {
  21555. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  21556. label = 43;
  21557. break;
  21558. }
  21559. case 51: {
  21560. $152 = ($9|0)>(0);
  21561. if ($152) {
  21562. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  21563. label = 49;
  21564. } else {
  21565. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  21566. label = 47;
  21567. }
  21568. break;
  21569. }
  21570. case 52: {
  21571. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  21572. label = 52;
  21573. break;
  21574. }
  21575. case 9: {
  21576. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  21577. label = 55;
  21578. break;
  21579. }
  21580. case 38: {
  21581. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  21582. label = 56;
  21583. break;
  21584. }
  21585. case 40: {
  21586. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  21587. label = 58;
  21588. break;
  21589. }
  21590. case 10: {
  21591. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  21592. label = 60;
  21593. break;
  21594. }
  21595. case 11: {
  21596. $193 = ($9|0)>(0);
  21597. if ($193) {
  21598. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  21599. label = 66;
  21600. } else {
  21601. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  21602. label = 64;
  21603. }
  21604. break;
  21605. }
  21606. case 14: {
  21607. $224 = ($9|0)>(0);
  21608. if ($224) {
  21609. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  21610. label = 75;
  21611. } else {
  21612. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  21613. label = 73;
  21614. }
  21615. break;
  21616. }
  21617. case 35: {
  21618. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  21619. label = 86;
  21620. break;
  21621. }
  21622. case 16: {
  21623. $452 = ($9|0)>(0);
  21624. if ($452) {
  21625. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  21626. label = 116;
  21627. } else {
  21628. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  21629. label = 114;
  21630. }
  21631. break;
  21632. }
  21633. case 17: {
  21634. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  21635. label = 125;
  21636. break;
  21637. }
  21638. case 18: {
  21639. $503 = ($9|0)>(0);
  21640. if ($503) {
  21641. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  21642. label = 130;
  21643. } else {
  21644. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  21645. label = 128;
  21646. }
  21647. break;
  21648. }
  21649. case 21: {
  21650. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  21651. label = 136;
  21652. break;
  21653. }
  21654. case 23: {
  21655. $572 = ($9|0)>(0);
  21656. if ($572) {
  21657. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  21658. label = 153;
  21659. } else {
  21660. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  21661. label = 151;
  21662. }
  21663. break;
  21664. }
  21665. case 24: {
  21666. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  21667. label = 160;
  21668. break;
  21669. }
  21670. case 25: {
  21671. $696 = ($9|0)>(0);
  21672. if ($696) {
  21673. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  21674. label = 182;
  21675. } else {
  21676. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  21677. label = 180;
  21678. }
  21679. break;
  21680. }
  21681. case 26: {
  21682. $737 = ($9|0)>(0);
  21683. if ($737) {
  21684. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  21685. label = 195;
  21686. } else {
  21687. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  21688. label = 193;
  21689. }
  21690. break;
  21691. }
  21692. case 27: {
  21693. $784 = ($9|0)>(0);
  21694. if ($784) {
  21695. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  21696. label = 206;
  21697. } else {
  21698. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  21699. label = 204;
  21700. }
  21701. break;
  21702. }
  21703. case 37: {
  21704. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  21705. label = 210;
  21706. break;
  21707. }
  21708. case 53: {
  21709. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  21710. label = 213;
  21711. break;
  21712. }
  21713. case 32: {
  21714. $842 = ($9|0)>(0);
  21715. if ($842) {
  21716. $843 = ((($1)) + 1|0);
  21717. $844 = HEAP8[$1>>0]|0;
  21718. $845 = $844&255;
  21719. $$0949 = $845;$$881595 = $843;
  21720. } else {
  21721. $840 = $6 & 2;
  21722. $841 = ($840|0)==(0);
  21723. if ($841) {
  21724. $$0949 = 0;$$881595 = $1;
  21725. } else {
  21726. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  21727. label = 243;
  21728. break L5;
  21729. }
  21730. }
  21731. $846 = $$0949 << $25;
  21732. $847 = $846 | $27;
  21733. $848 = (($25) + 8)|0;
  21734. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  21735. label = 226;
  21736. break;
  21737. }
  21738. case 41: {
  21739. $858 = ($9|0)>(0);
  21740. if ($858) {
  21741. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  21742. label = 233;
  21743. } else {
  21744. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  21745. label = 231;
  21746. }
  21747. break;
  21748. }
  21749. case 42: {
  21750. $871 = ($9|0)>(0);
  21751. if ($871) {
  21752. $872 = ((($1)) + 1|0);
  21753. $873 = HEAP8[$1>>0]|0;
  21754. $874 = $873&255;
  21755. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  21756. label = 241;
  21757. } else {
  21758. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  21759. label = 237;
  21760. }
  21761. break;
  21762. }
  21763. case 34: {
  21764. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  21765. label = 242;
  21766. break;
  21767. }
  21768. default: {
  21769. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  21770. label = 244;
  21771. }
  21772. }
  21773. } while(0);
  21774. if ((label|0) == 6) {
  21775. $44 = $6 & 2;
  21776. $45 = ($44|0)==(0);
  21777. if ($45) {
  21778. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  21779. label = 9;
  21780. } else {
  21781. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  21782. label = 243;
  21783. }
  21784. }
  21785. else if ((label|0) == 8) {
  21786. $47 = ((($1)) + 1|0);
  21787. $48 = HEAP8[$1>>0]|0;
  21788. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  21789. label = 9;
  21790. }
  21791. if ((label|0) == 9) {
  21792. $$sink3 = $$sink3$shrunk&255;
  21793. $49 = ((($0)) + 8|0);
  21794. HEAP32[$49>>2] = $$sink3;
  21795. $50 = ($$01507>>>0)<($10>>>0);
  21796. if ($50) {
  21797. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  21798. label = 12;
  21799. } else {
  21800. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  21801. label = 10;
  21802. }
  21803. }
  21804. if ((label|0) == 10) {
  21805. $51 = $6 & 2;
  21806. $52 = ($51|0)==(0);
  21807. if ($52) {
  21808. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  21809. label = 13;
  21810. } else {
  21811. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  21812. label = 243;
  21813. }
  21814. }
  21815. else if ((label|0) == 12) {
  21816. $54 = ((($$sink1705)) + 1|0);
  21817. $55 = HEAP8[$$sink1705>>0]|0;
  21818. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  21819. label = 13;
  21820. }
  21821. if ((label|0) == 13) {
  21822. $$sink9 = $$sink9$shrunk&255;
  21823. $56 = ((($0)) + 12|0);
  21824. HEAP32[$56>>2] = $$sink9;
  21825. $57 = ((($0)) + 8|0);
  21826. $58 = HEAP32[$57>>2]|0;
  21827. $59 = $58 << 8;
  21828. $60 = $59 | $$sink9;
  21829. $61 = (($60>>>0) % 31)&-1;
  21830. $62 = $$sink9 & 32;
  21831. $63 = $61 | $62;
  21832. $64 = $58 & 15;
  21833. $65 = ($64|0)!=(8);
  21834. $not$ = ($63|0)!=(0);
  21835. $$1754 = $65 | $not$;
  21836. $66 = $58 >>> 4;
  21837. $67 = 256 << $66;
  21838. $68 = ($67>>>0)>(32768);
  21839. $69 = ($20>>>0)<($67>>>0);
  21840. $$ = $68 | $69;
  21841. $not$1755 = $14 ^ 1;
  21842. $70 = $$ & $not$1755;
  21843. $$31100$v = $70 | $$1754;
  21844. if ($$31100$v) {
  21845. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  21846. label = 243;
  21847. } else {
  21848. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  21849. label = 14;
  21850. }
  21851. }
  21852. L46: while(1) {
  21853. switch (label|0) {
  21854. case 14: {
  21855. label = 0;
  21856. $71 = ($$5>>>0)<(3);
  21857. if ($71) {
  21858. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  21859. label = 15;
  21860. } else {
  21861. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  21862. label = 20;
  21863. }
  21864. break;
  21865. }
  21866. case 16: {
  21867. label = 0;
  21868. $73 = $6 & 2;
  21869. $74 = ($73|0)==(0);
  21870. if ($74) {
  21871. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  21872. label = 19;
  21873. } else {
  21874. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  21875. label = 243;
  21876. continue L46;
  21877. }
  21878. break;
  21879. }
  21880. case 18: {
  21881. label = 0;
  21882. $76 = ((($$sink1710)) + 1|0);
  21883. $77 = HEAP8[$$sink1710>>0]|0;
  21884. $$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;
  21885. label = 19;
  21886. break;
  21887. }
  21888. case 25: {
  21889. label = 0;
  21890. $97 = $$13 & 7;
  21891. $98 = $$131322 >>> $97;
  21892. $99 = (($$13) - ($97))|0;
  21893. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  21894. label = 26;
  21895. break;
  21896. }
  21897. case 30: {
  21898. label = 0;
  21899. $104 = $6 & 2;
  21900. $105 = ($104|0)==(0);
  21901. if ($105) {
  21902. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  21903. label = 33;
  21904. } else {
  21905. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  21906. label = 243;
  21907. continue L46;
  21908. }
  21909. break;
  21910. }
  21911. case 32: {
  21912. label = 0;
  21913. $107 = ((($$sink1713)) + 1|0);
  21914. $108 = HEAP8[$$sink1713>>0]|0;
  21915. $$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;
  21916. label = 33;
  21917. break;
  21918. }
  21919. case 36: {
  21920. label = 0;
  21921. $118 = $6 & 2;
  21922. $119 = ($118|0)==(0);
  21923. if ($119) {
  21924. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  21925. label = 39;
  21926. continue L46;
  21927. } else {
  21928. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  21929. label = 243;
  21930. continue L46;
  21931. }
  21932. break;
  21933. }
  21934. case 39: {
  21935. label = 0;
  21936. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  21937. HEAP8[$$sink13>>0] = $$sink12;
  21938. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  21939. label = 41;
  21940. break;
  21941. }
  21942. case 43: {
  21943. label = 0;
  21944. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  21945. label = 243;
  21946. continue L46;
  21947. break;
  21948. }
  21949. case 47: {
  21950. label = 0;
  21951. $150 = $6 & 2;
  21952. $151 = ($150|0)==(0);
  21953. if ($151) {
  21954. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  21955. label = 50;
  21956. } else {
  21957. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  21958. label = 243;
  21959. continue L46;
  21960. }
  21961. break;
  21962. }
  21963. case 49: {
  21964. label = 0;
  21965. $153 = ((($$sink1716)) + 1|0);
  21966. $154 = HEAP8[$$sink1716>>0]|0;
  21967. $$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;
  21968. label = 50;
  21969. break;
  21970. }
  21971. case 52: {
  21972. label = 0;
  21973. $162 = ($$231630>>>0)<($12>>>0);
  21974. if (!($162)) {
  21975. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  21976. label = 243;
  21977. continue L46;
  21978. }
  21979. $163 = $$271018&255;
  21980. $164 = ((($$231630)) + 1|0);
  21981. HEAP8[$$231630>>0] = $163;
  21982. $165 = (($$271124) + -1)|0;
  21983. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  21984. label = 44;
  21985. break;
  21986. }
  21987. case 55: {
  21988. label = 0;
  21989. $167 = ($$251632>>>0)<($12>>>0);
  21990. if ($167) {
  21991. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  21992. label = 56;
  21993. continue L46;
  21994. } else {
  21995. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  21996. label = 243;
  21997. continue L46;
  21998. }
  21999. break;
  22000. }
  22001. case 56: {
  22002. label = 0;
  22003. $168 = ($$301537>>>0)<($10>>>0);
  22004. if ($168) {
  22005. $171 = $12;
  22006. $172 = $$261633;
  22007. $173 = (($171) - ($172))|0;
  22008. $174 = $10;
  22009. $175 = $$301537;
  22010. $176 = (($174) - ($175))|0;
  22011. $177 = ($173>>>0)<($176>>>0);
  22012. $$sink17 = $177 ? $12 : $10;
  22013. $$sink16 = $177 ? $$261633 : $$301537;
  22014. $178 = $$sink17;
  22015. $179 = $$sink16;
  22016. $180 = (($178) - ($179))|0;
  22017. $181 = ($180>>>0)<($$301127>>>0);
  22018. $$$301127 = $181 ? $180 : $$301127;
  22019. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  22020. $182 = (($$301537) + ($$$301127)|0);
  22021. $183 = (($$261633) + ($$$301127)|0);
  22022. $184 = (($$301127) - ($$$301127))|0;
  22023. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  22024. label = 54;
  22025. break;
  22026. } else {
  22027. $169 = $6 & 2;
  22028. $170 = ($169|0)==(0);
  22029. if ($170) {
  22030. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  22031. label = 58;
  22032. continue L46;
  22033. } else {
  22034. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  22035. label = 243;
  22036. continue L46;
  22037. }
  22038. }
  22039. break;
  22040. }
  22041. case 58: {
  22042. label = 0;
  22043. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  22044. label = 243;
  22045. continue L46;
  22046. break;
  22047. }
  22048. case 60: {
  22049. label = 0;
  22050. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  22051. label = 243;
  22052. continue L46;
  22053. break;
  22054. }
  22055. case 64: {
  22056. label = 0;
  22057. $191 = $6 & 2;
  22058. $192 = ($191|0)==(0);
  22059. if ($192) {
  22060. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  22061. label = 67;
  22062. } else {
  22063. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  22064. label = 243;
  22065. continue L46;
  22066. }
  22067. break;
  22068. }
  22069. case 66: {
  22070. label = 0;
  22071. $194 = ((($$sink1719)) + 1|0);
  22072. $195 = HEAP8[$$sink1719>>0]|0;
  22073. $$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;
  22074. label = 67;
  22075. break;
  22076. }
  22077. case 73: {
  22078. label = 0;
  22079. $222 = $6 & 2;
  22080. $223 = ($222|0)==(0);
  22081. if ($223) {
  22082. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  22083. label = 76;
  22084. } else {
  22085. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  22086. label = 243;
  22087. continue L46;
  22088. }
  22089. break;
  22090. }
  22091. case 75: {
  22092. label = 0;
  22093. $225 = ((($$sink1722)) + 1|0);
  22094. $226 = HEAP8[$$sink1722>>0]|0;
  22095. $$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;
  22096. label = 76;
  22097. break;
  22098. }
  22099. case 86: {
  22100. label = 0;
  22101. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  22102. label = 243;
  22103. continue L46;
  22104. break;
  22105. }
  22106. case 114: {
  22107. label = 0;
  22108. $450 = $6 & 2;
  22109. $451 = ($450|0)==(0);
  22110. if ($451) {
  22111. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  22112. label = 117;
  22113. } else {
  22114. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  22115. label = 243;
  22116. continue L46;
  22117. }
  22118. break;
  22119. }
  22120. case 116: {
  22121. label = 0;
  22122. $453 = ((($$sink1729)) + 1|0);
  22123. $454 = HEAP8[$$sink1729>>0]|0;
  22124. $$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;
  22125. label = 117;
  22126. break;
  22127. }
  22128. case 125: {
  22129. label = 0;
  22130. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  22131. label = 243;
  22132. continue L46;
  22133. break;
  22134. }
  22135. case 128: {
  22136. label = 0;
  22137. $501 = $6 & 2;
  22138. $502 = ($501|0)==(0);
  22139. if ($502) {
  22140. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  22141. label = 131;
  22142. } else {
  22143. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  22144. label = 243;
  22145. continue L46;
  22146. }
  22147. break;
  22148. }
  22149. case 130: {
  22150. label = 0;
  22151. $504 = ((($$sink1732)) + 1|0);
  22152. $505 = HEAP8[$$sink1732>>0]|0;
  22153. $$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;
  22154. label = 131;
  22155. break;
  22156. }
  22157. case 136: {
  22158. label = 0;
  22159. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  22160. label = 243;
  22161. continue L46;
  22162. break;
  22163. }
  22164. case 151: {
  22165. label = 0;
  22166. $570 = $6 & 2;
  22167. $571 = ($570|0)==(0);
  22168. if ($571) {
  22169. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  22170. label = 154;
  22171. } else {
  22172. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  22173. label = 243;
  22174. continue L46;
  22175. }
  22176. break;
  22177. }
  22178. case 153: {
  22179. label = 0;
  22180. $573 = ((($$sink1736)) + 1|0);
  22181. $574 = HEAP8[$$sink1736>>0]|0;
  22182. $$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;
  22183. label = 154;
  22184. break;
  22185. }
  22186. case 160: {
  22187. label = 0;
  22188. $610 = ($$591666>>>0)<($12>>>0);
  22189. if (!($610)) {
  22190. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  22191. label = 243;
  22192. continue L46;
  22193. }
  22194. $611 = $$621159&255;
  22195. $612 = ((($$591666)) + 1|0);
  22196. HEAP8[$$591666>>0] = $611;
  22197. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  22198. label = 140;
  22199. break;
  22200. }
  22201. case 180: {
  22202. label = 0;
  22203. $694 = $6 & 2;
  22204. $695 = ($694|0)==(0);
  22205. if ($695) {
  22206. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  22207. label = 183;
  22208. } else {
  22209. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  22210. label = 243;
  22211. continue L46;
  22212. }
  22213. break;
  22214. }
  22215. case 182: {
  22216. label = 0;
  22217. $697 = ((($$sink1739)) + 1|0);
  22218. $698 = HEAP8[$$sink1739>>0]|0;
  22219. $$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;
  22220. label = 183;
  22221. break;
  22222. }
  22223. case 193: {
  22224. label = 0;
  22225. $735 = $6 & 2;
  22226. $736 = ($735|0)==(0);
  22227. if ($736) {
  22228. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  22229. label = 196;
  22230. } else {
  22231. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  22232. label = 243;
  22233. continue L46;
  22234. }
  22235. break;
  22236. }
  22237. case 195: {
  22238. label = 0;
  22239. $738 = ((($$sink1743)) + 1|0);
  22240. $739 = HEAP8[$$sink1743>>0]|0;
  22241. $$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;
  22242. label = 196;
  22243. break;
  22244. }
  22245. case 204: {
  22246. label = 0;
  22247. $782 = $6 & 2;
  22248. $783 = ($782|0)==(0);
  22249. if ($783) {
  22250. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  22251. label = 207;
  22252. } else {
  22253. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  22254. label = 243;
  22255. continue L46;
  22256. }
  22257. break;
  22258. }
  22259. case 206: {
  22260. label = 0;
  22261. $785 = ((($$sink1746)) + 1|0);
  22262. $786 = HEAP8[$$sink1746>>0]|0;
  22263. $$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;
  22264. label = 207;
  22265. break;
  22266. }
  22267. case 210: {
  22268. label = 0;
  22269. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  22270. label = 243;
  22271. continue L46;
  22272. break;
  22273. }
  22274. case 213: {
  22275. label = 0;
  22276. $809 = ($$781685>>>0)<($12>>>0);
  22277. if (!($809)) {
  22278. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  22279. label = 243;
  22280. continue L46;
  22281. }
  22282. $810 = (($$751491) + 1)|0;
  22283. $811 = (($$751491) - ($$791070))|0;
  22284. $812 = $811 & $$1753;
  22285. $813 = (($3) + ($812)|0);
  22286. $814 = HEAP8[$813>>0]|0;
  22287. $815 = ((($$781685)) + 1|0);
  22288. HEAP8[$$781685>>0] = $814;
  22289. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  22290. label = 212;
  22291. break;
  22292. }
  22293. case 226: {
  22294. label = 0;
  22295. $849 = $$90 & 7;
  22296. $850 = $$901399 >>> $849;
  22297. $851 = (($$90) - ($849))|0;
  22298. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  22299. label = 227;
  22300. break;
  22301. }
  22302. case 231: {
  22303. label = 0;
  22304. $856 = $6 & 2;
  22305. $857 = ($856|0)==(0);
  22306. if ($857) {
  22307. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  22308. label = 234;
  22309. } else {
  22310. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  22311. label = 243;
  22312. continue L46;
  22313. }
  22314. break;
  22315. }
  22316. case 233: {
  22317. label = 0;
  22318. $859 = ((($$sink1750)) + 1|0);
  22319. $860 = HEAP8[$$sink1750>>0]|0;
  22320. $$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;
  22321. label = 234;
  22322. break;
  22323. }
  22324. case 237: {
  22325. label = 0;
  22326. $869 = $6 & 2;
  22327. $870 = ($869|0)==(0);
  22328. if ($870) {
  22329. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  22330. label = 241;
  22331. continue L46;
  22332. } else {
  22333. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  22334. label = 243;
  22335. continue L46;
  22336. }
  22337. break;
  22338. }
  22339. case 241: {
  22340. label = 0;
  22341. $878 = ((($0)) + 16|0);
  22342. $879 = HEAP32[$878>>2]|0;
  22343. $880 = $879 << 8;
  22344. $881 = $880 | $$0948;
  22345. HEAP32[$878>>2] = $881;
  22346. $882 = (($$931190) + 1)|0;
  22347. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  22348. label = 227;
  22349. break;
  22350. }
  22351. case 242: {
  22352. label = 0;
  22353. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  22354. label = 243;
  22355. continue L46;
  22356. break;
  22357. }
  22358. case 243: {
  22359. label = 0;
  22360. HEAP32[$0>>2] = $$sink30;
  22361. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  22362. label = 244;
  22363. continue L46;
  22364. break;
  22365. }
  22366. case 244: {
  22367. label = 0;
  22368. HEAP32[$24>>2] = $$100;
  22369. HEAP32[$26>>2] = $$1001409;
  22370. HEAP32[$28>>2] = $$941085;
  22371. HEAP32[$30>>2] = $$961193;
  22372. HEAP32[$32>>2] = $$961299;
  22373. HEAP32[$34>>2] = $$901506;
  22374. $883 = $$991606;
  22375. $884 = $1;
  22376. $885 = (($883) - ($884))|0;
  22377. HEAP32[$2>>2] = $885;
  22378. $886 = $$941701;
  22379. $887 = $4;
  22380. $888 = (($886) - ($887))|0;
  22381. HEAP32[$5>>2] = $888;
  22382. $889 = $6 & 9;
  22383. $890 = ($889|0)!=(0);
  22384. $891 = ($$1961|0)>(-1);
  22385. $or$cond29 = $890 & $891;
  22386. if ($or$cond29) {
  22387. break L46;
  22388. } else {
  22389. $$0951 = $$1961;
  22390. label = 258;
  22391. break L46;
  22392. }
  22393. break;
  22394. }
  22395. }
  22396. switch (label|0) {
  22397. case 19: {
  22398. label = 0;
  22399. $$01413 = $$01413$shrunk&255;
  22400. $78 = $$01413 << $$8;
  22401. $79 = $78 | $$81317;
  22402. $80 = (($$8) + 8)|0;
  22403. $81 = ($80>>>0)<(3);
  22404. if ($81) {
  22405. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  22406. label = 15;
  22407. } else {
  22408. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  22409. label = 20;
  22410. }
  22411. break;
  22412. }
  22413. case 33: {
  22414. label = 0;
  22415. $$01411 = $$01411$shrunk&255;
  22416. $109 = $$01411 << $$17;
  22417. $110 = $109 | $$171326;
  22418. $111 = (($$17) + 8)|0;
  22419. $112 = ($$17>>>0)>(4294967287);
  22420. if ($112) {
  22421. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  22422. label = 29;
  22423. } else {
  22424. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  22425. label = 34;
  22426. }
  22427. break;
  22428. }
  22429. case 50: {
  22430. label = 0;
  22431. $$01410 = $$01410$shrunk&255;
  22432. $155 = $$01410 << $$26;
  22433. $156 = $155 | $$261335;
  22434. $157 = (($$26) + 8)|0;
  22435. $158 = ($$26>>>0)>(4294967287);
  22436. if ($158) {
  22437. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  22438. label = 46;
  22439. } else {
  22440. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  22441. label = 51;
  22442. }
  22443. break;
  22444. }
  22445. case 67: {
  22446. label = 0;
  22447. $$01300 = $$01300$shrunk&255;
  22448. $196 = $$01300 << $$37;
  22449. $197 = $196 | $$371346;
  22450. $198 = (($$37) + 8)|0;
  22451. $199 = (11574 + ($$361133)|0);
  22452. $200 = HEAP8[$199>>0]|0;
  22453. $201 = $200 << 24 >> 24;
  22454. $202 = ($198>>>0)<($201>>>0);
  22455. if ($202) {
  22456. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  22457. label = 63;
  22458. } else {
  22459. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  22460. label = 68;
  22461. }
  22462. break;
  22463. }
  22464. case 76: {
  22465. label = 0;
  22466. $$01202 = $$01202$shrunk&255;
  22467. $227 = $$01202 << $$42;
  22468. $228 = $227 | $$421351;
  22469. $229 = (($$42) + 8)|0;
  22470. $230 = ($229>>>0)<(3);
  22471. if ($230) {
  22472. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  22473. label = 72;
  22474. } else {
  22475. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  22476. label = 77;
  22477. }
  22478. break;
  22479. }
  22480. case 117: {
  22481. label = 0;
  22482. $$0980 = $$0980$shrunk&255;
  22483. $455 = $$0980 << $$49;
  22484. $456 = $455 | $$491358;
  22485. $457 = (($$49) + 8)|0;
  22486. $458 = ($457>>>0)<(15);
  22487. if ($458) {
  22488. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  22489. label = 108;
  22490. } else {
  22491. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  22492. label = 119;
  22493. }
  22494. break;
  22495. }
  22496. case 131: {
  22497. label = 0;
  22498. $$0979 = $$0979$shrunk&255;
  22499. $506 = $$0979 << $$54;
  22500. $507 = $506 | $$541363;
  22501. $508 = (($$54) + 8)|0;
  22502. $509 = ($508>>>0)<($$541257>>>0);
  22503. if ($509) {
  22504. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  22505. label = 127;
  22506. } else {
  22507. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  22508. label = 132;
  22509. }
  22510. break;
  22511. }
  22512. case 154: {
  22513. label = 0;
  22514. $$0971 = $$0971$shrunk&255;
  22515. $575 = $$0971 << $$62;
  22516. $576 = $575 | $$621371;
  22517. $577 = (($$62) + 8)|0;
  22518. $578 = ($577>>>0)<(15);
  22519. if ($578) {
  22520. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  22521. label = 145;
  22522. } else {
  22523. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  22524. label = 156;
  22525. }
  22526. break;
  22527. }
  22528. case 183: {
  22529. label = 0;
  22530. $$0959 = $$0959$shrunk&255;
  22531. $699 = $$0959 << $$71;
  22532. $700 = $699 | $$711380;
  22533. $701 = (($$71) + 8)|0;
  22534. $702 = ($701>>>0)<($$681271>>>0);
  22535. if ($702) {
  22536. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  22537. label = 179;
  22538. } else {
  22539. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  22540. label = 184;
  22541. }
  22542. break;
  22543. }
  22544. case 196: {
  22545. label = 0;
  22546. $$0952 = $$0952$shrunk&255;
  22547. $740 = $$0952 << $$76;
  22548. $741 = $740 | $$761385;
  22549. $742 = (($$76) + 8)|0;
  22550. $743 = ($742>>>0)<(15);
  22551. if ($743) {
  22552. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  22553. label = 187;
  22554. } else {
  22555. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  22556. label = 198;
  22557. }
  22558. break;
  22559. }
  22560. case 207: {
  22561. label = 0;
  22562. $$0950 = $$0950$shrunk&255;
  22563. $787 = $$0950 << $$80;
  22564. $788 = $787 | $$801389;
  22565. $789 = (($$80) + 8)|0;
  22566. $790 = ($789>>>0)<($$761279>>>0);
  22567. if ($790) {
  22568. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  22569. label = 203;
  22570. } else {
  22571. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  22572. label = 208;
  22573. }
  22574. break;
  22575. }
  22576. case 227: {
  22577. label = 0;
  22578. $852 = ($$871184>>>0)<(4);
  22579. if (!($852)) {
  22580. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  22581. label = 242;
  22582. continue L46;
  22583. }
  22584. $853 = ($$91|0)==(0);
  22585. if (!($853)) {
  22586. $854 = ($$91>>>0)<(8);
  22587. if ($854) {
  22588. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  22589. label = 230;
  22590. break;
  22591. } else {
  22592. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  22593. label = 235;
  22594. break;
  22595. }
  22596. }
  22597. $868 = ($$901597>>>0)<($10>>>0);
  22598. if (!($868)) {
  22599. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  22600. label = 237;
  22601. continue L46;
  22602. }
  22603. $875 = ((($$901597)) + 1|0);
  22604. $876 = HEAP8[$$901597>>0]|0;
  22605. $877 = $876&255;
  22606. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  22607. label = 241;
  22608. continue L46;
  22609. break;
  22610. }
  22611. case 234: {
  22612. label = 0;
  22613. $$0947 = $$0947$shrunk&255;
  22614. $861 = $$0947 << $$94;
  22615. $862 = $861 | $$941403;
  22616. $863 = (($$94) + 8)|0;
  22617. $864 = ($$94>>>0)>(4294967287);
  22618. if ($864) {
  22619. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  22620. label = 230;
  22621. } else {
  22622. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  22623. label = 235;
  22624. }
  22625. break;
  22626. }
  22627. }
  22628. L119: do {
  22629. if ((label|0) == 15) {
  22630. label = 0;
  22631. $72 = ($$51512>>>0)<($10>>>0);
  22632. if ($72) {
  22633. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  22634. label = 18;
  22635. continue L46;
  22636. } else {
  22637. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  22638. label = 16;
  22639. continue L46;
  22640. }
  22641. }
  22642. else if ((label|0) == 20) {
  22643. label = 0;
  22644. $82 = $$91318 & 7;
  22645. $83 = ((($0)) + 20|0);
  22646. HEAP32[$83>>2] = $82;
  22647. $84 = $$91318 >>> 3;
  22648. $85 = (($$9) + -3)|0;
  22649. $86 = $82 >>> 1;
  22650. $87 = ((($0)) + 24|0);
  22651. HEAP32[$87>>2] = $86;
  22652. $trunc = $86&255;
  22653. $trunc$clear = $trunc & 3;
  22654. switch ($trunc$clear<<24>>24) {
  22655. case 0: {
  22656. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  22657. label = 25;
  22658. continue L46;
  22659. break;
  22660. }
  22661. case 3: {
  22662. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  22663. label = 60;
  22664. continue L46;
  22665. break;
  22666. }
  22667. case 1: {
  22668. break;
  22669. }
  22670. default: {
  22671. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  22672. label = 61;
  22673. break L119;
  22674. }
  22675. }
  22676. $240 = ((($0)) + 44|0);
  22677. HEAP32[$240>>2] = 288;
  22678. $241 = ((($0)) + 48|0);
  22679. HEAP32[$241>>2] = 32;
  22680. $242 = ((($0)) + 3552|0);
  22681. ;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;
  22682. $scevgep19611962 = ((($0)) + 64|0);
  22683. _memset(($scevgep19611962|0),8,144)|0;
  22684. $scevgep1959 = ((($0)) + 208|0);
  22685. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22686. $scevgep1957 = ((($0)) + 320|0);
  22687. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22688. $scevgep1955 = ((($0)) + 344|0);
  22689. $243 = $scevgep1955;
  22690. $244 = $243;
  22691. 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;
  22692. $245 = (($243) + 4)|0;
  22693. $246 = $245;
  22694. 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;
  22695. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  22696. label = 80;
  22697. }
  22698. else if ((label|0) == 230) {
  22699. label = 0;
  22700. $855 = ($$911598>>>0)<($10>>>0);
  22701. if ($855) {
  22702. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  22703. label = 233;
  22704. continue L46;
  22705. } else {
  22706. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  22707. label = 231;
  22708. continue L46;
  22709. }
  22710. }
  22711. else if ((label|0) == 235) {
  22712. label = 0;
  22713. $865 = $$951404 & 255;
  22714. $866 = $$951404 >>> 8;
  22715. $867 = (($$95) + -8)|0;
  22716. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  22717. label = 241;
  22718. continue L46;
  22719. }
  22720. } while(0);
  22721. L125: while(1) {
  22722. L126: switch (label|0) {
  22723. case 26: {
  22724. label = 0;
  22725. $100 = ($$131110>>>0)<(4);
  22726. if (!($100)) {
  22727. $127 = ((($0)) + 10528|0);
  22728. $128 = HEAP8[$127>>0]|0;
  22729. $129 = $128&255;
  22730. $130 = ((($0)) + 10529|0);
  22731. $131 = HEAP8[$130>>0]|0;
  22732. $132 = $131&255;
  22733. $133 = $132 << 8;
  22734. $134 = $133 | $129;
  22735. $135 = ((($0)) + 10530|0);
  22736. $136 = HEAP8[$135>>0]|0;
  22737. $137 = $136&255;
  22738. $138 = ((($0)) + 10531|0);
  22739. $139 = HEAP8[$138>>0]|0;
  22740. $140 = $139&255;
  22741. $141 = $140 << 8;
  22742. $142 = $141 | $137;
  22743. $143 = $142 ^ 65535;
  22744. $144 = ($134|0)==($143|0);
  22745. if ($144) {
  22746. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  22747. label = 44;
  22748. continue L125;
  22749. } else {
  22750. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  22751. label = 43;
  22752. continue L46;
  22753. }
  22754. }
  22755. $101 = ($$14|0)==(0);
  22756. if (!($101)) {
  22757. $102 = ($$14>>>0)<(8);
  22758. if ($102) {
  22759. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  22760. label = 29;
  22761. continue L125;
  22762. } else {
  22763. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  22764. label = 34;
  22765. continue L125;
  22766. }
  22767. }
  22768. $117 = ($$131520>>>0)<($10>>>0);
  22769. if (!($117)) {
  22770. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  22771. label = 36;
  22772. continue L46;
  22773. }
  22774. $123 = ((($$131520)) + 1|0);
  22775. $124 = HEAP8[$$131520>>0]|0;
  22776. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  22777. HEAP8[$125>>0] = $124;
  22778. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  22779. label = 41;
  22780. continue L125;
  22781. break;
  22782. }
  22783. case 29: {
  22784. label = 0;
  22785. $103 = ($$141521>>>0)<($10>>>0);
  22786. if ($103) {
  22787. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  22788. label = 32;
  22789. continue L46;
  22790. } else {
  22791. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  22792. label = 30;
  22793. continue L46;
  22794. }
  22795. break;
  22796. }
  22797. case 34: {
  22798. label = 0;
  22799. $113 = $$181327&255;
  22800. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  22801. HEAP8[$114>>0] = $113;
  22802. $115 = $$181327 >>> 8;
  22803. $116 = (($$18) + -8)|0;
  22804. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  22805. label = 41;
  22806. continue L125;
  22807. break;
  22808. }
  22809. case 41: {
  22810. label = 0;
  22811. $126 = (($$201117) + 1)|0;
  22812. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  22813. label = 26;
  22814. continue L125;
  22815. break;
  22816. }
  22817. case 44: {
  22818. label = 0;
  22819. $145 = ($$221119|0)!=(0);
  22820. $146 = ($$23|0)!=(0);
  22821. $147 = $145 & $146;
  22822. if (!($147)) {
  22823. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  22824. label = 54;
  22825. continue L125;
  22826. }
  22827. $148 = ($$23>>>0)<(8);
  22828. if ($148) {
  22829. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  22830. label = 46;
  22831. continue L125;
  22832. } else {
  22833. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  22834. label = 51;
  22835. continue L125;
  22836. }
  22837. break;
  22838. }
  22839. case 46: {
  22840. label = 0;
  22841. $149 = ($$231530>>>0)<($10>>>0);
  22842. if ($149) {
  22843. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  22844. label = 49;
  22845. continue L46;
  22846. } else {
  22847. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  22848. label = 47;
  22849. continue L46;
  22850. }
  22851. break;
  22852. }
  22853. case 51: {
  22854. label = 0;
  22855. $159 = $$271336 & 255;
  22856. $160 = $$271336 >>> 8;
  22857. $161 = (($$27) + -8)|0;
  22858. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  22859. label = 52;
  22860. continue L46;
  22861. break;
  22862. }
  22863. case 54: {
  22864. label = 0;
  22865. $166 = ($$281125|0)==(0);
  22866. if ($166) {
  22867. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  22868. label = 220;
  22869. break L125;
  22870. } else {
  22871. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  22872. label = 55;
  22873. continue L46;
  22874. }
  22875. break;
  22876. }
  22877. case 61: {
  22878. label = 0;
  22879. $185 = ($$331130>>>0)<(3);
  22880. if ($185) {
  22881. $186 = (11574 + ($$331130)|0);
  22882. $187 = HEAP8[$186>>0]|0;
  22883. $188 = $187 << 24 >> 24;
  22884. $189 = ($$34>>>0)<($188>>>0);
  22885. if ($189) {
  22886. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  22887. label = 63;
  22888. continue L125;
  22889. } else {
  22890. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  22891. label = 68;
  22892. continue L125;
  22893. }
  22894. } else {
  22895. $216 = ((($0)) + 7040|0);
  22896. _memset(($216|0),0,288)|0;
  22897. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  22898. label = 70;
  22899. break;
  22900. }
  22901. break;
  22902. }
  22903. case 63: {
  22904. label = 0;
  22905. $190 = ($$341541>>>0)<($10>>>0);
  22906. if ($190) {
  22907. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  22908. label = 66;
  22909. continue L46;
  22910. } else {
  22911. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  22912. label = 64;
  22913. continue L46;
  22914. }
  22915. break;
  22916. }
  22917. case 68: {
  22918. label = 0;
  22919. $203 = (11574 + ($$371134)|0);
  22920. $204 = HEAP8[$203>>0]|0;
  22921. $205 = $204 << 24 >> 24;
  22922. $206 = 1 << $205;
  22923. $207 = (($206) + -1)|0;
  22924. $208 = $207 & $$381347;
  22925. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  22926. $210 = $$381347 >>> $205;
  22927. $211 = (($$38) - ($205))|0;
  22928. $212 = (3104 + ($$371134<<2)|0);
  22929. $213 = HEAP32[$212>>2]|0;
  22930. $214 = (($208) + ($213))|0;
  22931. HEAP32[$209>>2] = $214;
  22932. $215 = (($$371134) + 1)|0;
  22933. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  22934. label = 61;
  22935. continue L125;
  22936. break;
  22937. }
  22938. case 72: {
  22939. label = 0;
  22940. $221 = ($$391546>>>0)<($10>>>0);
  22941. if ($221) {
  22942. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  22943. label = 75;
  22944. continue L46;
  22945. } else {
  22946. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  22947. label = 73;
  22948. continue L46;
  22949. }
  22950. break;
  22951. }
  22952. case 77: {
  22953. label = 0;
  22954. $231 = $$431352 & 7;
  22955. $232 = $$431352 >>> 3;
  22956. $233 = (($$43) + -3)|0;
  22957. $234 = $231&255;
  22958. $235 = (11578 + ($$421139)|0);
  22959. $236 = HEAP8[$235>>0]|0;
  22960. $237 = $236&255;
  22961. $238 = (((($0)) + 7040|0) + ($237)|0);
  22962. HEAP8[$238>>0] = $234;
  22963. $239 = (($$421139) + 1)|0;
  22964. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  22965. label = 70;
  22966. break;
  22967. }
  22968. case 80: {
  22969. label = 0;
  22970. $247 = ((($0)) + 24|0);
  22971. $248 = HEAP32[$247>>2]|0;
  22972. $249 = ($248|0)>(-1);
  22973. if ($249) {
  22974. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  22975. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  22976. _memset(($250|0),0,3200)|0;
  22977. $251 = HEAP32[$247>>2]|0;
  22978. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  22979. $253 = HEAP32[$252>>2]|0;
  22980. $254 = ($253|0)==(0);
  22981. if (!($254)) {
  22982. $255 = HEAP32[$247>>2]|0;
  22983. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  22984. $257 = HEAP32[$256>>2]|0;
  22985. $$010951864 = 0;
  22986. while(1) {
  22987. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  22988. $259 = HEAP8[$258>>0]|0;
  22989. $260 = $259&255;
  22990. $261 = (($8) + ($260<<2)|0);
  22991. $262 = HEAP32[$261>>2]|0;
  22992. $263 = (($262) + 1)|0;
  22993. HEAP32[$261>>2] = $263;
  22994. $264 = (($$010951864) + 1)|0;
  22995. $265 = ($264>>>0)<($257>>>0);
  22996. if ($265) {
  22997. $$010951864 = $264;
  22998. } else {
  22999. break;
  23000. }
  23001. }
  23002. }
  23003. $266 = ((($7)) + 4|0);
  23004. HEAP32[$266>>2] = 0;
  23005. HEAP32[$7>>2] = 0;
  23006. $267 = ((($8)) + 4|0);
  23007. $268 = HEAP32[$267>>2]|0;
  23008. $269 = $268 << 1;
  23009. $270 = ((($7)) + 8|0);
  23010. HEAP32[$270>>2] = $269;
  23011. $271 = ((($8)) + 8|0);
  23012. $272 = HEAP32[$271>>2]|0;
  23013. $273 = (($272) + ($268))|0;
  23014. $274 = (($272) + ($269))|0;
  23015. $275 = $274 << 1;
  23016. $276 = ((($7)) + 12|0);
  23017. HEAP32[$276>>2] = $275;
  23018. $277 = ((($8)) + 12|0);
  23019. $278 = HEAP32[$277>>2]|0;
  23020. $279 = (($278) + ($273))|0;
  23021. $280 = (($278) + ($275))|0;
  23022. $281 = $280 << 1;
  23023. $282 = ((($7)) + 16|0);
  23024. HEAP32[$282>>2] = $281;
  23025. $283 = ((($8)) + 16|0);
  23026. $284 = HEAP32[$283>>2]|0;
  23027. $285 = (($284) + ($279))|0;
  23028. $286 = (($284) + ($281))|0;
  23029. $287 = $286 << 1;
  23030. $288 = ((($7)) + 20|0);
  23031. HEAP32[$288>>2] = $287;
  23032. $289 = ((($8)) + 20|0);
  23033. $290 = HEAP32[$289>>2]|0;
  23034. $291 = (($290) + ($285))|0;
  23035. $292 = (($290) + ($287))|0;
  23036. $293 = $292 << 1;
  23037. $294 = ((($7)) + 24|0);
  23038. HEAP32[$294>>2] = $293;
  23039. $295 = ((($8)) + 24|0);
  23040. $296 = HEAP32[$295>>2]|0;
  23041. $297 = (($296) + ($291))|0;
  23042. $298 = (($296) + ($293))|0;
  23043. $299 = $298 << 1;
  23044. $300 = ((($7)) + 28|0);
  23045. HEAP32[$300>>2] = $299;
  23046. $301 = ((($8)) + 28|0);
  23047. $302 = HEAP32[$301>>2]|0;
  23048. $303 = (($302) + ($297))|0;
  23049. $304 = (($302) + ($299))|0;
  23050. $305 = $304 << 1;
  23051. $306 = ((($7)) + 32|0);
  23052. HEAP32[$306>>2] = $305;
  23053. $307 = ((($8)) + 32|0);
  23054. $308 = HEAP32[$307>>2]|0;
  23055. $309 = (($308) + ($303))|0;
  23056. $310 = (($308) + ($305))|0;
  23057. $311 = $310 << 1;
  23058. $312 = ((($7)) + 36|0);
  23059. HEAP32[$312>>2] = $311;
  23060. $313 = ((($8)) + 36|0);
  23061. $314 = HEAP32[$313>>2]|0;
  23062. $315 = (($314) + ($309))|0;
  23063. $316 = (($314) + ($311))|0;
  23064. $317 = $316 << 1;
  23065. $318 = ((($7)) + 40|0);
  23066. HEAP32[$318>>2] = $317;
  23067. $319 = ((($8)) + 40|0);
  23068. $320 = HEAP32[$319>>2]|0;
  23069. $321 = (($320) + ($315))|0;
  23070. $322 = (($320) + ($317))|0;
  23071. $323 = $322 << 1;
  23072. $324 = ((($7)) + 44|0);
  23073. HEAP32[$324>>2] = $323;
  23074. $325 = ((($8)) + 44|0);
  23075. $326 = HEAP32[$325>>2]|0;
  23076. $327 = (($326) + ($321))|0;
  23077. $328 = (($326) + ($323))|0;
  23078. $329 = $328 << 1;
  23079. $330 = ((($7)) + 48|0);
  23080. HEAP32[$330>>2] = $329;
  23081. $331 = ((($8)) + 48|0);
  23082. $332 = HEAP32[$331>>2]|0;
  23083. $333 = (($332) + ($327))|0;
  23084. $334 = (($332) + ($329))|0;
  23085. $335 = $334 << 1;
  23086. $336 = ((($7)) + 52|0);
  23087. HEAP32[$336>>2] = $335;
  23088. $337 = ((($8)) + 52|0);
  23089. $338 = HEAP32[$337>>2]|0;
  23090. $339 = (($338) + ($333))|0;
  23091. $340 = (($338) + ($335))|0;
  23092. $341 = $340 << 1;
  23093. $342 = ((($7)) + 56|0);
  23094. HEAP32[$342>>2] = $341;
  23095. $343 = ((($8)) + 56|0);
  23096. $344 = HEAP32[$343>>2]|0;
  23097. $345 = (($344) + ($339))|0;
  23098. $346 = (($344) + ($341))|0;
  23099. $347 = $346 << 1;
  23100. $348 = ((($7)) + 60|0);
  23101. HEAP32[$348>>2] = $347;
  23102. $349 = ((($8)) + 60|0);
  23103. $350 = HEAP32[$349>>2]|0;
  23104. $351 = (($350) + ($345))|0;
  23105. $352 = (($350) + ($347))|0;
  23106. $353 = $352 << 1;
  23107. $354 = ((($7)) + 64|0);
  23108. HEAP32[$354>>2] = $353;
  23109. $355 = ($353|0)!=(65536);
  23110. $356 = ($351>>>0)>(1);
  23111. $or$cond = $355 & $356;
  23112. if ($or$cond) {
  23113. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  23114. label = 86;
  23115. continue L46;
  23116. }
  23117. $357 = HEAP32[$247>>2]|0;
  23118. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  23119. $359 = HEAP32[$358>>2]|0;
  23120. $360 = ($359|0)==(0);
  23121. if ($360) {
  23122. $$lcssa1779 = $357;
  23123. } else {
  23124. $$010911856 = 0;$$011971855 = -1;
  23125. while(1) {
  23126. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  23127. $362 = HEAP8[$361>>0]|0;
  23128. $363 = $362&255;
  23129. $364 = ($362<<24>>24)==(0);
  23130. L142: do {
  23131. if ($364) {
  23132. $$41201 = $$011971855;
  23133. } else {
  23134. $365 = (($7) + ($363<<2)|0);
  23135. $366 = HEAP32[$365>>2]|0;
  23136. $367 = (($366) + 1)|0;
  23137. HEAP32[$365>>2] = $367;
  23138. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  23139. while(1) {
  23140. $368 = $$010881838 << 1;
  23141. $369 = $$010861840 & 1;
  23142. $370 = $369 | $368;
  23143. $371 = (($$010871839) + -1)|0;
  23144. $372 = $$010861840 >>> 1;
  23145. $373 = ($371|0)==(0);
  23146. if ($373) {
  23147. break;
  23148. } else {
  23149. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  23150. }
  23151. }
  23152. $374 = ($362&255)<(11);
  23153. if ($374) {
  23154. $375 = $363 << 9;
  23155. $376 = $375 | $$010911856;
  23156. $377 = $376&65535;
  23157. $378 = ($370>>>0)<(1024);
  23158. if (!($378)) {
  23159. $$41201 = $$011971855;
  23160. break;
  23161. }
  23162. $379 = 1 << $363;
  23163. $$110891852 = $370;
  23164. while(1) {
  23165. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  23166. HEAP16[$380>>1] = $377;
  23167. $381 = (($$110891852) + ($379))|0;
  23168. $382 = ($381>>>0)<(1024);
  23169. if ($382) {
  23170. $$110891852 = $381;
  23171. } else {
  23172. $$41201 = $$011971855;
  23173. break L142;
  23174. }
  23175. }
  23176. }
  23177. $383 = $370 & 1023;
  23178. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  23179. $385 = HEAP16[$384>>1]|0;
  23180. $386 = $385 << 16 >> 16;
  23181. $387 = ($385<<16>>16)==(0);
  23182. if ($387) {
  23183. $388 = (($$011971855) + -2)|0;
  23184. $389 = $$011971855&65535;
  23185. HEAP16[$384>>1] = $389;
  23186. $$01194 = $$011971855;$$11198 = $388;
  23187. } else {
  23188. $$01194 = $386;$$11198 = $$011971855;
  23189. }
  23190. $390 = $$010881838 >>> 9;
  23191. $391 = ($362&255)>(11);
  23192. $392 = $390 & 1;
  23193. $393 = (($392) - ($$01194))|0;
  23194. $394 = (($393) + -1)|0;
  23195. if ($391) {
  23196. $395 = $390 & 4194303;
  23197. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  23198. while(1) {
  23199. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  23200. $398 = HEAP16[$396>>1]|0;
  23201. $399 = ($398<<16>>16)==(0);
  23202. if ($399) {
  23203. $400 = $$211991845&65535;
  23204. HEAP16[$396>>1] = $400;
  23205. $401 = (($$211991845) + -2)|0;
  23206. $$21196 = $$211991845;$$31200 = $401;
  23207. } else {
  23208. $402 = $398 << 16 >> 16;
  23209. $$21196 = $402;$$31200 = $$211991845;
  23210. }
  23211. $403 = (($$010941846) + -1)|0;
  23212. $404 = ($403>>>0)>(11);
  23213. $405 = $406 >>> 1;
  23214. $407 = $405 & 1;
  23215. $408 = (($407) - ($$21196))|0;
  23216. $409 = (($408) + -1)|0;
  23217. if ($404) {
  23218. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  23219. } else {
  23220. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  23221. break;
  23222. }
  23223. }
  23224. } else {
  23225. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  23226. }
  23227. $410 = $$010911856&65535;
  23228. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  23229. HEAP16[$411>>1] = $410;
  23230. $$41201 = $$21199$lcssa;
  23231. }
  23232. } while(0);
  23233. $412 = (($$010911856) + 1)|0;
  23234. $413 = HEAP32[$247>>2]|0;
  23235. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  23236. $415 = HEAP32[$414>>2]|0;
  23237. $416 = ($412>>>0)<($415>>>0);
  23238. if ($416) {
  23239. $$010911856 = $412;$$011971855 = $$41201;
  23240. } else {
  23241. $$lcssa1779 = $413;
  23242. break;
  23243. }
  23244. }
  23245. }
  23246. $417 = ($$lcssa1779|0)==(2);
  23247. if ($417) {
  23248. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  23249. label = 105;
  23250. } else {
  23251. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  23252. label = 138;
  23253. }
  23254. } else {
  23255. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  23256. label = 139;
  23257. }
  23258. break;
  23259. }
  23260. case 108: {
  23261. label = 0;
  23262. $429 = $$471356 & 1023;
  23263. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  23264. $431 = HEAP16[$430>>1]|0;
  23265. $432 = $431 << 16 >> 16;
  23266. $433 = ($431<<16>>16)>(-1);
  23267. if ($433) {
  23268. $434 = $432 >> 9;
  23269. $435 = (($434) + -1)|0;
  23270. $436 = ($435>>>0)<($$47>>>0);
  23271. if ($436) {
  23272. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  23273. label = 119;
  23274. continue L125;
  23275. } else {
  23276. label = 113;
  23277. break L125;
  23278. }
  23279. }
  23280. $437 = ($$47>>>0)>(10);
  23281. if ($437) {
  23282. $$0981 = 10;$$0984 = $432;
  23283. } else {
  23284. label = 113;
  23285. break L125;
  23286. }
  23287. while(1) {
  23288. $438 = $$0984 ^ -1;
  23289. $439 = $$471356 >>> $$0981;
  23290. $440 = $439 & 1;
  23291. $441 = (($440) + ($438))|0;
  23292. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  23293. $443 = HEAP16[$442>>1]|0;
  23294. $444 = ($443<<16>>16)<(0);
  23295. if (!($444)) {
  23296. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  23297. label = 119;
  23298. continue L125;
  23299. }
  23300. $445 = (($$0981) + 1)|0;
  23301. $446 = $443 << 16 >> 16;
  23302. $447 = (($$0981) + 2)|0;
  23303. $448 = ($$47>>>0)<($447>>>0);
  23304. if ($448) {
  23305. label = 113;
  23306. break L125;
  23307. } else {
  23308. $$0981 = $445;$$0984 = $446;
  23309. }
  23310. }
  23311. break;
  23312. }
  23313. case 119: {
  23314. label = 0;
  23315. $471 = $$501359 & 1023;
  23316. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  23317. $473 = HEAP16[$472>>1]|0;
  23318. $474 = $473 << 16 >> 16;
  23319. $475 = ($473<<16>>16)>(-1);
  23320. if ($475) {
  23321. $476 = $474 >> 9;
  23322. $477 = $474 & 511;
  23323. $$2983 = $476;$$2986 = $477;
  23324. } else {
  23325. $$1982 = 10;$$1985 = $474;
  23326. while(1) {
  23327. $478 = $$1985 ^ -1;
  23328. $479 = (($$1982) + 1)|0;
  23329. $480 = $$501359 >>> $$1982;
  23330. $481 = $480 & 1;
  23331. $482 = (($481) + ($478))|0;
  23332. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  23333. $484 = HEAP16[$483>>1]|0;
  23334. $485 = $484 << 16 >> 16;
  23335. $486 = ($484<<16>>16)<(0);
  23336. if ($486) {
  23337. $$1982 = $479;$$1985 = $485;
  23338. } else {
  23339. $$2983 = $479;$$2986 = $485;
  23340. break;
  23341. }
  23342. }
  23343. }
  23344. $487 = $$501359 >>> $$2983;
  23345. $488 = (($$50) - ($$2983))|0;
  23346. $489 = ($$2986>>>0)<(16);
  23347. if ($489) {
  23348. $490 = $$2986&255;
  23349. $491 = (($$491146) + 1)|0;
  23350. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  23351. HEAP8[$492>>0] = $490;
  23352. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  23353. label = 105;
  23354. break;
  23355. }
  23356. $493 = ($$2986|0)!=(16);
  23357. $494 = ($$491146|0)!=(0);
  23358. $or$cond24 = $494 | $493;
  23359. if (!($or$cond24)) {
  23360. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  23361. label = 125;
  23362. continue L46;
  23363. }
  23364. $495 = (($$2986) + -16)|0;
  23365. $496 = (11597 + ($495)|0);
  23366. $497 = HEAP8[$496>>0]|0;
  23367. $498 = $497 << 24 >> 24;
  23368. $499 = ($488>>>0)<($498>>>0);
  23369. if ($499) {
  23370. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  23371. label = 127;
  23372. continue L125;
  23373. } else {
  23374. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  23375. label = 132;
  23376. continue L125;
  23377. }
  23378. break;
  23379. }
  23380. case 127: {
  23381. label = 0;
  23382. $500 = ($$511558>>>0)<($10>>>0);
  23383. if ($500) {
  23384. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  23385. label = 130;
  23386. continue L46;
  23387. } else {
  23388. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  23389. label = 128;
  23390. continue L46;
  23391. }
  23392. break;
  23393. }
  23394. case 132: {
  23395. label = 0;
  23396. $510 = 1 << $$551258;
  23397. $511 = (($510) + -1)|0;
  23398. $512 = $511 & $$551364;
  23399. $513 = $$551364 >>> $$551258;
  23400. $514 = (($$55) - ($$551258))|0;
  23401. $515 = (($$531044) + -16)|0;
  23402. $516 = (11601 + ($515)|0);
  23403. $517 = HEAP8[$516>>0]|0;
  23404. $518 = $517 << 24 >> 24;
  23405. $519 = (($518) + ($512))|0;
  23406. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  23407. $521 = ($$531044|0)==(16);
  23408. if ($521) {
  23409. $522 = (($$541151) + -1)|0;
  23410. $523 = (((($0)) + 10532|0) + ($522)|0);
  23411. $524 = HEAP8[$523>>0]|0;
  23412. $525 = $524&255;
  23413. $527 = $525;
  23414. } else {
  23415. $527 = 0;
  23416. }
  23417. $526 = $527&255;
  23418. _memset(($520|0),($526|0),($519|0))|0;
  23419. $528 = (($519) + ($$541151))|0;
  23420. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  23421. label = 105;
  23422. break;
  23423. }
  23424. case 140: {
  23425. label = 0;
  23426. $539 = $10;
  23427. $540 = $$581565$ph;
  23428. $541 = (($539) - ($540))|0;
  23429. $542 = ($541|0)<(4);
  23430. $543 = ($$59$ph>>>0)<(15);
  23431. L241: do {
  23432. if ($542) {
  23433. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  23434. } else {
  23435. $544 = $12;
  23436. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  23437. while(1) {
  23438. $545 = $$5416611868;
  23439. $546 = (($544) - ($545))|0;
  23440. $547 = ($546|0)<(2);
  23441. if ($547) {
  23442. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  23443. break L241;
  23444. }
  23445. if ($965) {
  23446. $613 = HEAP8[$$5815651869>>0]|0;
  23447. $614 = $613&255;
  23448. $615 = ((($$5815651869)) + 1|0);
  23449. $616 = HEAP8[$615>>0]|0;
  23450. $617 = $616&255;
  23451. $618 = $617 << 8;
  23452. $619 = $618 | $614;
  23453. $620 = $619 << $$591872;
  23454. $621 = $620 | $$5913681870;
  23455. $622 = ((($$5815651869)) + 2|0);
  23456. $623 = (($$591872) + 16)|0;
  23457. $$641571 = $622;$$65 = $623;$$651374 = $621;
  23458. } else {
  23459. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  23460. }
  23461. $624 = $$651374 & 1023;
  23462. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  23463. $626 = HEAP16[$625>>1]|0;
  23464. $627 = $626 << 16 >> 16;
  23465. $628 = ($626<<16>>16)>(-1);
  23466. if ($628) {
  23467. $629 = $627 >> 9;
  23468. $$1964 = $629;$$1968 = $627;
  23469. } else {
  23470. $$0963 = 10;$$0967 = $627;
  23471. while(1) {
  23472. $630 = $$0967 ^ -1;
  23473. $631 = (($$0963) + 1)|0;
  23474. $632 = $$651374 >>> $$0963;
  23475. $633 = $632 & 1;
  23476. $634 = (($633) + ($630))|0;
  23477. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  23478. $636 = HEAP16[$635>>1]|0;
  23479. $637 = $636 << 16 >> 16;
  23480. $638 = ($636<<16>>16)<(0);
  23481. if ($638) {
  23482. $$0963 = $631;$$0967 = $637;
  23483. } else {
  23484. $$1964 = $631;$$1968 = $637;
  23485. break;
  23486. }
  23487. }
  23488. }
  23489. $639 = $$651374 >>> $$1964;
  23490. $640 = (($$65) - ($$1964))|0;
  23491. $641 = $$1968 & 256;
  23492. $642 = ($641|0)==(0);
  23493. if (!($642)) {
  23494. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  23495. label = 176;
  23496. break L126;
  23497. }
  23498. $643 = ($640>>>0)<(15);
  23499. if ($643) {
  23500. $644 = HEAP8[$$641571>>0]|0;
  23501. $645 = $644&255;
  23502. $646 = ((($$641571)) + 1|0);
  23503. $647 = HEAP8[$646>>0]|0;
  23504. $648 = $647&255;
  23505. $649 = $648 << 8;
  23506. $650 = $649 | $645;
  23507. $651 = $650 << $640;
  23508. $652 = $651 | $639;
  23509. $653 = ((($$641571)) + 2|0);
  23510. $654 = (($640) + 16)|0;
  23511. $$651572 = $653;$$66 = $654;$$661375 = $652;
  23512. } else {
  23513. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  23514. }
  23515. $655 = $$661375 & 1023;
  23516. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  23517. $657 = HEAP16[$656>>1]|0;
  23518. $658 = $657 << 16 >> 16;
  23519. $659 = ($657<<16>>16)>(-1);
  23520. if ($659) {
  23521. $660 = $658 >> 9;
  23522. $$3966 = $660;$$3970 = $658;
  23523. } else {
  23524. $$2965 = 10;$$2969 = $658;
  23525. while(1) {
  23526. $661 = $$2969 ^ -1;
  23527. $662 = (($$2965) + 1)|0;
  23528. $663 = $$661375 >>> $$2965;
  23529. $664 = $663 & 1;
  23530. $665 = (($664) + ($661))|0;
  23531. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  23532. $667 = HEAP16[$666>>1]|0;
  23533. $668 = $667 << 16 >> 16;
  23534. $669 = ($667<<16>>16)<(0);
  23535. if ($669) {
  23536. $$2965 = $662;$$2969 = $668;
  23537. } else {
  23538. $$3966 = $662;$$3970 = $668;
  23539. break;
  23540. }
  23541. }
  23542. }
  23543. $670 = $$661375 >>> $$3966;
  23544. $671 = (($$66) - ($$3966))|0;
  23545. $672 = $$1968&255;
  23546. HEAP8[$$5416611868>>0] = $672;
  23547. $673 = $$3970 & 256;
  23548. $674 = ($673|0)==(0);
  23549. if (!($674)) {
  23550. break;
  23551. }
  23552. $676 = $$3970&255;
  23553. $677 = ((($$5416611868)) + 1|0);
  23554. HEAP8[$677>>0] = $676;
  23555. $678 = ((($$5416611868)) + 2|0);
  23556. $679 = $$651572;
  23557. $680 = (($539) - ($679))|0;
  23558. $681 = ($680|0)<(4);
  23559. $682 = ($671>>>0)<(15);
  23560. if ($681) {
  23561. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  23562. break L241;
  23563. } else {
  23564. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  23565. }
  23566. }
  23567. $675 = ((($$5416611868)) + 1|0);
  23568. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  23569. label = 176;
  23570. break L126;
  23571. }
  23572. } while(0);
  23573. if (!($$lcssa1799)) {
  23574. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  23575. label = 156;
  23576. continue L125;
  23577. }
  23578. $548 = ($$lcssa1802|0)<(2);
  23579. if ($548) {
  23580. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  23581. label = 145;
  23582. continue L125;
  23583. }
  23584. $579 = HEAP8[$$581565$lcssa>>0]|0;
  23585. $580 = $579&255;
  23586. $581 = $580 << $$59$lcssa;
  23587. $582 = ((($$581565$lcssa)) + 1|0);
  23588. $583 = HEAP8[$582>>0]|0;
  23589. $584 = $583&255;
  23590. $585 = (($$59$lcssa) + 8)|0;
  23591. $586 = $584 << $585;
  23592. $587 = $581 | $$591368$lcssa;
  23593. $588 = $587 | $586;
  23594. $589 = ((($$581565$lcssa)) + 2|0);
  23595. $590 = (($$59$lcssa) + 16)|0;
  23596. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  23597. label = 156;
  23598. continue L125;
  23599. break;
  23600. }
  23601. case 145: {
  23602. label = 0;
  23603. $549 = $$601369 & 1023;
  23604. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  23605. $551 = HEAP16[$550>>1]|0;
  23606. $552 = $551 << 16 >> 16;
  23607. $553 = ($551<<16>>16)>(-1);
  23608. if ($553) {
  23609. $554 = $552 >> 9;
  23610. $555 = (($554) + -1)|0;
  23611. $556 = ($555>>>0)<($$60>>>0);
  23612. if ($556) {
  23613. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  23614. label = 156;
  23615. continue L125;
  23616. } else {
  23617. label = 150;
  23618. break L125;
  23619. }
  23620. }
  23621. $557 = ($$60>>>0)>(10);
  23622. if ($557) {
  23623. $$0972 = 10;$$0975 = $552;
  23624. } else {
  23625. label = 150;
  23626. break L125;
  23627. }
  23628. while(1) {
  23629. $558 = $$0975 ^ -1;
  23630. $559 = $$601369 >>> $$0972;
  23631. $560 = $559 & 1;
  23632. $561 = (($560) + ($558))|0;
  23633. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  23634. $563 = HEAP16[$562>>1]|0;
  23635. $564 = ($563<<16>>16)<(0);
  23636. if (!($564)) {
  23637. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  23638. label = 156;
  23639. continue L125;
  23640. }
  23641. $565 = (($$0972) + 1)|0;
  23642. $566 = $563 << 16 >> 16;
  23643. $567 = (($$0972) + 2)|0;
  23644. $568 = ($$60>>>0)<($567>>>0);
  23645. if ($568) {
  23646. label = 150;
  23647. break L125;
  23648. } else {
  23649. $$0972 = $565;$$0975 = $566;
  23650. }
  23651. }
  23652. break;
  23653. }
  23654. case 156: {
  23655. label = 0;
  23656. $591 = $$631372 & 1023;
  23657. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  23658. $593 = HEAP16[$592>>1]|0;
  23659. $594 = $593 << 16 >> 16;
  23660. $595 = ($593<<16>>16)>(-1);
  23661. if ($595) {
  23662. $596 = $594 >> 9;
  23663. $597 = $594 & 511;
  23664. $$2974 = $596;$$2977 = $597;
  23665. } else {
  23666. $$1973 = 10;$$1976 = $594;
  23667. while(1) {
  23668. $598 = $$1976 ^ -1;
  23669. $599 = (($$1973) + 1)|0;
  23670. $600 = $$631372 >>> $$1973;
  23671. $601 = $600 & 1;
  23672. $602 = (($601) + ($598))|0;
  23673. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  23674. $604 = HEAP16[$603>>1]|0;
  23675. $605 = $604 << 16 >> 16;
  23676. $606 = ($604<<16>>16)<(0);
  23677. if ($606) {
  23678. $$1973 = $599;$$1976 = $605;
  23679. } else {
  23680. $$2974 = $599;$$2977 = $605;
  23681. break;
  23682. }
  23683. }
  23684. }
  23685. $607 = $$631372 >>> $$2974;
  23686. $608 = (($$63) - ($$2974))|0;
  23687. $609 = ($$2977>>>0)>(255);
  23688. if ($609) {
  23689. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  23690. label = 176;
  23691. } else {
  23692. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  23693. label = 160;
  23694. continue L46;
  23695. }
  23696. break;
  23697. }
  23698. case 179: {
  23699. label = 0;
  23700. $693 = ($$681575>>>0)<($10>>>0);
  23701. if ($693) {
  23702. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  23703. label = 182;
  23704. continue L46;
  23705. } else {
  23706. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  23707. label = 180;
  23708. continue L46;
  23709. }
  23710. break;
  23711. }
  23712. case 184: {
  23713. label = 0;
  23714. $703 = 1 << $$691272;
  23715. $704 = (($703) + -1)|0;
  23716. $705 = $704 & $$721381;
  23717. $706 = $$721381 >>> $$691272;
  23718. $707 = (($$72) - ($$691272))|0;
  23719. $708 = (($705) + ($$681165))|0;
  23720. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  23721. label = 185;
  23722. break;
  23723. }
  23724. case 187: {
  23725. label = 0;
  23726. $714 = $$741383 & 1023;
  23727. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  23728. $716 = HEAP16[$715>>1]|0;
  23729. $717 = $716 << 16 >> 16;
  23730. $718 = ($716<<16>>16)>(-1);
  23731. if ($718) {
  23732. $719 = $717 >> 9;
  23733. $720 = (($719) + -1)|0;
  23734. $721 = ($720>>>0)<($$74>>>0);
  23735. if ($721) {
  23736. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  23737. label = 198;
  23738. continue L125;
  23739. } else {
  23740. label = 192;
  23741. break L125;
  23742. }
  23743. }
  23744. $722 = ($$74>>>0)>(10);
  23745. if ($722) {
  23746. $$0953 = 10;$$0956 = $717;
  23747. } else {
  23748. label = 192;
  23749. break L125;
  23750. }
  23751. while(1) {
  23752. $723 = $$0956 ^ -1;
  23753. $724 = $$741383 >>> $$0953;
  23754. $725 = $724 & 1;
  23755. $726 = (($725) + ($723))|0;
  23756. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  23757. $728 = HEAP16[$727>>1]|0;
  23758. $729 = ($728<<16>>16)<(0);
  23759. if (!($729)) {
  23760. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  23761. label = 198;
  23762. continue L125;
  23763. }
  23764. $730 = (($$0953) + 1)|0;
  23765. $731 = $728 << 16 >> 16;
  23766. $732 = (($$0953) + 2)|0;
  23767. $733 = ($$74>>>0)<($732>>>0);
  23768. if ($733) {
  23769. label = 192;
  23770. break L125;
  23771. } else {
  23772. $$0953 = $730;$$0956 = $731;
  23773. }
  23774. }
  23775. break;
  23776. }
  23777. case 198: {
  23778. label = 0;
  23779. $756 = $$771386 & 1023;
  23780. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  23781. $758 = HEAP16[$757>>1]|0;
  23782. $759 = $758 << 16 >> 16;
  23783. $760 = ($758<<16>>16)>(-1);
  23784. if ($760) {
  23785. $761 = $759 >> 9;
  23786. $762 = $759 & 511;
  23787. $$2955 = $761;$$2958 = $762;
  23788. } else {
  23789. $$1954 = 10;$$1957 = $759;
  23790. while(1) {
  23791. $763 = $$1957 ^ -1;
  23792. $764 = (($$1954) + 1)|0;
  23793. $765 = $$771386 >>> $$1954;
  23794. $766 = $765 & 1;
  23795. $767 = (($766) + ($763))|0;
  23796. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  23797. $769 = HEAP16[$768>>1]|0;
  23798. $770 = $769 << 16 >> 16;
  23799. $771 = ($769<<16>>16)<(0);
  23800. if ($771) {
  23801. $$1954 = $764;$$1957 = $770;
  23802. } else {
  23803. $$2955 = $764;$$2958 = $770;
  23804. break;
  23805. }
  23806. }
  23807. }
  23808. $772 = $$771386 >>> $$2955;
  23809. $773 = (($$77) - ($$2955))|0;
  23810. $774 = (3364 + ($$2958<<2)|0);
  23811. $775 = HEAP32[$774>>2]|0;
  23812. $776 = (3492 + ($$2958<<2)|0);
  23813. $777 = HEAP32[$776>>2]|0;
  23814. $778 = (($$2958) + -4)|0;
  23815. $779 = ($778>>>0)<(26);
  23816. if ($779) {
  23817. $780 = ($773>>>0)<($775>>>0);
  23818. if ($780) {
  23819. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  23820. label = 203;
  23821. continue L125;
  23822. } else {
  23823. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  23824. label = 208;
  23825. continue L125;
  23826. }
  23827. } else {
  23828. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  23829. label = 209;
  23830. }
  23831. break;
  23832. }
  23833. case 203: {
  23834. label = 0;
  23835. $781 = ($$771584>>>0)<($10>>>0);
  23836. if ($781) {
  23837. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  23838. label = 206;
  23839. continue L46;
  23840. } else {
  23841. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  23842. label = 204;
  23843. continue L46;
  23844. }
  23845. break;
  23846. }
  23847. case 208: {
  23848. label = 0;
  23849. $791 = 1 << $$771280;
  23850. $792 = (($791) + -1)|0;
  23851. $793 = $792 & $$811390;
  23852. $794 = $$811390 >>> $$771280;
  23853. $795 = (($$81) - ($$771280))|0;
  23854. $796 = (($793) + ($$751066))|0;
  23855. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  23856. label = 209;
  23857. break;
  23858. }
  23859. case 212: {
  23860. label = 0;
  23861. $807 = (($$801177) + -1)|0;
  23862. $808 = ($$801177|0)==(0);
  23863. if ($808) {
  23864. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  23865. label = 139;
  23866. } else {
  23867. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  23868. label = 213;
  23869. continue L46;
  23870. }
  23871. break;
  23872. }
  23873. }
  23874. do {
  23875. if ((label|0) == 70) {
  23876. label = 0;
  23877. $217 = ((($0)) + 52|0);
  23878. $218 = HEAP32[$217>>2]|0;
  23879. $219 = ($$381135>>>0)<($218>>>0);
  23880. if ($219) {
  23881. $220 = ($$39>>>0)<(3);
  23882. if ($220) {
  23883. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  23884. label = 72;
  23885. continue L125;
  23886. } else {
  23887. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  23888. label = 77;
  23889. continue L125;
  23890. }
  23891. } else {
  23892. HEAP32[$217>>2] = 19;
  23893. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  23894. label = 80;
  23895. continue L125;
  23896. }
  23897. }
  23898. else if ((label|0) == 105) {
  23899. label = 0;
  23900. $418 = ((($0)) + 44|0);
  23901. $419 = HEAP32[$418>>2]|0;
  23902. $420 = ((($0)) + 48|0);
  23903. $421 = HEAP32[$420>>2]|0;
  23904. $422 = (($421) + ($419))|0;
  23905. $423 = ($$451142>>>0)<($422>>>0);
  23906. if (!($423)) {
  23907. $529 = ($422|0)==($$451142|0);
  23908. if (!($529)) {
  23909. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  23910. label = 136;
  23911. continue L46;
  23912. }
  23913. $530 = ((($0)) + 64|0);
  23914. $531 = ((($0)) + 10532|0);
  23915. _memcpy(($530|0),($531|0),($419|0))|0;
  23916. $532 = ((($0)) + 3552|0);
  23917. $533 = HEAP32[$418>>2]|0;
  23918. $534 = (((($0)) + 10532|0) + ($533)|0);
  23919. $535 = HEAP32[$420>>2]|0;
  23920. _memcpy(($532|0),($534|0),($535|0))|0;
  23921. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  23922. label = 138;
  23923. break;
  23924. }
  23925. $424 = ($$46>>>0)<(15);
  23926. if (!($424)) {
  23927. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  23928. label = 119;
  23929. continue L125;
  23930. }
  23931. $425 = $10;
  23932. $426 = $$451552;
  23933. $427 = (($425) - ($426))|0;
  23934. $428 = ($427|0)<(2);
  23935. if ($428) {
  23936. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  23937. label = 108;
  23938. continue L125;
  23939. }
  23940. $459 = HEAP8[$$451552>>0]|0;
  23941. $460 = $459&255;
  23942. $461 = $460 << $$46;
  23943. $462 = ((($$451552)) + 1|0);
  23944. $463 = HEAP8[$462>>0]|0;
  23945. $464 = $463&255;
  23946. $465 = (($$46) + 8)|0;
  23947. $466 = $464 << $465;
  23948. $467 = $461 | $$461355;
  23949. $468 = $467 | $466;
  23950. $469 = ((($$451552)) + 2|0);
  23951. $470 = (($$46) + 16)|0;
  23952. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  23953. label = 119;
  23954. continue L125;
  23955. }
  23956. else if ((label|0) == 176) {
  23957. label = 0;
  23958. $683 = $$641161 & 511;
  23959. $684 = ($683|0)==(256);
  23960. if ($684) {
  23961. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  23962. label = 220;
  23963. break L125;
  23964. }
  23965. $685 = (($683) + -257)|0;
  23966. $686 = (3116 + ($685<<2)|0);
  23967. $687 = HEAP32[$686>>2]|0;
  23968. $688 = (3240 + ($685<<2)|0);
  23969. $689 = HEAP32[$688>>2]|0;
  23970. $690 = (($683) + -265)|0;
  23971. $691 = ($690>>>0)<(20);
  23972. if ($691) {
  23973. $692 = ($$68>>>0)<($687>>>0);
  23974. if ($692) {
  23975. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  23976. label = 179;
  23977. continue L125;
  23978. } else {
  23979. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  23980. label = 184;
  23981. continue L125;
  23982. }
  23983. } else {
  23984. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  23985. label = 185;
  23986. }
  23987. }
  23988. else if ((label|0) == 209) {
  23989. label = 0;
  23990. $797 = $$751682;
  23991. $798 = $3;
  23992. $799 = (($797) - ($798))|0;
  23993. $$not = ($799>>>0)>=($$761067>>>0);
  23994. $$not1747 = $14 ^ 1;
  23995. $brmerge = $$not | $$not1747;
  23996. if (!($brmerge)) {
  23997. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  23998. label = 210;
  23999. continue L46;
  24000. }
  24001. $800 = (($799) - ($$761067))|0;
  24002. $801 = $800 & $$1753;
  24003. $802 = (($3) + ($801)|0);
  24004. $803 = ($$751682>>>0)>($802>>>0);
  24005. $804 = $803 ? $$751682 : $802;
  24006. $805 = (($804) + ($$781175)|0);
  24007. $806 = ($805>>>0)>($12>>>0);
  24008. if ($806) {
  24009. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  24010. label = 212;
  24011. continue L125;
  24012. } else {
  24013. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  24014. }
  24015. while(1) {
  24016. $816 = HEAP8[$$0978>>0]|0;
  24017. HEAP8[$$791686>>0] = $816;
  24018. $817 = ((($$0978)) + 1|0);
  24019. $818 = HEAP8[$817>>0]|0;
  24020. $819 = ((($$791686)) + 1|0);
  24021. HEAP8[$819>>0] = $818;
  24022. $820 = ((($$0978)) + 2|0);
  24023. $821 = HEAP8[$820>>0]|0;
  24024. $822 = ((($$791686)) + 2|0);
  24025. HEAP8[$822>>0] = $821;
  24026. $823 = ((($$791686)) + 3|0);
  24027. $824 = ((($$0978)) + 3|0);
  24028. $825 = (($$821179) + -3)|0;
  24029. $826 = ($825|0)>(2);
  24030. if ($826) {
  24031. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  24032. } else {
  24033. break;
  24034. }
  24035. }
  24036. $827 = ($825|0)>(0);
  24037. if ($827) {
  24038. $828 = HEAP8[$824>>0]|0;
  24039. HEAP8[$823>>0] = $828;
  24040. $829 = ($825|0)==(1);
  24041. if (!($829)) {
  24042. $830 = ((($$0978)) + 4|0);
  24043. $831 = HEAP8[$830>>0]|0;
  24044. $832 = ((($$791686)) + 4|0);
  24045. HEAP8[$832>>0] = $831;
  24046. }
  24047. $833 = (($823) + ($825)|0);
  24048. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  24049. label = 139;
  24050. } else {
  24051. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  24052. label = 139;
  24053. }
  24054. }
  24055. } while(0);
  24056. if ((label|0) == 138) {
  24057. label = 0;
  24058. $536 = ((($0)) + 24|0);
  24059. $537 = HEAP32[$536>>2]|0;
  24060. $538 = (($537) + -1)|0;
  24061. HEAP32[$536>>2] = $538;
  24062. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  24063. label = 80;
  24064. continue;
  24065. }
  24066. else if ((label|0) == 139) {
  24067. label = 0;
  24068. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  24069. label = 140;
  24070. continue;
  24071. }
  24072. else if ((label|0) == 185) {
  24073. label = 0;
  24074. $709 = ($$73>>>0)<(15);
  24075. if (!($709)) {
  24076. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  24077. label = 198;
  24078. continue;
  24079. }
  24080. $710 = $10;
  24081. $711 = $$721579;
  24082. $712 = (($710) - ($711))|0;
  24083. $713 = ($712|0)<(2);
  24084. if ($713) {
  24085. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  24086. label = 187;
  24087. continue;
  24088. }
  24089. $744 = HEAP8[$$721579>>0]|0;
  24090. $745 = $744&255;
  24091. $746 = $745 << $$73;
  24092. $747 = ((($$721579)) + 1|0);
  24093. $748 = HEAP8[$747>>0]|0;
  24094. $749 = $748&255;
  24095. $750 = (($$73) + 8)|0;
  24096. $751 = $749 << $750;
  24097. $752 = $746 | $$731382;
  24098. $753 = $752 | $751;
  24099. $754 = ((($$721579)) + 2|0);
  24100. $755 = (($$73) + 16)|0;
  24101. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  24102. label = 198;
  24103. continue;
  24104. }
  24105. }
  24106. if ((label|0) == 113) {
  24107. label = 0;
  24108. $449 = ($$461553>>>0)<($10>>>0);
  24109. if ($449) {
  24110. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  24111. label = 116;
  24112. continue;
  24113. } else {
  24114. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  24115. label = 114;
  24116. continue;
  24117. }
  24118. }
  24119. else if ((label|0) == 150) {
  24120. label = 0;
  24121. $569 = ($$591566>>>0)<($10>>>0);
  24122. if ($569) {
  24123. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  24124. label = 153;
  24125. continue;
  24126. } else {
  24127. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  24128. label = 151;
  24129. continue;
  24130. }
  24131. }
  24132. else if ((label|0) == 192) {
  24133. label = 0;
  24134. $734 = ($$731580>>>0)<($10>>>0);
  24135. if ($734) {
  24136. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  24137. label = 195;
  24138. continue;
  24139. } else {
  24140. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  24141. label = 193;
  24142. continue;
  24143. }
  24144. }
  24145. else if ((label|0) == 220) {
  24146. label = 0;
  24147. $834 = ((($0)) + 20|0);
  24148. $835 = HEAP32[$834>>2]|0;
  24149. $836 = $835 & 1;
  24150. $837 = ($836|0)==(0);
  24151. if ($837) {
  24152. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  24153. label = 14;
  24154. continue;
  24155. }
  24156. $838 = $6 & 1;
  24157. $839 = ($838|0)==(0);
  24158. if ($839) {
  24159. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  24160. label = 242;
  24161. continue;
  24162. } else {
  24163. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  24164. label = 226;
  24165. continue;
  24166. }
  24167. }
  24168. }
  24169. if ((label|0) == 258) {
  24170. STACKTOP = sp;return ($$0951|0);
  24171. }
  24172. $892 = ((($0)) + 28|0);
  24173. $893 = HEAP32[$892>>2]|0;
  24174. $894 = $893 & 65535;
  24175. $895 = $893 >>> 16;
  24176. $896 = ($888|0)==(0);
  24177. if ($896) {
  24178. $$0937$lcssa = $895;$$0938$lcssa = $894;
  24179. } else {
  24180. $897 = (($888>>>0) % 5552)&-1;
  24181. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  24182. while(1) {
  24183. $898 = ($$01834>>>0)>(7);
  24184. if ($898) {
  24185. $899 = (($$01834) + -8)|0;
  24186. $900 = $899 & -8;
  24187. $scevgep = ((($$09441830)) + 8|0);
  24188. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  24189. while(1) {
  24190. $904 = HEAP8[$$19451815>>0]|0;
  24191. $905 = $904&255;
  24192. $906 = (($905) + ($$19391817))|0;
  24193. $907 = (($906) + ($$11818))|0;
  24194. $908 = ((($$19451815)) + 1|0);
  24195. $909 = HEAP8[$908>>0]|0;
  24196. $910 = $909&255;
  24197. $911 = (($906) + ($910))|0;
  24198. $912 = (($907) + ($911))|0;
  24199. $913 = ((($$19451815)) + 2|0);
  24200. $914 = HEAP8[$913>>0]|0;
  24201. $915 = $914&255;
  24202. $916 = (($911) + ($915))|0;
  24203. $917 = (($912) + ($916))|0;
  24204. $918 = ((($$19451815)) + 3|0);
  24205. $919 = HEAP8[$918>>0]|0;
  24206. $920 = $919&255;
  24207. $921 = (($916) + ($920))|0;
  24208. $922 = (($917) + ($921))|0;
  24209. $923 = ((($$19451815)) + 4|0);
  24210. $924 = HEAP8[$923>>0]|0;
  24211. $925 = $924&255;
  24212. $926 = (($921) + ($925))|0;
  24213. $927 = (($922) + ($926))|0;
  24214. $928 = ((($$19451815)) + 5|0);
  24215. $929 = HEAP8[$928>>0]|0;
  24216. $930 = $929&255;
  24217. $931 = (($926) + ($930))|0;
  24218. $932 = (($927) + ($931))|0;
  24219. $933 = ((($$19451815)) + 6|0);
  24220. $934 = HEAP8[$933>>0]|0;
  24221. $935 = $934&255;
  24222. $936 = (($931) + ($935))|0;
  24223. $937 = (($932) + ($936))|0;
  24224. $938 = ((($$19451815)) + 7|0);
  24225. $939 = HEAP8[$938>>0]|0;
  24226. $940 = $939&255;
  24227. $941 = (($936) + ($940))|0;
  24228. $942 = (($937) + ($941))|0;
  24229. $943 = (($$09411816) + 8)|0;
  24230. $944 = ((($$19451815)) + 8|0);
  24231. $945 = $943 | 7;
  24232. $946 = ($945>>>0)<($$01834>>>0);
  24233. if ($946) {
  24234. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  24235. } else {
  24236. break;
  24237. }
  24238. }
  24239. $901 = (($900) + 8)|0;
  24240. $scevgep1947 = (($scevgep) + ($900)|0);
  24241. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  24242. } else {
  24243. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  24244. }
  24245. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  24246. if ($902) {
  24247. $903 = (($$01834) - ($$0941$lcssa))|0;
  24248. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  24249. while(1) {
  24250. $947 = ((($$29461822)) + 1|0);
  24251. $948 = HEAP8[$$29461822>>0]|0;
  24252. $949 = $948&255;
  24253. $950 = (($949) + ($$29401824))|0;
  24254. $951 = (($950) + ($$21825))|0;
  24255. $952 = (($$19421823) + 1)|0;
  24256. $exitcond = ($952|0)==($$01834|0);
  24257. if ($exitcond) {
  24258. break;
  24259. } else {
  24260. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  24261. }
  24262. }
  24263. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  24264. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  24265. } else {
  24266. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  24267. }
  24268. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  24269. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  24270. $955 = (($$09431831) - ($$01834))|0;
  24271. $956 = ($955|0)==(0);
  24272. if ($956) {
  24273. $$0937$lcssa = $954;$$0938$lcssa = $953;
  24274. break;
  24275. } else {
  24276. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  24277. }
  24278. }
  24279. }
  24280. $957 = $$0937$lcssa << 16;
  24281. $958 = $957 | $$0938$lcssa;
  24282. HEAP32[$892>>2] = $958;
  24283. $959 = ($$1961|0)!=(0);
  24284. $960 = $6 & 1;
  24285. $961 = ($960|0)==(0);
  24286. $or$cond1752 = $961 | $959;
  24287. if ($or$cond1752) {
  24288. $$0951 = $$1961;
  24289. STACKTOP = sp;return ($$0951|0);
  24290. } else {
  24291. $962 = ((($0)) + 16|0);
  24292. $963 = HEAP32[$962>>2]|0;
  24293. $964 = ($958|0)==($963|0);
  24294. $$1961$ = $964 ? $$1961 : -2;
  24295. STACKTOP = sp;return ($$1961$|0);
  24296. }
  24297. return (0)|0;
  24298. }
  24299. function _ImageAlphaMask($0,$1) {
  24300. $0 = $0|0;
  24301. $1 = $1|0;
  24302. 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;
  24303. 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;
  24304. 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;
  24305. var sp = 0;
  24306. sp = STACKTOP;
  24307. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  24308. $$byval_copy3 = sp + 32|0;
  24309. $vararg_buffer1 = sp + 8|0;
  24310. $vararg_buffer = sp;
  24311. $2 = sp + 12|0;
  24312. $3 = ((($0)) + 4|0);
  24313. $4 = HEAP32[$3>>2]|0;
  24314. $5 = ((($1)) + 4|0);
  24315. $6 = HEAP32[$5>>2]|0;
  24316. $7 = ($4|0)==($6|0);
  24317. if ($7) {
  24318. $8 = ((($0)) + 8|0);
  24319. $9 = HEAP32[$8>>2]|0;
  24320. $10 = ((($1)) + 8|0);
  24321. $11 = HEAP32[$10>>2]|0;
  24322. $12 = ($9|0)==($11|0);
  24323. if ($12) {
  24324. $13 = ((($0)) + 16|0);
  24325. $14 = HEAP32[$13>>2]|0;
  24326. $15 = ($14|0)>(7);
  24327. if ($15) {
  24328. _TraceLog(2,11643,$vararg_buffer1);
  24329. STACKTOP = sp;return;
  24330. }
  24331. ;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;
  24332. _ImageCopy($2,$$byval_copy3);
  24333. $16 = ((($2)) + 16|0);
  24334. $17 = HEAP32[$16>>2]|0;
  24335. $18 = ($17|0)==(1);
  24336. if (!($18)) {
  24337. _ImageFormat($2,1);
  24338. }
  24339. $19 = HEAP32[$13>>2]|0;
  24340. L11: do {
  24341. switch ($19|0) {
  24342. case 1: {
  24343. _ImageFormat($0,2);
  24344. $20 = ((($2)) + 4|0);
  24345. $21 = HEAP32[$20>>2]|0;
  24346. $22 = ((($2)) + 8|0);
  24347. $23 = HEAP32[$22>>2]|0;
  24348. $24 = Math_imul($23, $21)|0;
  24349. $25 = HEAP32[$2>>2]|0;
  24350. $$032 = 1;$$033 = 0;
  24351. while(1) {
  24352. $26 = ($$033|0)<($24|0);
  24353. if (!($26)) {
  24354. $27 = HEAP32[$3>>2]|0;
  24355. $28 = HEAP32[$8>>2]|0;
  24356. $29 = Math_imul($28, $27)|0;
  24357. $30 = ($$033|0)<($29|0);
  24358. if (!($30)) {
  24359. break L11;
  24360. }
  24361. }
  24362. $31 = (($25) + ($$033)|0);
  24363. $32 = HEAP8[$31>>0]|0;
  24364. $33 = HEAP32[$0>>2]|0;
  24365. $34 = (($33) + ($$032)|0);
  24366. HEAP8[$34>>0] = $32;
  24367. $35 = (($$033) + 1)|0;
  24368. $36 = (($$032) + 2)|0;
  24369. $$032 = $36;$$033 = $35;
  24370. }
  24371. break;
  24372. }
  24373. case 7: {
  24374. label = 14;
  24375. break;
  24376. }
  24377. default: {
  24378. _ImageFormat($0,7);
  24379. label = 14;
  24380. }
  24381. }
  24382. } while(0);
  24383. L19: do {
  24384. if ((label|0) == 14) {
  24385. $37 = ((($2)) + 4|0);
  24386. $38 = HEAP32[$37>>2]|0;
  24387. $39 = ((($2)) + 8|0);
  24388. $40 = HEAP32[$39>>2]|0;
  24389. $41 = Math_imul($40, $38)|0;
  24390. $42 = HEAP32[$2>>2]|0;
  24391. $$0 = 3;$$031 = 0;
  24392. while(1) {
  24393. $43 = ($$031|0)<($41|0);
  24394. if (!($43)) {
  24395. $44 = HEAP32[$3>>2]|0;
  24396. $45 = HEAP32[$8>>2]|0;
  24397. $46 = Math_imul($45, $44)|0;
  24398. $47 = ($$031|0)<($46|0);
  24399. if (!($47)) {
  24400. break L19;
  24401. }
  24402. }
  24403. $48 = (($42) + ($$031)|0);
  24404. $49 = HEAP8[$48>>0]|0;
  24405. $50 = HEAP32[$0>>2]|0;
  24406. $51 = (($50) + ($$0)|0);
  24407. HEAP8[$51>>0] = $49;
  24408. $52 = (($$031) + 1)|0;
  24409. $53 = (($$0) + 4)|0;
  24410. $$0 = $53;$$031 = $52;
  24411. }
  24412. }
  24413. } while(0);
  24414. ;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;
  24415. _UnloadImage($$byval_copy3);
  24416. STACKTOP = sp;return;
  24417. }
  24418. }
  24419. _TraceLog(2,11605,$vararg_buffer);
  24420. STACKTOP = sp;return;
  24421. }
  24422. function _GetDefaultFont($0) {
  24423. $0 = $0|0;
  24424. var label = 0, sp = 0;
  24425. sp = STACKTOP;
  24426. ;HEAP32[$0>>2]=HEAP32[19664>>2]|0;HEAP32[$0+4>>2]=HEAP32[19664+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[19664+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[19664+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[19664+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[19664+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[19664+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[19664+28>>2]|0;
  24427. return;
  24428. }
  24429. function _MeasureTextEx($0,$1,$2,$3,$4) {
  24430. $0 = $0|0;
  24431. $1 = $1|0;
  24432. $2 = $2|0;
  24433. $3 = +$3;
  24434. $4 = $4|0;
  24435. 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;
  24436. 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;
  24437. 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;
  24438. var sp = 0;
  24439. sp = STACKTOP;
  24440. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  24441. $$byval_copy = sp;
  24442. $5 = (_strlen($2)|0);
  24443. $6 = ((($1)) + 20|0);
  24444. $7 = HEAP32[$6>>2]|0;
  24445. $8 = (+($7|0));
  24446. $9 = $3 / $8;
  24447. $10 = ($5|0)>(0);
  24448. if (!($10)) {
  24449. $$0$lcssa = -1;$$052$lcssa = 0.0;$$055$lcssa = 0.0;$$058$lcssa = $8;
  24450. $12 = $$055$lcssa < $$052$lcssa;
  24451. $$3 = $12 ? $$052$lcssa : $$055$lcssa;
  24452. $13 = $9 * $$3;
  24453. $14 = Math_imul($$0$lcssa, $4)|0;
  24454. $15 = (+($14|0));
  24455. $16 = $13 + $15;
  24456. $17 = $9 * $$058$lcssa;
  24457. HEAPF32[$0>>2] = $16;
  24458. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24459. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $17;
  24460. STACKTOP = sp;return;
  24461. }
  24462. $11 = ((($1)) + 28|0);
  24463. $$05064 = 0;$$05263 = 0.0;$$05462 = 0;$$05561 = 0.0;$$05860 = $8;$$065 = 0;
  24464. while(1) {
  24465. $18 = (($$05064) + 1)|0;
  24466. $19 = (($2) + ($$05462)|0);
  24467. $20 = HEAP8[$19>>0]|0;
  24468. $21 = ($20<<24>>24)==(10);
  24469. if ($21) {
  24470. $33 = $$05561 < $$05263;
  24471. $$156 = $33 ? $$05263 : $$05561;
  24472. $34 = HEAP32[$6>>2]|0;
  24473. $35 = (+($34|0));
  24474. $36 = $35 * 1.5;
  24475. $37 = $$05860 + $36;
  24476. $$151 = 0;$$159 = $37;$$2 = 0.0;$$257 = $$156;
  24477. } else {
  24478. $22 = $20 << 24 >> 24;
  24479. ;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;
  24480. $23 = (_GetCharIndex($$byval_copy,$22)|0);
  24481. $24 = HEAP32[$11>>2]|0;
  24482. $25 = (((($24) + ($23<<5)|0)) + 28|0);
  24483. $26 = HEAP32[$25>>2]|0;
  24484. $27 = ($26|0)==(0);
  24485. if ($27) {
  24486. $28 = (((($24) + ($23<<5)|0)) + 20|0);
  24487. $29 = (((($24) + ($23<<5)|0)) + 12|0);
  24488. $30 = HEAP32[$29>>2]|0;
  24489. $31 = HEAP32[$28>>2]|0;
  24490. $32 = (($31) + ($30))|0;
  24491. $$pn$in = $32;
  24492. } else {
  24493. $$pn$in = $26;
  24494. }
  24495. $$pn = (+($$pn$in|0));
  24496. $$153 = $$05263 + $$pn;
  24497. $$151 = $18;$$159 = $$05860;$$2 = $$153;$$257 = $$05561;
  24498. }
  24499. $38 = ($$065|0)<($$151|0);
  24500. $$151$$0 = $38 ? $$151 : $$065;
  24501. $39 = (($$05462) + 1)|0;
  24502. $exitcond = ($39|0)==($5|0);
  24503. if ($exitcond) {
  24504. break;
  24505. } else {
  24506. $$05064 = $$151;$$05263 = $$2;$$05462 = $39;$$05561 = $$257;$$05860 = $$159;$$065 = $$151$$0;
  24507. }
  24508. }
  24509. $phitmp = (($$151$$0) + -1)|0;
  24510. $$0$lcssa = $phitmp;$$052$lcssa = $$2;$$055$lcssa = $$257;$$058$lcssa = $$159;
  24511. $12 = $$055$lcssa < $$052$lcssa;
  24512. $$3 = $12 ? $$052$lcssa : $$055$lcssa;
  24513. $13 = $9 * $$3;
  24514. $14 = Math_imul($$0$lcssa, $4)|0;
  24515. $15 = (+($14|0));
  24516. $16 = $13 + $15;
  24517. $17 = $9 * $$058$lcssa;
  24518. HEAPF32[$0>>2] = $16;
  24519. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24520. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $17;
  24521. STACKTOP = sp;return;
  24522. }
  24523. function _GetCharIndex($0,$1) {
  24524. $0 = $0|0;
  24525. $1 = $1|0;
  24526. 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;
  24527. sp = STACKTOP;
  24528. $2 = ((($0)) + 24|0);
  24529. $3 = HEAP32[$2>>2]|0;
  24530. $4 = ($3|0)>(0);
  24531. if (!($4)) {
  24532. $$08 = 0;
  24533. return ($$08|0);
  24534. }
  24535. $5 = ((($0)) + 28|0);
  24536. $6 = HEAP32[$5>>2]|0;
  24537. $$09 = 0;
  24538. while(1) {
  24539. $7 = (($6) + ($$09<<5)|0);
  24540. $8 = HEAP32[$7>>2]|0;
  24541. $9 = ($8|0)==($1|0);
  24542. if ($9) {
  24543. $$08 = $$09;
  24544. label = 5;
  24545. break;
  24546. }
  24547. $10 = (($$09) + 1)|0;
  24548. $11 = HEAP32[$2>>2]|0;
  24549. $12 = ($10|0)<($11|0);
  24550. if ($12) {
  24551. $$09 = $10;
  24552. } else {
  24553. $$08 = 0;
  24554. label = 5;
  24555. break;
  24556. }
  24557. }
  24558. if ((label|0) == 5) {
  24559. return ($$08|0);
  24560. }
  24561. return (0)|0;
  24562. }
  24563. function _SetTextureFilter($0,$1) {
  24564. $0 = $0|0;
  24565. $1 = $1|0;
  24566. 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;
  24567. var $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24568. sp = STACKTOP;
  24569. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  24570. $vararg_buffer = sp;
  24571. switch ($1|0) {
  24572. case 0: {
  24573. $2 = ((($0)) + 12|0);
  24574. $3 = HEAP32[$2>>2]|0;
  24575. $4 = ($3|0)>(1);
  24576. $5 = HEAP32[$0>>2]|0;
  24577. if ($4) {
  24578. _rlTextureParameters($5,10241,9984);
  24579. $6 = HEAP32[$0>>2]|0;
  24580. _rlTextureParameters($6,10240,9728);
  24581. STACKTOP = sp;return;
  24582. } else {
  24583. _rlTextureParameters($5,10241,9728);
  24584. $7 = HEAP32[$0>>2]|0;
  24585. _rlTextureParameters($7,10240,9728);
  24586. STACKTOP = sp;return;
  24587. }
  24588. break;
  24589. }
  24590. case 1: {
  24591. $8 = ((($0)) + 12|0);
  24592. $9 = HEAP32[$8>>2]|0;
  24593. $10 = ($9|0)>(1);
  24594. $11 = HEAP32[$0>>2]|0;
  24595. if ($10) {
  24596. _rlTextureParameters($11,10241,9985);
  24597. $12 = HEAP32[$0>>2]|0;
  24598. _rlTextureParameters($12,10240,9729);
  24599. STACKTOP = sp;return;
  24600. } else {
  24601. _rlTextureParameters($11,10241,9729);
  24602. $13 = HEAP32[$0>>2]|0;
  24603. _rlTextureParameters($13,10240,9729);
  24604. STACKTOP = sp;return;
  24605. }
  24606. break;
  24607. }
  24608. case 2: {
  24609. $14 = ((($0)) + 12|0);
  24610. $15 = HEAP32[$14>>2]|0;
  24611. $16 = ($15|0)>(1);
  24612. $17 = HEAP32[$0>>2]|0;
  24613. if ($16) {
  24614. _rlTextureParameters($17,10241,9987);
  24615. $18 = HEAP32[$0>>2]|0;
  24616. _rlTextureParameters($18,10240,9729);
  24617. STACKTOP = sp;return;
  24618. } else {
  24619. HEAP32[$vararg_buffer>>2] = $17;
  24620. _TraceLog(2,11700,$vararg_buffer);
  24621. $19 = HEAP32[$0>>2]|0;
  24622. _rlTextureParameters($19,10241,9729);
  24623. _rlTextureParameters($19,10240,9729);
  24624. STACKTOP = sp;return;
  24625. }
  24626. break;
  24627. }
  24628. case 3: {
  24629. $20 = HEAP32[$0>>2]|0;
  24630. _rlTextureParameters($20,12288,4);
  24631. STACKTOP = sp;return;
  24632. break;
  24633. }
  24634. case 4: {
  24635. $21 = HEAP32[$0>>2]|0;
  24636. _rlTextureParameters($21,12288,8);
  24637. STACKTOP = sp;return;
  24638. break;
  24639. }
  24640. case 5: {
  24641. $22 = HEAP32[$0>>2]|0;
  24642. _rlTextureParameters($22,12288,16);
  24643. STACKTOP = sp;return;
  24644. break;
  24645. }
  24646. default: {
  24647. STACKTOP = sp;return;
  24648. }
  24649. }
  24650. }
  24651. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  24652. $0 = $0|0;
  24653. $1 = $1|0;
  24654. $2 = $2|0;
  24655. $3 = $3|0;
  24656. $4 = +$4;
  24657. $5 = $5|0;
  24658. 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;
  24659. 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;
  24660. 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;
  24661. 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;
  24662. 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;
  24663. sp = STACKTOP;
  24664. $6 = HEAP32[$0>>2]|0;
  24665. $7 = ($6|0)==(0);
  24666. if ($7) {
  24667. return;
  24668. }
  24669. $8 = ((($1)) + 8|0);
  24670. $9 = HEAP32[$8>>2]|0;
  24671. $10 = ($9|0)<(0);
  24672. if ($10) {
  24673. $11 = HEAP32[$1>>2]|0;
  24674. $12 = (($11) - ($9))|0;
  24675. HEAP32[$1>>2] = $12;
  24676. }
  24677. $13 = ((($1)) + 12|0);
  24678. $14 = HEAP32[$13>>2]|0;
  24679. $15 = ($14|0)<(0);
  24680. if ($15) {
  24681. $16 = ((($1)) + 4|0);
  24682. $17 = HEAP32[$16>>2]|0;
  24683. $18 = (($17) - ($14))|0;
  24684. HEAP32[$16>>2] = $18;
  24685. }
  24686. $19 = HEAP32[$0>>2]|0;
  24687. _rlEnableTexture($19);
  24688. _rlPushMatrix();
  24689. $20 = HEAP32[$2>>2]|0;
  24690. $21 = (+($20|0));
  24691. $22 = ((($2)) + 4|0);
  24692. $23 = HEAP32[$22>>2]|0;
  24693. $24 = (+($23|0));
  24694. _rlTranslatef($21,$24,0.0);
  24695. _rlRotatef($4,0.0,0.0,1.0);
  24696. $25 = +HEAPF32[$3>>2];
  24697. $26 = -$25;
  24698. $27 = ((($3)) + 4|0);
  24699. $28 = +HEAPF32[$27>>2];
  24700. $29 = -$28;
  24701. _rlTranslatef($26,$29,0.0);
  24702. _rlBegin(7);
  24703. $30 = HEAP8[$5>>0]|0;
  24704. $31 = ((($5)) + 1|0);
  24705. $32 = HEAP8[$31>>0]|0;
  24706. $33 = ((($5)) + 2|0);
  24707. $34 = HEAP8[$33>>0]|0;
  24708. $35 = ((($5)) + 3|0);
  24709. $36 = HEAP8[$35>>0]|0;
  24710. _rlColor4ub($30,$32,$34,$36);
  24711. $37 = HEAP32[$1>>2]|0;
  24712. $38 = (+($37|0));
  24713. $39 = ((($0)) + 4|0);
  24714. $40 = HEAP32[$39>>2]|0;
  24715. $41 = (+($40|0));
  24716. $42 = $38 / $41;
  24717. $43 = ((($1)) + 4|0);
  24718. $44 = HEAP32[$43>>2]|0;
  24719. $45 = (+($44|0));
  24720. $46 = ((($0)) + 8|0);
  24721. $47 = HEAP32[$46>>2]|0;
  24722. $48 = (+($47|0));
  24723. $49 = $45 / $48;
  24724. _rlTexCoord2f($42,$49);
  24725. _rlVertex2f(0.0,0.0);
  24726. $50 = HEAP32[$1>>2]|0;
  24727. $51 = (+($50|0));
  24728. $52 = HEAP32[$39>>2]|0;
  24729. $53 = (+($52|0));
  24730. $54 = $51 / $53;
  24731. $55 = HEAP32[$43>>2]|0;
  24732. $56 = HEAP32[$13>>2]|0;
  24733. $57 = (($56) + ($55))|0;
  24734. $58 = (+($57|0));
  24735. $59 = HEAP32[$46>>2]|0;
  24736. $60 = (+($59|0));
  24737. $61 = $58 / $60;
  24738. _rlTexCoord2f($54,$61);
  24739. $62 = ((($2)) + 12|0);
  24740. $63 = HEAP32[$62>>2]|0;
  24741. $64 = (+($63|0));
  24742. _rlVertex2f(0.0,$64);
  24743. $65 = HEAP32[$1>>2]|0;
  24744. $66 = HEAP32[$8>>2]|0;
  24745. $67 = (($66) + ($65))|0;
  24746. $68 = (+($67|0));
  24747. $69 = HEAP32[$39>>2]|0;
  24748. $70 = (+($69|0));
  24749. $71 = $68 / $70;
  24750. $72 = HEAP32[$43>>2]|0;
  24751. $73 = HEAP32[$13>>2]|0;
  24752. $74 = (($73) + ($72))|0;
  24753. $75 = (+($74|0));
  24754. $76 = HEAP32[$46>>2]|0;
  24755. $77 = (+($76|0));
  24756. $78 = $75 / $77;
  24757. _rlTexCoord2f($71,$78);
  24758. $79 = ((($2)) + 8|0);
  24759. $80 = HEAP32[$79>>2]|0;
  24760. $81 = (+($80|0));
  24761. $82 = HEAP32[$62>>2]|0;
  24762. $83 = (+($82|0));
  24763. _rlVertex2f($81,$83);
  24764. $84 = HEAP32[$1>>2]|0;
  24765. $85 = HEAP32[$8>>2]|0;
  24766. $86 = (($85) + ($84))|0;
  24767. $87 = (+($86|0));
  24768. $88 = HEAP32[$39>>2]|0;
  24769. $89 = (+($88|0));
  24770. $90 = $87 / $89;
  24771. $91 = HEAP32[$43>>2]|0;
  24772. $92 = (+($91|0));
  24773. $93 = HEAP32[$46>>2]|0;
  24774. $94 = (+($93|0));
  24775. $95 = $92 / $94;
  24776. _rlTexCoord2f($90,$95);
  24777. $96 = HEAP32[$79>>2]|0;
  24778. $97 = (+($96|0));
  24779. _rlVertex2f($97,0.0);
  24780. _rlEnd();
  24781. _rlPopMatrix();
  24782. _rlDisableTexture();
  24783. return;
  24784. }
  24785. function _LoadSpriteFont($0,$1) {
  24786. $0 = $0|0;
  24787. $1 = $1|0;
  24788. 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;
  24789. 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;
  24790. var $45 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24791. sp = STACKTOP;
  24792. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  24793. $$byval_copy5 = sp + 232|0;
  24794. $$byval_copy2 = sp + 212|0;
  24795. $vararg_buffer = sp;
  24796. $2 = sp + 96|0;
  24797. $3 = sp + 192|0;
  24798. $4 = sp + 160|0;
  24799. $5 = sp + 128|0;
  24800. $6 = sp + 40|0;
  24801. $7 = sp + 252|0;
  24802. $8 = sp + 64|0;
  24803. $9 = sp + 8|0;
  24804. ;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;
  24805. $10 = (_IsFileExtension($1,11765)|0);
  24806. $11 = ($10|0)==(0);
  24807. do {
  24808. if ($11) {
  24809. $35 = (_IsFileExtension($1,11771)|0);
  24810. $36 = ($35|0)==(0);
  24811. if (!($36)) {
  24812. _LoadSpriteFontTTF($4,$1,32,0,0);
  24813. ;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;
  24814. break;
  24815. }
  24816. $37 = (_IsFileExtension($1,11776)|0);
  24817. $38 = ($37|0)==(0);
  24818. if (!($38)) {
  24819. _LoadBMFont($5,$1);
  24820. ;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;
  24821. break;
  24822. }
  24823. _LoadImage($6,$1);
  24824. $39 = HEAP32[$6>>2]|0;
  24825. $40 = ($39|0)==(0|0);
  24826. if (!($40)) {
  24827. HEAP8[$7>>0] = -1;
  24828. $41 = ((($7)) + 1|0);
  24829. HEAP8[$41>>0] = 0;
  24830. $42 = ((($7)) + 2|0);
  24831. HEAP8[$42>>0] = -1;
  24832. $43 = ((($7)) + 3|0);
  24833. HEAP8[$43>>0] = -1;
  24834. ;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;
  24835. ;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;
  24836. _LoadImageFont($8,$$byval_copy2,$$byval_copy5);
  24837. ;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;
  24838. }
  24839. ;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;
  24840. _UnloadImage($$byval_copy5);
  24841. } else {
  24842. $12 = (_LoadResource($1,0)|0);
  24843. $13 = HEAP32[$12>>2]|0;
  24844. $14 = ($13|0)==(5);
  24845. if ($14) {
  24846. $15 = ((($12)) + 20|0);
  24847. $16 = HEAP32[$15>>2]|0;
  24848. $17 = ((($12)) + 4|0);
  24849. $18 = HEAP32[$17>>2]|0;
  24850. $19 = ((($12)) + 8|0);
  24851. $20 = HEAP32[$19>>2]|0;
  24852. $21 = ((($12)) + 12|0);
  24853. $22 = HEAP32[$21>>2]|0;
  24854. _LoadImagePro($$byval_copy2,$16,$18,$20,$22);
  24855. ;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;
  24856. _LoadTextureFromImage($3,$$byval_copy5);
  24857. ;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;
  24858. ;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;
  24859. _UnloadImage($$byval_copy5);
  24860. }
  24861. $23 = ((($12)) + 24|0);
  24862. $24 = HEAP32[$23>>2]|0;
  24863. $25 = ($24|0)==(6);
  24864. if ($25) {
  24865. $26 = ((($12)) + 28|0);
  24866. $27 = HEAP32[$26>>2]|0;
  24867. $28 = ((($2)) + 20|0);
  24868. HEAP32[$28>>2] = $27;
  24869. $29 = ((($12)) + 32|0);
  24870. $30 = HEAP32[$29>>2]|0;
  24871. $31 = ((($2)) + 24|0);
  24872. HEAP32[$31>>2] = $30;
  24873. $32 = ((($12)) + 44|0);
  24874. $33 = HEAP32[$32>>2]|0;
  24875. $34 = ((($2)) + 28|0);
  24876. HEAP32[$34>>2] = $33;
  24877. }
  24878. }
  24879. } while(0);
  24880. $44 = HEAP32[$2>>2]|0;
  24881. $45 = ($44|0)==(0);
  24882. if ($45) {
  24883. HEAP32[$vararg_buffer>>2] = $1;
  24884. _TraceLog(2,11781,$vararg_buffer);
  24885. _GetDefaultFont($9);
  24886. ;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;
  24887. ;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;
  24888. STACKTOP = sp;return;
  24889. } else {
  24890. ;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;
  24891. _SetTextureFilter($$byval_copy5,0);
  24892. ;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;
  24893. STACKTOP = sp;return;
  24894. }
  24895. }
  24896. function _LoadSpriteFontTTF($0,$1,$2,$3,$4) {
  24897. $0 = $0|0;
  24898. $1 = $1|0;
  24899. $2 = $2|0;
  24900. $3 = $3|0;
  24901. $4 = $4|0;
  24902. 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;
  24903. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $or$cond = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24904. sp = STACKTOP;
  24905. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  24906. $vararg_buffer = sp;
  24907. $$sroa$8 = sp + 104|0;
  24908. $5 = sp + 72|0;
  24909. $6 = sp + 40|0;
  24910. $7 = sp + 8|0;
  24911. ;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;
  24912. $8 = (_IsFileExtension($1,11771)|0);
  24913. $9 = ($8|0)==(0);
  24914. if (!($9)) {
  24915. $10 = ($4|0)==(0|0);
  24916. $11 = ($3|0)==(0);
  24917. $or$cond = $11 | $10;
  24918. if ($or$cond) {
  24919. $12 = (_malloc(380)|0);
  24920. $$048 = 0;
  24921. while(1) {
  24922. $13 = (($$048) + 32)|0;
  24923. $14 = (($12) + ($$048<<2)|0);
  24924. HEAP32[$14>>2] = $13;
  24925. $15 = (($$048) + 1)|0;
  24926. $exitcond = ($15|0)==(95);
  24927. if ($exitcond) {
  24928. break;
  24929. } else {
  24930. $$048 = $15;
  24931. }
  24932. }
  24933. _LoadTTF($5,$1,$2,95,$12);
  24934. $$sroa$0$0$copyload = HEAP32[$5>>2]|0;
  24935. $$sroa$8$0$$sroa_idx = ((($5)) + 4|0);
  24936. ;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;
  24937. $$sroa$0$0 = $$sroa$0$0$copyload;
  24938. } else {
  24939. _LoadTTF($6,$1,$2,$3,$4);
  24940. $$sroa$0$0$copyload15 = HEAP32[$6>>2]|0;
  24941. $$sroa$8$0$$sroa_idx23 = ((($6)) + 4|0);
  24942. ;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;
  24943. $$sroa$0$0 = $$sroa$0$0$copyload15;
  24944. }
  24945. $16 = ($$sroa$0$0|0)==(0);
  24946. if (!($16)) {
  24947. $$sroa$0$1 = $$sroa$0$0;
  24948. HEAP32[$0>>2] = $$sroa$0$1;
  24949. $$sroa$8$0$$sroa_idx29 = ((($0)) + 4|0);
  24950. ;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;
  24951. STACKTOP = sp;return;
  24952. }
  24953. }
  24954. HEAP32[$vararg_buffer>>2] = $1;
  24955. _TraceLog(2,12325,$vararg_buffer);
  24956. _GetDefaultFont($7);
  24957. $$sroa$0$0$copyload17 = HEAP32[$7>>2]|0;
  24958. $$sroa$8$0$$sroa_idx26 = ((($7)) + 4|0);
  24959. ;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;
  24960. $$sroa$0$1 = $$sroa$0$0$copyload17;
  24961. HEAP32[$0>>2] = $$sroa$0$1;
  24962. $$sroa$8$0$$sroa_idx29 = ((($0)) + 4|0);
  24963. ;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;
  24964. STACKTOP = sp;return;
  24965. }
  24966. function _LoadBMFont($0,$1) {
  24967. $0 = $0|0;
  24968. $1 = $1|0;
  24969. 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;
  24970. 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;
  24971. 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;
  24972. 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;
  24973. 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;
  24974. 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;
  24975. sp = STACKTOP;
  24976. STACKTOP = STACKTOP + 704|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(704|0);
  24977. $$byval_copy52 = sp + 152|0;
  24978. $vararg_buffer44 = sp + 144|0;
  24979. $vararg_buffer34 = sp + 112|0;
  24980. $vararg_buffer26 = sp + 88|0;
  24981. $vararg_buffer23 = sp + 64|0;
  24982. $vararg_buffer19 = sp + 56|0;
  24983. $vararg_buffer16 = sp + 48|0;
  24984. $vararg_buffer11 = sp + 32|0;
  24985. $vararg_buffer7 = sp + 24|0;
  24986. $vararg_buffer1 = sp + 8|0;
  24987. $vararg_buffer = sp;
  24988. $2 = sp + 288|0;
  24989. $3 = sp + 448|0;
  24990. $4 = sp + 260|0;
  24991. $5 = sp + 236|0;
  24992. $6 = sp + 232|0;
  24993. $7 = sp + 320|0;
  24994. $8 = sp + 196|0;
  24995. $9 = sp + 192|0;
  24996. $10 = sp + 264|0;
  24997. $11 = sp + 240|0;
  24998. $12 = sp + 188|0;
  24999. $13 = sp + 184|0;
  25000. $14 = sp + 200|0;
  25001. ;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;
  25002. HEAP32[$4>>2] = 0;
  25003. HEAP32[$8>>2] = 0;
  25004. $15 = (_fopen($1,11923)|0);
  25005. $16 = ($15|0)==(0|0);
  25006. if ($16) {
  25007. HEAP32[$vararg_buffer>>2] = $1;
  25008. _TraceLog(2,11926,$vararg_buffer);
  25009. ;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;
  25010. STACKTOP = sp;return;
  25011. }
  25012. (_fgets($3,256,$15)|0);
  25013. (_fgets($3,256,$15)|0);
  25014. $17 = (_strstr($3,11960)|0);
  25015. HEAP32[$vararg_buffer1>>2] = $4;
  25016. $vararg_ptr4 = ((($vararg_buffer1)) + 4|0);
  25017. HEAP32[$vararg_ptr4>>2] = $9;
  25018. $vararg_ptr5 = ((($vararg_buffer1)) + 8|0);
  25019. HEAP32[$vararg_ptr5>>2] = $5;
  25020. $vararg_ptr6 = ((($vararg_buffer1)) + 12|0);
  25021. HEAP32[$vararg_ptr6>>2] = $6;
  25022. (_sscanf($17,11971,$vararg_buffer1)|0);
  25023. $18 = HEAP32[$4>>2]|0;
  25024. HEAP32[$vararg_buffer7>>2] = $1;
  25025. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  25026. HEAP32[$vararg_ptr10>>2] = $18;
  25027. _TraceLog(3,12013,$vararg_buffer7);
  25028. $19 = HEAP32[$5>>2]|0;
  25029. $20 = HEAP32[$6>>2]|0;
  25030. HEAP32[$vararg_buffer11>>2] = $1;
  25031. $vararg_ptr14 = ((($vararg_buffer11)) + 4|0);
  25032. HEAP32[$vararg_ptr14>>2] = $19;
  25033. $vararg_ptr15 = ((($vararg_buffer11)) + 8|0);
  25034. HEAP32[$vararg_ptr15>>2] = $20;
  25035. _TraceLog(3,12032,$vararg_buffer11);
  25036. (_fgets($3,256,$15)|0);
  25037. $21 = (_strstr($3,12063)|0);
  25038. HEAP32[$vararg_buffer16>>2] = $7;
  25039. (_sscanf($21,12068,$vararg_buffer16)|0);
  25040. HEAP32[$vararg_buffer19>>2] = $1;
  25041. $vararg_ptr22 = ((($vararg_buffer19)) + 4|0);
  25042. HEAP32[$vararg_ptr22>>2] = $7;
  25043. _TraceLog(3,12084,$vararg_buffer19);
  25044. (_fgets($3,256,$15)|0);
  25045. $22 = (_strstr($3,12115)|0);
  25046. HEAP32[$vararg_buffer23>>2] = $8;
  25047. (_sscanf($22,12121,$vararg_buffer23)|0);
  25048. $23 = HEAP32[$8>>2]|0;
  25049. HEAP32[$vararg_buffer26>>2] = $1;
  25050. $vararg_ptr29 = ((($vararg_buffer26)) + 4|0);
  25051. HEAP32[$vararg_ptr29>>2] = $23;
  25052. _TraceLog(3,12130,$vararg_buffer26);
  25053. $24 = (_strrchr($1,47)|0);
  25054. $25 = (_strlen($1)|0);
  25055. $26 = (_strlen($24)|0);
  25056. $27 = (_strlen($7)|0);
  25057. $28 = (($25) + 4)|0;
  25058. $29 = (($28) - ($26))|0;
  25059. $30 = (($29) + ($27))|0;
  25060. $31 = (_malloc($30)|0);
  25061. HEAP8[$31>>0] = 0;
  25062. $32 = (_strlen($1)|0);
  25063. $33 = (_strlen($24)|0);
  25064. $34 = (($32) + 1)|0;
  25065. $35 = (($34) - ($33))|0;
  25066. (_strncat($31,$1,$35)|0);
  25067. $36 = (_strlen($7)|0);
  25068. (_strncat($31,$7,$36)|0);
  25069. HEAP32[$$byval_copy52>>2] = $1;
  25070. $vararg_ptr33 = ((($$byval_copy52)) + 4|0);
  25071. HEAP32[$vararg_ptr33>>2] = $31;
  25072. _TraceLog(3,12154,$$byval_copy52);
  25073. _LoadImage($vararg_buffer26,$31);
  25074. $37 = ((($vararg_buffer26)) + 16|0);
  25075. $38 = HEAP32[$37>>2]|0;
  25076. $39 = ($38|0)==(1);
  25077. if ($39) {
  25078. ;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;
  25079. _ImageCopy($vararg_buffer23,$$byval_copy52);
  25080. $40 = ((($vararg_buffer23)) + 4|0);
  25081. $41 = HEAP32[$40>>2]|0;
  25082. $42 = ((($vararg_buffer23)) + 8|0);
  25083. $43 = HEAP32[$42>>2]|0;
  25084. $44 = Math_imul($43, $41)|0;
  25085. $45 = ($44|0)>(0);
  25086. if ($45) {
  25087. $$056 = 0;
  25088. while(1) {
  25089. $46 = HEAP32[$vararg_buffer23>>2]|0;
  25090. $47 = (($46) + ($$056)|0);
  25091. HEAP8[$47>>0] = -1;
  25092. $48 = (($$056) + 1)|0;
  25093. $49 = HEAP32[$40>>2]|0;
  25094. $50 = HEAP32[$42>>2]|0;
  25095. $51 = Math_imul($50, $49)|0;
  25096. $52 = ($48|0)<($51|0);
  25097. if ($52) {
  25098. $$056 = $48;
  25099. } else {
  25100. break;
  25101. }
  25102. }
  25103. }
  25104. ;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;
  25105. _ImageAlphaMask($vararg_buffer23,$$byval_copy52);
  25106. ;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;
  25107. _LoadTextureFromImage($10,$$byval_copy52);
  25108. ;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;
  25109. ;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;
  25110. _UnloadImage($$byval_copy52);
  25111. } else {
  25112. ;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;
  25113. _LoadTextureFromImage($11,$$byval_copy52);
  25114. ;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;
  25115. }
  25116. $53 = HEAP32[$4>>2]|0;
  25117. $54 = ((($2)) + 20|0);
  25118. HEAP32[$54>>2] = $53;
  25119. $55 = HEAP32[$8>>2]|0;
  25120. $56 = ((($2)) + 24|0);
  25121. HEAP32[$56>>2] = $55;
  25122. $57 = $55 << 5;
  25123. $58 = (_malloc($57)|0);
  25124. $59 = ((($2)) + 28|0);
  25125. HEAP32[$59>>2] = $58;
  25126. ;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;
  25127. _UnloadImage($$byval_copy52);
  25128. _free($31);
  25129. $60 = HEAP32[$8>>2]|0;
  25130. $61 = ($60|0)>(0);
  25131. if ($61) {
  25132. $$05355 = 0;
  25133. while(1) {
  25134. (_fgets($3,256,$15)|0);
  25135. HEAP32[$vararg_buffer34>>2] = $vararg_buffer23;
  25136. $vararg_ptr37 = ((($vararg_buffer34)) + 4|0);
  25137. HEAP32[$vararg_ptr37>>2] = $vararg_buffer19;
  25138. $vararg_ptr38 = ((($vararg_buffer34)) + 8|0);
  25139. HEAP32[$vararg_ptr38>>2] = $vararg_buffer16;
  25140. $vararg_ptr39 = ((($vararg_buffer34)) + 12|0);
  25141. HEAP32[$vararg_ptr39>>2] = $vararg_buffer11;
  25142. $vararg_ptr40 = ((($vararg_buffer34)) + 16|0);
  25143. HEAP32[$vararg_ptr40>>2] = $vararg_buffer7;
  25144. $vararg_ptr41 = ((($vararg_buffer34)) + 20|0);
  25145. HEAP32[$vararg_ptr41>>2] = $vararg_buffer1;
  25146. $vararg_ptr42 = ((($vararg_buffer34)) + 24|0);
  25147. HEAP32[$vararg_ptr42>>2] = $12;
  25148. $vararg_ptr43 = ((($vararg_buffer34)) + 28|0);
  25149. HEAP32[$vararg_ptr43>>2] = $13;
  25150. (_sscanf($3,12189,$vararg_buffer34)|0);
  25151. $64 = HEAP32[$vararg_buffer23>>2]|0;
  25152. $65 = HEAP32[$59>>2]|0;
  25153. $66 = (($65) + ($$05355<<5)|0);
  25154. HEAP32[$66>>2] = $64;
  25155. $67 = HEAP32[$59>>2]|0;
  25156. $68 = HEAP32[$vararg_buffer19>>2]|0;
  25157. $69 = HEAP32[$vararg_buffer16>>2]|0;
  25158. $70 = HEAP32[$vararg_buffer11>>2]|0;
  25159. $71 = HEAP32[$vararg_buffer7>>2]|0;
  25160. $$sroa$0$0$$sroa_idx = (((($67) + ($$05355<<5)|0)) + 4|0);
  25161. HEAP32[$$sroa$0$0$$sroa_idx>>2] = $68;
  25162. $$sroa$2$0$$sroa_idx1 = (((($67) + ($$05355<<5)|0)) + 8|0);
  25163. HEAP32[$$sroa$2$0$$sroa_idx1>>2] = $69;
  25164. $$sroa$3$0$$sroa_idx2 = (((($67) + ($$05355<<5)|0)) + 12|0);
  25165. HEAP32[$$sroa$3$0$$sroa_idx2>>2] = $70;
  25166. $$sroa$4$0$$sroa_idx3 = (((($67) + ($$05355<<5)|0)) + 16|0);
  25167. HEAP32[$$sroa$4$0$$sroa_idx3>>2] = $71;
  25168. $72 = HEAP32[$vararg_buffer1>>2]|0;
  25169. $73 = HEAP32[$59>>2]|0;
  25170. $74 = (((($73) + ($$05355<<5)|0)) + 20|0);
  25171. HEAP32[$74>>2] = $72;
  25172. $75 = HEAP32[$12>>2]|0;
  25173. $76 = HEAP32[$59>>2]|0;
  25174. $77 = (((($76) + ($$05355<<5)|0)) + 24|0);
  25175. HEAP32[$77>>2] = $75;
  25176. $78 = HEAP32[$13>>2]|0;
  25177. $79 = HEAP32[$59>>2]|0;
  25178. $80 = (((($79) + ($$05355<<5)|0)) + 28|0);
  25179. HEAP32[$80>>2] = $78;
  25180. $81 = (($$05355) + 1)|0;
  25181. $82 = HEAP32[$8>>2]|0;
  25182. $83 = ($81|0)<($82|0);
  25183. if ($83) {
  25184. $$05355 = $81;
  25185. } else {
  25186. break;
  25187. }
  25188. }
  25189. }
  25190. (_fclose($15)|0);
  25191. $62 = HEAP32[$2>>2]|0;
  25192. $63 = ($62|0)==(0);
  25193. if ($63) {
  25194. ;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;
  25195. _UnloadSpriteFont($$byval_copy52);
  25196. _GetDefaultFont($14);
  25197. ;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;
  25198. } else {
  25199. HEAP32[$vararg_buffer44>>2] = $1;
  25200. _TraceLog(0,12263,$vararg_buffer44);
  25201. }
  25202. ;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;
  25203. STACKTOP = sp;return;
  25204. }
  25205. function _LoadImageFont($0,$1,$2) {
  25206. $0 = $0|0;
  25207. $1 = $1|0;
  25208. $2 = $2|0;
  25209. 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;
  25210. 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;
  25211. 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;
  25212. 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;
  25213. 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;
  25214. 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;
  25215. 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;
  25216. 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;
  25217. 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;
  25218. 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;
  25219. var $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, label = 0, sp = 0;
  25220. sp = STACKTOP;
  25221. STACKTOP = STACKTOP + 5232|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(5232|0);
  25222. $$byval_copy4 = sp + 5200|0;
  25223. $vararg_buffer1 = sp + 48|0;
  25224. $vararg_buffer = sp + 24|0;
  25225. $3 = sp + 4176|0;
  25226. $4 = sp + 56|0;
  25227. $$sroa$0 = sp;
  25228. $5 = sp + 4152|0;
  25229. ;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;
  25230. $6 = (_GetImageData($$byval_copy4)|0);
  25231. $7 = ((($1)) + 8|0);
  25232. $8 = HEAP32[$7>>2]|0;
  25233. $9 = ($8|0)>(0);
  25234. L1: do {
  25235. if ($9) {
  25236. $10 = ((($1)) + 4|0);
  25237. $11 = HEAP32[$10>>2]|0;
  25238. $12 = ($11|0)>(0);
  25239. $13 = HEAP8[$2>>0]|0;
  25240. $14 = ((($2)) + 1|0);
  25241. $15 = HEAP8[$14>>0]|0;
  25242. $16 = ((($2)) + 2|0);
  25243. $17 = HEAP8[$16>>0]|0;
  25244. $18 = ((($2)) + 3|0);
  25245. $19 = HEAP8[$18>>0]|0;
  25246. $20 = HEAP8[$2>>0]|0;
  25247. $21 = ((($2)) + 1|0);
  25248. $22 = HEAP8[$21>>0]|0;
  25249. $23 = ((($2)) + 2|0);
  25250. $24 = HEAP8[$23>>0]|0;
  25251. $25 = ((($2)) + 3|0);
  25252. $26 = HEAP8[$25>>0]|0;
  25253. $27 = HEAP32[$10>>2]|0;
  25254. $$019552 = 0;
  25255. while(1) {
  25256. L5: do {
  25257. if ($12) {
  25258. $$135 = 0;$29 = $11;
  25259. while(1) {
  25260. $28 = Math_imul($29, $$019552)|0;
  25261. $30 = (($28) + ($$135))|0;
  25262. $31 = (($6) + ($30<<2)|0);
  25263. $32 = HEAP8[$31>>0]|0;
  25264. $33 = ($32<<24>>24)==($20<<24>>24);
  25265. if (!($33)) {
  25266. $$1$lcssa = $$135;
  25267. break L5;
  25268. }
  25269. $34 = (((($6) + ($30<<2)|0)) + 1|0);
  25270. $35 = HEAP8[$34>>0]|0;
  25271. $36 = ($35<<24>>24)==($22<<24>>24);
  25272. if (!($36)) {
  25273. $$1$lcssa = $$135;
  25274. break L5;
  25275. }
  25276. $37 = (((($6) + ($30<<2)|0)) + 2|0);
  25277. $38 = HEAP8[$37>>0]|0;
  25278. $39 = ($38<<24>>24)==($24<<24>>24);
  25279. if (!($39)) {
  25280. $$1$lcssa = $$135;
  25281. break L5;
  25282. }
  25283. $40 = (((($6) + ($30<<2)|0)) + 3|0);
  25284. $41 = HEAP8[$40>>0]|0;
  25285. $42 = ($41<<24>>24)==($26<<24>>24);
  25286. if (!($42)) {
  25287. $$1$lcssa = $$135;
  25288. break L5;
  25289. }
  25290. $43 = (($$135) + 1)|0;
  25291. $44 = HEAP32[$10>>2]|0;
  25292. $45 = ($43|0)<($44|0);
  25293. if ($45) {
  25294. $$135 = $43;$29 = $44;
  25295. } else {
  25296. $$1$lcssa = $43;
  25297. break;
  25298. }
  25299. }
  25300. } else {
  25301. $$1$lcssa = 0;
  25302. }
  25303. } while(0);
  25304. $46 = Math_imul($27, $$019552)|0;
  25305. $47 = (($46) + ($$1$lcssa))|0;
  25306. $48 = (($6) + ($47<<2)|0);
  25307. $49 = HEAP8[$48>>0]|0;
  25308. $50 = ($49<<24>>24)==($13<<24>>24);
  25309. if (!($50)) {
  25310. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25311. break L1;
  25312. }
  25313. $51 = (((($6) + ($47<<2)|0)) + 1|0);
  25314. $52 = HEAP8[$51>>0]|0;
  25315. $53 = ($52<<24>>24)==($15<<24>>24);
  25316. if (!($53)) {
  25317. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25318. break L1;
  25319. }
  25320. $54 = (((($6) + ($47<<2)|0)) + 2|0);
  25321. $55 = HEAP8[$54>>0]|0;
  25322. $56 = ($55<<24>>24)==($17<<24>>24);
  25323. if (!($56)) {
  25324. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25325. break L1;
  25326. }
  25327. $57 = (((($6) + ($47<<2)|0)) + 3|0);
  25328. $58 = HEAP8[$57>>0]|0;
  25329. $59 = ($58<<24>>24)==($19<<24>>24);
  25330. if (!($59)) {
  25331. $$0195$lcssa = $$019552;$$2 = $$1$lcssa;
  25332. break L1;
  25333. }
  25334. $60 = (($$019552) + 1)|0;
  25335. $61 = HEAP32[$7>>2]|0;
  25336. $62 = ($60|0)<($61|0);
  25337. if ($62) {
  25338. $$019552 = $60;
  25339. } else {
  25340. $$0195$lcssa = $60;$$2 = $$1$lcssa;
  25341. break;
  25342. }
  25343. }
  25344. } else {
  25345. $$0195$lcssa = 0;$$2 = 0;
  25346. }
  25347. } while(0);
  25348. $63 = ((($1)) + 4|0);
  25349. $64 = HEAP32[$63>>2]|0;
  25350. $65 = HEAP8[$2>>0]|0;
  25351. $66 = ((($2)) + 1|0);
  25352. $67 = HEAP8[$66>>0]|0;
  25353. $68 = ((($2)) + 2|0);
  25354. $69 = HEAP8[$68>>0]|0;
  25355. $70 = ((($2)) + 3|0);
  25356. $71 = HEAP8[$70>>0]|0;
  25357. $$0203 = 0;
  25358. while(1) {
  25359. $72 = (($$0203) + ($$0195$lcssa))|0;
  25360. $73 = Math_imul($72, $64)|0;
  25361. $74 = (($73) + ($$2))|0;
  25362. $75 = (($6) + ($74<<2)|0);
  25363. $76 = HEAP8[$75>>0]|0;
  25364. $77 = ($76<<24>>24)==($65<<24>>24);
  25365. if ($77) {
  25366. $78 = (((($6) + ($74<<2)|0)) + 1|0);
  25367. $79 = HEAP8[$78>>0]|0;
  25368. $80 = ($79<<24>>24)==($67<<24>>24);
  25369. if ($80) {
  25370. $81 = (((($6) + ($74<<2)|0)) + 2|0);
  25371. $82 = HEAP8[$81>>0]|0;
  25372. $83 = ($82<<24>>24)==($69<<24>>24);
  25373. if ($83) {
  25374. $84 = (((($6) + ($74<<2)|0)) + 3|0);
  25375. $85 = HEAP8[$84>>0]|0;
  25376. $86 = ($85<<24>>24)==($71<<24>>24);
  25377. if ($86) {
  25378. break;
  25379. }
  25380. }
  25381. }
  25382. }
  25383. $96 = (($$0203) + 1)|0;
  25384. $$0203 = $96;
  25385. }
  25386. $87 = HEAP32[$7>>2]|0;
  25387. $88 = ($$0195$lcssa|0)<($87|0);
  25388. if ($88) {
  25389. $89 = HEAP32[$63>>2]|0;
  25390. $90 = ($$2|0)<($89|0);
  25391. $91 = HEAP32[$7>>2]|0;
  25392. $92 = HEAP8[$2>>0]|0;
  25393. $93 = HEAP8[$66>>0]|0;
  25394. $94 = HEAP8[$68>>0]|0;
  25395. $95 = HEAP8[$70>>0]|0;
  25396. $$020032 = 0;$$020131 = 0;$99 = $$0195$lcssa;
  25397. while(1) {
  25398. L30: do {
  25399. if ($90) {
  25400. $$119927 = $$2;$$120226 = $$020131;$98 = $89;
  25401. while(1) {
  25402. $97 = Math_imul($98, $99)|0;
  25403. $100 = (($97) + ($$119927))|0;
  25404. $101 = (($6) + ($100<<2)|0);
  25405. $102 = HEAP8[$101>>0]|0;
  25406. $103 = ($102<<24>>24)==($92<<24>>24);
  25407. if ($103) {
  25408. $104 = (((($6) + ($100<<2)|0)) + 1|0);
  25409. $105 = HEAP8[$104>>0]|0;
  25410. $106 = ($105<<24>>24)==($93<<24>>24);
  25411. if ($106) {
  25412. $107 = (((($6) + ($100<<2)|0)) + 2|0);
  25413. $108 = HEAP8[$107>>0]|0;
  25414. $109 = ($108<<24>>24)==($94<<24>>24);
  25415. if ($109) {
  25416. $110 = (((($6) + ($100<<2)|0)) + 3|0);
  25417. $111 = HEAP8[$110>>0]|0;
  25418. $112 = ($111<<24>>24)==($95<<24>>24);
  25419. if ($112) {
  25420. $$1202$lcssa = $$120226;
  25421. break L30;
  25422. }
  25423. }
  25424. }
  25425. }
  25426. $113 = (($$120226) + 32)|0;
  25427. $114 = (($3) + ($$120226<<2)|0);
  25428. HEAP32[$114>>2] = $113;
  25429. $115 = (($4) + ($$120226<<4)|0);
  25430. HEAP32[$115>>2] = $$119927;
  25431. $116 = (((($4) + ($$120226<<4)|0)) + 4|0);
  25432. HEAP32[$116>>2] = $99;
  25433. $117 = (((($4) + ($$120226<<4)|0)) + 12|0);
  25434. HEAP32[$117>>2] = $$0203;
  25435. $118 = HEAP32[$63>>2]|0;
  25436. $119 = Math_imul($118, $99)|0;
  25437. $$0197 = 0;
  25438. while(1) {
  25439. $120 = (($$0197) + ($$119927))|0;
  25440. $121 = (($120) + ($119))|0;
  25441. $122 = (($6) + ($121<<2)|0);
  25442. $123 = HEAP8[$122>>0]|0;
  25443. $124 = ($123<<24>>24)==($92<<24>>24);
  25444. if ($124) {
  25445. $125 = (((($6) + ($121<<2)|0)) + 1|0);
  25446. $126 = HEAP8[$125>>0]|0;
  25447. $127 = ($126<<24>>24)==($93<<24>>24);
  25448. if ($127) {
  25449. $128 = (((($6) + ($121<<2)|0)) + 2|0);
  25450. $129 = HEAP8[$128>>0]|0;
  25451. $130 = ($129<<24>>24)==($94<<24>>24);
  25452. if ($130) {
  25453. $131 = (((($6) + ($121<<2)|0)) + 3|0);
  25454. $132 = HEAP8[$131>>0]|0;
  25455. $133 = ($132<<24>>24)==($95<<24>>24);
  25456. if ($133) {
  25457. break;
  25458. }
  25459. }
  25460. }
  25461. }
  25462. $134 = (($$0197) + 1)|0;
  25463. $$0197 = $134;
  25464. }
  25465. $135 = (((($4) + ($$120226<<4)|0)) + 8|0);
  25466. HEAP32[$135>>2] = $$0197;
  25467. $136 = (($$120226) + 1)|0;
  25468. $137 = (($$119927) + ($$2))|0;
  25469. $138 = (($137) + ($$0197))|0;
  25470. $139 = HEAP32[$63>>2]|0;
  25471. $140 = ($138|0)<($139|0);
  25472. if ($140) {
  25473. $$119927 = $138;$$120226 = $136;$98 = $139;
  25474. } else {
  25475. $$1202$lcssa = $136;
  25476. break;
  25477. }
  25478. }
  25479. } else {
  25480. $$1202$lcssa = $$020131;
  25481. }
  25482. } while(0);
  25483. $141 = (($$020032) + 1)|0;
  25484. $142 = Math_imul($141, $72)|0;
  25485. $143 = (($142) + ($$0195$lcssa))|0;
  25486. $144 = ($143|0)<($91|0);
  25487. if ($144) {
  25488. $$020032 = $141;$$020131 = $$1202$lcssa;$99 = $143;
  25489. } else {
  25490. $$0201$lcssa = $$1202$lcssa;
  25491. break;
  25492. }
  25493. }
  25494. } else {
  25495. $$0201$lcssa = 0;
  25496. }
  25497. _TraceLog(3,11837,$vararg_buffer);
  25498. $145 = HEAP32[$7>>2]|0;
  25499. $146 = HEAP32[$63>>2]|0;
  25500. $147 = Math_imul($146, $145)|0;
  25501. $148 = ($147|0)>(0);
  25502. if ($148) {
  25503. $149 = HEAP8[$2>>0]|0;
  25504. $150 = HEAP8[$66>>0]|0;
  25505. $151 = HEAP8[$68>>0]|0;
  25506. $152 = HEAP8[$70>>0]|0;
  25507. $$019622 = 0;
  25508. while(1) {
  25509. $158 = (($6) + ($$019622<<2)|0);
  25510. $159 = HEAP8[$158>>0]|0;
  25511. $160 = ($159<<24>>24)==($149<<24>>24);
  25512. if ($160) {
  25513. $161 = (((($6) + ($$019622<<2)|0)) + 1|0);
  25514. $162 = HEAP8[$161>>0]|0;
  25515. $163 = ($162<<24>>24)==($150<<24>>24);
  25516. if ($163) {
  25517. $164 = (((($6) + ($$019622<<2)|0)) + 2|0);
  25518. $165 = HEAP8[$164>>0]|0;
  25519. $166 = ($165<<24>>24)==($151<<24>>24);
  25520. if ($166) {
  25521. $167 = (((($6) + ($$019622<<2)|0)) + 3|0);
  25522. $168 = HEAP8[$167>>0]|0;
  25523. $169 = ($168<<24>>24)==($152<<24>>24);
  25524. if ($169) {
  25525. 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;
  25526. }
  25527. }
  25528. }
  25529. }
  25530. $170 = (($$019622) + 1)|0;
  25531. $171 = HEAP32[$7>>2]|0;
  25532. $172 = HEAP32[$63>>2]|0;
  25533. $173 = Math_imul($172, $171)|0;
  25534. $174 = ($170|0)<($173|0);
  25535. if ($174) {
  25536. $$019622 = $170;
  25537. } else {
  25538. break;
  25539. }
  25540. }
  25541. }
  25542. $153 = HEAP32[$63>>2]|0;
  25543. $154 = HEAP32[$7>>2]|0;
  25544. _LoadImageEx($vararg_buffer,$6,$153,$154);
  25545. _free($6);
  25546. ;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;
  25547. ;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;
  25548. _LoadTextureFromImage($5,$$byval_copy4);
  25549. ;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;
  25550. ;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;
  25551. _UnloadImage($$byval_copy4);
  25552. $155 = $$0201$lcssa << 5;
  25553. $156 = (_malloc($155)|0);
  25554. $157 = ($$0201$lcssa|0)>(0);
  25555. if ($157) {
  25556. $$021 = 0;
  25557. } else {
  25558. $175 = ((($156)) + 16|0);
  25559. $176 = HEAP32[$175>>2]|0;
  25560. _TraceLog(0,11881,$vararg_buffer1);
  25561. ;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;
  25562. $$sroa$5$0$$sroa_idx15 = ((($0)) + 20|0);
  25563. HEAP32[$$sroa$5$0$$sroa_idx15>>2] = $176;
  25564. $$sroa$6$0$$sroa_idx17 = ((($0)) + 24|0);
  25565. HEAP32[$$sroa$6$0$$sroa_idx17>>2] = $$0201$lcssa;
  25566. $$sroa$9$0$$sroa_idx20 = ((($0)) + 28|0);
  25567. HEAP32[$$sroa$9$0$$sroa_idx20>>2] = $156;
  25568. STACKTOP = sp;return;
  25569. }
  25570. while(1) {
  25571. $177 = (($3) + ($$021<<2)|0);
  25572. $178 = HEAP32[$177>>2]|0;
  25573. $179 = (($156) + ($$021<<5)|0);
  25574. HEAP32[$179>>2] = $178;
  25575. $180 = (((($156) + ($$021<<5)|0)) + 4|0);
  25576. $181 = (($4) + ($$021<<4)|0);
  25577. ;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;
  25578. $182 = (((($156) + ($$021<<5)|0)) + 20|0);
  25579. HEAP32[$182>>2] = 0;
  25580. $183 = (((($156) + ($$021<<5)|0)) + 24|0);
  25581. HEAP32[$183>>2] = 0;
  25582. $184 = (((($156) + ($$021<<5)|0)) + 28|0);
  25583. HEAP32[$184>>2] = 0;
  25584. $185 = (($$021) + 1)|0;
  25585. $exitcond = ($185|0)==($$0201$lcssa|0);
  25586. if ($exitcond) {
  25587. break;
  25588. } else {
  25589. $$021 = $185;
  25590. }
  25591. }
  25592. $175 = ((($156)) + 16|0);
  25593. $176 = HEAP32[$175>>2]|0;
  25594. _TraceLog(0,11881,$vararg_buffer1);
  25595. ;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;
  25596. $$sroa$5$0$$sroa_idx15 = ((($0)) + 20|0);
  25597. HEAP32[$$sroa$5$0$$sroa_idx15>>2] = $176;
  25598. $$sroa$6$0$$sroa_idx17 = ((($0)) + 24|0);
  25599. HEAP32[$$sroa$6$0$$sroa_idx17>>2] = $$0201$lcssa;
  25600. $$sroa$9$0$$sroa_idx20 = ((($0)) + 28|0);
  25601. HEAP32[$$sroa$9$0$$sroa_idx20>>2] = $156;
  25602. STACKTOP = sp;return;
  25603. }
  25604. function _UnloadSpriteFont($0) {
  25605. $0 = $0|0;
  25606. var $$byval_copy = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  25607. sp = STACKTOP;
  25608. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  25609. $$byval_copy = sp + 40|0;
  25610. $vararg_buffer = sp;
  25611. $1 = sp + 8|0;
  25612. $2 = HEAP32[$0>>2]|0;
  25613. _GetDefaultFont($1);
  25614. $3 = HEAP32[$1>>2]|0;
  25615. $4 = ($2|0)==($3|0);
  25616. if ($4) {
  25617. STACKTOP = sp;return;
  25618. }
  25619. ;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;
  25620. _UnloadTexture($$byval_copy);
  25621. $5 = ((($0)) + 28|0);
  25622. $6 = HEAP32[$5>>2]|0;
  25623. _free($6);
  25624. _TraceLog(3,12299,$vararg_buffer);
  25625. STACKTOP = sp;return;
  25626. }
  25627. function _LoadTTF($0,$1,$2,$3,$4) {
  25628. $0 = $0|0;
  25629. $1 = $1|0;
  25630. $2 = $2|0;
  25631. $3 = $3|0;
  25632. $4 = $4|0;
  25633. 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;
  25634. 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;
  25635. 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;
  25636. 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;
  25637. 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;
  25638. sp = STACKTOP;
  25639. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  25640. $$byval_copy9 = sp + 48|0;
  25641. $vararg_buffer7 = sp + 40|0;
  25642. $vararg_buffer5 = sp + 32|0;
  25643. $vararg_buffer2 = sp + 24|0;
  25644. $$sroa$0 = sp;
  25645. $5 = sp + 68|0;
  25646. $6 = sp + 88|0;
  25647. $7 = (+($2|0));
  25648. $8 = $7 * 3.0;
  25649. $9 = $8 * 0.25;
  25650. $10 = (+Math_ceil((+$9)));
  25651. $11 = (+($3|0));
  25652. $12 = (+Math_sqrt((+$11)));
  25653. $13 = (+Math_ceil((+$12)));
  25654. $14 = $10 * $13;
  25655. $15 = (+Math_log((+$14)));
  25656. $16 = $15 / 0.69314718246459961;
  25657. $17 = (+Math_ceil((+$16)));
  25658. $exp2 = (+_llvm_exp2_f32((+$17)));
  25659. $18 = (~~(($exp2)));
  25660. HEAP32[$$byval_copy9>>2] = $18;
  25661. $vararg_ptr1 = ((($$byval_copy9)) + 4|0);
  25662. HEAP32[$vararg_ptr1>>2] = $18;
  25663. _TraceLog(0,12384,$$byval_copy9);
  25664. $19 = (_malloc(16777216)|0);
  25665. $20 = Math_imul($18, $18)|0;
  25666. $21 = (_malloc($20)|0);
  25667. $22 = ($3*20)|0;
  25668. $23 = (_malloc($22)|0);
  25669. ;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;
  25670. $24 = (_fopen($1,12438)|0);
  25671. $25 = ($24|0)==(0|0);
  25672. if ($25) {
  25673. HEAP32[$vararg_buffer2>>2] = $1;
  25674. _TraceLog(2,12441,$vararg_buffer2);
  25675. ;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;
  25676. $$sroa$6$0$$sroa_idx49 = ((($0)) + 20|0);
  25677. HEAP32[$$sroa$6$0$$sroa_idx49>>2] = 0;
  25678. $$sroa$7$0$$sroa_idx53 = ((($0)) + 24|0);
  25679. HEAP32[$$sroa$7$0$$sroa_idx53>>2] = 0;
  25680. $$sroa$10$0$$sroa_idx58 = ((($0)) + 28|0);
  25681. HEAP32[$$sroa$10$0$$sroa_idx58>>2] = 0;
  25682. STACKTOP = sp;return;
  25683. }
  25684. (_fread($19,1,16777216,$24)|0);
  25685. $26 = HEAP32[$4>>2]|0;
  25686. $27 = ($26|0)==(32);
  25687. if (!($27)) {
  25688. _TraceLog(2,12475,$vararg_buffer5);
  25689. }
  25690. $28 = HEAP32[$4>>2]|0;
  25691. $29 = (_stbtt_BakeFontBitmap($19,$7,$21,$18,$18,$28,$3,$23)|0);
  25692. $30 = ($29|0)<(0);
  25693. if ($30) {
  25694. _TraceLog(2,12542,$vararg_buffer7);
  25695. }
  25696. _free($19);
  25697. $31 = $20 << 1;
  25698. $32 = (_malloc($31)|0);
  25699. $33 = ($20|0)==(0);
  25700. if (!($33)) {
  25701. $$0124130 = 0;$$0125129 = 0;
  25702. while(1) {
  25703. $41 = (($32) + ($$0124130)|0);
  25704. HEAP8[$41>>0] = -1;
  25705. $42 = (($21) + ($$0125129)|0);
  25706. $43 = HEAP8[$42>>0]|0;
  25707. $44 = $$0124130 | 1;
  25708. $45 = (($32) + ($44)|0);
  25709. HEAP8[$45>>0] = $43;
  25710. $46 = (($$0125129) + 1)|0;
  25711. $47 = (($$0124130) + 2)|0;
  25712. $48 = ($46|0)<($20|0);
  25713. if ($48) {
  25714. $$0124130 = $47;$$0125129 = $46;
  25715. } else {
  25716. break;
  25717. }
  25718. }
  25719. }
  25720. _free($21);
  25721. $34 = ((($5)) + 4|0);
  25722. HEAP32[$34>>2] = $18;
  25723. $35 = ((($5)) + 8|0);
  25724. HEAP32[$35>>2] = $18;
  25725. $36 = ((($5)) + 12|0);
  25726. HEAP32[$36>>2] = 1;
  25727. $37 = ((($5)) + 16|0);
  25728. HEAP32[$37>>2] = 2;
  25729. HEAP32[$5>>2] = $32;
  25730. ;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;
  25731. _LoadTextureFromImage($6,$$byval_copy9);
  25732. ;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;
  25733. ;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;
  25734. _UnloadImage($$byval_copy9);
  25735. $38 = $3 << 5;
  25736. $39 = (_malloc($38)|0);
  25737. $40 = ($3|0)>(0);
  25738. if ($40) {
  25739. $$0128 = 0;
  25740. while(1) {
  25741. $49 = (($4) + ($$0128<<2)|0);
  25742. $50 = HEAP32[$49>>2]|0;
  25743. $51 = (($39) + ($$0128<<5)|0);
  25744. HEAP32[$51>>2] = $50;
  25745. $52 = (($23) + (($$0128*20)|0)|0);
  25746. $53 = HEAP16[$52>>1]|0;
  25747. $54 = $53&65535;
  25748. $55 = (((($39) + ($$0128<<5)|0)) + 4|0);
  25749. HEAP32[$55>>2] = $54;
  25750. $56 = (((($23) + (($$0128*20)|0)|0)) + 2|0);
  25751. $57 = HEAP16[$56>>1]|0;
  25752. $58 = $57&65535;
  25753. $59 = (((($39) + ($$0128<<5)|0)) + 8|0);
  25754. HEAP32[$59>>2] = $58;
  25755. $60 = (((($23) + (($$0128*20)|0)|0)) + 4|0);
  25756. $61 = HEAP16[$60>>1]|0;
  25757. $62 = $61&65535;
  25758. $63 = (($62) - ($54))|0;
  25759. $64 = (((($39) + ($$0128<<5)|0)) + 12|0);
  25760. HEAP32[$64>>2] = $63;
  25761. $65 = (((($23) + (($$0128*20)|0)|0)) + 6|0);
  25762. $66 = HEAP16[$65>>1]|0;
  25763. $67 = $66&65535;
  25764. $68 = (($67) - ($58))|0;
  25765. $69 = (((($39) + ($$0128<<5)|0)) + 16|0);
  25766. HEAP32[$69>>2] = $68;
  25767. $70 = (((($23) + (($$0128*20)|0)|0)) + 8|0);
  25768. $71 = +HEAPF32[$70>>2];
  25769. $72 = (~~(($71)));
  25770. $73 = (((($39) + ($$0128<<5)|0)) + 20|0);
  25771. HEAP32[$73>>2] = $72;
  25772. $74 = (((($23) + (($$0128*20)|0)|0)) + 12|0);
  25773. $75 = +HEAPF32[$74>>2];
  25774. $76 = (~~(($75)));
  25775. $77 = (((($39) + ($$0128<<5)|0)) + 24|0);
  25776. HEAP32[$77>>2] = $76;
  25777. $78 = (((($23) + (($$0128*20)|0)|0)) + 16|0);
  25778. $79 = +HEAPF32[$78>>2];
  25779. $80 = (~~(($79)));
  25780. $81 = (((($39) + ($$0128<<5)|0)) + 28|0);
  25781. HEAP32[$81>>2] = $80;
  25782. $82 = (($$0128) + 1)|0;
  25783. $exitcond = ($82|0)==($3|0);
  25784. if ($exitcond) {
  25785. break;
  25786. } else {
  25787. $$0128 = $82;
  25788. }
  25789. }
  25790. }
  25791. _free($23);
  25792. ;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;
  25793. $$sroa$6$0$$sroa_idx50 = ((($0)) + 20|0);
  25794. HEAP32[$$sroa$6$0$$sroa_idx50>>2] = $2;
  25795. $$sroa$7$0$$sroa_idx54 = ((($0)) + 24|0);
  25796. HEAP32[$$sroa$7$0$$sroa_idx54>>2] = $3;
  25797. $$sroa$10$0$$sroa_idx59 = ((($0)) + 28|0);
  25798. HEAP32[$$sroa$10$0$$sroa_idx59>>2] = $39;
  25799. STACKTOP = sp;return;
  25800. }
  25801. function _stbtt_BakeFontBitmap($0,$1,$2,$3,$4,$5,$6,$7) {
  25802. $0 = $0|0;
  25803. $1 = +$1;
  25804. $2 = $2|0;
  25805. $3 = $3|0;
  25806. $4 = $4|0;
  25807. $5 = $5|0;
  25808. $6 = $6|0;
  25809. $7 = $7|0;
  25810. var $8 = 0, label = 0, sp = 0;
  25811. sp = STACKTOP;
  25812. $8 = (_stbtt_BakeFontBitmap_internal($0,$1,$2,$3,$4,$5,$6,$7)|0);
  25813. return ($8|0);
  25814. }
  25815. function _stbtt_BakeFontBitmap_internal($0,$1,$2,$3,$4,$5,$6,$7) {
  25816. $0 = $0|0;
  25817. $1 = +$1;
  25818. $2 = $2|0;
  25819. $3 = $3|0;
  25820. $4 = $4|0;
  25821. $5 = $5|0;
  25822. $6 = $6|0;
  25823. $7 = $7|0;
  25824. 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;
  25825. 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;
  25826. 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;
  25827. var $57 = 0, $58 = 0.0, $59 = 0, $60 = 0, $61 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  25828. sp = STACKTOP;
  25829. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  25830. $8 = sp + 24|0;
  25831. $9 = sp + 20|0;
  25832. $10 = sp + 16|0;
  25833. $11 = sp + 12|0;
  25834. $12 = sp + 8|0;
  25835. $13 = sp + 4|0;
  25836. $14 = sp;
  25837. HEAP32[$8>>2] = 0;
  25838. $15 = (_stbtt_InitFont($8,$0)|0);
  25839. $16 = ($15|0)==(0);
  25840. if ($16) {
  25841. $$2 = -1;
  25842. STACKTOP = sp;return ($$2|0);
  25843. }
  25844. $17 = Math_imul($4, $3)|0;
  25845. _memset(($2|0),0,($17|0))|0;
  25846. $18 = (+_stbtt_ScaleForPixelHeight($8,$1));
  25847. $19 = ($6|0)>(0);
  25848. if (!($19)) {
  25849. $$2 = 1;
  25850. STACKTOP = sp;return ($$2|0);
  25851. }
  25852. $$05 = 0;$$0844 = 1;$$0873 = 1;$$0902 = 0;$$0911 = 1;
  25853. while(1) {
  25854. $22 = (($$0902) + ($5))|0;
  25855. $23 = (_stbtt_FindGlyphIndex($8,$22)|0);
  25856. _stbtt_GetGlyphHMetrics($8,$23,$9,$10);
  25857. _stbtt_GetGlyphBitmapBox($8,$23,$18,$18,$11,$12,$13,$14);
  25858. $24 = HEAP32[$13>>2]|0;
  25859. $25 = HEAP32[$11>>2]|0;
  25860. $26 = (($24) - ($25))|0;
  25861. $27 = HEAP32[$14>>2]|0;
  25862. $28 = HEAP32[$12>>2]|0;
  25863. $29 = (($27) - ($28))|0;
  25864. $30 = (($$0844) + 1)|0;
  25865. $31 = (($30) + ($26))|0;
  25866. $32 = ($31|0)<($3|0);
  25867. $$087$$091 = $32 ? $$0873 : $$0911;
  25868. $$084$ = $32 ? $$0844 : 1;
  25869. $33 = (($$087$$091) + ($29))|0;
  25870. $34 = (($33) + 1)|0;
  25871. $35 = ($34|0)<($4|0);
  25872. if ($35) {
  25873. $37 = (($$084$) + ($26))|0;
  25874. $38 = ($37|0)<($3|0);
  25875. if (!($38)) {
  25876. label = 8;
  25877. break;
  25878. }
  25879. $39 = (($2) + ($$084$)|0);
  25880. $40 = Math_imul($$087$$091, $3)|0;
  25881. $41 = (($39) + ($40)|0);
  25882. _stbtt_MakeGlyphBitmap($8,$41,$26,$29,$3,$18,$18,$23);
  25883. $42 = $$084$&65535;
  25884. $43 = (($7) + (($$0902*20)|0)|0);
  25885. HEAP16[$43>>1] = $42;
  25886. $44 = $$087$$091&65535;
  25887. $45 = (((($7) + (($$0902*20)|0)|0)) + 2|0);
  25888. HEAP16[$45>>1] = $44;
  25889. $46 = $37&65535;
  25890. $47 = (((($7) + (($$0902*20)|0)|0)) + 4|0);
  25891. HEAP16[$47>>1] = $46;
  25892. $48 = $33&65535;
  25893. $49 = (((($7) + (($$0902*20)|0)|0)) + 6|0);
  25894. HEAP16[$49>>1] = $48;
  25895. $50 = HEAP32[$9>>2]|0;
  25896. $51 = (+($50|0));
  25897. $52 = $18 * $51;
  25898. $53 = (((($7) + (($$0902*20)|0)|0)) + 16|0);
  25899. HEAPF32[$53>>2] = $52;
  25900. $54 = HEAP32[$11>>2]|0;
  25901. $55 = (+($54|0));
  25902. $56 = (((($7) + (($$0902*20)|0)|0)) + 8|0);
  25903. HEAPF32[$56>>2] = $55;
  25904. $57 = HEAP32[$12>>2]|0;
  25905. $58 = (+($57|0));
  25906. $59 = (((($7) + (($$0902*20)|0)|0)) + 12|0);
  25907. HEAPF32[$59>>2] = $58;
  25908. $60 = (($37) + 1)|0;
  25909. $61 = ($33|0)<($$0911|0);
  25910. $$091$ = $61 ? $$0911 : $34;
  25911. $$089 = 1;$$1 = $$05;$$286 = $60;$$293 = $$091$;
  25912. } else {
  25913. $36 = (0 - ($$0902))|0;
  25914. $$089 = 0;$$1 = $36;$$286 = $$084$;$$293 = $$0911;
  25915. }
  25916. $21 = (($$0902) + 1)|0;
  25917. if (!($$089)) {
  25918. $$2 = $$1;
  25919. label = 11;
  25920. break;
  25921. }
  25922. $20 = ($21|0)<($6|0);
  25923. if ($20) {
  25924. $$05 = $$1;$$0844 = $$286;$$0873 = $$087$$091;$$0902 = $21;$$0911 = $$293;
  25925. } else {
  25926. $$2 = $$293;
  25927. label = 11;
  25928. break;
  25929. }
  25930. }
  25931. if ((label|0) == 8) {
  25932. ___assert_fail((12605|0),(12615|0),3274,(12641|0));
  25933. // unreachable;
  25934. }
  25935. else if ((label|0) == 11) {
  25936. STACKTOP = sp;return ($$2|0);
  25937. }
  25938. return (0)|0;
  25939. }
  25940. function _stbtt_InitFont($0,$1) {
  25941. $0 = $0|0;
  25942. $1 = $1|0;
  25943. var $2 = 0, label = 0, sp = 0;
  25944. sp = STACKTOP;
  25945. $2 = (_stbtt_InitFont_internal($0,$1)|0);
  25946. return ($2|0);
  25947. }
  25948. function _stbtt_ScaleForPixelHeight($0,$1) {
  25949. $0 = $0|0;
  25950. $1 = +$1;
  25951. 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;
  25952. sp = STACKTOP;
  25953. $2 = ((($0)) + 4|0);
  25954. $3 = HEAP32[$2>>2]|0;
  25955. $4 = ((($0)) + 28|0);
  25956. $5 = HEAP32[$4>>2]|0;
  25957. $6 = (($3) + ($5)|0);
  25958. $7 = ((($6)) + 4|0);
  25959. $8 = (_ttSHORT($7)|0);
  25960. $9 = $8 << 16 >> 16;
  25961. $10 = ((($6)) + 6|0);
  25962. $11 = (_ttSHORT($10)|0);
  25963. $12 = $11 << 16 >> 16;
  25964. $13 = (($9) - ($12))|0;
  25965. $14 = (+($13|0));
  25966. $15 = $1 / $14;
  25967. return (+$15);
  25968. }
  25969. function _stbtt_FindGlyphIndex($0,$1) {
  25970. $0 = $0|0;
  25971. $1 = $1|0;
  25972. 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;
  25973. 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;
  25974. 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;
  25975. 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;
  25976. 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;
  25977. 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;
  25978. 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;
  25979. var $switch = 0, label = 0, sp = 0;
  25980. sp = STACKTOP;
  25981. $2 = ((($0)) + 4|0);
  25982. $3 = HEAP32[$2>>2]|0;
  25983. $4 = ((($0)) + 40|0);
  25984. $5 = HEAP32[$4>>2]|0;
  25985. $6 = (($3) + ($5)|0);
  25986. $7 = (_ttUSHORT($6)|0);
  25987. switch ($7<<16>>16) {
  25988. case 0: {
  25989. $8 = ((($6)) + 2|0);
  25990. $9 = (_ttUSHORT($8)|0);
  25991. $10 = $9&65535;
  25992. $11 = (($10) + -6)|0;
  25993. $12 = ($11|0)>($1|0);
  25994. if (!($12)) {
  25995. $$8 = 0;
  25996. return ($$8|0);
  25997. }
  25998. $13 = ((($6)) + 6|0);
  25999. $14 = (($13) + ($1)|0);
  26000. $15 = HEAP8[$14>>0]|0;
  26001. $16 = $15&255;
  26002. $$8 = $16;
  26003. return ($$8|0);
  26004. break;
  26005. }
  26006. case 6: {
  26007. $17 = ((($6)) + 6|0);
  26008. $18 = (_ttUSHORT($17)|0);
  26009. $19 = $18&65535;
  26010. $20 = ($19>>>0)>($1>>>0);
  26011. if ($20) {
  26012. $$8 = 0;
  26013. return ($$8|0);
  26014. }
  26015. $21 = ((($6)) + 8|0);
  26016. $22 = (_ttUSHORT($21)|0);
  26017. $23 = $22&65535;
  26018. $24 = (($23) + ($19))|0;
  26019. $25 = ($24>>>0)>($1>>>0);
  26020. if (!($25)) {
  26021. $$8 = 0;
  26022. return ($$8|0);
  26023. }
  26024. $26 = ((($6)) + 10|0);
  26025. $27 = (($1) - ($19))|0;
  26026. $28 = $27 << 1;
  26027. $29 = (($26) + ($28)|0);
  26028. $30 = (_ttUSHORT($29)|0);
  26029. $31 = $30&65535;
  26030. $$8 = $31;
  26031. return ($$8|0);
  26032. break;
  26033. }
  26034. case 2: {
  26035. ___assert_fail((13075|0),(12615|0),1347,(13417|0));
  26036. // unreachable;
  26037. break;
  26038. }
  26039. case 4: {
  26040. $32 = ((($6)) + 6|0);
  26041. $33 = (_ttUSHORT($32)|0);
  26042. $34 = ($33&65535) >>> 1;
  26043. $35 = ($1|0)>(65535);
  26044. if ($35) {
  26045. $$8 = 0;
  26046. return ($$8|0);
  26047. }
  26048. $36 = (($5) + 14)|0;
  26049. $37 = ((($6)) + 12|0);
  26050. $38 = (_ttUSHORT($37)|0);
  26051. $39 = ((($6)) + 10|0);
  26052. $40 = (_ttUSHORT($39)|0);
  26053. $41 = $38 & -2;
  26054. $42 = (($3) + ($36)|0);
  26055. $43 = $41&65535;
  26056. $44 = (($42) + ($43)|0);
  26057. $45 = (_ttUSHORT($44)|0);
  26058. $46 = $45&65535;
  26059. $47 = ($46|0)>($1|0);
  26060. $48 = $47 ? 0 : $43;
  26061. $$ = (($5) + 12)|0;
  26062. $49 = (($$) + ($48))|0;
  26063. $50 = ($40<<16>>16)==(0);
  26064. if ($50) {
  26065. $$1172$lcssa = $49;
  26066. } else {
  26067. $51 = ((($6)) + 8|0);
  26068. $52 = (_ttUSHORT($51)|0);
  26069. $53 = ($52&65535) >>> 1;
  26070. $$0163180 = $53;$$0164179 = $40;$$1172178 = $49;
  26071. while(1) {
  26072. $54 = ($$0163180&65535) >>> 1;
  26073. $55 = (($3) + ($$1172178)|0);
  26074. $56 = ($54 << 1)&65535;
  26075. $57 = $56&65535;
  26076. $58 = (($55) + ($57)|0);
  26077. $59 = (_ttUSHORT($58)|0);
  26078. $60 = $59&65535;
  26079. $61 = ($60|0)<($1|0);
  26080. $62 = $61 ? $57 : 0;
  26081. $$$1172 = (($62) + ($$1172178))|0;
  26082. $63 = (($$0164179) + -1)<<16>>16;
  26083. $64 = ($63<<16>>16)==(0);
  26084. if ($64) {
  26085. $$1172$lcssa = $$$1172;
  26086. break;
  26087. } else {
  26088. $$0163180 = $54;$$0164179 = $63;$$1172178 = $$$1172;
  26089. }
  26090. }
  26091. }
  26092. $$neg = (-14 - ($5))|0;
  26093. $65 = (($$neg) + 2)|0;
  26094. $66 = (($65) + ($$1172$lcssa))|0;
  26095. $67 = $66 & 131070;
  26096. $68 = (($42) + ($67)|0);
  26097. $69 = (_ttUSHORT($68)|0);
  26098. $70 = $69&65535;
  26099. $71 = ($70|0)<($1|0);
  26100. if ($71) {
  26101. ___assert_fail((13438|0),(12615|0),1383,(13417|0));
  26102. // unreachable;
  26103. }
  26104. $72 = ((($6)) + 14|0);
  26105. $73 = $34&65535;
  26106. $74 = ($34 << 1)&65535;
  26107. $75 = $74&65535;
  26108. $76 = (($72) + ($75)|0);
  26109. $77 = ((($76)) + 2|0);
  26110. $78 = (($77) + ($67)|0);
  26111. $79 = (_ttUSHORT($78)|0);
  26112. $80 = $79&65535;
  26113. $81 = ($80|0)>($1|0);
  26114. do {
  26115. if ($81) {
  26116. $$2$shrunk = 0;
  26117. } else {
  26118. $82 = ($73*6)|0;
  26119. $83 = (($72) + ($82)|0);
  26120. $84 = ((($83)) + 2|0);
  26121. $85 = (($84) + ($67)|0);
  26122. $86 = (_ttUSHORT($85)|0);
  26123. $87 = ($86<<16>>16)==(0);
  26124. if ($87) {
  26125. $88 = $73 << 2;
  26126. $89 = (($72) + ($88)|0);
  26127. $90 = ((($89)) + 2|0);
  26128. $91 = (($90) + ($67)|0);
  26129. $92 = (_ttSHORT($91)|0);
  26130. $93 = $92&65535;
  26131. $94 = (($93) + ($1))|0;
  26132. $95 = $94&65535;
  26133. $$2$shrunk = $95;
  26134. break;
  26135. } else {
  26136. $96 = $86&65535;
  26137. $97 = (($3) + ($96)|0);
  26138. $98 = (($1) - ($80))|0;
  26139. $99 = $98 << 1;
  26140. $100 = (($97) + ($99)|0);
  26141. $101 = (($100) + ($5)|0);
  26142. $102 = ((($101)) + 14|0);
  26143. $103 = (($102) + ($82)|0);
  26144. $104 = ((($103)) + 2|0);
  26145. $105 = (($104) + ($67)|0);
  26146. $106 = (_ttUSHORT($105)|0);
  26147. $$2$shrunk = $106;
  26148. break;
  26149. }
  26150. }
  26151. } while(0);
  26152. $$2 = $$2$shrunk&65535;
  26153. $$8 = $$2;
  26154. return ($$8|0);
  26155. break;
  26156. }
  26157. default: {
  26158. $107 = ($7<<16>>16)==(12);
  26159. $108 = $7 & -2;
  26160. $switch = ($108<<16>>16)==(12);
  26161. if (!($switch)) {
  26162. ___assert_fail((13075|0),(12615|0),1418,(13417|0));
  26163. // unreachable;
  26164. }
  26165. $109 = ((($6)) + 12|0);
  26166. $110 = (_ttULONG($109)|0);
  26167. $111 = ((($6)) + 16|0);
  26168. $$0165$ph = $110;$$0168$ph = 0;
  26169. L6: while(1) {
  26170. $$0165 = $$0165$ph;
  26171. while(1) {
  26172. $112 = ($$0165|0)>($$0168$ph|0);
  26173. if (!($112)) {
  26174. $$8 = 0;
  26175. label = 27;
  26176. break L6;
  26177. }
  26178. $113 = (($$0165) - ($$0168$ph))|0;
  26179. $114 = $113 >> 1;
  26180. $115 = (($114) + ($$0168$ph))|0;
  26181. $116 = ($115*12)|0;
  26182. $117 = (($111) + ($116)|0);
  26183. $118 = (_ttULONG($117)|0);
  26184. $119 = ($118>>>0)>($1>>>0);
  26185. if ($119) {
  26186. $$0165 = $115;
  26187. } else {
  26188. break;
  26189. }
  26190. }
  26191. $120 = ((($117)) + 4|0);
  26192. $121 = (_ttULONG($120)|0);
  26193. $122 = ($121>>>0)<($1>>>0);
  26194. $123 = (($115) + 1)|0;
  26195. if ($122) {
  26196. $$0165$ph = $$0165;$$0168$ph = $123;
  26197. } else {
  26198. break;
  26199. }
  26200. }
  26201. if ((label|0) == 27) {
  26202. return ($$8|0);
  26203. }
  26204. $124 = ((($117)) + 8|0);
  26205. $125 = (_ttULONG($124)|0);
  26206. $126 = (($1) - ($118))|0;
  26207. $127 = $107 ? $126 : 0;
  26208. $$5 = (($125) + ($127))|0;
  26209. $$8 = $$5;
  26210. return ($$8|0);
  26211. }
  26212. }
  26213. return (0)|0;
  26214. }
  26215. function _stbtt_GetGlyphHMetrics($0,$1,$2,$3) {
  26216. $0 = $0|0;
  26217. $1 = $1|0;
  26218. $2 = $2|0;
  26219. $3 = $3|0;
  26220. 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;
  26221. 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;
  26222. var $49 = 0, $5 = 0, $50 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  26223. sp = STACKTOP;
  26224. $4 = ((($0)) + 4|0);
  26225. $5 = HEAP32[$4>>2]|0;
  26226. $6 = ((($0)) + 28|0);
  26227. $7 = HEAP32[$6>>2]|0;
  26228. $8 = (($5) + ($7)|0);
  26229. $9 = ((($8)) + 34|0);
  26230. $10 = (_ttUSHORT($9)|0);
  26231. $11 = $10&65535;
  26232. $12 = ($11|0)>($1|0);
  26233. $13 = ($2|0)!=(0|0);
  26234. if ($12) {
  26235. if ($13) {
  26236. $14 = ((($0)) + 32|0);
  26237. $15 = HEAP32[$14>>2]|0;
  26238. $16 = (($5) + ($15)|0);
  26239. $17 = $1 << 2;
  26240. $18 = (($16) + ($17)|0);
  26241. $19 = (_ttSHORT($18)|0);
  26242. $20 = $19 << 16 >> 16;
  26243. HEAP32[$2>>2] = $20;
  26244. }
  26245. $21 = ($3|0)==(0|0);
  26246. if ($21) {
  26247. return;
  26248. }
  26249. $22 = HEAP32[$4>>2]|0;
  26250. $23 = ((($0)) + 32|0);
  26251. $24 = HEAP32[$23>>2]|0;
  26252. $25 = (($22) + ($24)|0);
  26253. $26 = $1 << 2;
  26254. $27 = (($25) + ($26)|0);
  26255. $28 = ((($27)) + 2|0);
  26256. $29 = (_ttSHORT($28)|0);
  26257. $30 = $29 << 16 >> 16;
  26258. HEAP32[$3>>2] = $30;
  26259. return;
  26260. } else {
  26261. if ($13) {
  26262. $31 = ((($0)) + 32|0);
  26263. $32 = HEAP32[$31>>2]|0;
  26264. $33 = (($5) + ($32)|0);
  26265. $34 = $11 << 2;
  26266. $35 = (($34) + -4)|0;
  26267. $36 = (($33) + ($35)|0);
  26268. $37 = (_ttSHORT($36)|0);
  26269. $38 = $37 << 16 >> 16;
  26270. HEAP32[$2>>2] = $38;
  26271. }
  26272. $39 = ($3|0)==(0|0);
  26273. if ($39) {
  26274. return;
  26275. }
  26276. $40 = HEAP32[$4>>2]|0;
  26277. $41 = ((($0)) + 32|0);
  26278. $42 = HEAP32[$41>>2]|0;
  26279. $43 = (($40) + ($42)|0);
  26280. $44 = $11 << 2;
  26281. $45 = (($43) + ($44)|0);
  26282. $46 = (($1) - ($11))|0;
  26283. $47 = $46 << 1;
  26284. $48 = (($45) + ($47)|0);
  26285. $49 = (_ttSHORT($48)|0);
  26286. $50 = $49 << 16 >> 16;
  26287. HEAP32[$3>>2] = $50;
  26288. return;
  26289. }
  26290. }
  26291. function _stbtt_GetGlyphBitmapBox($0,$1,$2,$3,$4,$5,$6,$7) {
  26292. $0 = $0|0;
  26293. $1 = $1|0;
  26294. $2 = +$2;
  26295. $3 = +$3;
  26296. $4 = $4|0;
  26297. $5 = $5|0;
  26298. $6 = $6|0;
  26299. $7 = $7|0;
  26300. var label = 0, sp = 0;
  26301. sp = STACKTOP;
  26302. _stbtt_GetGlyphBitmapBoxSubpixel($0,$1,$2,$3,$4,$5,$6,$7);
  26303. return;
  26304. }
  26305. function _stbtt_MakeGlyphBitmap($0,$1,$2,$3,$4,$5,$6,$7) {
  26306. $0 = $0|0;
  26307. $1 = $1|0;
  26308. $2 = $2|0;
  26309. $3 = $3|0;
  26310. $4 = $4|0;
  26311. $5 = +$5;
  26312. $6 = +$6;
  26313. $7 = $7|0;
  26314. var label = 0, sp = 0;
  26315. sp = STACKTOP;
  26316. _stbtt_MakeGlyphBitmapSubpixel($0,$1,$2,$3,$4,$5,$6,$7);
  26317. return;
  26318. }
  26319. function _stbtt_MakeGlyphBitmapSubpixel($0,$1,$2,$3,$4,$5,$6,$7) {
  26320. $0 = $0|0;
  26321. $1 = $1|0;
  26322. $2 = $2|0;
  26323. $3 = $3|0;
  26324. $4 = $4|0;
  26325. $5 = +$5;
  26326. $6 = +$6;
  26327. $7 = $7|0;
  26328. 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;
  26329. sp = STACKTOP;
  26330. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  26331. $8 = sp + 24|0;
  26332. $9 = sp + 20|0;
  26333. $10 = sp + 16|0;
  26334. $11 = sp;
  26335. $12 = (_stbtt_GetGlyphShape($0,$7,$10)|0);
  26336. _stbtt_GetGlyphBitmapBoxSubpixel($0,$7,$5,$6,$8,$9,0,0);
  26337. $13 = ((($11)) + 12|0);
  26338. HEAP32[$13>>2] = $1;
  26339. HEAP32[$11>>2] = $2;
  26340. $14 = ((($11)) + 4|0);
  26341. HEAP32[$14>>2] = $3;
  26342. $15 = ((($11)) + 8|0);
  26343. HEAP32[$15>>2] = $4;
  26344. $16 = ($2|0)==(0);
  26345. $17 = ($3|0)==(0);
  26346. $or$cond = $16 | $17;
  26347. if ($or$cond) {
  26348. $21 = HEAP32[$10>>2]|0;
  26349. _free($21);
  26350. STACKTOP = sp;return;
  26351. }
  26352. $18 = HEAP32[$10>>2]|0;
  26353. $19 = HEAP32[$8>>2]|0;
  26354. $20 = HEAP32[$9>>2]|0;
  26355. _stbtt_Rasterize($11,$18,$12,$5,$6,$19,$20);
  26356. $21 = HEAP32[$10>>2]|0;
  26357. _free($21);
  26358. STACKTOP = sp;return;
  26359. }
  26360. function _stbtt_GetGlyphShape($0,$1,$2) {
  26361. $0 = $0|0;
  26362. $1 = $1|0;
  26363. $2 = $2|0;
  26364. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  26365. sp = STACKTOP;
  26366. $3 = ((($0)) + 56|0);
  26367. $4 = HEAP32[$3>>2]|0;
  26368. $5 = ($4|0)==(0);
  26369. if ($5) {
  26370. $6 = (_stbtt__GetGlyphShapeTT($0,$1,$2)|0);
  26371. $$0 = $6;
  26372. return ($$0|0);
  26373. } else {
  26374. $7 = (_stbtt__GetGlyphShapeT2($0,$1,$2)|0);
  26375. $$0 = $7;
  26376. return ($$0|0);
  26377. }
  26378. return (0)|0;
  26379. }
  26380. function _stbtt_GetGlyphBitmapBoxSubpixel($0,$1,$2,$3,$4,$5,$6,$7) {
  26381. $0 = $0|0;
  26382. $1 = $1|0;
  26383. $2 = +$2;
  26384. $3 = +$3;
  26385. $4 = $4|0;
  26386. $5 = $5|0;
  26387. $6 = $6|0;
  26388. $7 = $7|0;
  26389. 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;
  26390. 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;
  26391. var sp = 0;
  26392. sp = STACKTOP;
  26393. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26394. $8 = sp + 12|0;
  26395. $9 = sp + 8|0;
  26396. $10 = sp + 4|0;
  26397. $11 = sp;
  26398. HEAP32[$8>>2] = 0;
  26399. HEAP32[$9>>2] = 0;
  26400. $12 = (_stbtt_GetGlyphBox($0,$1,$8,$9,$10,$11)|0);
  26401. $13 = ($12|0)==(0);
  26402. $14 = ($4|0)!=(0|0);
  26403. if ($13) {
  26404. if ($14) {
  26405. HEAP32[$4>>2] = 0;
  26406. }
  26407. $15 = ($5|0)==(0|0);
  26408. if (!($15)) {
  26409. HEAP32[$5>>2] = 0;
  26410. }
  26411. $16 = ($6|0)==(0|0);
  26412. if (!($16)) {
  26413. HEAP32[$6>>2] = 0;
  26414. }
  26415. $17 = ($7|0)==(0|0);
  26416. if ($17) {
  26417. STACKTOP = sp;return;
  26418. }
  26419. HEAP32[$7>>2] = 0;
  26420. STACKTOP = sp;return;
  26421. } else {
  26422. if ($14) {
  26423. $18 = HEAP32[$8>>2]|0;
  26424. $19 = (+($18|0));
  26425. $20 = $19 * $2;
  26426. $21 = $20 + 0.0;
  26427. $floorf2 = (+Math_floor((+$21)));
  26428. $22 = (~~(($floorf2)));
  26429. HEAP32[$4>>2] = $22;
  26430. }
  26431. $23 = ($5|0)==(0|0);
  26432. if (!($23)) {
  26433. $24 = HEAP32[$11>>2]|0;
  26434. $25 = (0 - ($24))|0;
  26435. $26 = (+($25|0));
  26436. $27 = $26 * $3;
  26437. $28 = $27 + 0.0;
  26438. $floorf = (+Math_floor((+$28)));
  26439. $29 = (~~(($floorf)));
  26440. HEAP32[$5>>2] = $29;
  26441. }
  26442. $30 = ($6|0)==(0|0);
  26443. if (!($30)) {
  26444. $31 = HEAP32[$10>>2]|0;
  26445. $32 = (+($31|0));
  26446. $33 = $32 * $2;
  26447. $34 = $33 + 0.0;
  26448. $ceilf1 = (+Math_ceil((+$34)));
  26449. $35 = (~~(($ceilf1)));
  26450. HEAP32[$6>>2] = $35;
  26451. }
  26452. $36 = ($7|0)==(0|0);
  26453. if ($36) {
  26454. STACKTOP = sp;return;
  26455. }
  26456. $37 = HEAP32[$9>>2]|0;
  26457. $38 = (0 - ($37))|0;
  26458. $39 = (+($38|0));
  26459. $40 = $39 * $3;
  26460. $41 = $40 + 0.0;
  26461. $ceilf = (+Math_ceil((+$41)));
  26462. $42 = (~~(($ceilf)));
  26463. HEAP32[$7>>2] = $42;
  26464. STACKTOP = sp;return;
  26465. }
  26466. }
  26467. function _stbtt_Rasterize($0,$1,$2,$3,$4,$5,$6) {
  26468. $0 = $0|0;
  26469. $1 = $1|0;
  26470. $2 = $2|0;
  26471. $3 = +$3;
  26472. $4 = +$4;
  26473. $5 = $5|0;
  26474. $6 = $6|0;
  26475. 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;
  26476. sp = STACKTOP;
  26477. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26478. $7 = sp + 4|0;
  26479. $8 = sp;
  26480. $9 = $3 > $4;
  26481. $10 = $9 ? $4 : $3;
  26482. $11 = 0.34999999403953552 / $10;
  26483. $12 = (_stbtt_FlattenCurves($1,$2,$11,$8,$7)|0);
  26484. $13 = ($12|0)==(0|0);
  26485. if ($13) {
  26486. STACKTOP = sp;return;
  26487. }
  26488. $14 = HEAP32[$8>>2]|0;
  26489. $15 = HEAP32[$7>>2]|0;
  26490. _stbtt__rasterize($0,$12,$14,$15,$3,$4,$5,$6);
  26491. _free($14);
  26492. _free($12);
  26493. STACKTOP = sp;return;
  26494. }
  26495. function _stbtt_FlattenCurves($0,$1,$2,$3,$4) {
  26496. $0 = $0|0;
  26497. $1 = $1|0;
  26498. $2 = +$2;
  26499. $3 = $3|0;
  26500. $4 = $4|0;
  26501. 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;
  26502. 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;
  26503. 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;
  26504. 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;
  26505. 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;
  26506. var $87 = 0, $88 = 0, $89 = 0, $9 = 0, $exitcond = 0, $exitcond21 = 0, label = 0, sp = 0;
  26507. sp = STACKTOP;
  26508. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  26509. $5 = sp;
  26510. HEAP32[$5>>2] = 0;
  26511. $6 = $2 * $2;
  26512. $7 = ($1|0)>(0);
  26513. if ($7) {
  26514. $$011316 = 0;$$011715 = 0;
  26515. } else {
  26516. HEAP32[$4>>2] = 0;
  26517. $$0119 = 0;
  26518. STACKTOP = sp;return ($$0119|0);
  26519. }
  26520. while(1) {
  26521. $8 = (((($0) + (($$011715*14)|0)|0)) + 12|0);
  26522. $9 = HEAP8[$8>>0]|0;
  26523. $10 = ($9<<24>>24)==(1);
  26524. $11 = $10&1;
  26525. $$$0113 = (($11) + ($$011316))|0;
  26526. $12 = (($$011715) + 1)|0;
  26527. $exitcond21 = ($12|0)==($1|0);
  26528. if ($exitcond21) {
  26529. break;
  26530. } else {
  26531. $$011316 = $$$0113;$$011715 = $12;
  26532. }
  26533. }
  26534. HEAP32[$4>>2] = $$$0113;
  26535. $13 = ($$$0113|0)==(0);
  26536. if ($13) {
  26537. $$0119 = 0;
  26538. STACKTOP = sp;return ($$0119|0);
  26539. }
  26540. $14 = $$$0113 << 2;
  26541. $15 = (_malloc($14)|0);
  26542. HEAP32[$3>>2] = $15;
  26543. $16 = ($15|0)==(0|0);
  26544. if ($16) {
  26545. HEAP32[$4>>2] = 0;
  26546. $$0119 = 0;
  26547. STACKTOP = sp;return ($$0119|0);
  26548. }
  26549. $17 = ($1|0)>(0);
  26550. $$011014 = 0;$$011113 = 0;$$012012 = 0;
  26551. while(1) {
  26552. $18 = ($$011014|0)==(1);
  26553. if ($18) {
  26554. $19 = HEAP32[$5>>2]|0;
  26555. $20 = $19 << 3;
  26556. $21 = (_malloc($20)|0);
  26557. $22 = ($21|0)==(0|0);
  26558. if ($22) {
  26559. break;
  26560. } else {
  26561. $$1121 = $21;
  26562. }
  26563. } else {
  26564. $$1121 = $$012012;
  26565. }
  26566. HEAP32[$5>>2] = 0;
  26567. L19: do {
  26568. if ($17) {
  26569. $$010 = 0.0;$$01079 = 0.0;$$11128 = $$011113;$$11185 = 0;$$21157 = -1;
  26570. while(1) {
  26571. $23 = (($0) + (($$11185*14)|0)|0);
  26572. $24 = (((($0) + (($$11185*14)|0)|0)) + 12|0);
  26573. $25 = HEAP8[$24>>0]|0;
  26574. switch ($25<<24>>24) {
  26575. case 1: {
  26576. $26 = ($$21157|0)>(-1);
  26577. if ($26) {
  26578. $27 = HEAP32[$5>>2]|0;
  26579. $28 = (($27) - ($$11128))|0;
  26580. $29 = HEAP32[$3>>2]|0;
  26581. $30 = (($29) + ($$21157<<2)|0);
  26582. HEAP32[$30>>2] = $28;
  26583. }
  26584. $31 = (($$21157) + 1)|0;
  26585. $32 = HEAP32[$5>>2]|0;
  26586. $33 = HEAP16[$23>>1]|0;
  26587. $34 = (+($33<<16>>16));
  26588. $35 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26589. $36 = HEAP16[$35>>1]|0;
  26590. $37 = (+($36<<16>>16));
  26591. $38 = (($32) + 1)|0;
  26592. HEAP32[$5>>2] = $38;
  26593. _stbtt__add_point($$1121,$32,$34,$37);
  26594. $$1 = $37;$$1108 = $34;$$2 = $32;$$3116 = $31;
  26595. break;
  26596. }
  26597. case 2: {
  26598. $39 = HEAP16[$23>>1]|0;
  26599. $40 = (+($39<<16>>16));
  26600. $41 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26601. $42 = HEAP16[$41>>1]|0;
  26602. $43 = (+($42<<16>>16));
  26603. $44 = HEAP32[$5>>2]|0;
  26604. $45 = (($44) + 1)|0;
  26605. HEAP32[$5>>2] = $45;
  26606. _stbtt__add_point($$1121,$44,$40,$43);
  26607. $$1 = $43;$$1108 = $40;$$2 = $$11128;$$3116 = $$21157;
  26608. break;
  26609. }
  26610. case 3: {
  26611. $46 = (((($0) + (($$11185*14)|0)|0)) + 4|0);
  26612. $47 = HEAP16[$46>>1]|0;
  26613. $48 = (+($47<<16>>16));
  26614. $49 = (((($0) + (($$11185*14)|0)|0)) + 6|0);
  26615. $50 = HEAP16[$49>>1]|0;
  26616. $51 = (+($50<<16>>16));
  26617. $52 = HEAP16[$23>>1]|0;
  26618. $53 = (+($52<<16>>16));
  26619. $54 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26620. $55 = HEAP16[$54>>1]|0;
  26621. $56 = (+($55<<16>>16));
  26622. _stbtt__tesselate_curve($$1121,$5,$$01079,$$010,$48,$51,$53,$56,$6,0);
  26623. $57 = HEAP16[$23>>1]|0;
  26624. $58 = (+($57<<16>>16));
  26625. $59 = HEAP16[$54>>1]|0;
  26626. $60 = (+($59<<16>>16));
  26627. $$1 = $60;$$1108 = $58;$$2 = $$11128;$$3116 = $$21157;
  26628. break;
  26629. }
  26630. case 4: {
  26631. $61 = (((($0) + (($$11185*14)|0)|0)) + 4|0);
  26632. $62 = HEAP16[$61>>1]|0;
  26633. $63 = (+($62<<16>>16));
  26634. $64 = (((($0) + (($$11185*14)|0)|0)) + 6|0);
  26635. $65 = HEAP16[$64>>1]|0;
  26636. $66 = (+($65<<16>>16));
  26637. $67 = (((($0) + (($$11185*14)|0)|0)) + 8|0);
  26638. $68 = HEAP16[$67>>1]|0;
  26639. $69 = (+($68<<16>>16));
  26640. $70 = (((($0) + (($$11185*14)|0)|0)) + 10|0);
  26641. $71 = HEAP16[$70>>1]|0;
  26642. $72 = (+($71<<16>>16));
  26643. $73 = HEAP16[$23>>1]|0;
  26644. $74 = (+($73<<16>>16));
  26645. $75 = (((($0) + (($$11185*14)|0)|0)) + 2|0);
  26646. $76 = HEAP16[$75>>1]|0;
  26647. $77 = (+($76<<16>>16));
  26648. _stbtt__tesselate_cubic($$1121,$5,$$01079,$$010,$63,$66,$69,$72,$74,$77,$6,0);
  26649. $78 = HEAP16[$23>>1]|0;
  26650. $79 = (+($78<<16>>16));
  26651. $80 = HEAP16[$75>>1]|0;
  26652. $81 = (+($80<<16>>16));
  26653. $$1 = $81;$$1108 = $79;$$2 = $$11128;$$3116 = $$21157;
  26654. break;
  26655. }
  26656. default: {
  26657. $$1 = $$010;$$1108 = $$01079;$$2 = $$11128;$$3116 = $$21157;
  26658. }
  26659. }
  26660. $82 = (($$11185) + 1)|0;
  26661. $exitcond = ($82|0)==($1|0);
  26662. if ($exitcond) {
  26663. $$1112$lcssa = $$2;$$2115$lcssa = $$3116;
  26664. break L19;
  26665. } else {
  26666. $$010 = $$1;$$01079 = $$1108;$$11128 = $$2;$$11185 = $82;$$21157 = $$3116;
  26667. }
  26668. }
  26669. } else {
  26670. $$1112$lcssa = $$011113;$$2115$lcssa = -1;
  26671. }
  26672. } while(0);
  26673. $83 = HEAP32[$5>>2]|0;
  26674. $84 = (($83) - ($$1112$lcssa))|0;
  26675. $85 = HEAP32[$3>>2]|0;
  26676. $86 = (($85) + ($$2115$lcssa<<2)|0);
  26677. HEAP32[$86>>2] = $84;
  26678. $87 = (($$011014) + 1)|0;
  26679. $88 = ($87|0)<(2);
  26680. if ($88) {
  26681. $$011014 = $87;$$011113 = $$1112$lcssa;$$012012 = $$1121;
  26682. } else {
  26683. $$0119 = $$1121;
  26684. label = 21;
  26685. break;
  26686. }
  26687. }
  26688. if ((label|0) == 21) {
  26689. STACKTOP = sp;return ($$0119|0);
  26690. }
  26691. $89 = HEAP32[$3>>2]|0;
  26692. _free($89);
  26693. HEAP32[$3>>2] = 0;
  26694. HEAP32[$4>>2] = 0;
  26695. $$0119 = 0;
  26696. STACKTOP = sp;return ($$0119|0);
  26697. }
  26698. function _stbtt__rasterize($0,$1,$2,$3,$4,$5,$6,$7) {
  26699. $0 = $0|0;
  26700. $1 = $1|0;
  26701. $2 = $2|0;
  26702. $3 = $3|0;
  26703. $4 = +$4;
  26704. $5 = +$5;
  26705. $6 = $6|0;
  26706. $7 = $7|0;
  26707. 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;
  26708. 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;
  26709. 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;
  26710. var $55 = 0, $56 = 0, $8 = 0.0, $9 = 0, $exitcond = 0, $exitcond16 = 0, $phitmp = 0, $phitmp17 = 0, $storemerge = 0, label = 0, sp = 0;
  26711. sp = STACKTOP;
  26712. $8 = -$5;
  26713. $9 = ($3|0)>(0);
  26714. if ($9) {
  26715. $$010211 = 0;$$010410 = 0;
  26716. while(1) {
  26717. $10 = (($2) + ($$010410<<2)|0);
  26718. $11 = HEAP32[$10>>2]|0;
  26719. $12 = (($11) + ($$010211))|0;
  26720. $13 = (($$010410) + 1)|0;
  26721. $exitcond16 = ($13|0)==($3|0);
  26722. if ($exitcond16) {
  26723. break;
  26724. } else {
  26725. $$010211 = $12;$$010410 = $13;
  26726. }
  26727. }
  26728. $phitmp = ($12*20)|0;
  26729. $phitmp17 = (($phitmp) + 20)|0;
  26730. $$0102$lcssa = $phitmp17;
  26731. } else {
  26732. $$0102$lcssa = 20;
  26733. }
  26734. $14 = (_malloc($$0102$lcssa)|0);
  26735. $15 = ($14|0)==(0|0);
  26736. if ($15) {
  26737. return;
  26738. }
  26739. $16 = ($3|0)>(0);
  26740. if ($16) {
  26741. $$01064 = 0;$$11055 = 0;$$16 = 0;
  26742. while(1) {
  26743. $17 = (($1) + ($$01064<<3)|0);
  26744. $18 = (($2) + ($$11055<<2)|0);
  26745. $19 = HEAP32[$18>>2]|0;
  26746. $20 = (($19) + ($$01064))|0;
  26747. $21 = ($19|0)>(0);
  26748. if ($21) {
  26749. $22 = (($19) + -1)|0;
  26750. $23 = HEAP32[$18>>2]|0;
  26751. $$01072 = 0;$$01081 = $22;$$23 = $$16;
  26752. while(1) {
  26753. $24 = (($17) + ($$01081<<3)|0);
  26754. $25 = ((($24)) + 4|0);
  26755. $26 = +HEAPF32[$25>>2];
  26756. $27 = (($17) + ($$01072<<3)|0);
  26757. $28 = ((($27)) + 4|0);
  26758. $29 = +HEAPF32[$28>>2];
  26759. $30 = $26 == $29;
  26760. if ($30) {
  26761. $$3 = $$23;
  26762. } else {
  26763. $31 = (((($14) + (($$23*20)|0)|0)) + 16|0);
  26764. $32 = $26 > $29;
  26765. $storemerge = $32&1;
  26766. $$0101 = $32 ? $$01081 : $$01072;
  26767. $$0 = $32 ? $$01072 : $$01081;
  26768. HEAP32[$31>>2] = $storemerge;
  26769. $33 = (($17) + ($$0101<<3)|0);
  26770. $34 = +HEAPF32[$33>>2];
  26771. $35 = $34 * $4;
  26772. $36 = $35 + 0.0;
  26773. $37 = (($14) + (($$23*20)|0)|0);
  26774. HEAPF32[$37>>2] = $36;
  26775. $38 = ((($33)) + 4|0);
  26776. $39 = +HEAPF32[$38>>2];
  26777. $40 = $39 * $8;
  26778. $41 = $40 + 0.0;
  26779. $42 = (((($14) + (($$23*20)|0)|0)) + 4|0);
  26780. HEAPF32[$42>>2] = $41;
  26781. $43 = (($17) + ($$0<<3)|0);
  26782. $44 = +HEAPF32[$43>>2];
  26783. $45 = $44 * $4;
  26784. $46 = $45 + 0.0;
  26785. $47 = (((($14) + (($$23*20)|0)|0)) + 8|0);
  26786. HEAPF32[$47>>2] = $46;
  26787. $48 = ((($43)) + 4|0);
  26788. $49 = +HEAPF32[$48>>2];
  26789. $50 = $49 * $8;
  26790. $51 = $50 + 0.0;
  26791. $52 = (((($14) + (($$23*20)|0)|0)) + 12|0);
  26792. HEAPF32[$52>>2] = $51;
  26793. $53 = (($$23) + 1)|0;
  26794. $$3 = $53;
  26795. }
  26796. $54 = (($$01072) + 1)|0;
  26797. $55 = ($54|0)<($23|0);
  26798. if ($55) {
  26799. $$01081$phi = $$01072;$$01072 = $54;$$23 = $$3;$$01081 = $$01081$phi;
  26800. } else {
  26801. $$2$lcssa = $$3;
  26802. break;
  26803. }
  26804. }
  26805. } else {
  26806. $$2$lcssa = $$16;
  26807. }
  26808. $56 = (($$11055) + 1)|0;
  26809. $exitcond = ($56|0)==($3|0);
  26810. if ($exitcond) {
  26811. $$1$lcssa = $$2$lcssa;
  26812. break;
  26813. } else {
  26814. $$01064 = $20;$$11055 = $56;$$16 = $$2$lcssa;
  26815. }
  26816. }
  26817. } else {
  26818. $$1$lcssa = 0;
  26819. }
  26820. _stbtt__sort_edges($14,$$1$lcssa);
  26821. _stbtt__rasterize_sorted_edges($0,$14,$$1$lcssa,$6,$7);
  26822. _free($14);
  26823. return;
  26824. }
  26825. function _stbtt__sort_edges($0,$1) {
  26826. $0 = $0|0;
  26827. $1 = $1|0;
  26828. var label = 0, sp = 0;
  26829. sp = STACKTOP;
  26830. _stbtt__sort_edges_quicksort($0,$1);
  26831. _stbtt__sort_edges_ins_sort($0,$1);
  26832. return;
  26833. }
  26834. function _stbtt__rasterize_sorted_edges($0,$1,$2,$3,$4) {
  26835. $0 = $0|0;
  26836. $1 = $1|0;
  26837. $2 = $2|0;
  26838. $3 = $3|0;
  26839. $4 = $4|0;
  26840. 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;
  26841. 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;
  26842. 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;
  26843. 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;
  26844. 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;
  26845. var $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $fabsf = 0.0, label = 0, sp = 0;
  26846. sp = STACKTOP;
  26847. STACKTOP = STACKTOP + 544|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(544|0);
  26848. $5 = sp + 520|0;
  26849. $$sroa$0 = sp + 516|0;
  26850. $6 = sp;
  26851. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  26852. HEAP32[$$sroa$0>>2] = 0;
  26853. $7 = HEAP32[$0>>2]|0;
  26854. $8 = ($7|0)>(64);
  26855. if ($8) {
  26856. $9 = $7 << 3;
  26857. $10 = $9 | 4;
  26858. $11 = (_malloc($10)|0);
  26859. $$0104 = $11;
  26860. } else {
  26861. $$0104 = $6;
  26862. }
  26863. $12 = HEAP32[$0>>2]|0;
  26864. $13 = (($$0104) + ($12<<2)|0);
  26865. $14 = ((($0)) + 4|0);
  26866. $15 = HEAP32[$14>>2]|0;
  26867. $16 = (($15) + ($4))|0;
  26868. $17 = (+($16|0));
  26869. $18 = $17 + 1.0;
  26870. $19 = (((($1) + (($2*20)|0)|0)) + 4|0);
  26871. HEAPF32[$19>>2] = $18;
  26872. $20 = HEAP32[$14>>2]|0;
  26873. $21 = ($20|0)>(0);
  26874. L5: do {
  26875. if ($21) {
  26876. $22 = ((($13)) + 4|0);
  26877. $23 = ((($0)) + 12|0);
  26878. $24 = ((($0)) + 8|0);
  26879. $$010025 = $4;$$010123 = 0;$$026 = $1;
  26880. L7: while(1) {
  26881. $25 = (+($$010025|0));
  26882. $26 = $25 + 1.0;
  26883. $27 = HEAP32[$0>>2]|0;
  26884. $28 = $27 << 2;
  26885. _memset(($$0104|0),0,($28|0))|0;
  26886. $29 = (($28) + 4)|0;
  26887. _memset(($13|0),0,($29|0))|0;
  26888. $30 = HEAP32[$$sroa$0>>2]|0;
  26889. $31 = ($30|0)==(0|0);
  26890. L9: do {
  26891. if (!($31)) {
  26892. $$0105$ph15 = $$sroa$0;$99 = $30;
  26893. while(1) {
  26894. $36 = $99;
  26895. while(1) {
  26896. $35 = ((($36)) + 24|0);
  26897. $37 = +HEAPF32[$35>>2];
  26898. $38 = !($37 <= $25);
  26899. if ($38) {
  26900. break;
  26901. }
  26902. $39 = HEAP32[$36>>2]|0;
  26903. HEAP32[$$0105$ph15>>2] = $39;
  26904. $40 = ((($36)) + 16|0);
  26905. $41 = +HEAPF32[$40>>2];
  26906. $42 = $41 != 0.0;
  26907. if (!($42)) {
  26908. label = 11;
  26909. break L7;
  26910. }
  26911. HEAPF32[$40>>2] = 0.0;
  26912. _stbtt__hheap_free($5,$36);
  26913. $43 = HEAP32[$$0105$ph15>>2]|0;
  26914. $44 = ($43|0)==(0|0);
  26915. if ($44) {
  26916. break L9;
  26917. } else {
  26918. $36 = $43;
  26919. }
  26920. }
  26921. $45 = HEAP32[$36>>2]|0;
  26922. $46 = ($45|0)==(0|0);
  26923. if ($46) {
  26924. break;
  26925. } else {
  26926. $$0105$ph15 = $36;$99 = $45;
  26927. }
  26928. }
  26929. }
  26930. } while(0);
  26931. $32 = ((($$026)) + 4|0);
  26932. $33 = +HEAPF32[$32>>2];
  26933. $34 = !($33 <= $26);
  26934. if ($34) {
  26935. $$1$lcssa = $$026;
  26936. } else {
  26937. $$116 = $$026;$50 = $33;
  26938. while(1) {
  26939. $47 = ((($$116)) + 12|0);
  26940. $48 = +HEAPF32[$47>>2];
  26941. $49 = $50 != $48;
  26942. if ($49) {
  26943. $51 = (_stbtt__new_active($5,$$116,$3,$25)|0);
  26944. $52 = ($51|0)==(0|0);
  26945. if (!($52)) {
  26946. $53 = ((($51)) + 24|0);
  26947. $54 = +HEAPF32[$53>>2];
  26948. $55 = !($54 >= $25);
  26949. if ($55) {
  26950. label = 17;
  26951. break L7;
  26952. }
  26953. $$sroa$0$0$$sroa$0$0$$0$1 = HEAP32[$$sroa$0>>2]|0;
  26954. HEAP32[$51>>2] = $$sroa$0$0$$sroa$0$0$$0$1;
  26955. $56 = $51;
  26956. HEAP32[$$sroa$0>>2] = $56;
  26957. }
  26958. }
  26959. $57 = ((($$116)) + 20|0);
  26960. $58 = ((($$116)) + 24|0);
  26961. $59 = +HEAPF32[$58>>2];
  26962. $60 = !($59 <= $26);
  26963. if ($60) {
  26964. $$1$lcssa = $57;
  26965. break;
  26966. } else {
  26967. $$116 = $57;$50 = $59;
  26968. }
  26969. }
  26970. }
  26971. $$sroa$0$0$$sroa$0$0$$0$1079 = HEAP32[$$sroa$0>>2]|0;
  26972. $61 = ($$sroa$0$0$$sroa$0$0$$0$1079|0)==(0|0);
  26973. if (!($61)) {
  26974. $62 = HEAP32[$0>>2]|0;
  26975. _stbtt__fill_active_edges_new($$0104,$22,$62,$$sroa$0$0$$sroa$0$0$$0$1079,$25);
  26976. }
  26977. $63 = HEAP32[$0>>2]|0;
  26978. $64 = ($63|0)>(0);
  26979. if ($64) {
  26980. $$010219 = 0.0;$$010318 = 0;
  26981. while(1) {
  26982. $67 = (($13) + ($$010318<<2)|0);
  26983. $68 = +HEAPF32[$67>>2];
  26984. $69 = $$010219 + $68;
  26985. $70 = (($$0104) + ($$010318<<2)|0);
  26986. $71 = +HEAPF32[$70>>2];
  26987. $72 = $71 + $69;
  26988. $fabsf = (+Math_abs((+$72)));
  26989. $73 = $fabsf * 255.0;
  26990. $74 = $73 + 0.5;
  26991. $75 = (~~(($74)));
  26992. $76 = ($75|0)<(255);
  26993. $$ = $76 ? $75 : 255;
  26994. $77 = $$&255;
  26995. $78 = HEAP32[$23>>2]|0;
  26996. $79 = HEAP32[$24>>2]|0;
  26997. $80 = Math_imul($79, $$010123)|0;
  26998. $81 = (($80) + ($$010318))|0;
  26999. $82 = (($78) + ($81)|0);
  27000. HEAP8[$82>>0] = $77;
  27001. $83 = (($$010318) + 1)|0;
  27002. $84 = HEAP32[$0>>2]|0;
  27003. $85 = ($83|0)<($84|0);
  27004. if ($85) {
  27005. $$010219 = $69;$$010318 = $83;
  27006. } else {
  27007. break;
  27008. }
  27009. }
  27010. }
  27011. $65 = HEAP32[$$sroa$0>>2]|0;
  27012. $66 = ($65|0)==(0|0);
  27013. if (!($66)) {
  27014. $87 = $65;
  27015. while(1) {
  27016. $86 = ((($87)) + 8|0);
  27017. $88 = +HEAPF32[$86>>2];
  27018. $89 = ((($87)) + 4|0);
  27019. $90 = +HEAPF32[$89>>2];
  27020. $91 = $88 + $90;
  27021. HEAPF32[$89>>2] = $91;
  27022. $92 = HEAP32[$87>>2]|0;
  27023. $93 = ($92|0)==(0|0);
  27024. if ($93) {
  27025. break;
  27026. } else {
  27027. $87 = $92;
  27028. }
  27029. }
  27030. }
  27031. $94 = (($$010025) + 1)|0;
  27032. $95 = (($$010123) + 1)|0;
  27033. $96 = HEAP32[$14>>2]|0;
  27034. $97 = ($95|0)<($96|0);
  27035. if ($97) {
  27036. $$010025 = $94;$$010123 = $95;$$026 = $$1$lcssa;
  27037. } else {
  27038. break L5;
  27039. }
  27040. }
  27041. if ((label|0) == 11) {
  27042. ___assert_fail((12671|0),(12615|0),2775,(12684|0));
  27043. // unreachable;
  27044. }
  27045. else if ((label|0) == 17) {
  27046. ___assert_fail((12714|0),(12615|0),2788,(12684|0));
  27047. // unreachable;
  27048. }
  27049. }
  27050. } while(0);
  27051. _stbtt__hheap_cleanup($5);
  27052. $98 = ($$0104|0)==($6|0);
  27053. if ($98) {
  27054. STACKTOP = sp;return;
  27055. }
  27056. _free($$0104);
  27057. STACKTOP = sp;return;
  27058. }
  27059. function _stbtt__hheap_free($0,$1) {
  27060. $0 = $0|0;
  27061. $1 = $1|0;
  27062. var $2 = 0, $3 = 0, label = 0, sp = 0;
  27063. sp = STACKTOP;
  27064. $2 = ((($0)) + 4|0);
  27065. $3 = HEAP32[$2>>2]|0;
  27066. HEAP32[$1>>2] = $3;
  27067. HEAP32[$2>>2] = $1;
  27068. return;
  27069. }
  27070. function _stbtt__new_active($0,$1,$2,$3) {
  27071. $0 = $0|0;
  27072. $1 = $1|0;
  27073. $2 = $2|0;
  27074. $3 = +$3;
  27075. 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;
  27076. 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;
  27077. sp = STACKTOP;
  27078. $4 = (_stbtt__hheap_alloc($0)|0);
  27079. $5 = ((($1)) + 8|0);
  27080. $6 = +HEAPF32[$5>>2];
  27081. $7 = +HEAPF32[$1>>2];
  27082. $8 = $6 - $7;
  27083. $9 = ((($1)) + 12|0);
  27084. $10 = +HEAPF32[$9>>2];
  27085. $11 = ((($1)) + 4|0);
  27086. $12 = +HEAPF32[$11>>2];
  27087. $13 = $10 - $12;
  27088. $14 = $8 / $13;
  27089. $15 = ($4|0)==(0|0);
  27090. if ($15) {
  27091. ___assert_fail((13004|0),(12615|0),2374,(13020|0));
  27092. // unreachable;
  27093. } else {
  27094. $16 = ((($4)) + 8|0);
  27095. HEAPF32[$16>>2] = $14;
  27096. $17 = $14 != 0.0;
  27097. $18 = 1.0 / $14;
  27098. $19 = $17 ? $18 : 0.0;
  27099. $20 = ((($4)) + 12|0);
  27100. HEAPF32[$20>>2] = $19;
  27101. $21 = +HEAPF32[$1>>2];
  27102. $22 = +HEAPF32[$11>>2];
  27103. $23 = $3 - $22;
  27104. $24 = $14 * $23;
  27105. $25 = $21 + $24;
  27106. $26 = ((($4)) + 4|0);
  27107. $27 = (+($2|0));
  27108. $28 = $25 - $27;
  27109. HEAPF32[$26>>2] = $28;
  27110. $29 = ((($1)) + 16|0);
  27111. $30 = HEAP32[$29>>2]|0;
  27112. $31 = ($30|0)!=(0);
  27113. $32 = $31 ? 1.0 : -1.0;
  27114. $33 = ((($4)) + 16|0);
  27115. HEAPF32[$33>>2] = $32;
  27116. $34 = ((($4)) + 20|0);
  27117. HEAPF32[$34>>2] = $22;
  27118. $35 = HEAP32[$9>>2]|0;
  27119. $36 = ((($4)) + 24|0);
  27120. HEAP32[$36>>2] = $35;
  27121. HEAP32[$4>>2] = 0;
  27122. return ($4|0);
  27123. }
  27124. return (0)|0;
  27125. }
  27126. function _stbtt__fill_active_edges_new($0,$1,$2,$3,$4) {
  27127. $0 = $0|0;
  27128. $1 = $1|0;
  27129. $2 = $2|0;
  27130. $3 = $3|0;
  27131. $4 = +$4;
  27132. 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;
  27133. 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;
  27134. 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;
  27135. 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;
  27136. 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;
  27137. 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;
  27138. 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;
  27139. 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;
  27140. var $or$cond365 = 0, $or$cond366 = 0, $or$cond367 = 0, $or$cond368 = 0, $or$cond369 = 0, label = 0, sp = 0;
  27141. sp = STACKTOP;
  27142. $5 = $4 + 1.0;
  27143. $6 = ($3|0)==(0|0);
  27144. if ($6) {
  27145. return;
  27146. }
  27147. $7 = (+($2|0));
  27148. $8 = ((($1)) + -4|0);
  27149. $9 = ((($1)) + -4|0);
  27150. $10 = (+($2|0));
  27151. $11 = ($2|0)>(0);
  27152. $$0374 = $3;
  27153. L4: while(1) {
  27154. $12 = ((($$0374)) + 24|0);
  27155. $13 = +HEAPF32[$12>>2];
  27156. $14 = !($13 >= $4);
  27157. if ($14) {
  27158. label = 4;
  27159. break;
  27160. }
  27161. $15 = ((($$0374)) + 8|0);
  27162. $16 = +HEAPF32[$15>>2];
  27163. $17 = $16 == 0.0;
  27164. $18 = ((($$0374)) + 4|0);
  27165. $19 = +HEAPF32[$18>>2];
  27166. do {
  27167. if ($17) {
  27168. $20 = $19 < $7;
  27169. if ($20) {
  27170. $21 = !($19 >= 0.0);
  27171. if ($21) {
  27172. _stbtt__handle_clipped_edge($8,0,$$0374,$19,$4,$19,$5);
  27173. break;
  27174. } else {
  27175. $22 = (~~(($19)));
  27176. _stbtt__handle_clipped_edge($0,$22,$$0374,$19,$4,$19,$5);
  27177. $23 = (($22) + 1)|0;
  27178. _stbtt__handle_clipped_edge($9,$23,$$0374,$19,$4,$19,$5);
  27179. break;
  27180. }
  27181. }
  27182. } else {
  27183. $24 = $16 + $19;
  27184. $25 = ((($$0374)) + 12|0);
  27185. $26 = +HEAPF32[$25>>2];
  27186. $27 = ((($$0374)) + 20|0);
  27187. $28 = +HEAPF32[$27>>2];
  27188. $29 = !($28 <= $5);
  27189. if ($29) {
  27190. label = 11;
  27191. break L4;
  27192. }
  27193. $30 = $28 > $4;
  27194. $31 = $28 - $4;
  27195. $32 = $16 * $31;
  27196. $33 = $19 + $32;
  27197. $$0354 = $30 ? $28 : $4;
  27198. $$0351 = $30 ? $33 : $19;
  27199. $34 = +HEAPF32[$12>>2];
  27200. $35 = $34 < $5;
  27201. $36 = $34 - $4;
  27202. $37 = $16 * $36;
  27203. $38 = $19 + $37;
  27204. $$0357 = $35 ? $34 : $5;
  27205. $$0352 = $35 ? $38 : $24;
  27206. $39 = $$0351 >= 0.0;
  27207. $40 = $$0352 >= 0.0;
  27208. $or$cond = $39 & $40;
  27209. if ($or$cond) {
  27210. $41 = $$0351 < $10;
  27211. $42 = $$0352 < $10;
  27212. $or$cond362 = $41 & $42;
  27213. if ($or$cond362) {
  27214. $43 = (~~(($$0351)));
  27215. $44 = (~~(($$0352)));
  27216. $45 = ($43|0)==($44|0);
  27217. if ($45) {
  27218. $46 = $$0357 - $$0354;
  27219. $47 = ($43|0)>(-1);
  27220. $48 = ($43|0)<($2|0);
  27221. $or$cond363 = $47 & $48;
  27222. if (!($or$cond363)) {
  27223. label = 17;
  27224. break L4;
  27225. }
  27226. $49 = ((($$0374)) + 16|0);
  27227. $50 = +HEAPF32[$49>>2];
  27228. $51 = (+($43|0));
  27229. $52 = $$0351 - $51;
  27230. $53 = $$0352 - $51;
  27231. $54 = $52 + $53;
  27232. $55 = $54 * 0.5;
  27233. $56 = 1.0 - $55;
  27234. $57 = $56 * $50;
  27235. $58 = $46 * $57;
  27236. $59 = (($0) + ($43<<2)|0);
  27237. $60 = +HEAPF32[$59>>2];
  27238. $61 = $60 + $58;
  27239. HEAPF32[$59>>2] = $61;
  27240. $62 = +HEAPF32[$49>>2];
  27241. $63 = $46 * $62;
  27242. $64 = (($1) + ($43<<2)|0);
  27243. $65 = +HEAPF32[$64>>2];
  27244. $66 = $65 + $63;
  27245. HEAPF32[$64>>2] = $66;
  27246. break;
  27247. }
  27248. $67 = $$0351 > $$0352;
  27249. if ($67) {
  27250. $68 = -$26;
  27251. $69 = $$0357 - $4;
  27252. $70 = $5 - $69;
  27253. $71 = $$0354 - $4;
  27254. $72 = $5 - $71;
  27255. $$0350 = $24;$$0360 = $68;$$1 = $$0352;$$1353 = $$0351;$$1355 = $70;$$1358 = $72;
  27256. } else {
  27257. $$0350 = $19;$$0360 = $26;$$1 = $$0351;$$1353 = $$0352;$$1355 = $$0354;$$1358 = $$0357;
  27258. }
  27259. $73 = (~~(($$1)));
  27260. $74 = (~~(($$1353)));
  27261. $75 = (($73) + 1)|0;
  27262. $76 = (+($75|0));
  27263. $77 = $76 - $$0350;
  27264. $78 = $$0360 * $77;
  27265. $79 = $78 + $4;
  27266. $80 = ((($$0374)) + 16|0);
  27267. $81 = +HEAPF32[$80>>2];
  27268. $82 = $79 - $$1355;
  27269. $83 = $81 * $82;
  27270. $84 = (+($73|0));
  27271. $85 = $$1 - $84;
  27272. $86 = $85 + 1.0;
  27273. $87 = $86 * 0.5;
  27274. $88 = 1.0 - $87;
  27275. $89 = $88 * $83;
  27276. $90 = (($0) + ($73<<2)|0);
  27277. $91 = +HEAPF32[$90>>2];
  27278. $92 = $91 + $89;
  27279. HEAPF32[$90>>2] = $92;
  27280. $93 = $$0360 * $81;
  27281. $94 = ($74|0)>($75|0);
  27282. if ($94) {
  27283. $95 = $93 * 0.5;
  27284. $$0359372 = $83;$$0361371 = $75;
  27285. while(1) {
  27286. $96 = $95 + $$0359372;
  27287. $97 = (($0) + ($$0361371<<2)|0);
  27288. $98 = +HEAPF32[$97>>2];
  27289. $99 = $96 + $98;
  27290. HEAPF32[$97>>2] = $99;
  27291. $100 = $93 + $$0359372;
  27292. $101 = (($$0361371) + 1)|0;
  27293. $exitcond380 = ($101|0)==($74|0);
  27294. if ($exitcond380) {
  27295. $$0359$lcssa = $100;
  27296. break;
  27297. } else {
  27298. $$0359372 = $100;$$0361371 = $101;
  27299. }
  27300. }
  27301. } else {
  27302. $$0359$lcssa = $83;
  27303. }
  27304. $fabsf = (+Math_abs((+$$0359$lcssa)));
  27305. $102 = !($fabsf <= 1.0099999904632568);
  27306. if ($102) {
  27307. label = 25;
  27308. break L4;
  27309. }
  27310. $103 = (($74) - ($75))|0;
  27311. $104 = (+($103|0));
  27312. $105 = $$0360 * $104;
  27313. $106 = $105 + $79;
  27314. $107 = (+($74|0));
  27315. $108 = $$1353 - $107;
  27316. $109 = $108 + 0.0;
  27317. $110 = $109 * 0.5;
  27318. $111 = 1.0 - $110;
  27319. $112 = $81 * $111;
  27320. $113 = $$1358 - $106;
  27321. $114 = $112 * $113;
  27322. $115 = $114 + $$0359$lcssa;
  27323. $116 = (($0) + ($74<<2)|0);
  27324. $117 = +HEAPF32[$116>>2];
  27325. $118 = $115 + $117;
  27326. HEAPF32[$116>>2] = $118;
  27327. $119 = $$1358 - $$1355;
  27328. $120 = $119 * $81;
  27329. $121 = (($1) + ($74<<2)|0);
  27330. $122 = +HEAPF32[$121>>2];
  27331. $123 = $120 + $122;
  27332. HEAPF32[$121>>2] = $123;
  27333. break;
  27334. }
  27335. }
  27336. if ($11) {
  27337. $$0356370 = 0;
  27338. while(1) {
  27339. $124 = (+($$0356370|0));
  27340. $125 = (($$0356370) + 1)|0;
  27341. $126 = (+($125|0));
  27342. $127 = $124 - $19;
  27343. $128 = $127 / $16;
  27344. $129 = $128 + $4;
  27345. $130 = $126 - $19;
  27346. $131 = $130 / $16;
  27347. $132 = $131 + $4;
  27348. $133 = $19 < $124;
  27349. $134 = $24 > $126;
  27350. $or$cond364 = $133 & $134;
  27351. do {
  27352. if ($or$cond364) {
  27353. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27354. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$126,$132);
  27355. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27356. } else {
  27357. $135 = $24 < $124;
  27358. $136 = $19 > $126;
  27359. $or$cond365 = $135 & $136;
  27360. if ($or$cond365) {
  27361. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27362. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$124,$129);
  27363. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27364. break;
  27365. }
  27366. $137 = $24 > $124;
  27367. $or$cond366 = $133 & $137;
  27368. if ($or$cond366) {
  27369. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27370. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27371. break;
  27372. }
  27373. $138 = $19 > $124;
  27374. $or$cond367 = $135 & $138;
  27375. if ($or$cond367) {
  27376. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$124,$129);
  27377. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$124,$129,$24,$5);
  27378. break;
  27379. }
  27380. $139 = $19 < $126;
  27381. $or$cond368 = $139 & $134;
  27382. if ($or$cond368) {
  27383. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27384. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27385. break;
  27386. }
  27387. $140 = $24 < $126;
  27388. $or$cond369 = $140 & $136;
  27389. if ($or$cond369) {
  27390. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$126,$132);
  27391. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$126,$132,$24,$5);
  27392. break;
  27393. } else {
  27394. _stbtt__handle_clipped_edge($0,$$0356370,$$0374,$19,$4,$24,$5);
  27395. break;
  27396. }
  27397. }
  27398. } while(0);
  27399. $exitcond = ($125|0)==($2|0);
  27400. if ($exitcond) {
  27401. break;
  27402. } else {
  27403. $$0356370 = $125;
  27404. }
  27405. }
  27406. }
  27407. }
  27408. } while(0);
  27409. $141 = HEAP32[$$0374>>2]|0;
  27410. $142 = ($141|0)==(0|0);
  27411. if ($142) {
  27412. label = 42;
  27413. break;
  27414. } else {
  27415. $$0374 = $141;
  27416. }
  27417. }
  27418. if ((label|0) == 4) {
  27419. ___assert_fail((12734|0),(12615|0),2586,(12749|0));
  27420. // unreachable;
  27421. }
  27422. else if ((label|0) == 11) {
  27423. ___assert_fail((12778|0),(12615|0),2605,(12749|0));
  27424. // unreachable;
  27425. }
  27426. else if ((label|0) == 17) {
  27427. ___assert_fail((12814|0),(12615|0),2633,(12749|0));
  27428. // unreachable;
  27429. }
  27430. else if ((label|0) == 25) {
  27431. ___assert_fail((12832|0),(12615|0),2670,(12749|0));
  27432. // unreachable;
  27433. }
  27434. else if ((label|0) == 42) {
  27435. return;
  27436. }
  27437. }
  27438. function _stbtt__hheap_cleanup($0) {
  27439. $0 = $0|0;
  27440. var $$in12 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  27441. sp = STACKTOP;
  27442. $1 = HEAP32[$0>>2]|0;
  27443. $2 = ($1|0)==(0|0);
  27444. if ($2) {
  27445. return;
  27446. } else {
  27447. $$in12 = $1;
  27448. }
  27449. while(1) {
  27450. $3 = HEAP32[$$in12>>2]|0;
  27451. _free($$in12);
  27452. $4 = ($3|0)==(0|0);
  27453. if ($4) {
  27454. break;
  27455. } else {
  27456. $$in12 = $3;
  27457. }
  27458. }
  27459. return;
  27460. }
  27461. function _stbtt__handle_clipped_edge($0,$1,$2,$3,$4,$5,$6) {
  27462. $0 = $0|0;
  27463. $1 = $1|0;
  27464. $2 = $2|0;
  27465. $3 = +$3;
  27466. $4 = +$4;
  27467. $5 = +$5;
  27468. $6 = +$6;
  27469. 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;
  27470. 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;
  27471. 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;
  27472. 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;
  27473. sp = STACKTOP;
  27474. $7 = $4 == $6;
  27475. if ($7) {
  27476. return;
  27477. }
  27478. $8 = $4 < $6;
  27479. if (!($8)) {
  27480. ___assert_fail((12852|0),(12615|0),2544,(12860|0));
  27481. // unreachable;
  27482. }
  27483. $9 = ((($2)) + 20|0);
  27484. $10 = +HEAPF32[$9>>2];
  27485. $11 = ((($2)) + 24|0);
  27486. $12 = +HEAPF32[$11>>2];
  27487. $13 = !($10 <= $12);
  27488. if ($13) {
  27489. ___assert_fail((12887|0),(12615|0),2545,(12860|0));
  27490. // unreachable;
  27491. }
  27492. $14 = $12 < $4;
  27493. $15 = $10 > $6;
  27494. $or$cond = $15 | $14;
  27495. if ($or$cond) {
  27496. return;
  27497. }
  27498. $16 = $10 > $4;
  27499. if ($16) {
  27500. $17 = $5 - $3;
  27501. $18 = $10 - $4;
  27502. $19 = $17 * $18;
  27503. $20 = $6 - $4;
  27504. $21 = $19 / $20;
  27505. $22 = $21 + $3;
  27506. $$078 = $10;$$079 = $22;
  27507. } else {
  27508. $$078 = $4;$$079 = $3;
  27509. }
  27510. $23 = +HEAPF32[$11>>2];
  27511. $24 = $23 < $6;
  27512. if ($24) {
  27513. $25 = $5 - $$079;
  27514. $26 = $23 - $6;
  27515. $27 = $25 * $26;
  27516. $28 = $6 - $$078;
  27517. $29 = $27 / $28;
  27518. $30 = $29 + $5;
  27519. $$0 = $23;$$077 = $30;
  27520. } else {
  27521. $$0 = $6;$$077 = $5;
  27522. }
  27523. $31 = (+($1|0));
  27524. $32 = $$079 == $31;
  27525. $33 = (($1) + 1)|0;
  27526. $34 = (+($33|0));
  27527. do {
  27528. if ($32) {
  27529. $35 = !($$077 <= $34);
  27530. if ($35) {
  27531. ___assert_fail((12902|0),(12615|0),2558,(12860|0));
  27532. // unreachable;
  27533. }
  27534. } else {
  27535. $36 = $$079 == $34;
  27536. if ($36) {
  27537. $37 = !($$077 >= $31);
  27538. if (!($37)) {
  27539. break;
  27540. }
  27541. ___assert_fail((12912|0),(12615|0),2560,(12860|0));
  27542. // unreachable;
  27543. }
  27544. $38 = !($$079 <= $31);
  27545. if (!($38)) {
  27546. $39 = !($$077 <= $31);
  27547. if (!($39)) {
  27548. break;
  27549. }
  27550. ___assert_fail((12920|0),(12615|0),2562,(12860|0));
  27551. // unreachable;
  27552. }
  27553. $40 = !($$079 >= $34);
  27554. if ($40) {
  27555. $42 = !($$077 >= $31);
  27556. $43 = !($$077 <= $34);
  27557. $or$cond80 = $42 | $43;
  27558. if (!($or$cond80)) {
  27559. break;
  27560. }
  27561. ___assert_fail((12938|0),(12615|0),2566,(12860|0));
  27562. // unreachable;
  27563. } else {
  27564. $41 = !($$077 >= $34);
  27565. if (!($41)) {
  27566. break;
  27567. }
  27568. ___assert_fail((12928|0),(12615|0),2564,(12860|0));
  27569. // unreachable;
  27570. }
  27571. }
  27572. } while(0);
  27573. $44 = !($$079 <= $31);
  27574. $45 = !($$077 <= $31);
  27575. $or$cond81 = $44 | $45;
  27576. if (!($or$cond81)) {
  27577. $46 = ((($2)) + 16|0);
  27578. $47 = +HEAPF32[$46>>2];
  27579. $48 = $$0 - $$078;
  27580. $49 = $48 * $47;
  27581. $50 = (($0) + ($1<<2)|0);
  27582. $51 = +HEAPF32[$50>>2];
  27583. $52 = $51 + $49;
  27584. HEAPF32[$50>>2] = $52;
  27585. return;
  27586. }
  27587. $53 = !($$079 >= $34);
  27588. $54 = !($$077 >= $34);
  27589. $or$cond82 = $53 | $54;
  27590. if (!($or$cond82)) {
  27591. return;
  27592. }
  27593. $55 = !($$079 >= $31);
  27594. $56 = !($$079 <= $34);
  27595. $or$cond83 = $55 | $56;
  27596. $57 = !($$077 >= $31);
  27597. $or$cond84 = $or$cond83 | $57;
  27598. $58 = !($$077 <= $34);
  27599. $or$cond85 = $58 | $or$cond84;
  27600. if ($or$cond85) {
  27601. ___assert_fail((12959|0),(12615|0),2573,(12860|0));
  27602. // unreachable;
  27603. }
  27604. $59 = ((($2)) + 16|0);
  27605. $60 = +HEAPF32[$59>>2];
  27606. $61 = $$0 - $$078;
  27607. $62 = $61 * $60;
  27608. $63 = $$079 - $31;
  27609. $64 = $$077 - $31;
  27610. $65 = $63 + $64;
  27611. $66 = $65 * 0.5;
  27612. $67 = 1.0 - $66;
  27613. $68 = $67 * $62;
  27614. $69 = (($0) + ($1<<2)|0);
  27615. $70 = +HEAPF32[$69>>2];
  27616. $71 = $70 + $68;
  27617. HEAPF32[$69>>2] = $71;
  27618. return;
  27619. }
  27620. function _stbtt__hheap_alloc($0) {
  27621. $0 = $0|0;
  27622. 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;
  27623. sp = STACKTOP;
  27624. $1 = ((($0)) + 4|0);
  27625. $2 = HEAP32[$1>>2]|0;
  27626. $3 = ($2|0)==(0|0);
  27627. if (!($3)) {
  27628. $4 = HEAP32[$2>>2]|0;
  27629. HEAP32[$1>>2] = $4;
  27630. $$1 = $2;
  27631. return ($$1|0);
  27632. }
  27633. $5 = ((($0)) + 8|0);
  27634. $6 = HEAP32[$5>>2]|0;
  27635. $7 = ($6|0)==(0);
  27636. do {
  27637. if ($7) {
  27638. $8 = (_malloc(56004)|0);
  27639. $9 = ($8|0)==(0|0);
  27640. if ($9) {
  27641. $$1 = 0;
  27642. return ($$1|0);
  27643. } else {
  27644. $10 = HEAP32[$0>>2]|0;
  27645. HEAP32[$8>>2] = $10;
  27646. HEAP32[$0>>2] = $8;
  27647. HEAP32[$5>>2] = 2000;
  27648. break;
  27649. }
  27650. }
  27651. } while(0);
  27652. $11 = HEAP32[$5>>2]|0;
  27653. $12 = (($11) + -1)|0;
  27654. HEAP32[$5>>2] = $12;
  27655. $13 = HEAP32[$0>>2]|0;
  27656. $14 = ($12*28)|0;
  27657. $15 = (($13) + ($14)|0);
  27658. $$1 = $15;
  27659. return ($$1|0);
  27660. }
  27661. function _stbtt__sort_edges_quicksort($0,$1) {
  27662. $0 = $0|0;
  27663. $1 = $1|0;
  27664. 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;
  27665. 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;
  27666. var $8 = 0, $9 = 0.0, $tmp = 0, label = 0, sp = 0;
  27667. sp = STACKTOP;
  27668. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  27669. $2 = sp;
  27670. $3 = ($1|0)>(12);
  27671. if (!($3)) {
  27672. STACKTOP = sp;return;
  27673. }
  27674. $$08390 = $1;$$091 = $0;
  27675. while(1) {
  27676. $4 = $$08390 >>> 1;
  27677. $5 = ((($$091)) + 4|0);
  27678. $6 = +HEAPF32[$5>>2];
  27679. $7 = (($$091) + (($4*20)|0)|0);
  27680. $8 = (((($$091) + (($4*20)|0)|0)) + 4|0);
  27681. $9 = +HEAPF32[$8>>2];
  27682. $10 = $6 < $9;
  27683. $11 = (($$08390) + -1)|0;
  27684. $12 = (((($$091) + (($11*20)|0)|0)) + 4|0);
  27685. $13 = +HEAPF32[$12>>2];
  27686. $14 = $9 < $13;
  27687. $15 = $10 ^ $14;
  27688. $16 = $6 < $13;
  27689. $tmp = $16 ^ $14;
  27690. $17 = $tmp ? $11 : 0;
  27691. $18 = (($$091) + (($17*20)|0)|0);
  27692. if ($15) {
  27693. ;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;
  27694. ;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;
  27695. ;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;
  27696. }
  27697. ;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;
  27698. ;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;
  27699. ;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;
  27700. $$079 = $11;$$081 = 1;
  27701. while(1) {
  27702. $19 = +HEAPF32[$5>>2];
  27703. $$182 = $$081;
  27704. while(1) {
  27705. $20 = (((($$091) + (($$182*20)|0)|0)) + 4|0);
  27706. $21 = +HEAPF32[$20>>2];
  27707. $22 = $21 < $19;
  27708. $23 = (($$182) + 1)|0;
  27709. if ($22) {
  27710. $$182 = $23;
  27711. } else {
  27712. $$180 = $$079;
  27713. break;
  27714. }
  27715. }
  27716. while(1) {
  27717. $24 = (((($$091) + (($$180*20)|0)|0)) + 4|0);
  27718. $25 = +HEAPF32[$24>>2];
  27719. $26 = $19 < $25;
  27720. $27 = (($$180) + -1)|0;
  27721. if ($26) {
  27722. $$180 = $27;
  27723. } else {
  27724. break;
  27725. }
  27726. }
  27727. $28 = (($$091) + (($$182*20)|0)|0);
  27728. $29 = ($$182|0)<($$180|0);
  27729. if (!($29)) {
  27730. break;
  27731. }
  27732. $30 = (($$091) + (($$180*20)|0)|0);
  27733. ;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;
  27734. ;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;
  27735. ;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;
  27736. $31 = (($$182) + 1)|0;
  27737. $32 = (($$180) + -1)|0;
  27738. $$079 = $32;$$081 = $31;
  27739. }
  27740. $33 = (($$08390) - ($$182))|0;
  27741. $34 = ($$180|0)<($33|0);
  27742. if ($34) {
  27743. _stbtt__sort_edges_quicksort($$091,$$180);
  27744. $$1 = $28;$$184 = $33;
  27745. } else {
  27746. _stbtt__sort_edges_quicksort($28,$33);
  27747. $$1 = $$091;$$184 = $$180;
  27748. }
  27749. $35 = ($$184|0)>(12);
  27750. if ($35) {
  27751. $$08390 = $$184;$$091 = $$1;
  27752. } else {
  27753. break;
  27754. }
  27755. }
  27756. STACKTOP = sp;return;
  27757. }
  27758. function _stbtt__sort_edges_ins_sort($0,$1) {
  27759. $0 = $0|0;
  27760. $1 = $1|0;
  27761. 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;
  27762. var $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
  27763. sp = STACKTOP;
  27764. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27765. $$sroa$5 = sp;
  27766. $2 = ($1|0)>(1);
  27767. if (!($2)) {
  27768. STACKTOP = sp;return;
  27769. }
  27770. $$03251 = 1;
  27771. while(1) {
  27772. $3 = (($0) + (($$03251*20)|0)|0);
  27773. $$sroa$0$0$copyload48 = HEAP32[$3>>2]|0;
  27774. $$sroa$4$0$$sroa_idx37 = (((($0) + (($$03251*20)|0)|0)) + 4|0);
  27775. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx37>>2];
  27776. $$sroa$5$0$$sroa_idx = (((($0) + (($$03251*20)|0)|0)) + 8|0);
  27777. ;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;
  27778. $$033 = $$03251;
  27779. while(1) {
  27780. $4 = (($$033) + -1)|0;
  27781. $5 = (((($0) + (($4*20)|0)|0)) + 4|0);
  27782. $6 = +HEAPF32[$5>>2];
  27783. $7 = $$sroa$4$0$copyload < $6;
  27784. if (!($7)) {
  27785. $$2$ph = $$033;
  27786. break;
  27787. }
  27788. $8 = (($0) + (($4*20)|0)|0);
  27789. $9 = (($0) + (($$033*20)|0)|0);
  27790. ;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;
  27791. $10 = ($$033|0)>(1);
  27792. if ($10) {
  27793. $$033 = $4;
  27794. } else {
  27795. $$2$ph = $4;
  27796. break;
  27797. }
  27798. }
  27799. $11 = ($$03251|0)==($$2$ph|0);
  27800. if (!($11)) {
  27801. $$sroa$5$0$$sroa_idx42 = (((($0) + (($$2$ph*20)|0)|0)) + 8|0);
  27802. $$sroa$4$0$$sroa_idx38 = (((($0) + (($$2$ph*20)|0)|0)) + 4|0);
  27803. $12 = (($0) + (($$2$ph*20)|0)|0);
  27804. HEAP32[$12>>2] = $$sroa$0$0$copyload48;
  27805. HEAPF32[$$sroa$4$0$$sroa_idx38>>2] = $$sroa$4$0$copyload;
  27806. ;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;
  27807. }
  27808. $13 = (($$03251) + 1)|0;
  27809. $exitcond = ($13|0)==($1|0);
  27810. if ($exitcond) {
  27811. break;
  27812. } else {
  27813. $$03251 = $13;
  27814. }
  27815. }
  27816. STACKTOP = sp;return;
  27817. }
  27818. function _stbtt__add_point($0,$1,$2,$3) {
  27819. $0 = $0|0;
  27820. $1 = $1|0;
  27821. $2 = +$2;
  27822. $3 = +$3;
  27823. var $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  27824. sp = STACKTOP;
  27825. $4 = ($0|0)==(0|0);
  27826. if ($4) {
  27827. return;
  27828. }
  27829. $5 = (((($0) + ($1<<3)|0)) + 4|0);
  27830. $6 = (($0) + ($1<<3)|0);
  27831. HEAPF32[$6>>2] = $2;
  27832. HEAPF32[$5>>2] = $3;
  27833. return;
  27834. }
  27835. function _stbtt__tesselate_curve($0,$1,$2,$3,$4,$5,$6,$7,$8,$9) {
  27836. $0 = $0|0;
  27837. $1 = $1|0;
  27838. $2 = +$2;
  27839. $3 = +$3;
  27840. $4 = +$4;
  27841. $5 = +$5;
  27842. $6 = +$6;
  27843. $7 = +$7;
  27844. $8 = +$8;
  27845. $9 = $9|0;
  27846. 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;
  27847. 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;
  27848. 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;
  27849. sp = STACKTOP;
  27850. $10 = $4 * 2.0;
  27851. $11 = $10 + $2;
  27852. $12 = $11 + $6;
  27853. $13 = $12 * 0.25;
  27854. $14 = $5 * 2.0;
  27855. $15 = $14 + $3;
  27856. $16 = $15 + $7;
  27857. $17 = $16 * 0.25;
  27858. $18 = ($9|0)>(16);
  27859. if ($18) {
  27860. return;
  27861. }
  27862. $19 = $7 + $3;
  27863. $20 = $19 * 0.5;
  27864. $21 = $20 - $17;
  27865. $22 = $6 + $2;
  27866. $23 = $22 * 0.5;
  27867. $24 = $23 - $13;
  27868. $$tr210 = $2;$$tr311 = $3;$$tr412 = $4;$$tr513 = $5;$$tr914 = $9;$26 = $24;$28 = $21;$36 = $13;$37 = $17;
  27869. while(1) {
  27870. $25 = $26 * $26;
  27871. $27 = $28 * $28;
  27872. $29 = $25 + $27;
  27873. $30 = $29 > $8;
  27874. if (!($30)) {
  27875. break;
  27876. }
  27877. $31 = $$tr210 + $$tr412;
  27878. $32 = $31 * 0.5;
  27879. $33 = $$tr311 + $$tr513;
  27880. $34 = $33 * 0.5;
  27881. $35 = (($$tr914) + 1)|0;
  27882. _stbtt__tesselate_curve($0,$1,$$tr210,$$tr311,$32,$34,$36,$37,$8,$35);
  27883. $38 = $$tr412 + $6;
  27884. $39 = $38 * 0.5;
  27885. $40 = $$tr513 + $7;
  27886. $41 = $40 * 0.5;
  27887. $42 = $39 * 2.0;
  27888. $43 = $36 + $42;
  27889. $44 = $43 + $6;
  27890. $45 = $44 * 0.25;
  27891. $46 = $41 * 2.0;
  27892. $47 = $37 + $46;
  27893. $48 = $47 + $7;
  27894. $49 = $48 * 0.25;
  27895. $50 = $36 + $6;
  27896. $51 = $50 * 0.5;
  27897. $52 = $51 - $45;
  27898. $53 = $37 + $7;
  27899. $54 = $53 * 0.5;
  27900. $55 = $54 - $49;
  27901. $56 = ($$tr914|0)>(15);
  27902. if ($56) {
  27903. label = 6;
  27904. break;
  27905. } else {
  27906. $$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;
  27907. }
  27908. }
  27909. if ((label|0) == 6) {
  27910. return;
  27911. }
  27912. $57 = HEAP32[$1>>2]|0;
  27913. _stbtt__add_point($0,$57,$6,$7);
  27914. $58 = HEAP32[$1>>2]|0;
  27915. $59 = (($58) + 1)|0;
  27916. HEAP32[$1>>2] = $59;
  27917. return;
  27918. }
  27919. function _stbtt__tesselate_cubic($0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) {
  27920. $0 = $0|0;
  27921. $1 = $1|0;
  27922. $2 = +$2;
  27923. $3 = +$3;
  27924. $4 = +$4;
  27925. $5 = +$5;
  27926. $6 = +$6;
  27927. $7 = +$7;
  27928. $8 = +$8;
  27929. $9 = +$9;
  27930. $10 = +$10;
  27931. $11 = $11|0;
  27932. 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;
  27933. 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;
  27934. 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;
  27935. 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;
  27936. sp = STACKTOP;
  27937. $$tr138 = $2;$$tr139 = $3;$$tr140 = $4;$$tr141 = $5;$$tr142 = $6;$$tr143 = $7;$$tr147 = $11;
  27938. while(1) {
  27939. $12 = $$tr140 - $$tr138;
  27940. $13 = $$tr141 - $$tr139;
  27941. $14 = $$tr142 - $$tr140;
  27942. $15 = $$tr143 - $$tr141;
  27943. $16 = $8 - $$tr142;
  27944. $17 = $9 - $$tr143;
  27945. $18 = $8 - $$tr138;
  27946. $19 = $9 - $$tr139;
  27947. $20 = $12 * $12;
  27948. $21 = $13 * $13;
  27949. $22 = $20 + $21;
  27950. $23 = $22;
  27951. $24 = (+Math_sqrt((+$23)));
  27952. $25 = $14 * $14;
  27953. $26 = $15 * $15;
  27954. $27 = $25 + $26;
  27955. $28 = $27;
  27956. $29 = (+Math_sqrt((+$28)));
  27957. $30 = $24 + $29;
  27958. $31 = $16 * $16;
  27959. $32 = $17 * $17;
  27960. $33 = $31 + $32;
  27961. $34 = $33;
  27962. $35 = (+Math_sqrt((+$34)));
  27963. $36 = $30 + $35;
  27964. $37 = $36;
  27965. $38 = $18 * $18;
  27966. $39 = $19 * $19;
  27967. $40 = $38 + $39;
  27968. $sqrtf = (+Math_sqrt((+$40)));
  27969. $41 = ($$tr147|0)>(16);
  27970. if ($41) {
  27971. label = 6;
  27972. break;
  27973. }
  27974. $42 = $37 * $37;
  27975. $43 = $sqrtf * $sqrtf;
  27976. $44 = $42 - $43;
  27977. $45 = $44 > $10;
  27978. if (!($45)) {
  27979. break;
  27980. }
  27981. $46 = $$tr138 + $$tr140;
  27982. $47 = $46 * 0.5;
  27983. $48 = $$tr139 + $$tr141;
  27984. $49 = $48 * 0.5;
  27985. $50 = $$tr140 + $$tr142;
  27986. $51 = $50 * 0.5;
  27987. $52 = $$tr141 + $$tr143;
  27988. $53 = $52 * 0.5;
  27989. $54 = $$tr142 + $8;
  27990. $55 = $54 * 0.5;
  27991. $56 = $$tr143 + $9;
  27992. $57 = $56 * 0.5;
  27993. $58 = $47 + $51;
  27994. $59 = $58 * 0.5;
  27995. $60 = $49 + $53;
  27996. $61 = $60 * 0.5;
  27997. $62 = $51 + $55;
  27998. $63 = $62 * 0.5;
  27999. $64 = $53 + $57;
  28000. $65 = $64 * 0.5;
  28001. $66 = $59 + $63;
  28002. $67 = $66 * 0.5;
  28003. $68 = $61 + $65;
  28004. $69 = $68 * 0.5;
  28005. $70 = (($$tr147) + 1)|0;
  28006. _stbtt__tesselate_cubic($0,$1,$$tr138,$$tr139,$47,$49,$59,$61,$67,$69,$10,$70);
  28007. $$tr138 = $67;$$tr139 = $69;$$tr140 = $63;$$tr141 = $65;$$tr142 = $55;$$tr143 = $57;$$tr147 = $70;
  28008. }
  28009. if ((label|0) == 6) {
  28010. return;
  28011. }
  28012. $71 = HEAP32[$1>>2]|0;
  28013. _stbtt__add_point($0,$71,$8,$9);
  28014. $72 = HEAP32[$1>>2]|0;
  28015. $73 = (($72) + 1)|0;
  28016. HEAP32[$1>>2] = $73;
  28017. return;
  28018. }
  28019. function _stbtt_GetGlyphBox($0,$1,$2,$3,$4,$5) {
  28020. $0 = $0|0;
  28021. $1 = $1|0;
  28022. $2 = $2|0;
  28023. $3 = $3|0;
  28024. $4 = $4|0;
  28025. $5 = $5|0;
  28026. 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;
  28027. 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;
  28028. sp = STACKTOP;
  28029. $6 = ((($0)) + 56|0);
  28030. $7 = HEAP32[$6>>2]|0;
  28031. $8 = ($7|0)==(0);
  28032. if (!($8)) {
  28033. _stbtt__GetGlyphInfoT2($0,$1,$2,$3,$4,$5);
  28034. $$1 = 1;
  28035. return ($$1|0);
  28036. }
  28037. $9 = (_stbtt__GetGlyfOffset($0,$1)|0);
  28038. $10 = ($9|0)<(0);
  28039. if ($10) {
  28040. $$1 = 0;
  28041. return ($$1|0);
  28042. }
  28043. $11 = ($2|0)==(0|0);
  28044. if (!($11)) {
  28045. $12 = ((($0)) + 4|0);
  28046. $13 = HEAP32[$12>>2]|0;
  28047. $14 = (($13) + ($9)|0);
  28048. $15 = ((($14)) + 2|0);
  28049. $16 = (_ttSHORT($15)|0);
  28050. $17 = $16 << 16 >> 16;
  28051. HEAP32[$2>>2] = $17;
  28052. }
  28053. $18 = ($3|0)==(0|0);
  28054. if (!($18)) {
  28055. $19 = ((($0)) + 4|0);
  28056. $20 = HEAP32[$19>>2]|0;
  28057. $21 = (($20) + ($9)|0);
  28058. $22 = ((($21)) + 4|0);
  28059. $23 = (_ttSHORT($22)|0);
  28060. $24 = $23 << 16 >> 16;
  28061. HEAP32[$3>>2] = $24;
  28062. }
  28063. $25 = ($4|0)==(0|0);
  28064. if (!($25)) {
  28065. $26 = ((($0)) + 4|0);
  28066. $27 = HEAP32[$26>>2]|0;
  28067. $28 = (($27) + ($9)|0);
  28068. $29 = ((($28)) + 6|0);
  28069. $30 = (_ttSHORT($29)|0);
  28070. $31 = $30 << 16 >> 16;
  28071. HEAP32[$4>>2] = $31;
  28072. }
  28073. $32 = ($5|0)==(0|0);
  28074. if ($32) {
  28075. $$1 = 1;
  28076. return ($$1|0);
  28077. }
  28078. $33 = ((($0)) + 4|0);
  28079. $34 = HEAP32[$33>>2]|0;
  28080. $35 = (($34) + ($9)|0);
  28081. $36 = ((($35)) + 8|0);
  28082. $37 = (_ttSHORT($36)|0);
  28083. $38 = $37 << 16 >> 16;
  28084. HEAP32[$5>>2] = $38;
  28085. $$1 = 1;
  28086. return ($$1|0);
  28087. }
  28088. function _stbtt__GetGlyphInfoT2($0,$1,$2,$3,$4,$5) {
  28089. $0 = $0|0;
  28090. $1 = $1|0;
  28091. $2 = $2|0;
  28092. $3 = $3|0;
  28093. $4 = $4|0;
  28094. $5 = $5|0;
  28095. 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;
  28096. var stop = 0;
  28097. sp = STACKTOP;
  28098. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  28099. $6 = sp;
  28100. $7 = ((($6)) + 4|0);
  28101. dest=$7; stop=dest+44|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  28102. HEAP32[$6>>2] = 1;
  28103. $8 = (_stbtt__run_charstring($0,$1,$6)|0);
  28104. $9 = ($2|0)==(0|0);
  28105. $10 = ($8|0)!=(0);
  28106. if ($9) {
  28107. STACKTOP = sp;return;
  28108. }
  28109. $11 = ((($6)) + 24|0);
  28110. $12 = HEAP32[$11>>2]|0;
  28111. $13 = $10 ? $12 : 0;
  28112. HEAP32[$2>>2] = $13;
  28113. $14 = ((($6)) + 32|0);
  28114. $15 = HEAP32[$14>>2]|0;
  28115. $16 = $10 ? $15 : 0;
  28116. HEAP32[$3>>2] = $16;
  28117. $17 = ((($6)) + 28|0);
  28118. $18 = HEAP32[$17>>2]|0;
  28119. $19 = $10 ? $18 : 0;
  28120. HEAP32[$4>>2] = $19;
  28121. $20 = ((($6)) + 36|0);
  28122. $21 = HEAP32[$20>>2]|0;
  28123. $22 = $10 ? $21 : 0;
  28124. HEAP32[$5>>2] = $22;
  28125. STACKTOP = sp;return;
  28126. }
  28127. function _stbtt__GetGlyfOffset($0,$1) {
  28128. $0 = $0|0;
  28129. $1 = $1|0;
  28130. 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;
  28131. 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;
  28132. sp = STACKTOP;
  28133. $2 = ((($0)) + 56|0);
  28134. $3 = HEAP32[$2>>2]|0;
  28135. $4 = ($3|0)==(0);
  28136. if (!($4)) {
  28137. ___assert_fail((13038|0),(12615|0),1440,(13054|0));
  28138. // unreachable;
  28139. }
  28140. $5 = ((($0)) + 12|0);
  28141. $6 = HEAP32[$5>>2]|0;
  28142. $7 = ($6|0)>($1|0);
  28143. if (!($7)) {
  28144. $$024 = -1;
  28145. return ($$024|0);
  28146. }
  28147. $8 = ((($0)) + 44|0);
  28148. $9 = HEAP32[$8>>2]|0;
  28149. $10 = ($9|0)>(1);
  28150. if ($10) {
  28151. $$024 = -1;
  28152. return ($$024|0);
  28153. }
  28154. $11 = ($9|0)==(0);
  28155. $12 = ((($0)) + 24|0);
  28156. $13 = HEAP32[$12>>2]|0;
  28157. $14 = ((($0)) + 4|0);
  28158. $15 = HEAP32[$14>>2]|0;
  28159. $16 = ((($0)) + 16|0);
  28160. $17 = HEAP32[$16>>2]|0;
  28161. $18 = (($15) + ($17)|0);
  28162. if ($11) {
  28163. $19 = $1 << 1;
  28164. $20 = (($18) + ($19)|0);
  28165. $21 = (_ttUSHORT($20)|0);
  28166. $22 = $21&65535;
  28167. $23 = $22 << 1;
  28168. $24 = ((($20)) + 2|0);
  28169. $25 = (_ttUSHORT($24)|0);
  28170. $26 = $25&65535;
  28171. $27 = $26 << 1;
  28172. $$pn = $23;$$sink = $27;
  28173. } else {
  28174. $28 = $1 << 2;
  28175. $29 = (($18) + ($28)|0);
  28176. $30 = (_ttULONG($29)|0);
  28177. $31 = ((($29)) + 4|0);
  28178. $32 = (_ttULONG($31)|0);
  28179. $$pn = $30;$$sink = $32;
  28180. }
  28181. $33 = (($$sink) + ($13))|0;
  28182. $$023 = (($$pn) + ($13))|0;
  28183. $34 = ($$023|0)==($33|0);
  28184. $35 = $34 ? -1 : $$023;
  28185. $$024 = $35;
  28186. return ($$024|0);
  28187. }
  28188. function _ttSHORT($0) {
  28189. $0 = $0|0;
  28190. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  28191. sp = STACKTOP;
  28192. $1 = HEAP8[$0>>0]|0;
  28193. $2 = $1&255;
  28194. $3 = $2 << 8;
  28195. $4 = ((($0)) + 1|0);
  28196. $5 = HEAP8[$4>>0]|0;
  28197. $6 = $5&255;
  28198. $7 = $3 | $6;
  28199. $8 = $7&65535;
  28200. return ($8|0);
  28201. }
  28202. function _ttUSHORT($0) {
  28203. $0 = $0|0;
  28204. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  28205. sp = STACKTOP;
  28206. $1 = HEAP8[$0>>0]|0;
  28207. $2 = $1&255;
  28208. $3 = $2 << 8;
  28209. $4 = ((($0)) + 1|0);
  28210. $5 = HEAP8[$4>>0]|0;
  28211. $6 = $5&255;
  28212. $7 = $3 | $6;
  28213. $8 = $7&65535;
  28214. return ($8|0);
  28215. }
  28216. function _ttULONG($0) {
  28217. $0 = $0|0;
  28218. 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;
  28219. sp = STACKTOP;
  28220. $1 = HEAP8[$0>>0]|0;
  28221. $2 = $1&255;
  28222. $3 = $2 << 24;
  28223. $4 = ((($0)) + 1|0);
  28224. $5 = HEAP8[$4>>0]|0;
  28225. $6 = $5&255;
  28226. $7 = $6 << 16;
  28227. $8 = $7 | $3;
  28228. $9 = ((($0)) + 2|0);
  28229. $10 = HEAP8[$9>>0]|0;
  28230. $11 = $10&255;
  28231. $12 = $11 << 8;
  28232. $13 = $8 | $12;
  28233. $14 = ((($0)) + 3|0);
  28234. $15 = HEAP8[$14>>0]|0;
  28235. $16 = $15&255;
  28236. $17 = $13 | $16;
  28237. return ($17|0);
  28238. }
  28239. function _stbtt__run_charstring($0,$1,$2) {
  28240. $0 = $0|0;
  28241. $1 = $1|0;
  28242. $2 = $2|0;
  28243. 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;
  28244. 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;
  28245. 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;
  28246. 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;
  28247. 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;
  28248. 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;
  28249. 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;
  28250. 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;
  28251. 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;
  28252. 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;
  28253. 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;
  28254. 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;
  28255. 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;
  28256. 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;
  28257. 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;
  28258. 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;
  28259. 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;
  28260. 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;
  28261. sp = STACKTOP;
  28262. STACKTOP = STACKTOP + 368|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(368|0);
  28263. $$byval_copy1 = sp + 352|0;
  28264. $3 = sp + 160|0;
  28265. $4 = sp + 40|0;
  28266. $5 = sp + 24|0;
  28267. $6 = sp;
  28268. $7 = sp + 12|0;
  28269. $8 = ((($0)) + 84|0);
  28270. ;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;
  28271. $9 = ((($0)) + 60|0);
  28272. ;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;
  28273. _stbtt__cff_index_get($6,$$byval_copy1,$1);
  28274. $10 = ((($6)) + 4|0);
  28275. $11 = HEAP32[$10>>2]|0;
  28276. $12 = ((($6)) + 8|0);
  28277. $13 = HEAP32[$12>>2]|0;
  28278. $14 = ($11|0)<($13|0);
  28279. if (!($14)) {
  28280. $$3 = 0;
  28281. STACKTOP = sp;return ($$3|0);
  28282. }
  28283. $15 = ((($0)) + 116|0);
  28284. $16 = ((($0)) + 72|0);
  28285. $17 = ((($3)) + 4|0);
  28286. $18 = ((($3)) + 8|0);
  28287. $19 = ((($3)) + 12|0);
  28288. $20 = ((($3)) + 16|0);
  28289. $21 = ((($3)) + 20|0);
  28290. $22 = ((($3)) + 24|0);
  28291. $23 = ((($3)) + 4|0);
  28292. $24 = ((($3)) + 8|0);
  28293. $25 = ((($3)) + 12|0);
  28294. $26 = ((($3)) + 16|0);
  28295. $27 = ((($3)) + 20|0);
  28296. $28 = ((($3)) + 24|0);
  28297. $29 = ((($3)) + 28|0);
  28298. $30 = ((($3)) + 32|0);
  28299. $31 = ((($3)) + 36|0);
  28300. $32 = ((($3)) + 40|0);
  28301. $33 = ((($3)) + 44|0);
  28302. $34 = ((($3)) + 4|0);
  28303. $35 = ((($3)) + 8|0);
  28304. $36 = ((($3)) + 12|0);
  28305. $37 = ((($3)) + 16|0);
  28306. $38 = ((($3)) + 20|0);
  28307. $39 = ((($3)) + 24|0);
  28308. $40 = ((($3)) + 28|0);
  28309. $41 = ((($3)) + 32|0);
  28310. $42 = ((($3)) + 4|0);
  28311. $43 = ((($3)) + 8|0);
  28312. $44 = ((($3)) + 12|0);
  28313. $45 = ((($3)) + 16|0);
  28314. $46 = ((($3)) + 20|0);
  28315. $47 = ((($3)) + 24|0);
  28316. $48 = ((($3)) + 28|0);
  28317. $49 = ((($3)) + 32|0);
  28318. $50 = ((($3)) + 36|0);
  28319. $51 = ((($3)) + 40|0);
  28320. $$0274335 = 1;$$0276334 = 0;$$0285333 = 0;$$0288332 = 0;$$0294331 = 0;
  28321. L4: while(1) {
  28322. $52 = (_stbtt__buf_get8($6)|0);
  28323. L6: do {
  28324. switch ($52<<24>>24) {
  28325. case 14: {
  28326. label = 63;
  28327. break L4;
  28328. break;
  28329. }
  28330. case 20: case 19: {
  28331. $53 = ($$0274335|0)==(0);
  28332. if ($53) {
  28333. $$1277 = $$0276334;
  28334. } else {
  28335. $54 = (($$0294331|0) / 2)&-1;
  28336. $55 = (($$0276334) + ($54))|0;
  28337. $$1277 = $55;
  28338. }
  28339. $56 = (($$1277) + 7)|0;
  28340. $57 = (($56|0) / 8)&-1;
  28341. _stbtt__buf_skip($6,$57);
  28342. $$0274$be = 0;$$0276$be = $$1277;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28343. label = 73;
  28344. break;
  28345. }
  28346. case 23: case 18: case 3: case 1: {
  28347. $58 = (($$0294331|0) / 2)&-1;
  28348. $59 = (($$0276334) + ($58))|0;
  28349. $$0274$be = $$0274335;$$0276$be = $59;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28350. label = 73;
  28351. break;
  28352. }
  28353. case 21: {
  28354. $60 = ($$0294331|0)<(2);
  28355. if ($60) {
  28356. $$3 = 0;
  28357. label = 80;
  28358. break L4;
  28359. }
  28360. $61 = (($$0294331) + -2)|0;
  28361. $62 = (($3) + ($61<<2)|0);
  28362. $63 = +HEAPF32[$62>>2];
  28363. $64 = (($$0294331) + -1)|0;
  28364. $65 = (($3) + ($64<<2)|0);
  28365. $66 = +HEAPF32[$65>>2];
  28366. _stbtt__csctx_rmove_to($2,$63,$66);
  28367. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28368. label = 73;
  28369. break;
  28370. }
  28371. case 4: {
  28372. $67 = ($$0294331|0)<(1);
  28373. if ($67) {
  28374. $$3 = 0;
  28375. label = 80;
  28376. break L4;
  28377. }
  28378. $68 = (($$0294331) + -1)|0;
  28379. $69 = (($3) + ($68<<2)|0);
  28380. $70 = +HEAPF32[$69>>2];
  28381. _stbtt__csctx_rmove_to($2,0.0,$70);
  28382. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28383. label = 73;
  28384. break;
  28385. }
  28386. case 22: {
  28387. $71 = ($$0294331|0)<(1);
  28388. if ($71) {
  28389. $$3 = 0;
  28390. label = 80;
  28391. break L4;
  28392. }
  28393. $72 = (($$0294331) + -1)|0;
  28394. $73 = (($3) + ($72<<2)|0);
  28395. $74 = +HEAPF32[$73>>2];
  28396. _stbtt__csctx_rmove_to($2,$74,0.0);
  28397. $$0274$be = 0;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28398. label = 73;
  28399. break;
  28400. }
  28401. case 5: {
  28402. $75 = ($$0294331|0)<(2);
  28403. if ($75) {
  28404. $$3 = 0;
  28405. label = 80;
  28406. break L4;
  28407. } else {
  28408. $$0290329 = 0;$79 = 1;
  28409. }
  28410. while(1) {
  28411. $76 = (($3) + ($$0290329<<2)|0);
  28412. $77 = +HEAPF32[$76>>2];
  28413. $78 = (($3) + ($79<<2)|0);
  28414. $80 = +HEAPF32[$78>>2];
  28415. _stbtt__csctx_rline_to($2,$77,$80);
  28416. $81 = (($$0290329) + 2)|0;
  28417. $82 = $81 | 1;
  28418. $83 = ($82|0)<($$0294331|0);
  28419. if ($83) {
  28420. $$0290329 = $81;$79 = $82;
  28421. } else {
  28422. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28423. label = 73;
  28424. break;
  28425. }
  28426. }
  28427. break;
  28428. }
  28429. case 7: {
  28430. $84 = ($$0294331|0)<(1);
  28431. if ($84) {
  28432. $$3 = 0;
  28433. label = 80;
  28434. break L4;
  28435. } else {
  28436. $$2292 = 0;
  28437. label = 20;
  28438. }
  28439. break;
  28440. }
  28441. case 6: {
  28442. $85 = ($$0294331|0)<(1);
  28443. if ($85) {
  28444. $$3 = 0;
  28445. label = 80;
  28446. break L4;
  28447. } else {
  28448. $$1291 = 0;
  28449. label = 18;
  28450. }
  28451. break;
  28452. }
  28453. case 31: {
  28454. $94 = ($$0294331|0)<(4);
  28455. if ($94) {
  28456. $$3 = 0;
  28457. label = 80;
  28458. break L4;
  28459. } else {
  28460. $$4 = 0;
  28461. label = 28;
  28462. }
  28463. break;
  28464. }
  28465. case 30: {
  28466. $95 = ($$0294331|0)<(4);
  28467. if ($95) {
  28468. $$3 = 0;
  28469. label = 80;
  28470. break L4;
  28471. } else {
  28472. $$3293 = 0;
  28473. label = 24;
  28474. }
  28475. break;
  28476. }
  28477. case 8: {
  28478. $134 = ($$0294331|0)<(6);
  28479. if ($134) {
  28480. $$3 = 0;
  28481. label = 80;
  28482. break L4;
  28483. } else {
  28484. $$5327 = 0;$150 = 5;
  28485. }
  28486. while(1) {
  28487. $135 = (($3) + ($$5327<<2)|0);
  28488. $136 = +HEAPF32[$135>>2];
  28489. $137 = $$5327 | 1;
  28490. $138 = (($3) + ($137<<2)|0);
  28491. $139 = +HEAPF32[$138>>2];
  28492. $140 = (($$5327) + 2)|0;
  28493. $141 = (($3) + ($140<<2)|0);
  28494. $142 = +HEAPF32[$141>>2];
  28495. $143 = (($$5327) + 3)|0;
  28496. $144 = (($3) + ($143<<2)|0);
  28497. $145 = +HEAPF32[$144>>2];
  28498. $146 = (($$5327) + 4)|0;
  28499. $147 = (($3) + ($146<<2)|0);
  28500. $148 = +HEAPF32[$147>>2];
  28501. $149 = (($3) + ($150<<2)|0);
  28502. $151 = +HEAPF32[$149>>2];
  28503. _stbtt__csctx_rccurve_to($2,$136,$139,$142,$145,$148,$151);
  28504. $152 = (($$5327) + 6)|0;
  28505. $153 = (($$5327) + 11)|0;
  28506. $154 = ($153|0)<($$0294331|0);
  28507. if ($154) {
  28508. $$5327 = $152;$150 = $153;
  28509. } else {
  28510. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28511. label = 73;
  28512. break;
  28513. }
  28514. }
  28515. break;
  28516. }
  28517. case 24: {
  28518. $155 = ($$0294331|0)<(8);
  28519. if ($155) {
  28520. $$3 = 0;
  28521. label = 80;
  28522. break L4;
  28523. }
  28524. $156 = (($$0294331) + -2)|0;
  28525. $157 = ($156|0)>(5);
  28526. if ($157) {
  28527. $$6322 = 0;$161 = 1;$173 = 5;
  28528. while(1) {
  28529. $158 = (($3) + ($$6322<<2)|0);
  28530. $159 = +HEAPF32[$158>>2];
  28531. $160 = (($3) + ($161<<2)|0);
  28532. $162 = +HEAPF32[$160>>2];
  28533. $163 = (($$6322) + 2)|0;
  28534. $164 = (($3) + ($163<<2)|0);
  28535. $165 = +HEAPF32[$164>>2];
  28536. $166 = (($$6322) + 3)|0;
  28537. $167 = (($3) + ($166<<2)|0);
  28538. $168 = +HEAPF32[$167>>2];
  28539. $169 = (($$6322) + 4)|0;
  28540. $170 = (($3) + ($169<<2)|0);
  28541. $171 = +HEAPF32[$170>>2];
  28542. $172 = (($3) + ($173<<2)|0);
  28543. $174 = +HEAPF32[$172>>2];
  28544. _stbtt__csctx_rccurve_to($2,$159,$162,$165,$168,$171,$174);
  28545. $175 = (($$6322) + 6)|0;
  28546. $176 = (($$6322) + 11)|0;
  28547. $177 = ($176|0)<($156|0);
  28548. $178 = $175 | 1;
  28549. if ($177) {
  28550. $$6322 = $175;$161 = $178;$173 = $176;
  28551. } else {
  28552. $$6$lcssa = $175;$$lcssa316 = $178;
  28553. break;
  28554. }
  28555. }
  28556. } else {
  28557. $$6$lcssa = 0;$$lcssa316 = 1;
  28558. }
  28559. $179 = ($$lcssa316|0)<($$0294331|0);
  28560. if (!($179)) {
  28561. $$3 = 0;
  28562. label = 80;
  28563. break L4;
  28564. }
  28565. $180 = (($3) + ($$6$lcssa<<2)|0);
  28566. $181 = +HEAPF32[$180>>2];
  28567. $182 = (($3) + ($$lcssa316<<2)|0);
  28568. $183 = +HEAPF32[$182>>2];
  28569. _stbtt__csctx_rline_to($2,$181,$183);
  28570. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28571. label = 73;
  28572. break;
  28573. }
  28574. case 25: {
  28575. $184 = ($$0294331|0)<(8);
  28576. if ($184) {
  28577. $$3 = 0;
  28578. label = 80;
  28579. break L4;
  28580. }
  28581. $185 = (($$0294331) + -6)|0;
  28582. $186 = ($185|0)>(1);
  28583. if ($186) {
  28584. $$7319 = 0;$190 = 1;
  28585. while(1) {
  28586. $187 = (($3) + ($$7319<<2)|0);
  28587. $188 = +HEAPF32[$187>>2];
  28588. $189 = (($3) + ($190<<2)|0);
  28589. $191 = +HEAPF32[$189>>2];
  28590. _stbtt__csctx_rline_to($2,$188,$191);
  28591. $192 = (($$7319) + 2)|0;
  28592. $193 = $192 | 1;
  28593. $194 = ($193|0)<($185|0);
  28594. if ($194) {
  28595. $$7319 = $192;$190 = $193;
  28596. } else {
  28597. $$7$lcssa = $192;$$lcssa = $193;
  28598. break;
  28599. }
  28600. }
  28601. } else {
  28602. $$7$lcssa = 0;$$lcssa = 1;
  28603. }
  28604. $195 = (($$7$lcssa) + 5)|0;
  28605. $196 = ($195|0)<($$0294331|0);
  28606. if (!($196)) {
  28607. $$3 = 0;
  28608. label = 80;
  28609. break L4;
  28610. }
  28611. $197 = (($3) + ($$7$lcssa<<2)|0);
  28612. $198 = +HEAPF32[$197>>2];
  28613. $199 = (($3) + ($$lcssa<<2)|0);
  28614. $200 = +HEAPF32[$199>>2];
  28615. $201 = (($$7$lcssa) + 2)|0;
  28616. $202 = (($3) + ($201<<2)|0);
  28617. $203 = +HEAPF32[$202>>2];
  28618. $204 = (($$7$lcssa) + 3)|0;
  28619. $205 = (($3) + ($204<<2)|0);
  28620. $206 = +HEAPF32[$205>>2];
  28621. $207 = (($$7$lcssa) + 4)|0;
  28622. $208 = (($3) + ($207<<2)|0);
  28623. $209 = +HEAPF32[$208>>2];
  28624. $210 = (($3) + ($195<<2)|0);
  28625. $211 = +HEAPF32[$210>>2];
  28626. _stbtt__csctx_rccurve_to($2,$198,$200,$203,$206,$209,$211);
  28627. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28628. label = 73;
  28629. break;
  28630. }
  28631. case 27: case 26: {
  28632. $212 = ($$0294331|0)<(4);
  28633. if ($212) {
  28634. $$3 = 0;
  28635. label = 80;
  28636. break L4;
  28637. }
  28638. $213 = $$0294331 & 1;
  28639. $214 = ($213|0)==(0);
  28640. $215 = (($213) + 3)|0;
  28641. $216 = ($215|0)<($$0294331|0);
  28642. if ($216) {
  28643. $not$ = $214 ^ 1;
  28644. $$ = $not$&1;
  28645. $217 = +HEAPF32[$3>>2];
  28646. $$363 = $214 ? 0.0 : $217;
  28647. $218 = ($52<<24>>24)==(27);
  28648. $$0282318 = $$363;$$8317 = $$;$228 = $215;
  28649. while(1) {
  28650. $219 = (($$8317) + 2)|0;
  28651. $220 = (($$8317) + 1)|0;
  28652. $221 = (($3) + ($219<<2)|0);
  28653. $222 = +HEAPF32[$221>>2];
  28654. $223 = (($3) + ($$8317<<2)|0);
  28655. $224 = +HEAPF32[$223>>2];
  28656. $225 = (($3) + ($220<<2)|0);
  28657. $226 = +HEAPF32[$225>>2];
  28658. $227 = (($3) + ($228<<2)|0);
  28659. $229 = +HEAPF32[$227>>2];
  28660. if ($218) {
  28661. _stbtt__csctx_rccurve_to($2,$224,$$0282318,$226,$222,$229,0.0);
  28662. } else {
  28663. _stbtt__csctx_rccurve_to($2,$$0282318,$224,$226,$222,0.0,$229);
  28664. }
  28665. $230 = (($$8317) + 4)|0;
  28666. $231 = (($$8317) + 7)|0;
  28667. $232 = ($231|0)<($$0294331|0);
  28668. if ($232) {
  28669. $$0282318 = 0.0;$$8317 = $230;$228 = $231;
  28670. } else {
  28671. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28672. label = 73;
  28673. break;
  28674. }
  28675. }
  28676. } else {
  28677. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28678. label = 73;
  28679. }
  28680. break;
  28681. }
  28682. case 10: {
  28683. $233 = ($$0285333|0)==(0);
  28684. if ($233) {
  28685. $234 = HEAP32[$15>>2]|0;
  28686. $235 = ($234|0)==(0);
  28687. if ($235) {
  28688. $$1286 = 1;
  28689. label = 54;
  28690. } else {
  28691. _stbtt__cid_get_glyph_subrs($5,$0,$1);
  28692. $$1286 = 1;
  28693. label = 54;
  28694. }
  28695. } else {
  28696. $$1286 = $$0285333;
  28697. label = 54;
  28698. }
  28699. break;
  28700. }
  28701. case 29: {
  28702. $$1286 = $$0285333;
  28703. label = 54;
  28704. break;
  28705. }
  28706. case 11: {
  28707. $247 = ($$0288332|0)<(1);
  28708. if ($247) {
  28709. $$3 = 0;
  28710. label = 80;
  28711. break L4;
  28712. }
  28713. $248 = (($$0288332) + -1)|0;
  28714. $249 = (($4) + (($248*12)|0)|0);
  28715. ;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;
  28716. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $248;$$0294$be = $$0294331;
  28717. label = 73;
  28718. break;
  28719. }
  28720. case 12: {
  28721. $250 = (_stbtt__buf_get8($6)|0);
  28722. switch ($250<<24>>24) {
  28723. case 34: {
  28724. $251 = ($$0294331|0)<(7);
  28725. if ($251) {
  28726. $$3 = 0;
  28727. label = 80;
  28728. break L4;
  28729. }
  28730. $252 = +HEAPF32[$3>>2];
  28731. $253 = +HEAPF32[$17>>2];
  28732. $254 = +HEAPF32[$18>>2];
  28733. $255 = +HEAPF32[$19>>2];
  28734. $256 = +HEAPF32[$20>>2];
  28735. $257 = +HEAPF32[$21>>2];
  28736. $258 = +HEAPF32[$22>>2];
  28737. _stbtt__csctx_rccurve_to($2,$252,0.0,$253,$254,$255,0.0);
  28738. $259 = -$254;
  28739. _stbtt__csctx_rccurve_to($2,$256,0.0,$257,$259,$258,0.0);
  28740. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28741. label = 73;
  28742. break L6;
  28743. break;
  28744. }
  28745. case 35: {
  28746. $260 = ($$0294331|0)<(13);
  28747. if ($260) {
  28748. $$3 = 0;
  28749. label = 80;
  28750. break L4;
  28751. }
  28752. $261 = +HEAPF32[$3>>2];
  28753. $262 = +HEAPF32[$23>>2];
  28754. $263 = +HEAPF32[$24>>2];
  28755. $264 = +HEAPF32[$25>>2];
  28756. $265 = +HEAPF32[$26>>2];
  28757. $266 = +HEAPF32[$27>>2];
  28758. $267 = +HEAPF32[$28>>2];
  28759. $268 = +HEAPF32[$29>>2];
  28760. $269 = +HEAPF32[$30>>2];
  28761. $270 = +HEAPF32[$31>>2];
  28762. $271 = +HEAPF32[$32>>2];
  28763. $272 = +HEAPF32[$33>>2];
  28764. _stbtt__csctx_rccurve_to($2,$261,$262,$263,$264,$265,$266);
  28765. _stbtt__csctx_rccurve_to($2,$267,$268,$269,$270,$271,$272);
  28766. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28767. label = 73;
  28768. break L6;
  28769. break;
  28770. }
  28771. case 36: {
  28772. $273 = ($$0294331|0)<(9);
  28773. if ($273) {
  28774. $$3 = 0;
  28775. label = 80;
  28776. break L4;
  28777. }
  28778. $274 = +HEAPF32[$3>>2];
  28779. $275 = +HEAPF32[$34>>2];
  28780. $276 = +HEAPF32[$35>>2];
  28781. $277 = +HEAPF32[$36>>2];
  28782. $278 = +HEAPF32[$37>>2];
  28783. $279 = +HEAPF32[$38>>2];
  28784. $280 = +HEAPF32[$39>>2];
  28785. $281 = +HEAPF32[$40>>2];
  28786. $282 = +HEAPF32[$41>>2];
  28787. _stbtt__csctx_rccurve_to($2,$274,$275,$276,$277,$278,0.0);
  28788. $283 = $275 + $277;
  28789. $284 = $283 + $281;
  28790. $285 = -$284;
  28791. _stbtt__csctx_rccurve_to($2,$279,0.0,$280,$281,$282,$285);
  28792. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28793. label = 73;
  28794. break L6;
  28795. break;
  28796. }
  28797. case 37: {
  28798. $286 = ($$0294331|0)<(11);
  28799. if ($286) {
  28800. $$3 = 0;
  28801. label = 80;
  28802. break L4;
  28803. }
  28804. $287 = +HEAPF32[$3>>2];
  28805. $288 = +HEAPF32[$42>>2];
  28806. $289 = +HEAPF32[$43>>2];
  28807. $290 = +HEAPF32[$44>>2];
  28808. $291 = +HEAPF32[$45>>2];
  28809. $292 = +HEAPF32[$46>>2];
  28810. $293 = +HEAPF32[$47>>2];
  28811. $294 = +HEAPF32[$48>>2];
  28812. $295 = +HEAPF32[$49>>2];
  28813. $296 = +HEAPF32[$50>>2];
  28814. $297 = +HEAPF32[$51>>2];
  28815. $298 = $287 + $289;
  28816. $299 = $298 + $291;
  28817. $300 = $299 + $293;
  28818. $301 = $300 + $295;
  28819. $302 = $288 + $290;
  28820. $303 = $302 + $292;
  28821. $304 = $303 + $294;
  28822. $305 = $304 + $296;
  28823. $fabsf = (+Math_abs((+$301)));
  28824. $fabsf296 = (+Math_abs((+$305)));
  28825. $306 = $fabsf > $fabsf296;
  28826. $307 = -$305;
  28827. $308 = -$301;
  28828. $$0280 = $306 ? $297 : $308;
  28829. $$0279 = $306 ? $307 : $297;
  28830. _stbtt__csctx_rccurve_to($2,$287,$288,$289,$290,$291,$292);
  28831. _stbtt__csctx_rccurve_to($2,$293,$294,$295,$296,$$0280,$$0279);
  28832. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28833. label = 73;
  28834. break L6;
  28835. break;
  28836. }
  28837. default: {
  28838. $$3 = 0;
  28839. label = 80;
  28840. break L4;
  28841. }
  28842. }
  28843. break;
  28844. }
  28845. case -1: {
  28846. label = 76;
  28847. break;
  28848. }
  28849. case 28: {
  28850. label = 77;
  28851. break;
  28852. }
  28853. default: {
  28854. $312 = ($52&255)<(32);
  28855. $313 = ($52<<24>>24)==(-1);
  28856. $or$cond3 = $312 | $313;
  28857. if ($or$cond3) {
  28858. $$3 = 0;
  28859. label = 80;
  28860. break L4;
  28861. }
  28862. if ($313) {
  28863. label = 76;
  28864. } else {
  28865. label = 77;
  28866. }
  28867. }
  28868. }
  28869. } while(0);
  28870. if ((label|0) == 54) {
  28871. label = 0;
  28872. $236 = ($$0294331|0)<(1);
  28873. if ($236) {
  28874. $$3 = 0;
  28875. label = 80;
  28876. break;
  28877. }
  28878. $237 = (($$0294331) + -1)|0;
  28879. $238 = (($3) + ($237<<2)|0);
  28880. $239 = +HEAPF32[$238>>2];
  28881. $240 = (~~(($239)));
  28882. $241 = ($$0288332|0)>(9);
  28883. if ($241) {
  28884. $$3 = 0;
  28885. label = 80;
  28886. break;
  28887. }
  28888. $242 = (($$0288332) + 1)|0;
  28889. $243 = (($4) + (($$0288332*12)|0)|0);
  28890. ;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;
  28891. $244 = ($52<<24>>24)==(10);
  28892. if ($244) {
  28893. ;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;
  28894. } else {
  28895. ;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;
  28896. }
  28897. ;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;
  28898. _stbtt__get_subr($6,$$byval_copy1,$240);
  28899. $245 = HEAP32[$12>>2]|0;
  28900. $246 = ($245|0)==(0);
  28901. if ($246) {
  28902. $$3 = 0;
  28903. label = 80;
  28904. break;
  28905. }
  28906. HEAP32[$10>>2] = 0;
  28907. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$1286;$$0288$be = $242;$$0294$be = $237;
  28908. label = 73;
  28909. }
  28910. else if ((label|0) == 76) {
  28911. label = 0;
  28912. $314 = (_stbtt__buf_get($6,4)|0);
  28913. $315 = (+($314>>>0));
  28914. $316 = $315 * 1.52587890625E-5;
  28915. $$1283 = $316;
  28916. label = 78;
  28917. }
  28918. else if ((label|0) == 77) {
  28919. label = 0;
  28920. _stbtt__buf_skip($6,-1);
  28921. $317 = (_stbtt__cff_int($6)|0);
  28922. $318 = $317&65535;
  28923. $319 = (+($318<<16>>16));
  28924. $$1283 = $319;
  28925. label = 78;
  28926. }
  28927. if ((label|0) == 78) {
  28928. label = 0;
  28929. $320 = ($$0294331|0)>(47);
  28930. if ($320) {
  28931. $$3 = 0;
  28932. label = 80;
  28933. break;
  28934. }
  28935. $321 = (($$0294331) + 1)|0;
  28936. $322 = (($3) + ($$0294331<<2)|0);
  28937. HEAPF32[$322>>2] = $$1283;
  28938. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = $321;
  28939. label = 73;
  28940. }
  28941. while(1) {
  28942. if ((label|0) == 18) {
  28943. label = 0;
  28944. $86 = ($$1291|0)<($$0294331|0);
  28945. if (!($86)) {
  28946. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28947. label = 73;
  28948. continue;
  28949. }
  28950. $87 = (($3) + ($$1291<<2)|0);
  28951. $88 = +HEAPF32[$87>>2];
  28952. _stbtt__csctx_rline_to($2,$88,0.0);
  28953. $89 = (($$1291) + 1)|0;
  28954. $$2292 = $89;
  28955. label = 20;
  28956. continue;
  28957. }
  28958. else if ((label|0) == 20) {
  28959. label = 0;
  28960. $90 = ($$2292|0)<($$0294331|0);
  28961. if (!($90)) {
  28962. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28963. label = 73;
  28964. continue;
  28965. }
  28966. $91 = (($3) + ($$2292<<2)|0);
  28967. $92 = +HEAPF32[$91>>2];
  28968. _stbtt__csctx_rline_to($2,0.0,$92);
  28969. $93 = (($$2292) + 1)|0;
  28970. $$1291 = $93;
  28971. label = 18;
  28972. continue;
  28973. }
  28974. else if ((label|0) == 24) {
  28975. label = 0;
  28976. $96 = (($$3293) + 3)|0;
  28977. $97 = ($96|0)<($$0294331|0);
  28978. if (!($97)) {
  28979. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  28980. label = 73;
  28981. continue;
  28982. }
  28983. $98 = (($3) + ($$3293<<2)|0);
  28984. $99 = +HEAPF32[$98>>2];
  28985. $100 = (($$3293) + 1)|0;
  28986. $101 = (($3) + ($100<<2)|0);
  28987. $102 = +HEAPF32[$101>>2];
  28988. $103 = (($$3293) + 2)|0;
  28989. $104 = (($3) + ($103<<2)|0);
  28990. $105 = +HEAPF32[$104>>2];
  28991. $106 = (($3) + ($96<<2)|0);
  28992. $107 = +HEAPF32[$106>>2];
  28993. $108 = (($$0294331) - ($$3293))|0;
  28994. $109 = ($108|0)==(5);
  28995. if ($109) {
  28996. $110 = (($$3293) + 4)|0;
  28997. $111 = (($3) + ($110<<2)|0);
  28998. $112 = +HEAPF32[$111>>2];
  28999. $113 = $112;
  29000. } else {
  29001. $113 = 0.0;
  29002. }
  29003. _stbtt__csctx_rccurve_to($2,0.0,$99,$102,$105,$107,$113);
  29004. $114 = (($$3293) + 4)|0;
  29005. $$4 = $114;
  29006. label = 28;
  29007. continue;
  29008. }
  29009. else if ((label|0) == 28) {
  29010. label = 0;
  29011. $115 = (($$4) + 3)|0;
  29012. $116 = ($115|0)<($$0294331|0);
  29013. if (!($116)) {
  29014. $$0274$be = $$0274335;$$0276$be = $$0276334;$$0285$be = $$0285333;$$0288$be = $$0288332;$$0294$be = 0;
  29015. label = 73;
  29016. continue;
  29017. }
  29018. $117 = (($3) + ($$4<<2)|0);
  29019. $118 = +HEAPF32[$117>>2];
  29020. $119 = (($$4) + 1)|0;
  29021. $120 = (($3) + ($119<<2)|0);
  29022. $121 = +HEAPF32[$120>>2];
  29023. $122 = (($$4) + 2)|0;
  29024. $123 = (($3) + ($122<<2)|0);
  29025. $124 = +HEAPF32[$123>>2];
  29026. $125 = (($$0294331) - ($$4))|0;
  29027. $126 = ($125|0)==(5);
  29028. if ($126) {
  29029. $127 = (($$4) + 4)|0;
  29030. $128 = (($3) + ($127<<2)|0);
  29031. $129 = +HEAPF32[$128>>2];
  29032. $132 = $129;
  29033. } else {
  29034. $132 = 0.0;
  29035. }
  29036. $130 = (($3) + ($115<<2)|0);
  29037. $131 = +HEAPF32[$130>>2];
  29038. _stbtt__csctx_rccurve_to($2,$118,0.0,$121,$124,$132,$131);
  29039. $133 = (($$4) + 4)|0;
  29040. $$3293 = $133;
  29041. label = 24;
  29042. continue;
  29043. }
  29044. else if ((label|0) == 73) {
  29045. label = 0;
  29046. $309 = HEAP32[$10>>2]|0;
  29047. $310 = HEAP32[$12>>2]|0;
  29048. $311 = ($309|0)<($310|0);
  29049. if ($311) {
  29050. $$0274335 = $$0274$be;$$0276334 = $$0276$be;$$0285333 = $$0285$be;$$0288332 = $$0288$be;$$0294331 = $$0294$be;
  29051. continue L4;
  29052. } else {
  29053. $$3 = 0;
  29054. label = 80;
  29055. break L4;
  29056. }
  29057. }
  29058. }
  29059. }
  29060. if ((label|0) == 63) {
  29061. _stbtt__csctx_close_shape($2);
  29062. $$3 = 1;
  29063. STACKTOP = sp;return ($$3|0);
  29064. }
  29065. else if ((label|0) == 80) {
  29066. STACKTOP = sp;return ($$3|0);
  29067. }
  29068. return (0)|0;
  29069. }
  29070. function _stbtt__cff_index_get($0,$1,$2) {
  29071. $0 = $0|0;
  29072. $1 = $1|0;
  29073. $2 = $2|0;
  29074. 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;
  29075. sp = STACKTOP;
  29076. _stbtt__buf_seek($1,0);
  29077. $3 = (_stbtt__buf_get($1,2)|0);
  29078. $4 = (_stbtt__buf_get8($1)|0);
  29079. $5 = $4&255;
  29080. $6 = ($2|0)>(-1);
  29081. $7 = ($3|0)>($2|0);
  29082. $or$cond = $6 & $7;
  29083. if (!($or$cond)) {
  29084. ___assert_fail((13280|0),(12615|0),1118,(13300|0));
  29085. // unreachable;
  29086. }
  29087. $$off = (($4) + -1)<<24>>24;
  29088. $8 = ($$off&255)<(4);
  29089. if ($8) {
  29090. $9 = Math_imul($5, $2)|0;
  29091. _stbtt__buf_skip($1,$9);
  29092. $10 = (_stbtt__buf_get($1,$5)|0);
  29093. $11 = (_stbtt__buf_get($1,$5)|0);
  29094. $12 = (($3) + 1)|0;
  29095. $13 = Math_imul($5, $12)|0;
  29096. $14 = (($13) + 2)|0;
  29097. $15 = (($14) + ($10))|0;
  29098. $16 = (($11) - ($10))|0;
  29099. _stbtt__buf_range($0,$1,$15,$16);
  29100. return;
  29101. } else {
  29102. ___assert_fail((13197|0),(12615|0),1119,(13300|0));
  29103. // unreachable;
  29104. }
  29105. }
  29106. function _stbtt__buf_get8($0) {
  29107. $0 = $0|0;
  29108. 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;
  29109. sp = STACKTOP;
  29110. $1 = ((($0)) + 4|0);
  29111. $2 = HEAP32[$1>>2]|0;
  29112. $3 = ((($0)) + 8|0);
  29113. $4 = HEAP32[$3>>2]|0;
  29114. $5 = ($2|0)<($4|0);
  29115. if (!($5)) {
  29116. $$0 = 0;
  29117. return ($$0|0);
  29118. }
  29119. $6 = (($2) + 1)|0;
  29120. $7 = HEAP32[$0>>2]|0;
  29121. HEAP32[$1>>2] = $6;
  29122. $8 = (($7) + ($2)|0);
  29123. $9 = HEAP8[$8>>0]|0;
  29124. $$0 = $9;
  29125. return ($$0|0);
  29126. }
  29127. function _stbtt__buf_skip($0,$1) {
  29128. $0 = $0|0;
  29129. $1 = $1|0;
  29130. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  29131. sp = STACKTOP;
  29132. $2 = ((($0)) + 4|0);
  29133. $3 = HEAP32[$2>>2]|0;
  29134. $4 = (($3) + ($1))|0;
  29135. _stbtt__buf_seek($0,$4);
  29136. return;
  29137. }
  29138. function _stbtt__csctx_rmove_to($0,$1,$2) {
  29139. $0 = $0|0;
  29140. $1 = +$1;
  29141. $2 = +$2;
  29142. 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;
  29143. sp = STACKTOP;
  29144. _stbtt__csctx_close_shape($0);
  29145. $3 = ((($0)) + 16|0);
  29146. $4 = +HEAPF32[$3>>2];
  29147. $5 = $4 + $1;
  29148. HEAPF32[$3>>2] = $5;
  29149. $6 = ((($0)) + 8|0);
  29150. HEAPF32[$6>>2] = $5;
  29151. $7 = ((($0)) + 20|0);
  29152. $8 = +HEAPF32[$7>>2];
  29153. $9 = $8 + $2;
  29154. HEAPF32[$7>>2] = $9;
  29155. $10 = ((($0)) + 12|0);
  29156. HEAPF32[$10>>2] = $9;
  29157. $11 = +HEAPF32[$3>>2];
  29158. $12 = (~~(($11)));
  29159. $13 = (~~(($9)));
  29160. _stbtt__csctx_v($0,1,$12,$13,0,0,0,0);
  29161. return;
  29162. }
  29163. function _stbtt__csctx_rline_to($0,$1,$2) {
  29164. $0 = $0|0;
  29165. $1 = +$1;
  29166. $2 = +$2;
  29167. 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;
  29168. sp = STACKTOP;
  29169. $3 = ((($0)) + 16|0);
  29170. $4 = +HEAPF32[$3>>2];
  29171. $5 = $4 + $1;
  29172. HEAPF32[$3>>2] = $5;
  29173. $6 = ((($0)) + 20|0);
  29174. $7 = +HEAPF32[$6>>2];
  29175. $8 = $7 + $2;
  29176. HEAPF32[$6>>2] = $8;
  29177. $9 = (~~(($5)));
  29178. $10 = (~~(($8)));
  29179. _stbtt__csctx_v($0,2,$9,$10,0,0,0,0);
  29180. return;
  29181. }
  29182. function _stbtt__csctx_rccurve_to($0,$1,$2,$3,$4,$5,$6) {
  29183. $0 = $0|0;
  29184. $1 = +$1;
  29185. $2 = +$2;
  29186. $3 = +$3;
  29187. $4 = +$4;
  29188. $5 = +$5;
  29189. $6 = +$6;
  29190. 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;
  29191. sp = STACKTOP;
  29192. $7 = ((($0)) + 16|0);
  29193. $8 = +HEAPF32[$7>>2];
  29194. $9 = $8 + $1;
  29195. $10 = ((($0)) + 20|0);
  29196. $11 = +HEAPF32[$10>>2];
  29197. $12 = $11 + $2;
  29198. $13 = $9 + $3;
  29199. $14 = $12 + $4;
  29200. $15 = $13 + $5;
  29201. HEAPF32[$7>>2] = $15;
  29202. $16 = $14 + $6;
  29203. HEAPF32[$10>>2] = $16;
  29204. $17 = (~~(($15)));
  29205. $18 = (~~(($16)));
  29206. $19 = (~~(($9)));
  29207. $20 = (~~(($12)));
  29208. $21 = (~~(($13)));
  29209. $22 = (~~(($14)));
  29210. _stbtt__csctx_v($0,4,$17,$18,$19,$20,$21,$22);
  29211. return;
  29212. }
  29213. function _stbtt__cid_get_glyph_subrs($0,$1,$2) {
  29214. $0 = $0|0;
  29215. $1 = $1|0;
  29216. $2 = $2|0;
  29217. 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;
  29218. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  29219. sp = STACKTOP;
  29220. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  29221. $$byval_copy2 = sp + 36|0;
  29222. $$byval_copy1 = sp + 24|0;
  29223. $3 = sp;
  29224. $4 = sp + 12|0;
  29225. $5 = ((($1)) + 108|0);
  29226. ;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;
  29227. _stbtt__buf_seek($3,0);
  29228. $6 = (_stbtt__buf_get8($3)|0);
  29229. L1: do {
  29230. switch ($6<<24>>24) {
  29231. case 0: {
  29232. _stbtt__buf_skip($3,$2);
  29233. $7 = (_stbtt__buf_get8($3)|0);
  29234. $8 = $7&255;
  29235. $$02931 = $8;
  29236. break;
  29237. }
  29238. case 3: {
  29239. $9 = (_stbtt__buf_get($3,2)|0);
  29240. $10 = (_stbtt__buf_get($3,2)|0);
  29241. $11 = ($9|0)>(0);
  29242. if ($11) {
  29243. $$03034 = $10;$$035 = 0;
  29244. while(1) {
  29245. $14 = (_stbtt__buf_get8($3)|0);
  29246. $15 = (_stbtt__buf_get($3,2)|0);
  29247. $16 = ($$03034|0)<=($2|0);
  29248. $17 = ($15|0)>($2|0);
  29249. $or$cond = $16 & $17;
  29250. $13 = (($$035) + 1)|0;
  29251. if ($or$cond) {
  29252. break;
  29253. }
  29254. $12 = ($13|0)<($9|0);
  29255. if ($12) {
  29256. $$03034 = $15;$$035 = $13;
  29257. } else {
  29258. label = 6;
  29259. break L1;
  29260. }
  29261. }
  29262. $18 = $14&255;
  29263. $$02931 = $18;
  29264. } else {
  29265. label = 6;
  29266. }
  29267. break;
  29268. }
  29269. default: {
  29270. label = 6;
  29271. }
  29272. }
  29273. } while(0);
  29274. if ((label|0) == 6) {
  29275. _stbtt__new_buf($$byval_copy2,0,0);
  29276. $$02931 = -1;
  29277. }
  29278. $19 = ((($1)) + 48|0);
  29279. $20 = ((($1)) + 96|0);
  29280. ;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;
  29281. _stbtt__cff_index_get($4,$$byval_copy2,$$02931);
  29282. ;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;
  29283. ;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;
  29284. _stbtt__get_subrs($0,$$byval_copy1,$$byval_copy2);
  29285. STACKTOP = sp;return;
  29286. }
  29287. function _stbtt__get_subr($0,$1,$2) {
  29288. $0 = $0|0;
  29289. $1 = $1|0;
  29290. $2 = $2|0;
  29291. 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;
  29292. sp = STACKTOP;
  29293. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29294. $$byval_copy = sp;
  29295. $3 = (_stbtt__cff_index_count($1)|0);
  29296. $4 = ($3|0)>(33899);
  29297. $5 = ($3|0)>(1239);
  29298. $$ = $5 ? 1131 : 107;
  29299. $$0 = $4 ? 32768 : $$;
  29300. $6 = (($$0) + ($2))|0;
  29301. $7 = ($6|0)>(-1);
  29302. $8 = ($6|0)<($3|0);
  29303. $or$cond = $7 & $8;
  29304. if ($or$cond) {
  29305. ;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;
  29306. _stbtt__cff_index_get($0,$$byval_copy,$6);
  29307. STACKTOP = sp;return;
  29308. } else {
  29309. _stbtt__new_buf($0,0,0);
  29310. STACKTOP = sp;return;
  29311. }
  29312. }
  29313. function _stbtt__csctx_close_shape($0) {
  29314. $0 = $0|0;
  29315. 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;
  29316. sp = STACKTOP;
  29317. $1 = ((($0)) + 8|0);
  29318. $2 = +HEAPF32[$1>>2];
  29319. $3 = ((($0)) + 16|0);
  29320. $4 = +HEAPF32[$3>>2];
  29321. $5 = $2 != $4;
  29322. $6 = ((($0)) + 12|0);
  29323. $7 = +HEAPF32[$6>>2];
  29324. if (!($5)) {
  29325. $8 = ((($0)) + 20|0);
  29326. $9 = +HEAPF32[$8>>2];
  29327. $10 = $7 != $9;
  29328. if (!($10)) {
  29329. return;
  29330. }
  29331. }
  29332. $11 = (~~(($2)));
  29333. $12 = (~~(($7)));
  29334. _stbtt__csctx_v($0,2,$11,$12,0,0,0,0);
  29335. return;
  29336. }
  29337. function _stbtt__buf_get($0,$1) {
  29338. $0 = $0|0;
  29339. $1 = $1|0;
  29340. 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;
  29341. sp = STACKTOP;
  29342. $$off = (($1) + -1)|0;
  29343. $2 = ($$off>>>0)<(4);
  29344. if ($2) {
  29345. $$01011 = 0;$$012 = 0;
  29346. } else {
  29347. ___assert_fail((13092|0),(12615|0),1014,(13109|0));
  29348. // unreachable;
  29349. }
  29350. while(1) {
  29351. $3 = $$01011 << 8;
  29352. $4 = (_stbtt__buf_get8($0)|0);
  29353. $5 = $4&255;
  29354. $6 = $5 | $3;
  29355. $7 = (($$012) + 1)|0;
  29356. $exitcond = ($7|0)==($1|0);
  29357. if ($exitcond) {
  29358. break;
  29359. } else {
  29360. $$01011 = $6;$$012 = $7;
  29361. }
  29362. }
  29363. return ($6|0);
  29364. }
  29365. function _stbtt__cff_int($0) {
  29366. $0 = $0|0;
  29367. 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;
  29368. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond5 = 0, label = 0, sp = 0;
  29369. sp = STACKTOP;
  29370. $1 = (_stbtt__buf_get8($0)|0);
  29371. $2 = $1&255;
  29372. $$off = (($1) + -32)<<24>>24;
  29373. $3 = ($$off&255)<(215);
  29374. if ($3) {
  29375. $4 = (($2) + -139)|0;
  29376. $$0 = $4;
  29377. return ($$0|0);
  29378. }
  29379. $$off19 = (($1) + 9)<<24>>24;
  29380. $5 = ($$off19&255)<(4);
  29381. if ($5) {
  29382. $6 = $2 << 8;
  29383. $7 = (($6) + -63232)|0;
  29384. $8 = (_stbtt__buf_get8($0)|0);
  29385. $9 = $8&255;
  29386. $10 = $9 | $7;
  29387. $11 = (($10) + 108)|0;
  29388. $$0 = $11;
  29389. return ($$0|0);
  29390. }
  29391. $12 = ($1&255)>(250);
  29392. $13 = ($1<<24>>24)!=(-1);
  29393. $or$cond5 = $12 & $13;
  29394. if ($or$cond5) {
  29395. $14 = (251 - ($2))|0;
  29396. $15 = $14 << 8;
  29397. $16 = (_stbtt__buf_get8($0)|0);
  29398. $17 = $16&255;
  29399. $18 = (($15) + -108)|0;
  29400. $19 = (($18) - ($17))|0;
  29401. $$0 = $19;
  29402. return ($$0|0);
  29403. }
  29404. switch ($1<<24>>24) {
  29405. case 28: {
  29406. $20 = (_stbtt__buf_get($0,2)|0);
  29407. $$0 = $20;
  29408. return ($$0|0);
  29409. break;
  29410. }
  29411. case 29: {
  29412. $21 = (_stbtt__buf_get($0,4)|0);
  29413. $$0 = $21;
  29414. return ($$0|0);
  29415. break;
  29416. }
  29417. default: {
  29418. ___assert_fail((13075|0),(12615|0),1064,(13077|0));
  29419. // unreachable;
  29420. }
  29421. }
  29422. return (0)|0;
  29423. }
  29424. function _stbtt__csctx_v($0,$1,$2,$3,$4,$5,$6,$7) {
  29425. $0 = $0|0;
  29426. $1 = $1|0;
  29427. $2 = $2|0;
  29428. $3 = $3|0;
  29429. $4 = $4|0;
  29430. $5 = $5|0;
  29431. $6 = $6|0;
  29432. $7 = $7|0;
  29433. 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;
  29434. var sp = 0;
  29435. sp = STACKTOP;
  29436. $8 = HEAP32[$0>>2]|0;
  29437. $9 = ($8|0)==(0);
  29438. if ($9) {
  29439. $11 = ((($0)) + 40|0);
  29440. $12 = HEAP32[$11>>2]|0;
  29441. $13 = ((($0)) + 44|0);
  29442. $14 = HEAP32[$13>>2]|0;
  29443. $15 = (($12) + (($14*14)|0)|0);
  29444. _stbtt_setvertex($15,$1,$2,$3,$4,$5);
  29445. $16 = $6&65535;
  29446. $17 = HEAP32[$11>>2]|0;
  29447. $18 = HEAP32[$13>>2]|0;
  29448. $19 = (((($17) + (($18*14)|0)|0)) + 8|0);
  29449. HEAP16[$19>>1] = $16;
  29450. $20 = $7&65535;
  29451. $21 = HEAP32[$11>>2]|0;
  29452. $22 = HEAP32[$13>>2]|0;
  29453. $23 = (((($21) + (($22*14)|0)|0)) + 10|0);
  29454. HEAP16[$23>>1] = $20;
  29455. } else {
  29456. _stbtt__track_vertex($0,$2,$3);
  29457. $10 = ($1<<24>>24)==(4);
  29458. if ($10) {
  29459. _stbtt__track_vertex($0,$4,$5);
  29460. _stbtt__track_vertex($0,$6,$7);
  29461. }
  29462. }
  29463. $24 = ((($0)) + 44|0);
  29464. $25 = HEAP32[$24>>2]|0;
  29465. $26 = (($25) + 1)|0;
  29466. HEAP32[$24>>2] = $26;
  29467. return;
  29468. }
  29469. function _stbtt__track_vertex($0,$1,$2) {
  29470. $0 = $0|0;
  29471. $1 = $1|0;
  29472. $2 = $2|0;
  29473. 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;
  29474. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29475. sp = STACKTOP;
  29476. $3 = ((($0)) + 28|0);
  29477. $4 = HEAP32[$3>>2]|0;
  29478. $5 = ($4|0)<($1|0);
  29479. if ($5) {
  29480. label = 3;
  29481. } else {
  29482. $6 = ((($0)) + 4|0);
  29483. $7 = HEAP32[$6>>2]|0;
  29484. $8 = ($7|0)==(0);
  29485. if ($8) {
  29486. label = 3;
  29487. }
  29488. }
  29489. if ((label|0) == 3) {
  29490. HEAP32[$3>>2] = $1;
  29491. }
  29492. $9 = ((($0)) + 36|0);
  29493. $10 = HEAP32[$9>>2]|0;
  29494. $11 = ($10|0)<($2|0);
  29495. if ($11) {
  29496. label = 6;
  29497. } else {
  29498. $12 = ((($0)) + 4|0);
  29499. $13 = HEAP32[$12>>2]|0;
  29500. $14 = ($13|0)==(0);
  29501. if ($14) {
  29502. label = 6;
  29503. }
  29504. }
  29505. if ((label|0) == 6) {
  29506. HEAP32[$9>>2] = $2;
  29507. }
  29508. $15 = ((($0)) + 24|0);
  29509. $16 = HEAP32[$15>>2]|0;
  29510. $17 = ($16|0)>($1|0);
  29511. if ($17) {
  29512. label = 9;
  29513. } else {
  29514. $18 = ((($0)) + 4|0);
  29515. $19 = HEAP32[$18>>2]|0;
  29516. $20 = ($19|0)==(0);
  29517. if ($20) {
  29518. label = 9;
  29519. }
  29520. }
  29521. if ((label|0) == 9) {
  29522. HEAP32[$15>>2] = $1;
  29523. }
  29524. $21 = ((($0)) + 32|0);
  29525. $22 = HEAP32[$21>>2]|0;
  29526. $23 = ($22|0)>($2|0);
  29527. if (!($23)) {
  29528. $24 = ((($0)) + 4|0);
  29529. $25 = HEAP32[$24>>2]|0;
  29530. $26 = ($25|0)==(0);
  29531. if (!($26)) {
  29532. $27 = ((($0)) + 4|0);
  29533. HEAP32[$27>>2] = 1;
  29534. return;
  29535. }
  29536. }
  29537. HEAP32[$21>>2] = $2;
  29538. $27 = ((($0)) + 4|0);
  29539. HEAP32[$27>>2] = 1;
  29540. return;
  29541. }
  29542. function _stbtt_setvertex($0,$1,$2,$3,$4,$5) {
  29543. $0 = $0|0;
  29544. $1 = $1|0;
  29545. $2 = $2|0;
  29546. $3 = $3|0;
  29547. $4 = $4|0;
  29548. $5 = $5|0;
  29549. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29550. sp = STACKTOP;
  29551. $6 = ((($0)) + 12|0);
  29552. HEAP8[$6>>0] = $1;
  29553. $7 = $2&65535;
  29554. HEAP16[$0>>1] = $7;
  29555. $8 = $3&65535;
  29556. $9 = ((($0)) + 2|0);
  29557. HEAP16[$9>>1] = $8;
  29558. $10 = $4&65535;
  29559. $11 = ((($0)) + 4|0);
  29560. HEAP16[$11>>1] = $10;
  29561. $12 = $5&65535;
  29562. $13 = ((($0)) + 6|0);
  29563. HEAP16[$13>>1] = $12;
  29564. return;
  29565. }
  29566. function _stbtt__cff_index_count($0) {
  29567. $0 = $0|0;
  29568. var $1 = 0, label = 0, sp = 0;
  29569. sp = STACKTOP;
  29570. _stbtt__buf_seek($0,0);
  29571. $1 = (_stbtt__buf_get($0,2)|0);
  29572. return ($1|0);
  29573. }
  29574. function _stbtt__new_buf($0,$1,$2) {
  29575. $0 = $0|0;
  29576. $1 = $1|0;
  29577. $2 = $2|0;
  29578. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $3 = 0, label = 0, sp = 0;
  29579. sp = STACKTOP;
  29580. $3 = ($2>>>0)<(1073741824);
  29581. if ($3) {
  29582. HEAP32[$0>>2] = $1;
  29583. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  29584. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 0;
  29585. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  29586. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = $2;
  29587. return;
  29588. } else {
  29589. ___assert_fail((13124|0),(12615|0),1023,(13142|0));
  29590. // unreachable;
  29591. }
  29592. }
  29593. function _stbtt__buf_seek($0,$1) {
  29594. $0 = $0|0;
  29595. $1 = $1|0;
  29596. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  29597. sp = STACKTOP;
  29598. $2 = ((($0)) + 8|0);
  29599. $3 = HEAP32[$2>>2]|0;
  29600. $4 = ($3|0)<($1|0);
  29601. $5 = ($1|0)<(0);
  29602. $or$cond = $5 | $4;
  29603. if ($or$cond) {
  29604. ___assert_fail((13157|0),(12615|0),1001,(13181|0));
  29605. // unreachable;
  29606. } else {
  29607. $6 = ((($0)) + 4|0);
  29608. HEAP32[$6>>2] = $1;
  29609. return;
  29610. }
  29611. }
  29612. function _stbtt__get_subrs($0,$1,$2) {
  29613. $0 = $0|0;
  29614. $1 = $1|0;
  29615. $2 = $2|0;
  29616. 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;
  29617. sp = STACKTOP;
  29618. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29619. $3 = sp + 20|0;
  29620. $4 = sp;
  29621. $5 = sp + 8|0;
  29622. HEAP32[$3>>2] = 0;
  29623. $6 = $4;
  29624. $7 = $6;
  29625. HEAP32[$7>>2] = 0;
  29626. $8 = (($6) + 4)|0;
  29627. $9 = $8;
  29628. HEAP32[$9>>2] = 0;
  29629. _stbtt__dict_get_ints($2,18,2,$4);
  29630. $10 = ((($4)) + 4|0);
  29631. $11 = HEAP32[$10>>2]|0;
  29632. $12 = ($11|0)==(0);
  29633. if (!($12)) {
  29634. $13 = HEAP32[$4>>2]|0;
  29635. $14 = ($13|0)==(0);
  29636. if (!($14)) {
  29637. _stbtt__buf_range($5,$1,$11,$13);
  29638. _stbtt__dict_get_ints($5,19,1,$3);
  29639. $15 = HEAP32[$3>>2]|0;
  29640. $16 = ($15|0)==(0);
  29641. if ($16) {
  29642. _stbtt__new_buf($0,0,0);
  29643. STACKTOP = sp;return;
  29644. } else {
  29645. $17 = HEAP32[$10>>2]|0;
  29646. $18 = (($17) + ($15))|0;
  29647. _stbtt__buf_seek($1,$18);
  29648. _stbtt__cff_get_index($0,$1);
  29649. STACKTOP = sp;return;
  29650. }
  29651. }
  29652. }
  29653. _stbtt__new_buf($0,0,0);
  29654. STACKTOP = sp;return;
  29655. }
  29656. function _stbtt__dict_get_ints($0,$1,$2,$3) {
  29657. $0 = $0|0;
  29658. $1 = $1|0;
  29659. $2 = $2|0;
  29660. $3 = $3|0;
  29661. 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;
  29662. sp = STACKTOP;
  29663. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29664. $4 = sp;
  29665. _stbtt__dict_get($4,$0,$1);
  29666. $5 = ((($4)) + 4|0);
  29667. $6 = ($2|0)>(0);
  29668. if (!($6)) {
  29669. STACKTOP = sp;return;
  29670. }
  29671. $7 = ((($4)) + 8|0);
  29672. $$07 = 0;
  29673. while(1) {
  29674. $8 = HEAP32[$5>>2]|0;
  29675. $9 = HEAP32[$7>>2]|0;
  29676. $10 = ($8|0)<($9|0);
  29677. if (!($10)) {
  29678. label = 5;
  29679. break;
  29680. }
  29681. $11 = (_stbtt__cff_int($4)|0);
  29682. $12 = (($3) + ($$07<<2)|0);
  29683. HEAP32[$12>>2] = $11;
  29684. $13 = (($$07) + 1)|0;
  29685. $14 = ($13|0)<($2|0);
  29686. if ($14) {
  29687. $$07 = $13;
  29688. } else {
  29689. label = 5;
  29690. break;
  29691. }
  29692. }
  29693. if ((label|0) == 5) {
  29694. STACKTOP = sp;return;
  29695. }
  29696. }
  29697. function _stbtt__buf_range($0,$1,$2,$3) {
  29698. $0 = $0|0;
  29699. $1 = $1|0;
  29700. $2 = $2|0;
  29701. $3 = $3|0;
  29702. 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;
  29703. sp = STACKTOP;
  29704. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29705. $4 = sp;
  29706. _stbtt__new_buf($4,0,0);
  29707. $5 = $3 | $2;
  29708. $6 = ($5|0)<(0);
  29709. if (!($6)) {
  29710. $7 = ((($1)) + 8|0);
  29711. $8 = HEAP32[$7>>2]|0;
  29712. $9 = ($8|0)<($2|0);
  29713. $10 = (($8) - ($2))|0;
  29714. $11 = ($10|0)<($3|0);
  29715. $or$cond = $9 | $11;
  29716. if (!($or$cond)) {
  29717. $12 = HEAP32[$1>>2]|0;
  29718. $13 = (($12) + ($2)|0);
  29719. HEAP32[$4>>2] = $13;
  29720. $14 = ((($4)) + 8|0);
  29721. HEAP32[$14>>2] = $3;
  29722. ;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;
  29723. STACKTOP = sp;return;
  29724. }
  29725. }
  29726. ;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;
  29727. STACKTOP = sp;return;
  29728. }
  29729. function _stbtt__cff_get_index($0,$1) {
  29730. $0 = $0|0;
  29731. $1 = $1|0;
  29732. 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;
  29733. sp = STACKTOP;
  29734. $2 = ((($1)) + 4|0);
  29735. $3 = HEAP32[$2>>2]|0;
  29736. $4 = (_stbtt__buf_get($1,2)|0);
  29737. $5 = ($4|0)==(0);
  29738. if ($5) {
  29739. $12 = HEAP32[$2>>2]|0;
  29740. $13 = (($12) - ($3))|0;
  29741. _stbtt__buf_range($0,$1,$3,$13);
  29742. return;
  29743. }
  29744. $6 = (_stbtt__buf_get8($1)|0);
  29745. $7 = $6&255;
  29746. $$off = (($6) + -1)<<24>>24;
  29747. $8 = ($$off&255)<(4);
  29748. if (!($8)) {
  29749. ___assert_fail((13197|0),(12615|0),1049,(13226|0));
  29750. // unreachable;
  29751. }
  29752. $9 = Math_imul($7, $4)|0;
  29753. _stbtt__buf_skip($1,$9);
  29754. $10 = (_stbtt__buf_get($1,$7)|0);
  29755. $11 = (($10) + -1)|0;
  29756. _stbtt__buf_skip($1,$11);
  29757. $12 = HEAP32[$2>>2]|0;
  29758. $13 = (($12) - ($3))|0;
  29759. _stbtt__buf_range($0,$1,$3,$13);
  29760. return;
  29761. }
  29762. function _stbtt__dict_get($0,$1,$2) {
  29763. $0 = $0|0;
  29764. $1 = $1|0;
  29765. $2 = $2|0;
  29766. 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;
  29767. var sp = 0;
  29768. sp = STACKTOP;
  29769. _stbtt__buf_seek($1,0);
  29770. $3 = ((($1)) + 4|0);
  29771. $4 = ((($1)) + 8|0);
  29772. while(1) {
  29773. $5 = HEAP32[$3>>2]|0;
  29774. $6 = HEAP32[$4>>2]|0;
  29775. $7 = ($5|0)<($6|0);
  29776. if (!($7)) {
  29777. label = 9;
  29778. break;
  29779. }
  29780. $8 = (_stbtt__buf_peek8($1)|0);
  29781. $9 = ($8&255)>(27);
  29782. if ($9) {
  29783. while(1) {
  29784. _stbtt__cff_skip_operand($1);
  29785. $10 = (_stbtt__buf_peek8($1)|0);
  29786. $11 = ($10&255)>(27);
  29787. if (!($11)) {
  29788. break;
  29789. }
  29790. }
  29791. }
  29792. $12 = HEAP32[$3>>2]|0;
  29793. $13 = (_stbtt__buf_get8($1)|0);
  29794. $14 = $13&255;
  29795. $15 = ($13<<24>>24)==(12);
  29796. if ($15) {
  29797. $16 = (_stbtt__buf_get8($1)|0);
  29798. $17 = $16&255;
  29799. $18 = $17 | 256;
  29800. $$021 = $18;
  29801. } else {
  29802. $$021 = $14;
  29803. }
  29804. $19 = ($$021|0)==($2|0);
  29805. if ($19) {
  29806. label = 8;
  29807. break;
  29808. }
  29809. }
  29810. if ((label|0) == 8) {
  29811. $20 = (($12) - ($5))|0;
  29812. _stbtt__buf_range($0,$1,$5,$20);
  29813. return;
  29814. }
  29815. else if ((label|0) == 9) {
  29816. _stbtt__buf_range($0,$1,0,0);
  29817. return;
  29818. }
  29819. }
  29820. function _stbtt__buf_peek8($0) {
  29821. $0 = $0|0;
  29822. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  29823. sp = STACKTOP;
  29824. $1 = ((($0)) + 4|0);
  29825. $2 = HEAP32[$1>>2]|0;
  29826. $3 = ((($0)) + 8|0);
  29827. $4 = HEAP32[$3>>2]|0;
  29828. $5 = ($2|0)<($4|0);
  29829. if (!($5)) {
  29830. $$0 = 0;
  29831. return ($$0|0);
  29832. }
  29833. $6 = HEAP32[$0>>2]|0;
  29834. $7 = (($6) + ($2)|0);
  29835. $8 = HEAP8[$7>>0]|0;
  29836. $$0 = $8;
  29837. return ($$0|0);
  29838. }
  29839. function _stbtt__cff_skip_operand($0) {
  29840. $0 = $0|0;
  29841. 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;
  29842. sp = STACKTOP;
  29843. $1 = (_stbtt__buf_peek8($0)|0);
  29844. $2 = ($1&255)>(27);
  29845. if (!($2)) {
  29846. ___assert_fail((13247|0),(12615|0),1070,(13256|0));
  29847. // unreachable;
  29848. }
  29849. $3 = ($1<<24>>24)==(30);
  29850. if (!($3)) {
  29851. (_stbtt__cff_int($0)|0);
  29852. return;
  29853. }
  29854. _stbtt__buf_skip($0,1);
  29855. $4 = ((($0)) + 4|0);
  29856. $5 = ((($0)) + 8|0);
  29857. while(1) {
  29858. $6 = HEAP32[$4>>2]|0;
  29859. $7 = HEAP32[$5>>2]|0;
  29860. $8 = ($6|0)<($7|0);
  29861. if (!($8)) {
  29862. label = 8;
  29863. break;
  29864. }
  29865. $9 = (_stbtt__buf_get8($0)|0);
  29866. $10 = $9&255;
  29867. $11 = $10 & 15;
  29868. $12 = ($11|0)==(15);
  29869. $$mask = $10 & 240;
  29870. $13 = ($$mask|0)==(240);
  29871. $or$cond = $12 | $13;
  29872. if ($or$cond) {
  29873. label = 8;
  29874. break;
  29875. }
  29876. }
  29877. if ((label|0) == 8) {
  29878. return;
  29879. }
  29880. }
  29881. function _stbtt__GetGlyphShapeTT($0,$1,$2) {
  29882. $0 = $0|0;
  29883. $1 = $1|0;
  29884. $2 = $2|0;
  29885. 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;
  29886. 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;
  29887. 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;
  29888. 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;
  29889. 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;
  29890. 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;
  29891. 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;
  29892. 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;
  29893. 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;
  29894. 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;
  29895. 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;
  29896. 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;
  29897. 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;
  29898. 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;
  29899. 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;
  29900. 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;
  29901. 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;
  29902. sp = STACKTOP;
  29903. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29904. $3 = sp;
  29905. $4 = ((($0)) + 4|0);
  29906. $5 = HEAP32[$4>>2]|0;
  29907. $6 = (_stbtt__GetGlyfOffset($0,$1)|0);
  29908. HEAP32[$2>>2] = 0;
  29909. $7 = ($6|0)<(0);
  29910. if ($7) {
  29911. $$4 = 0;
  29912. STACKTOP = sp;return ($$4|0);
  29913. }
  29914. $8 = (($5) + ($6)|0);
  29915. $9 = (_ttSHORT($8)|0);
  29916. $10 = ($9<<16>>16)>(0);
  29917. L4: do {
  29918. if ($10) {
  29919. $11 = $9 << 16 >> 16;
  29920. $12 = ((($8)) + 10|0);
  29921. $13 = $11 << 1;
  29922. $14 = (($12) + ($13)|0);
  29923. $15 = (_ttUSHORT($14)|0);
  29924. $16 = ((($14)) + -2|0);
  29925. $17 = (_ttUSHORT($16)|0);
  29926. $18 = $17&65535;
  29927. $19 = $13 | 1;
  29928. $20 = (($19) + ($18))|0;
  29929. $21 = ($20*14)|0;
  29930. $22 = (_malloc($21)|0);
  29931. $23 = ($22|0)==(0|0);
  29932. if ($23) {
  29933. $$4 = 0;
  29934. STACKTOP = sp;return ($$4|0);
  29935. }
  29936. $24 = ((($14)) + 2|0);
  29937. $25 = $15&65535;
  29938. $26 = (($24) + ($25)|0);
  29939. $$0361449 = 0;$$0364448 = 0;$$0366447 = 0;$$0381446 = $26;
  29940. while(1) {
  29941. $27 = ($$0364448<<24>>24)==(0);
  29942. if ($27) {
  29943. $28 = ((($$0381446)) + 1|0);
  29944. $29 = HEAP8[$$0381446>>0]|0;
  29945. $30 = $29 & 8;
  29946. $31 = ($30<<24>>24)==(0);
  29947. if ($31) {
  29948. $$1362 = $29;$$1365 = 0;$$1382 = $28;
  29949. } else {
  29950. $32 = ((($$0381446)) + 2|0);
  29951. $33 = HEAP8[$28>>0]|0;
  29952. $$1362 = $29;$$1365 = $33;$$1382 = $32;
  29953. }
  29954. } else {
  29955. $34 = (($$0364448) + -1)<<24>>24;
  29956. $$1362 = $$0361449;$$1365 = $34;$$1382 = $$0381446;
  29957. }
  29958. $35 = (($$0366447) + ($13))|0;
  29959. $36 = (((($22) + (($35*14)|0)|0)) + 12|0);
  29960. HEAP8[$36>>0] = $$1362;
  29961. $37 = (($$0366447) + 1)|0;
  29962. $exitcond459 = ($$0366447|0)==($18|0);
  29963. if ($exitcond459) {
  29964. $$0405443 = 0;$$1367445 = 0;$$2383444 = $$1382;
  29965. break;
  29966. } else {
  29967. $$0361449 = $$1362;$$0364448 = $$1365;$$0366447 = $37;$$0381446 = $$1382;
  29968. }
  29969. }
  29970. while(1) {
  29971. $38 = (($$1367445) + ($13))|0;
  29972. $39 = (((($22) + (($38*14)|0)|0)) + 12|0);
  29973. $40 = HEAP8[$39>>0]|0;
  29974. $41 = $40&255;
  29975. $42 = $41 & 2;
  29976. $43 = ($42|0)==(0);
  29977. $44 = $41 & 16;
  29978. $45 = ($44|0)!=(0);
  29979. if ($43) {
  29980. if ($45) {
  29981. $$1406 = $$0405443;$$3384 = $$2383444;
  29982. } else {
  29983. $52 = HEAP8[$$2383444>>0]|0;
  29984. $53 = $52&255;
  29985. $54 = $53 << 8;
  29986. $55 = ((($$2383444)) + 1|0);
  29987. $56 = HEAP8[$55>>0]|0;
  29988. $57 = $56&255;
  29989. $58 = $54 | $57;
  29990. $sext412 = $58 << 16;
  29991. $59 = $sext412 >> 16;
  29992. $60 = (($59) + ($$0405443))|0;
  29993. $61 = ((($$2383444)) + 2|0);
  29994. $$1406 = $60;$$3384 = $61;
  29995. }
  29996. } else {
  29997. $46 = ((($$2383444)) + 1|0);
  29998. $47 = HEAP8[$$2383444>>0]|0;
  29999. $48 = $47&255;
  30000. $49 = (0 - ($48))|0;
  30001. $50 = $45 ? $48 : $49;
  30002. $51 = (($50) + ($$0405443))|0;
  30003. $$1406 = $51;$$3384 = $46;
  30004. }
  30005. $62 = $$1406&65535;
  30006. $63 = (($22) + (($38*14)|0)|0);
  30007. HEAP16[$63>>1] = $62;
  30008. $64 = (($$1367445) + 1)|0;
  30009. $exitcond458 = ($$1367445|0)==($18|0);
  30010. if ($exitcond458) {
  30011. $$0403440 = 0;$$2368442 = 0;$$4385441 = $$3384;
  30012. break;
  30013. } else {
  30014. $$0405443 = $$1406;$$1367445 = $64;$$2383444 = $$3384;
  30015. }
  30016. }
  30017. while(1) {
  30018. $65 = (($$2368442) + ($13))|0;
  30019. $66 = (((($22) + (($65*14)|0)|0)) + 12|0);
  30020. $67 = HEAP8[$66>>0]|0;
  30021. $68 = $67&255;
  30022. $69 = $68 & 4;
  30023. $70 = ($69|0)==(0);
  30024. $71 = $68 & 32;
  30025. $72 = ($71|0)!=(0);
  30026. if ($70) {
  30027. if ($72) {
  30028. $$1404 = $$0403440;$$5386 = $$4385441;
  30029. } else {
  30030. $79 = HEAP8[$$4385441>>0]|0;
  30031. $80 = $79&255;
  30032. $81 = $80 << 8;
  30033. $82 = ((($$4385441)) + 1|0);
  30034. $83 = HEAP8[$82>>0]|0;
  30035. $84 = $83&255;
  30036. $85 = $81 | $84;
  30037. $sext = $85 << 16;
  30038. $86 = $sext >> 16;
  30039. $87 = (($86) + ($$0403440))|0;
  30040. $88 = ((($$4385441)) + 2|0);
  30041. $$1404 = $87;$$5386 = $88;
  30042. }
  30043. } else {
  30044. $73 = ((($$4385441)) + 1|0);
  30045. $74 = HEAP8[$$4385441>>0]|0;
  30046. $75 = $74&255;
  30047. $76 = (0 - ($75))|0;
  30048. $77 = $72 ? $75 : $76;
  30049. $78 = (($77) + ($$0403440))|0;
  30050. $$1404 = $78;$$5386 = $73;
  30051. }
  30052. $89 = $$1404&65535;
  30053. $90 = (((($22) + (($65*14)|0)|0)) + 2|0);
  30054. HEAP16[$90>>1] = $89;
  30055. $91 = (($$2368442) + 1)|0;
  30056. $exitcond = ($$2368442|0)==($18|0);
  30057. if ($exitcond) {
  30058. $$0353439 = 0;$$0377437 = 0;$$0379436 = 0;$$0387435 = 0;$$0390434 = 0;$$0393433 = 0;$$0396432 = 0;$$0399431 = 0;$$0401430 = 0;$$0407429 = 0;$$0409428 = 0;$$3369438 = 0;
  30059. break;
  30060. } else {
  30061. $$0403440 = $$1404;$$2368442 = $91;$$4385441 = $$5386;
  30062. }
  30063. }
  30064. while(1) {
  30065. $92 = (($$3369438) + ($13))|0;
  30066. $93 = (((($22) + (($92*14)|0)|0)) + 12|0);
  30067. $94 = HEAP8[$93>>0]|0;
  30068. $95 = (($22) + (($92*14)|0)|0);
  30069. $96 = HEAP16[$95>>1]|0;
  30070. $97 = $96 << 16 >> 16;
  30071. $98 = (((($22) + (($92*14)|0)|0)) + 2|0);
  30072. $99 = HEAP16[$98>>1]|0;
  30073. $100 = $99 << 16 >> 16;
  30074. $101 = ($$0379436|0)==($$3369438|0);
  30075. $102 = $94 & 1;
  30076. $103 = ($102<<24>>24)!=(0);
  30077. do {
  30078. if ($101) {
  30079. $104 = ($$3369438|0)==(0);
  30080. if ($104) {
  30081. $$1354 = $$0353439;
  30082. } else {
  30083. $105 = (_stbtt__close_shape($22,$$0353439,$$0409428,$$0407429,$$0396432,$$0393433,$$0390434,$$0387435,$$0401430,$$0399431)|0);
  30084. $$1354 = $105;
  30085. }
  30086. $106 = $103 ^ 1;
  30087. $107 = $106&1;
  30088. do {
  30089. if ($103) {
  30090. $$1388 = $$0387435;$$1391 = $$0390434;$$1394 = $100;$$1397 = $97;$$4370 = $$3369438;
  30091. } else {
  30092. $108 = (($92) + 1)|0;
  30093. $109 = (((($22) + (($108*14)|0)|0)) + 12|0);
  30094. $110 = HEAP8[$109>>0]|0;
  30095. $111 = $110 & 1;
  30096. $112 = ($111<<24>>24)==(0);
  30097. $113 = (((($22) + (($108*14)|0)|0)) + 2|0);
  30098. $114 = HEAP16[$113>>1]|0;
  30099. $115 = (($22) + (($108*14)|0)|0);
  30100. $116 = HEAP16[$115>>1]|0;
  30101. $117 = $114 << 16 >> 16;
  30102. $118 = $116 << 16 >> 16;
  30103. if ($112) {
  30104. $119 = (($118) + ($97))|0;
  30105. $120 = $119 >> 1;
  30106. $121 = (($117) + ($100))|0;
  30107. $122 = $121 >> 1;
  30108. $$1388 = $100;$$1391 = $97;$$1394 = $122;$$1397 = $120;$$4370 = $$3369438;
  30109. break;
  30110. } else {
  30111. $123 = (($$3369438) + 1)|0;
  30112. $$1388 = $100;$$1391 = $97;$$1394 = $117;$$1397 = $118;$$4370 = $123;
  30113. break;
  30114. }
  30115. }
  30116. } while(0);
  30117. $124 = (($$1354) + 1)|0;
  30118. $125 = (($22) + (($$1354*14)|0)|0);
  30119. _stbtt_setvertex($125,1,$$1397,$$1394,0,0);
  30120. $126 = $$0377437 << 1;
  30121. $127 = (($12) + ($126)|0);
  30122. $128 = (_ttUSHORT($127)|0);
  30123. $129 = $128&65535;
  30124. $130 = (($129) + 1)|0;
  30125. $131 = (($$0377437) + 1)|0;
  30126. $$1378 = $131;$$1380 = $130;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $107;$$1410 = 0;$$2389 = $$1388;$$2392 = $$1391;$$2395 = $$1394;$$2398 = $$1397;$$3356 = $124;$$5371 = $$4370;
  30127. } else {
  30128. $132 = ($$0409428|0)!=(0);
  30129. $133 = (($$0353439) + 1)|0;
  30130. $134 = (($22) + (($$0353439*14)|0)|0);
  30131. if (!($103)) {
  30132. if (!($132)) {
  30133. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $100;$$1402 = $97;$$1408 = $$0407429;$$1410 = 1;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $$0353439;$$5371 = $$3369438;
  30134. break;
  30135. }
  30136. $135 = (($100) + ($$0399431))|0;
  30137. $136 = $135 >> 1;
  30138. $137 = (($97) + ($$0401430))|0;
  30139. $138 = $137 >> 1;
  30140. _stbtt_setvertex($134,3,$138,$136,$$0401430,$$0399431);
  30141. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $100;$$1402 = $97;$$1408 = $$0407429;$$1410 = 1;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30142. break;
  30143. }
  30144. if ($132) {
  30145. _stbtt_setvertex($134,3,$97,$100,$$0401430,$$0399431);
  30146. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $$0407429;$$1410 = 0;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30147. break;
  30148. } else {
  30149. _stbtt_setvertex($134,2,$97,$100,0,0);
  30150. $$1378 = $$0377437;$$1380 = $$0379436;$$1400 = $$0399431;$$1402 = $$0401430;$$1408 = $$0407429;$$1410 = 0;$$2389 = $$0387435;$$2392 = $$0390434;$$2395 = $$0393433;$$2398 = $$0396432;$$3356 = $133;$$5371 = $$3369438;
  30151. break;
  30152. }
  30153. }
  30154. } while(0);
  30155. $139 = (($$5371) + 1)|0;
  30156. $140 = ($$5371|0)<($18|0);
  30157. if ($140) {
  30158. $$0353439 = $$3356;$$0377437 = $$1378;$$0379436 = $$1380;$$0387435 = $$2389;$$0390434 = $$2392;$$0393433 = $$2395;$$0396432 = $$2398;$$0399431 = $$1400;$$0401430 = $$1402;$$0407429 = $$1408;$$0409428 = $$1410;$$3369438 = $139;
  30159. } else {
  30160. break;
  30161. }
  30162. }
  30163. $141 = (_stbtt__close_shape($22,$$3356,$$1410,$$1408,$$2398,$$2395,$$2392,$$2389,$$1402,$$1400)|0);
  30164. $$4352 = $22;$$9 = $141;
  30165. } else {
  30166. $142 = ($9<<16>>16)==(-1);
  30167. if (!($142)) {
  30168. $264 = ($9<<16>>16)<(0);
  30169. if (!($264)) {
  30170. $$4352 = 0;$$9 = 0;
  30171. break;
  30172. }
  30173. ___assert_fail((13075|0),(12615|0),1724,(13394|0));
  30174. // unreachable;
  30175. }
  30176. $143 = ((($8)) + 10|0);
  30177. $$0348453 = 0;$$0372451 = $143;$$5452 = 0;$250 = 0;$255 = 0;$260 = 0;
  30178. while(1) {
  30179. HEAP32[$3>>2] = 0;
  30180. $144 = (_ttSHORT($$0372451)|0);
  30181. $145 = ((($$0372451)) + 2|0);
  30182. $146 = (_ttSHORT($145)|0);
  30183. $147 = ((($$0372451)) + 4|0);
  30184. $148 = $144&65535;
  30185. $149 = $148 & 2;
  30186. $150 = ($149|0)==(0);
  30187. if ($150) {
  30188. label = 42;
  30189. break;
  30190. }
  30191. $151 = $148 & 1;
  30192. $152 = ($151|0)==(0);
  30193. if ($152) {
  30194. $158 = HEAP8[$147>>0]|0;
  30195. $159 = (+($158<<24>>24));
  30196. $160 = ((($$0372451)) + 5|0);
  30197. $161 = HEAP8[$160>>0]|0;
  30198. $162 = (+($161<<24>>24));
  30199. $$sink = 6;$$sroa$31$0 = $159;$$sroa$35$0 = $162;
  30200. } else {
  30201. $153 = (_ttSHORT($147)|0);
  30202. $154 = (+($153<<16>>16));
  30203. $155 = ((($$0372451)) + 6|0);
  30204. $156 = (_ttSHORT($155)|0);
  30205. $157 = (+($156<<16>>16));
  30206. $$sink = 8;$$sroa$31$0 = $154;$$sroa$35$0 = $157;
  30207. }
  30208. $163 = (($$0372451) + ($$sink)|0);
  30209. $164 = $148 & 8;
  30210. $165 = ($164|0)==(0);
  30211. do {
  30212. if ($165) {
  30213. $170 = $148 & 64;
  30214. $171 = ($170|0)==(0);
  30215. if (!($171)) {
  30216. $172 = (_ttSHORT($163)|0);
  30217. $173 = (+($172<<16>>16));
  30218. $174 = $173 * 6.103515625E-5;
  30219. $175 = ((($163)) + 2|0);
  30220. $176 = (_ttSHORT($175)|0);
  30221. $177 = (+($176<<16>>16));
  30222. $178 = $177 * 6.103515625E-5;
  30223. $179 = ((($163)) + 4|0);
  30224. $$2374 = $179;$$sroa$0$0 = $174;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = $178;
  30225. break;
  30226. }
  30227. $180 = $148 & 128;
  30228. $181 = ($180|0)==(0);
  30229. if ($181) {
  30230. $$2374 = $163;$$sroa$0$0 = 1.0;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = 1.0;
  30231. } else {
  30232. $182 = (_ttSHORT($163)|0);
  30233. $183 = (+($182<<16>>16));
  30234. $184 = $183 * 6.103515625E-5;
  30235. $185 = ((($163)) + 2|0);
  30236. $186 = (_ttSHORT($185)|0);
  30237. $187 = (+($186<<16>>16));
  30238. $188 = $187 * 6.103515625E-5;
  30239. $189 = ((($163)) + 4|0);
  30240. $190 = (_ttSHORT($189)|0);
  30241. $191 = (+($190<<16>>16));
  30242. $192 = $191 * 6.103515625E-5;
  30243. $193 = ((($163)) + 6|0);
  30244. $194 = (_ttSHORT($193)|0);
  30245. $195 = (+($194<<16>>16));
  30246. $196 = $195 * 6.103515625E-5;
  30247. $197 = ((($163)) + 8|0);
  30248. $$2374 = $197;$$sroa$0$0 = $184;$$sroa$10$0 = $188;$$sroa$17$0 = $192;$$sroa$24$0 = $196;
  30249. }
  30250. } else {
  30251. $166 = (_ttSHORT($163)|0);
  30252. $167 = (+($166<<16>>16));
  30253. $168 = $167 * 6.103515625E-5;
  30254. $169 = ((($163)) + 2|0);
  30255. $$2374 = $169;$$sroa$0$0 = $168;$$sroa$10$0 = 0.0;$$sroa$17$0 = 0.0;$$sroa$24$0 = $168;
  30256. }
  30257. } while(0);
  30258. $198 = $$sroa$0$0 * $$sroa$0$0;
  30259. $199 = $$sroa$10$0 * $$sroa$10$0;
  30260. $200 = $199 + $198;
  30261. $sqrtf = (+Math_sqrt((+$200)));
  30262. $201 = $$sroa$17$0 * $$sroa$17$0;
  30263. $202 = $$sroa$24$0 * $$sroa$24$0;
  30264. $203 = $202 + $201;
  30265. $sqrtf411 = (+Math_sqrt((+$203)));
  30266. $204 = $146&65535;
  30267. $205 = (_stbtt_GetGlyphShape($0,$204,$3)|0);
  30268. $206 = ($205|0)>(0);
  30269. if ($206) {
  30270. $207 = HEAP32[$3>>2]|0;
  30271. $$0363450 = 0;
  30272. while(1) {
  30273. $208 = (($207) + (($$0363450*14)|0)|0);
  30274. $209 = HEAP16[$208>>1]|0;
  30275. $210 = (((($207) + (($$0363450*14)|0)|0)) + 2|0);
  30276. $211 = HEAP16[$210>>1]|0;
  30277. $212 = (+($209<<16>>16));
  30278. $213 = $$sroa$0$0 * $212;
  30279. $214 = (+($211<<16>>16));
  30280. $215 = $$sroa$17$0 * $214;
  30281. $216 = $213 + $215;
  30282. $217 = $$sroa$31$0 + $216;
  30283. $218 = $sqrtf * $217;
  30284. $219 = (~~(($218)));
  30285. HEAP16[$208>>1] = $219;
  30286. $220 = $$sroa$10$0 * $212;
  30287. $221 = $$sroa$24$0 * $214;
  30288. $222 = $220 + $221;
  30289. $223 = $$sroa$35$0 + $222;
  30290. $224 = $sqrtf411 * $223;
  30291. $225 = (~~(($224)));
  30292. HEAP16[$210>>1] = $225;
  30293. $226 = (((($207) + (($$0363450*14)|0)|0)) + 4|0);
  30294. $227 = HEAP16[$226>>1]|0;
  30295. $228 = (((($207) + (($$0363450*14)|0)|0)) + 6|0);
  30296. $229 = HEAP16[$228>>1]|0;
  30297. $230 = (+($227<<16>>16));
  30298. $231 = $$sroa$0$0 * $230;
  30299. $232 = (+($229<<16>>16));
  30300. $233 = $$sroa$17$0 * $232;
  30301. $234 = $231 + $233;
  30302. $235 = $$sroa$31$0 + $234;
  30303. $236 = $sqrtf * $235;
  30304. $237 = (~~(($236)));
  30305. HEAP16[$226>>1] = $237;
  30306. $238 = $$sroa$10$0 * $230;
  30307. $239 = $$sroa$24$0 * $232;
  30308. $240 = $238 + $239;
  30309. $241 = $$sroa$35$0 + $240;
  30310. $242 = $sqrtf411 * $241;
  30311. $243 = (~~(($242)));
  30312. HEAP16[$228>>1] = $243;
  30313. $244 = (($$0363450) + 1)|0;
  30314. $exitcond460 = ($244|0)==($205|0);
  30315. if ($exitcond460) {
  30316. break;
  30317. } else {
  30318. $$0363450 = $244;
  30319. }
  30320. }
  30321. $245 = (($205) + ($$5452))|0;
  30322. $246 = ($245*14)|0;
  30323. $247 = (_malloc($246)|0);
  30324. $248 = ($247|0)==(0|0);
  30325. if ($248) {
  30326. break;
  30327. }
  30328. $253 = ($$5452|0)>(0);
  30329. if ($253) {
  30330. $254 = ($$5452*14)|0;
  30331. _memcpy(($247|0),($255|0),($254|0))|0;
  30332. }
  30333. $256 = (($247) + (($$5452*14)|0)|0);
  30334. $257 = HEAP32[$3>>2]|0;
  30335. $258 = ($205*14)|0;
  30336. _memcpy(($256|0),($257|0),($258|0))|0;
  30337. $259 = ($$0348453|0)==(0|0);
  30338. if (!($259)) {
  30339. _free($260);
  30340. }
  30341. $261 = HEAP32[$3>>2]|0;
  30342. _free($261);
  30343. $$1349 = $247;$$6 = $245;$265 = $247;$266 = $247;$267 = $247;
  30344. } else {
  30345. $$1349 = $$0348453;$$6 = $$5452;$265 = $250;$266 = $260;$267 = $255;
  30346. }
  30347. $262 = $148 & 32;
  30348. $263 = ($262|0)==(0);
  30349. if ($263) {
  30350. $$4352 = $$1349;$$9 = $$6;
  30351. break L4;
  30352. } else {
  30353. $$0348453 = $$1349;$$0372451 = $$2374;$$5452 = $$6;$250 = $265;$255 = $267;$260 = $266;
  30354. }
  30355. }
  30356. if ((label|0) == 42) {
  30357. ___assert_fail((13075|0),(12615|0),1671,(13394|0));
  30358. // unreachable;
  30359. }
  30360. $249 = ($$0348453|0)==(0|0);
  30361. if (!($249)) {
  30362. _free($250);
  30363. }
  30364. $251 = HEAP32[$3>>2]|0;
  30365. $252 = ($251|0)==(0|0);
  30366. if (!($252)) {
  30367. _free($251);
  30368. }
  30369. $$4 = 0;
  30370. STACKTOP = sp;return ($$4|0);
  30371. }
  30372. } while(0);
  30373. HEAP32[$2>>2] = $$4352;
  30374. $$4 = $$9;
  30375. STACKTOP = sp;return ($$4|0);
  30376. }
  30377. function _stbtt__GetGlyphShapeT2($0,$1,$2) {
  30378. $0 = $0|0;
  30379. $1 = $1|0;
  30380. $2 = $2|0;
  30381. 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;
  30382. var stop = 0;
  30383. sp = STACKTOP;
  30384. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  30385. $3 = sp + 48|0;
  30386. $4 = sp;
  30387. $5 = ((($3)) + 4|0);
  30388. dest=$5; stop=dest+44|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30389. HEAP32[$3>>2] = 1;
  30390. dest=$4; stop=dest+48|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30391. $6 = (_stbtt__run_charstring($0,$1,$3)|0);
  30392. $7 = ($6|0)==(0);
  30393. if (!($7)) {
  30394. $8 = ((($3)) + 44|0);
  30395. $9 = HEAP32[$8>>2]|0;
  30396. $10 = ($9*14)|0;
  30397. $11 = (_malloc($10)|0);
  30398. HEAP32[$2>>2] = $11;
  30399. $12 = ((($4)) + 40|0);
  30400. HEAP32[$12>>2] = $11;
  30401. $13 = (_stbtt__run_charstring($0,$1,$4)|0);
  30402. $14 = ($13|0)==(0);
  30403. if (!($14)) {
  30404. $15 = ((($4)) + 44|0);
  30405. $16 = HEAP32[$15>>2]|0;
  30406. $17 = HEAP32[$8>>2]|0;
  30407. $18 = ($16|0)==($17|0);
  30408. if ($18) {
  30409. $$0 = $16;
  30410. STACKTOP = sp;return ($$0|0);
  30411. } else {
  30412. ___assert_fail((13321|0),(12615|0),2114,(13371|0));
  30413. // unreachable;
  30414. }
  30415. }
  30416. }
  30417. HEAP32[$2>>2] = 0;
  30418. $$0 = 0;
  30419. STACKTOP = sp;return ($$0|0);
  30420. }
  30421. function _stbtt__close_shape($0,$1,$2,$3,$4,$5,$6,$7,$8,$9) {
  30422. $0 = $0|0;
  30423. $1 = $1|0;
  30424. $2 = $2|0;
  30425. $3 = $3|0;
  30426. $4 = $4|0;
  30427. $5 = $5|0;
  30428. $6 = $6|0;
  30429. $7 = $7|0;
  30430. $8 = $8|0;
  30431. $9 = $9|0;
  30432. 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;
  30433. sp = STACKTOP;
  30434. $10 = ($3|0)==(0);
  30435. $11 = ($2|0)!=(0);
  30436. $12 = (($1) + 1)|0;
  30437. $13 = (($0) + (($1*14)|0)|0);
  30438. if (!($10)) {
  30439. if ($11) {
  30440. $14 = (($9) + ($7))|0;
  30441. $15 = $14 >> 1;
  30442. $16 = (($8) + ($6))|0;
  30443. $17 = $16 >> 1;
  30444. _stbtt_setvertex($13,3,$17,$15,$8,$9);
  30445. $$0 = $12;
  30446. } else {
  30447. $$0 = $1;
  30448. }
  30449. $18 = (($$0) + 1)|0;
  30450. $19 = (($0) + (($$0*14)|0)|0);
  30451. _stbtt_setvertex($19,3,$4,$5,$6,$7);
  30452. $$1 = $18;
  30453. return ($$1|0);
  30454. }
  30455. if ($11) {
  30456. _stbtt_setvertex($13,3,$4,$5,$8,$9);
  30457. $$1 = $12;
  30458. return ($$1|0);
  30459. } else {
  30460. _stbtt_setvertex($13,2,$4,$5,0,0);
  30461. $$1 = $12;
  30462. return ($$1|0);
  30463. }
  30464. return (0)|0;
  30465. }
  30466. function _stbtt_InitFont_internal($0,$1) {
  30467. $0 = $0|0;
  30468. $1 = $1|0;
  30469. 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;
  30470. 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;
  30471. 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;
  30472. 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;
  30473. 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;
  30474. var $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $or$cond = 0, label = 0, sp = 0;
  30475. sp = STACKTOP;
  30476. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  30477. $$byval_copy2 = sp + 172|0;
  30478. $$byval_copy1 = sp + 160|0;
  30479. $2 = sp + 148|0;
  30480. $3 = sp + 136|0;
  30481. $4 = sp + 124|0;
  30482. $5 = sp + 112|0;
  30483. $6 = sp + 108|0;
  30484. $7 = sp + 104|0;
  30485. $8 = sp + 100|0;
  30486. $9 = sp + 96|0;
  30487. $10 = sp + 84|0;
  30488. $11 = sp + 72|0;
  30489. $12 = sp + 60|0;
  30490. $13 = sp + 48|0;
  30491. $14 = sp + 36|0;
  30492. $15 = sp + 24|0;
  30493. $16 = sp + 12|0;
  30494. $17 = sp;
  30495. $18 = ((($0)) + 4|0);
  30496. HEAP32[$18>>2] = $1;
  30497. $19 = ((($0)) + 8|0);
  30498. HEAP32[$19>>2] = 0;
  30499. $20 = ((($0)) + 48|0);
  30500. _stbtt__new_buf($2,0,0);
  30501. ;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;
  30502. $21 = (_stbtt__find_table($1,13494)|0);
  30503. $22 = (_stbtt__find_table($1,13499)|0);
  30504. $23 = ((($0)) + 16|0);
  30505. HEAP32[$23>>2] = $22;
  30506. $24 = (_stbtt__find_table($1,13504)|0);
  30507. $25 = ((($0)) + 20|0);
  30508. HEAP32[$25>>2] = $24;
  30509. $26 = (_stbtt__find_table($1,13509)|0);
  30510. $27 = ((($0)) + 24|0);
  30511. HEAP32[$27>>2] = $26;
  30512. $28 = (_stbtt__find_table($1,13514)|0);
  30513. $29 = ((($0)) + 28|0);
  30514. HEAP32[$29>>2] = $28;
  30515. $30 = (_stbtt__find_table($1,13519)|0);
  30516. $31 = ((($0)) + 32|0);
  30517. HEAP32[$31>>2] = $30;
  30518. $32 = (_stbtt__find_table($1,13524)|0);
  30519. $33 = ((($0)) + 36|0);
  30520. HEAP32[$33>>2] = $32;
  30521. $34 = ($21|0)==(0);
  30522. if ($34) {
  30523. $$1 = 0;
  30524. STACKTOP = sp;return ($$1|0);
  30525. }
  30526. $35 = HEAP32[$25>>2]|0;
  30527. $36 = ($35|0)==(0);
  30528. if ($36) {
  30529. $$1 = 0;
  30530. STACKTOP = sp;return ($$1|0);
  30531. }
  30532. $37 = HEAP32[$29>>2]|0;
  30533. $38 = ($37|0)==(0);
  30534. if ($38) {
  30535. $$1 = 0;
  30536. STACKTOP = sp;return ($$1|0);
  30537. }
  30538. $39 = HEAP32[$31>>2]|0;
  30539. $40 = ($39|0)==(0);
  30540. if ($40) {
  30541. $$1 = 0;
  30542. STACKTOP = sp;return ($$1|0);
  30543. }
  30544. $41 = HEAP32[$27>>2]|0;
  30545. $42 = ($41|0)==(0);
  30546. L13: do {
  30547. if ($42) {
  30548. HEAP32[$6>>2] = 2;
  30549. HEAP32[$7>>2] = 0;
  30550. HEAP32[$8>>2] = 0;
  30551. HEAP32[$9>>2] = 0;
  30552. $45 = (_stbtt__find_table($1,13529)|0);
  30553. $46 = ($45|0)==(0);
  30554. do {
  30555. if (!($46)) {
  30556. $47 = ((($0)) + 96|0);
  30557. _stbtt__new_buf($10,0,0);
  30558. ;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;
  30559. $48 = ((($0)) + 108|0);
  30560. _stbtt__new_buf($11,0,0);
  30561. ;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;
  30562. $49 = (($1) + ($45)|0);
  30563. _stbtt__new_buf($12,$49,536870912);
  30564. ;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;
  30565. ;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;
  30566. _stbtt__buf_skip($3,2);
  30567. $50 = (_stbtt__buf_get8($3)|0);
  30568. $51 = $50&255;
  30569. _stbtt__buf_seek($3,$51);
  30570. _stbtt__cff_get_index($$byval_copy2,$3);
  30571. _stbtt__cff_get_index($5,$3);
  30572. ;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;
  30573. _stbtt__cff_index_get($4,$$byval_copy2,0);
  30574. _stbtt__cff_get_index($$byval_copy2,$3);
  30575. $52 = ((($0)) + 72|0);
  30576. _stbtt__cff_get_index($13,$3);
  30577. ;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;
  30578. _stbtt__dict_get_ints($4,17,1,$7);
  30579. _stbtt__dict_get_ints($4,262,1,$6);
  30580. _stbtt__dict_get_ints($4,292,1,$8);
  30581. _stbtt__dict_get_ints($4,293,1,$9);
  30582. $53 = ((($0)) + 84|0);
  30583. ;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;
  30584. ;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;
  30585. _stbtt__get_subrs($14,$$byval_copy1,$$byval_copy2);
  30586. ;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;
  30587. $54 = HEAP32[$6>>2]|0;
  30588. $55 = ($54|0)!=(2);
  30589. $56 = HEAP32[$7>>2]|0;
  30590. $57 = ($56|0)==(0);
  30591. $or$cond = $55 | $57;
  30592. if (!($or$cond)) {
  30593. $58 = HEAP32[$8>>2]|0;
  30594. $59 = ($58|0)==(0);
  30595. if (!($59)) {
  30596. $60 = HEAP32[$9>>2]|0;
  30597. $61 = ($60|0)==(0);
  30598. if ($61) {
  30599. break;
  30600. }
  30601. _stbtt__buf_seek($3,$58);
  30602. _stbtt__cff_get_index($15,$3);
  30603. ;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;
  30604. $62 = HEAP32[$9>>2]|0;
  30605. $63 = ((($3)) + 8|0);
  30606. $64 = HEAP32[$63>>2]|0;
  30607. $65 = (($64) - ($62))|0;
  30608. _stbtt__buf_range($16,$3,$62,$65);
  30609. ;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;
  30610. }
  30611. $66 = HEAP32[$7>>2]|0;
  30612. _stbtt__buf_seek($3,$66);
  30613. $67 = ((($0)) + 60|0);
  30614. _stbtt__cff_get_index($17,$3);
  30615. ;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;
  30616. break L13;
  30617. }
  30618. }
  30619. } while(0);
  30620. $$1 = 0;
  30621. STACKTOP = sp;return ($$1|0);
  30622. } else {
  30623. $43 = HEAP32[$23>>2]|0;
  30624. $44 = ($43|0)==(0);
  30625. if ($44) {
  30626. $$1 = 0;
  30627. STACKTOP = sp;return ($$1|0);
  30628. }
  30629. }
  30630. } while(0);
  30631. $68 = (_stbtt__find_table($1,13534)|0);
  30632. $69 = ($68|0)==(0);
  30633. if ($69) {
  30634. $$sink = 65535;
  30635. } else {
  30636. $70 = (($1) + ($68)|0);
  30637. $71 = ((($70)) + 4|0);
  30638. $72 = (_ttUSHORT($71)|0);
  30639. $73 = $72&65535;
  30640. $$sink = $73;
  30641. }
  30642. $74 = ((($0)) + 12|0);
  30643. HEAP32[$74>>2] = $$sink;
  30644. $75 = (($1) + ($21)|0);
  30645. $76 = ((($75)) + 2|0);
  30646. $77 = (_ttUSHORT($76)|0);
  30647. $78 = $77&65535;
  30648. $79 = ((($0)) + 40|0);
  30649. HEAP32[$79>>2] = 0;
  30650. $80 = ($77<<16>>16)==(0);
  30651. if ($80) {
  30652. $$1 = 0;
  30653. STACKTOP = sp;return ($$1|0);
  30654. }
  30655. $81 = (($21) + 4)|0;
  30656. $$0902 = 0;
  30657. while(1) {
  30658. $82 = $$0902 << 3;
  30659. $83 = (($81) + ($82))|0;
  30660. $84 = (($1) + ($83)|0);
  30661. $85 = (_ttUSHORT($84)|0);
  30662. L35: do {
  30663. switch ($85<<16>>16) {
  30664. case 3: {
  30665. $86 = ((($84)) + 2|0);
  30666. $87 = (_ttUSHORT($86)|0);
  30667. switch ($87<<16>>16) {
  30668. case 10: case 1: {
  30669. break;
  30670. }
  30671. default: {
  30672. break L35;
  30673. }
  30674. }
  30675. $88 = ((($84)) + 4|0);
  30676. $89 = (_ttULONG($88)|0);
  30677. $90 = (($89) + ($21))|0;
  30678. HEAP32[$79>>2] = $90;
  30679. break;
  30680. }
  30681. case 0: {
  30682. $91 = ((($84)) + 4|0);
  30683. $92 = (_ttULONG($91)|0);
  30684. $93 = (($92) + ($21))|0;
  30685. HEAP32[$79>>2] = $93;
  30686. break;
  30687. }
  30688. default: {
  30689. }
  30690. }
  30691. } while(0);
  30692. $94 = (($$0902) + 1)|0;
  30693. $exitcond = ($94|0)==($78|0);
  30694. if ($exitcond) {
  30695. break;
  30696. } else {
  30697. $$0902 = $94;
  30698. }
  30699. }
  30700. $$pr = HEAP32[$79>>2]|0;
  30701. $95 = ($$pr|0)==(0);
  30702. if ($95) {
  30703. $$1 = 0;
  30704. STACKTOP = sp;return ($$1|0);
  30705. }
  30706. $96 = HEAP32[$25>>2]|0;
  30707. $97 = (($1) + ($96)|0);
  30708. $98 = ((($97)) + 50|0);
  30709. $99 = (_ttUSHORT($98)|0);
  30710. $100 = $99&65535;
  30711. $101 = ((($0)) + 44|0);
  30712. HEAP32[$101>>2] = $100;
  30713. $$1 = 1;
  30714. STACKTOP = sp;return ($$1|0);
  30715. }
  30716. function _stbtt__find_table($0,$1) {
  30717. $0 = $0|0;
  30718. $1 = $1|0;
  30719. 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;
  30720. 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;
  30721. var sp = 0;
  30722. sp = STACKTOP;
  30723. $2 = ((($0)) + 4|0);
  30724. $3 = (_ttUSHORT($2)|0);
  30725. $4 = $3&65535;
  30726. $5 = ($3<<16>>16)==(0);
  30727. if ($5) {
  30728. $$2 = 0;
  30729. return ($$2|0);
  30730. }
  30731. $6 = HEAP8[$1>>0]|0;
  30732. $7 = $6 << 24 >> 24;
  30733. $8 = ((($1)) + 1|0);
  30734. $9 = ((($1)) + 2|0);
  30735. $10 = ((($1)) + 3|0);
  30736. $$0312 = 0;
  30737. while(1) {
  30738. $11 = $$0312 << 4;
  30739. $12 = $11 | 12;
  30740. $13 = (($0) + ($12)|0);
  30741. $14 = HEAP8[$13>>0]|0;
  30742. $15 = $14&255;
  30743. $16 = ($15|0)==($7|0);
  30744. if ($16) {
  30745. $17 = ((($13)) + 1|0);
  30746. $18 = HEAP8[$17>>0]|0;
  30747. $19 = $18&255;
  30748. $20 = HEAP8[$8>>0]|0;
  30749. $21 = $20 << 24 >> 24;
  30750. $22 = ($19|0)==($21|0);
  30751. if ($22) {
  30752. $23 = ((($13)) + 2|0);
  30753. $24 = HEAP8[$23>>0]|0;
  30754. $25 = $24&255;
  30755. $26 = HEAP8[$9>>0]|0;
  30756. $27 = $26 << 24 >> 24;
  30757. $28 = ($25|0)==($27|0);
  30758. if ($28) {
  30759. $29 = ((($13)) + 3|0);
  30760. $30 = HEAP8[$29>>0]|0;
  30761. $31 = $30&255;
  30762. $32 = HEAP8[$10>>0]|0;
  30763. $33 = $32 << 24 >> 24;
  30764. $34 = ($31|0)==($33|0);
  30765. if ($34) {
  30766. break;
  30767. }
  30768. }
  30769. }
  30770. }
  30771. $37 = (($$0312) + 1)|0;
  30772. $38 = ($37|0)<($4|0);
  30773. if ($38) {
  30774. $$0312 = $37;
  30775. } else {
  30776. $$2 = 0;
  30777. label = 9;
  30778. break;
  30779. }
  30780. }
  30781. if ((label|0) == 9) {
  30782. return ($$2|0);
  30783. }
  30784. $35 = ((($13)) + 8|0);
  30785. $36 = (_ttULONG($35)|0);
  30786. $$2 = $36;
  30787. return ($$2|0);
  30788. }
  30789. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  30790. $0 = $0|0;
  30791. $1 = $1|0;
  30792. $2 = $2|0;
  30793. $3 = +$3;
  30794. $4 = $4|0;
  30795. $5 = $5|0;
  30796. 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;
  30797. 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;
  30798. 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;
  30799. 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;
  30800. 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;
  30801. sp = STACKTOP;
  30802. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  30803. $$byval_copy5 = sp + 88|0;
  30804. $$byval_copy4 = sp + 80|0;
  30805. $$byval_copy3 = sp + 64|0;
  30806. $$byval_copy2 = sp + 48|0;
  30807. $$byval_copy1 = sp + 24|0;
  30808. $6 = sp + 8|0;
  30809. $7 = sp;
  30810. $8 = (_strlen($1)|0);
  30811. $9 = ((($0)) + 20|0);
  30812. $10 = HEAP32[$9>>2]|0;
  30813. $11 = (+($10|0));
  30814. $12 = $3 / $11;
  30815. $13 = ($8|0)>(0);
  30816. if (!($13)) {
  30817. STACKTOP = sp;return;
  30818. }
  30819. $14 = ((($0)) + 28|0);
  30820. $15 = +HEAPF32[$2>>2];
  30821. $16 = ((($6)) + 4|0);
  30822. $17 = ((($2)) + 4|0);
  30823. $18 = ((($6)) + 8|0);
  30824. $19 = ((($6)) + 12|0);
  30825. $20 = ((($7)) + 4|0);
  30826. $21 = (+($4|0));
  30827. $$04954 = 0;$$05153 = 0;$$055 = 0;
  30828. while(1) {
  30829. $22 = (($1) + ($$055)|0);
  30830. $23 = HEAP8[$22>>0]|0;
  30831. switch ($23<<24>>24) {
  30832. case 10: {
  30833. $24 = HEAP32[$9>>2]|0;
  30834. $25 = (($24|0) / 2)&-1;
  30835. $26 = (($25) + ($24))|0;
  30836. $27 = (+($26|0));
  30837. $28 = $12 * $27;
  30838. $29 = (~~(($28)));
  30839. $30 = (($29) + ($$05153))|0;
  30840. $$150 = 0;$$152 = $30;$$2 = $$055;
  30841. break;
  30842. }
  30843. case -62: {
  30844. $31 = (($$055) + 1)|0;
  30845. $32 = (($1) + ($31)|0);
  30846. $33 = HEAP8[$32>>0]|0;
  30847. $34 = $33&255;
  30848. $$1 = $31;$$sink = $34;
  30849. label = 9;
  30850. break;
  30851. }
  30852. case -61: {
  30853. $35 = (($$055) + 1)|0;
  30854. $36 = (($1) + ($35)|0);
  30855. $37 = HEAP8[$36>>0]|0;
  30856. $38 = $37&255;
  30857. $39 = (($38) + 64)|0;
  30858. $$1 = $35;$$sink = $39;
  30859. label = 9;
  30860. break;
  30861. }
  30862. default: {
  30863. $40 = $23 << 24 >> 24;
  30864. $$1 = $$055;$$sink = $40;
  30865. label = 9;
  30866. }
  30867. }
  30868. do {
  30869. if ((label|0) == 9) {
  30870. label = 0;
  30871. ;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;
  30872. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  30873. $42 = HEAP32[$14>>2]|0;
  30874. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  30875. $44 = (+($$04954|0));
  30876. $45 = $44 + $15;
  30877. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  30878. $47 = HEAP32[$46>>2]|0;
  30879. $48 = (+($47|0));
  30880. $49 = $12 * $48;
  30881. $50 = $45 + $49;
  30882. $51 = (~~(($50)));
  30883. HEAP32[$6>>2] = $51;
  30884. $52 = +HEAPF32[$17>>2];
  30885. $53 = (+($$05153|0));
  30886. $54 = $53 + $52;
  30887. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  30888. $56 = HEAP32[$55>>2]|0;
  30889. $57 = (+($56|0));
  30890. $58 = $12 * $57;
  30891. $59 = $54 + $58;
  30892. $60 = (~~(($59)));
  30893. HEAP32[$16>>2] = $60;
  30894. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  30895. $62 = HEAP32[$61>>2]|0;
  30896. $63 = (+($62|0));
  30897. $64 = $12 * $63;
  30898. $65 = (~~(($64)));
  30899. HEAP32[$18>>2] = $65;
  30900. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  30901. $67 = HEAP32[$66>>2]|0;
  30902. $68 = (+($67|0));
  30903. $69 = $12 * $68;
  30904. $70 = (~~(($69)));
  30905. HEAP32[$19>>2] = $70;
  30906. HEAPF32[$7>>2] = 0.0;
  30907. HEAPF32[$20>>2] = 0.0;
  30908. ;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;
  30909. ;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;
  30910. ;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;
  30911. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  30912. ;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;
  30913. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  30914. $71 = HEAP32[$14>>2]|0;
  30915. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  30916. $73 = HEAP32[$72>>2]|0;
  30917. $74 = ($73|0)==(0);
  30918. if ($74) {
  30919. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  30920. $76 = HEAP32[$75>>2]|0;
  30921. $77 = (+($76|0));
  30922. $78 = $12 * $77;
  30923. $79 = $21 + $78;
  30924. $80 = (~~(($79)));
  30925. $81 = (($80) + ($$04954))|0;
  30926. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  30927. break;
  30928. } else {
  30929. $82 = (+($73|0));
  30930. $83 = $12 * $82;
  30931. $84 = $21 + $83;
  30932. $85 = (~~(($84)));
  30933. $86 = (($85) + ($$04954))|0;
  30934. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  30935. break;
  30936. }
  30937. }
  30938. } while(0);
  30939. $87 = (($$2) + 1)|0;
  30940. $88 = ($87|0)<($8|0);
  30941. if ($88) {
  30942. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  30943. } else {
  30944. break;
  30945. }
  30946. }
  30947. STACKTOP = sp;return;
  30948. }
  30949. function _emscripten_GetProcAddress($0) {
  30950. $0 = $0|0;
  30951. 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;
  30952. 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;
  30953. 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;
  30954. 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;
  30955. 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;
  30956. 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;
  30957. 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;
  30958. 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;
  30959. 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;
  30960. 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;
  30961. 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;
  30962. 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;
  30963. 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;
  30964. 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;
  30965. 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;
  30966. 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;
  30967. 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;
  30968. 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;
  30969. 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;
  30970. 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;
  30971. 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;
  30972. 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;
  30973. 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;
  30974. 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;
  30975. 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;
  30976. 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;
  30977. 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;
  30978. 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;
  30979. sp = STACKTOP;
  30980. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  30981. $1 = sp + 12|0;
  30982. $2 = sp + 8|0;
  30983. $3 = sp + 4|0;
  30984. $4 = sp;
  30985. HEAP32[$2>>2] = $0;
  30986. $5 = HEAP32[$2>>2]|0;
  30987. $6 = (_strlen($5)|0);
  30988. $7 = (($6) + 1)|0;
  30989. $8 = (_malloc($7)|0);
  30990. HEAP32[$3>>2] = $8;
  30991. $9 = HEAP32[$3>>2]|0;
  30992. $10 = HEAP32[$2>>2]|0;
  30993. (_strcpy($9,$10)|0);
  30994. $11 = HEAP32[$3>>2]|0;
  30995. $12 = (_strstr($11,13539)|0);
  30996. HEAP32[$4>>2] = $12;
  30997. $13 = HEAP32[$4>>2]|0;
  30998. $14 = ($13|0)!=(0|0);
  30999. if ($14) {
  31000. $15 = HEAP32[$4>>2]|0;
  31001. HEAP8[$15>>0] = 0;
  31002. }
  31003. $16 = HEAP32[$3>>2]|0;
  31004. $17 = (_strstr($16,13543)|0);
  31005. HEAP32[$4>>2] = $17;
  31006. $18 = HEAP32[$4>>2]|0;
  31007. $19 = ($18|0)!=(0|0);
  31008. if ($19) {
  31009. $20 = HEAP32[$4>>2]|0;
  31010. HEAP8[$20>>0] = 0;
  31011. }
  31012. $21 = HEAP32[$3>>2]|0;
  31013. $22 = (_strstr($21,13547)|0);
  31014. HEAP32[$4>>2] = $22;
  31015. $23 = HEAP32[$4>>2]|0;
  31016. $24 = ($23|0)!=(0|0);
  31017. if ($24) {
  31018. $25 = HEAP32[$4>>2]|0;
  31019. HEAP8[$25>>0] = 0;
  31020. }
  31021. $26 = HEAP32[$3>>2]|0;
  31022. $27 = (_strstr($26,13551)|0);
  31023. HEAP32[$4>>2] = $27;
  31024. $28 = HEAP32[$4>>2]|0;
  31025. $29 = ($28|0)!=(0|0);
  31026. if ($29) {
  31027. $30 = HEAP32[$4>>2]|0;
  31028. HEAP8[$30>>0] = 0;
  31029. }
  31030. $31 = HEAP32[$3>>2]|0;
  31031. $32 = (_strcmp($31,13557)|0);
  31032. $33 = ($32|0)!=(0);
  31033. do {
  31034. if ($33) {
  31035. $34 = HEAP32[$3>>2]|0;
  31036. $35 = (_strcmp($34,13595)|0);
  31037. $36 = ($35|0)!=(0);
  31038. if (!($36)) {
  31039. HEAP32[$3>>2] = 13614;
  31040. break;
  31041. }
  31042. $37 = HEAP32[$3>>2]|0;
  31043. $38 = (_strcmp($37,13627)|0);
  31044. $39 = ($38|0)!=(0);
  31045. if (!($39)) {
  31046. HEAP32[$3>>2] = 13648;
  31047. break;
  31048. }
  31049. $40 = HEAP32[$3>>2]|0;
  31050. $41 = (_strcmp($40,13663)|0);
  31051. $42 = ($41|0)!=(0);
  31052. if (!($42)) {
  31053. HEAP32[$3>>2] = 13678;
  31054. break;
  31055. }
  31056. $43 = HEAP32[$3>>2]|0;
  31057. $44 = (_strcmp($43,13693)|0);
  31058. $45 = ($44|0)!=(0);
  31059. if (!($45)) {
  31060. HEAP32[$3>>2] = 13708;
  31061. }
  31062. } else {
  31063. HEAP32[$3>>2] = 13579;
  31064. }
  31065. } while(0);
  31066. $46 = HEAP32[$3>>2]|0;
  31067. $47 = (_strcmp($46,13723)|0);
  31068. $48 = ($47|0)!=(0);
  31069. do {
  31070. if ($48) {
  31071. $49 = HEAP32[$3>>2]|0;
  31072. $50 = (_strcmp($49,13737)|0);
  31073. $51 = ($50|0)!=(0);
  31074. if (!($51)) {
  31075. HEAP32[$1>>2] = 3;
  31076. break;
  31077. }
  31078. $52 = HEAP32[$3>>2]|0;
  31079. $53 = (_strcmp($52,13749)|0);
  31080. $54 = ($53|0)!=(0);
  31081. if (!($54)) {
  31082. HEAP32[$1>>2] = 7;
  31083. break;
  31084. }
  31085. $55 = HEAP32[$3>>2]|0;
  31086. $56 = (_strcmp($55,13763)|0);
  31087. $57 = ($56|0)!=(0);
  31088. if (!($57)) {
  31089. HEAP32[$1>>2] = 8;
  31090. break;
  31091. }
  31092. $58 = HEAP32[$3>>2]|0;
  31093. $59 = (_strcmp($58,13775)|0);
  31094. $60 = ($59|0)!=(0);
  31095. if (!($60)) {
  31096. HEAP32[$1>>2] = 9;
  31097. break;
  31098. }
  31099. $61 = HEAP32[$3>>2]|0;
  31100. $62 = (_strcmp($61,13789)|0);
  31101. $63 = ($62|0)!=(0);
  31102. if (!($63)) {
  31103. HEAP32[$1>>2] = 10;
  31104. break;
  31105. }
  31106. $64 = HEAP32[$3>>2]|0;
  31107. $65 = (_strcmp($64,13803)|0);
  31108. $66 = ($65|0)!=(0);
  31109. if (!($66)) {
  31110. HEAP32[$1>>2] = 11;
  31111. break;
  31112. }
  31113. $67 = HEAP32[$3>>2]|0;
  31114. $68 = (_strcmp($67,13820)|0);
  31115. $69 = ($68|0)!=(0);
  31116. if (!($69)) {
  31117. HEAP32[$1>>2] = 1;
  31118. break;
  31119. }
  31120. $70 = HEAP32[$3>>2]|0;
  31121. $71 = (_strcmp($70,13843)|0);
  31122. $72 = ($71|0)!=(0);
  31123. if (!($72)) {
  31124. HEAP32[$1>>2] = 1;
  31125. break;
  31126. }
  31127. $73 = HEAP32[$3>>2]|0;
  31128. $74 = (_strcmp($73,13869)|0);
  31129. $75 = ($74|0)!=(0);
  31130. if (!($75)) {
  31131. HEAP32[$1>>2] = 2;
  31132. break;
  31133. }
  31134. $76 = HEAP32[$3>>2]|0;
  31135. $77 = (_strcmp($76,13882)|0);
  31136. $78 = ($77|0)!=(0);
  31137. if (!($78)) {
  31138. HEAP32[$1>>2] = 3;
  31139. break;
  31140. }
  31141. $79 = HEAP32[$3>>2]|0;
  31142. $80 = (_strcmp($79,13898)|0);
  31143. $81 = ($80|0)!=(0);
  31144. if (!($81)) {
  31145. HEAP32[$1>>2] = 1;
  31146. break;
  31147. }
  31148. $82 = HEAP32[$3>>2]|0;
  31149. $83 = (_strcmp($82,13911)|0);
  31150. $84 = ($83|0)!=(0);
  31151. if (!($84)) {
  31152. HEAP32[$1>>2] = 12;
  31153. break;
  31154. }
  31155. $85 = HEAP32[$3>>2]|0;
  31156. $86 = (_strcmp($85,13925)|0);
  31157. $87 = ($86|0)!=(0);
  31158. if (!($87)) {
  31159. HEAP32[$1>>2] = 2;
  31160. break;
  31161. }
  31162. $88 = HEAP32[$3>>2]|0;
  31163. $89 = (_strcmp($88,13945)|0);
  31164. $90 = ($89|0)!=(0);
  31165. if (!($90)) {
  31166. HEAP32[$1>>2] = 3;
  31167. break;
  31168. }
  31169. $91 = HEAP32[$3>>2]|0;
  31170. $92 = (_strcmp($91,13965)|0);
  31171. $93 = ($92|0)!=(0);
  31172. if (!($93)) {
  31173. HEAP32[$1>>2] = 4;
  31174. break;
  31175. }
  31176. $94 = HEAP32[$3>>2]|0;
  31177. $95 = (_strcmp($94,13982)|0);
  31178. $96 = ($95|0)!=(0);
  31179. if (!($96)) {
  31180. HEAP32[$1>>2] = 5;
  31181. break;
  31182. }
  31183. $97 = HEAP32[$3>>2]|0;
  31184. $98 = (_strcmp($97,13999)|0);
  31185. $99 = ($98|0)!=(0);
  31186. if (!($99)) {
  31187. HEAP32[$1>>2] = 4;
  31188. break;
  31189. }
  31190. $100 = HEAP32[$3>>2]|0;
  31191. $101 = (_strcmp($100,14011)|0);
  31192. $102 = ($101|0)!=(0);
  31193. if (!($102)) {
  31194. HEAP32[$1>>2] = 13;
  31195. break;
  31196. }
  31197. $103 = HEAP32[$3>>2]|0;
  31198. $104 = (_strcmp($103,14024)|0);
  31199. $105 = ($104|0)!=(0);
  31200. if (!($105)) {
  31201. HEAP32[$1>>2] = 14;
  31202. break;
  31203. }
  31204. $106 = HEAP32[$3>>2]|0;
  31205. $107 = (_strcmp($106,14040)|0);
  31206. $108 = ($107|0)!=(0);
  31207. if (!($108)) {
  31208. HEAP32[$1>>2] = 6;
  31209. break;
  31210. }
  31211. $109 = HEAP32[$3>>2]|0;
  31212. $110 = (_strcmp($109,14063)|0);
  31213. $111 = ($110|0)!=(0);
  31214. if (!($111)) {
  31215. HEAP32[$1>>2] = 2;
  31216. break;
  31217. }
  31218. $112 = HEAP32[$3>>2]|0;
  31219. $113 = (_strcmp($112,14076)|0);
  31220. $114 = ($113|0)!=(0);
  31221. if (!($114)) {
  31222. HEAP32[$1>>2] = 3;
  31223. break;
  31224. }
  31225. $115 = HEAP32[$3>>2]|0;
  31226. $116 = (_strcmp($115,14092)|0);
  31227. $117 = ($116|0)!=(0);
  31228. if (!($117)) {
  31229. HEAP32[$1>>2] = 5;
  31230. break;
  31231. }
  31232. $118 = HEAP32[$3>>2]|0;
  31233. $119 = (_strcmp($118,14103)|0);
  31234. $120 = ($119|0)!=(0);
  31235. if (!($120)) {
  31236. HEAP32[$1>>2] = 15;
  31237. break;
  31238. }
  31239. $121 = HEAP32[$3>>2]|0;
  31240. $122 = (_strcmp($121,14122)|0);
  31241. $123 = ($122|0)!=(0);
  31242. if (!($123)) {
  31243. HEAP32[$1>>2] = 16;
  31244. break;
  31245. }
  31246. $124 = HEAP32[$3>>2]|0;
  31247. $125 = (_strcmp($124,14144)|0);
  31248. $126 = ($125|0)!=(0);
  31249. if (!($126)) {
  31250. HEAP32[$1>>2] = 17;
  31251. break;
  31252. }
  31253. $127 = HEAP32[$3>>2]|0;
  31254. $128 = (_strcmp($127,14163)|0);
  31255. $129 = ($128|0)!=(0);
  31256. if (!($129)) {
  31257. HEAP32[$1>>2] = 7;
  31258. break;
  31259. }
  31260. $130 = HEAP32[$3>>2]|0;
  31261. $131 = (_strcmp($130,14192)|0);
  31262. $132 = ($131|0)!=(0);
  31263. if (!($132)) {
  31264. HEAP32[$1>>2] = 6;
  31265. break;
  31266. }
  31267. $133 = HEAP32[$3>>2]|0;
  31268. $134 = (_strcmp($133,14209)|0);
  31269. $135 = ($134|0)!=(0);
  31270. if (!($135)) {
  31271. HEAP32[$1>>2] = 8;
  31272. break;
  31273. }
  31274. $136 = HEAP32[$3>>2]|0;
  31275. $137 = (_strcmp($136,14224)|0);
  31276. $138 = ($137|0)!=(0);
  31277. if (!($138)) {
  31278. HEAP32[$1>>2] = 9;
  31279. break;
  31280. }
  31281. $139 = HEAP32[$3>>2]|0;
  31282. $140 = (_strcmp($139,14239)|0);
  31283. $141 = ($140|0)!=(0);
  31284. if (!($141)) {
  31285. HEAP32[$1>>2] = 1;
  31286. break;
  31287. }
  31288. $142 = HEAP32[$3>>2]|0;
  31289. $143 = (_strcmp($142,14260)|0);
  31290. $144 = ($143|0)!=(0);
  31291. if (!($144)) {
  31292. HEAP32[$1>>2] = 10;
  31293. break;
  31294. }
  31295. $145 = HEAP32[$3>>2]|0;
  31296. $146 = (_strcmp($145,14280)|0);
  31297. $147 = ($146|0)!=(0);
  31298. if (!($147)) {
  31299. HEAP32[$1>>2] = 11;
  31300. break;
  31301. }
  31302. $148 = HEAP32[$3>>2]|0;
  31303. $149 = (_strcmp($148,14300)|0);
  31304. $150 = ($149|0)!=(0);
  31305. if (!($150)) {
  31306. HEAP32[$1>>2] = 12;
  31307. break;
  31308. }
  31309. $151 = HEAP32[$3>>2]|0;
  31310. $152 = (_strcmp($151,14326)|0);
  31311. $153 = ($152|0)!=(0);
  31312. if (!($153)) {
  31313. HEAP32[$1>>2] = 2;
  31314. break;
  31315. }
  31316. $154 = HEAP32[$3>>2]|0;
  31317. $155 = (_strcmp($154,14345)|0);
  31318. $156 = ($155|0)!=(0);
  31319. if (!($156)) {
  31320. HEAP32[$1>>2] = 1;
  31321. break;
  31322. }
  31323. $157 = HEAP32[$3>>2]|0;
  31324. $158 = (_strcmp($157,14357)|0);
  31325. $159 = ($158|0)!=(0);
  31326. if (!($159)) {
  31327. HEAP32[$1>>2] = 3;
  31328. break;
  31329. }
  31330. $160 = HEAP32[$3>>2]|0;
  31331. $161 = (_strcmp($160,14369)|0);
  31332. $162 = ($161|0)!=(0);
  31333. if (!($162)) {
  31334. HEAP32[$1>>2] = 1;
  31335. break;
  31336. }
  31337. $163 = HEAP32[$3>>2]|0;
  31338. $164 = (_strcmp($163,14381)|0);
  31339. $165 = ($164|0)!=(0);
  31340. if (!($165)) {
  31341. HEAP32[$1>>2] = 1;
  31342. break;
  31343. }
  31344. $166 = HEAP32[$3>>2]|0;
  31345. $167 = (_strcmp($166,14393)|0);
  31346. $168 = ($167|0)!=(0);
  31347. if (!($168)) {
  31348. HEAP32[$1>>2] = 18;
  31349. break;
  31350. }
  31351. $169 = HEAP32[$3>>2]|0;
  31352. $170 = (_strcmp($169,14405)|0);
  31353. $171 = ($170|0)!=(0);
  31354. if (!($171)) {
  31355. HEAP32[$1>>2] = 13;
  31356. break;
  31357. }
  31358. $172 = HEAP32[$3>>2]|0;
  31359. $173 = (_strcmp($172,14417)|0);
  31360. $174 = ($173|0)!=(0);
  31361. if (!($174)) {
  31362. HEAP32[$1>>2] = 4;
  31363. break;
  31364. }
  31365. $175 = HEAP32[$3>>2]|0;
  31366. $176 = (_strcmp($175,14429)|0);
  31367. $177 = ($176|0)!=(0);
  31368. if (!($177)) {
  31369. HEAP32[$1>>2] = 2;
  31370. break;
  31371. }
  31372. $178 = HEAP32[$3>>2]|0;
  31373. $179 = (_strcmp($178,14441)|0);
  31374. $180 = ($179|0)!=(0);
  31375. if (!($180)) {
  31376. HEAP32[$1>>2] = 14;
  31377. break;
  31378. }
  31379. $181 = HEAP32[$3>>2]|0;
  31380. $182 = (_strcmp($181,14454)|0);
  31381. $183 = ($182|0)!=(0);
  31382. if (!($183)) {
  31383. HEAP32[$1>>2] = 15;
  31384. break;
  31385. }
  31386. $184 = HEAP32[$3>>2]|0;
  31387. $185 = (_strcmp($184,14467)|0);
  31388. $186 = ($185|0)!=(0);
  31389. if (!($186)) {
  31390. HEAP32[$1>>2] = 16;
  31391. break;
  31392. }
  31393. $187 = HEAP32[$3>>2]|0;
  31394. $188 = (_strcmp($187,14480)|0);
  31395. $189 = ($188|0)!=(0);
  31396. if (!($189)) {
  31397. HEAP32[$1>>2] = 17;
  31398. break;
  31399. }
  31400. $190 = HEAP32[$3>>2]|0;
  31401. $191 = (_strcmp($190,14493)|0);
  31402. $192 = ($191|0)!=(0);
  31403. if (!($192)) {
  31404. HEAP32[$1>>2] = 18;
  31405. break;
  31406. }
  31407. $193 = HEAP32[$3>>2]|0;
  31408. $194 = (_strcmp($193,14506)|0);
  31409. $195 = ($194|0)!=(0);
  31410. if (!($195)) {
  31411. HEAP32[$1>>2] = 19;
  31412. break;
  31413. }
  31414. $196 = HEAP32[$3>>2]|0;
  31415. $197 = (_strcmp($196,14519)|0);
  31416. $198 = ($197|0)!=(0);
  31417. if (!($198)) {
  31418. HEAP32[$1>>2] = 20;
  31419. break;
  31420. }
  31421. $199 = HEAP32[$3>>2]|0;
  31422. $200 = (_strcmp($199,14532)|0);
  31423. $201 = ($200|0)!=(0);
  31424. if (!($201)) {
  31425. HEAP32[$1>>2] = 21;
  31426. break;
  31427. }
  31428. $202 = HEAP32[$3>>2]|0;
  31429. $203 = (_strcmp($202,14545)|0);
  31430. $204 = ($203|0)!=(0);
  31431. if (!($204)) {
  31432. HEAP32[$1>>2] = 5;
  31433. break;
  31434. }
  31435. $205 = HEAP32[$3>>2]|0;
  31436. $206 = (_strcmp($205,14564)|0);
  31437. $207 = ($206|0)!=(0);
  31438. if (!($207)) {
  31439. HEAP32[$1>>2] = 6;
  31440. break;
  31441. }
  31442. $208 = HEAP32[$3>>2]|0;
  31443. $209 = (_strcmp($208,14583)|0);
  31444. $210 = ($209|0)!=(0);
  31445. if (!($210)) {
  31446. HEAP32[$1>>2] = 7;
  31447. break;
  31448. }
  31449. $211 = HEAP32[$3>>2]|0;
  31450. $212 = (_strcmp($211,14602)|0);
  31451. $213 = ($212|0)!=(0);
  31452. if (!($213)) {
  31453. HEAP32[$1>>2] = 19;
  31454. break;
  31455. }
  31456. $214 = HEAP32[$3>>2]|0;
  31457. $215 = (_strcmp($214,14615)|0);
  31458. $216 = ($215|0)!=(0);
  31459. if (!($216)) {
  31460. HEAP32[$1>>2] = 20;
  31461. break;
  31462. }
  31463. $217 = HEAP32[$3>>2]|0;
  31464. $218 = (_strcmp($217,14633)|0);
  31465. $219 = ($218|0)!=(0);
  31466. if (!($219)) {
  31467. HEAP32[$1>>2] = 21;
  31468. break;
  31469. }
  31470. $220 = HEAP32[$3>>2]|0;
  31471. $221 = (_strcmp($220,14651)|0);
  31472. $222 = ($221|0)!=(0);
  31473. if (!($222)) {
  31474. HEAP32[$1>>2] = 22;
  31475. break;
  31476. }
  31477. $223 = HEAP32[$3>>2]|0;
  31478. $224 = (_strcmp($223,14669)|0);
  31479. $225 = ($224|0)!=(0);
  31480. if (!($225)) {
  31481. HEAP32[$1>>2] = 23;
  31482. break;
  31483. }
  31484. $226 = HEAP32[$3>>2]|0;
  31485. $227 = (_strcmp($226,14687)|0);
  31486. $228 = ($227|0)!=(0);
  31487. if (!($228)) {
  31488. HEAP32[$1>>2] = 2;
  31489. break;
  31490. }
  31491. $229 = HEAP32[$3>>2]|0;
  31492. $230 = (_strcmp($229,14707)|0);
  31493. $231 = ($230|0)!=(0);
  31494. if (!($231)) {
  31495. HEAP32[$1>>2] = 3;
  31496. break;
  31497. }
  31498. $232 = HEAP32[$3>>2]|0;
  31499. $233 = (_strcmp($232,13648)|0);
  31500. $234 = ($233|0)!=(0);
  31501. if (!($234)) {
  31502. HEAP32[$1>>2] = 7;
  31503. break;
  31504. }
  31505. $235 = HEAP32[$3>>2]|0;
  31506. $236 = (_strcmp($235,14725)|0);
  31507. $237 = ($236|0)!=(0);
  31508. if (!($237)) {
  31509. HEAP32[$1>>2] = 1;
  31510. break;
  31511. }
  31512. $238 = HEAP32[$3>>2]|0;
  31513. $239 = (_strcmp($238,14740)|0);
  31514. $240 = ($239|0)!=(0);
  31515. if (!($240)) {
  31516. HEAP32[$1>>2] = 8;
  31517. break;
  31518. }
  31519. $241 = HEAP32[$3>>2]|0;
  31520. $242 = (_strcmp($241,14761)|0);
  31521. $243 = ($242|0)!=(0);
  31522. if (!($243)) {
  31523. HEAP32[$1>>2] = 9;
  31524. break;
  31525. }
  31526. $244 = HEAP32[$3>>2]|0;
  31527. $245 = (_strcmp($244,14776)|0);
  31528. $246 = ($245|0)!=(0);
  31529. if (!($246)) {
  31530. HEAP32[$1>>2] = 10;
  31531. break;
  31532. }
  31533. $247 = HEAP32[$3>>2]|0;
  31534. $248 = (_strcmp($247,14794)|0);
  31535. $249 = ($248|0)!=(0);
  31536. if (!($249)) {
  31537. HEAP32[$1>>2] = 2;
  31538. break;
  31539. }
  31540. $250 = HEAP32[$3>>2]|0;
  31541. $251 = (_strcmp($250,14810)|0);
  31542. $252 = ($251|0)!=(0);
  31543. if (!($252)) {
  31544. HEAP32[$1>>2] = 11;
  31545. break;
  31546. }
  31547. $253 = HEAP32[$3>>2]|0;
  31548. $254 = (_strcmp($253,14829)|0);
  31549. $255 = ($254|0)!=(0);
  31550. if (!($255)) {
  31551. HEAP32[$1>>2] = 22;
  31552. break;
  31553. }
  31554. $256 = HEAP32[$3>>2]|0;
  31555. $257 = (_strcmp($256,14843)|0);
  31556. $258 = ($257|0)!=(0);
  31557. if (!($258)) {
  31558. HEAP32[$1>>2] = 23;
  31559. break;
  31560. }
  31561. $259 = HEAP32[$3>>2]|0;
  31562. $260 = (_strcmp($259,14858)|0);
  31563. $261 = ($260|0)!=(0);
  31564. if (!($261)) {
  31565. HEAP32[$1>>2] = 8;
  31566. break;
  31567. }
  31568. $262 = HEAP32[$3>>2]|0;
  31569. $263 = (_strcmp($262,13579)|0);
  31570. $264 = ($263|0)!=(0);
  31571. if (!($264)) {
  31572. HEAP32[$1>>2] = 1;
  31573. break;
  31574. }
  31575. $265 = HEAP32[$3>>2]|0;
  31576. $266 = (_strcmp($265,14869)|0);
  31577. $267 = ($266|0)!=(0);
  31578. if (!($267)) {
  31579. HEAP32[$1>>2] = 3;
  31580. break;
  31581. }
  31582. $268 = HEAP32[$3>>2]|0;
  31583. $269 = (_strcmp($268,13678)|0);
  31584. $270 = ($269|0)!=(0);
  31585. if (!($270)) {
  31586. HEAP32[$1>>2] = 24;
  31587. break;
  31588. }
  31589. $271 = HEAP32[$3>>2]|0;
  31590. $272 = (_strcmp($271,13708)|0);
  31591. $273 = ($272|0)!=(0);
  31592. if (!($273)) {
  31593. HEAP32[$1>>2] = 25;
  31594. break;
  31595. }
  31596. $274 = HEAP32[$3>>2]|0;
  31597. $275 = (_strcmp($274,14885)|0);
  31598. $276 = ($275|0)!=(0);
  31599. if (!($276)) {
  31600. HEAP32[$1>>2] = 12;
  31601. break;
  31602. }
  31603. $277 = HEAP32[$3>>2]|0;
  31604. $278 = (_strcmp($277,14912)|0);
  31605. $279 = ($278|0)!=(0);
  31606. if (!($279)) {
  31607. HEAP32[$1>>2] = 4;
  31608. break;
  31609. }
  31610. $280 = HEAP32[$3>>2]|0;
  31611. $281 = (_strcmp($280,14926)|0);
  31612. $282 = ($281|0)!=(0);
  31613. if (!($282)) {
  31614. HEAP32[$1>>2] = 13;
  31615. break;
  31616. }
  31617. $283 = HEAP32[$3>>2]|0;
  31618. $284 = (_strcmp($283,13614)|0);
  31619. $285 = ($284|0)!=(0);
  31620. if (!($285)) {
  31621. HEAP32[$1>>2] = 5;
  31622. break;
  31623. }
  31624. $286 = HEAP32[$3>>2]|0;
  31625. $287 = (_strcmp($286,14946)|0);
  31626. $288 = ($287|0)!=(0);
  31627. if (!($288)) {
  31628. HEAP32[$1>>2] = 6;
  31629. break;
  31630. }
  31631. $289 = HEAP32[$3>>2]|0;
  31632. $290 = (_strcmp($289,14964)|0);
  31633. $291 = ($290|0)!=(0);
  31634. if (!($291)) {
  31635. HEAP32[$1>>2] = 9;
  31636. break;
  31637. }
  31638. $292 = HEAP32[$3>>2]|0;
  31639. $293 = (_strcmp($292,14976)|0);
  31640. $294 = ($293|0)!=(0);
  31641. if (!($294)) {
  31642. HEAP32[$1>>2] = 24;
  31643. break;
  31644. }
  31645. $295 = HEAP32[$3>>2]|0;
  31646. $296 = (_strcmp($295,14997)|0);
  31647. $297 = ($296|0)!=(0);
  31648. if (!($297)) {
  31649. HEAP32[$1>>2] = 26;
  31650. break;
  31651. }
  31652. $298 = HEAP32[$3>>2]|0;
  31653. $299 = (_strcmp($298,15015)|0);
  31654. $300 = ($299|0)!=(0);
  31655. if (!($300)) {
  31656. HEAP32[$1>>2] = 27;
  31657. break;
  31658. }
  31659. $301 = HEAP32[$3>>2]|0;
  31660. $302 = (_strcmp($301,15033)|0);
  31661. $303 = ($302|0)!=(0);
  31662. if (!($303)) {
  31663. HEAP32[$1>>2] = 28;
  31664. break;
  31665. }
  31666. $304 = HEAP32[$3>>2]|0;
  31667. $305 = (_strcmp($304,15054)|0);
  31668. $306 = ($305|0)!=(0);
  31669. if (!($306)) {
  31670. HEAP32[$1>>2] = 14;
  31671. break;
  31672. }
  31673. $307 = HEAP32[$3>>2]|0;
  31674. $308 = (_strcmp($307,15080)|0);
  31675. $309 = ($308|0)!=(0);
  31676. if (!($309)) {
  31677. HEAP32[$1>>2] = 3;
  31678. break;
  31679. }
  31680. $310 = HEAP32[$3>>2]|0;
  31681. $311 = (_strcmp($310,15103)|0);
  31682. $312 = ($311|0)!=(0);
  31683. if (!($312)) {
  31684. HEAP32[$1>>2] = 15;
  31685. break;
  31686. }
  31687. $313 = HEAP32[$3>>2]|0;
  31688. $314 = (_strcmp($313,15141)|0);
  31689. $315 = ($314|0)!=(0);
  31690. if (!($315)) {
  31691. HEAP32[$1>>2] = 10;
  31692. break;
  31693. }
  31694. $316 = HEAP32[$3>>2]|0;
  31695. $317 = (_strcmp($316,15157)|0);
  31696. $318 = ($317|0)!=(0);
  31697. if (!($318)) {
  31698. HEAP32[$1>>2] = 7;
  31699. break;
  31700. }
  31701. $319 = HEAP32[$3>>2]|0;
  31702. $320 = (_strcmp($319,15172)|0);
  31703. $321 = ($320|0)!=(0);
  31704. if (!($321)) {
  31705. HEAP32[$1>>2] = 25;
  31706. break;
  31707. }
  31708. $322 = HEAP32[$3>>2]|0;
  31709. $323 = (_strcmp($322,15195)|0);
  31710. $324 = ($323|0)!=(0);
  31711. if (!($324)) {
  31712. HEAP32[$1>>2] = 16;
  31713. break;
  31714. }
  31715. $325 = HEAP32[$3>>2]|0;
  31716. $326 = (_strcmp($325,15208)|0);
  31717. $327 = ($326|0)!=(0);
  31718. if (!($327)) {
  31719. HEAP32[$1>>2] = 29;
  31720. break;
  31721. }
  31722. $328 = HEAP32[$3>>2]|0;
  31723. $329 = (_strcmp($328,15222)|0);
  31724. $330 = ($329|0)!=(0);
  31725. if (!($330)) {
  31726. HEAP32[$1>>2] = 30;
  31727. break;
  31728. }
  31729. $331 = HEAP32[$3>>2]|0;
  31730. $332 = (_strcmp($331,15236)|0);
  31731. $333 = ($332|0)!=(0);
  31732. if (!($333)) {
  31733. HEAP32[$1>>2] = 1;
  31734. break;
  31735. }
  31736. $334 = HEAP32[$3>>2]|0;
  31737. $335 = (_strcmp($334,15256)|0);
  31738. $336 = ($335|0)!=(0);
  31739. if (!($336)) {
  31740. HEAP32[$1>>2] = 8;
  31741. break;
  31742. }
  31743. $337 = HEAP32[$3>>2]|0;
  31744. $338 = (_strcmp($337,15276)|0);
  31745. $339 = ($338|0)!=(0);
  31746. if (!($339)) {
  31747. HEAP32[$1>>2] = 17;
  31748. break;
  31749. }
  31750. $340 = HEAP32[$3>>2]|0;
  31751. $341 = (_strcmp($340,15292)|0);
  31752. $342 = ($341|0)!=(0);
  31753. if (!($342)) {
  31754. HEAP32[$1>>2] = 18;
  31755. break;
  31756. }
  31757. $343 = HEAP32[$3>>2]|0;
  31758. $344 = (_strcmp($343,15310)|0);
  31759. $345 = ($344|0)!=(0);
  31760. if (!($345)) {
  31761. HEAP32[$1>>2] = 26;
  31762. break;
  31763. }
  31764. $346 = HEAP32[$3>>2]|0;
  31765. $347 = (_strcmp($346,15326)|0);
  31766. $348 = ($347|0)!=(0);
  31767. if (!($348)) {
  31768. HEAP32[$1>>2] = 19;
  31769. break;
  31770. }
  31771. $349 = HEAP32[$3>>2]|0;
  31772. $350 = (_strcmp($349,15341)|0);
  31773. $351 = ($350|0)!=(0);
  31774. if (!($351)) {
  31775. HEAP32[$1>>2] = 9;
  31776. break;
  31777. }
  31778. $352 = HEAP32[$3>>2]|0;
  31779. $353 = (_strcmp($352,15363)|0);
  31780. $354 = ($353|0)!=(0);
  31781. if (!($354)) {
  31782. HEAP32[$1>>2] = 31;
  31783. break;
  31784. }
  31785. $355 = HEAP32[$3>>2]|0;
  31786. $356 = (_strcmp($355,15381)|0);
  31787. $357 = ($356|0)!=(0);
  31788. if (!($357)) {
  31789. HEAP32[$1>>2] = 32;
  31790. break;
  31791. }
  31792. $358 = HEAP32[$3>>2]|0;
  31793. $359 = (_strcmp($358,15402)|0);
  31794. $360 = ($359|0)!=(0);
  31795. if (!($360)) {
  31796. HEAP32[$1>>2] = 10;
  31797. break;
  31798. }
  31799. $361 = HEAP32[$3>>2]|0;
  31800. $362 = (_strcmp($361,15420)|0);
  31801. $363 = ($362|0)!=(0);
  31802. if (!($363)) {
  31803. HEAP32[$1>>2] = 11;
  31804. break;
  31805. }
  31806. $364 = HEAP32[$3>>2]|0;
  31807. $365 = (_strcmp($364,15433)|0);
  31808. $366 = ($365|0)!=(0);
  31809. if (!($366)) {
  31810. HEAP32[$1>>2] = 2;
  31811. break;
  31812. }
  31813. $367 = HEAP32[$3>>2]|0;
  31814. $368 = (_strcmp($367,15448)|0);
  31815. $369 = ($368|0)!=(0);
  31816. if (!($369)) {
  31817. HEAP32[$1>>2] = 12;
  31818. break;
  31819. }
  31820. $370 = HEAP32[$3>>2]|0;
  31821. $371 = (_strcmp($370,15462)|0);
  31822. $372 = ($371|0)!=(0);
  31823. if (!($372)) {
  31824. HEAP32[$1>>2] = 1;
  31825. break;
  31826. }
  31827. $373 = HEAP32[$3>>2]|0;
  31828. $374 = (_strcmp($373,15472)|0);
  31829. $375 = ($374|0)!=(0);
  31830. if (!($375)) {
  31831. HEAP32[$1>>2] = 1;
  31832. break;
  31833. }
  31834. $376 = HEAP32[$3>>2]|0;
  31835. $377 = (_strcmp($376,15482)|0);
  31836. $378 = ($377|0)!=(0);
  31837. if (!($378)) {
  31838. HEAP32[$1>>2] = 2;
  31839. break;
  31840. }
  31841. $379 = HEAP32[$3>>2]|0;
  31842. $380 = (_strcmp($379,15504)|0);
  31843. $381 = ($380|0)!=(0);
  31844. if (!($381)) {
  31845. HEAP32[$1>>2] = 13;
  31846. break;
  31847. }
  31848. $382 = HEAP32[$3>>2]|0;
  31849. $383 = (_strcmp($382,15530)|0);
  31850. $384 = ($383|0)!=(0);
  31851. if (!($384)) {
  31852. HEAP32[$1>>2] = 14;
  31853. break;
  31854. }
  31855. $385 = HEAP32[$3>>2]|0;
  31856. $386 = (_strcmp($385,15557)|0);
  31857. $387 = ($386|0)!=(0);
  31858. if (!($387)) {
  31859. HEAP32[$1>>2] = 27;
  31860. break;
  31861. }
  31862. $388 = HEAP32[$3>>2]|0;
  31863. $389 = (_strcmp($388,15570)|0);
  31864. $390 = ($389|0)!=(0);
  31865. if (!($390)) {
  31866. HEAP32[$1>>2] = 20;
  31867. break;
  31868. }
  31869. $391 = HEAP32[$3>>2]|0;
  31870. $392 = (_strcmp($391,15585)|0);
  31871. $393 = ($392|0)!=(0);
  31872. if (!($393)) {
  31873. HEAP32[$1>>2] = 4;
  31874. break;
  31875. }
  31876. $394 = HEAP32[$3>>2]|0;
  31877. $395 = (_strcmp($394,15600)|0);
  31878. $396 = ($395|0)!=(0);
  31879. if (!($396)) {
  31880. HEAP32[$1>>2] = 3;
  31881. break;
  31882. }
  31883. $397 = HEAP32[$3>>2]|0;
  31884. $398 = (_strcmp($397,15624)|0);
  31885. $399 = ($398|0)!=(0);
  31886. if (!($399)) {
  31887. HEAP32[$1>>2] = 2;
  31888. break;
  31889. }
  31890. $400 = HEAP32[$3>>2]|0;
  31891. $401 = (_strcmp($400,15635)|0);
  31892. $402 = ($401|0)!=(0);
  31893. if (!($402)) {
  31894. HEAP32[$1>>2] = 33;
  31895. break;
  31896. }
  31897. $403 = HEAP32[$3>>2]|0;
  31898. $404 = (_strcmp($403,15657)|0);
  31899. $405 = ($404|0)!=(0);
  31900. if (!($405)) {
  31901. HEAP32[$1>>2] = 21;
  31902. break;
  31903. }
  31904. $406 = HEAP32[$3>>2]|0;
  31905. $407 = (_strcmp($406,15679)|0);
  31906. $408 = ($407|0)!=(0);
  31907. if (!($408)) {
  31908. HEAP32[$1>>2] = 5;
  31909. break;
  31910. }
  31911. $409 = HEAP32[$3>>2]|0;
  31912. $410 = (_strcmp($409,15703)|0);
  31913. $411 = ($410|0)!=(0);
  31914. if (!($411)) {
  31915. HEAP32[$1>>2] = 4;
  31916. break;
  31917. }
  31918. $412 = HEAP32[$3>>2]|0;
  31919. $413 = (_strcmp($412,15712)|0);
  31920. $414 = ($413|0)!=(0);
  31921. if (!($414)) {
  31922. HEAP32[$1>>2] = 5;
  31923. break;
  31924. }
  31925. $415 = HEAP32[$3>>2]|0;
  31926. $416 = (_strcmp($415,15720)|0);
  31927. $417 = ($416|0)!=(0);
  31928. if (!($417)) {
  31929. HEAP32[$1>>2] = 1;
  31930. break;
  31931. }
  31932. $418 = HEAP32[$3>>2]|0;
  31933. $419 = (_strcmp($418,15733)|0);
  31934. $420 = ($419|0)!=(0);
  31935. if (!($420)) {
  31936. HEAP32[$1>>2] = 2;
  31937. break;
  31938. }
  31939. $421 = HEAP32[$3>>2]|0;
  31940. $422 = (_strcmp($421,15747)|0);
  31941. $423 = ($422|0)!=(0);
  31942. if (!($423)) {
  31943. HEAP32[$1>>2] = 15;
  31944. break;
  31945. }
  31946. $424 = HEAP32[$3>>2]|0;
  31947. $425 = (_strcmp($424,15759)|0);
  31948. $426 = ($425|0)!=(0);
  31949. if (!($426)) {
  31950. HEAP32[$1>>2] = 16;
  31951. break;
  31952. }
  31953. $427 = HEAP32[$3>>2]|0;
  31954. $428 = (_strcmp($427,15768)|0);
  31955. $429 = ($428|0)!=(0);
  31956. if (!($429)) {
  31957. HEAP32[$1>>2] = 17;
  31958. break;
  31959. }
  31960. $430 = HEAP32[$3>>2]|0;
  31961. $431 = (_strcmp($430,15778)|0);
  31962. $432 = ($431|0)!=(0);
  31963. if (!($432)) {
  31964. HEAP32[$1>>2] = 18;
  31965. break;
  31966. }
  31967. $433 = HEAP32[$3>>2]|0;
  31968. $434 = (_strcmp($433,15790)|0);
  31969. $435 = ($434|0)!=(0);
  31970. if (!($435)) {
  31971. HEAP32[$1>>2] = 19;
  31972. break;
  31973. }
  31974. $436 = HEAP32[$3>>2]|0;
  31975. $437 = (_strcmp($436,15801)|0);
  31976. $438 = ($437|0)!=(0);
  31977. if (!($438)) {
  31978. HEAP32[$1>>2] = 20;
  31979. break;
  31980. }
  31981. $439 = HEAP32[$3>>2]|0;
  31982. $440 = (_strcmp($439,15809)|0);
  31983. $441 = ($440|0)!=(0);
  31984. if (!($441)) {
  31985. HEAP32[$1>>2] = 3;
  31986. break;
  31987. }
  31988. $442 = HEAP32[$3>>2]|0;
  31989. $443 = (_strcmp($442,15821)|0);
  31990. $444 = ($443|0)!=(0);
  31991. if (!($444)) {
  31992. HEAP32[$1>>2] = 21;
  31993. break;
  31994. }
  31995. $445 = HEAP32[$3>>2]|0;
  31996. $446 = (_strcmp($445,15836)|0);
  31997. $447 = ($446|0)!=(0);
  31998. if (!($447)) {
  31999. HEAP32[$1>>2] = 22;
  32000. break;
  32001. }
  32002. $448 = HEAP32[$3>>2]|0;
  32003. $449 = (_strcmp($448,15848)|0);
  32004. $450 = ($449|0)!=(0);
  32005. if (!($450)) {
  32006. HEAP32[$1>>2] = 23;
  32007. break;
  32008. }
  32009. $451 = HEAP32[$3>>2]|0;
  32010. $452 = (_strcmp($451,15862)|0);
  32011. $453 = ($452|0)!=(0);
  32012. if (!($453)) {
  32013. HEAP32[$1>>2] = 11;
  32014. break;
  32015. }
  32016. $454 = HEAP32[$3>>2]|0;
  32017. $455 = (_strcmp($454,15887)|0);
  32018. $456 = ($455|0)!=(0);
  32019. if (!($456)) {
  32020. HEAP32[$1>>2] = 24;
  32021. break;
  32022. }
  32023. $457 = HEAP32[$3>>2]|0;
  32024. $458 = (_strcmp($457,15904)|0);
  32025. $459 = ($458|0)!=(0);
  32026. if (!($459)) {
  32027. HEAP32[$1>>2] = 25;
  32028. break;
  32029. }
  32030. $460 = HEAP32[$3>>2]|0;
  32031. $461 = (_strcmp($460,15920)|0);
  32032. $462 = ($461|0)!=(0);
  32033. if (!($462)) {
  32034. HEAP32[$1>>2] = 26;
  32035. break;
  32036. }
  32037. $463 = HEAP32[$3>>2]|0;
  32038. $464 = (_strcmp($463,15936)|0);
  32039. $465 = ($464|0)!=(0);
  32040. if (!($465)) {
  32041. HEAP32[$1>>2] = 12;
  32042. break;
  32043. }
  32044. $466 = HEAP32[$3>>2]|0;
  32045. $467 = (_strcmp($466,15948)|0);
  32046. $468 = ($467|0)!=(0);
  32047. if (!($468)) {
  32048. HEAP32[$1>>2] = 34;
  32049. break;
  32050. }
  32051. $469 = HEAP32[$3>>2]|0;
  32052. $470 = (_strcmp($469,15960)|0);
  32053. $471 = ($470|0)!=(0);
  32054. if (!($471)) {
  32055. HEAP32[$1>>2] = 35;
  32056. break;
  32057. }
  32058. $472 = HEAP32[$3>>2]|0;
  32059. $473 = (_strcmp($472,15984)|0);
  32060. $474 = ($473|0)!=(0);
  32061. if (!($474)) {
  32062. HEAP32[$1>>2] = 1;
  32063. break;
  32064. }
  32065. $475 = HEAP32[$3>>2]|0;
  32066. $476 = (_strcmp($475,15997)|0);
  32067. $477 = ($476|0)!=(0);
  32068. if (!($477)) {
  32069. HEAP32[$1>>2] = 2;
  32070. break;
  32071. }
  32072. $478 = HEAP32[$3>>2]|0;
  32073. $479 = (_strcmp($478,16011)|0);
  32074. $480 = ($479|0)!=(0);
  32075. if (!($480)) {
  32076. HEAP32[$1>>2] = 36;
  32077. break;
  32078. }
  32079. $481 = HEAP32[$3>>2]|0;
  32080. $482 = (_strcmp($481,16033)|0);
  32081. $483 = ($482|0)!=(0);
  32082. if (!($483)) {
  32083. HEAP32[$1>>2] = 37;
  32084. break;
  32085. }
  32086. $484 = HEAP32[$3>>2]|0;
  32087. $485 = (_strcmp($484,16040)|0);
  32088. $486 = ($485|0)!=(0);
  32089. if (!($486)) {
  32090. HEAP32[$1>>2] = 3;
  32091. break;
  32092. }
  32093. $487 = HEAP32[$3>>2]|0;
  32094. $488 = (_strcmp($487,16056)|0);
  32095. $489 = ($488|0)!=(0);
  32096. if (!($489)) {
  32097. HEAP32[$1>>2] = 2;
  32098. break;
  32099. }
  32100. $490 = HEAP32[$3>>2]|0;
  32101. $491 = (_strcmp($490,16073)|0);
  32102. $492 = ($491|0)!=(0);
  32103. if (!($492)) {
  32104. HEAP32[$1>>2] = 1;
  32105. break;
  32106. }
  32107. $493 = HEAP32[$3>>2]|0;
  32108. $494 = (_strcmp($493,16090)|0);
  32109. $495 = ($494|0)!=(0);
  32110. if (!($495)) {
  32111. HEAP32[$1>>2] = 28;
  32112. break;
  32113. }
  32114. $496 = HEAP32[$3>>2]|0;
  32115. $497 = (_strcmp($496,16106)|0);
  32116. $498 = ($497|0)!=(0);
  32117. if (!($498)) {
  32118. HEAP32[$1>>2] = 1;
  32119. break;
  32120. }
  32121. $499 = HEAP32[$3>>2]|0;
  32122. $500 = (_strcmp($499,16122)|0);
  32123. $501 = ($500|0)!=(0);
  32124. if (!($501)) {
  32125. HEAP32[$1>>2] = 4;
  32126. break;
  32127. }
  32128. $502 = HEAP32[$3>>2]|0;
  32129. $503 = (_strcmp($502,16139)|0);
  32130. $504 = ($503|0)!=(0);
  32131. if (!($504)) {
  32132. HEAP32[$1>>2] = 29;
  32133. break;
  32134. }
  32135. $505 = HEAP32[$3>>2]|0;
  32136. $506 = (_strcmp($505,16153)|0);
  32137. $507 = ($506|0)!=(0);
  32138. if (!($507)) {
  32139. HEAP32[$1>>2] = 30;
  32140. break;
  32141. }
  32142. $508 = HEAP32[$3>>2]|0;
  32143. $509 = (_strcmp($508,16165)|0);
  32144. $510 = ($509|0)!=(0);
  32145. if (!($510)) {
  32146. HEAP32[$1>>2] = 22;
  32147. break;
  32148. }
  32149. $511 = HEAP32[$3>>2]|0;
  32150. $512 = (_strcmp($511,16176)|0);
  32151. $513 = ($512|0)!=(0);
  32152. if (!($513)) {
  32153. HEAP32[$1>>2] = 2;
  32154. break;
  32155. }
  32156. $514 = HEAP32[$3>>2]|0;
  32157. $515 = (_strcmp($514,16189)|0);
  32158. $516 = ($515|0)!=(0);
  32159. if (!($516)) {
  32160. HEAP32[$1>>2] = 23;
  32161. break;
  32162. }
  32163. $517 = HEAP32[$3>>2]|0;
  32164. $518 = (_strcmp($517,16199)|0);
  32165. $519 = ($518|0)!=(0);
  32166. if (!($519)) {
  32167. HEAP32[$1>>2] = 2;
  32168. break;
  32169. }
  32170. $520 = HEAP32[$3>>2]|0;
  32171. $521 = (_strcmp($520,16216)|0);
  32172. $522 = ($521|0)!=(0);
  32173. if (!($522)) {
  32174. HEAP32[$1>>2] = 24;
  32175. break;
  32176. }
  32177. $523 = HEAP32[$3>>2]|0;
  32178. $524 = (_strcmp($523,16228)|0);
  32179. $525 = ($524|0)!=(0);
  32180. if (!($525)) {
  32181. HEAP32[$1>>2] = 25;
  32182. break;
  32183. }
  32184. $526 = HEAP32[$3>>2]|0;
  32185. $527 = (_strcmp($526,16250)|0);
  32186. $528 = ($527|0)!=(0);
  32187. if (!($528)) {
  32188. HEAP32[$1>>2] = 26;
  32189. break;
  32190. }
  32191. $529 = HEAP32[$3>>2]|0;
  32192. $530 = (_strcmp($529,16270)|0);
  32193. $531 = ($530|0)!=(0);
  32194. if (!($531)) {
  32195. HEAP32[$1>>2] = 3;
  32196. break;
  32197. }
  32198. $532 = HEAP32[$3>>2]|0;
  32199. $533 = (_strcmp($532,16283)|0);
  32200. $534 = ($533|0)!=(0);
  32201. if (!($534)) {
  32202. HEAP32[$1>>2] = 27;
  32203. break;
  32204. }
  32205. $535 = HEAP32[$3>>2]|0;
  32206. $536 = (_strcmp($535,16305)|0);
  32207. $537 = ($536|0)!=(0);
  32208. if (!($537)) {
  32209. HEAP32[$1>>2] = 28;
  32210. break;
  32211. }
  32212. $538 = HEAP32[$3>>2]|0;
  32213. $539 = (_strcmp($538,16325)|0);
  32214. $540 = ($539|0)!=(0);
  32215. if (!($540)) {
  32216. HEAP32[$1>>2] = 2;
  32217. break;
  32218. }
  32219. $541 = HEAP32[$3>>2]|0;
  32220. $542 = (_strcmp($541,16342)|0);
  32221. $543 = ($542|0)!=(0);
  32222. if (!($543)) {
  32223. HEAP32[$1>>2] = 2;
  32224. break;
  32225. }
  32226. $544 = HEAP32[$3>>2]|0;
  32227. $545 = (_strcmp($544,16359)|0);
  32228. $546 = ($545|0)!=(0);
  32229. if (!($546)) {
  32230. HEAP32[$1>>2] = 3;
  32231. break;
  32232. }
  32233. $547 = HEAP32[$3>>2]|0;
  32234. $548 = (_strcmp($547,16379)|0);
  32235. $549 = ($548|0)!=(0);
  32236. if ($549) {
  32237. $550 = HEAP32[$2>>2]|0;
  32238. $551 = HEAP32[$3>>2]|0;
  32239. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  32240. HEAP32[$1>>2] = 0;
  32241. break;
  32242. } else {
  32243. HEAP32[$1>>2] = 38;
  32244. break;
  32245. }
  32246. } else {
  32247. HEAP32[$1>>2] = 6;
  32248. }
  32249. } while(0);
  32250. $553 = HEAP32[$1>>2]|0;
  32251. STACKTOP = sp;return ($553|0);
  32252. }
  32253. function _emscripten_get_global_libc() {
  32254. var label = 0, sp = 0;
  32255. sp = STACKTOP;
  32256. return (21876|0);
  32257. }
  32258. function ___stdio_close($0) {
  32259. $0 = $0|0;
  32260. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  32261. sp = STACKTOP;
  32262. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  32263. $vararg_buffer = sp;
  32264. $1 = ((($0)) + 60|0);
  32265. $2 = HEAP32[$1>>2]|0;
  32266. $3 = (_dummy_738($2)|0);
  32267. HEAP32[$vararg_buffer>>2] = $3;
  32268. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  32269. $5 = (___syscall_ret($4)|0);
  32270. STACKTOP = sp;return ($5|0);
  32271. }
  32272. function ___stdio_write($0,$1,$2) {
  32273. $0 = $0|0;
  32274. $1 = $1|0;
  32275. $2 = $2|0;
  32276. 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;
  32277. 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;
  32278. 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;
  32279. var $vararg_ptr7 = 0, label = 0, sp = 0;
  32280. sp = STACKTOP;
  32281. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  32282. $vararg_buffer3 = sp + 16|0;
  32283. $vararg_buffer = sp;
  32284. $3 = sp + 32|0;
  32285. $4 = ((($0)) + 28|0);
  32286. $5 = HEAP32[$4>>2]|0;
  32287. HEAP32[$3>>2] = $5;
  32288. $6 = ((($3)) + 4|0);
  32289. $7 = ((($0)) + 20|0);
  32290. $8 = HEAP32[$7>>2]|0;
  32291. $9 = (($8) - ($5))|0;
  32292. HEAP32[$6>>2] = $9;
  32293. $10 = ((($3)) + 8|0);
  32294. HEAP32[$10>>2] = $1;
  32295. $11 = ((($3)) + 12|0);
  32296. HEAP32[$11>>2] = $2;
  32297. $12 = (($9) + ($2))|0;
  32298. $13 = ((($0)) + 60|0);
  32299. $14 = HEAP32[$13>>2]|0;
  32300. $15 = $3;
  32301. HEAP32[$vararg_buffer>>2] = $14;
  32302. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32303. HEAP32[$vararg_ptr1>>2] = $15;
  32304. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32305. HEAP32[$vararg_ptr2>>2] = 2;
  32306. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  32307. $17 = (___syscall_ret($16)|0);
  32308. $18 = ($12|0)==($17|0);
  32309. L1: do {
  32310. if ($18) {
  32311. label = 3;
  32312. } else {
  32313. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  32314. while(1) {
  32315. $25 = ($26|0)<(0);
  32316. if ($25) {
  32317. break;
  32318. }
  32319. $34 = (($$04855) - ($26))|0;
  32320. $35 = ((($$04954)) + 4|0);
  32321. $36 = HEAP32[$35>>2]|0;
  32322. $37 = ($26>>>0)>($36>>>0);
  32323. $38 = ((($$04954)) + 8|0);
  32324. $$150 = $37 ? $38 : $$04954;
  32325. $39 = $37 << 31 >> 31;
  32326. $$1 = (($39) + ($$04756))|0;
  32327. $40 = $37 ? $36 : 0;
  32328. $$0 = (($26) - ($40))|0;
  32329. $41 = HEAP32[$$150>>2]|0;
  32330. $42 = (($41) + ($$0)|0);
  32331. HEAP32[$$150>>2] = $42;
  32332. $43 = ((($$150)) + 4|0);
  32333. $44 = HEAP32[$43>>2]|0;
  32334. $45 = (($44) - ($$0))|0;
  32335. HEAP32[$43>>2] = $45;
  32336. $46 = HEAP32[$13>>2]|0;
  32337. $47 = $$150;
  32338. HEAP32[$vararg_buffer3>>2] = $46;
  32339. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  32340. HEAP32[$vararg_ptr6>>2] = $47;
  32341. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  32342. HEAP32[$vararg_ptr7>>2] = $$1;
  32343. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  32344. $49 = (___syscall_ret($48)|0);
  32345. $50 = ($34|0)==($49|0);
  32346. if ($50) {
  32347. label = 3;
  32348. break L1;
  32349. } else {
  32350. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  32351. }
  32352. }
  32353. $27 = ((($0)) + 16|0);
  32354. HEAP32[$27>>2] = 0;
  32355. HEAP32[$4>>2] = 0;
  32356. HEAP32[$7>>2] = 0;
  32357. $28 = HEAP32[$0>>2]|0;
  32358. $29 = $28 | 32;
  32359. HEAP32[$0>>2] = $29;
  32360. $30 = ($$04756|0)==(2);
  32361. if ($30) {
  32362. $$051 = 0;
  32363. } else {
  32364. $31 = ((($$04954)) + 4|0);
  32365. $32 = HEAP32[$31>>2]|0;
  32366. $33 = (($2) - ($32))|0;
  32367. $$051 = $33;
  32368. }
  32369. }
  32370. } while(0);
  32371. if ((label|0) == 3) {
  32372. $19 = ((($0)) + 44|0);
  32373. $20 = HEAP32[$19>>2]|0;
  32374. $21 = ((($0)) + 48|0);
  32375. $22 = HEAP32[$21>>2]|0;
  32376. $23 = (($20) + ($22)|0);
  32377. $24 = ((($0)) + 16|0);
  32378. HEAP32[$24>>2] = $23;
  32379. HEAP32[$4>>2] = $20;
  32380. HEAP32[$7>>2] = $20;
  32381. $$051 = $2;
  32382. }
  32383. STACKTOP = sp;return ($$051|0);
  32384. }
  32385. function ___stdio_seek($0,$1,$2) {
  32386. $0 = $0|0;
  32387. $1 = $1|0;
  32388. $2 = $2|0;
  32389. 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;
  32390. sp = STACKTOP;
  32391. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32392. $vararg_buffer = sp;
  32393. $3 = sp + 20|0;
  32394. $4 = ((($0)) + 60|0);
  32395. $5 = HEAP32[$4>>2]|0;
  32396. $6 = $3;
  32397. HEAP32[$vararg_buffer>>2] = $5;
  32398. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32399. HEAP32[$vararg_ptr1>>2] = 0;
  32400. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32401. HEAP32[$vararg_ptr2>>2] = $1;
  32402. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  32403. HEAP32[$vararg_ptr3>>2] = $6;
  32404. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  32405. HEAP32[$vararg_ptr4>>2] = $2;
  32406. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  32407. $8 = (___syscall_ret($7)|0);
  32408. $9 = ($8|0)<(0);
  32409. if ($9) {
  32410. HEAP32[$3>>2] = -1;
  32411. $10 = -1;
  32412. } else {
  32413. $$pre = HEAP32[$3>>2]|0;
  32414. $10 = $$pre;
  32415. }
  32416. STACKTOP = sp;return ($10|0);
  32417. }
  32418. function ___syscall_ret($0) {
  32419. $0 = $0|0;
  32420. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  32421. sp = STACKTOP;
  32422. $1 = ($0>>>0)>(4294963200);
  32423. if ($1) {
  32424. $2 = (0 - ($0))|0;
  32425. $3 = (___errno_location()|0);
  32426. HEAP32[$3>>2] = $2;
  32427. $$0 = -1;
  32428. } else {
  32429. $$0 = $0;
  32430. }
  32431. return ($$0|0);
  32432. }
  32433. function ___errno_location() {
  32434. var $0 = 0, $1 = 0, label = 0, sp = 0;
  32435. sp = STACKTOP;
  32436. $0 = (___pthread_self_108()|0);
  32437. $1 = ((($0)) + 64|0);
  32438. return ($1|0);
  32439. }
  32440. function ___pthread_self_108() {
  32441. var $0 = 0, label = 0, sp = 0;
  32442. sp = STACKTOP;
  32443. $0 = (_pthread_self()|0);
  32444. return ($0|0);
  32445. }
  32446. function _pthread_self() {
  32447. var label = 0, sp = 0;
  32448. sp = STACKTOP;
  32449. return (3824|0);
  32450. }
  32451. function _dummy_738($0) {
  32452. $0 = $0|0;
  32453. var label = 0, sp = 0;
  32454. sp = STACKTOP;
  32455. return ($0|0);
  32456. }
  32457. function ___stdio_read($0,$1,$2) {
  32458. $0 = $0|0;
  32459. $1 = $1|0;
  32460. $2 = $2|0;
  32461. 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;
  32462. 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;
  32463. sp = STACKTOP;
  32464. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32465. $vararg_buffer = sp;
  32466. $3 = sp + 16|0;
  32467. HEAP32[$3>>2] = $1;
  32468. $4 = ((($3)) + 4|0);
  32469. $5 = ((($0)) + 48|0);
  32470. $6 = HEAP32[$5>>2]|0;
  32471. $7 = ($6|0)!=(0);
  32472. $8 = $7&1;
  32473. $9 = (($2) - ($8))|0;
  32474. HEAP32[$4>>2] = $9;
  32475. $10 = ((($3)) + 8|0);
  32476. $11 = ((($0)) + 44|0);
  32477. $12 = HEAP32[$11>>2]|0;
  32478. HEAP32[$10>>2] = $12;
  32479. $13 = ((($3)) + 12|0);
  32480. HEAP32[$13>>2] = $6;
  32481. $14 = ((($0)) + 60|0);
  32482. $15 = HEAP32[$14>>2]|0;
  32483. $16 = $3;
  32484. HEAP32[$vararg_buffer>>2] = $15;
  32485. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32486. HEAP32[$vararg_ptr1>>2] = $16;
  32487. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32488. HEAP32[$vararg_ptr2>>2] = 2;
  32489. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  32490. $18 = (___syscall_ret($17)|0);
  32491. $19 = ($18|0)<(1);
  32492. if ($19) {
  32493. $20 = $18 & 48;
  32494. $21 = $20 ^ 16;
  32495. $22 = HEAP32[$0>>2]|0;
  32496. $23 = $22 | $21;
  32497. HEAP32[$0>>2] = $23;
  32498. $$0 = $18;
  32499. } else {
  32500. $24 = HEAP32[$4>>2]|0;
  32501. $25 = ($18>>>0)>($24>>>0);
  32502. if ($25) {
  32503. $26 = (($18) - ($24))|0;
  32504. $27 = HEAP32[$11>>2]|0;
  32505. $28 = ((($0)) + 4|0);
  32506. HEAP32[$28>>2] = $27;
  32507. $29 = (($27) + ($26)|0);
  32508. $30 = ((($0)) + 8|0);
  32509. HEAP32[$30>>2] = $29;
  32510. $31 = HEAP32[$5>>2]|0;
  32511. $32 = ($31|0)==(0);
  32512. if ($32) {
  32513. $$0 = $2;
  32514. } else {
  32515. $33 = ((($27)) + 1|0);
  32516. HEAP32[$28>>2] = $33;
  32517. $34 = HEAP8[$27>>0]|0;
  32518. $35 = (($2) + -1)|0;
  32519. $36 = (($1) + ($35)|0);
  32520. HEAP8[$36>>0] = $34;
  32521. $$0 = $2;
  32522. }
  32523. } else {
  32524. $$0 = $18;
  32525. }
  32526. }
  32527. STACKTOP = sp;return ($$0|0);
  32528. }
  32529. function ___stdout_write($0,$1,$2) {
  32530. $0 = $0|0;
  32531. $1 = $1|0;
  32532. $2 = $2|0;
  32533. 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;
  32534. sp = STACKTOP;
  32535. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  32536. $vararg_buffer = sp;
  32537. $3 = sp + 16|0;
  32538. $4 = ((($0)) + 36|0);
  32539. HEAP32[$4>>2] = 9;
  32540. $5 = HEAP32[$0>>2]|0;
  32541. $6 = $5 & 64;
  32542. $7 = ($6|0)==(0);
  32543. if ($7) {
  32544. $8 = ((($0)) + 60|0);
  32545. $9 = HEAP32[$8>>2]|0;
  32546. $10 = $3;
  32547. HEAP32[$vararg_buffer>>2] = $9;
  32548. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  32549. HEAP32[$vararg_ptr1>>2] = 21523;
  32550. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  32551. HEAP32[$vararg_ptr2>>2] = $10;
  32552. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  32553. $12 = ($11|0)==(0);
  32554. if (!($12)) {
  32555. $13 = ((($0)) + 75|0);
  32556. HEAP8[$13>>0] = -1;
  32557. }
  32558. }
  32559. $14 = (___stdio_write($0,$1,$2)|0);
  32560. STACKTOP = sp;return ($14|0);
  32561. }
  32562. function ___shlim($0,$1) {
  32563. $0 = $0|0;
  32564. $1 = $1|0;
  32565. 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;
  32566. sp = STACKTOP;
  32567. $2 = ((($0)) + 104|0);
  32568. HEAP32[$2>>2] = $1;
  32569. $3 = ((($0)) + 8|0);
  32570. $4 = HEAP32[$3>>2]|0;
  32571. $5 = ((($0)) + 4|0);
  32572. $6 = HEAP32[$5>>2]|0;
  32573. $7 = $4;
  32574. $8 = $6;
  32575. $9 = (($7) - ($8))|0;
  32576. $10 = ((($0)) + 108|0);
  32577. HEAP32[$10>>2] = $9;
  32578. $11 = ($1|0)!=(0);
  32579. $12 = ($9|0)>($1|0);
  32580. $or$cond = $11 & $12;
  32581. $13 = (($6) + ($1)|0);
  32582. $$sink = $or$cond ? $13 : $4;
  32583. $14 = ((($0)) + 100|0);
  32584. HEAP32[$14>>2] = $$sink;
  32585. return;
  32586. }
  32587. function ___intscan($0,$1,$2,$3,$4) {
  32588. $0 = $0|0;
  32589. $1 = $1|0;
  32590. $2 = $2|0;
  32591. $3 = $3|0;
  32592. $4 = $4|0;
  32593. 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;
  32594. 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;
  32595. 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;
  32596. 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;
  32597. 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;
  32598. 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;
  32599. 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;
  32600. 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;
  32601. 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;
  32602. 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;
  32603. 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;
  32604. 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;
  32605. 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;
  32606. 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;
  32607. 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;
  32608. 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;
  32609. var $or$cond187 = 0, $or$cond5 = 0, $or$cond7 = 0, label = 0, sp = 0;
  32610. sp = STACKTOP;
  32611. $5 = ($1>>>0)>(36);
  32612. L1: do {
  32613. if ($5) {
  32614. $8 = (___errno_location()|0);
  32615. HEAP32[$8>>2] = 22;
  32616. $289 = 0;$290 = 0;
  32617. } else {
  32618. $6 = ((($0)) + 4|0);
  32619. $7 = ((($0)) + 100|0);
  32620. while(1) {
  32621. $9 = HEAP32[$6>>2]|0;
  32622. $10 = HEAP32[$7>>2]|0;
  32623. $11 = ($9>>>0)<($10>>>0);
  32624. if ($11) {
  32625. $12 = ((($9)) + 1|0);
  32626. HEAP32[$6>>2] = $12;
  32627. $13 = HEAP8[$9>>0]|0;
  32628. $14 = $13&255;
  32629. $16 = $14;
  32630. } else {
  32631. $15 = (___shgetc($0)|0);
  32632. $16 = $15;
  32633. }
  32634. $17 = (_isspace($16)|0);
  32635. $18 = ($17|0)==(0);
  32636. if ($18) {
  32637. break;
  32638. }
  32639. }
  32640. L11: do {
  32641. switch ($16|0) {
  32642. case 43: case 45: {
  32643. $19 = ($16|0)==(45);
  32644. $20 = $19 << 31 >> 31;
  32645. $21 = HEAP32[$6>>2]|0;
  32646. $22 = HEAP32[$7>>2]|0;
  32647. $23 = ($21>>>0)<($22>>>0);
  32648. if ($23) {
  32649. $24 = ((($21)) + 1|0);
  32650. HEAP32[$6>>2] = $24;
  32651. $25 = HEAP8[$21>>0]|0;
  32652. $26 = $25&255;
  32653. $$0157 = $20;$$0159 = $26;
  32654. break L11;
  32655. } else {
  32656. $27 = (___shgetc($0)|0);
  32657. $$0157 = $20;$$0159 = $27;
  32658. break L11;
  32659. }
  32660. break;
  32661. }
  32662. default: {
  32663. $$0157 = 0;$$0159 = $16;
  32664. }
  32665. }
  32666. } while(0);
  32667. $28 = ($1|0)==(0);
  32668. $29 = $1 | 16;
  32669. $30 = ($29|0)==(16);
  32670. $31 = ($$0159|0)==(48);
  32671. $or$cond5 = $30 & $31;
  32672. do {
  32673. if ($or$cond5) {
  32674. $32 = HEAP32[$6>>2]|0;
  32675. $33 = HEAP32[$7>>2]|0;
  32676. $34 = ($32>>>0)<($33>>>0);
  32677. if ($34) {
  32678. $35 = ((($32)) + 1|0);
  32679. HEAP32[$6>>2] = $35;
  32680. $36 = HEAP8[$32>>0]|0;
  32681. $37 = $36&255;
  32682. $40 = $37;
  32683. } else {
  32684. $38 = (___shgetc($0)|0);
  32685. $40 = $38;
  32686. }
  32687. $39 = $40 | 32;
  32688. $41 = ($39|0)==(120);
  32689. if (!($41)) {
  32690. if ($28) {
  32691. $$1160169 = $40;$$1165168 = 8;
  32692. label = 46;
  32693. break;
  32694. } else {
  32695. $$1160 = $40;$$1165 = $1;
  32696. label = 32;
  32697. break;
  32698. }
  32699. }
  32700. $42 = HEAP32[$6>>2]|0;
  32701. $43 = HEAP32[$7>>2]|0;
  32702. $44 = ($42>>>0)<($43>>>0);
  32703. if ($44) {
  32704. $45 = ((($42)) + 1|0);
  32705. HEAP32[$6>>2] = $45;
  32706. $46 = HEAP8[$42>>0]|0;
  32707. $47 = $46&255;
  32708. $50 = $47;
  32709. } else {
  32710. $48 = (___shgetc($0)|0);
  32711. $50 = $48;
  32712. }
  32713. $49 = ((16496) + ($50)|0);
  32714. $51 = HEAP8[$49>>0]|0;
  32715. $52 = ($51&255)>(15);
  32716. if ($52) {
  32717. $53 = HEAP32[$7>>2]|0;
  32718. $54 = ($53|0)!=(0|0);
  32719. if ($54) {
  32720. $55 = HEAP32[$6>>2]|0;
  32721. $56 = ((($55)) + -1|0);
  32722. HEAP32[$6>>2] = $56;
  32723. }
  32724. $57 = ($2|0)==(0);
  32725. if ($57) {
  32726. ___shlim($0,0);
  32727. $289 = 0;$290 = 0;
  32728. break L1;
  32729. }
  32730. if (!($54)) {
  32731. $289 = 0;$290 = 0;
  32732. break L1;
  32733. }
  32734. $58 = HEAP32[$6>>2]|0;
  32735. $59 = ((($58)) + -1|0);
  32736. HEAP32[$6>>2] = $59;
  32737. $289 = 0;$290 = 0;
  32738. break L1;
  32739. } else {
  32740. $$1160169 = $50;$$1165168 = 16;
  32741. label = 46;
  32742. }
  32743. } else {
  32744. $$166 = $28 ? 10 : $1;
  32745. $60 = ((16496) + ($$0159)|0);
  32746. $61 = HEAP8[$60>>0]|0;
  32747. $62 = $61&255;
  32748. $63 = ($62>>>0)<($$166>>>0);
  32749. if ($63) {
  32750. $$1160 = $$0159;$$1165 = $$166;
  32751. label = 32;
  32752. } else {
  32753. $64 = HEAP32[$7>>2]|0;
  32754. $65 = ($64|0)==(0|0);
  32755. if (!($65)) {
  32756. $66 = HEAP32[$6>>2]|0;
  32757. $67 = ((($66)) + -1|0);
  32758. HEAP32[$6>>2] = $67;
  32759. }
  32760. ___shlim($0,0);
  32761. $68 = (___errno_location()|0);
  32762. HEAP32[$68>>2] = 22;
  32763. $289 = 0;$290 = 0;
  32764. break L1;
  32765. }
  32766. }
  32767. } while(0);
  32768. L43: do {
  32769. if ((label|0) == 32) {
  32770. $69 = ($$1165|0)==(10);
  32771. if ($69) {
  32772. $70 = (($$1160) + -48)|0;
  32773. $71 = ($70>>>0)<(10);
  32774. if ($71) {
  32775. $$0154222 = 0;$74 = $70;
  32776. while(1) {
  32777. $72 = ($$0154222*10)|0;
  32778. $73 = (($72) + ($74))|0;
  32779. $75 = HEAP32[$6>>2]|0;
  32780. $76 = HEAP32[$7>>2]|0;
  32781. $77 = ($75>>>0)<($76>>>0);
  32782. if ($77) {
  32783. $78 = ((($75)) + 1|0);
  32784. HEAP32[$6>>2] = $78;
  32785. $79 = HEAP8[$75>>0]|0;
  32786. $80 = $79&255;
  32787. $$2161$be = $80;
  32788. } else {
  32789. $81 = (___shgetc($0)|0);
  32790. $$2161$be = $81;
  32791. }
  32792. $82 = (($$2161$be) + -48)|0;
  32793. $83 = ($82>>>0)<(10);
  32794. $84 = ($73>>>0)<(429496729);
  32795. $85 = $83 & $84;
  32796. if ($85) {
  32797. $$0154222 = $73;$74 = $82;
  32798. } else {
  32799. break;
  32800. }
  32801. }
  32802. $$2161$lcssa = $$2161$be;$291 = $73;$292 = 0;
  32803. } else {
  32804. $$2161$lcssa = $$1160;$291 = 0;$292 = 0;
  32805. }
  32806. $86 = (($$2161$lcssa) + -48)|0;
  32807. $87 = ($86>>>0)<(10);
  32808. if ($87) {
  32809. $$3162215 = $$2161$lcssa;$88 = $291;$89 = $292;$93 = $86;
  32810. while(1) {
  32811. $90 = (___muldi3(($88|0),($89|0),10,0)|0);
  32812. $91 = tempRet0;
  32813. $92 = ($93|0)<(0);
  32814. $94 = $92 << 31 >> 31;
  32815. $95 = $93 ^ -1;
  32816. $96 = $94 ^ -1;
  32817. $97 = ($91>>>0)>($96>>>0);
  32818. $98 = ($90>>>0)>($95>>>0);
  32819. $99 = ($91|0)==($96|0);
  32820. $100 = $99 & $98;
  32821. $101 = $97 | $100;
  32822. if ($101) {
  32823. $$1165167 = 10;$$8 = $$3162215;$293 = $88;$294 = $89;
  32824. label = 72;
  32825. break L43;
  32826. }
  32827. $102 = (_i64Add(($90|0),($91|0),($93|0),($94|0))|0);
  32828. $103 = tempRet0;
  32829. $104 = HEAP32[$6>>2]|0;
  32830. $105 = HEAP32[$7>>2]|0;
  32831. $106 = ($104>>>0)<($105>>>0);
  32832. if ($106) {
  32833. $107 = ((($104)) + 1|0);
  32834. HEAP32[$6>>2] = $107;
  32835. $108 = HEAP8[$104>>0]|0;
  32836. $109 = $108&255;
  32837. $$3162$be = $109;
  32838. } else {
  32839. $110 = (___shgetc($0)|0);
  32840. $$3162$be = $110;
  32841. }
  32842. $111 = (($$3162$be) + -48)|0;
  32843. $112 = ($111>>>0)<(10);
  32844. $113 = ($103>>>0)<(429496729);
  32845. $114 = ($102>>>0)<(2576980378);
  32846. $115 = ($103|0)==(429496729);
  32847. $116 = $115 & $114;
  32848. $117 = $113 | $116;
  32849. $or$cond7 = $112 & $117;
  32850. if ($or$cond7) {
  32851. $$3162215 = $$3162$be;$88 = $102;$89 = $103;$93 = $111;
  32852. } else {
  32853. break;
  32854. }
  32855. }
  32856. $118 = ($111>>>0)>(9);
  32857. if ($118) {
  32858. $$1158 = $$0157;$263 = $103;$265 = $102;
  32859. } else {
  32860. $$1165167 = 10;$$8 = $$3162$be;$293 = $102;$294 = $103;
  32861. label = 72;
  32862. }
  32863. } else {
  32864. $$1158 = $$0157;$263 = $292;$265 = $291;
  32865. }
  32866. } else {
  32867. $$1160169 = $$1160;$$1165168 = $$1165;
  32868. label = 46;
  32869. }
  32870. }
  32871. } while(0);
  32872. L63: do {
  32873. if ((label|0) == 46) {
  32874. $119 = (($$1165168) + -1)|0;
  32875. $120 = $119 & $$1165168;
  32876. $121 = ($120|0)==(0);
  32877. if ($121) {
  32878. $126 = ($$1165168*23)|0;
  32879. $127 = $126 >>> 5;
  32880. $128 = $127 & 7;
  32881. $129 = (16752 + ($128)|0);
  32882. $130 = HEAP8[$129>>0]|0;
  32883. $131 = $130 << 24 >> 24;
  32884. $132 = ((16496) + ($$1160169)|0);
  32885. $133 = HEAP8[$132>>0]|0;
  32886. $134 = $133&255;
  32887. $135 = ($134>>>0)<($$1165168>>>0);
  32888. if ($135) {
  32889. $$1155192 = 0;$138 = $134;
  32890. while(1) {
  32891. $136 = $$1155192 << $131;
  32892. $137 = $138 | $136;
  32893. $139 = HEAP32[$6>>2]|0;
  32894. $140 = HEAP32[$7>>2]|0;
  32895. $141 = ($139>>>0)<($140>>>0);
  32896. if ($141) {
  32897. $142 = ((($139)) + 1|0);
  32898. HEAP32[$6>>2] = $142;
  32899. $143 = HEAP8[$139>>0]|0;
  32900. $144 = $143&255;
  32901. $$4163$be = $144;
  32902. } else {
  32903. $145 = (___shgetc($0)|0);
  32904. $$4163$be = $145;
  32905. }
  32906. $146 = ((16496) + ($$4163$be)|0);
  32907. $147 = HEAP8[$146>>0]|0;
  32908. $148 = $147&255;
  32909. $149 = ($148>>>0)<($$1165168>>>0);
  32910. $150 = ($137>>>0)<(134217728);
  32911. $151 = $150 & $149;
  32912. if ($151) {
  32913. $$1155192 = $137;$138 = $148;
  32914. } else {
  32915. break;
  32916. }
  32917. }
  32918. $$4163$lcssa = $$4163$be;$155 = $147;$158 = 0;$160 = $137;
  32919. } else {
  32920. $$4163$lcssa = $$1160169;$155 = $133;$158 = 0;$160 = 0;
  32921. }
  32922. $152 = (_bitshift64Lshr(-1,-1,($131|0))|0);
  32923. $153 = tempRet0;
  32924. $154 = $155&255;
  32925. $156 = ($154>>>0)>=($$1165168>>>0);
  32926. $157 = ($158>>>0)>($153>>>0);
  32927. $159 = ($160>>>0)>($152>>>0);
  32928. $161 = ($158|0)==($153|0);
  32929. $162 = $161 & $159;
  32930. $163 = $157 | $162;
  32931. $or$cond187 = $156 | $163;
  32932. if ($or$cond187) {
  32933. $$1165167 = $$1165168;$$8 = $$4163$lcssa;$293 = $160;$294 = $158;
  32934. label = 72;
  32935. break;
  32936. } else {
  32937. $164 = $160;$165 = $158;$169 = $155;
  32938. }
  32939. while(1) {
  32940. $166 = (_bitshift64Shl(($164|0),($165|0),($131|0))|0);
  32941. $167 = tempRet0;
  32942. $168 = $169&255;
  32943. $170 = $168 | $166;
  32944. $171 = HEAP32[$6>>2]|0;
  32945. $172 = HEAP32[$7>>2]|0;
  32946. $173 = ($171>>>0)<($172>>>0);
  32947. if ($173) {
  32948. $174 = ((($171)) + 1|0);
  32949. HEAP32[$6>>2] = $174;
  32950. $175 = HEAP8[$171>>0]|0;
  32951. $176 = $175&255;
  32952. $$5$be = $176;
  32953. } else {
  32954. $177 = (___shgetc($0)|0);
  32955. $$5$be = $177;
  32956. }
  32957. $178 = ((16496) + ($$5$be)|0);
  32958. $179 = HEAP8[$178>>0]|0;
  32959. $180 = $179&255;
  32960. $181 = ($180>>>0)>=($$1165168>>>0);
  32961. $182 = ($167>>>0)>($153>>>0);
  32962. $183 = ($170>>>0)>($152>>>0);
  32963. $184 = ($167|0)==($153|0);
  32964. $185 = $184 & $183;
  32965. $186 = $182 | $185;
  32966. $or$cond = $181 | $186;
  32967. if ($or$cond) {
  32968. $$1165167 = $$1165168;$$8 = $$5$be;$293 = $170;$294 = $167;
  32969. label = 72;
  32970. break L63;
  32971. } else {
  32972. $164 = $170;$165 = $167;$169 = $179;
  32973. }
  32974. }
  32975. }
  32976. $122 = ((16496) + ($$1160169)|0);
  32977. $123 = HEAP8[$122>>0]|0;
  32978. $124 = $123&255;
  32979. $125 = ($124>>>0)<($$1165168>>>0);
  32980. if ($125) {
  32981. $$2156210 = 0;$189 = $124;
  32982. while(1) {
  32983. $187 = Math_imul($$2156210, $$1165168)|0;
  32984. $188 = (($189) + ($187))|0;
  32985. $190 = HEAP32[$6>>2]|0;
  32986. $191 = HEAP32[$7>>2]|0;
  32987. $192 = ($190>>>0)<($191>>>0);
  32988. if ($192) {
  32989. $193 = ((($190)) + 1|0);
  32990. HEAP32[$6>>2] = $193;
  32991. $194 = HEAP8[$190>>0]|0;
  32992. $195 = $194&255;
  32993. $$6$be = $195;
  32994. } else {
  32995. $196 = (___shgetc($0)|0);
  32996. $$6$be = $196;
  32997. }
  32998. $197 = ((16496) + ($$6$be)|0);
  32999. $198 = HEAP8[$197>>0]|0;
  33000. $199 = $198&255;
  33001. $200 = ($199>>>0)<($$1165168>>>0);
  33002. $201 = ($188>>>0)<(119304647);
  33003. $202 = $201 & $200;
  33004. if ($202) {
  33005. $$2156210 = $188;$189 = $199;
  33006. } else {
  33007. break;
  33008. }
  33009. }
  33010. $$6$lcssa = $$6$be;$204 = $198;$295 = $188;$296 = 0;
  33011. } else {
  33012. $$6$lcssa = $$1160169;$204 = $123;$295 = 0;$296 = 0;
  33013. }
  33014. $203 = $204&255;
  33015. $205 = ($203>>>0)<($$1165168>>>0);
  33016. if ($205) {
  33017. $206 = (___udivdi3(-1,-1,($$1165168|0),0)|0);
  33018. $207 = tempRet0;
  33019. $$7198 = $$6$lcssa;$209 = $296;$211 = $295;$218 = $204;
  33020. while(1) {
  33021. $208 = ($209>>>0)>($207>>>0);
  33022. $210 = ($211>>>0)>($206>>>0);
  33023. $212 = ($209|0)==($207|0);
  33024. $213 = $212 & $210;
  33025. $214 = $208 | $213;
  33026. if ($214) {
  33027. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  33028. label = 72;
  33029. break L63;
  33030. }
  33031. $215 = (___muldi3(($211|0),($209|0),($$1165168|0),0)|0);
  33032. $216 = tempRet0;
  33033. $217 = $218&255;
  33034. $219 = $217 ^ -1;
  33035. $220 = ($216>>>0)>(4294967295);
  33036. $221 = ($215>>>0)>($219>>>0);
  33037. $222 = ($216|0)==(-1);
  33038. $223 = $222 & $221;
  33039. $224 = $220 | $223;
  33040. if ($224) {
  33041. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  33042. label = 72;
  33043. break L63;
  33044. }
  33045. $225 = (_i64Add(($217|0),0,($215|0),($216|0))|0);
  33046. $226 = tempRet0;
  33047. $227 = HEAP32[$6>>2]|0;
  33048. $228 = HEAP32[$7>>2]|0;
  33049. $229 = ($227>>>0)<($228>>>0);
  33050. if ($229) {
  33051. $230 = ((($227)) + 1|0);
  33052. HEAP32[$6>>2] = $230;
  33053. $231 = HEAP8[$227>>0]|0;
  33054. $232 = $231&255;
  33055. $$7$be = $232;
  33056. } else {
  33057. $233 = (___shgetc($0)|0);
  33058. $$7$be = $233;
  33059. }
  33060. $234 = ((16496) + ($$7$be)|0);
  33061. $235 = HEAP8[$234>>0]|0;
  33062. $236 = $235&255;
  33063. $237 = ($236>>>0)<($$1165168>>>0);
  33064. if ($237) {
  33065. $$7198 = $$7$be;$209 = $226;$211 = $225;$218 = $235;
  33066. } else {
  33067. $$1165167 = $$1165168;$$8 = $$7$be;$293 = $225;$294 = $226;
  33068. label = 72;
  33069. break;
  33070. }
  33071. }
  33072. } else {
  33073. $$1165167 = $$1165168;$$8 = $$6$lcssa;$293 = $295;$294 = $296;
  33074. label = 72;
  33075. }
  33076. }
  33077. } while(0);
  33078. if ((label|0) == 72) {
  33079. $238 = ((16496) + ($$8)|0);
  33080. $239 = HEAP8[$238>>0]|0;
  33081. $240 = $239&255;
  33082. $241 = ($240>>>0)<($$1165167>>>0);
  33083. if ($241) {
  33084. while(1) {
  33085. $242 = HEAP32[$6>>2]|0;
  33086. $243 = HEAP32[$7>>2]|0;
  33087. $244 = ($242>>>0)<($243>>>0);
  33088. if ($244) {
  33089. $245 = ((($242)) + 1|0);
  33090. HEAP32[$6>>2] = $245;
  33091. $246 = HEAP8[$242>>0]|0;
  33092. $247 = $246&255;
  33093. $$9$be = $247;
  33094. } else {
  33095. $248 = (___shgetc($0)|0);
  33096. $$9$be = $248;
  33097. }
  33098. $249 = ((16496) + ($$9$be)|0);
  33099. $250 = HEAP8[$249>>0]|0;
  33100. $251 = $250&255;
  33101. $252 = ($251>>>0)<($$1165167>>>0);
  33102. if (!($252)) {
  33103. break;
  33104. }
  33105. }
  33106. $253 = (___errno_location()|0);
  33107. HEAP32[$253>>2] = 34;
  33108. $254 = $3 & 1;
  33109. $255 = ($254|0)==(0);
  33110. $256 = (0)==(0);
  33111. $257 = $255 & $256;
  33112. $$0157$ = $257 ? $$0157 : 0;
  33113. $$1158 = $$0157$;$263 = $4;$265 = $3;
  33114. } else {
  33115. $$1158 = $$0157;$263 = $294;$265 = $293;
  33116. }
  33117. }
  33118. $258 = HEAP32[$7>>2]|0;
  33119. $259 = ($258|0)==(0|0);
  33120. if (!($259)) {
  33121. $260 = HEAP32[$6>>2]|0;
  33122. $261 = ((($260)) + -1|0);
  33123. HEAP32[$6>>2] = $261;
  33124. }
  33125. $262 = ($263>>>0)<($4>>>0);
  33126. $264 = ($265>>>0)<($3>>>0);
  33127. $266 = ($263|0)==($4|0);
  33128. $267 = $266 & $264;
  33129. $268 = $262 | $267;
  33130. if (!($268)) {
  33131. $269 = $3 & 1;
  33132. $270 = ($269|0)!=(0);
  33133. $271 = (0)!=(0);
  33134. $272 = $270 | $271;
  33135. $273 = ($$1158|0)!=(0);
  33136. $or$cond12 = $272 | $273;
  33137. if (!($or$cond12)) {
  33138. $274 = (___errno_location()|0);
  33139. HEAP32[$274>>2] = 34;
  33140. $275 = (_i64Add(($3|0),($4|0),-1,-1)|0);
  33141. $276 = tempRet0;
  33142. $289 = $276;$290 = $275;
  33143. break;
  33144. }
  33145. $277 = ($263>>>0)>($4>>>0);
  33146. $278 = ($265>>>0)>($3>>>0);
  33147. $279 = ($263|0)==($4|0);
  33148. $280 = $279 & $278;
  33149. $281 = $277 | $280;
  33150. if ($281) {
  33151. $282 = (___errno_location()|0);
  33152. HEAP32[$282>>2] = 34;
  33153. $289 = $4;$290 = $3;
  33154. break;
  33155. }
  33156. }
  33157. $283 = ($$1158|0)<(0);
  33158. $284 = $283 << 31 >> 31;
  33159. $285 = $265 ^ $$1158;
  33160. $286 = $263 ^ $284;
  33161. $287 = (_i64Subtract(($285|0),($286|0),($$1158|0),($284|0))|0);
  33162. $288 = tempRet0;
  33163. $289 = $288;$290 = $287;
  33164. }
  33165. } while(0);
  33166. tempRet0 = ($289);
  33167. return ($290|0);
  33168. }
  33169. function ___shgetc($0) {
  33170. $0 = $0|0;
  33171. 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;
  33172. 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;
  33173. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33174. sp = STACKTOP;
  33175. $1 = ((($0)) + 104|0);
  33176. $2 = HEAP32[$1>>2]|0;
  33177. $3 = ($2|0)==(0);
  33178. if ($3) {
  33179. label = 3;
  33180. } else {
  33181. $4 = ((($0)) + 108|0);
  33182. $5 = HEAP32[$4>>2]|0;
  33183. $6 = ($5|0)<($2|0);
  33184. if ($6) {
  33185. label = 3;
  33186. } else {
  33187. label = 4;
  33188. }
  33189. }
  33190. if ((label|0) == 3) {
  33191. $7 = (___uflow($0)|0);
  33192. $8 = ($7|0)<(0);
  33193. if ($8) {
  33194. label = 4;
  33195. } else {
  33196. $10 = HEAP32[$1>>2]|0;
  33197. $11 = ($10|0)==(0);
  33198. $$phi$trans$insert = ((($0)) + 8|0);
  33199. if ($11) {
  33200. $$pre = HEAP32[$$phi$trans$insert>>2]|0;
  33201. $$phi$trans$insert28$phi$trans$insert = ((($0)) + 4|0);
  33202. $$pre29$pre = HEAP32[$$phi$trans$insert28$phi$trans$insert>>2]|0;
  33203. $$pre35 = ((($0)) + 108|0);
  33204. $$pre$phi34Z2D = $$pre35;$$sink = $$pre;$26 = $$pre;$29 = $$pre29$pre;
  33205. } else {
  33206. $12 = HEAP32[$$phi$trans$insert>>2]|0;
  33207. $13 = ((($0)) + 4|0);
  33208. $14 = HEAP32[$13>>2]|0;
  33209. $15 = $14;
  33210. $16 = (($12) - ($15))|0;
  33211. $17 = ((($0)) + 108|0);
  33212. $18 = HEAP32[$17>>2]|0;
  33213. $19 = (($10) - ($18))|0;
  33214. $20 = ($16|0)<($19|0);
  33215. $21 = $12;
  33216. if ($20) {
  33217. $$pre$phi34Z2D = $17;$$sink = $21;$26 = $21;$29 = $14;
  33218. } else {
  33219. $22 = (($19) + -1)|0;
  33220. $23 = (($14) + ($22)|0);
  33221. $$pre$phi34Z2D = $17;$$sink = $23;$26 = $21;$29 = $14;
  33222. }
  33223. }
  33224. $24 = ((($0)) + 100|0);
  33225. HEAP32[$24>>2] = $$sink;
  33226. $25 = ($26|0)==(0|0);
  33227. if (!($25)) {
  33228. $27 = $26;
  33229. $28 = $29;
  33230. $30 = HEAP32[$$pre$phi34Z2D>>2]|0;
  33231. $31 = (($27) + 1)|0;
  33232. $32 = (($31) - ($28))|0;
  33233. $33 = (($32) + ($30))|0;
  33234. HEAP32[$$pre$phi34Z2D>>2] = $33;
  33235. }
  33236. $34 = ((($29)) + -1|0);
  33237. $35 = HEAP8[$34>>0]|0;
  33238. $36 = $35&255;
  33239. $37 = ($36|0)==($7|0);
  33240. if ($37) {
  33241. $$0 = $7;
  33242. } else {
  33243. $38 = $7&255;
  33244. HEAP8[$34>>0] = $38;
  33245. $$0 = $7;
  33246. }
  33247. }
  33248. }
  33249. if ((label|0) == 4) {
  33250. $9 = ((($0)) + 100|0);
  33251. HEAP32[$9>>2] = 0;
  33252. $$0 = -1;
  33253. }
  33254. return ($$0|0);
  33255. }
  33256. function _isspace($0) {
  33257. $0 = $0|0;
  33258. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  33259. sp = STACKTOP;
  33260. $1 = ($0|0)==(32);
  33261. $2 = (($0) + -9)|0;
  33262. $3 = ($2>>>0)<(5);
  33263. $4 = $1 | $3;
  33264. $5 = $4&1;
  33265. return ($5|0);
  33266. }
  33267. function ___uflow($0) {
  33268. $0 = $0|0;
  33269. 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;
  33270. sp = STACKTOP;
  33271. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  33272. $1 = sp;
  33273. $2 = (___toread($0)|0);
  33274. $3 = ($2|0)==(0);
  33275. if ($3) {
  33276. $4 = ((($0)) + 32|0);
  33277. $5 = HEAP32[$4>>2]|0;
  33278. $6 = (FUNCTION_TABLE_iiii[$5 & 15]($0,$1,1)|0);
  33279. $7 = ($6|0)==(1);
  33280. if ($7) {
  33281. $8 = HEAP8[$1>>0]|0;
  33282. $9 = $8&255;
  33283. $$0 = $9;
  33284. } else {
  33285. $$0 = -1;
  33286. }
  33287. } else {
  33288. $$0 = -1;
  33289. }
  33290. STACKTOP = sp;return ($$0|0);
  33291. }
  33292. function ___toread($0) {
  33293. $0 = $0|0;
  33294. 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;
  33295. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  33296. sp = STACKTOP;
  33297. $1 = ((($0)) + 74|0);
  33298. $2 = HEAP8[$1>>0]|0;
  33299. $3 = $2 << 24 >> 24;
  33300. $4 = (($3) + 255)|0;
  33301. $5 = $4 | $3;
  33302. $6 = $5&255;
  33303. HEAP8[$1>>0] = $6;
  33304. $7 = ((($0)) + 20|0);
  33305. $8 = HEAP32[$7>>2]|0;
  33306. $9 = ((($0)) + 28|0);
  33307. $10 = HEAP32[$9>>2]|0;
  33308. $11 = ($8>>>0)>($10>>>0);
  33309. if ($11) {
  33310. $12 = ((($0)) + 36|0);
  33311. $13 = HEAP32[$12>>2]|0;
  33312. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  33313. }
  33314. $14 = ((($0)) + 16|0);
  33315. HEAP32[$14>>2] = 0;
  33316. HEAP32[$9>>2] = 0;
  33317. HEAP32[$7>>2] = 0;
  33318. $15 = HEAP32[$0>>2]|0;
  33319. $16 = $15 & 4;
  33320. $17 = ($16|0)==(0);
  33321. if ($17) {
  33322. $19 = ((($0)) + 44|0);
  33323. $20 = HEAP32[$19>>2]|0;
  33324. $21 = ((($0)) + 48|0);
  33325. $22 = HEAP32[$21>>2]|0;
  33326. $23 = (($20) + ($22)|0);
  33327. $24 = ((($0)) + 8|0);
  33328. HEAP32[$24>>2] = $23;
  33329. $25 = ((($0)) + 4|0);
  33330. HEAP32[$25>>2] = $23;
  33331. $26 = $15 << 27;
  33332. $sext = $26 >> 31;
  33333. $$0 = $sext;
  33334. } else {
  33335. $18 = $15 | 32;
  33336. HEAP32[$0>>2] = $18;
  33337. $$0 = -1;
  33338. }
  33339. return ($$0|0);
  33340. }
  33341. function _copysign($0,$1) {
  33342. $0 = +$0;
  33343. $1 = +$1;
  33344. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  33345. sp = STACKTOP;
  33346. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  33347. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  33348. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  33349. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  33350. $6 = $3 & 2147483647;
  33351. $7 = $5 & -2147483648;
  33352. $8 = $7 | $6;
  33353. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $8;$9 = +HEAPF64[tempDoublePtr>>3];
  33354. return (+$9);
  33355. }
  33356. function _strcmp($0,$1) {
  33357. $0 = $0|0;
  33358. $1 = $1|0;
  33359. 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;
  33360. var sp = 0;
  33361. sp = STACKTOP;
  33362. $2 = HEAP8[$0>>0]|0;
  33363. $3 = HEAP8[$1>>0]|0;
  33364. $4 = ($2<<24>>24)!=($3<<24>>24);
  33365. $5 = ($2<<24>>24)==(0);
  33366. $or$cond9 = $5 | $4;
  33367. if ($or$cond9) {
  33368. $$lcssa = $3;$$lcssa8 = $2;
  33369. } else {
  33370. $$011 = $1;$$0710 = $0;
  33371. while(1) {
  33372. $6 = ((($$0710)) + 1|0);
  33373. $7 = ((($$011)) + 1|0);
  33374. $8 = HEAP8[$6>>0]|0;
  33375. $9 = HEAP8[$7>>0]|0;
  33376. $10 = ($8<<24>>24)!=($9<<24>>24);
  33377. $11 = ($8<<24>>24)==(0);
  33378. $or$cond = $11 | $10;
  33379. if ($or$cond) {
  33380. $$lcssa = $9;$$lcssa8 = $8;
  33381. break;
  33382. } else {
  33383. $$011 = $7;$$0710 = $6;
  33384. }
  33385. }
  33386. }
  33387. $12 = $$lcssa8&255;
  33388. $13 = $$lcssa&255;
  33389. $14 = (($12) - ($13))|0;
  33390. return ($14|0);
  33391. }
  33392. function _memcmp($0,$1,$2) {
  33393. $0 = $0|0;
  33394. $1 = $1|0;
  33395. $2 = $2|0;
  33396. 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;
  33397. sp = STACKTOP;
  33398. $3 = ($2|0)==(0);
  33399. L1: do {
  33400. if ($3) {
  33401. $14 = 0;
  33402. } else {
  33403. $$01318 = $0;$$01417 = $2;$$019 = $1;
  33404. while(1) {
  33405. $4 = HEAP8[$$01318>>0]|0;
  33406. $5 = HEAP8[$$019>>0]|0;
  33407. $6 = ($4<<24>>24)==($5<<24>>24);
  33408. if (!($6)) {
  33409. break;
  33410. }
  33411. $7 = (($$01417) + -1)|0;
  33412. $8 = ((($$01318)) + 1|0);
  33413. $9 = ((($$019)) + 1|0);
  33414. $10 = ($7|0)==(0);
  33415. if ($10) {
  33416. $14 = 0;
  33417. break L1;
  33418. } else {
  33419. $$01318 = $8;$$01417 = $7;$$019 = $9;
  33420. }
  33421. }
  33422. $11 = $4&255;
  33423. $12 = $5&255;
  33424. $13 = (($11) - ($12))|0;
  33425. $14 = $13;
  33426. }
  33427. } while(0);
  33428. return ($14|0);
  33429. }
  33430. function _vfprintf($0,$1,$2) {
  33431. $0 = $0|0;
  33432. $1 = $1|0;
  33433. $2 = $2|0;
  33434. 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;
  33435. 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;
  33436. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  33437. sp = STACKTOP;
  33438. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  33439. $3 = sp + 120|0;
  33440. $4 = sp + 80|0;
  33441. $5 = sp;
  33442. $6 = sp + 136|0;
  33443. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  33444. $vacopy_currentptr = HEAP32[$2>>2]|0;
  33445. HEAP32[$3>>2] = $vacopy_currentptr;
  33446. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  33447. $8 = ($7|0)<(0);
  33448. if ($8) {
  33449. $$0 = -1;
  33450. } else {
  33451. $9 = ((($0)) + 76|0);
  33452. $10 = HEAP32[$9>>2]|0;
  33453. $11 = ($10|0)>(-1);
  33454. if ($11) {
  33455. $12 = (___lockfile($0)|0);
  33456. $40 = $12;
  33457. } else {
  33458. $40 = 0;
  33459. }
  33460. $13 = HEAP32[$0>>2]|0;
  33461. $14 = $13 & 32;
  33462. $15 = ((($0)) + 74|0);
  33463. $16 = HEAP8[$15>>0]|0;
  33464. $17 = ($16<<24>>24)<(1);
  33465. if ($17) {
  33466. $18 = $13 & -33;
  33467. HEAP32[$0>>2] = $18;
  33468. }
  33469. $19 = ((($0)) + 48|0);
  33470. $20 = HEAP32[$19>>2]|0;
  33471. $21 = ($20|0)==(0);
  33472. if ($21) {
  33473. $23 = ((($0)) + 44|0);
  33474. $24 = HEAP32[$23>>2]|0;
  33475. HEAP32[$23>>2] = $6;
  33476. $25 = ((($0)) + 28|0);
  33477. HEAP32[$25>>2] = $6;
  33478. $26 = ((($0)) + 20|0);
  33479. HEAP32[$26>>2] = $6;
  33480. HEAP32[$19>>2] = 80;
  33481. $27 = ((($6)) + 80|0);
  33482. $28 = ((($0)) + 16|0);
  33483. HEAP32[$28>>2] = $27;
  33484. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  33485. $30 = ($24|0)==(0|0);
  33486. if ($30) {
  33487. $$1 = $29;
  33488. } else {
  33489. $31 = ((($0)) + 36|0);
  33490. $32 = HEAP32[$31>>2]|0;
  33491. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  33492. $33 = HEAP32[$26>>2]|0;
  33493. $34 = ($33|0)==(0|0);
  33494. $$ = $34 ? -1 : $29;
  33495. HEAP32[$23>>2] = $24;
  33496. HEAP32[$19>>2] = 0;
  33497. HEAP32[$28>>2] = 0;
  33498. HEAP32[$25>>2] = 0;
  33499. HEAP32[$26>>2] = 0;
  33500. $$1 = $$;
  33501. }
  33502. } else {
  33503. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  33504. $$1 = $22;
  33505. }
  33506. $35 = HEAP32[$0>>2]|0;
  33507. $36 = $35 & 32;
  33508. $37 = ($36|0)==(0);
  33509. $$1$ = $37 ? $$1 : -1;
  33510. $38 = $35 | $14;
  33511. HEAP32[$0>>2] = $38;
  33512. $39 = ($40|0)==(0);
  33513. if (!($39)) {
  33514. ___unlockfile($0);
  33515. }
  33516. $$0 = $$1$;
  33517. }
  33518. STACKTOP = sp;return ($$0|0);
  33519. }
  33520. function _printf_core($0,$1,$2,$3,$4) {
  33521. $0 = $0|0;
  33522. $1 = $1|0;
  33523. $2 = $2|0;
  33524. $3 = $3|0;
  33525. $4 = $4|0;
  33526. 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;
  33527. 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;
  33528. 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;
  33529. 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;
  33530. 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;
  33531. 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;
  33532. 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;
  33533. 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;
  33534. 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;
  33535. 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;
  33536. 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;
  33537. 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;
  33538. 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;
  33539. 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;
  33540. 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;
  33541. 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;
  33542. 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;
  33543. 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;
  33544. 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;
  33545. 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;
  33546. 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;
  33547. 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;
  33548. sp = STACKTOP;
  33549. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  33550. $5 = sp + 16|0;
  33551. $6 = sp;
  33552. $7 = sp + 24|0;
  33553. $8 = sp + 8|0;
  33554. $9 = sp + 20|0;
  33555. HEAP32[$5>>2] = $1;
  33556. $10 = ($0|0)!=(0|0);
  33557. $11 = ((($7)) + 40|0);
  33558. $12 = $11;
  33559. $13 = ((($7)) + 39|0);
  33560. $14 = ((($8)) + 4|0);
  33561. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  33562. L1: while(1) {
  33563. $15 = ($$0247|0)>(-1);
  33564. do {
  33565. if ($15) {
  33566. $16 = (2147483647 - ($$0247))|0;
  33567. $17 = ($$0243|0)>($16|0);
  33568. if ($17) {
  33569. $18 = (___errno_location()|0);
  33570. HEAP32[$18>>2] = 75;
  33571. $$1248 = -1;
  33572. break;
  33573. } else {
  33574. $19 = (($$0243) + ($$0247))|0;
  33575. $$1248 = $19;
  33576. break;
  33577. }
  33578. } else {
  33579. $$1248 = $$0247;
  33580. }
  33581. } while(0);
  33582. $20 = HEAP8[$21>>0]|0;
  33583. $22 = ($20<<24>>24)==(0);
  33584. if ($22) {
  33585. label = 87;
  33586. break;
  33587. } else {
  33588. $23 = $20;$25 = $21;
  33589. }
  33590. L9: while(1) {
  33591. switch ($23<<24>>24) {
  33592. case 37: {
  33593. $$0249306 = $25;$27 = $25;
  33594. label = 9;
  33595. break L9;
  33596. break;
  33597. }
  33598. case 0: {
  33599. $$0249$lcssa = $25;$39 = $25;
  33600. break L9;
  33601. break;
  33602. }
  33603. default: {
  33604. }
  33605. }
  33606. $24 = ((($25)) + 1|0);
  33607. HEAP32[$5>>2] = $24;
  33608. $$pre = HEAP8[$24>>0]|0;
  33609. $23 = $$pre;$25 = $24;
  33610. }
  33611. L12: do {
  33612. if ((label|0) == 9) {
  33613. while(1) {
  33614. label = 0;
  33615. $26 = ((($27)) + 1|0);
  33616. $28 = HEAP8[$26>>0]|0;
  33617. $29 = ($28<<24>>24)==(37);
  33618. if (!($29)) {
  33619. $$0249$lcssa = $$0249306;$39 = $27;
  33620. break L12;
  33621. }
  33622. $30 = ((($$0249306)) + 1|0);
  33623. $31 = ((($27)) + 2|0);
  33624. HEAP32[$5>>2] = $31;
  33625. $32 = HEAP8[$31>>0]|0;
  33626. $33 = ($32<<24>>24)==(37);
  33627. if ($33) {
  33628. $$0249306 = $30;$27 = $31;
  33629. label = 9;
  33630. } else {
  33631. $$0249$lcssa = $30;$39 = $31;
  33632. break;
  33633. }
  33634. }
  33635. }
  33636. } while(0);
  33637. $34 = $$0249$lcssa;
  33638. $35 = $21;
  33639. $36 = (($34) - ($35))|0;
  33640. if ($10) {
  33641. _out($0,$21,$36);
  33642. }
  33643. $37 = ($36|0)==(0);
  33644. if (!($37)) {
  33645. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  33646. continue;
  33647. }
  33648. $38 = ((($39)) + 1|0);
  33649. $40 = HEAP8[$38>>0]|0;
  33650. $41 = $40 << 24 >> 24;
  33651. $isdigittmp = (($41) + -48)|0;
  33652. $isdigit = ($isdigittmp>>>0)<(10);
  33653. if ($isdigit) {
  33654. $42 = ((($39)) + 2|0);
  33655. $43 = HEAP8[$42>>0]|0;
  33656. $44 = ($43<<24>>24)==(36);
  33657. $45 = ((($39)) + 3|0);
  33658. $$377 = $44 ? $45 : $38;
  33659. $$$0269 = $44 ? 1 : $$0269;
  33660. $isdigittmp$ = $44 ? $isdigittmp : -1;
  33661. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  33662. } else {
  33663. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  33664. }
  33665. HEAP32[$5>>2] = $storemerge;
  33666. $46 = HEAP8[$storemerge>>0]|0;
  33667. $47 = $46 << 24 >> 24;
  33668. $48 = (($47) + -32)|0;
  33669. $49 = ($48>>>0)<(32);
  33670. L24: do {
  33671. if ($49) {
  33672. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  33673. while(1) {
  33674. $50 = 1 << $51;
  33675. $52 = $50 & 75913;
  33676. $53 = ($52|0)==(0);
  33677. if ($53) {
  33678. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  33679. break L24;
  33680. }
  33681. $54 = $50 | $$0262311;
  33682. $55 = ((($storemerge273310)) + 1|0);
  33683. HEAP32[$5>>2] = $55;
  33684. $56 = HEAP8[$55>>0]|0;
  33685. $57 = $56 << 24 >> 24;
  33686. $58 = (($57) + -32)|0;
  33687. $59 = ($58>>>0)<(32);
  33688. if ($59) {
  33689. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  33690. } else {
  33691. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  33692. break;
  33693. }
  33694. }
  33695. } else {
  33696. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  33697. }
  33698. } while(0);
  33699. $60 = ($$lcssa295<<24>>24)==(42);
  33700. if ($60) {
  33701. $61 = ((($62)) + 1|0);
  33702. $63 = HEAP8[$61>>0]|0;
  33703. $64 = $63 << 24 >> 24;
  33704. $isdigittmp276 = (($64) + -48)|0;
  33705. $isdigit277 = ($isdigittmp276>>>0)<(10);
  33706. if ($isdigit277) {
  33707. $65 = ((($62)) + 2|0);
  33708. $66 = HEAP8[$65>>0]|0;
  33709. $67 = ($66<<24>>24)==(36);
  33710. if ($67) {
  33711. $68 = (($4) + ($isdigittmp276<<2)|0);
  33712. HEAP32[$68>>2] = 10;
  33713. $69 = HEAP8[$61>>0]|0;
  33714. $70 = $69 << 24 >> 24;
  33715. $71 = (($70) + -48)|0;
  33716. $72 = (($3) + ($71<<3)|0);
  33717. $73 = $72;
  33718. $74 = $73;
  33719. $75 = HEAP32[$74>>2]|0;
  33720. $76 = (($73) + 4)|0;
  33721. $77 = $76;
  33722. $78 = HEAP32[$77>>2]|0;
  33723. $79 = ((($62)) + 3|0);
  33724. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  33725. } else {
  33726. label = 23;
  33727. }
  33728. } else {
  33729. label = 23;
  33730. }
  33731. if ((label|0) == 23) {
  33732. label = 0;
  33733. $80 = ($$1270|0)==(0);
  33734. if (!($80)) {
  33735. $$0 = -1;
  33736. break;
  33737. }
  33738. if ($10) {
  33739. $arglist_current = HEAP32[$2>>2]|0;
  33740. $81 = $arglist_current;
  33741. $82 = ((0) + 4|0);
  33742. $expanded4 = $82;
  33743. $expanded = (($expanded4) - 1)|0;
  33744. $83 = (($81) + ($expanded))|0;
  33745. $84 = ((0) + 4|0);
  33746. $expanded8 = $84;
  33747. $expanded7 = (($expanded8) - 1)|0;
  33748. $expanded6 = $expanded7 ^ -1;
  33749. $85 = $83 & $expanded6;
  33750. $86 = $85;
  33751. $87 = HEAP32[$86>>2]|0;
  33752. $arglist_next = ((($86)) + 4|0);
  33753. HEAP32[$2>>2] = $arglist_next;
  33754. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  33755. } else {
  33756. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  33757. }
  33758. }
  33759. HEAP32[$5>>2] = $storemerge278;
  33760. $88 = ($$0259|0)<(0);
  33761. $89 = $$0262$lcssa | 8192;
  33762. $90 = (0 - ($$0259))|0;
  33763. $$$0262 = $88 ? $89 : $$0262$lcssa;
  33764. $$$0259 = $88 ? $90 : $$0259;
  33765. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  33766. } else {
  33767. $91 = (_getint($5)|0);
  33768. $92 = ($91|0)<(0);
  33769. if ($92) {
  33770. $$0 = -1;
  33771. break;
  33772. }
  33773. $$pre346 = HEAP32[$5>>2]|0;
  33774. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  33775. }
  33776. $93 = HEAP8[$94>>0]|0;
  33777. $95 = ($93<<24>>24)==(46);
  33778. do {
  33779. if ($95) {
  33780. $96 = ((($94)) + 1|0);
  33781. $97 = HEAP8[$96>>0]|0;
  33782. $98 = ($97<<24>>24)==(42);
  33783. if (!($98)) {
  33784. $125 = ((($94)) + 1|0);
  33785. HEAP32[$5>>2] = $125;
  33786. $126 = (_getint($5)|0);
  33787. $$pre347$pre = HEAP32[$5>>2]|0;
  33788. $$0254 = $126;$$pre347 = $$pre347$pre;
  33789. break;
  33790. }
  33791. $99 = ((($94)) + 2|0);
  33792. $100 = HEAP8[$99>>0]|0;
  33793. $101 = $100 << 24 >> 24;
  33794. $isdigittmp274 = (($101) + -48)|0;
  33795. $isdigit275 = ($isdigittmp274>>>0)<(10);
  33796. if ($isdigit275) {
  33797. $102 = ((($94)) + 3|0);
  33798. $103 = HEAP8[$102>>0]|0;
  33799. $104 = ($103<<24>>24)==(36);
  33800. if ($104) {
  33801. $105 = (($4) + ($isdigittmp274<<2)|0);
  33802. HEAP32[$105>>2] = 10;
  33803. $106 = HEAP8[$99>>0]|0;
  33804. $107 = $106 << 24 >> 24;
  33805. $108 = (($107) + -48)|0;
  33806. $109 = (($3) + ($108<<3)|0);
  33807. $110 = $109;
  33808. $111 = $110;
  33809. $112 = HEAP32[$111>>2]|0;
  33810. $113 = (($110) + 4)|0;
  33811. $114 = $113;
  33812. $115 = HEAP32[$114>>2]|0;
  33813. $116 = ((($94)) + 4|0);
  33814. HEAP32[$5>>2] = $116;
  33815. $$0254 = $112;$$pre347 = $116;
  33816. break;
  33817. }
  33818. }
  33819. $117 = ($$3272|0)==(0);
  33820. if (!($117)) {
  33821. $$0 = -1;
  33822. break L1;
  33823. }
  33824. if ($10) {
  33825. $arglist_current2 = HEAP32[$2>>2]|0;
  33826. $118 = $arglist_current2;
  33827. $119 = ((0) + 4|0);
  33828. $expanded11 = $119;
  33829. $expanded10 = (($expanded11) - 1)|0;
  33830. $120 = (($118) + ($expanded10))|0;
  33831. $121 = ((0) + 4|0);
  33832. $expanded15 = $121;
  33833. $expanded14 = (($expanded15) - 1)|0;
  33834. $expanded13 = $expanded14 ^ -1;
  33835. $122 = $120 & $expanded13;
  33836. $123 = $122;
  33837. $124 = HEAP32[$123>>2]|0;
  33838. $arglist_next3 = ((($123)) + 4|0);
  33839. HEAP32[$2>>2] = $arglist_next3;
  33840. $330 = $124;
  33841. } else {
  33842. $330 = 0;
  33843. }
  33844. HEAP32[$5>>2] = $99;
  33845. $$0254 = $330;$$pre347 = $99;
  33846. } else {
  33847. $$0254 = -1;$$pre347 = $94;
  33848. }
  33849. } while(0);
  33850. $$0252 = 0;$128 = $$pre347;
  33851. while(1) {
  33852. $127 = HEAP8[$128>>0]|0;
  33853. $129 = $127 << 24 >> 24;
  33854. $130 = (($129) + -65)|0;
  33855. $131 = ($130>>>0)>(57);
  33856. if ($131) {
  33857. $$0 = -1;
  33858. break L1;
  33859. }
  33860. $132 = ((($128)) + 1|0);
  33861. HEAP32[$5>>2] = $132;
  33862. $133 = HEAP8[$128>>0]|0;
  33863. $134 = $133 << 24 >> 24;
  33864. $135 = (($134) + -65)|0;
  33865. $136 = ((16761 + (($$0252*58)|0)|0) + ($135)|0);
  33866. $137 = HEAP8[$136>>0]|0;
  33867. $138 = $137&255;
  33868. $139 = (($138) + -1)|0;
  33869. $140 = ($139>>>0)<(8);
  33870. if ($140) {
  33871. $$0252 = $138;$128 = $132;
  33872. } else {
  33873. break;
  33874. }
  33875. }
  33876. $141 = ($137<<24>>24)==(0);
  33877. if ($141) {
  33878. $$0 = -1;
  33879. break;
  33880. }
  33881. $142 = ($137<<24>>24)==(19);
  33882. $143 = ($$0253|0)>(-1);
  33883. do {
  33884. if ($142) {
  33885. if ($143) {
  33886. $$0 = -1;
  33887. break L1;
  33888. } else {
  33889. label = 49;
  33890. }
  33891. } else {
  33892. if ($143) {
  33893. $144 = (($4) + ($$0253<<2)|0);
  33894. HEAP32[$144>>2] = $138;
  33895. $145 = (($3) + ($$0253<<3)|0);
  33896. $146 = $145;
  33897. $147 = $146;
  33898. $148 = HEAP32[$147>>2]|0;
  33899. $149 = (($146) + 4)|0;
  33900. $150 = $149;
  33901. $151 = HEAP32[$150>>2]|0;
  33902. $152 = $6;
  33903. $153 = $152;
  33904. HEAP32[$153>>2] = $148;
  33905. $154 = (($152) + 4)|0;
  33906. $155 = $154;
  33907. HEAP32[$155>>2] = $151;
  33908. label = 49;
  33909. break;
  33910. }
  33911. if (!($10)) {
  33912. $$0 = 0;
  33913. break L1;
  33914. }
  33915. _pop_arg($6,$138,$2);
  33916. }
  33917. } while(0);
  33918. if ((label|0) == 49) {
  33919. label = 0;
  33920. if (!($10)) {
  33921. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33922. continue;
  33923. }
  33924. }
  33925. $156 = HEAP8[$128>>0]|0;
  33926. $157 = $156 << 24 >> 24;
  33927. $158 = ($$0252|0)!=(0);
  33928. $159 = $157 & 15;
  33929. $160 = ($159|0)==(3);
  33930. $or$cond281 = $158 & $160;
  33931. $161 = $157 & -33;
  33932. $$0235 = $or$cond281 ? $161 : $157;
  33933. $162 = $$1263 & 8192;
  33934. $163 = ($162|0)==(0);
  33935. $164 = $$1263 & -65537;
  33936. $$1263$ = $163 ? $$1263 : $164;
  33937. L71: do {
  33938. switch ($$0235|0) {
  33939. case 110: {
  33940. $trunc = $$0252&255;
  33941. switch ($trunc<<24>>24) {
  33942. case 0: {
  33943. $171 = HEAP32[$6>>2]|0;
  33944. HEAP32[$171>>2] = $$1248;
  33945. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33946. continue L1;
  33947. break;
  33948. }
  33949. case 1: {
  33950. $172 = HEAP32[$6>>2]|0;
  33951. HEAP32[$172>>2] = $$1248;
  33952. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33953. continue L1;
  33954. break;
  33955. }
  33956. case 2: {
  33957. $173 = ($$1248|0)<(0);
  33958. $174 = $173 << 31 >> 31;
  33959. $175 = HEAP32[$6>>2]|0;
  33960. $176 = $175;
  33961. $177 = $176;
  33962. HEAP32[$177>>2] = $$1248;
  33963. $178 = (($176) + 4)|0;
  33964. $179 = $178;
  33965. HEAP32[$179>>2] = $174;
  33966. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33967. continue L1;
  33968. break;
  33969. }
  33970. case 3: {
  33971. $180 = $$1248&65535;
  33972. $181 = HEAP32[$6>>2]|0;
  33973. HEAP16[$181>>1] = $180;
  33974. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33975. continue L1;
  33976. break;
  33977. }
  33978. case 4: {
  33979. $182 = $$1248&255;
  33980. $183 = HEAP32[$6>>2]|0;
  33981. HEAP8[$183>>0] = $182;
  33982. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33983. continue L1;
  33984. break;
  33985. }
  33986. case 6: {
  33987. $184 = HEAP32[$6>>2]|0;
  33988. HEAP32[$184>>2] = $$1248;
  33989. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33990. continue L1;
  33991. break;
  33992. }
  33993. case 7: {
  33994. $185 = ($$1248|0)<(0);
  33995. $186 = $185 << 31 >> 31;
  33996. $187 = HEAP32[$6>>2]|0;
  33997. $188 = $187;
  33998. $189 = $188;
  33999. HEAP32[$189>>2] = $$1248;
  34000. $190 = (($188) + 4)|0;
  34001. $191 = $190;
  34002. HEAP32[$191>>2] = $186;
  34003. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34004. continue L1;
  34005. break;
  34006. }
  34007. default: {
  34008. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34009. continue L1;
  34010. }
  34011. }
  34012. break;
  34013. }
  34014. case 112: {
  34015. $192 = ($$0254>>>0)>(8);
  34016. $193 = $192 ? $$0254 : 8;
  34017. $194 = $$1263$ | 8;
  34018. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  34019. label = 61;
  34020. break;
  34021. }
  34022. case 88: case 120: {
  34023. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  34024. label = 61;
  34025. break;
  34026. }
  34027. case 111: {
  34028. $210 = $6;
  34029. $211 = $210;
  34030. $212 = HEAP32[$211>>2]|0;
  34031. $213 = (($210) + 4)|0;
  34032. $214 = $213;
  34033. $215 = HEAP32[$214>>2]|0;
  34034. $216 = (_fmt_o($212,$215,$11)|0);
  34035. $217 = $$1263$ & 8;
  34036. $218 = ($217|0)==(0);
  34037. $219 = $216;
  34038. $220 = (($12) - ($219))|0;
  34039. $221 = ($$0254|0)>($220|0);
  34040. $222 = (($220) + 1)|0;
  34041. $223 = $218 | $221;
  34042. $$0254$$0254$ = $223 ? $$0254 : $222;
  34043. $$0228 = $216;$$1233 = 0;$$1238 = 17225;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  34044. label = 67;
  34045. break;
  34046. }
  34047. case 105: case 100: {
  34048. $224 = $6;
  34049. $225 = $224;
  34050. $226 = HEAP32[$225>>2]|0;
  34051. $227 = (($224) + 4)|0;
  34052. $228 = $227;
  34053. $229 = HEAP32[$228>>2]|0;
  34054. $230 = ($229|0)<(0);
  34055. if ($230) {
  34056. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  34057. $232 = tempRet0;
  34058. $233 = $6;
  34059. $234 = $233;
  34060. HEAP32[$234>>2] = $231;
  34061. $235 = (($233) + 4)|0;
  34062. $236 = $235;
  34063. HEAP32[$236>>2] = $232;
  34064. $$0232 = 1;$$0237 = 17225;$242 = $231;$243 = $232;
  34065. label = 66;
  34066. break L71;
  34067. } else {
  34068. $237 = $$1263$ & 2048;
  34069. $238 = ($237|0)==(0);
  34070. $239 = $$1263$ & 1;
  34071. $240 = ($239|0)==(0);
  34072. $$ = $240 ? 17225 : (17227);
  34073. $$$ = $238 ? $$ : (17226);
  34074. $241 = $$1263$ & 2049;
  34075. $narrow = ($241|0)!=(0);
  34076. $$284$ = $narrow&1;
  34077. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  34078. label = 66;
  34079. break L71;
  34080. }
  34081. break;
  34082. }
  34083. case 117: {
  34084. $165 = $6;
  34085. $166 = $165;
  34086. $167 = HEAP32[$166>>2]|0;
  34087. $168 = (($165) + 4)|0;
  34088. $169 = $168;
  34089. $170 = HEAP32[$169>>2]|0;
  34090. $$0232 = 0;$$0237 = 17225;$242 = $167;$243 = $170;
  34091. label = 66;
  34092. break;
  34093. }
  34094. case 99: {
  34095. $259 = $6;
  34096. $260 = $259;
  34097. $261 = HEAP32[$260>>2]|0;
  34098. $262 = (($259) + 4)|0;
  34099. $263 = $262;
  34100. $264 = HEAP32[$263>>2]|0;
  34101. $265 = $261&255;
  34102. HEAP8[$13>>0] = $265;
  34103. $$2 = $13;$$2234 = 0;$$2239 = 17225;$$2251 = $11;$$5 = 1;$$6268 = $164;
  34104. break;
  34105. }
  34106. case 109: {
  34107. $266 = (___errno_location()|0);
  34108. $267 = HEAP32[$266>>2]|0;
  34109. $268 = (_strerror($267)|0);
  34110. $$1 = $268;
  34111. label = 71;
  34112. break;
  34113. }
  34114. case 115: {
  34115. $269 = HEAP32[$6>>2]|0;
  34116. $270 = ($269|0)!=(0|0);
  34117. $271 = $270 ? $269 : 17235;
  34118. $$1 = $271;
  34119. label = 71;
  34120. break;
  34121. }
  34122. case 67: {
  34123. $278 = $6;
  34124. $279 = $278;
  34125. $280 = HEAP32[$279>>2]|0;
  34126. $281 = (($278) + 4)|0;
  34127. $282 = $281;
  34128. $283 = HEAP32[$282>>2]|0;
  34129. HEAP32[$8>>2] = $280;
  34130. HEAP32[$14>>2] = 0;
  34131. HEAP32[$6>>2] = $8;
  34132. $$4258355 = -1;$331 = $8;
  34133. label = 75;
  34134. break;
  34135. }
  34136. case 83: {
  34137. $$pre349 = HEAP32[$6>>2]|0;
  34138. $284 = ($$0254|0)==(0);
  34139. if ($284) {
  34140. _pad_674($0,32,$$1260,0,$$1263$);
  34141. $$0240$lcssa357 = 0;
  34142. label = 84;
  34143. } else {
  34144. $$4258355 = $$0254;$331 = $$pre349;
  34145. label = 75;
  34146. }
  34147. break;
  34148. }
  34149. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  34150. $306 = +HEAPF64[$6>>3];
  34151. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  34152. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34153. continue L1;
  34154. break;
  34155. }
  34156. default: {
  34157. $$2 = $21;$$2234 = 0;$$2239 = 17225;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  34158. }
  34159. }
  34160. } while(0);
  34161. L95: do {
  34162. if ((label|0) == 61) {
  34163. label = 0;
  34164. $195 = $6;
  34165. $196 = $195;
  34166. $197 = HEAP32[$196>>2]|0;
  34167. $198 = (($195) + 4)|0;
  34168. $199 = $198;
  34169. $200 = HEAP32[$199>>2]|0;
  34170. $201 = $$1236 & 32;
  34171. $202 = (_fmt_x($197,$200,$11,$201)|0);
  34172. $203 = ($197|0)==(0);
  34173. $204 = ($200|0)==(0);
  34174. $205 = $203 & $204;
  34175. $206 = $$3265 & 8;
  34176. $207 = ($206|0)==(0);
  34177. $or$cond283 = $207 | $205;
  34178. $208 = $$1236 >> 4;
  34179. $209 = (17225 + ($208)|0);
  34180. $$289 = $or$cond283 ? 17225 : $209;
  34181. $$290 = $or$cond283 ? 0 : 2;
  34182. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  34183. label = 67;
  34184. }
  34185. else if ((label|0) == 66) {
  34186. label = 0;
  34187. $244 = (_fmt_u($242,$243,$11)|0);
  34188. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  34189. label = 67;
  34190. }
  34191. else if ((label|0) == 71) {
  34192. label = 0;
  34193. $272 = (_memchr($$1,0,$$0254)|0);
  34194. $273 = ($272|0)==(0|0);
  34195. $274 = $272;
  34196. $275 = $$1;
  34197. $276 = (($274) - ($275))|0;
  34198. $277 = (($$1) + ($$0254)|0);
  34199. $$3257 = $273 ? $$0254 : $276;
  34200. $$1250 = $273 ? $277 : $272;
  34201. $$2 = $$1;$$2234 = 0;$$2239 = 17225;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  34202. }
  34203. else if ((label|0) == 75) {
  34204. label = 0;
  34205. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  34206. while(1) {
  34207. $285 = HEAP32[$$0229322>>2]|0;
  34208. $286 = ($285|0)==(0);
  34209. if ($286) {
  34210. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  34211. break;
  34212. }
  34213. $287 = (_wctomb($9,$285)|0);
  34214. $288 = ($287|0)<(0);
  34215. $289 = (($$4258355) - ($$0240321))|0;
  34216. $290 = ($287>>>0)>($289>>>0);
  34217. $or$cond286 = $288 | $290;
  34218. if ($or$cond286) {
  34219. $$0240$lcssa = $$0240321;$$2245 = $287;
  34220. break;
  34221. }
  34222. $291 = ((($$0229322)) + 4|0);
  34223. $292 = (($287) + ($$0240321))|0;
  34224. $293 = ($$4258355>>>0)>($292>>>0);
  34225. if ($293) {
  34226. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  34227. } else {
  34228. $$0240$lcssa = $292;$$2245 = $287;
  34229. break;
  34230. }
  34231. }
  34232. $294 = ($$2245|0)<(0);
  34233. if ($294) {
  34234. $$0 = -1;
  34235. break L1;
  34236. }
  34237. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  34238. $295 = ($$0240$lcssa|0)==(0);
  34239. if ($295) {
  34240. $$0240$lcssa357 = 0;
  34241. label = 84;
  34242. } else {
  34243. $$1230333 = $331;$$1241332 = 0;
  34244. while(1) {
  34245. $296 = HEAP32[$$1230333>>2]|0;
  34246. $297 = ($296|0)==(0);
  34247. if ($297) {
  34248. $$0240$lcssa357 = $$0240$lcssa;
  34249. label = 84;
  34250. break L95;
  34251. }
  34252. $298 = (_wctomb($9,$296)|0);
  34253. $299 = (($298) + ($$1241332))|0;
  34254. $300 = ($299|0)>($$0240$lcssa|0);
  34255. if ($300) {
  34256. $$0240$lcssa357 = $$0240$lcssa;
  34257. label = 84;
  34258. break L95;
  34259. }
  34260. $301 = ((($$1230333)) + 4|0);
  34261. _out($0,$9,$298);
  34262. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  34263. if ($302) {
  34264. $$1230333 = $301;$$1241332 = $299;
  34265. } else {
  34266. $$0240$lcssa357 = $$0240$lcssa;
  34267. label = 84;
  34268. break;
  34269. }
  34270. }
  34271. }
  34272. }
  34273. } while(0);
  34274. if ((label|0) == 67) {
  34275. label = 0;
  34276. $245 = ($$2256|0)>(-1);
  34277. $246 = $$4266 & -65537;
  34278. $$$4266 = $245 ? $246 : $$4266;
  34279. $247 = ($248|0)!=(0);
  34280. $249 = ($250|0)!=(0);
  34281. $251 = $247 | $249;
  34282. $252 = ($$2256|0)!=(0);
  34283. $or$cond = $252 | $251;
  34284. $253 = $$0228;
  34285. $254 = (($12) - ($253))|0;
  34286. $255 = $251 ^ 1;
  34287. $256 = $255&1;
  34288. $257 = (($256) + ($254))|0;
  34289. $258 = ($$2256|0)>($257|0);
  34290. $$2256$ = $258 ? $$2256 : $257;
  34291. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  34292. $$0228$ = $or$cond ? $$0228 : $11;
  34293. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  34294. }
  34295. else if ((label|0) == 84) {
  34296. label = 0;
  34297. $303 = $$1263$ ^ 8192;
  34298. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  34299. $304 = ($$1260|0)>($$0240$lcssa357|0);
  34300. $305 = $304 ? $$1260 : $$0240$lcssa357;
  34301. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34302. continue;
  34303. }
  34304. $308 = $$2251;
  34305. $309 = $$2;
  34306. $310 = (($308) - ($309))|0;
  34307. $311 = ($$5|0)<($310|0);
  34308. $$$5 = $311 ? $310 : $$5;
  34309. $312 = (($$$5) + ($$2234))|0;
  34310. $313 = ($$1260|0)<($312|0);
  34311. $$2261 = $313 ? $312 : $$1260;
  34312. _pad_674($0,32,$$2261,$312,$$6268);
  34313. _out($0,$$2239,$$2234);
  34314. $314 = $$6268 ^ 65536;
  34315. _pad_674($0,48,$$2261,$312,$314);
  34316. _pad_674($0,48,$$$5,$310,0);
  34317. _out($0,$$2,$310);
  34318. $315 = $$6268 ^ 8192;
  34319. _pad_674($0,32,$$2261,$312,$315);
  34320. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  34321. }
  34322. L114: do {
  34323. if ((label|0) == 87) {
  34324. $316 = ($0|0)==(0|0);
  34325. if ($316) {
  34326. $317 = ($$0269|0)==(0);
  34327. if ($317) {
  34328. $$0 = 0;
  34329. } else {
  34330. $$2242305 = 1;
  34331. while(1) {
  34332. $318 = (($4) + ($$2242305<<2)|0);
  34333. $319 = HEAP32[$318>>2]|0;
  34334. $320 = ($319|0)==(0);
  34335. if ($320) {
  34336. $$3303 = $$2242305;
  34337. break;
  34338. }
  34339. $321 = (($3) + ($$2242305<<3)|0);
  34340. _pop_arg($321,$319,$2);
  34341. $322 = (($$2242305) + 1)|0;
  34342. $323 = ($322|0)<(10);
  34343. if ($323) {
  34344. $$2242305 = $322;
  34345. } else {
  34346. $$0 = 1;
  34347. break L114;
  34348. }
  34349. }
  34350. while(1) {
  34351. $326 = (($4) + ($$3303<<2)|0);
  34352. $327 = HEAP32[$326>>2]|0;
  34353. $328 = ($327|0)==(0);
  34354. $325 = (($$3303) + 1)|0;
  34355. if (!($328)) {
  34356. $$0 = -1;
  34357. break L114;
  34358. }
  34359. $324 = ($325|0)<(10);
  34360. if ($324) {
  34361. $$3303 = $325;
  34362. } else {
  34363. $$0 = 1;
  34364. break;
  34365. }
  34366. }
  34367. }
  34368. } else {
  34369. $$0 = $$1248;
  34370. }
  34371. }
  34372. } while(0);
  34373. STACKTOP = sp;return ($$0|0);
  34374. }
  34375. function ___lockfile($0) {
  34376. $0 = $0|0;
  34377. var label = 0, sp = 0;
  34378. sp = STACKTOP;
  34379. return 0;
  34380. }
  34381. function ___unlockfile($0) {
  34382. $0 = $0|0;
  34383. var label = 0, sp = 0;
  34384. sp = STACKTOP;
  34385. return;
  34386. }
  34387. function _out($0,$1,$2) {
  34388. $0 = $0|0;
  34389. $1 = $1|0;
  34390. $2 = $2|0;
  34391. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  34392. sp = STACKTOP;
  34393. $3 = HEAP32[$0>>2]|0;
  34394. $4 = $3 & 32;
  34395. $5 = ($4|0)==(0);
  34396. if ($5) {
  34397. (___fwritex($1,$2,$0)|0);
  34398. }
  34399. return;
  34400. }
  34401. function _getint($0) {
  34402. $0 = $0|0;
  34403. 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;
  34404. sp = STACKTOP;
  34405. $1 = HEAP32[$0>>2]|0;
  34406. $2 = HEAP8[$1>>0]|0;
  34407. $3 = $2 << 24 >> 24;
  34408. $isdigittmp4 = (($3) + -48)|0;
  34409. $isdigit5 = ($isdigittmp4>>>0)<(10);
  34410. if ($isdigit5) {
  34411. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  34412. while(1) {
  34413. $4 = ($$06*10)|0;
  34414. $5 = (($isdigittmp7) + ($4))|0;
  34415. $6 = ((($7)) + 1|0);
  34416. HEAP32[$0>>2] = $6;
  34417. $8 = HEAP8[$6>>0]|0;
  34418. $9 = $8 << 24 >> 24;
  34419. $isdigittmp = (($9) + -48)|0;
  34420. $isdigit = ($isdigittmp>>>0)<(10);
  34421. if ($isdigit) {
  34422. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  34423. } else {
  34424. $$0$lcssa = $5;
  34425. break;
  34426. }
  34427. }
  34428. } else {
  34429. $$0$lcssa = 0;
  34430. }
  34431. return ($$0$lcssa|0);
  34432. }
  34433. function _pop_arg($0,$1,$2) {
  34434. $0 = $0|0;
  34435. $1 = $1|0;
  34436. $2 = $2|0;
  34437. 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;
  34438. 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;
  34439. 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;
  34440. 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;
  34441. 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;
  34442. 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;
  34443. 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;
  34444. 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;
  34445. 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;
  34446. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  34447. sp = STACKTOP;
  34448. $3 = ($1>>>0)>(20);
  34449. L1: do {
  34450. if (!($3)) {
  34451. do {
  34452. switch ($1|0) {
  34453. case 9: {
  34454. $arglist_current = HEAP32[$2>>2]|0;
  34455. $4 = $arglist_current;
  34456. $5 = ((0) + 4|0);
  34457. $expanded28 = $5;
  34458. $expanded = (($expanded28) - 1)|0;
  34459. $6 = (($4) + ($expanded))|0;
  34460. $7 = ((0) + 4|0);
  34461. $expanded32 = $7;
  34462. $expanded31 = (($expanded32) - 1)|0;
  34463. $expanded30 = $expanded31 ^ -1;
  34464. $8 = $6 & $expanded30;
  34465. $9 = $8;
  34466. $10 = HEAP32[$9>>2]|0;
  34467. $arglist_next = ((($9)) + 4|0);
  34468. HEAP32[$2>>2] = $arglist_next;
  34469. HEAP32[$0>>2] = $10;
  34470. break L1;
  34471. break;
  34472. }
  34473. case 10: {
  34474. $arglist_current2 = HEAP32[$2>>2]|0;
  34475. $11 = $arglist_current2;
  34476. $12 = ((0) + 4|0);
  34477. $expanded35 = $12;
  34478. $expanded34 = (($expanded35) - 1)|0;
  34479. $13 = (($11) + ($expanded34))|0;
  34480. $14 = ((0) + 4|0);
  34481. $expanded39 = $14;
  34482. $expanded38 = (($expanded39) - 1)|0;
  34483. $expanded37 = $expanded38 ^ -1;
  34484. $15 = $13 & $expanded37;
  34485. $16 = $15;
  34486. $17 = HEAP32[$16>>2]|0;
  34487. $arglist_next3 = ((($16)) + 4|0);
  34488. HEAP32[$2>>2] = $arglist_next3;
  34489. $18 = ($17|0)<(0);
  34490. $19 = $18 << 31 >> 31;
  34491. $20 = $0;
  34492. $21 = $20;
  34493. HEAP32[$21>>2] = $17;
  34494. $22 = (($20) + 4)|0;
  34495. $23 = $22;
  34496. HEAP32[$23>>2] = $19;
  34497. break L1;
  34498. break;
  34499. }
  34500. case 11: {
  34501. $arglist_current5 = HEAP32[$2>>2]|0;
  34502. $24 = $arglist_current5;
  34503. $25 = ((0) + 4|0);
  34504. $expanded42 = $25;
  34505. $expanded41 = (($expanded42) - 1)|0;
  34506. $26 = (($24) + ($expanded41))|0;
  34507. $27 = ((0) + 4|0);
  34508. $expanded46 = $27;
  34509. $expanded45 = (($expanded46) - 1)|0;
  34510. $expanded44 = $expanded45 ^ -1;
  34511. $28 = $26 & $expanded44;
  34512. $29 = $28;
  34513. $30 = HEAP32[$29>>2]|0;
  34514. $arglist_next6 = ((($29)) + 4|0);
  34515. HEAP32[$2>>2] = $arglist_next6;
  34516. $31 = $0;
  34517. $32 = $31;
  34518. HEAP32[$32>>2] = $30;
  34519. $33 = (($31) + 4)|0;
  34520. $34 = $33;
  34521. HEAP32[$34>>2] = 0;
  34522. break L1;
  34523. break;
  34524. }
  34525. case 12: {
  34526. $arglist_current8 = HEAP32[$2>>2]|0;
  34527. $35 = $arglist_current8;
  34528. $36 = ((0) + 8|0);
  34529. $expanded49 = $36;
  34530. $expanded48 = (($expanded49) - 1)|0;
  34531. $37 = (($35) + ($expanded48))|0;
  34532. $38 = ((0) + 8|0);
  34533. $expanded53 = $38;
  34534. $expanded52 = (($expanded53) - 1)|0;
  34535. $expanded51 = $expanded52 ^ -1;
  34536. $39 = $37 & $expanded51;
  34537. $40 = $39;
  34538. $41 = $40;
  34539. $42 = $41;
  34540. $43 = HEAP32[$42>>2]|0;
  34541. $44 = (($41) + 4)|0;
  34542. $45 = $44;
  34543. $46 = HEAP32[$45>>2]|0;
  34544. $arglist_next9 = ((($40)) + 8|0);
  34545. HEAP32[$2>>2] = $arglist_next9;
  34546. $47 = $0;
  34547. $48 = $47;
  34548. HEAP32[$48>>2] = $43;
  34549. $49 = (($47) + 4)|0;
  34550. $50 = $49;
  34551. HEAP32[$50>>2] = $46;
  34552. break L1;
  34553. break;
  34554. }
  34555. case 13: {
  34556. $arglist_current11 = HEAP32[$2>>2]|0;
  34557. $51 = $arglist_current11;
  34558. $52 = ((0) + 4|0);
  34559. $expanded56 = $52;
  34560. $expanded55 = (($expanded56) - 1)|0;
  34561. $53 = (($51) + ($expanded55))|0;
  34562. $54 = ((0) + 4|0);
  34563. $expanded60 = $54;
  34564. $expanded59 = (($expanded60) - 1)|0;
  34565. $expanded58 = $expanded59 ^ -1;
  34566. $55 = $53 & $expanded58;
  34567. $56 = $55;
  34568. $57 = HEAP32[$56>>2]|0;
  34569. $arglist_next12 = ((($56)) + 4|0);
  34570. HEAP32[$2>>2] = $arglist_next12;
  34571. $58 = $57&65535;
  34572. $59 = $58 << 16 >> 16;
  34573. $60 = ($59|0)<(0);
  34574. $61 = $60 << 31 >> 31;
  34575. $62 = $0;
  34576. $63 = $62;
  34577. HEAP32[$63>>2] = $59;
  34578. $64 = (($62) + 4)|0;
  34579. $65 = $64;
  34580. HEAP32[$65>>2] = $61;
  34581. break L1;
  34582. break;
  34583. }
  34584. case 14: {
  34585. $arglist_current14 = HEAP32[$2>>2]|0;
  34586. $66 = $arglist_current14;
  34587. $67 = ((0) + 4|0);
  34588. $expanded63 = $67;
  34589. $expanded62 = (($expanded63) - 1)|0;
  34590. $68 = (($66) + ($expanded62))|0;
  34591. $69 = ((0) + 4|0);
  34592. $expanded67 = $69;
  34593. $expanded66 = (($expanded67) - 1)|0;
  34594. $expanded65 = $expanded66 ^ -1;
  34595. $70 = $68 & $expanded65;
  34596. $71 = $70;
  34597. $72 = HEAP32[$71>>2]|0;
  34598. $arglist_next15 = ((($71)) + 4|0);
  34599. HEAP32[$2>>2] = $arglist_next15;
  34600. $$mask31 = $72 & 65535;
  34601. $73 = $0;
  34602. $74 = $73;
  34603. HEAP32[$74>>2] = $$mask31;
  34604. $75 = (($73) + 4)|0;
  34605. $76 = $75;
  34606. HEAP32[$76>>2] = 0;
  34607. break L1;
  34608. break;
  34609. }
  34610. case 15: {
  34611. $arglist_current17 = HEAP32[$2>>2]|0;
  34612. $77 = $arglist_current17;
  34613. $78 = ((0) + 4|0);
  34614. $expanded70 = $78;
  34615. $expanded69 = (($expanded70) - 1)|0;
  34616. $79 = (($77) + ($expanded69))|0;
  34617. $80 = ((0) + 4|0);
  34618. $expanded74 = $80;
  34619. $expanded73 = (($expanded74) - 1)|0;
  34620. $expanded72 = $expanded73 ^ -1;
  34621. $81 = $79 & $expanded72;
  34622. $82 = $81;
  34623. $83 = HEAP32[$82>>2]|0;
  34624. $arglist_next18 = ((($82)) + 4|0);
  34625. HEAP32[$2>>2] = $arglist_next18;
  34626. $84 = $83&255;
  34627. $85 = $84 << 24 >> 24;
  34628. $86 = ($85|0)<(0);
  34629. $87 = $86 << 31 >> 31;
  34630. $88 = $0;
  34631. $89 = $88;
  34632. HEAP32[$89>>2] = $85;
  34633. $90 = (($88) + 4)|0;
  34634. $91 = $90;
  34635. HEAP32[$91>>2] = $87;
  34636. break L1;
  34637. break;
  34638. }
  34639. case 16: {
  34640. $arglist_current20 = HEAP32[$2>>2]|0;
  34641. $92 = $arglist_current20;
  34642. $93 = ((0) + 4|0);
  34643. $expanded77 = $93;
  34644. $expanded76 = (($expanded77) - 1)|0;
  34645. $94 = (($92) + ($expanded76))|0;
  34646. $95 = ((0) + 4|0);
  34647. $expanded81 = $95;
  34648. $expanded80 = (($expanded81) - 1)|0;
  34649. $expanded79 = $expanded80 ^ -1;
  34650. $96 = $94 & $expanded79;
  34651. $97 = $96;
  34652. $98 = HEAP32[$97>>2]|0;
  34653. $arglist_next21 = ((($97)) + 4|0);
  34654. HEAP32[$2>>2] = $arglist_next21;
  34655. $$mask = $98 & 255;
  34656. $99 = $0;
  34657. $100 = $99;
  34658. HEAP32[$100>>2] = $$mask;
  34659. $101 = (($99) + 4)|0;
  34660. $102 = $101;
  34661. HEAP32[$102>>2] = 0;
  34662. break L1;
  34663. break;
  34664. }
  34665. case 17: {
  34666. $arglist_current23 = HEAP32[$2>>2]|0;
  34667. $103 = $arglist_current23;
  34668. $104 = ((0) + 8|0);
  34669. $expanded84 = $104;
  34670. $expanded83 = (($expanded84) - 1)|0;
  34671. $105 = (($103) + ($expanded83))|0;
  34672. $106 = ((0) + 8|0);
  34673. $expanded88 = $106;
  34674. $expanded87 = (($expanded88) - 1)|0;
  34675. $expanded86 = $expanded87 ^ -1;
  34676. $107 = $105 & $expanded86;
  34677. $108 = $107;
  34678. $109 = +HEAPF64[$108>>3];
  34679. $arglist_next24 = ((($108)) + 8|0);
  34680. HEAP32[$2>>2] = $arglist_next24;
  34681. HEAPF64[$0>>3] = $109;
  34682. break L1;
  34683. break;
  34684. }
  34685. case 18: {
  34686. $arglist_current26 = HEAP32[$2>>2]|0;
  34687. $110 = $arglist_current26;
  34688. $111 = ((0) + 8|0);
  34689. $expanded91 = $111;
  34690. $expanded90 = (($expanded91) - 1)|0;
  34691. $112 = (($110) + ($expanded90))|0;
  34692. $113 = ((0) + 8|0);
  34693. $expanded95 = $113;
  34694. $expanded94 = (($expanded95) - 1)|0;
  34695. $expanded93 = $expanded94 ^ -1;
  34696. $114 = $112 & $expanded93;
  34697. $115 = $114;
  34698. $116 = +HEAPF64[$115>>3];
  34699. $arglist_next27 = ((($115)) + 8|0);
  34700. HEAP32[$2>>2] = $arglist_next27;
  34701. HEAPF64[$0>>3] = $116;
  34702. break L1;
  34703. break;
  34704. }
  34705. default: {
  34706. break L1;
  34707. }
  34708. }
  34709. } while(0);
  34710. }
  34711. } while(0);
  34712. return;
  34713. }
  34714. function _fmt_x($0,$1,$2,$3) {
  34715. $0 = $0|0;
  34716. $1 = $1|0;
  34717. $2 = $2|0;
  34718. $3 = $3|0;
  34719. 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;
  34720. var sp = 0;
  34721. sp = STACKTOP;
  34722. $4 = ($0|0)==(0);
  34723. $5 = ($1|0)==(0);
  34724. $6 = $4 & $5;
  34725. if ($6) {
  34726. $$05$lcssa = $2;
  34727. } else {
  34728. $$056 = $2;$15 = $1;$8 = $0;
  34729. while(1) {
  34730. $7 = $8 & 15;
  34731. $9 = (17273 + ($7)|0);
  34732. $10 = HEAP8[$9>>0]|0;
  34733. $11 = $10&255;
  34734. $12 = $11 | $3;
  34735. $13 = $12&255;
  34736. $14 = ((($$056)) + -1|0);
  34737. HEAP8[$14>>0] = $13;
  34738. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  34739. $17 = tempRet0;
  34740. $18 = ($16|0)==(0);
  34741. $19 = ($17|0)==(0);
  34742. $20 = $18 & $19;
  34743. if ($20) {
  34744. $$05$lcssa = $14;
  34745. break;
  34746. } else {
  34747. $$056 = $14;$15 = $17;$8 = $16;
  34748. }
  34749. }
  34750. }
  34751. return ($$05$lcssa|0);
  34752. }
  34753. function _fmt_o($0,$1,$2) {
  34754. $0 = $0|0;
  34755. $1 = $1|0;
  34756. $2 = $2|0;
  34757. 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;
  34758. sp = STACKTOP;
  34759. $3 = ($0|0)==(0);
  34760. $4 = ($1|0)==(0);
  34761. $5 = $3 & $4;
  34762. if ($5) {
  34763. $$0$lcssa = $2;
  34764. } else {
  34765. $$06 = $2;$11 = $1;$7 = $0;
  34766. while(1) {
  34767. $6 = $7&255;
  34768. $8 = $6 & 7;
  34769. $9 = $8 | 48;
  34770. $10 = ((($$06)) + -1|0);
  34771. HEAP8[$10>>0] = $9;
  34772. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  34773. $13 = tempRet0;
  34774. $14 = ($12|0)==(0);
  34775. $15 = ($13|0)==(0);
  34776. $16 = $14 & $15;
  34777. if ($16) {
  34778. $$0$lcssa = $10;
  34779. break;
  34780. } else {
  34781. $$06 = $10;$11 = $13;$7 = $12;
  34782. }
  34783. }
  34784. }
  34785. return ($$0$lcssa|0);
  34786. }
  34787. function _fmt_u($0,$1,$2) {
  34788. $0 = $0|0;
  34789. $1 = $1|0;
  34790. $2 = $2|0;
  34791. 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;
  34792. 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;
  34793. sp = STACKTOP;
  34794. $3 = ($1>>>0)>(0);
  34795. $4 = ($0>>>0)>(4294967295);
  34796. $5 = ($1|0)==(0);
  34797. $6 = $5 & $4;
  34798. $7 = $3 | $6;
  34799. if ($7) {
  34800. $$0914 = $2;$8 = $0;$9 = $1;
  34801. while(1) {
  34802. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  34803. $11 = tempRet0;
  34804. $12 = $10&255;
  34805. $13 = $12 | 48;
  34806. $14 = ((($$0914)) + -1|0);
  34807. HEAP8[$14>>0] = $13;
  34808. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  34809. $16 = tempRet0;
  34810. $17 = ($9>>>0)>(9);
  34811. $18 = ($8>>>0)>(4294967295);
  34812. $19 = ($9|0)==(9);
  34813. $20 = $19 & $18;
  34814. $21 = $17 | $20;
  34815. if ($21) {
  34816. $$0914 = $14;$8 = $15;$9 = $16;
  34817. } else {
  34818. break;
  34819. }
  34820. }
  34821. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  34822. } else {
  34823. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  34824. }
  34825. $22 = ($$010$lcssa$off0|0)==(0);
  34826. if ($22) {
  34827. $$1$lcssa = $$09$lcssa;
  34828. } else {
  34829. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  34830. while(1) {
  34831. $23 = (($$012>>>0) % 10)&-1;
  34832. $24 = $23 | 48;
  34833. $25 = $24&255;
  34834. $26 = ((($$111)) + -1|0);
  34835. HEAP8[$26>>0] = $25;
  34836. $27 = (($$012>>>0) / 10)&-1;
  34837. $28 = ($$012>>>0)<(10);
  34838. if ($28) {
  34839. $$1$lcssa = $26;
  34840. break;
  34841. } else {
  34842. $$012 = $27;$$111 = $26;
  34843. }
  34844. }
  34845. }
  34846. return ($$1$lcssa|0);
  34847. }
  34848. function _strerror($0) {
  34849. $0 = $0|0;
  34850. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  34851. sp = STACKTOP;
  34852. $1 = (___pthread_self_105()|0);
  34853. $2 = ((($1)) + 188|0);
  34854. $3 = HEAP32[$2>>2]|0;
  34855. $4 = (___strerror_l($0,$3)|0);
  34856. return ($4|0);
  34857. }
  34858. function _memchr($0,$1,$2) {
  34859. $0 = $0|0;
  34860. $1 = $1|0;
  34861. $2 = $2|0;
  34862. 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;
  34863. 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;
  34864. 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;
  34865. sp = STACKTOP;
  34866. $3 = $1 & 255;
  34867. $4 = $0;
  34868. $5 = $4 & 3;
  34869. $6 = ($5|0)!=(0);
  34870. $7 = ($2|0)!=(0);
  34871. $or$cond53 = $7 & $6;
  34872. L1: do {
  34873. if ($or$cond53) {
  34874. $8 = $1&255;
  34875. $$03555 = $0;$$03654 = $2;
  34876. while(1) {
  34877. $9 = HEAP8[$$03555>>0]|0;
  34878. $10 = ($9<<24>>24)==($8<<24>>24);
  34879. if ($10) {
  34880. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  34881. label = 6;
  34882. break L1;
  34883. }
  34884. $11 = ((($$03555)) + 1|0);
  34885. $12 = (($$03654) + -1)|0;
  34886. $13 = $11;
  34887. $14 = $13 & 3;
  34888. $15 = ($14|0)!=(0);
  34889. $16 = ($12|0)!=(0);
  34890. $or$cond = $16 & $15;
  34891. if ($or$cond) {
  34892. $$03555 = $11;$$03654 = $12;
  34893. } else {
  34894. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  34895. label = 5;
  34896. break;
  34897. }
  34898. }
  34899. } else {
  34900. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  34901. label = 5;
  34902. }
  34903. } while(0);
  34904. if ((label|0) == 5) {
  34905. if ($$lcssa) {
  34906. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  34907. label = 6;
  34908. } else {
  34909. $$2 = $$035$lcssa;$$3 = 0;
  34910. }
  34911. }
  34912. L8: do {
  34913. if ((label|0) == 6) {
  34914. $17 = HEAP8[$$035$lcssa65>>0]|0;
  34915. $18 = $1&255;
  34916. $19 = ($17<<24>>24)==($18<<24>>24);
  34917. if ($19) {
  34918. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  34919. } else {
  34920. $20 = Math_imul($3, 16843009)|0;
  34921. $21 = ($$036$lcssa64>>>0)>(3);
  34922. L11: do {
  34923. if ($21) {
  34924. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  34925. while(1) {
  34926. $22 = HEAP32[$$046>>2]|0;
  34927. $23 = $22 ^ $20;
  34928. $24 = (($23) + -16843009)|0;
  34929. $25 = $23 & -2139062144;
  34930. $26 = $25 ^ -2139062144;
  34931. $27 = $26 & $24;
  34932. $28 = ($27|0)==(0);
  34933. if (!($28)) {
  34934. break;
  34935. }
  34936. $29 = ((($$046)) + 4|0);
  34937. $30 = (($$13745) + -4)|0;
  34938. $31 = ($30>>>0)>(3);
  34939. if ($31) {
  34940. $$046 = $29;$$13745 = $30;
  34941. } else {
  34942. $$0$lcssa = $29;$$137$lcssa = $30;
  34943. label = 11;
  34944. break L11;
  34945. }
  34946. }
  34947. $$140 = $$046;$$23839 = $$13745;
  34948. } else {
  34949. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  34950. label = 11;
  34951. }
  34952. } while(0);
  34953. if ((label|0) == 11) {
  34954. $32 = ($$137$lcssa|0)==(0);
  34955. if ($32) {
  34956. $$2 = $$0$lcssa;$$3 = 0;
  34957. break;
  34958. } else {
  34959. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  34960. }
  34961. }
  34962. while(1) {
  34963. $33 = HEAP8[$$140>>0]|0;
  34964. $34 = ($33<<24>>24)==($18<<24>>24);
  34965. if ($34) {
  34966. $$2 = $$140;$$3 = $$23839;
  34967. break L8;
  34968. }
  34969. $35 = ((($$140)) + 1|0);
  34970. $36 = (($$23839) + -1)|0;
  34971. $37 = ($36|0)==(0);
  34972. if ($37) {
  34973. $$2 = $35;$$3 = 0;
  34974. break;
  34975. } else {
  34976. $$140 = $35;$$23839 = $36;
  34977. }
  34978. }
  34979. }
  34980. }
  34981. } while(0);
  34982. $38 = ($$3|0)!=(0);
  34983. $39 = $38 ? $$2 : 0;
  34984. return ($39|0);
  34985. }
  34986. function _pad_674($0,$1,$2,$3,$4) {
  34987. $0 = $0|0;
  34988. $1 = $1|0;
  34989. $2 = $2|0;
  34990. $3 = $3|0;
  34991. $4 = $4|0;
  34992. 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;
  34993. sp = STACKTOP;
  34994. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  34995. $5 = sp;
  34996. $6 = $4 & 73728;
  34997. $7 = ($6|0)==(0);
  34998. $8 = ($2|0)>($3|0);
  34999. $or$cond = $8 & $7;
  35000. if ($or$cond) {
  35001. $9 = (($2) - ($3))|0;
  35002. $10 = ($9>>>0)<(256);
  35003. $11 = $10 ? $9 : 256;
  35004. _memset(($5|0),($1|0),($11|0))|0;
  35005. $12 = ($9>>>0)>(255);
  35006. if ($12) {
  35007. $13 = (($2) - ($3))|0;
  35008. $$011 = $9;
  35009. while(1) {
  35010. _out($0,$5,256);
  35011. $14 = (($$011) + -256)|0;
  35012. $15 = ($14>>>0)>(255);
  35013. if ($15) {
  35014. $$011 = $14;
  35015. } else {
  35016. break;
  35017. }
  35018. }
  35019. $16 = $13 & 255;
  35020. $$0$lcssa = $16;
  35021. } else {
  35022. $$0$lcssa = $9;
  35023. }
  35024. _out($0,$5,$$0$lcssa);
  35025. }
  35026. STACKTOP = sp;return;
  35027. }
  35028. function _wctomb($0,$1) {
  35029. $0 = $0|0;
  35030. $1 = $1|0;
  35031. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  35032. sp = STACKTOP;
  35033. $2 = ($0|0)==(0|0);
  35034. if ($2) {
  35035. $$0 = 0;
  35036. } else {
  35037. $3 = (_wcrtomb($0,$1,0)|0);
  35038. $$0 = $3;
  35039. }
  35040. return ($$0|0);
  35041. }
  35042. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  35043. $0 = $0|0;
  35044. $1 = +$1;
  35045. $2 = $2|0;
  35046. $3 = $3|0;
  35047. $4 = $4|0;
  35048. $5 = $5|0;
  35049. 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;
  35050. 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;
  35051. 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;
  35052. 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;
  35053. 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;
  35054. 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;
  35055. 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;
  35056. 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;
  35057. 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;
  35058. 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;
  35059. 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;
  35060. 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;
  35061. 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;
  35062. 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;
  35063. 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;
  35064. 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;
  35065. 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;
  35066. 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;
  35067. 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;
  35068. 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;
  35069. 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;
  35070. 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;
  35071. 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;
  35072. 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;
  35073. 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;
  35074. 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;
  35075. sp = STACKTOP;
  35076. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  35077. $6 = sp + 8|0;
  35078. $7 = sp;
  35079. $8 = sp + 524|0;
  35080. $9 = $8;
  35081. $10 = sp + 512|0;
  35082. HEAP32[$7>>2] = 0;
  35083. $11 = ((($10)) + 12|0);
  35084. (___DOUBLE_BITS_675($1)|0);
  35085. $12 = tempRet0;
  35086. $13 = ($12|0)<(0);
  35087. if ($13) {
  35088. $14 = -$1;
  35089. $$0471 = $14;$$0520 = 1;$$0521 = 17242;
  35090. } else {
  35091. $15 = $4 & 2048;
  35092. $16 = ($15|0)==(0);
  35093. $17 = $4 & 1;
  35094. $18 = ($17|0)==(0);
  35095. $$ = $18 ? (17243) : (17248);
  35096. $$$ = $16 ? $$ : (17245);
  35097. $19 = $4 & 2049;
  35098. $narrow = ($19|0)!=(0);
  35099. $$534$ = $narrow&1;
  35100. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  35101. }
  35102. (___DOUBLE_BITS_675($$0471)|0);
  35103. $20 = tempRet0;
  35104. $21 = $20 & 2146435072;
  35105. $22 = ($21>>>0)<(2146435072);
  35106. $23 = (0)<(0);
  35107. $24 = ($21|0)==(2146435072);
  35108. $25 = $24 & $23;
  35109. $26 = $22 | $25;
  35110. do {
  35111. if ($26) {
  35112. $35 = (+_frexpl($$0471,$7));
  35113. $36 = $35 * 2.0;
  35114. $37 = $36 != 0.0;
  35115. if ($37) {
  35116. $38 = HEAP32[$7>>2]|0;
  35117. $39 = (($38) + -1)|0;
  35118. HEAP32[$7>>2] = $39;
  35119. }
  35120. $40 = $5 | 32;
  35121. $41 = ($40|0)==(97);
  35122. if ($41) {
  35123. $42 = $5 & 32;
  35124. $43 = ($42|0)==(0);
  35125. $44 = ((($$0521)) + 9|0);
  35126. $$0521$ = $43 ? $$0521 : $44;
  35127. $45 = $$0520 | 2;
  35128. $46 = ($3>>>0)>(11);
  35129. $47 = (12 - ($3))|0;
  35130. $48 = ($47|0)==(0);
  35131. $49 = $46 | $48;
  35132. do {
  35133. if ($49) {
  35134. $$1472 = $36;
  35135. } else {
  35136. $$0509582 = 8.0;$$1508583 = $47;
  35137. while(1) {
  35138. $50 = (($$1508583) + -1)|0;
  35139. $51 = $$0509582 * 16.0;
  35140. $52 = ($50|0)==(0);
  35141. if ($52) {
  35142. break;
  35143. } else {
  35144. $$0509582 = $51;$$1508583 = $50;
  35145. }
  35146. }
  35147. $53 = HEAP8[$$0521$>>0]|0;
  35148. $54 = ($53<<24>>24)==(45);
  35149. if ($54) {
  35150. $55 = -$36;
  35151. $56 = $55 - $51;
  35152. $57 = $51 + $56;
  35153. $58 = -$57;
  35154. $$1472 = $58;
  35155. break;
  35156. } else {
  35157. $59 = $36 + $51;
  35158. $60 = $59 - $51;
  35159. $$1472 = $60;
  35160. break;
  35161. }
  35162. }
  35163. } while(0);
  35164. $61 = HEAP32[$7>>2]|0;
  35165. $62 = ($61|0)<(0);
  35166. $63 = (0 - ($61))|0;
  35167. $64 = $62 ? $63 : $61;
  35168. $65 = ($64|0)<(0);
  35169. $66 = $65 << 31 >> 31;
  35170. $67 = (_fmt_u($64,$66,$11)|0);
  35171. $68 = ($67|0)==($11|0);
  35172. if ($68) {
  35173. $69 = ((($10)) + 11|0);
  35174. HEAP8[$69>>0] = 48;
  35175. $$0511 = $69;
  35176. } else {
  35177. $$0511 = $67;
  35178. }
  35179. $70 = $61 >> 31;
  35180. $71 = $70 & 2;
  35181. $72 = (($71) + 43)|0;
  35182. $73 = $72&255;
  35183. $74 = ((($$0511)) + -1|0);
  35184. HEAP8[$74>>0] = $73;
  35185. $75 = (($5) + 15)|0;
  35186. $76 = $75&255;
  35187. $77 = ((($$0511)) + -2|0);
  35188. HEAP8[$77>>0] = $76;
  35189. $notrhs = ($3|0)<(1);
  35190. $78 = $4 & 8;
  35191. $79 = ($78|0)==(0);
  35192. $$0523 = $8;$$2473 = $$1472;
  35193. while(1) {
  35194. $80 = (~~(($$2473)));
  35195. $81 = (17273 + ($80)|0);
  35196. $82 = HEAP8[$81>>0]|0;
  35197. $83 = $82&255;
  35198. $84 = $83 | $42;
  35199. $85 = $84&255;
  35200. $86 = ((($$0523)) + 1|0);
  35201. HEAP8[$$0523>>0] = $85;
  35202. $87 = (+($80|0));
  35203. $88 = $$2473 - $87;
  35204. $89 = $88 * 16.0;
  35205. $90 = $86;
  35206. $91 = (($90) - ($9))|0;
  35207. $92 = ($91|0)==(1);
  35208. if ($92) {
  35209. $notlhs = $89 == 0.0;
  35210. $or$cond3$not = $notrhs & $notlhs;
  35211. $or$cond = $79 & $or$cond3$not;
  35212. if ($or$cond) {
  35213. $$1524 = $86;
  35214. } else {
  35215. $93 = ((($$0523)) + 2|0);
  35216. HEAP8[$86>>0] = 46;
  35217. $$1524 = $93;
  35218. }
  35219. } else {
  35220. $$1524 = $86;
  35221. }
  35222. $94 = $89 != 0.0;
  35223. if ($94) {
  35224. $$0523 = $$1524;$$2473 = $89;
  35225. } else {
  35226. break;
  35227. }
  35228. }
  35229. $95 = ($3|0)!=(0);
  35230. $96 = $77;
  35231. $97 = $11;
  35232. $98 = $$1524;
  35233. $99 = (($98) - ($9))|0;
  35234. $100 = (($97) - ($96))|0;
  35235. $101 = (($99) + -2)|0;
  35236. $102 = ($101|0)<($3|0);
  35237. $or$cond537 = $95 & $102;
  35238. $103 = (($3) + 2)|0;
  35239. $$pn = $or$cond537 ? $103 : $99;
  35240. $$0525 = (($100) + ($45))|0;
  35241. $104 = (($$0525) + ($$pn))|0;
  35242. _pad_674($0,32,$2,$104,$4);
  35243. _out($0,$$0521$,$45);
  35244. $105 = $4 ^ 65536;
  35245. _pad_674($0,48,$2,$104,$105);
  35246. _out($0,$8,$99);
  35247. $106 = (($$pn) - ($99))|0;
  35248. _pad_674($0,48,$106,0,0);
  35249. _out($0,$77,$100);
  35250. $107 = $4 ^ 8192;
  35251. _pad_674($0,32,$2,$104,$107);
  35252. $$sink562 = $104;
  35253. break;
  35254. }
  35255. $108 = ($3|0)<(0);
  35256. $$539 = $108 ? 6 : $3;
  35257. if ($37) {
  35258. $109 = $36 * 268435456.0;
  35259. $110 = HEAP32[$7>>2]|0;
  35260. $111 = (($110) + -28)|0;
  35261. HEAP32[$7>>2] = $111;
  35262. $$3 = $109;$$pr = $111;
  35263. } else {
  35264. $$pre = HEAP32[$7>>2]|0;
  35265. $$3 = $36;$$pr = $$pre;
  35266. }
  35267. $112 = ($$pr|0)<(0);
  35268. $113 = ((($6)) + 288|0);
  35269. $$556 = $112 ? $6 : $113;
  35270. $$0498 = $$556;$$4 = $$3;
  35271. while(1) {
  35272. $114 = (~~(($$4))>>>0);
  35273. HEAP32[$$0498>>2] = $114;
  35274. $115 = ((($$0498)) + 4|0);
  35275. $116 = (+($114>>>0));
  35276. $117 = $$4 - $116;
  35277. $118 = $117 * 1.0E+9;
  35278. $119 = $118 != 0.0;
  35279. if ($119) {
  35280. $$0498 = $115;$$4 = $118;
  35281. } else {
  35282. break;
  35283. }
  35284. }
  35285. $120 = ($$pr|0)>(0);
  35286. if ($120) {
  35287. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  35288. while(1) {
  35289. $121 = ($122|0)<(29);
  35290. $123 = $121 ? $122 : 29;
  35291. $$0488653 = ((($$1499660)) + -4|0);
  35292. $124 = ($$0488653>>>0)<($$1482661>>>0);
  35293. if ($124) {
  35294. $$2483$ph = $$1482661;
  35295. } else {
  35296. $$0488655 = $$0488653;$$0497654 = 0;
  35297. while(1) {
  35298. $125 = HEAP32[$$0488655>>2]|0;
  35299. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  35300. $127 = tempRet0;
  35301. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  35302. $129 = tempRet0;
  35303. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  35304. $131 = tempRet0;
  35305. HEAP32[$$0488655>>2] = $130;
  35306. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  35307. $133 = tempRet0;
  35308. $$0488 = ((($$0488655)) + -4|0);
  35309. $134 = ($$0488>>>0)<($$1482661>>>0);
  35310. if ($134) {
  35311. break;
  35312. } else {
  35313. $$0488655 = $$0488;$$0497654 = $132;
  35314. }
  35315. }
  35316. $135 = ($132|0)==(0);
  35317. if ($135) {
  35318. $$2483$ph = $$1482661;
  35319. } else {
  35320. $136 = ((($$1482661)) + -4|0);
  35321. HEAP32[$136>>2] = $132;
  35322. $$2483$ph = $136;
  35323. }
  35324. }
  35325. $$2500 = $$1499660;
  35326. while(1) {
  35327. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  35328. if (!($137)) {
  35329. break;
  35330. }
  35331. $138 = ((($$2500)) + -4|0);
  35332. $139 = HEAP32[$138>>2]|0;
  35333. $140 = ($139|0)==(0);
  35334. if ($140) {
  35335. $$2500 = $138;
  35336. } else {
  35337. break;
  35338. }
  35339. }
  35340. $141 = HEAP32[$7>>2]|0;
  35341. $142 = (($141) - ($123))|0;
  35342. HEAP32[$7>>2] = $142;
  35343. $143 = ($142|0)>(0);
  35344. if ($143) {
  35345. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  35346. } else {
  35347. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  35348. break;
  35349. }
  35350. }
  35351. } else {
  35352. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  35353. }
  35354. $144 = ($$pr564|0)<(0);
  35355. if ($144) {
  35356. $145 = (($$539) + 25)|0;
  35357. $146 = (($145|0) / 9)&-1;
  35358. $147 = (($146) + 1)|0;
  35359. $148 = ($40|0)==(102);
  35360. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  35361. while(1) {
  35362. $149 = (0 - ($150))|0;
  35363. $151 = ($149|0)<(9);
  35364. $152 = $151 ? $149 : 9;
  35365. $153 = ($$3484648>>>0)<($$3501647>>>0);
  35366. if ($153) {
  35367. $157 = 1 << $152;
  35368. $158 = (($157) + -1)|0;
  35369. $159 = 1000000000 >>> $152;
  35370. $$0487642 = 0;$$1489641 = $$3484648;
  35371. while(1) {
  35372. $160 = HEAP32[$$1489641>>2]|0;
  35373. $161 = $160 & $158;
  35374. $162 = $160 >>> $152;
  35375. $163 = (($162) + ($$0487642))|0;
  35376. HEAP32[$$1489641>>2] = $163;
  35377. $164 = Math_imul($161, $159)|0;
  35378. $165 = ((($$1489641)) + 4|0);
  35379. $166 = ($165>>>0)<($$3501647>>>0);
  35380. if ($166) {
  35381. $$0487642 = $164;$$1489641 = $165;
  35382. } else {
  35383. break;
  35384. }
  35385. }
  35386. $167 = HEAP32[$$3484648>>2]|0;
  35387. $168 = ($167|0)==(0);
  35388. $169 = ((($$3484648)) + 4|0);
  35389. $$$3484 = $168 ? $169 : $$3484648;
  35390. $170 = ($164|0)==(0);
  35391. if ($170) {
  35392. $$$3484692 = $$$3484;$$4502 = $$3501647;
  35393. } else {
  35394. $171 = ((($$3501647)) + 4|0);
  35395. HEAP32[$$3501647>>2] = $164;
  35396. $$$3484692 = $$$3484;$$4502 = $171;
  35397. }
  35398. } else {
  35399. $154 = HEAP32[$$3484648>>2]|0;
  35400. $155 = ($154|0)==(0);
  35401. $156 = ((($$3484648)) + 4|0);
  35402. $$$3484691 = $155 ? $156 : $$3484648;
  35403. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  35404. }
  35405. $172 = $148 ? $$556 : $$$3484692;
  35406. $173 = $$4502;
  35407. $174 = $172;
  35408. $175 = (($173) - ($174))|0;
  35409. $176 = $175 >> 2;
  35410. $177 = ($176|0)>($147|0);
  35411. $178 = (($172) + ($147<<2)|0);
  35412. $$$4502 = $177 ? $178 : $$4502;
  35413. $179 = HEAP32[$7>>2]|0;
  35414. $180 = (($179) + ($152))|0;
  35415. HEAP32[$7>>2] = $180;
  35416. $181 = ($180|0)<(0);
  35417. if ($181) {
  35418. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  35419. } else {
  35420. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  35421. break;
  35422. }
  35423. }
  35424. } else {
  35425. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  35426. }
  35427. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  35428. $183 = $$556;
  35429. if ($182) {
  35430. $184 = $$3484$lcssa;
  35431. $185 = (($183) - ($184))|0;
  35432. $186 = $185 >> 2;
  35433. $187 = ($186*9)|0;
  35434. $188 = HEAP32[$$3484$lcssa>>2]|0;
  35435. $189 = ($188>>>0)<(10);
  35436. if ($189) {
  35437. $$1515 = $187;
  35438. } else {
  35439. $$0514637 = $187;$$0530636 = 10;
  35440. while(1) {
  35441. $190 = ($$0530636*10)|0;
  35442. $191 = (($$0514637) + 1)|0;
  35443. $192 = ($188>>>0)<($190>>>0);
  35444. if ($192) {
  35445. $$1515 = $191;
  35446. break;
  35447. } else {
  35448. $$0514637 = $191;$$0530636 = $190;
  35449. }
  35450. }
  35451. }
  35452. } else {
  35453. $$1515 = 0;
  35454. }
  35455. $193 = ($40|0)!=(102);
  35456. $194 = $193 ? $$1515 : 0;
  35457. $195 = (($$539) - ($194))|0;
  35458. $196 = ($40|0)==(103);
  35459. $197 = ($$539|0)!=(0);
  35460. $198 = $197 & $196;
  35461. $$neg = $198 << 31 >> 31;
  35462. $199 = (($195) + ($$neg))|0;
  35463. $200 = $$3501$lcssa;
  35464. $201 = (($200) - ($183))|0;
  35465. $202 = $201 >> 2;
  35466. $203 = ($202*9)|0;
  35467. $204 = (($203) + -9)|0;
  35468. $205 = ($199|0)<($204|0);
  35469. if ($205) {
  35470. $206 = ((($$556)) + 4|0);
  35471. $207 = (($199) + 9216)|0;
  35472. $208 = (($207|0) / 9)&-1;
  35473. $209 = (($208) + -1024)|0;
  35474. $210 = (($206) + ($209<<2)|0);
  35475. $211 = (($207|0) % 9)&-1;
  35476. $$0527629 = (($211) + 1)|0;
  35477. $212 = ($$0527629|0)<(9);
  35478. if ($212) {
  35479. $$0527631 = $$0527629;$$1531630 = 10;
  35480. while(1) {
  35481. $213 = ($$1531630*10)|0;
  35482. $$0527 = (($$0527631) + 1)|0;
  35483. $exitcond = ($$0527|0)==(9);
  35484. if ($exitcond) {
  35485. $$1531$lcssa = $213;
  35486. break;
  35487. } else {
  35488. $$0527631 = $$0527;$$1531630 = $213;
  35489. }
  35490. }
  35491. } else {
  35492. $$1531$lcssa = 10;
  35493. }
  35494. $214 = HEAP32[$210>>2]|0;
  35495. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  35496. $216 = ($215|0)==(0);
  35497. $217 = ((($210)) + 4|0);
  35498. $218 = ($217|0)==($$3501$lcssa|0);
  35499. $or$cond541 = $218 & $216;
  35500. if ($or$cond541) {
  35501. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  35502. } else {
  35503. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  35504. $220 = $219 & 1;
  35505. $221 = ($220|0)==(0);
  35506. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  35507. $222 = (($$1531$lcssa|0) / 2)&-1;
  35508. $223 = ($215>>>0)<($222>>>0);
  35509. $224 = ($215|0)==($222|0);
  35510. $or$cond544 = $218 & $224;
  35511. $$559 = $or$cond544 ? 1.0 : 1.5;
  35512. $$$559 = $223 ? 0.5 : $$559;
  35513. $225 = ($$0520|0)==(0);
  35514. if ($225) {
  35515. $$1467 = $$$559;$$1469 = $$542;
  35516. } else {
  35517. $226 = HEAP8[$$0521>>0]|0;
  35518. $227 = ($226<<24>>24)==(45);
  35519. $228 = -$$542;
  35520. $229 = -$$$559;
  35521. $$$542 = $227 ? $228 : $$542;
  35522. $$$$559 = $227 ? $229 : $$$559;
  35523. $$1467 = $$$$559;$$1469 = $$$542;
  35524. }
  35525. $230 = (($214) - ($215))|0;
  35526. HEAP32[$210>>2] = $230;
  35527. $231 = $$1469 + $$1467;
  35528. $232 = $231 != $$1469;
  35529. if ($232) {
  35530. $233 = (($230) + ($$1531$lcssa))|0;
  35531. HEAP32[$210>>2] = $233;
  35532. $234 = ($233>>>0)>(999999999);
  35533. if ($234) {
  35534. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  35535. while(1) {
  35536. $235 = ((($$sink545622)) + -4|0);
  35537. HEAP32[$$sink545622>>2] = 0;
  35538. $236 = ($235>>>0)<($$5486623>>>0);
  35539. if ($236) {
  35540. $237 = ((($$5486623)) + -4|0);
  35541. HEAP32[$237>>2] = 0;
  35542. $$6 = $237;
  35543. } else {
  35544. $$6 = $$5486623;
  35545. }
  35546. $238 = HEAP32[$235>>2]|0;
  35547. $239 = (($238) + 1)|0;
  35548. HEAP32[$235>>2] = $239;
  35549. $240 = ($239>>>0)>(999999999);
  35550. if ($240) {
  35551. $$5486623 = $$6;$$sink545622 = $235;
  35552. } else {
  35553. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  35554. break;
  35555. }
  35556. }
  35557. } else {
  35558. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  35559. }
  35560. $241 = $$5486$lcssa;
  35561. $242 = (($183) - ($241))|0;
  35562. $243 = $242 >> 2;
  35563. $244 = ($243*9)|0;
  35564. $245 = HEAP32[$$5486$lcssa>>2]|0;
  35565. $246 = ($245>>>0)<(10);
  35566. if ($246) {
  35567. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  35568. } else {
  35569. $$2516618 = $244;$$2532617 = 10;
  35570. while(1) {
  35571. $247 = ($$2532617*10)|0;
  35572. $248 = (($$2516618) + 1)|0;
  35573. $249 = ($245>>>0)<($247>>>0);
  35574. if ($249) {
  35575. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  35576. break;
  35577. } else {
  35578. $$2516618 = $248;$$2532617 = $247;
  35579. }
  35580. }
  35581. }
  35582. } else {
  35583. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  35584. }
  35585. }
  35586. $250 = ((($$4492)) + 4|0);
  35587. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  35588. $$$3501 = $251 ? $250 : $$3501$lcssa;
  35589. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  35590. } else {
  35591. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  35592. }
  35593. $$7505 = $$7505$ph;
  35594. while(1) {
  35595. $252 = ($$7505>>>0)>($$9$ph>>>0);
  35596. if (!($252)) {
  35597. $$lcssa673 = 0;
  35598. break;
  35599. }
  35600. $253 = ((($$7505)) + -4|0);
  35601. $254 = HEAP32[$253>>2]|0;
  35602. $255 = ($254|0)==(0);
  35603. if ($255) {
  35604. $$7505 = $253;
  35605. } else {
  35606. $$lcssa673 = 1;
  35607. break;
  35608. }
  35609. }
  35610. $256 = (0 - ($$5519$ph))|0;
  35611. do {
  35612. if ($196) {
  35613. $not$ = $197 ^ 1;
  35614. $257 = $not$&1;
  35615. $$539$ = (($257) + ($$539))|0;
  35616. $258 = ($$539$|0)>($$5519$ph|0);
  35617. $259 = ($$5519$ph|0)>(-5);
  35618. $or$cond6 = $258 & $259;
  35619. if ($or$cond6) {
  35620. $260 = (($5) + -1)|0;
  35621. $$neg567 = (($$539$) + -1)|0;
  35622. $261 = (($$neg567) - ($$5519$ph))|0;
  35623. $$0479 = $260;$$2476 = $261;
  35624. } else {
  35625. $262 = (($5) + -2)|0;
  35626. $263 = (($$539$) + -1)|0;
  35627. $$0479 = $262;$$2476 = $263;
  35628. }
  35629. $264 = $4 & 8;
  35630. $265 = ($264|0)==(0);
  35631. if ($265) {
  35632. if ($$lcssa673) {
  35633. $266 = ((($$7505)) + -4|0);
  35634. $267 = HEAP32[$266>>2]|0;
  35635. $268 = ($267|0)==(0);
  35636. if ($268) {
  35637. $$2529 = 9;
  35638. } else {
  35639. $269 = (($267>>>0) % 10)&-1;
  35640. $270 = ($269|0)==(0);
  35641. if ($270) {
  35642. $$1528614 = 0;$$3533613 = 10;
  35643. while(1) {
  35644. $271 = ($$3533613*10)|0;
  35645. $272 = (($$1528614) + 1)|0;
  35646. $273 = (($267>>>0) % ($271>>>0))&-1;
  35647. $274 = ($273|0)==(0);
  35648. if ($274) {
  35649. $$1528614 = $272;$$3533613 = $271;
  35650. } else {
  35651. $$2529 = $272;
  35652. break;
  35653. }
  35654. }
  35655. } else {
  35656. $$2529 = 0;
  35657. }
  35658. }
  35659. } else {
  35660. $$2529 = 9;
  35661. }
  35662. $275 = $$0479 | 32;
  35663. $276 = ($275|0)==(102);
  35664. $277 = $$7505;
  35665. $278 = (($277) - ($183))|0;
  35666. $279 = $278 >> 2;
  35667. $280 = ($279*9)|0;
  35668. $281 = (($280) + -9)|0;
  35669. if ($276) {
  35670. $282 = (($281) - ($$2529))|0;
  35671. $283 = ($282|0)>(0);
  35672. $$546 = $283 ? $282 : 0;
  35673. $284 = ($$2476|0)<($$546|0);
  35674. $$2476$$547 = $284 ? $$2476 : $$546;
  35675. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  35676. break;
  35677. } else {
  35678. $285 = (($281) + ($$5519$ph))|0;
  35679. $286 = (($285) - ($$2529))|0;
  35680. $287 = ($286|0)>(0);
  35681. $$548 = $287 ? $286 : 0;
  35682. $288 = ($$2476|0)<($$548|0);
  35683. $$2476$$549 = $288 ? $$2476 : $$548;
  35684. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  35685. break;
  35686. }
  35687. } else {
  35688. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  35689. }
  35690. } else {
  35691. $$pre689 = $4 & 8;
  35692. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  35693. }
  35694. } while(0);
  35695. $289 = $$3477 | $$pre$phi690Z2D;
  35696. $290 = ($289|0)!=(0);
  35697. $291 = $290&1;
  35698. $292 = $$1480 | 32;
  35699. $293 = ($292|0)==(102);
  35700. if ($293) {
  35701. $294 = ($$5519$ph|0)>(0);
  35702. $295 = $294 ? $$5519$ph : 0;
  35703. $$2513 = 0;$$pn566 = $295;
  35704. } else {
  35705. $296 = ($$5519$ph|0)<(0);
  35706. $297 = $296 ? $256 : $$5519$ph;
  35707. $298 = ($297|0)<(0);
  35708. $299 = $298 << 31 >> 31;
  35709. $300 = (_fmt_u($297,$299,$11)|0);
  35710. $301 = $11;
  35711. $302 = $300;
  35712. $303 = (($301) - ($302))|0;
  35713. $304 = ($303|0)<(2);
  35714. if ($304) {
  35715. $$1512607 = $300;
  35716. while(1) {
  35717. $305 = ((($$1512607)) + -1|0);
  35718. HEAP8[$305>>0] = 48;
  35719. $306 = $305;
  35720. $307 = (($301) - ($306))|0;
  35721. $308 = ($307|0)<(2);
  35722. if ($308) {
  35723. $$1512607 = $305;
  35724. } else {
  35725. $$1512$lcssa = $305;
  35726. break;
  35727. }
  35728. }
  35729. } else {
  35730. $$1512$lcssa = $300;
  35731. }
  35732. $309 = $$5519$ph >> 31;
  35733. $310 = $309 & 2;
  35734. $311 = (($310) + 43)|0;
  35735. $312 = $311&255;
  35736. $313 = ((($$1512$lcssa)) + -1|0);
  35737. HEAP8[$313>>0] = $312;
  35738. $314 = $$1480&255;
  35739. $315 = ((($$1512$lcssa)) + -2|0);
  35740. HEAP8[$315>>0] = $314;
  35741. $316 = $315;
  35742. $317 = (($301) - ($316))|0;
  35743. $$2513 = $315;$$pn566 = $317;
  35744. }
  35745. $318 = (($$0520) + 1)|0;
  35746. $319 = (($318) + ($$3477))|0;
  35747. $$1526 = (($319) + ($291))|0;
  35748. $320 = (($$1526) + ($$pn566))|0;
  35749. _pad_674($0,32,$2,$320,$4);
  35750. _out($0,$$0521,$$0520);
  35751. $321 = $4 ^ 65536;
  35752. _pad_674($0,48,$2,$320,$321);
  35753. if ($293) {
  35754. $322 = ($$9$ph>>>0)>($$556>>>0);
  35755. $$0496$$9 = $322 ? $$556 : $$9$ph;
  35756. $323 = ((($8)) + 9|0);
  35757. $324 = $323;
  35758. $325 = ((($8)) + 8|0);
  35759. $$5493597 = $$0496$$9;
  35760. while(1) {
  35761. $326 = HEAP32[$$5493597>>2]|0;
  35762. $327 = (_fmt_u($326,0,$323)|0);
  35763. $328 = ($$5493597|0)==($$0496$$9|0);
  35764. if ($328) {
  35765. $334 = ($327|0)==($323|0);
  35766. if ($334) {
  35767. HEAP8[$325>>0] = 48;
  35768. $$1465 = $325;
  35769. } else {
  35770. $$1465 = $327;
  35771. }
  35772. } else {
  35773. $329 = ($327>>>0)>($8>>>0);
  35774. if ($329) {
  35775. $330 = $327;
  35776. $331 = (($330) - ($9))|0;
  35777. _memset(($8|0),48,($331|0))|0;
  35778. $$0464594 = $327;
  35779. while(1) {
  35780. $332 = ((($$0464594)) + -1|0);
  35781. $333 = ($332>>>0)>($8>>>0);
  35782. if ($333) {
  35783. $$0464594 = $332;
  35784. } else {
  35785. $$1465 = $332;
  35786. break;
  35787. }
  35788. }
  35789. } else {
  35790. $$1465 = $327;
  35791. }
  35792. }
  35793. $335 = $$1465;
  35794. $336 = (($324) - ($335))|0;
  35795. _out($0,$$1465,$336);
  35796. $337 = ((($$5493597)) + 4|0);
  35797. $338 = ($337>>>0)>($$556>>>0);
  35798. if ($338) {
  35799. break;
  35800. } else {
  35801. $$5493597 = $337;
  35802. }
  35803. }
  35804. $339 = ($289|0)==(0);
  35805. if (!($339)) {
  35806. _out($0,17289,1);
  35807. }
  35808. $340 = ($337>>>0)<($$7505>>>0);
  35809. $341 = ($$3477|0)>(0);
  35810. $342 = $340 & $341;
  35811. if ($342) {
  35812. $$4478590 = $$3477;$$6494589 = $337;
  35813. while(1) {
  35814. $343 = HEAP32[$$6494589>>2]|0;
  35815. $344 = (_fmt_u($343,0,$323)|0);
  35816. $345 = ($344>>>0)>($8>>>0);
  35817. if ($345) {
  35818. $346 = $344;
  35819. $347 = (($346) - ($9))|0;
  35820. _memset(($8|0),48,($347|0))|0;
  35821. $$0463584 = $344;
  35822. while(1) {
  35823. $348 = ((($$0463584)) + -1|0);
  35824. $349 = ($348>>>0)>($8>>>0);
  35825. if ($349) {
  35826. $$0463584 = $348;
  35827. } else {
  35828. $$0463$lcssa = $348;
  35829. break;
  35830. }
  35831. }
  35832. } else {
  35833. $$0463$lcssa = $344;
  35834. }
  35835. $350 = ($$4478590|0)<(9);
  35836. $351 = $350 ? $$4478590 : 9;
  35837. _out($0,$$0463$lcssa,$351);
  35838. $352 = ((($$6494589)) + 4|0);
  35839. $353 = (($$4478590) + -9)|0;
  35840. $354 = ($352>>>0)<($$7505>>>0);
  35841. $355 = ($$4478590|0)>(9);
  35842. $356 = $354 & $355;
  35843. if ($356) {
  35844. $$4478590 = $353;$$6494589 = $352;
  35845. } else {
  35846. $$4478$lcssa = $353;
  35847. break;
  35848. }
  35849. }
  35850. } else {
  35851. $$4478$lcssa = $$3477;
  35852. }
  35853. $357 = (($$4478$lcssa) + 9)|0;
  35854. _pad_674($0,48,$357,9,0);
  35855. } else {
  35856. $358 = ((($$9$ph)) + 4|0);
  35857. $$7505$ = $$lcssa673 ? $$7505 : $358;
  35858. $359 = ($$3477|0)>(-1);
  35859. if ($359) {
  35860. $360 = ((($8)) + 9|0);
  35861. $361 = ($$pre$phi690Z2D|0)==(0);
  35862. $362 = $360;
  35863. $363 = (0 - ($9))|0;
  35864. $364 = ((($8)) + 8|0);
  35865. $$5602 = $$3477;$$7495601 = $$9$ph;
  35866. while(1) {
  35867. $365 = HEAP32[$$7495601>>2]|0;
  35868. $366 = (_fmt_u($365,0,$360)|0);
  35869. $367 = ($366|0)==($360|0);
  35870. if ($367) {
  35871. HEAP8[$364>>0] = 48;
  35872. $$0 = $364;
  35873. } else {
  35874. $$0 = $366;
  35875. }
  35876. $368 = ($$7495601|0)==($$9$ph|0);
  35877. do {
  35878. if ($368) {
  35879. $372 = ((($$0)) + 1|0);
  35880. _out($0,$$0,1);
  35881. $373 = ($$5602|0)<(1);
  35882. $or$cond554 = $361 & $373;
  35883. if ($or$cond554) {
  35884. $$2 = $372;
  35885. break;
  35886. }
  35887. _out($0,17289,1);
  35888. $$2 = $372;
  35889. } else {
  35890. $369 = ($$0>>>0)>($8>>>0);
  35891. if (!($369)) {
  35892. $$2 = $$0;
  35893. break;
  35894. }
  35895. $scevgep684 = (($$0) + ($363)|0);
  35896. $scevgep684685 = $scevgep684;
  35897. _memset(($8|0),48,($scevgep684685|0))|0;
  35898. $$1598 = $$0;
  35899. while(1) {
  35900. $370 = ((($$1598)) + -1|0);
  35901. $371 = ($370>>>0)>($8>>>0);
  35902. if ($371) {
  35903. $$1598 = $370;
  35904. } else {
  35905. $$2 = $370;
  35906. break;
  35907. }
  35908. }
  35909. }
  35910. } while(0);
  35911. $374 = $$2;
  35912. $375 = (($362) - ($374))|0;
  35913. $376 = ($$5602|0)>($375|0);
  35914. $377 = $376 ? $375 : $$5602;
  35915. _out($0,$$2,$377);
  35916. $378 = (($$5602) - ($375))|0;
  35917. $379 = ((($$7495601)) + 4|0);
  35918. $380 = ($379>>>0)<($$7505$>>>0);
  35919. $381 = ($378|0)>(-1);
  35920. $382 = $380 & $381;
  35921. if ($382) {
  35922. $$5602 = $378;$$7495601 = $379;
  35923. } else {
  35924. $$5$lcssa = $378;
  35925. break;
  35926. }
  35927. }
  35928. } else {
  35929. $$5$lcssa = $$3477;
  35930. }
  35931. $383 = (($$5$lcssa) + 18)|0;
  35932. _pad_674($0,48,$383,18,0);
  35933. $384 = $11;
  35934. $385 = $$2513;
  35935. $386 = (($384) - ($385))|0;
  35936. _out($0,$$2513,$386);
  35937. }
  35938. $387 = $4 ^ 8192;
  35939. _pad_674($0,32,$2,$320,$387);
  35940. $$sink562 = $320;
  35941. } else {
  35942. $27 = $5 & 32;
  35943. $28 = ($27|0)!=(0);
  35944. $29 = $28 ? 17261 : 17265;
  35945. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  35946. $31 = $28 ? 19192 : 17269;
  35947. $$0510 = $30 ? $31 : $29;
  35948. $32 = (($$0520) + 3)|0;
  35949. $33 = $4 & -65537;
  35950. _pad_674($0,32,$2,$32,$33);
  35951. _out($0,$$0521,$$0520);
  35952. _out($0,$$0510,3);
  35953. $34 = $4 ^ 8192;
  35954. _pad_674($0,32,$2,$32,$34);
  35955. $$sink562 = $32;
  35956. }
  35957. } while(0);
  35958. $388 = ($$sink562|0)<($2|0);
  35959. $$555 = $388 ? $2 : $$sink562;
  35960. STACKTOP = sp;return ($$555|0);
  35961. }
  35962. function ___DOUBLE_BITS_675($0) {
  35963. $0 = +$0;
  35964. var $1 = 0, $2 = 0, label = 0, sp = 0;
  35965. sp = STACKTOP;
  35966. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  35967. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  35968. tempRet0 = ($2);
  35969. return ($1|0);
  35970. }
  35971. function _frexpl($0,$1) {
  35972. $0 = +$0;
  35973. $1 = $1|0;
  35974. var $2 = 0.0, label = 0, sp = 0;
  35975. sp = STACKTOP;
  35976. $2 = (+_frexp($0,$1));
  35977. return (+$2);
  35978. }
  35979. function _frexp($0,$1) {
  35980. $0 = +$0;
  35981. $1 = $1|0;
  35982. 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;
  35983. var sp = 0;
  35984. sp = STACKTOP;
  35985. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  35986. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  35987. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  35988. $5 = tempRet0;
  35989. $6 = $4&65535;
  35990. $trunc$clear = $6 & 2047;
  35991. switch ($trunc$clear<<16>>16) {
  35992. case 0: {
  35993. $7 = $0 != 0.0;
  35994. if ($7) {
  35995. $8 = $0 * 1.8446744073709552E+19;
  35996. $9 = (+_frexp($8,$1));
  35997. $10 = HEAP32[$1>>2]|0;
  35998. $11 = (($10) + -64)|0;
  35999. $$016 = $9;$storemerge = $11;
  36000. } else {
  36001. $$016 = $0;$storemerge = 0;
  36002. }
  36003. HEAP32[$1>>2] = $storemerge;
  36004. $$0 = $$016;
  36005. break;
  36006. }
  36007. case 2047: {
  36008. $$0 = $0;
  36009. break;
  36010. }
  36011. default: {
  36012. $12 = $4 & 2047;
  36013. $13 = (($12) + -1022)|0;
  36014. HEAP32[$1>>2] = $13;
  36015. $14 = $3 & -2146435073;
  36016. $15 = $14 | 1071644672;
  36017. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  36018. $$0 = $16;
  36019. }
  36020. }
  36021. return (+$$0);
  36022. }
  36023. function _wcrtomb($0,$1,$2) {
  36024. $0 = $0|0;
  36025. $1 = $1|0;
  36026. $2 = $2|0;
  36027. 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;
  36028. 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;
  36029. 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;
  36030. sp = STACKTOP;
  36031. $3 = ($0|0)==(0|0);
  36032. do {
  36033. if ($3) {
  36034. $$0 = 1;
  36035. } else {
  36036. $4 = ($1>>>0)<(128);
  36037. if ($4) {
  36038. $5 = $1&255;
  36039. HEAP8[$0>>0] = $5;
  36040. $$0 = 1;
  36041. break;
  36042. }
  36043. $6 = (___pthread_self_448()|0);
  36044. $7 = ((($6)) + 188|0);
  36045. $8 = HEAP32[$7>>2]|0;
  36046. $9 = HEAP32[$8>>2]|0;
  36047. $not$ = ($9|0)==(0|0);
  36048. if ($not$) {
  36049. $10 = $1 & -128;
  36050. $11 = ($10|0)==(57216);
  36051. if ($11) {
  36052. $13 = $1&255;
  36053. HEAP8[$0>>0] = $13;
  36054. $$0 = 1;
  36055. break;
  36056. } else {
  36057. $12 = (___errno_location()|0);
  36058. HEAP32[$12>>2] = 84;
  36059. $$0 = -1;
  36060. break;
  36061. }
  36062. }
  36063. $14 = ($1>>>0)<(2048);
  36064. if ($14) {
  36065. $15 = $1 >>> 6;
  36066. $16 = $15 | 192;
  36067. $17 = $16&255;
  36068. $18 = ((($0)) + 1|0);
  36069. HEAP8[$0>>0] = $17;
  36070. $19 = $1 & 63;
  36071. $20 = $19 | 128;
  36072. $21 = $20&255;
  36073. HEAP8[$18>>0] = $21;
  36074. $$0 = 2;
  36075. break;
  36076. }
  36077. $22 = ($1>>>0)<(55296);
  36078. $23 = $1 & -8192;
  36079. $24 = ($23|0)==(57344);
  36080. $or$cond = $22 | $24;
  36081. if ($or$cond) {
  36082. $25 = $1 >>> 12;
  36083. $26 = $25 | 224;
  36084. $27 = $26&255;
  36085. $28 = ((($0)) + 1|0);
  36086. HEAP8[$0>>0] = $27;
  36087. $29 = $1 >>> 6;
  36088. $30 = $29 & 63;
  36089. $31 = $30 | 128;
  36090. $32 = $31&255;
  36091. $33 = ((($0)) + 2|0);
  36092. HEAP8[$28>>0] = $32;
  36093. $34 = $1 & 63;
  36094. $35 = $34 | 128;
  36095. $36 = $35&255;
  36096. HEAP8[$33>>0] = $36;
  36097. $$0 = 3;
  36098. break;
  36099. }
  36100. $37 = (($1) + -65536)|0;
  36101. $38 = ($37>>>0)<(1048576);
  36102. if ($38) {
  36103. $39 = $1 >>> 18;
  36104. $40 = $39 | 240;
  36105. $41 = $40&255;
  36106. $42 = ((($0)) + 1|0);
  36107. HEAP8[$0>>0] = $41;
  36108. $43 = $1 >>> 12;
  36109. $44 = $43 & 63;
  36110. $45 = $44 | 128;
  36111. $46 = $45&255;
  36112. $47 = ((($0)) + 2|0);
  36113. HEAP8[$42>>0] = $46;
  36114. $48 = $1 >>> 6;
  36115. $49 = $48 & 63;
  36116. $50 = $49 | 128;
  36117. $51 = $50&255;
  36118. $52 = ((($0)) + 3|0);
  36119. HEAP8[$47>>0] = $51;
  36120. $53 = $1 & 63;
  36121. $54 = $53 | 128;
  36122. $55 = $54&255;
  36123. HEAP8[$52>>0] = $55;
  36124. $$0 = 4;
  36125. break;
  36126. } else {
  36127. $56 = (___errno_location()|0);
  36128. HEAP32[$56>>2] = 84;
  36129. $$0 = -1;
  36130. break;
  36131. }
  36132. }
  36133. } while(0);
  36134. return ($$0|0);
  36135. }
  36136. function ___pthread_self_448() {
  36137. var $0 = 0, label = 0, sp = 0;
  36138. sp = STACKTOP;
  36139. $0 = (_pthread_self()|0);
  36140. return ($0|0);
  36141. }
  36142. function ___pthread_self_105() {
  36143. var $0 = 0, label = 0, sp = 0;
  36144. sp = STACKTOP;
  36145. $0 = (_pthread_self()|0);
  36146. return ($0|0);
  36147. }
  36148. function ___strerror_l($0,$1) {
  36149. $0 = $0|0;
  36150. $1 = $1|0;
  36151. 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;
  36152. var label = 0, sp = 0;
  36153. sp = STACKTOP;
  36154. $$016 = 0;
  36155. while(1) {
  36156. $3 = (17291 + ($$016)|0);
  36157. $4 = HEAP8[$3>>0]|0;
  36158. $5 = $4&255;
  36159. $6 = ($5|0)==($0|0);
  36160. if ($6) {
  36161. label = 2;
  36162. break;
  36163. }
  36164. $7 = (($$016) + 1)|0;
  36165. $8 = ($7|0)==(87);
  36166. if ($8) {
  36167. $$01214 = 17379;$$115 = 87;
  36168. label = 5;
  36169. break;
  36170. } else {
  36171. $$016 = $7;
  36172. }
  36173. }
  36174. if ((label|0) == 2) {
  36175. $2 = ($$016|0)==(0);
  36176. if ($2) {
  36177. $$012$lcssa = 17379;
  36178. } else {
  36179. $$01214 = 17379;$$115 = $$016;
  36180. label = 5;
  36181. }
  36182. }
  36183. if ((label|0) == 5) {
  36184. while(1) {
  36185. label = 0;
  36186. $$113 = $$01214;
  36187. while(1) {
  36188. $9 = HEAP8[$$113>>0]|0;
  36189. $10 = ($9<<24>>24)==(0);
  36190. $11 = ((($$113)) + 1|0);
  36191. if ($10) {
  36192. break;
  36193. } else {
  36194. $$113 = $11;
  36195. }
  36196. }
  36197. $12 = (($$115) + -1)|0;
  36198. $13 = ($12|0)==(0);
  36199. if ($13) {
  36200. $$012$lcssa = $11;
  36201. break;
  36202. } else {
  36203. $$01214 = $11;$$115 = $12;
  36204. label = 5;
  36205. }
  36206. }
  36207. }
  36208. $14 = ((($1)) + 20|0);
  36209. $15 = HEAP32[$14>>2]|0;
  36210. $16 = (___lctrans($$012$lcssa,$15)|0);
  36211. return ($16|0);
  36212. }
  36213. function ___lctrans($0,$1) {
  36214. $0 = $0|0;
  36215. $1 = $1|0;
  36216. var $2 = 0, label = 0, sp = 0;
  36217. sp = STACKTOP;
  36218. $2 = (___lctrans_impl($0,$1)|0);
  36219. return ($2|0);
  36220. }
  36221. function ___lctrans_impl($0,$1) {
  36222. $0 = $0|0;
  36223. $1 = $1|0;
  36224. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  36225. sp = STACKTOP;
  36226. $2 = ($1|0)==(0|0);
  36227. if ($2) {
  36228. $$0 = 0;
  36229. } else {
  36230. $3 = HEAP32[$1>>2]|0;
  36231. $4 = ((($1)) + 4|0);
  36232. $5 = HEAP32[$4>>2]|0;
  36233. $6 = (___mo_lookup($3,$5,$0)|0);
  36234. $$0 = $6;
  36235. }
  36236. $7 = ($$0|0)!=(0|0);
  36237. $8 = $7 ? $$0 : $0;
  36238. return ($8|0);
  36239. }
  36240. function ___mo_lookup($0,$1,$2) {
  36241. $0 = $0|0;
  36242. $1 = $1|0;
  36243. $2 = $2|0;
  36244. 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;
  36245. 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;
  36246. 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;
  36247. 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;
  36248. sp = STACKTOP;
  36249. $3 = HEAP32[$0>>2]|0;
  36250. $4 = (($3) + 1794895138)|0;
  36251. $5 = ((($0)) + 8|0);
  36252. $6 = HEAP32[$5>>2]|0;
  36253. $7 = (_swapc($6,$4)|0);
  36254. $8 = ((($0)) + 12|0);
  36255. $9 = HEAP32[$8>>2]|0;
  36256. $10 = (_swapc($9,$4)|0);
  36257. $11 = ((($0)) + 16|0);
  36258. $12 = HEAP32[$11>>2]|0;
  36259. $13 = (_swapc($12,$4)|0);
  36260. $14 = $1 >>> 2;
  36261. $15 = ($7>>>0)<($14>>>0);
  36262. L1: do {
  36263. if ($15) {
  36264. $16 = $7 << 2;
  36265. $17 = (($1) - ($16))|0;
  36266. $18 = ($10>>>0)<($17>>>0);
  36267. $19 = ($13>>>0)<($17>>>0);
  36268. $or$cond = $18 & $19;
  36269. if ($or$cond) {
  36270. $20 = $13 | $10;
  36271. $21 = $20 & 3;
  36272. $22 = ($21|0)==(0);
  36273. if ($22) {
  36274. $23 = $10 >>> 2;
  36275. $24 = $13 >>> 2;
  36276. $$090 = 0;$$094 = $7;
  36277. while(1) {
  36278. $25 = $$094 >>> 1;
  36279. $26 = (($$090) + ($25))|0;
  36280. $27 = $26 << 1;
  36281. $28 = (($27) + ($23))|0;
  36282. $29 = (($0) + ($28<<2)|0);
  36283. $30 = HEAP32[$29>>2]|0;
  36284. $31 = (_swapc($30,$4)|0);
  36285. $32 = (($28) + 1)|0;
  36286. $33 = (($0) + ($32<<2)|0);
  36287. $34 = HEAP32[$33>>2]|0;
  36288. $35 = (_swapc($34,$4)|0);
  36289. $36 = ($35>>>0)<($1>>>0);
  36290. $37 = (($1) - ($35))|0;
  36291. $38 = ($31>>>0)<($37>>>0);
  36292. $or$cond102 = $36 & $38;
  36293. if (!($or$cond102)) {
  36294. $$4 = 0;
  36295. break L1;
  36296. }
  36297. $39 = (($35) + ($31))|0;
  36298. $40 = (($0) + ($39)|0);
  36299. $41 = HEAP8[$40>>0]|0;
  36300. $42 = ($41<<24>>24)==(0);
  36301. if (!($42)) {
  36302. $$4 = 0;
  36303. break L1;
  36304. }
  36305. $43 = (($0) + ($35)|0);
  36306. $44 = (_strcmp($2,$43)|0);
  36307. $45 = ($44|0)==(0);
  36308. if ($45) {
  36309. break;
  36310. }
  36311. $62 = ($$094|0)==(1);
  36312. $63 = ($44|0)<(0);
  36313. $64 = (($$094) - ($25))|0;
  36314. $$195 = $63 ? $25 : $64;
  36315. $$191 = $63 ? $$090 : $26;
  36316. if ($62) {
  36317. $$4 = 0;
  36318. break L1;
  36319. } else {
  36320. $$090 = $$191;$$094 = $$195;
  36321. }
  36322. }
  36323. $46 = (($27) + ($24))|0;
  36324. $47 = (($0) + ($46<<2)|0);
  36325. $48 = HEAP32[$47>>2]|0;
  36326. $49 = (_swapc($48,$4)|0);
  36327. $50 = (($46) + 1)|0;
  36328. $51 = (($0) + ($50<<2)|0);
  36329. $52 = HEAP32[$51>>2]|0;
  36330. $53 = (_swapc($52,$4)|0);
  36331. $54 = ($53>>>0)<($1>>>0);
  36332. $55 = (($1) - ($53))|0;
  36333. $56 = ($49>>>0)<($55>>>0);
  36334. $or$cond104 = $54 & $56;
  36335. if ($or$cond104) {
  36336. $57 = (($0) + ($53)|0);
  36337. $58 = (($53) + ($49))|0;
  36338. $59 = (($0) + ($58)|0);
  36339. $60 = HEAP8[$59>>0]|0;
  36340. $61 = ($60<<24>>24)==(0);
  36341. $$ = $61 ? $57 : 0;
  36342. $$4 = $$;
  36343. } else {
  36344. $$4 = 0;
  36345. }
  36346. } else {
  36347. $$4 = 0;
  36348. }
  36349. } else {
  36350. $$4 = 0;
  36351. }
  36352. } else {
  36353. $$4 = 0;
  36354. }
  36355. } while(0);
  36356. return ($$4|0);
  36357. }
  36358. function _swapc($0,$1) {
  36359. $0 = $0|0;
  36360. $1 = $1|0;
  36361. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  36362. sp = STACKTOP;
  36363. $2 = ($1|0)==(0);
  36364. $3 = (_llvm_bswap_i32(($0|0))|0);
  36365. $$ = $2 ? $0 : $3;
  36366. return ($$|0);
  36367. }
  36368. function ___fwritex($0,$1,$2) {
  36369. $0 = $0|0;
  36370. $1 = $1|0;
  36371. $2 = $2|0;
  36372. 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;
  36373. 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;
  36374. var label = 0, sp = 0;
  36375. sp = STACKTOP;
  36376. $3 = ((($2)) + 16|0);
  36377. $4 = HEAP32[$3>>2]|0;
  36378. $5 = ($4|0)==(0|0);
  36379. if ($5) {
  36380. $7 = (___towrite($2)|0);
  36381. $8 = ($7|0)==(0);
  36382. if ($8) {
  36383. $$pre = HEAP32[$3>>2]|0;
  36384. $12 = $$pre;
  36385. label = 5;
  36386. } else {
  36387. $$1 = 0;
  36388. }
  36389. } else {
  36390. $6 = $4;
  36391. $12 = $6;
  36392. label = 5;
  36393. }
  36394. L5: do {
  36395. if ((label|0) == 5) {
  36396. $9 = ((($2)) + 20|0);
  36397. $10 = HEAP32[$9>>2]|0;
  36398. $11 = (($12) - ($10))|0;
  36399. $13 = ($11>>>0)<($1>>>0);
  36400. $14 = $10;
  36401. if ($13) {
  36402. $15 = ((($2)) + 36|0);
  36403. $16 = HEAP32[$15>>2]|0;
  36404. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  36405. $$1 = $17;
  36406. break;
  36407. }
  36408. $18 = ((($2)) + 75|0);
  36409. $19 = HEAP8[$18>>0]|0;
  36410. $20 = ($19<<24>>24)>(-1);
  36411. L10: do {
  36412. if ($20) {
  36413. $$038 = $1;
  36414. while(1) {
  36415. $21 = ($$038|0)==(0);
  36416. if ($21) {
  36417. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  36418. break L10;
  36419. }
  36420. $22 = (($$038) + -1)|0;
  36421. $23 = (($0) + ($22)|0);
  36422. $24 = HEAP8[$23>>0]|0;
  36423. $25 = ($24<<24>>24)==(10);
  36424. if ($25) {
  36425. break;
  36426. } else {
  36427. $$038 = $22;
  36428. }
  36429. }
  36430. $26 = ((($2)) + 36|0);
  36431. $27 = HEAP32[$26>>2]|0;
  36432. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  36433. $29 = ($28>>>0)<($$038>>>0);
  36434. if ($29) {
  36435. $$1 = $28;
  36436. break L5;
  36437. }
  36438. $30 = (($0) + ($$038)|0);
  36439. $$042 = (($1) - ($$038))|0;
  36440. $$pre47 = HEAP32[$9>>2]|0;
  36441. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  36442. } else {
  36443. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  36444. }
  36445. } while(0);
  36446. _memcpy(($31|0),($$141|0),($$143|0))|0;
  36447. $32 = HEAP32[$9>>2]|0;
  36448. $33 = (($32) + ($$143)|0);
  36449. HEAP32[$9>>2] = $33;
  36450. $34 = (($$139) + ($$143))|0;
  36451. $$1 = $34;
  36452. }
  36453. } while(0);
  36454. return ($$1|0);
  36455. }
  36456. function ___towrite($0) {
  36457. $0 = $0|0;
  36458. 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;
  36459. var $9 = 0, label = 0, sp = 0;
  36460. sp = STACKTOP;
  36461. $1 = ((($0)) + 74|0);
  36462. $2 = HEAP8[$1>>0]|0;
  36463. $3 = $2 << 24 >> 24;
  36464. $4 = (($3) + 255)|0;
  36465. $5 = $4 | $3;
  36466. $6 = $5&255;
  36467. HEAP8[$1>>0] = $6;
  36468. $7 = HEAP32[$0>>2]|0;
  36469. $8 = $7 & 8;
  36470. $9 = ($8|0)==(0);
  36471. if ($9) {
  36472. $11 = ((($0)) + 8|0);
  36473. HEAP32[$11>>2] = 0;
  36474. $12 = ((($0)) + 4|0);
  36475. HEAP32[$12>>2] = 0;
  36476. $13 = ((($0)) + 44|0);
  36477. $14 = HEAP32[$13>>2]|0;
  36478. $15 = ((($0)) + 28|0);
  36479. HEAP32[$15>>2] = $14;
  36480. $16 = ((($0)) + 20|0);
  36481. HEAP32[$16>>2] = $14;
  36482. $17 = ((($0)) + 48|0);
  36483. $18 = HEAP32[$17>>2]|0;
  36484. $19 = (($14) + ($18)|0);
  36485. $20 = ((($0)) + 16|0);
  36486. HEAP32[$20>>2] = $19;
  36487. $$0 = 0;
  36488. } else {
  36489. $10 = $7 | 32;
  36490. HEAP32[$0>>2] = $10;
  36491. $$0 = -1;
  36492. }
  36493. return ($$0|0);
  36494. }
  36495. function ___floatscan($0,$1,$2) {
  36496. $0 = $0|0;
  36497. $1 = $1|0;
  36498. $2 = $2|0;
  36499. 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;
  36500. 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;
  36501. 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;
  36502. 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;
  36503. 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;
  36504. 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;
  36505. 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;
  36506. 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;
  36507. sp = STACKTOP;
  36508. switch ($1|0) {
  36509. case 0: {
  36510. $$0105$ph = -149;$$0106$ph = 24;
  36511. label = 4;
  36512. break;
  36513. }
  36514. case 1: {
  36515. $$0105$ph = -1074;$$0106$ph = 53;
  36516. label = 4;
  36517. break;
  36518. }
  36519. case 2: {
  36520. $$0105$ph = -1074;$$0106$ph = 53;
  36521. label = 4;
  36522. break;
  36523. }
  36524. default: {
  36525. $$0114 = 0.0;
  36526. }
  36527. }
  36528. L4: do {
  36529. if ((label|0) == 4) {
  36530. $3 = ((($0)) + 4|0);
  36531. $4 = ((($0)) + 100|0);
  36532. while(1) {
  36533. $5 = HEAP32[$3>>2]|0;
  36534. $6 = HEAP32[$4>>2]|0;
  36535. $7 = ($5>>>0)<($6>>>0);
  36536. if ($7) {
  36537. $8 = ((($5)) + 1|0);
  36538. HEAP32[$3>>2] = $8;
  36539. $9 = HEAP8[$5>>0]|0;
  36540. $10 = $9&255;
  36541. $12 = $10;
  36542. } else {
  36543. $11 = (___shgetc($0)|0);
  36544. $12 = $11;
  36545. }
  36546. $13 = (_isspace($12)|0);
  36547. $14 = ($13|0)==(0);
  36548. if ($14) {
  36549. break;
  36550. }
  36551. }
  36552. L13: do {
  36553. switch ($12|0) {
  36554. case 43: case 45: {
  36555. $15 = ($12|0)==(45);
  36556. $16 = $15&1;
  36557. $17 = $16 << 1;
  36558. $18 = (1 - ($17))|0;
  36559. $19 = HEAP32[$3>>2]|0;
  36560. $20 = HEAP32[$4>>2]|0;
  36561. $21 = ($19>>>0)<($20>>>0);
  36562. if ($21) {
  36563. $22 = ((($19)) + 1|0);
  36564. HEAP32[$3>>2] = $22;
  36565. $23 = HEAP8[$19>>0]|0;
  36566. $24 = $23&255;
  36567. $$0 = $24;$$0113 = $18;
  36568. break L13;
  36569. } else {
  36570. $25 = (___shgetc($0)|0);
  36571. $$0 = $25;$$0113 = $18;
  36572. break L13;
  36573. }
  36574. break;
  36575. }
  36576. default: {
  36577. $$0 = $12;$$0113 = 1;
  36578. }
  36579. }
  36580. } while(0);
  36581. $$0107127 = 0;$$1128 = $$0;
  36582. while(1) {
  36583. $26 = $$1128 | 32;
  36584. $27 = (19183 + ($$0107127)|0);
  36585. $28 = HEAP8[$27>>0]|0;
  36586. $29 = $28 << 24 >> 24;
  36587. $30 = ($26|0)==($29|0);
  36588. if (!($30)) {
  36589. $$0107$lcssa = $$0107127;$$1$lcssa = $$1128;
  36590. break;
  36591. }
  36592. $31 = ($$0107127>>>0)<(7);
  36593. do {
  36594. if ($31) {
  36595. $32 = HEAP32[$3>>2]|0;
  36596. $33 = HEAP32[$4>>2]|0;
  36597. $34 = ($32>>>0)<($33>>>0);
  36598. if ($34) {
  36599. $35 = ((($32)) + 1|0);
  36600. HEAP32[$3>>2] = $35;
  36601. $36 = HEAP8[$32>>0]|0;
  36602. $37 = $36&255;
  36603. $$2 = $37;
  36604. break;
  36605. } else {
  36606. $38 = (___shgetc($0)|0);
  36607. $$2 = $38;
  36608. break;
  36609. }
  36610. } else {
  36611. $$2 = $$1128;
  36612. }
  36613. } while(0);
  36614. $39 = (($$0107127) + 1)|0;
  36615. $40 = ($39>>>0)<(8);
  36616. if ($40) {
  36617. $$0107127 = $39;$$1128 = $$2;
  36618. } else {
  36619. $$0107$lcssa = $39;$$1$lcssa = $$2;
  36620. break;
  36621. }
  36622. }
  36623. L29: do {
  36624. switch ($$0107$lcssa|0) {
  36625. case 8: {
  36626. break;
  36627. }
  36628. case 3: {
  36629. label = 23;
  36630. break;
  36631. }
  36632. default: {
  36633. $41 = ($$0107$lcssa>>>0)>(3);
  36634. $42 = ($2|0)!=(0);
  36635. $or$cond5 = $42 & $41;
  36636. if ($or$cond5) {
  36637. $43 = ($$0107$lcssa|0)==(8);
  36638. if ($43) {
  36639. break L29;
  36640. } else {
  36641. label = 23;
  36642. break L29;
  36643. }
  36644. }
  36645. $56 = ($$0107$lcssa|0)==(0);
  36646. L34: do {
  36647. if ($56) {
  36648. $$2109125 = 0;$$3126 = $$1$lcssa;
  36649. while(1) {
  36650. $57 = $$3126 | 32;
  36651. $58 = (19192 + ($$2109125)|0);
  36652. $59 = HEAP8[$58>>0]|0;
  36653. $60 = $59 << 24 >> 24;
  36654. $61 = ($57|0)==($60|0);
  36655. if (!($61)) {
  36656. $$3110 = $$2109125;$$5 = $$3126;
  36657. break L34;
  36658. }
  36659. $62 = ($$2109125>>>0)<(2);
  36660. do {
  36661. if ($62) {
  36662. $63 = HEAP32[$3>>2]|0;
  36663. $64 = HEAP32[$4>>2]|0;
  36664. $65 = ($63>>>0)<($64>>>0);
  36665. if ($65) {
  36666. $66 = ((($63)) + 1|0);
  36667. HEAP32[$3>>2] = $66;
  36668. $67 = HEAP8[$63>>0]|0;
  36669. $68 = $67&255;
  36670. $$4 = $68;
  36671. break;
  36672. } else {
  36673. $69 = (___shgetc($0)|0);
  36674. $$4 = $69;
  36675. break;
  36676. }
  36677. } else {
  36678. $$4 = $$3126;
  36679. }
  36680. } while(0);
  36681. $70 = (($$2109125) + 1)|0;
  36682. $71 = ($70>>>0)<(3);
  36683. if ($71) {
  36684. $$2109125 = $70;$$3126 = $$4;
  36685. } else {
  36686. $$3110 = $70;$$5 = $$4;
  36687. break;
  36688. }
  36689. }
  36690. } else {
  36691. $$3110 = $$0107$lcssa;$$5 = $$1$lcssa;
  36692. }
  36693. } while(0);
  36694. switch ($$3110|0) {
  36695. case 3: {
  36696. $72 = HEAP32[$3>>2]|0;
  36697. $73 = HEAP32[$4>>2]|0;
  36698. $74 = ($72>>>0)<($73>>>0);
  36699. if ($74) {
  36700. $75 = ((($72)) + 1|0);
  36701. HEAP32[$3>>2] = $75;
  36702. $76 = HEAP8[$72>>0]|0;
  36703. $77 = $76&255;
  36704. $80 = $77;
  36705. } else {
  36706. $78 = (___shgetc($0)|0);
  36707. $80 = $78;
  36708. }
  36709. $79 = ($80|0)==(40);
  36710. if ($79) {
  36711. $$4111 = 1;
  36712. } else {
  36713. $81 = HEAP32[$4>>2]|0;
  36714. $82 = ($81|0)==(0|0);
  36715. if ($82) {
  36716. $$0114 = nan;
  36717. break L4;
  36718. }
  36719. $83 = HEAP32[$3>>2]|0;
  36720. $84 = ((($83)) + -1|0);
  36721. HEAP32[$3>>2] = $84;
  36722. $$0114 = nan;
  36723. break L4;
  36724. }
  36725. while(1) {
  36726. $85 = HEAP32[$3>>2]|0;
  36727. $86 = HEAP32[$4>>2]|0;
  36728. $87 = ($85>>>0)<($86>>>0);
  36729. if ($87) {
  36730. $88 = ((($85)) + 1|0);
  36731. HEAP32[$3>>2] = $88;
  36732. $89 = HEAP8[$85>>0]|0;
  36733. $90 = $89&255;
  36734. $93 = $90;
  36735. } else {
  36736. $91 = (___shgetc($0)|0);
  36737. $93 = $91;
  36738. }
  36739. $92 = (($93) + -48)|0;
  36740. $94 = ($92>>>0)<(10);
  36741. $95 = (($93) + -65)|0;
  36742. $96 = ($95>>>0)<(26);
  36743. $or$cond = $94 | $96;
  36744. if (!($or$cond)) {
  36745. $97 = (($93) + -97)|0;
  36746. $98 = ($97>>>0)<(26);
  36747. $99 = ($93|0)==(95);
  36748. $or$cond7 = $99 | $98;
  36749. if (!($or$cond7)) {
  36750. break;
  36751. }
  36752. }
  36753. $111 = (($$4111) + 1)|0;
  36754. $$4111 = $111;
  36755. }
  36756. $100 = ($93|0)==(41);
  36757. if ($100) {
  36758. $$0114 = nan;
  36759. break L4;
  36760. }
  36761. $101 = HEAP32[$4>>2]|0;
  36762. $102 = ($101|0)==(0|0);
  36763. if (!($102)) {
  36764. $103 = HEAP32[$3>>2]|0;
  36765. $104 = ((($103)) + -1|0);
  36766. HEAP32[$3>>2] = $104;
  36767. }
  36768. if (!($42)) {
  36769. $106 = (___errno_location()|0);
  36770. HEAP32[$106>>2] = 22;
  36771. ___shlim($0,0);
  36772. $$0114 = 0.0;
  36773. break L4;
  36774. }
  36775. $105 = ($$4111|0)==(0);
  36776. if ($105) {
  36777. $$0114 = nan;
  36778. break L4;
  36779. } else {
  36780. $$in = $$4111;
  36781. }
  36782. while(1) {
  36783. $107 = (($$in) + -1)|0;
  36784. if (!($102)) {
  36785. $108 = HEAP32[$3>>2]|0;
  36786. $109 = ((($108)) + -1|0);
  36787. HEAP32[$3>>2] = $109;
  36788. }
  36789. $110 = ($107|0)==(0);
  36790. if ($110) {
  36791. $$0114 = nan;
  36792. break L4;
  36793. } else {
  36794. $$in = $107;
  36795. }
  36796. }
  36797. break;
  36798. }
  36799. case 0: {
  36800. $117 = ($$5|0)==(48);
  36801. if ($117) {
  36802. $118 = HEAP32[$3>>2]|0;
  36803. $119 = HEAP32[$4>>2]|0;
  36804. $120 = ($118>>>0)<($119>>>0);
  36805. if ($120) {
  36806. $121 = ((($118)) + 1|0);
  36807. HEAP32[$3>>2] = $121;
  36808. $122 = HEAP8[$118>>0]|0;
  36809. $123 = $122&255;
  36810. $126 = $123;
  36811. } else {
  36812. $124 = (___shgetc($0)|0);
  36813. $126 = $124;
  36814. }
  36815. $125 = $126 | 32;
  36816. $127 = ($125|0)==(120);
  36817. if ($127) {
  36818. $128 = (+_hexfloat($0,$$0106$ph,$$0105$ph,$$0113,$2));
  36819. $$0114 = $128;
  36820. break L4;
  36821. }
  36822. $129 = HEAP32[$4>>2]|0;
  36823. $130 = ($129|0)==(0|0);
  36824. if ($130) {
  36825. $$6 = 48;
  36826. } else {
  36827. $131 = HEAP32[$3>>2]|0;
  36828. $132 = ((($131)) + -1|0);
  36829. HEAP32[$3>>2] = $132;
  36830. $$6 = 48;
  36831. }
  36832. } else {
  36833. $$6 = $$5;
  36834. }
  36835. $133 = (+_decfloat($0,$$6,$$0106$ph,$$0105$ph,$$0113,$2));
  36836. $$0114 = $133;
  36837. break L4;
  36838. break;
  36839. }
  36840. default: {
  36841. $112 = HEAP32[$4>>2]|0;
  36842. $113 = ($112|0)==(0|0);
  36843. if (!($113)) {
  36844. $114 = HEAP32[$3>>2]|0;
  36845. $115 = ((($114)) + -1|0);
  36846. HEAP32[$3>>2] = $115;
  36847. }
  36848. $116 = (___errno_location()|0);
  36849. HEAP32[$116>>2] = 22;
  36850. ___shlim($0,0);
  36851. $$0114 = 0.0;
  36852. break L4;
  36853. }
  36854. }
  36855. }
  36856. }
  36857. } while(0);
  36858. if ((label|0) == 23) {
  36859. $44 = HEAP32[$4>>2]|0;
  36860. $45 = ($44|0)==(0|0);
  36861. if (!($45)) {
  36862. $46 = HEAP32[$3>>2]|0;
  36863. $47 = ((($46)) + -1|0);
  36864. HEAP32[$3>>2] = $47;
  36865. }
  36866. $48 = ($2|0)!=(0);
  36867. $49 = ($$0107$lcssa>>>0)>(3);
  36868. $or$cond9 = $48 & $49;
  36869. if ($or$cond9) {
  36870. $$1108 = $$0107$lcssa;
  36871. while(1) {
  36872. if (!($45)) {
  36873. $50 = HEAP32[$3>>2]|0;
  36874. $51 = ((($50)) + -1|0);
  36875. HEAP32[$3>>2] = $51;
  36876. }
  36877. $52 = (($$1108) + -1)|0;
  36878. $$old8 = ($52>>>0)>(3);
  36879. if ($$old8) {
  36880. $$1108 = $52;
  36881. } else {
  36882. break;
  36883. }
  36884. }
  36885. }
  36886. }
  36887. $53 = (+($$0113|0));
  36888. $54 = $53 * inf;
  36889. $55 = $54;
  36890. $$0114 = $55;
  36891. }
  36892. } while(0);
  36893. return (+$$0114);
  36894. }
  36895. function _hexfloat($0,$1,$2,$3,$4) {
  36896. $0 = $0|0;
  36897. $1 = $1|0;
  36898. $2 = $2|0;
  36899. $3 = $3|0;
  36900. $4 = $4|0;
  36901. 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;
  36902. 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;
  36903. 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;
  36904. 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;
  36905. 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;
  36906. 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;
  36907. 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;
  36908. 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;
  36909. 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;
  36910. 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;
  36911. 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;
  36912. 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;
  36913. 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;
  36914. var $or$cond6 = 0, label = 0, sp = 0;
  36915. sp = STACKTOP;
  36916. $5 = ((($0)) + 4|0);
  36917. $6 = HEAP32[$5>>2]|0;
  36918. $7 = ((($0)) + 100|0);
  36919. $8 = HEAP32[$7>>2]|0;
  36920. $9 = ($6>>>0)<($8>>>0);
  36921. if ($9) {
  36922. $10 = ((($6)) + 1|0);
  36923. HEAP32[$5>>2] = $10;
  36924. $11 = HEAP8[$6>>0]|0;
  36925. $12 = $11&255;
  36926. $$0 = $12;$$0142 = 0;
  36927. } else {
  36928. $13 = (___shgetc($0)|0);
  36929. $$0 = $13;$$0142 = 0;
  36930. }
  36931. L4: while(1) {
  36932. switch ($$0|0) {
  36933. case 46: {
  36934. label = 8;
  36935. break L4;
  36936. break;
  36937. }
  36938. case 48: {
  36939. break;
  36940. }
  36941. default: {
  36942. $$0146 = 0;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$0;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  36943. break L4;
  36944. }
  36945. }
  36946. $14 = HEAP32[$5>>2]|0;
  36947. $15 = HEAP32[$7>>2]|0;
  36948. $16 = ($14>>>0)<($15>>>0);
  36949. if ($16) {
  36950. $17 = ((($14)) + 1|0);
  36951. HEAP32[$5>>2] = $17;
  36952. $18 = HEAP8[$14>>0]|0;
  36953. $19 = $18&255;
  36954. $$0 = $19;$$0142 = 1;
  36955. continue;
  36956. } else {
  36957. $20 = (___shgetc($0)|0);
  36958. $$0 = $20;$$0142 = 1;
  36959. continue;
  36960. }
  36961. }
  36962. if ((label|0) == 8) {
  36963. $21 = HEAP32[$5>>2]|0;
  36964. $22 = HEAP32[$7>>2]|0;
  36965. $23 = ($21>>>0)<($22>>>0);
  36966. if ($23) {
  36967. $24 = ((($21)) + 1|0);
  36968. HEAP32[$5>>2] = $24;
  36969. $25 = HEAP8[$21>>0]|0;
  36970. $26 = $25&255;
  36971. $$1$ph = $26;
  36972. } else {
  36973. $27 = (___shgetc($0)|0);
  36974. $$1$ph = $27;
  36975. }
  36976. $28 = ($$1$ph|0)==(48);
  36977. if ($28) {
  36978. $36 = 0;$37 = 0;
  36979. while(1) {
  36980. $29 = HEAP32[$5>>2]|0;
  36981. $30 = HEAP32[$7>>2]|0;
  36982. $31 = ($29>>>0)<($30>>>0);
  36983. if ($31) {
  36984. $32 = ((($29)) + 1|0);
  36985. HEAP32[$5>>2] = $32;
  36986. $33 = HEAP8[$29>>0]|0;
  36987. $34 = $33&255;
  36988. $41 = $34;
  36989. } else {
  36990. $35 = (___shgetc($0)|0);
  36991. $41 = $35;
  36992. }
  36993. $38 = (_i64Add(($36|0),($37|0),-1,-1)|0);
  36994. $39 = tempRet0;
  36995. $40 = ($41|0)==(48);
  36996. if ($40) {
  36997. $36 = $38;$37 = $39;
  36998. } else {
  36999. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $41;$$2144 = 1;$101 = $39;$53 = 0;$55 = 0;$99 = $38;
  37000. break;
  37001. }
  37002. }
  37003. } else {
  37004. $$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;
  37005. }
  37006. }
  37007. while(1) {
  37008. $42 = (($$2) + -48)|0;
  37009. $43 = ($42>>>0)<(10);
  37010. $44 = ($$2|0)==(46);
  37011. if (!($43)) {
  37012. $45 = $$2 | 32;
  37013. $46 = (($45) + -97)|0;
  37014. $47 = ($46>>>0)<(6);
  37015. $or$cond6 = $44 | $47;
  37016. if (!($or$cond6)) {
  37017. $$2$lcssa = $$2;
  37018. break;
  37019. }
  37020. }
  37021. if ($44) {
  37022. $48 = ($$0146|0)==(0);
  37023. if ($48) {
  37024. $$1147 = 1;$$2150 = $$0148;$$2154 = $$0152;$$2157 = $$0155;$$2161 = $$0159;$$3145 = $$2144;$214 = $55;$215 = $53;$216 = $55;$217 = $53;
  37025. } else {
  37026. $$2$lcssa = 46;
  37027. break;
  37028. }
  37029. } else {
  37030. $49 = ($$2|0)>(57);
  37031. $50 = $$2 | 32;
  37032. $51 = (($50) + -87)|0;
  37033. $$0133 = $49 ? $51 : $42;
  37034. $52 = ($53|0)<(0);
  37035. $54 = ($55>>>0)<(8);
  37036. $56 = ($53|0)==(0);
  37037. $57 = $56 & $54;
  37038. $58 = $52 | $57;
  37039. do {
  37040. if ($58) {
  37041. $59 = $$0159 << 4;
  37042. $60 = (($$0133) + ($59))|0;
  37043. $$1149 = $$0148;$$1153 = $$0152;$$1156 = $$0155;$$1160 = $60;
  37044. } else {
  37045. $61 = ($53|0)<(0);
  37046. $62 = ($55>>>0)<(14);
  37047. $63 = ($53|0)==(0);
  37048. $64 = $63 & $62;
  37049. $65 = $61 | $64;
  37050. if ($65) {
  37051. $66 = (+($$0133|0));
  37052. $67 = $$0152 * 0.0625;
  37053. $68 = $67 * $66;
  37054. $69 = $$0155 + $68;
  37055. $$1149 = $$0148;$$1153 = $67;$$1156 = $69;$$1160 = $$0159;
  37056. break;
  37057. } else {
  37058. $70 = ($$0133|0)==(0);
  37059. $71 = ($$0148|0)!=(0);
  37060. $or$cond = $71 | $70;
  37061. $72 = $$0152 * 0.5;
  37062. $73 = $$0155 + $72;
  37063. $$0155$ = $or$cond ? $$0155 : $73;
  37064. $$0148$ = $or$cond ? $$0148 : 1;
  37065. $$1149 = $$0148$;$$1153 = $$0152;$$1156 = $$0155$;$$1160 = $$0159;
  37066. break;
  37067. }
  37068. }
  37069. } while(0);
  37070. $74 = (_i64Add(($55|0),($53|0),1,0)|0);
  37071. $75 = tempRet0;
  37072. $$1147 = $$0146;$$2150 = $$1149;$$2154 = $$1153;$$2157 = $$1156;$$2161 = $$1160;$$3145 = 1;$214 = $99;$215 = $101;$216 = $74;$217 = $75;
  37073. }
  37074. $76 = HEAP32[$5>>2]|0;
  37075. $77 = HEAP32[$7>>2]|0;
  37076. $78 = ($76>>>0)<($77>>>0);
  37077. if ($78) {
  37078. $79 = ((($76)) + 1|0);
  37079. HEAP32[$5>>2] = $79;
  37080. $80 = HEAP8[$76>>0]|0;
  37081. $81 = $80&255;
  37082. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $81;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  37083. continue;
  37084. } else {
  37085. $82 = (___shgetc($0)|0);
  37086. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $82;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  37087. continue;
  37088. }
  37089. }
  37090. $83 = ($$2144|0)==(0);
  37091. do {
  37092. if ($83) {
  37093. $84 = HEAP32[$7>>2]|0;
  37094. $85 = ($84|0)!=(0|0);
  37095. if ($85) {
  37096. $86 = HEAP32[$5>>2]|0;
  37097. $87 = ((($86)) + -1|0);
  37098. HEAP32[$5>>2] = $87;
  37099. }
  37100. $88 = ($4|0)==(0);
  37101. if ($88) {
  37102. ___shlim($0,0);
  37103. } else {
  37104. if ($85) {
  37105. $89 = HEAP32[$5>>2]|0;
  37106. $90 = ((($89)) + -1|0);
  37107. HEAP32[$5>>2] = $90;
  37108. }
  37109. $91 = ($$0146|0)==(0);
  37110. $92 = ($84|0)==(0|0);
  37111. $or$cond206 = $91 | $92;
  37112. if (!($or$cond206)) {
  37113. $93 = HEAP32[$5>>2]|0;
  37114. $94 = ((($93)) + -1|0);
  37115. HEAP32[$5>>2] = $94;
  37116. }
  37117. }
  37118. $95 = (+($3|0));
  37119. $96 = $95 * 0.0;
  37120. $$0165 = $96;
  37121. } else {
  37122. $97 = ($$0146|0)==(0);
  37123. $98 = $97 ? $55 : $99;
  37124. $100 = $97 ? $53 : $101;
  37125. $102 = ($53|0)<(0);
  37126. $103 = ($55>>>0)<(8);
  37127. $104 = ($53|0)==(0);
  37128. $105 = $104 & $103;
  37129. $106 = $102 | $105;
  37130. if ($106) {
  37131. $$3162183 = $$0159;$108 = $55;$109 = $53;
  37132. while(1) {
  37133. $107 = $$3162183 << 4;
  37134. $110 = (_i64Add(($108|0),($109|0),1,0)|0);
  37135. $111 = tempRet0;
  37136. $112 = ($111|0)<(0);
  37137. $113 = ($110>>>0)<(8);
  37138. $114 = ($111|0)==(0);
  37139. $115 = $114 & $113;
  37140. $116 = $112 | $115;
  37141. if ($116) {
  37142. $$3162183 = $107;$108 = $110;$109 = $111;
  37143. } else {
  37144. $$3162$lcssa = $107;
  37145. break;
  37146. }
  37147. }
  37148. } else {
  37149. $$3162$lcssa = $$0159;
  37150. }
  37151. $117 = $$2$lcssa | 32;
  37152. $118 = ($117|0)==(112);
  37153. if ($118) {
  37154. $119 = (_scanexp($0,$4)|0);
  37155. $120 = tempRet0;
  37156. $121 = ($119|0)==(0);
  37157. $122 = ($120|0)==(-2147483648);
  37158. $123 = $121 & $122;
  37159. if ($123) {
  37160. $124 = ($4|0)==(0);
  37161. if ($124) {
  37162. ___shlim($0,0);
  37163. $$0165 = 0.0;
  37164. break;
  37165. }
  37166. $125 = HEAP32[$7>>2]|0;
  37167. $126 = ($125|0)==(0|0);
  37168. if ($126) {
  37169. $137 = 0;$138 = 0;
  37170. } else {
  37171. $127 = HEAP32[$5>>2]|0;
  37172. $128 = ((($127)) + -1|0);
  37173. HEAP32[$5>>2] = $128;
  37174. $137 = 0;$138 = 0;
  37175. }
  37176. } else {
  37177. $137 = $119;$138 = $120;
  37178. }
  37179. } else {
  37180. $129 = HEAP32[$7>>2]|0;
  37181. $130 = ($129|0)==(0|0);
  37182. if ($130) {
  37183. $137 = 0;$138 = 0;
  37184. } else {
  37185. $131 = HEAP32[$5>>2]|0;
  37186. $132 = ((($131)) + -1|0);
  37187. HEAP32[$5>>2] = $132;
  37188. $137 = 0;$138 = 0;
  37189. }
  37190. }
  37191. $133 = (_bitshift64Shl(($98|0),($100|0),2)|0);
  37192. $134 = tempRet0;
  37193. $135 = (_i64Add(($133|0),($134|0),-32,-1)|0);
  37194. $136 = tempRet0;
  37195. $139 = (_i64Add(($135|0),($136|0),($137|0),($138|0))|0);
  37196. $140 = tempRet0;
  37197. $141 = ($$3162$lcssa|0)==(0);
  37198. if ($141) {
  37199. $142 = (+($3|0));
  37200. $143 = $142 * 0.0;
  37201. $$0165 = $143;
  37202. break;
  37203. }
  37204. $144 = (0 - ($2))|0;
  37205. $145 = ($144|0)<(0);
  37206. $146 = $145 << 31 >> 31;
  37207. $147 = ($140|0)>($146|0);
  37208. $148 = ($139>>>0)>($144>>>0);
  37209. $149 = ($140|0)==($146|0);
  37210. $150 = $149 & $148;
  37211. $151 = $147 | $150;
  37212. if ($151) {
  37213. $152 = (___errno_location()|0);
  37214. HEAP32[$152>>2] = 34;
  37215. $153 = (+($3|0));
  37216. $154 = $153 * 1.7976931348623157E+308;
  37217. $155 = $154 * 1.7976931348623157E+308;
  37218. $$0165 = $155;
  37219. break;
  37220. }
  37221. $156 = (($2) + -106)|0;
  37222. $157 = ($156|0)<(0);
  37223. $158 = $157 << 31 >> 31;
  37224. $159 = ($140|0)<($158|0);
  37225. $160 = ($139>>>0)<($156>>>0);
  37226. $161 = ($140|0)==($158|0);
  37227. $162 = $161 & $160;
  37228. $163 = $159 | $162;
  37229. if ($163) {
  37230. $165 = (___errno_location()|0);
  37231. HEAP32[$165>>2] = 34;
  37232. $166 = (+($3|0));
  37233. $167 = $166 * 2.2250738585072014E-308;
  37234. $168 = $167 * 2.2250738585072014E-308;
  37235. $$0165 = $168;
  37236. break;
  37237. }
  37238. $164 = ($$3162$lcssa|0)>(-1);
  37239. if ($164) {
  37240. $$3158179 = $$0155;$$4163178 = $$3162$lcssa;$173 = $139;$174 = $140;
  37241. while(1) {
  37242. $169 = !($$3158179 >= 0.5);
  37243. $170 = $$4163178 << 1;
  37244. $171 = $$3158179 + -1.0;
  37245. $not$ = $169 ^ 1;
  37246. $172 = $not$&1;
  37247. $$5164 = $170 | $172;
  37248. $$pn = $169 ? $$3158179 : $171;
  37249. $$4 = $$3158179 + $$pn;
  37250. $175 = (_i64Add(($173|0),($174|0),-1,-1)|0);
  37251. $176 = tempRet0;
  37252. $177 = ($$5164|0)>(-1);
  37253. if ($177) {
  37254. $$3158179 = $$4;$$4163178 = $$5164;$173 = $175;$174 = $176;
  37255. } else {
  37256. $$3158$lcssa = $$4;$$4163$lcssa = $$5164;$184 = $175;$185 = $176;
  37257. break;
  37258. }
  37259. }
  37260. } else {
  37261. $$3158$lcssa = $$0155;$$4163$lcssa = $$3162$lcssa;$184 = $139;$185 = $140;
  37262. }
  37263. $178 = ($1|0)<(0);
  37264. $179 = $178 << 31 >> 31;
  37265. $180 = ($2|0)<(0);
  37266. $181 = $180 << 31 >> 31;
  37267. $182 = (_i64Subtract(32,0,($2|0),($181|0))|0);
  37268. $183 = tempRet0;
  37269. $186 = (_i64Add(($182|0),($183|0),($184|0),($185|0))|0);
  37270. $187 = tempRet0;
  37271. $188 = ($179|0)>($187|0);
  37272. $189 = ($1>>>0)>($186>>>0);
  37273. $190 = ($179|0)==($187|0);
  37274. $191 = $190 & $189;
  37275. $192 = $188 | $191;
  37276. if ($192) {
  37277. $193 = ($186|0)>(0);
  37278. if ($193) {
  37279. $$0166 = $186;
  37280. label = 59;
  37281. } else {
  37282. $$0166170 = 0;$197 = 84;
  37283. label = 61;
  37284. }
  37285. } else {
  37286. $$0166 = $1;
  37287. label = 59;
  37288. }
  37289. if ((label|0) == 59) {
  37290. $194 = ($$0166|0)<(53);
  37291. $195 = (84 - ($$0166))|0;
  37292. if ($194) {
  37293. $$0166170 = $$0166;$197 = $195;
  37294. label = 61;
  37295. } else {
  37296. $$pre = (+($3|0));
  37297. $$0151 = 0.0;$$0166169 = $$0166;$$pre$phiZ2D = $$pre;
  37298. }
  37299. }
  37300. if ((label|0) == 61) {
  37301. $196 = (+($3|0));
  37302. $198 = (+_scalbn(1.0,$197));
  37303. $199 = (+_copysignl($198,$196));
  37304. $$0151 = $199;$$0166169 = $$0166170;$$pre$phiZ2D = $196;
  37305. }
  37306. $200 = ($$0166169|0)<(32);
  37307. $201 = $$3158$lcssa != 0.0;
  37308. $or$cond4 = $201 & $200;
  37309. $202 = $$4163$lcssa & 1;
  37310. $203 = ($202|0)==(0);
  37311. $or$cond168 = $203 & $or$cond4;
  37312. $204 = $or$cond168&1;
  37313. $$6 = (($204) + ($$4163$lcssa))|0;
  37314. $$5 = $or$cond168 ? 0.0 : $$3158$lcssa;
  37315. $205 = (+($$6>>>0));
  37316. $206 = $$pre$phiZ2D * $205;
  37317. $207 = $$0151 + $206;
  37318. $208 = $$pre$phiZ2D * $$5;
  37319. $209 = $208 + $207;
  37320. $210 = $209 - $$0151;
  37321. $211 = $210 != 0.0;
  37322. if (!($211)) {
  37323. $212 = (___errno_location()|0);
  37324. HEAP32[$212>>2] = 34;
  37325. }
  37326. $213 = (+_scalbnl($210,$184));
  37327. $$0165 = $213;
  37328. }
  37329. } while(0);
  37330. return (+$$0165);
  37331. }
  37332. function _decfloat($0,$1,$2,$3,$4,$5) {
  37333. $0 = $0|0;
  37334. $1 = $1|0;
  37335. $2 = $2|0;
  37336. $3 = $3|0;
  37337. $4 = $4|0;
  37338. $5 = $5|0;
  37339. 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;
  37340. 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;
  37341. 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;
  37342. 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;
  37343. 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;
  37344. 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;
  37345. 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;
  37346. 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;
  37347. 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;
  37348. 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;
  37349. 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;
  37350. 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;
  37351. 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;
  37352. 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;
  37353. 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;
  37354. 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;
  37355. 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;
  37356. 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;
  37357. 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;
  37358. 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;
  37359. 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;
  37360. 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;
  37361. 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;
  37362. 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;
  37363. 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;
  37364. var label = 0, sp = 0;
  37365. sp = STACKTOP;
  37366. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  37367. $6 = sp;
  37368. $sum = (($3) + ($2))|0;
  37369. $7 = (0 - ($sum))|0;
  37370. $8 = ((($0)) + 4|0);
  37371. $9 = ((($0)) + 100|0);
  37372. $$0329 = $1;$$0396 = 0;
  37373. L1: while(1) {
  37374. switch ($$0329|0) {
  37375. case 46: {
  37376. label = 6;
  37377. break L1;
  37378. break;
  37379. }
  37380. case 48: {
  37381. break;
  37382. }
  37383. default: {
  37384. $$0393 = 0;$$2 = $$0329;$$2398 = $$0396;$366 = 0;$367 = 0;
  37385. break L1;
  37386. }
  37387. }
  37388. $10 = HEAP32[$8>>2]|0;
  37389. $11 = HEAP32[$9>>2]|0;
  37390. $12 = ($10>>>0)<($11>>>0);
  37391. if ($12) {
  37392. $13 = ((($10)) + 1|0);
  37393. HEAP32[$8>>2] = $13;
  37394. $14 = HEAP8[$10>>0]|0;
  37395. $15 = $14&255;
  37396. $$0329 = $15;$$0396 = 1;
  37397. continue;
  37398. } else {
  37399. $16 = (___shgetc($0)|0);
  37400. $$0329 = $16;$$0396 = 1;
  37401. continue;
  37402. }
  37403. }
  37404. if ((label|0) == 6) {
  37405. $17 = HEAP32[$8>>2]|0;
  37406. $18 = HEAP32[$9>>2]|0;
  37407. $19 = ($17>>>0)<($18>>>0);
  37408. if ($19) {
  37409. $20 = ((($17)) + 1|0);
  37410. HEAP32[$8>>2] = $20;
  37411. $21 = HEAP8[$17>>0]|0;
  37412. $22 = $21&255;
  37413. $$1330$ph = $22;
  37414. } else {
  37415. $23 = (___shgetc($0)|0);
  37416. $$1330$ph = $23;
  37417. }
  37418. $24 = ($$1330$ph|0)==(48);
  37419. if ($24) {
  37420. $25 = 0;$26 = 0;
  37421. while(1) {
  37422. $27 = (_i64Add(($25|0),($26|0),-1,-1)|0);
  37423. $28 = tempRet0;
  37424. $29 = HEAP32[$8>>2]|0;
  37425. $30 = HEAP32[$9>>2]|0;
  37426. $31 = ($29>>>0)<($30>>>0);
  37427. if ($31) {
  37428. $32 = ((($29)) + 1|0);
  37429. HEAP32[$8>>2] = $32;
  37430. $33 = HEAP8[$29>>0]|0;
  37431. $34 = $33&255;
  37432. $$1330$be = $34;
  37433. } else {
  37434. $35 = (___shgetc($0)|0);
  37435. $$1330$be = $35;
  37436. }
  37437. $36 = ($$1330$be|0)==(48);
  37438. if ($36) {
  37439. $25 = $27;$26 = $28;
  37440. } else {
  37441. $$0393 = 1;$$2 = $$1330$be;$$2398 = 1;$366 = $27;$367 = $28;
  37442. break;
  37443. }
  37444. }
  37445. } else {
  37446. $$0393 = 1;$$2 = $$1330$ph;$$2398 = $$0396;$366 = 0;$367 = 0;
  37447. }
  37448. }
  37449. HEAP32[$6>>2] = 0;
  37450. $37 = (($$2) + -48)|0;
  37451. $38 = ($37>>>0)<(10);
  37452. $39 = ($$2|0)==(46);
  37453. $40 = $39 | $38;
  37454. L20: do {
  37455. if ($40) {
  37456. $41 = ((($6)) + 496|0);
  37457. $$0341513 = 0;$$0345512 = 0;$$0401509 = 0;$$1394511 = $$0393;$$3399510 = $$2398;$$3514 = $$2;$368 = $39;$369 = $37;$370 = $366;$371 = $367;$44 = 0;$45 = 0;
  37458. L22: while(1) {
  37459. do {
  37460. if ($368) {
  37461. $cond = ($$1394511|0)==(0);
  37462. if ($cond) {
  37463. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = 1;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $44;$373 = $45;$374 = $44;$375 = $45;
  37464. } else {
  37465. break L22;
  37466. }
  37467. } else {
  37468. $43 = ($$0345512|0)<(125);
  37469. $46 = (_i64Add(($44|0),($45|0),1,0)|0);
  37470. $47 = tempRet0;
  37471. $48 = ($$3514|0)!=(48);
  37472. if (!($43)) {
  37473. if (!($48)) {
  37474. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37475. break;
  37476. }
  37477. $57 = HEAP32[$41>>2]|0;
  37478. $58 = $57 | 1;
  37479. HEAP32[$41>>2] = $58;
  37480. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37481. break;
  37482. }
  37483. $$$0401 = $48 ? $46 : $$0401509;
  37484. $49 = ($$0341513|0)==(0);
  37485. $$pre = (($6) + ($$0345512<<2)|0);
  37486. if ($49) {
  37487. $$sink = $369;
  37488. } else {
  37489. $50 = HEAP32[$$pre>>2]|0;
  37490. $51 = ($50*10)|0;
  37491. $52 = (($$3514) + -48)|0;
  37492. $53 = (($52) + ($51))|0;
  37493. $$sink = $53;
  37494. }
  37495. HEAP32[$$pre>>2] = $$sink;
  37496. $54 = (($$0341513) + 1)|0;
  37497. $55 = ($54|0)==(9);
  37498. $56 = $55&1;
  37499. $$$0345 = (($56) + ($$0345512))|0;
  37500. $$413 = $55 ? 0 : $54;
  37501. $$2343 = $$413;$$2347 = $$$0345;$$2395 = $$1394511;$$2403 = $$$0401;$$4400 = 1;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  37502. }
  37503. } while(0);
  37504. $59 = HEAP32[$8>>2]|0;
  37505. $60 = HEAP32[$9>>2]|0;
  37506. $61 = ($59>>>0)<($60>>>0);
  37507. if ($61) {
  37508. $62 = ((($59)) + 1|0);
  37509. HEAP32[$8>>2] = $62;
  37510. $63 = HEAP8[$59>>0]|0;
  37511. $64 = $63&255;
  37512. $$3$be = $64;
  37513. } else {
  37514. $65 = (___shgetc($0)|0);
  37515. $$3$be = $65;
  37516. }
  37517. $66 = (($$3$be) + -48)|0;
  37518. $67 = ($66>>>0)<(10);
  37519. $68 = ($$3$be|0)==(46);
  37520. $69 = $68 | $67;
  37521. if ($69) {
  37522. $$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;
  37523. } else {
  37524. $$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;
  37525. label = 29;
  37526. break L20;
  37527. }
  37528. }
  37529. $42 = ($$3399510|0)!=(0);
  37530. $$0341465 = $$0341513;$$0345469 = $$0345512;$$0401475 = $$0401509;$376 = $44;$377 = $45;$378 = $370;$379 = $371;$380 = $42;
  37531. label = 37;
  37532. } else {
  37533. $$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;
  37534. label = 29;
  37535. }
  37536. } while(0);
  37537. do {
  37538. if ((label|0) == 29) {
  37539. $70 = ($$1394$lcssa|0)==(0);
  37540. $71 = $70 ? $73 : $72;
  37541. $74 = $70 ? $76 : $75;
  37542. $77 = ($$3399$lcssa|0)!=(0);
  37543. $78 = $$3$lcssa | 32;
  37544. $79 = ($78|0)==(101);
  37545. $or$cond415 = $77 & $79;
  37546. if (!($or$cond415)) {
  37547. $94 = ($$3$lcssa|0)>(-1);
  37548. if ($94) {
  37549. $$0341465 = $$0341$lcssa;$$0345469 = $$0345$lcssa;$$0401475 = $$0401$lcssa;$376 = $73;$377 = $76;$378 = $71;$379 = $74;$380 = $77;
  37550. label = 37;
  37551. break;
  37552. } else {
  37553. $$0341464 = $$0341$lcssa;$$0345468 = $$0345$lcssa;$$0401474 = $$0401$lcssa;$381 = $73;$382 = $76;$383 = $77;$384 = $71;$385 = $74;
  37554. label = 39;
  37555. break;
  37556. }
  37557. }
  37558. $80 = (_scanexp($0,$5)|0);
  37559. $81 = tempRet0;
  37560. $82 = ($80|0)==(0);
  37561. $83 = ($81|0)==(-2147483648);
  37562. $84 = $82 & $83;
  37563. if ($84) {
  37564. $85 = ($5|0)==(0);
  37565. if ($85) {
  37566. ___shlim($0,0);
  37567. $$1 = 0.0;
  37568. break;
  37569. }
  37570. $86 = HEAP32[$9>>2]|0;
  37571. $87 = ($86|0)==(0|0);
  37572. if ($87) {
  37573. $90 = 0;$91 = 0;
  37574. } else {
  37575. $88 = HEAP32[$8>>2]|0;
  37576. $89 = ((($88)) + -1|0);
  37577. HEAP32[$8>>2] = $89;
  37578. $90 = 0;$91 = 0;
  37579. }
  37580. } else {
  37581. $90 = $80;$91 = $81;
  37582. }
  37583. $92 = (_i64Add(($90|0),($91|0),($71|0),($74|0))|0);
  37584. $93 = tempRet0;
  37585. $$0341463 = $$0341$lcssa;$$0345467 = $$0345$lcssa;$$0401473 = $$0401$lcssa;$105 = $92;$106 = $73;$108 = $93;$109 = $76;
  37586. label = 41;
  37587. }
  37588. } while(0);
  37589. if ((label|0) == 37) {
  37590. $95 = HEAP32[$9>>2]|0;
  37591. $96 = ($95|0)==(0|0);
  37592. if ($96) {
  37593. $$0341464 = $$0341465;$$0345468 = $$0345469;$$0401474 = $$0401475;$381 = $376;$382 = $377;$383 = $380;$384 = $378;$385 = $379;
  37594. label = 39;
  37595. } else {
  37596. $97 = HEAP32[$8>>2]|0;
  37597. $98 = ((($97)) + -1|0);
  37598. HEAP32[$8>>2] = $98;
  37599. if ($380) {
  37600. $$0341463 = $$0341465;$$0345467 = $$0345469;$$0401473 = $$0401475;$105 = $378;$106 = $376;$108 = $379;$109 = $377;
  37601. label = 41;
  37602. } else {
  37603. label = 40;
  37604. }
  37605. }
  37606. }
  37607. if ((label|0) == 39) {
  37608. if ($383) {
  37609. $$0341463 = $$0341464;$$0345467 = $$0345468;$$0401473 = $$0401474;$105 = $384;$106 = $381;$108 = $385;$109 = $382;
  37610. label = 41;
  37611. } else {
  37612. label = 40;
  37613. }
  37614. }
  37615. do {
  37616. if ((label|0) == 40) {
  37617. $99 = (___errno_location()|0);
  37618. HEAP32[$99>>2] = 22;
  37619. ___shlim($0,0);
  37620. $$1 = 0.0;
  37621. }
  37622. else if ((label|0) == 41) {
  37623. $100 = HEAP32[$6>>2]|0;
  37624. $101 = ($100|0)==(0);
  37625. if ($101) {
  37626. $102 = (+($4|0));
  37627. $103 = $102 * 0.0;
  37628. $$1 = $103;
  37629. break;
  37630. }
  37631. $104 = ($105|0)==($106|0);
  37632. $107 = ($108|0)==($109|0);
  37633. $110 = $104 & $107;
  37634. $111 = ($109|0)<(0);
  37635. $112 = ($106>>>0)<(10);
  37636. $113 = ($109|0)==(0);
  37637. $114 = $113 & $112;
  37638. $115 = $111 | $114;
  37639. $or$cond = $115 & $110;
  37640. if ($or$cond) {
  37641. $116 = ($2|0)>(30);
  37642. $117 = $100 >>> $2;
  37643. $118 = ($117|0)==(0);
  37644. $or$cond417 = $116 | $118;
  37645. if ($or$cond417) {
  37646. $119 = (+($4|0));
  37647. $120 = (+($100>>>0));
  37648. $121 = $119 * $120;
  37649. $$1 = $121;
  37650. break;
  37651. }
  37652. }
  37653. $122 = (($3|0) / -2)&-1;
  37654. $123 = ($122|0)<(0);
  37655. $124 = $123 << 31 >> 31;
  37656. $125 = ($108|0)>($124|0);
  37657. $126 = ($105>>>0)>($122>>>0);
  37658. $127 = ($108|0)==($124|0);
  37659. $128 = $127 & $126;
  37660. $129 = $125 | $128;
  37661. if ($129) {
  37662. $130 = (___errno_location()|0);
  37663. HEAP32[$130>>2] = 34;
  37664. $131 = (+($4|0));
  37665. $132 = $131 * 1.7976931348623157E+308;
  37666. $133 = $132 * 1.7976931348623157E+308;
  37667. $$1 = $133;
  37668. break;
  37669. }
  37670. $134 = (($3) + -106)|0;
  37671. $135 = ($134|0)<(0);
  37672. $136 = $135 << 31 >> 31;
  37673. $137 = ($108|0)<($136|0);
  37674. $138 = ($105>>>0)<($134>>>0);
  37675. $139 = ($108|0)==($136|0);
  37676. $140 = $139 & $138;
  37677. $141 = $137 | $140;
  37678. if ($141) {
  37679. $142 = (___errno_location()|0);
  37680. HEAP32[$142>>2] = 34;
  37681. $143 = (+($4|0));
  37682. $144 = $143 * 2.2250738585072014E-308;
  37683. $145 = $144 * 2.2250738585072014E-308;
  37684. $$1 = $145;
  37685. break;
  37686. }
  37687. $146 = ($$0341463|0)==(0);
  37688. if ($146) {
  37689. $$3348 = $$0345467;
  37690. } else {
  37691. $147 = ($$0341463|0)<(9);
  37692. if ($147) {
  37693. $148 = (($6) + ($$0345467<<2)|0);
  37694. $$promoted = HEAP32[$148>>2]|0;
  37695. $$3344503 = $$0341463;$150 = $$promoted;
  37696. while(1) {
  37697. $149 = ($150*10)|0;
  37698. $151 = (($$3344503) + 1)|0;
  37699. $exitcond551 = ($151|0)==(9);
  37700. if ($exitcond551) {
  37701. break;
  37702. } else {
  37703. $$3344503 = $151;$150 = $149;
  37704. }
  37705. }
  37706. HEAP32[$148>>2] = $149;
  37707. }
  37708. $152 = (($$0345467) + 1)|0;
  37709. $$3348 = $152;
  37710. }
  37711. $153 = ($$0401473|0)<(9);
  37712. if ($153) {
  37713. $154 = ($$0401473|0)<=($105|0);
  37714. $155 = ($105|0)<(18);
  37715. $or$cond5 = $154 & $155;
  37716. if ($or$cond5) {
  37717. $156 = ($105|0)==(9);
  37718. $157 = HEAP32[$6>>2]|0;
  37719. if ($156) {
  37720. $158 = (+($4|0));
  37721. $159 = (+($157>>>0));
  37722. $160 = $158 * $159;
  37723. $$1 = $160;
  37724. break;
  37725. }
  37726. $161 = ($105|0)<(9);
  37727. if ($161) {
  37728. $162 = (+($4|0));
  37729. $163 = (+($157>>>0));
  37730. $164 = $162 * $163;
  37731. $165 = (8 - ($105))|0;
  37732. $166 = (4200 + ($165<<2)|0);
  37733. $167 = HEAP32[$166>>2]|0;
  37734. $168 = (+($167|0));
  37735. $169 = $164 / $168;
  37736. $$1 = $169;
  37737. break;
  37738. }
  37739. $$neg442 = Math_imul($105, -3)|0;
  37740. $$neg443 = (($2) + 27)|0;
  37741. $170 = (($$neg443) + ($$neg442))|0;
  37742. $171 = ($170|0)>(30);
  37743. $172 = $157 >>> $170;
  37744. $173 = ($172|0)==(0);
  37745. $or$cond419 = $171 | $173;
  37746. if ($or$cond419) {
  37747. $174 = (($105) + -10)|0;
  37748. $175 = (4200 + ($174<<2)|0);
  37749. $176 = (+($4|0));
  37750. $177 = (+($157>>>0));
  37751. $178 = $176 * $177;
  37752. $179 = HEAP32[$175>>2]|0;
  37753. $180 = (+($179|0));
  37754. $181 = $178 * $180;
  37755. $$1 = $181;
  37756. break;
  37757. }
  37758. }
  37759. }
  37760. $182 = (($105|0) % 9)&-1;
  37761. $183 = ($182|0)==(0);
  37762. if ($183) {
  37763. $$0380$ph = 0;$$1373$ph448 = $$3348;$$2352$ph449 = 0;$$2387$ph447 = $105;
  37764. } else {
  37765. $184 = ($105|0)>(-1);
  37766. $185 = (($182) + 9)|0;
  37767. $186 = $184 ? $182 : $185;
  37768. $187 = (8 - ($186))|0;
  37769. $188 = (4200 + ($187<<2)|0);
  37770. $189 = HEAP32[$188>>2]|0;
  37771. $190 = ($$3348|0)==(0);
  37772. if ($190) {
  37773. $$0350$lcssa554 = 0;$$0372 = 0;$$0385$lcssa553 = $105;
  37774. } else {
  37775. $191 = (1000000000 / ($189|0))&-1;
  37776. $$0340496 = 0;$$0350494 = 0;$$0385493 = $105;$$4349495 = 0;
  37777. while(1) {
  37778. $192 = (($6) + ($$4349495<<2)|0);
  37779. $193 = HEAP32[$192>>2]|0;
  37780. $194 = (($193>>>0) % ($189>>>0))&-1;
  37781. $195 = (($193>>>0) / ($189>>>0))&-1;
  37782. $196 = (($195) + ($$0340496))|0;
  37783. HEAP32[$192>>2] = $196;
  37784. $197 = Math_imul($191, $194)|0;
  37785. $198 = ($$4349495|0)==($$0350494|0);
  37786. $199 = ($196|0)==(0);
  37787. $or$cond420 = $198 & $199;
  37788. $200 = (($$0350494) + 1)|0;
  37789. $201 = $200 & 127;
  37790. $202 = (($$0385493) + -9)|0;
  37791. $$$0385 = $or$cond420 ? $202 : $$0385493;
  37792. $$$0350 = $or$cond420 ? $201 : $$0350494;
  37793. $203 = (($$4349495) + 1)|0;
  37794. $204 = ($203|0)==($$3348|0);
  37795. if ($204) {
  37796. break;
  37797. } else {
  37798. $$0340496 = $197;$$0350494 = $$$0350;$$0385493 = $$$0385;$$4349495 = $203;
  37799. }
  37800. }
  37801. $205 = ($197|0)==(0);
  37802. if ($205) {
  37803. $$0350$lcssa554 = $$$0350;$$0372 = $$3348;$$0385$lcssa553 = $$$0385;
  37804. } else {
  37805. $206 = (($6) + ($$3348<<2)|0);
  37806. $207 = (($$3348) + 1)|0;
  37807. HEAP32[$206>>2] = $197;
  37808. $$0350$lcssa554 = $$$0350;$$0372 = $207;$$0385$lcssa553 = $$$0385;
  37809. }
  37810. }
  37811. $208 = (9 - ($186))|0;
  37812. $209 = (($208) + ($$0385$lcssa553))|0;
  37813. $$0380$ph = 0;$$1373$ph448 = $$0372;$$2352$ph449 = $$0350$lcssa554;$$2387$ph447 = $209;
  37814. }
  37815. L101: while(1) {
  37816. $210 = ($$2387$ph447|0)<(18);
  37817. $211 = ($$2387$ph447|0)==(18);
  37818. $212 = (($6) + ($$2352$ph449<<2)|0);
  37819. $$0380 = $$0380$ph;$$1373 = $$1373$ph448;
  37820. while(1) {
  37821. if (!($210)) {
  37822. if (!($211)) {
  37823. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = $$2387$ph447;$$6378$ph = $$1373;
  37824. break L101;
  37825. }
  37826. $213 = HEAP32[$212>>2]|0;
  37827. $214 = ($213>>>0)<(9007199);
  37828. if (!($214)) {
  37829. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = 18;$$6378$ph = $$1373;
  37830. break L101;
  37831. }
  37832. }
  37833. $215 = (($$1373) + 127)|0;
  37834. $$0334 = 0;$$2374 = $$1373;$$5$in = $215;
  37835. while(1) {
  37836. $$5 = $$5$in & 127;
  37837. $216 = (($6) + ($$5<<2)|0);
  37838. $217 = HEAP32[$216>>2]|0;
  37839. $218 = (_bitshift64Shl(($217|0),0,29)|0);
  37840. $219 = tempRet0;
  37841. $220 = (_i64Add(($218|0),($219|0),($$0334|0),0)|0);
  37842. $221 = tempRet0;
  37843. $222 = ($221>>>0)>(0);
  37844. $223 = ($220>>>0)>(1000000000);
  37845. $224 = ($221|0)==(0);
  37846. $225 = $224 & $223;
  37847. $226 = $222 | $225;
  37848. if ($226) {
  37849. $227 = (___udivdi3(($220|0),($221|0),1000000000,0)|0);
  37850. $228 = tempRet0;
  37851. $229 = (___uremdi3(($220|0),($221|0),1000000000,0)|0);
  37852. $230 = tempRet0;
  37853. $$1335 = $227;$$sink421$off0 = $229;
  37854. } else {
  37855. $$1335 = 0;$$sink421$off0 = $220;
  37856. }
  37857. HEAP32[$216>>2] = $$sink421$off0;
  37858. $231 = (($$2374) + 127)|0;
  37859. $232 = $231 & 127;
  37860. $233 = ($$5|0)!=($232|0);
  37861. $234 = ($$5|0)==($$2352$ph449|0);
  37862. $or$cond422 = $233 | $234;
  37863. $or$cond422$not = $or$cond422 ^ 1;
  37864. $235 = ($$sink421$off0|0)==(0);
  37865. $or$cond423 = $235 & $or$cond422$not;
  37866. $$3375 = $or$cond423 ? $$5 : $$2374;
  37867. $236 = (($$5) + -1)|0;
  37868. if ($234) {
  37869. break;
  37870. } else {
  37871. $$0334 = $$1335;$$2374 = $$3375;$$5$in = $236;
  37872. }
  37873. }
  37874. $237 = (($$0380) + -29)|0;
  37875. $238 = ($$1335|0)==(0);
  37876. if ($238) {
  37877. $$0380 = $237;$$1373 = $$3375;
  37878. } else {
  37879. break;
  37880. }
  37881. }
  37882. $239 = (($$2387$ph447) + 9)|0;
  37883. $240 = (($$2352$ph449) + 127)|0;
  37884. $241 = $240 & 127;
  37885. $242 = ($241|0)==($$3375|0);
  37886. $243 = (($$3375) + 127)|0;
  37887. $244 = $243 & 127;
  37888. $245 = (($$3375) + 126)|0;
  37889. $246 = $245 & 127;
  37890. $247 = (($6) + ($246<<2)|0);
  37891. if ($242) {
  37892. $248 = (($6) + ($244<<2)|0);
  37893. $249 = HEAP32[$248>>2]|0;
  37894. $250 = HEAP32[$247>>2]|0;
  37895. $251 = $250 | $249;
  37896. HEAP32[$247>>2] = $251;
  37897. $$4376 = $244;
  37898. } else {
  37899. $$4376 = $$3375;
  37900. }
  37901. $252 = (($6) + ($241<<2)|0);
  37902. HEAP32[$252>>2] = $$1335;
  37903. $$0380$ph = $237;$$1373$ph448 = $$4376;$$2352$ph449 = $241;$$2387$ph447 = $239;
  37904. }
  37905. L119: while(1) {
  37906. $289 = (($$6378$ph) + 1)|0;
  37907. $287 = $289 & 127;
  37908. $290 = (($$6378$ph) + 127)|0;
  37909. $291 = $290 & 127;
  37910. $292 = (($6) + ($291<<2)|0);
  37911. $$1381$ph558 = $$1381$ph;$$4354$ph559 = $$4354$ph;$$4389$ph = $$4389$ph445;
  37912. while(1) {
  37913. $265 = ($$4389$ph|0)==(18);
  37914. $293 = ($$4389$ph|0)>(27);
  37915. $$425 = $293 ? 9 : 1;
  37916. $$1381 = $$1381$ph558;$$4354 = $$4354$ph559;
  37917. while(1) {
  37918. $$0336486 = 0;
  37919. while(1) {
  37920. $253 = (($$0336486) + ($$4354))|0;
  37921. $254 = $253 & 127;
  37922. $255 = ($254|0)==($$6378$ph|0);
  37923. if ($255) {
  37924. $$1337 = 2;
  37925. label = 88;
  37926. break;
  37927. }
  37928. $256 = (($6) + ($254<<2)|0);
  37929. $257 = HEAP32[$256>>2]|0;
  37930. $258 = (4232 + ($$0336486<<2)|0);
  37931. $259 = HEAP32[$258>>2]|0;
  37932. $260 = ($257>>>0)<($259>>>0);
  37933. if ($260) {
  37934. $$1337 = 2;
  37935. label = 88;
  37936. break;
  37937. }
  37938. $261 = ($257>>>0)>($259>>>0);
  37939. if ($261) {
  37940. break;
  37941. }
  37942. $262 = (($$0336486) + 1)|0;
  37943. $263 = ($262|0)<(2);
  37944. if ($263) {
  37945. $$0336486 = $262;
  37946. } else {
  37947. $$1337 = $262;
  37948. label = 88;
  37949. break;
  37950. }
  37951. }
  37952. if ((label|0) == 88) {
  37953. label = 0;
  37954. $264 = ($$1337|0)==(2);
  37955. $or$cond11 = $265 & $264;
  37956. if ($or$cond11) {
  37957. $$0365484 = 0.0;$$4485 = 0;$$9483 = $$6378$ph;
  37958. break L119;
  37959. }
  37960. }
  37961. $266 = (($$425) + ($$1381))|0;
  37962. $267 = ($$4354|0)==($$6378$ph|0);
  37963. if ($267) {
  37964. $$1381 = $266;$$4354 = $$6378$ph;
  37965. } else {
  37966. break;
  37967. }
  37968. }
  37969. $268 = 1 << $$425;
  37970. $269 = (($268) + -1)|0;
  37971. $270 = 1000000000 >>> $$425;
  37972. $$0332490 = 0;$$5355488 = $$4354;$$5390487 = $$4389$ph;$$6489 = $$4354;
  37973. while(1) {
  37974. $271 = (($6) + ($$6489<<2)|0);
  37975. $272 = HEAP32[$271>>2]|0;
  37976. $273 = $272 & $269;
  37977. $274 = $272 >>> $$425;
  37978. $275 = (($274) + ($$0332490))|0;
  37979. HEAP32[$271>>2] = $275;
  37980. $276 = Math_imul($273, $270)|0;
  37981. $277 = ($$6489|0)==($$5355488|0);
  37982. $278 = ($275|0)==(0);
  37983. $or$cond426 = $277 & $278;
  37984. $279 = (($$5355488) + 1)|0;
  37985. $280 = $279 & 127;
  37986. $281 = (($$5390487) + -9)|0;
  37987. $$$5390 = $or$cond426 ? $281 : $$5390487;
  37988. $$$5355 = $or$cond426 ? $280 : $$5355488;
  37989. $282 = (($$6489) + 1)|0;
  37990. $283 = $282 & 127;
  37991. $284 = ($283|0)==($$6378$ph|0);
  37992. if ($284) {
  37993. break;
  37994. } else {
  37995. $$0332490 = $276;$$5355488 = $$$5355;$$5390487 = $$$5390;$$6489 = $283;
  37996. }
  37997. }
  37998. $285 = ($276|0)==(0);
  37999. if ($285) {
  38000. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  38001. continue;
  38002. }
  38003. $286 = ($287|0)==($$$5355|0);
  38004. if (!($286)) {
  38005. break;
  38006. }
  38007. $294 = HEAP32[$292>>2]|0;
  38008. $295 = $294 | 1;
  38009. HEAP32[$292>>2] = $295;
  38010. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  38011. }
  38012. $288 = (($6) + ($$6378$ph<<2)|0);
  38013. HEAP32[$288>>2] = $276;
  38014. $$1381$ph = $266;$$4354$ph = $$$5355;$$4389$ph445 = $$$5390;$$6378$ph = $287;
  38015. }
  38016. while(1) {
  38017. $296 = (($$4485) + ($$4354))|0;
  38018. $297 = $296 & 127;
  38019. $298 = ($297|0)==($$9483|0);
  38020. $299 = (($$9483) + 1)|0;
  38021. $300 = $299 & 127;
  38022. if ($298) {
  38023. $301 = (($300) + -1)|0;
  38024. $302 = (($6) + ($301<<2)|0);
  38025. HEAP32[$302>>2] = 0;
  38026. $$10 = $300;
  38027. } else {
  38028. $$10 = $$9483;
  38029. }
  38030. $303 = $$0365484 * 1.0E+9;
  38031. $304 = (($6) + ($297<<2)|0);
  38032. $305 = HEAP32[$304>>2]|0;
  38033. $306 = (+($305>>>0));
  38034. $307 = $303 + $306;
  38035. $308 = (($$4485) + 1)|0;
  38036. $exitcond = ($308|0)==(2);
  38037. if ($exitcond) {
  38038. break;
  38039. } else {
  38040. $$0365484 = $307;$$4485 = $308;$$9483 = $$10;
  38041. }
  38042. }
  38043. $309 = (+($4|0));
  38044. $310 = $309 * $307;
  38045. $311 = (($$1381) + 53)|0;
  38046. $312 = (($311) - ($3))|0;
  38047. $313 = ($312|0)<($2|0);
  38048. $314 = ($312|0)>(0);
  38049. $$ = $314 ? $312 : 0;
  38050. $$0333 = $313 ? $$ : $2;
  38051. $315 = ($$0333|0)<(53);
  38052. if ($315) {
  38053. $316 = (105 - ($$0333))|0;
  38054. $317 = (+_scalbn(1.0,$316));
  38055. $318 = (+_copysignl($317,$310));
  38056. $319 = (53 - ($$0333))|0;
  38057. $320 = (+_scalbn(1.0,$319));
  38058. $321 = (+_fmodl($310,$320));
  38059. $322 = $310 - $321;
  38060. $323 = $318 + $322;
  38061. $$0360 = $318;$$0361 = $321;$$1366 = $323;
  38062. } else {
  38063. $$0360 = 0.0;$$0361 = 0.0;$$1366 = $310;
  38064. }
  38065. $324 = (($$4354) + 2)|0;
  38066. $325 = $324 & 127;
  38067. $326 = ($325|0)==($$10|0);
  38068. if ($326) {
  38069. $$3364 = $$0361;
  38070. } else {
  38071. $327 = (($6) + ($325<<2)|0);
  38072. $328 = HEAP32[$327>>2]|0;
  38073. $329 = ($328>>>0)<(500000000);
  38074. do {
  38075. if ($329) {
  38076. $330 = ($328|0)==(0);
  38077. if ($330) {
  38078. $331 = (($$4354) + 3)|0;
  38079. $332 = $331 & 127;
  38080. $333 = ($332|0)==($$10|0);
  38081. if ($333) {
  38082. $$1362 = $$0361;
  38083. break;
  38084. }
  38085. }
  38086. $334 = $309 * 0.25;
  38087. $335 = $334 + $$0361;
  38088. $$1362 = $335;
  38089. } else {
  38090. $336 = ($328|0)==(500000000);
  38091. if (!($336)) {
  38092. $337 = $309 * 0.75;
  38093. $338 = $337 + $$0361;
  38094. $$1362 = $338;
  38095. break;
  38096. }
  38097. $339 = (($$4354) + 3)|0;
  38098. $340 = $339 & 127;
  38099. $341 = ($340|0)==($$10|0);
  38100. if ($341) {
  38101. $342 = $309 * 0.5;
  38102. $343 = $342 + $$0361;
  38103. $$1362 = $343;
  38104. break;
  38105. } else {
  38106. $344 = $309 * 0.75;
  38107. $345 = $344 + $$0361;
  38108. $$1362 = $345;
  38109. break;
  38110. }
  38111. }
  38112. } while(0);
  38113. $346 = (53 - ($$0333))|0;
  38114. $347 = ($346|0)>(1);
  38115. if ($347) {
  38116. $348 = (+_fmodl($$1362,1.0));
  38117. $349 = $348 != 0.0;
  38118. if ($349) {
  38119. $$3364 = $$1362;
  38120. } else {
  38121. $350 = $$1362 + 1.0;
  38122. $$3364 = $350;
  38123. }
  38124. } else {
  38125. $$3364 = $$1362;
  38126. }
  38127. }
  38128. $351 = $$1366 + $$3364;
  38129. $352 = $351 - $$0360;
  38130. $353 = $311 & 2147483647;
  38131. $354 = (-2 - ($sum))|0;
  38132. $355 = ($353|0)>($354|0);
  38133. do {
  38134. if ($355) {
  38135. $356 = (+Math_abs((+$352)));
  38136. $357 = !($356 >= 9007199254740992.0);
  38137. $358 = $352 * 0.5;
  38138. $not$ = $357 ^ 1;
  38139. $359 = $not$&1;
  38140. $$3383 = (($359) + ($$1381))|0;
  38141. $$2367 = $357 ? $352 : $358;
  38142. $360 = (($$3383) + 50)|0;
  38143. $361 = ($360|0)>($7|0);
  38144. if (!($361)) {
  38145. $362 = ($$0333|0)!=($312|0);
  38146. $narrow = $362 | $357;
  38147. $$2371$v = $313 & $narrow;
  38148. $363 = $$3364 != 0.0;
  38149. $or$cond14 = $363 & $$2371$v;
  38150. if (!($or$cond14)) {
  38151. $$3368 = $$2367;$$4384 = $$3383;
  38152. break;
  38153. }
  38154. }
  38155. $364 = (___errno_location()|0);
  38156. HEAP32[$364>>2] = 34;
  38157. $$3368 = $$2367;$$4384 = $$3383;
  38158. } else {
  38159. $$3368 = $352;$$4384 = $$1381;
  38160. }
  38161. } while(0);
  38162. $365 = (+_scalbnl($$3368,$$4384));
  38163. $$1 = $365;
  38164. }
  38165. } while(0);
  38166. STACKTOP = sp;return (+$$1);
  38167. }
  38168. function _scanexp($0,$1) {
  38169. $0 = $0|0;
  38170. $1 = $1|0;
  38171. 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;
  38172. 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;
  38173. 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;
  38174. 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;
  38175. 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;
  38176. 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;
  38177. sp = STACKTOP;
  38178. $2 = ((($0)) + 4|0);
  38179. $3 = HEAP32[$2>>2]|0;
  38180. $4 = ((($0)) + 100|0);
  38181. $5 = HEAP32[$4>>2]|0;
  38182. $6 = ($3>>>0)<($5>>>0);
  38183. if ($6) {
  38184. $7 = ((($3)) + 1|0);
  38185. HEAP32[$2>>2] = $7;
  38186. $8 = HEAP8[$3>>0]|0;
  38187. $9 = $8&255;
  38188. $11 = $9;
  38189. } else {
  38190. $10 = (___shgetc($0)|0);
  38191. $11 = $10;
  38192. }
  38193. switch ($11|0) {
  38194. case 43: case 45: {
  38195. $12 = ($11|0)==(45);
  38196. $13 = $12&1;
  38197. $14 = HEAP32[$2>>2]|0;
  38198. $15 = HEAP32[$4>>2]|0;
  38199. $16 = ($14>>>0)<($15>>>0);
  38200. if ($16) {
  38201. $17 = ((($14)) + 1|0);
  38202. HEAP32[$2>>2] = $17;
  38203. $18 = HEAP8[$14>>0]|0;
  38204. $19 = $18&255;
  38205. $22 = $19;
  38206. } else {
  38207. $20 = (___shgetc($0)|0);
  38208. $22 = $20;
  38209. }
  38210. $21 = (($22) + -48)|0;
  38211. $23 = ($21>>>0)>(9);
  38212. $24 = ($1|0)!=(0);
  38213. $or$cond3 = $24 & $23;
  38214. if ($or$cond3) {
  38215. $25 = HEAP32[$4>>2]|0;
  38216. $26 = ($25|0)==(0|0);
  38217. if ($26) {
  38218. $$0 = $13;$$049 = $22;
  38219. } else {
  38220. $27 = HEAP32[$2>>2]|0;
  38221. $28 = ((($27)) + -1|0);
  38222. HEAP32[$2>>2] = $28;
  38223. $$0 = $13;$$049 = $22;
  38224. }
  38225. } else {
  38226. $$0 = $13;$$049 = $22;
  38227. }
  38228. break;
  38229. }
  38230. default: {
  38231. $$0 = 0;$$049 = $11;
  38232. }
  38233. }
  38234. $29 = (($$049) + -48)|0;
  38235. $30 = ($29>>>0)>(9);
  38236. if ($30) {
  38237. $31 = HEAP32[$4>>2]|0;
  38238. $32 = ($31|0)==(0|0);
  38239. if ($32) {
  38240. $100 = -2147483648;$101 = 0;
  38241. } else {
  38242. $33 = HEAP32[$2>>2]|0;
  38243. $34 = ((($33)) + -1|0);
  38244. HEAP32[$2>>2] = $34;
  38245. $100 = -2147483648;$101 = 0;
  38246. }
  38247. } else {
  38248. $$04861 = 0;$$160 = $$049;
  38249. while(1) {
  38250. $35 = ($$04861*10)|0;
  38251. $36 = (($$160) + -48)|0;
  38252. $37 = (($36) + ($35))|0;
  38253. $38 = HEAP32[$2>>2]|0;
  38254. $39 = HEAP32[$4>>2]|0;
  38255. $40 = ($38>>>0)<($39>>>0);
  38256. if ($40) {
  38257. $41 = ((($38)) + 1|0);
  38258. HEAP32[$2>>2] = $41;
  38259. $42 = HEAP8[$38>>0]|0;
  38260. $43 = $42&255;
  38261. $$1$be = $43;
  38262. } else {
  38263. $44 = (___shgetc($0)|0);
  38264. $$1$be = $44;
  38265. }
  38266. $45 = (($$1$be) + -48)|0;
  38267. $46 = ($45>>>0)<(10);
  38268. $47 = ($37|0)<(214748364);
  38269. $48 = $46 & $47;
  38270. if ($48) {
  38271. $$04861 = $37;$$160 = $$1$be;
  38272. } else {
  38273. break;
  38274. }
  38275. }
  38276. $49 = ($37|0)<(0);
  38277. $50 = $49 << 31 >> 31;
  38278. $51 = (($$1$be) + -48)|0;
  38279. $52 = ($51>>>0)<(10);
  38280. if ($52) {
  38281. $$254 = $$1$be;$56 = $37;$57 = $50;
  38282. while(1) {
  38283. $58 = (___muldi3(($56|0),($57|0),10,0)|0);
  38284. $59 = tempRet0;
  38285. $60 = ($$254|0)<(0);
  38286. $61 = $60 << 31 >> 31;
  38287. $62 = (_i64Add(($$254|0),($61|0),-48,-1)|0);
  38288. $63 = tempRet0;
  38289. $64 = (_i64Add(($62|0),($63|0),($58|0),($59|0))|0);
  38290. $65 = tempRet0;
  38291. $66 = HEAP32[$2>>2]|0;
  38292. $67 = HEAP32[$4>>2]|0;
  38293. $68 = ($66>>>0)<($67>>>0);
  38294. if ($68) {
  38295. $69 = ((($66)) + 1|0);
  38296. HEAP32[$2>>2] = $69;
  38297. $70 = HEAP8[$66>>0]|0;
  38298. $71 = $70&255;
  38299. $$2$be = $71;
  38300. } else {
  38301. $72 = (___shgetc($0)|0);
  38302. $$2$be = $72;
  38303. }
  38304. $73 = (($$2$be) + -48)|0;
  38305. $74 = ($73>>>0)<(10);
  38306. $75 = ($65|0)<(21474836);
  38307. $76 = ($64>>>0)<(2061584302);
  38308. $77 = ($65|0)==(21474836);
  38309. $78 = $77 & $76;
  38310. $79 = $75 | $78;
  38311. $80 = $74 & $79;
  38312. if ($80) {
  38313. $$254 = $$2$be;$56 = $64;$57 = $65;
  38314. } else {
  38315. $$2$lcssa = $$2$be;$94 = $64;$95 = $65;
  38316. break;
  38317. }
  38318. }
  38319. } else {
  38320. $$2$lcssa = $$1$be;$94 = $37;$95 = $50;
  38321. }
  38322. $53 = (($$2$lcssa) + -48)|0;
  38323. $54 = ($53>>>0)<(10);
  38324. $55 = HEAP32[$4>>2]|0;
  38325. if ($54) {
  38326. $83 = $55;
  38327. while(1) {
  38328. $81 = HEAP32[$2>>2]|0;
  38329. $82 = ($81>>>0)<($83>>>0);
  38330. if ($82) {
  38331. $84 = ((($81)) + 1|0);
  38332. HEAP32[$2>>2] = $84;
  38333. $85 = HEAP8[$81>>0]|0;
  38334. $86 = $85&255;
  38335. $$3$be = $86;$102 = $83;
  38336. } else {
  38337. $87 = (___shgetc($0)|0);
  38338. $$pre = HEAP32[$4>>2]|0;
  38339. $$3$be = $87;$102 = $$pre;
  38340. }
  38341. $88 = (($$3$be) + -48)|0;
  38342. $89 = ($88>>>0)<(10);
  38343. if ($89) {
  38344. $83 = $102;
  38345. } else {
  38346. $$lcssa = $102;
  38347. break;
  38348. }
  38349. }
  38350. } else {
  38351. $$lcssa = $55;
  38352. }
  38353. $90 = ($$lcssa|0)==(0|0);
  38354. if (!($90)) {
  38355. $91 = HEAP32[$2>>2]|0;
  38356. $92 = ((($91)) + -1|0);
  38357. HEAP32[$2>>2] = $92;
  38358. }
  38359. $93 = ($$0|0)!=(0);
  38360. $96 = (_i64Subtract(0,0,($94|0),($95|0))|0);
  38361. $97 = tempRet0;
  38362. $98 = $93 ? $96 : $94;
  38363. $99 = $93 ? $97 : $95;
  38364. $100 = $99;$101 = $98;
  38365. }
  38366. tempRet0 = ($100);
  38367. return ($101|0);
  38368. }
  38369. function _scalbn($0,$1) {
  38370. $0 = +$0;
  38371. $1 = $1|0;
  38372. 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;
  38373. var $3 = 0.0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  38374. sp = STACKTOP;
  38375. $2 = ($1|0)>(1023);
  38376. if ($2) {
  38377. $3 = $0 * 8.9884656743115795E+307;
  38378. $4 = (($1) + -1023)|0;
  38379. $5 = ($4|0)>(1023);
  38380. $6 = $3 * 8.9884656743115795E+307;
  38381. $7 = (($1) + -2046)|0;
  38382. $8 = ($7|0)<(1023);
  38383. $$ = $8 ? $7 : 1023;
  38384. $$$ = $5 ? $$ : $4;
  38385. $$21 = $5 ? $6 : $3;
  38386. $$0 = $$21;$$020 = $$$;
  38387. } else {
  38388. $9 = ($1|0)<(-1022);
  38389. if ($9) {
  38390. $10 = $0 * 2.2250738585072014E-308;
  38391. $11 = (($1) + 1022)|0;
  38392. $12 = ($11|0)<(-1022);
  38393. $13 = $10 * 2.2250738585072014E-308;
  38394. $14 = (($1) + 2044)|0;
  38395. $15 = ($14|0)>(-1022);
  38396. $$1 = $15 ? $14 : -1022;
  38397. $$1$ = $12 ? $$1 : $11;
  38398. $$22 = $12 ? $13 : $10;
  38399. $$0 = $$22;$$020 = $$1$;
  38400. } else {
  38401. $$0 = $0;$$020 = $1;
  38402. }
  38403. }
  38404. $16 = (($$020) + 1023)|0;
  38405. $17 = (_bitshift64Shl(($16|0),0,52)|0);
  38406. $18 = tempRet0;
  38407. HEAP32[tempDoublePtr>>2] = $17;HEAP32[tempDoublePtr+4>>2] = $18;$19 = +HEAPF64[tempDoublePtr>>3];
  38408. $20 = $$0 * $19;
  38409. return (+$20);
  38410. }
  38411. function _copysignl($0,$1) {
  38412. $0 = +$0;
  38413. $1 = +$1;
  38414. var $2 = 0.0, label = 0, sp = 0;
  38415. sp = STACKTOP;
  38416. $2 = (+_copysign($0,$1));
  38417. return (+$2);
  38418. }
  38419. function _fmodl($0,$1) {
  38420. $0 = +$0;
  38421. $1 = +$1;
  38422. var $2 = 0.0, label = 0, sp = 0;
  38423. sp = STACKTOP;
  38424. $2 = (+_fmod($0,$1));
  38425. return (+$2);
  38426. }
  38427. function _scalbnl($0,$1) {
  38428. $0 = +$0;
  38429. $1 = $1|0;
  38430. var $2 = 0.0, label = 0, sp = 0;
  38431. sp = STACKTOP;
  38432. $2 = (+_scalbn($0,$1));
  38433. return (+$2);
  38434. }
  38435. function _fmod($0,$1) {
  38436. $0 = +$0;
  38437. $1 = +$1;
  38438. 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;
  38439. 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;
  38440. 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;
  38441. 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;
  38442. 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;
  38443. 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;
  38444. 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;
  38445. 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;
  38446. 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;
  38447. sp = STACKTOP;
  38448. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  38449. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  38450. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  38451. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  38452. $6 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  38453. $7 = tempRet0;
  38454. $8 = $6 & 2047;
  38455. $9 = (_bitshift64Lshr(($4|0),($5|0),52)|0);
  38456. $10 = tempRet0;
  38457. $11 = $9 & 2047;
  38458. $12 = $3 & -2147483648;
  38459. $13 = (_bitshift64Shl(($4|0),($5|0),1)|0);
  38460. $14 = tempRet0;
  38461. $15 = ($13|0)==(0);
  38462. $16 = ($14|0)==(0);
  38463. $17 = $15 & $16;
  38464. L1: do {
  38465. if ($17) {
  38466. label = 3;
  38467. } else {
  38468. $18 = (___DOUBLE_BITS_272($1)|0);
  38469. $19 = tempRet0;
  38470. $20 = $19 & 2147483647;
  38471. $21 = ($20>>>0)>(2146435072);
  38472. $22 = ($18>>>0)>(0);
  38473. $23 = ($20|0)==(2146435072);
  38474. $24 = $23 & $22;
  38475. $25 = $21 | $24;
  38476. $26 = ($8|0)==(2047);
  38477. $or$cond = $26 | $25;
  38478. if ($or$cond) {
  38479. label = 3;
  38480. } else {
  38481. $29 = (_bitshift64Shl(($2|0),($3|0),1)|0);
  38482. $30 = tempRet0;
  38483. $31 = ($30>>>0)>($14>>>0);
  38484. $32 = ($29>>>0)>($13>>>0);
  38485. $33 = ($30|0)==($14|0);
  38486. $34 = $33 & $32;
  38487. $35 = $31 | $34;
  38488. if (!($35)) {
  38489. $36 = ($29|0)==($13|0);
  38490. $37 = ($30|0)==($14|0);
  38491. $38 = $36 & $37;
  38492. $39 = $0 * 0.0;
  38493. $$ = $38 ? $39 : $0;
  38494. return (+$$);
  38495. }
  38496. $40 = ($8|0)==(0);
  38497. if ($40) {
  38498. $41 = (_bitshift64Shl(($2|0),($3|0),12)|0);
  38499. $42 = tempRet0;
  38500. $43 = ($42|0)>(-1);
  38501. $44 = ($41>>>0)>(4294967295);
  38502. $45 = ($42|0)==(-1);
  38503. $46 = $45 & $44;
  38504. $47 = $43 | $46;
  38505. if ($47) {
  38506. $$073100 = 0;$49 = $41;$50 = $42;
  38507. while(1) {
  38508. $48 = (($$073100) + -1)|0;
  38509. $51 = (_bitshift64Shl(($49|0),($50|0),1)|0);
  38510. $52 = tempRet0;
  38511. $53 = ($52|0)>(-1);
  38512. $54 = ($51>>>0)>(4294967295);
  38513. $55 = ($52|0)==(-1);
  38514. $56 = $55 & $54;
  38515. $57 = $53 | $56;
  38516. if ($57) {
  38517. $$073100 = $48;$49 = $51;$50 = $52;
  38518. } else {
  38519. $$073$lcssa = $48;
  38520. break;
  38521. }
  38522. }
  38523. } else {
  38524. $$073$lcssa = 0;
  38525. }
  38526. $58 = (1 - ($$073$lcssa))|0;
  38527. $59 = (_bitshift64Shl(($2|0),($3|0),($58|0))|0);
  38528. $60 = tempRet0;
  38529. $$174 = $$073$lcssa;$87 = $59;$88 = $60;
  38530. } else {
  38531. $61 = $3 & 1048575;
  38532. $62 = $61 | 1048576;
  38533. $$174 = $8;$87 = $2;$88 = $62;
  38534. }
  38535. $63 = ($11|0)==(0);
  38536. if ($63) {
  38537. $64 = (_bitshift64Shl(($4|0),($5|0),12)|0);
  38538. $65 = tempRet0;
  38539. $66 = ($65|0)>(-1);
  38540. $67 = ($64>>>0)>(4294967295);
  38541. $68 = ($65|0)==(-1);
  38542. $69 = $68 & $67;
  38543. $70 = $66 | $69;
  38544. if ($70) {
  38545. $$07194 = 0;$72 = $64;$73 = $65;
  38546. while(1) {
  38547. $71 = (($$07194) + -1)|0;
  38548. $74 = (_bitshift64Shl(($72|0),($73|0),1)|0);
  38549. $75 = tempRet0;
  38550. $76 = ($75|0)>(-1);
  38551. $77 = ($74>>>0)>(4294967295);
  38552. $78 = ($75|0)==(-1);
  38553. $79 = $78 & $77;
  38554. $80 = $76 | $79;
  38555. if ($80) {
  38556. $$07194 = $71;$72 = $74;$73 = $75;
  38557. } else {
  38558. $$071$lcssa = $71;
  38559. break;
  38560. }
  38561. }
  38562. } else {
  38563. $$071$lcssa = 0;
  38564. }
  38565. $81 = (1 - ($$071$lcssa))|0;
  38566. $82 = (_bitshift64Shl(($4|0),($5|0),($81|0))|0);
  38567. $83 = tempRet0;
  38568. $$172$ph = $$071$lcssa;$89 = $82;$90 = $83;
  38569. } else {
  38570. $84 = $5 & 1048575;
  38571. $85 = $84 | 1048576;
  38572. $$172$ph = $11;$89 = $4;$90 = $85;
  38573. }
  38574. $86 = ($$174|0)>($$172$ph|0);
  38575. $91 = (_i64Subtract(($87|0),($88|0),($89|0),($90|0))|0);
  38576. $92 = tempRet0;
  38577. $93 = ($92|0)>(-1);
  38578. $94 = ($91>>>0)>(4294967295);
  38579. $95 = ($92|0)==(-1);
  38580. $96 = $95 & $94;
  38581. $97 = $93 | $96;
  38582. L23: do {
  38583. if ($86) {
  38584. $$27586 = $$174;$101 = $92;$156 = $97;$157 = $87;$158 = $88;$99 = $91;
  38585. while(1) {
  38586. if ($156) {
  38587. $98 = ($99|0)==(0);
  38588. $100 = ($101|0)==(0);
  38589. $102 = $98 & $100;
  38590. if ($102) {
  38591. break;
  38592. } else {
  38593. $104 = $99;$105 = $101;
  38594. }
  38595. } else {
  38596. $104 = $157;$105 = $158;
  38597. }
  38598. $106 = (_bitshift64Shl(($104|0),($105|0),1)|0);
  38599. $107 = tempRet0;
  38600. $108 = (($$27586) + -1)|0;
  38601. $109 = ($108|0)>($$172$ph|0);
  38602. $110 = (_i64Subtract(($106|0),($107|0),($89|0),($90|0))|0);
  38603. $111 = tempRet0;
  38604. $112 = ($111|0)>(-1);
  38605. $113 = ($110>>>0)>(4294967295);
  38606. $114 = ($111|0)==(-1);
  38607. $115 = $114 & $113;
  38608. $116 = $112 | $115;
  38609. if ($109) {
  38610. $$27586 = $108;$101 = $111;$156 = $116;$157 = $106;$158 = $107;$99 = $110;
  38611. } else {
  38612. $$275$lcssa = $108;$$lcssa = $116;$118 = $110;$120 = $111;$159 = $106;$160 = $107;
  38613. break L23;
  38614. }
  38615. }
  38616. $103 = $0 * 0.0;
  38617. $$070 = $103;
  38618. break L1;
  38619. } else {
  38620. $$275$lcssa = $$174;$$lcssa = $97;$118 = $91;$120 = $92;$159 = $87;$160 = $88;
  38621. }
  38622. } while(0);
  38623. if ($$lcssa) {
  38624. $117 = ($118|0)==(0);
  38625. $119 = ($120|0)==(0);
  38626. $121 = $117 & $119;
  38627. if ($121) {
  38628. $129 = $0 * 0.0;
  38629. $$070 = $129;
  38630. break;
  38631. } else {
  38632. $123 = $120;$125 = $118;
  38633. }
  38634. } else {
  38635. $123 = $160;$125 = $159;
  38636. }
  38637. $122 = ($123>>>0)<(1048576);
  38638. $124 = ($125>>>0)<(0);
  38639. $126 = ($123|0)==(1048576);
  38640. $127 = $126 & $124;
  38641. $128 = $122 | $127;
  38642. if ($128) {
  38643. $$37683 = $$275$lcssa;$130 = $125;$131 = $123;
  38644. while(1) {
  38645. $132 = (_bitshift64Shl(($130|0),($131|0),1)|0);
  38646. $133 = tempRet0;
  38647. $134 = (($$37683) + -1)|0;
  38648. $135 = ($133>>>0)<(1048576);
  38649. $136 = ($132>>>0)<(0);
  38650. $137 = ($133|0)==(1048576);
  38651. $138 = $137 & $136;
  38652. $139 = $135 | $138;
  38653. if ($139) {
  38654. $$37683 = $134;$130 = $132;$131 = $133;
  38655. } else {
  38656. $$376$lcssa = $134;$141 = $132;$142 = $133;
  38657. break;
  38658. }
  38659. }
  38660. } else {
  38661. $$376$lcssa = $$275$lcssa;$141 = $125;$142 = $123;
  38662. }
  38663. $140 = ($$376$lcssa|0)>(0);
  38664. if ($140) {
  38665. $143 = (_i64Add(($141|0),($142|0),0,-1048576)|0);
  38666. $144 = tempRet0;
  38667. $145 = (_bitshift64Shl(($$376$lcssa|0),0,52)|0);
  38668. $146 = tempRet0;
  38669. $147 = $143 | $145;
  38670. $148 = $144 | $146;
  38671. $153 = $148;$155 = $147;
  38672. } else {
  38673. $149 = (1 - ($$376$lcssa))|0;
  38674. $150 = (_bitshift64Lshr(($141|0),($142|0),($149|0))|0);
  38675. $151 = tempRet0;
  38676. $153 = $151;$155 = $150;
  38677. }
  38678. $152 = $153 | $12;
  38679. HEAP32[tempDoublePtr>>2] = $155;HEAP32[tempDoublePtr+4>>2] = $152;$154 = +HEAPF64[tempDoublePtr>>3];
  38680. $$070 = $154;
  38681. }
  38682. }
  38683. } while(0);
  38684. if ((label|0) == 3) {
  38685. $27 = $0 * $1;
  38686. $28 = $27 / $27;
  38687. $$070 = $28;
  38688. }
  38689. return (+$$070);
  38690. }
  38691. function ___DOUBLE_BITS_272($0) {
  38692. $0 = +$0;
  38693. var $1 = 0, $2 = 0, label = 0, sp = 0;
  38694. sp = STACKTOP;
  38695. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  38696. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  38697. tempRet0 = ($2);
  38698. return ($1|0);
  38699. }
  38700. function _strlen($0) {
  38701. $0 = $0|0;
  38702. 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;
  38703. 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;
  38704. sp = STACKTOP;
  38705. $1 = $0;
  38706. $2 = $1 & 3;
  38707. $3 = ($2|0)==(0);
  38708. L1: do {
  38709. if ($3) {
  38710. $$015$lcssa = $0;
  38711. label = 4;
  38712. } else {
  38713. $$01519 = $0;$23 = $1;
  38714. while(1) {
  38715. $4 = HEAP8[$$01519>>0]|0;
  38716. $5 = ($4<<24>>24)==(0);
  38717. if ($5) {
  38718. $$sink = $23;
  38719. break L1;
  38720. }
  38721. $6 = ((($$01519)) + 1|0);
  38722. $7 = $6;
  38723. $8 = $7 & 3;
  38724. $9 = ($8|0)==(0);
  38725. if ($9) {
  38726. $$015$lcssa = $6;
  38727. label = 4;
  38728. break;
  38729. } else {
  38730. $$01519 = $6;$23 = $7;
  38731. }
  38732. }
  38733. }
  38734. } while(0);
  38735. if ((label|0) == 4) {
  38736. $$0 = $$015$lcssa;
  38737. while(1) {
  38738. $10 = HEAP32[$$0>>2]|0;
  38739. $11 = (($10) + -16843009)|0;
  38740. $12 = $10 & -2139062144;
  38741. $13 = $12 ^ -2139062144;
  38742. $14 = $13 & $11;
  38743. $15 = ($14|0)==(0);
  38744. $16 = ((($$0)) + 4|0);
  38745. if ($15) {
  38746. $$0 = $16;
  38747. } else {
  38748. break;
  38749. }
  38750. }
  38751. $17 = $10&255;
  38752. $18 = ($17<<24>>24)==(0);
  38753. if ($18) {
  38754. $$1$lcssa = $$0;
  38755. } else {
  38756. $$pn = $$0;
  38757. while(1) {
  38758. $19 = ((($$pn)) + 1|0);
  38759. $$pre = HEAP8[$19>>0]|0;
  38760. $20 = ($$pre<<24>>24)==(0);
  38761. if ($20) {
  38762. $$1$lcssa = $19;
  38763. break;
  38764. } else {
  38765. $$pn = $19;
  38766. }
  38767. }
  38768. }
  38769. $21 = $$1$lcssa;
  38770. $$sink = $21;
  38771. }
  38772. $22 = (($$sink) - ($1))|0;
  38773. return ($22|0);
  38774. }
  38775. function _strchr($0,$1) {
  38776. $0 = $0|0;
  38777. $1 = $1|0;
  38778. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  38779. sp = STACKTOP;
  38780. $2 = (___strchrnul($0,$1)|0);
  38781. $3 = HEAP8[$2>>0]|0;
  38782. $4 = $1&255;
  38783. $5 = ($3<<24>>24)==($4<<24>>24);
  38784. $6 = $5 ? $2 : 0;
  38785. return ($6|0);
  38786. }
  38787. function ___strchrnul($0,$1) {
  38788. $0 = $0|0;
  38789. $1 = $1|0;
  38790. 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;
  38791. 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;
  38792. 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;
  38793. sp = STACKTOP;
  38794. $2 = $1 & 255;
  38795. $3 = ($2|0)==(0);
  38796. L1: do {
  38797. if ($3) {
  38798. $8 = (_strlen($0)|0);
  38799. $9 = (($0) + ($8)|0);
  38800. $$0 = $9;
  38801. } else {
  38802. $4 = $0;
  38803. $5 = $4 & 3;
  38804. $6 = ($5|0)==(0);
  38805. if ($6) {
  38806. $$030$lcssa = $0;
  38807. } else {
  38808. $7 = $1&255;
  38809. $$03039 = $0;
  38810. while(1) {
  38811. $10 = HEAP8[$$03039>>0]|0;
  38812. $11 = ($10<<24>>24)==(0);
  38813. $12 = ($10<<24>>24)==($7<<24>>24);
  38814. $or$cond = $11 | $12;
  38815. if ($or$cond) {
  38816. $$0 = $$03039;
  38817. break L1;
  38818. }
  38819. $13 = ((($$03039)) + 1|0);
  38820. $14 = $13;
  38821. $15 = $14 & 3;
  38822. $16 = ($15|0)==(0);
  38823. if ($16) {
  38824. $$030$lcssa = $13;
  38825. break;
  38826. } else {
  38827. $$03039 = $13;
  38828. }
  38829. }
  38830. }
  38831. $17 = Math_imul($2, 16843009)|0;
  38832. $18 = HEAP32[$$030$lcssa>>2]|0;
  38833. $19 = (($18) + -16843009)|0;
  38834. $20 = $18 & -2139062144;
  38835. $21 = $20 ^ -2139062144;
  38836. $22 = $21 & $19;
  38837. $23 = ($22|0)==(0);
  38838. L10: do {
  38839. if ($23) {
  38840. $$02936 = $$030$lcssa;$25 = $18;
  38841. while(1) {
  38842. $24 = $25 ^ $17;
  38843. $26 = (($24) + -16843009)|0;
  38844. $27 = $24 & -2139062144;
  38845. $28 = $27 ^ -2139062144;
  38846. $29 = $28 & $26;
  38847. $30 = ($29|0)==(0);
  38848. if (!($30)) {
  38849. $$029$lcssa = $$02936;
  38850. break L10;
  38851. }
  38852. $31 = ((($$02936)) + 4|0);
  38853. $32 = HEAP32[$31>>2]|0;
  38854. $33 = (($32) + -16843009)|0;
  38855. $34 = $32 & -2139062144;
  38856. $35 = $34 ^ -2139062144;
  38857. $36 = $35 & $33;
  38858. $37 = ($36|0)==(0);
  38859. if ($37) {
  38860. $$02936 = $31;$25 = $32;
  38861. } else {
  38862. $$029$lcssa = $31;
  38863. break;
  38864. }
  38865. }
  38866. } else {
  38867. $$029$lcssa = $$030$lcssa;
  38868. }
  38869. } while(0);
  38870. $38 = $1&255;
  38871. $$1 = $$029$lcssa;
  38872. while(1) {
  38873. $39 = HEAP8[$$1>>0]|0;
  38874. $40 = ($39<<24>>24)==(0);
  38875. $41 = ($39<<24>>24)==($38<<24>>24);
  38876. $or$cond33 = $40 | $41;
  38877. $42 = ((($$1)) + 1|0);
  38878. if ($or$cond33) {
  38879. $$0 = $$1;
  38880. break;
  38881. } else {
  38882. $$1 = $42;
  38883. }
  38884. }
  38885. }
  38886. } while(0);
  38887. return ($$0|0);
  38888. }
  38889. function _mbrtowc($0,$1,$2,$3) {
  38890. $0 = $0|0;
  38891. $1 = $1|0;
  38892. $2 = $2|0;
  38893. $3 = $3|0;
  38894. 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;
  38895. 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;
  38896. 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;
  38897. var $not$ = 0, label = 0, sp = 0;
  38898. sp = STACKTOP;
  38899. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  38900. $4 = sp;
  38901. $5 = ($3|0)==(0|0);
  38902. $$ = $5 ? 21940 : $3;
  38903. $6 = HEAP32[$$>>2]|0;
  38904. $7 = ($1|0)==(0|0);
  38905. L1: do {
  38906. if ($7) {
  38907. $8 = ($6|0)==(0);
  38908. if ($8) {
  38909. $$0 = 0;
  38910. } else {
  38911. label = 17;
  38912. }
  38913. } else {
  38914. $9 = ($0|0)==(0|0);
  38915. $$47 = $9 ? $4 : $0;
  38916. $10 = ($2|0)==(0);
  38917. if ($10) {
  38918. $$0 = -2;
  38919. } else {
  38920. $11 = ($6|0)==(0);
  38921. if ($11) {
  38922. $12 = HEAP8[$1>>0]|0;
  38923. $13 = ($12<<24>>24)>(-1);
  38924. if ($13) {
  38925. $14 = $12&255;
  38926. HEAP32[$$47>>2] = $14;
  38927. $15 = ($12<<24>>24)!=(0);
  38928. $16 = $15&1;
  38929. $$0 = $16;
  38930. break;
  38931. }
  38932. $17 = (___pthread_self_439()|0);
  38933. $18 = ((($17)) + 188|0);
  38934. $19 = HEAP32[$18>>2]|0;
  38935. $20 = HEAP32[$19>>2]|0;
  38936. $not$ = ($20|0)==(0|0);
  38937. $21 = HEAP8[$1>>0]|0;
  38938. if ($not$) {
  38939. $22 = $21 << 24 >> 24;
  38940. $23 = $22 & 57343;
  38941. HEAP32[$$47>>2] = $23;
  38942. $$0 = 1;
  38943. break;
  38944. }
  38945. $24 = $21&255;
  38946. $25 = (($24) + -194)|0;
  38947. $26 = ($25>>>0)>(50);
  38948. if ($26) {
  38949. label = 17;
  38950. break;
  38951. }
  38952. $27 = ((($1)) + 1|0);
  38953. $28 = (3620 + ($25<<2)|0);
  38954. $29 = HEAP32[$28>>2]|0;
  38955. $30 = (($2) + -1)|0;
  38956. $31 = ($30|0)==(0);
  38957. if ($31) {
  38958. $$2 = $29;
  38959. } else {
  38960. $$03952 = $27;$$04051 = $29;$$04350 = $30;
  38961. label = 11;
  38962. }
  38963. } else {
  38964. $$03952 = $1;$$04051 = $6;$$04350 = $2;
  38965. label = 11;
  38966. }
  38967. L14: do {
  38968. if ((label|0) == 11) {
  38969. $32 = HEAP8[$$03952>>0]|0;
  38970. $33 = $32&255;
  38971. $34 = $33 >>> 3;
  38972. $35 = (($34) + -16)|0;
  38973. $36 = $$04051 >> 26;
  38974. $37 = (($34) + ($36))|0;
  38975. $38 = $35 | $37;
  38976. $39 = ($38>>>0)>(7);
  38977. if ($39) {
  38978. label = 17;
  38979. break L1;
  38980. } else {
  38981. $$1 = $$03952;$$141 = $$04051;$$144 = $$04350;$43 = $32;
  38982. }
  38983. while(1) {
  38984. $40 = $$141 << 6;
  38985. $41 = ((($$1)) + 1|0);
  38986. $42 = $43&255;
  38987. $44 = (($42) + -128)|0;
  38988. $45 = $44 | $40;
  38989. $46 = (($$144) + -1)|0;
  38990. $47 = ($45|0)<(0);
  38991. if (!($47)) {
  38992. break;
  38993. }
  38994. $49 = ($46|0)==(0);
  38995. if ($49) {
  38996. $$2 = $45;
  38997. break L14;
  38998. }
  38999. $50 = HEAP8[$41>>0]|0;
  39000. $51 = $50 & -64;
  39001. $52 = ($51<<24>>24)==(-128);
  39002. if ($52) {
  39003. $$1 = $41;$$141 = $45;$$144 = $46;$43 = $50;
  39004. } else {
  39005. label = 17;
  39006. break L1;
  39007. }
  39008. }
  39009. HEAP32[$$>>2] = 0;
  39010. HEAP32[$$47>>2] = $45;
  39011. $48 = (($2) - ($46))|0;
  39012. $$0 = $48;
  39013. break L1;
  39014. }
  39015. } while(0);
  39016. HEAP32[$$>>2] = $$2;
  39017. $$0 = -2;
  39018. }
  39019. }
  39020. } while(0);
  39021. if ((label|0) == 17) {
  39022. HEAP32[$$>>2] = 0;
  39023. $53 = (___errno_location()|0);
  39024. HEAP32[$53>>2] = 84;
  39025. $$0 = -1;
  39026. }
  39027. STACKTOP = sp;return ($$0|0);
  39028. }
  39029. function ___pthread_self_439() {
  39030. var $0 = 0, label = 0, sp = 0;
  39031. sp = STACKTOP;
  39032. $0 = (_pthread_self()|0);
  39033. return ($0|0);
  39034. }
  39035. function _strcpy($0,$1) {
  39036. $0 = $0|0;
  39037. $1 = $1|0;
  39038. var label = 0, sp = 0;
  39039. sp = STACKTOP;
  39040. (___stpcpy($0,$1)|0);
  39041. return ($0|0);
  39042. }
  39043. function ___stpcpy($0,$1) {
  39044. $0 = $0|0;
  39045. $1 = $1|0;
  39046. 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;
  39047. 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;
  39048. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39049. sp = STACKTOP;
  39050. $2 = $1;
  39051. $3 = $0;
  39052. $4 = $2 ^ $3;
  39053. $5 = $4 & 3;
  39054. $6 = ($5|0)==(0);
  39055. L1: do {
  39056. if ($6) {
  39057. $7 = $2 & 3;
  39058. $8 = ($7|0)==(0);
  39059. if ($8) {
  39060. $$026$lcssa = $1;$$027$lcssa = $0;
  39061. } else {
  39062. $$02642 = $1;$$02741 = $0;
  39063. while(1) {
  39064. $9 = HEAP8[$$02642>>0]|0;
  39065. HEAP8[$$02741>>0] = $9;
  39066. $10 = ($9<<24>>24)==(0);
  39067. if ($10) {
  39068. $$029 = $$02741;
  39069. break L1;
  39070. }
  39071. $11 = ((($$02642)) + 1|0);
  39072. $12 = ((($$02741)) + 1|0);
  39073. $13 = $11;
  39074. $14 = $13 & 3;
  39075. $15 = ($14|0)==(0);
  39076. if ($15) {
  39077. $$026$lcssa = $11;$$027$lcssa = $12;
  39078. break;
  39079. } else {
  39080. $$02642 = $11;$$02741 = $12;
  39081. }
  39082. }
  39083. }
  39084. $16 = HEAP32[$$026$lcssa>>2]|0;
  39085. $17 = (($16) + -16843009)|0;
  39086. $18 = $16 & -2139062144;
  39087. $19 = $18 ^ -2139062144;
  39088. $20 = $19 & $17;
  39089. $21 = ($20|0)==(0);
  39090. if ($21) {
  39091. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  39092. while(1) {
  39093. $22 = ((($$037)) + 4|0);
  39094. $23 = ((($$02536)) + 4|0);
  39095. HEAP32[$$02536>>2] = $24;
  39096. $25 = HEAP32[$22>>2]|0;
  39097. $26 = (($25) + -16843009)|0;
  39098. $27 = $25 & -2139062144;
  39099. $28 = $27 ^ -2139062144;
  39100. $29 = $28 & $26;
  39101. $30 = ($29|0)==(0);
  39102. if ($30) {
  39103. $$02536 = $23;$$037 = $22;$24 = $25;
  39104. } else {
  39105. $$0$lcssa = $22;$$025$lcssa = $23;
  39106. break;
  39107. }
  39108. }
  39109. } else {
  39110. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  39111. }
  39112. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  39113. label = 8;
  39114. } else {
  39115. $$1$ph = $1;$$128$ph = $0;
  39116. label = 8;
  39117. }
  39118. } while(0);
  39119. if ((label|0) == 8) {
  39120. $31 = HEAP8[$$1$ph>>0]|0;
  39121. HEAP8[$$128$ph>>0] = $31;
  39122. $32 = ($31<<24>>24)==(0);
  39123. if ($32) {
  39124. $$029 = $$128$ph;
  39125. } else {
  39126. $$12834 = $$128$ph;$$135 = $$1$ph;
  39127. while(1) {
  39128. $33 = ((($$135)) + 1|0);
  39129. $34 = ((($$12834)) + 1|0);
  39130. $35 = HEAP8[$33>>0]|0;
  39131. HEAP8[$34>>0] = $35;
  39132. $36 = ($35<<24>>24)==(0);
  39133. if ($36) {
  39134. $$029 = $34;
  39135. break;
  39136. } else {
  39137. $$12834 = $34;$$135 = $33;
  39138. }
  39139. }
  39140. }
  39141. }
  39142. return ($$029|0);
  39143. }
  39144. function ___unlist_locked_file($0) {
  39145. $0 = $0|0;
  39146. 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;
  39147. sp = STACKTOP;
  39148. $1 = ((($0)) + 68|0);
  39149. $2 = HEAP32[$1>>2]|0;
  39150. $3 = ($2|0)==(0);
  39151. if (!($3)) {
  39152. $4 = ((($0)) + 116|0);
  39153. $5 = HEAP32[$4>>2]|0;
  39154. $6 = ($5|0)==(0|0);
  39155. $$pre = ((($0)) + 112|0);
  39156. if (!($6)) {
  39157. $7 = HEAP32[$$pre>>2]|0;
  39158. $8 = ((($5)) + 112|0);
  39159. HEAP32[$8>>2] = $7;
  39160. }
  39161. $9 = HEAP32[$$pre>>2]|0;
  39162. $10 = ($9|0)==(0|0);
  39163. if ($10) {
  39164. $12 = (___pthread_self_607()|0);
  39165. $13 = ((($12)) + 232|0);
  39166. $$sink = $13;
  39167. } else {
  39168. $11 = ((($9)) + 116|0);
  39169. $$sink = $11;
  39170. }
  39171. HEAP32[$$sink>>2] = $5;
  39172. }
  39173. return;
  39174. }
  39175. function ___pthread_self_607() {
  39176. var $0 = 0, label = 0, sp = 0;
  39177. sp = STACKTOP;
  39178. $0 = (_pthread_self()|0);
  39179. return ($0|0);
  39180. }
  39181. function _fopen($0,$1) {
  39182. $0 = $0|0;
  39183. $1 = $1|0;
  39184. 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;
  39185. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  39186. sp = STACKTOP;
  39187. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  39188. $vararg_buffer8 = sp + 32|0;
  39189. $vararg_buffer3 = sp + 16|0;
  39190. $vararg_buffer = sp;
  39191. $2 = HEAP8[$1>>0]|0;
  39192. $3 = $2 << 24 >> 24;
  39193. $memchr = (_memchr(19196,$3,4)|0);
  39194. $4 = ($memchr|0)==(0|0);
  39195. if ($4) {
  39196. $5 = (___errno_location()|0);
  39197. HEAP32[$5>>2] = 22;
  39198. $$0 = 0;
  39199. } else {
  39200. $6 = (___fmodeflags($1)|0);
  39201. $7 = $0;
  39202. $8 = $6 | 32768;
  39203. HEAP32[$vararg_buffer>>2] = $7;
  39204. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  39205. HEAP32[$vararg_ptr1>>2] = $8;
  39206. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  39207. HEAP32[$vararg_ptr2>>2] = 438;
  39208. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  39209. $10 = (___syscall_ret($9)|0);
  39210. $11 = ($10|0)<(0);
  39211. if ($11) {
  39212. $$0 = 0;
  39213. } else {
  39214. $12 = $6 & 524288;
  39215. $13 = ($12|0)==(0);
  39216. if (!($13)) {
  39217. HEAP32[$vararg_buffer3>>2] = $10;
  39218. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  39219. HEAP32[$vararg_ptr6>>2] = 2;
  39220. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  39221. HEAP32[$vararg_ptr7>>2] = 1;
  39222. (___syscall221(221,($vararg_buffer3|0))|0);
  39223. }
  39224. $14 = (___fdopen($10,$1)|0);
  39225. $15 = ($14|0)==(0|0);
  39226. if ($15) {
  39227. HEAP32[$vararg_buffer8>>2] = $10;
  39228. (___syscall6(6,($vararg_buffer8|0))|0);
  39229. $$0 = 0;
  39230. } else {
  39231. $$0 = $14;
  39232. }
  39233. }
  39234. }
  39235. STACKTOP = sp;return ($$0|0);
  39236. }
  39237. function ___fmodeflags($0) {
  39238. $0 = $0|0;
  39239. 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;
  39240. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  39241. sp = STACKTOP;
  39242. $1 = (_strchr($0,43)|0);
  39243. $2 = ($1|0)==(0|0);
  39244. $3 = HEAP8[$0>>0]|0;
  39245. $not$ = ($3<<24>>24)!=(114);
  39246. $$ = $not$&1;
  39247. $$0 = $2 ? $$ : 2;
  39248. $4 = (_strchr($0,120)|0);
  39249. $5 = ($4|0)==(0|0);
  39250. $6 = $$0 | 128;
  39251. $$0$ = $5 ? $$0 : $6;
  39252. $7 = (_strchr($0,101)|0);
  39253. $8 = ($7|0)==(0|0);
  39254. $9 = $$0$ | 524288;
  39255. $$2 = $8 ? $$0$ : $9;
  39256. $10 = ($3<<24>>24)==(114);
  39257. $11 = $$2 | 64;
  39258. $$2$ = $10 ? $$2 : $11;
  39259. $12 = ($3<<24>>24)==(119);
  39260. $13 = $$2$ | 512;
  39261. $$4 = $12 ? $13 : $$2$;
  39262. $14 = ($3<<24>>24)==(97);
  39263. $15 = $$4 | 1024;
  39264. $$$4 = $14 ? $15 : $$4;
  39265. return ($$$4|0);
  39266. }
  39267. function ___fdopen($0,$1) {
  39268. $0 = $0|0;
  39269. $1 = $1|0;
  39270. 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;
  39271. 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;
  39272. 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;
  39273. sp = STACKTOP;
  39274. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  39275. $vararg_buffer12 = sp + 40|0;
  39276. $vararg_buffer7 = sp + 24|0;
  39277. $vararg_buffer3 = sp + 16|0;
  39278. $vararg_buffer = sp;
  39279. $2 = sp + 56|0;
  39280. $3 = HEAP8[$1>>0]|0;
  39281. $4 = $3 << 24 >> 24;
  39282. $memchr = (_memchr(19196,$4,4)|0);
  39283. $5 = ($memchr|0)==(0|0);
  39284. if ($5) {
  39285. $6 = (___errno_location()|0);
  39286. HEAP32[$6>>2] = 22;
  39287. $$0 = 0;
  39288. } else {
  39289. $7 = (_malloc(1156)|0);
  39290. $8 = ($7|0)==(0|0);
  39291. if ($8) {
  39292. $$0 = 0;
  39293. } else {
  39294. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  39295. $9 = (_strchr($1,43)|0);
  39296. $10 = ($9|0)==(0|0);
  39297. if ($10) {
  39298. $11 = ($3<<24>>24)==(114);
  39299. $12 = $11 ? 8 : 4;
  39300. HEAP32[$7>>2] = $12;
  39301. }
  39302. $13 = (_strchr($1,101)|0);
  39303. $14 = ($13|0)==(0|0);
  39304. if ($14) {
  39305. $16 = $3;
  39306. } else {
  39307. HEAP32[$vararg_buffer>>2] = $0;
  39308. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  39309. HEAP32[$vararg_ptr1>>2] = 2;
  39310. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  39311. HEAP32[$vararg_ptr2>>2] = 1;
  39312. (___syscall221(221,($vararg_buffer|0))|0);
  39313. $$pre = HEAP8[$1>>0]|0;
  39314. $16 = $$pre;
  39315. }
  39316. $15 = ($16<<24>>24)==(97);
  39317. if ($15) {
  39318. HEAP32[$vararg_buffer3>>2] = $0;
  39319. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  39320. HEAP32[$vararg_ptr6>>2] = 3;
  39321. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  39322. $18 = $17 & 1024;
  39323. $19 = ($18|0)==(0);
  39324. if ($19) {
  39325. $20 = $17 | 1024;
  39326. HEAP32[$vararg_buffer7>>2] = $0;
  39327. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  39328. HEAP32[$vararg_ptr10>>2] = 4;
  39329. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  39330. HEAP32[$vararg_ptr11>>2] = $20;
  39331. (___syscall221(221,($vararg_buffer7|0))|0);
  39332. }
  39333. $21 = HEAP32[$7>>2]|0;
  39334. $22 = $21 | 128;
  39335. HEAP32[$7>>2] = $22;
  39336. $29 = $22;
  39337. } else {
  39338. $$pre31 = HEAP32[$7>>2]|0;
  39339. $29 = $$pre31;
  39340. }
  39341. $23 = ((($7)) + 60|0);
  39342. HEAP32[$23>>2] = $0;
  39343. $24 = ((($7)) + 132|0);
  39344. $25 = ((($7)) + 44|0);
  39345. HEAP32[$25>>2] = $24;
  39346. $26 = ((($7)) + 48|0);
  39347. HEAP32[$26>>2] = 1024;
  39348. $27 = ((($7)) + 75|0);
  39349. HEAP8[$27>>0] = -1;
  39350. $28 = $29 & 8;
  39351. $30 = ($28|0)==(0);
  39352. if ($30) {
  39353. $31 = $2;
  39354. HEAP32[$vararg_buffer12>>2] = $0;
  39355. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  39356. HEAP32[$vararg_ptr15>>2] = 21523;
  39357. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  39358. HEAP32[$vararg_ptr16>>2] = $31;
  39359. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  39360. $33 = ($32|0)==(0);
  39361. if ($33) {
  39362. HEAP8[$27>>0] = 10;
  39363. }
  39364. }
  39365. $34 = ((($7)) + 32|0);
  39366. HEAP32[$34>>2] = 10;
  39367. $35 = ((($7)) + 36|0);
  39368. HEAP32[$35>>2] = 9;
  39369. $36 = ((($7)) + 40|0);
  39370. HEAP32[$36>>2] = 3;
  39371. $37 = ((($7)) + 12|0);
  39372. HEAP32[$37>>2] = 2;
  39373. $38 = HEAP32[(21880)>>2]|0;
  39374. $39 = ($38|0)==(0);
  39375. if ($39) {
  39376. $40 = ((($7)) + 76|0);
  39377. HEAP32[$40>>2] = -1;
  39378. }
  39379. $41 = (___ofl_add($7)|0);
  39380. $$0 = $7;
  39381. }
  39382. }
  39383. STACKTOP = sp;return ($$0|0);
  39384. }
  39385. function ___ofl_add($0) {
  39386. $0 = $0|0;
  39387. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  39388. sp = STACKTOP;
  39389. $1 = (___ofl_lock()|0);
  39390. $2 = HEAP32[$1>>2]|0;
  39391. $3 = ((($0)) + 56|0);
  39392. HEAP32[$3>>2] = $2;
  39393. $4 = HEAP32[$1>>2]|0;
  39394. $5 = ($4|0)==(0|0);
  39395. if (!($5)) {
  39396. $6 = ((($4)) + 52|0);
  39397. HEAP32[$6>>2] = $0;
  39398. }
  39399. HEAP32[$1>>2] = $0;
  39400. ___ofl_unlock();
  39401. return ($0|0);
  39402. }
  39403. function ___ofl_lock() {
  39404. var label = 0, sp = 0;
  39405. sp = STACKTOP;
  39406. ___lock((21944|0));
  39407. return (21952|0);
  39408. }
  39409. function ___ofl_unlock() {
  39410. var label = 0, sp = 0;
  39411. sp = STACKTOP;
  39412. ___unlock((21944|0));
  39413. return;
  39414. }
  39415. function _fclose($0) {
  39416. $0 = $0|0;
  39417. 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;
  39418. 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;
  39419. sp = STACKTOP;
  39420. $1 = ((($0)) + 76|0);
  39421. $2 = HEAP32[$1>>2]|0;
  39422. $3 = ($2|0)>(-1);
  39423. if ($3) {
  39424. $4 = (___lockfile($0)|0);
  39425. $29 = $4;
  39426. } else {
  39427. $29 = 0;
  39428. }
  39429. ___unlist_locked_file($0);
  39430. $5 = HEAP32[$0>>2]|0;
  39431. $6 = $5 & 1;
  39432. $7 = ($6|0)!=(0);
  39433. if (!($7)) {
  39434. $8 = (___ofl_lock()|0);
  39435. $9 = ((($0)) + 52|0);
  39436. $10 = HEAP32[$9>>2]|0;
  39437. $11 = ($10|0)==(0|0);
  39438. $12 = $10;
  39439. $$pre = ((($0)) + 56|0);
  39440. if (!($11)) {
  39441. $13 = HEAP32[$$pre>>2]|0;
  39442. $14 = ((($10)) + 56|0);
  39443. HEAP32[$14>>2] = $13;
  39444. }
  39445. $15 = HEAP32[$$pre>>2]|0;
  39446. $16 = ($15|0)==(0|0);
  39447. if (!($16)) {
  39448. $17 = ((($15)) + 52|0);
  39449. HEAP32[$17>>2] = $12;
  39450. }
  39451. $18 = HEAP32[$8>>2]|0;
  39452. $19 = ($18|0)==($0|0);
  39453. if ($19) {
  39454. HEAP32[$8>>2] = $15;
  39455. }
  39456. ___ofl_unlock();
  39457. }
  39458. $20 = (_fflush($0)|0);
  39459. $21 = ((($0)) + 12|0);
  39460. $22 = HEAP32[$21>>2]|0;
  39461. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  39462. $24 = $23 | $20;
  39463. $25 = ((($0)) + 92|0);
  39464. $26 = HEAP32[$25>>2]|0;
  39465. $27 = ($26|0)==(0|0);
  39466. if (!($27)) {
  39467. _free($26);
  39468. }
  39469. if ($7) {
  39470. $28 = ($29|0)==(0);
  39471. if (!($28)) {
  39472. ___unlockfile($0);
  39473. }
  39474. } else {
  39475. _free($0);
  39476. }
  39477. return ($24|0);
  39478. }
  39479. function _fflush($0) {
  39480. $0 = $0|0;
  39481. 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;
  39482. 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;
  39483. sp = STACKTOP;
  39484. $1 = ($0|0)==(0|0);
  39485. do {
  39486. if ($1) {
  39487. $8 = HEAP32[1049]|0;
  39488. $9 = ($8|0)==(0|0);
  39489. if ($9) {
  39490. $29 = 0;
  39491. } else {
  39492. $10 = HEAP32[1049]|0;
  39493. $11 = (_fflush($10)|0);
  39494. $29 = $11;
  39495. }
  39496. $12 = (___ofl_lock()|0);
  39497. $$02325 = HEAP32[$12>>2]|0;
  39498. $13 = ($$02325|0)==(0|0);
  39499. if ($13) {
  39500. $$024$lcssa = $29;
  39501. } else {
  39502. $$02327 = $$02325;$$02426 = $29;
  39503. while(1) {
  39504. $14 = ((($$02327)) + 76|0);
  39505. $15 = HEAP32[$14>>2]|0;
  39506. $16 = ($15|0)>(-1);
  39507. if ($16) {
  39508. $17 = (___lockfile($$02327)|0);
  39509. $26 = $17;
  39510. } else {
  39511. $26 = 0;
  39512. }
  39513. $18 = ((($$02327)) + 20|0);
  39514. $19 = HEAP32[$18>>2]|0;
  39515. $20 = ((($$02327)) + 28|0);
  39516. $21 = HEAP32[$20>>2]|0;
  39517. $22 = ($19>>>0)>($21>>>0);
  39518. if ($22) {
  39519. $23 = (___fflush_unlocked($$02327)|0);
  39520. $24 = $23 | $$02426;
  39521. $$1 = $24;
  39522. } else {
  39523. $$1 = $$02426;
  39524. }
  39525. $25 = ($26|0)==(0);
  39526. if (!($25)) {
  39527. ___unlockfile($$02327);
  39528. }
  39529. $27 = ((($$02327)) + 56|0);
  39530. $$023 = HEAP32[$27>>2]|0;
  39531. $28 = ($$023|0)==(0|0);
  39532. if ($28) {
  39533. $$024$lcssa = $$1;
  39534. break;
  39535. } else {
  39536. $$02327 = $$023;$$02426 = $$1;
  39537. }
  39538. }
  39539. }
  39540. ___ofl_unlock();
  39541. $$0 = $$024$lcssa;
  39542. } else {
  39543. $2 = ((($0)) + 76|0);
  39544. $3 = HEAP32[$2>>2]|0;
  39545. $4 = ($3|0)>(-1);
  39546. if (!($4)) {
  39547. $5 = (___fflush_unlocked($0)|0);
  39548. $$0 = $5;
  39549. break;
  39550. }
  39551. $6 = (___lockfile($0)|0);
  39552. $phitmp = ($6|0)==(0);
  39553. $7 = (___fflush_unlocked($0)|0);
  39554. if ($phitmp) {
  39555. $$0 = $7;
  39556. } else {
  39557. ___unlockfile($0);
  39558. $$0 = $7;
  39559. }
  39560. }
  39561. } while(0);
  39562. return ($$0|0);
  39563. }
  39564. function ___fflush_unlocked($0) {
  39565. $0 = $0|0;
  39566. 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;
  39567. var $9 = 0, label = 0, sp = 0;
  39568. sp = STACKTOP;
  39569. $1 = ((($0)) + 20|0);
  39570. $2 = HEAP32[$1>>2]|0;
  39571. $3 = ((($0)) + 28|0);
  39572. $4 = HEAP32[$3>>2]|0;
  39573. $5 = ($2>>>0)>($4>>>0);
  39574. if ($5) {
  39575. $6 = ((($0)) + 36|0);
  39576. $7 = HEAP32[$6>>2]|0;
  39577. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  39578. $8 = HEAP32[$1>>2]|0;
  39579. $9 = ($8|0)==(0|0);
  39580. if ($9) {
  39581. $$0 = -1;
  39582. } else {
  39583. label = 3;
  39584. }
  39585. } else {
  39586. label = 3;
  39587. }
  39588. if ((label|0) == 3) {
  39589. $10 = ((($0)) + 4|0);
  39590. $11 = HEAP32[$10>>2]|0;
  39591. $12 = ((($0)) + 8|0);
  39592. $13 = HEAP32[$12>>2]|0;
  39593. $14 = ($11>>>0)<($13>>>0);
  39594. if ($14) {
  39595. $15 = $11;
  39596. $16 = $13;
  39597. $17 = (($15) - ($16))|0;
  39598. $18 = ((($0)) + 40|0);
  39599. $19 = HEAP32[$18>>2]|0;
  39600. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  39601. }
  39602. $20 = ((($0)) + 16|0);
  39603. HEAP32[$20>>2] = 0;
  39604. HEAP32[$3>>2] = 0;
  39605. HEAP32[$1>>2] = 0;
  39606. HEAP32[$12>>2] = 0;
  39607. HEAP32[$10>>2] = 0;
  39608. $$0 = 0;
  39609. }
  39610. return ($$0|0);
  39611. }
  39612. function _fgets($0,$1,$2) {
  39613. $0 = $0|0;
  39614. $1 = $1|0;
  39615. $2 = $2|0;
  39616. 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;
  39617. 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;
  39618. 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;
  39619. var $sext$mask = 0, label = 0, sp = 0;
  39620. sp = STACKTOP;
  39621. $3 = ((($2)) + 76|0);
  39622. $4 = HEAP32[$3>>2]|0;
  39623. $5 = ($4|0)>(-1);
  39624. if ($5) {
  39625. $6 = (___lockfile($2)|0);
  39626. $17 = $6;
  39627. } else {
  39628. $17 = 0;
  39629. }
  39630. $7 = (($1) + -1)|0;
  39631. $8 = ($1|0)<(2);
  39632. $9 = ($7|0)!=(0);
  39633. if ($8) {
  39634. $10 = ((($2)) + 74|0);
  39635. $11 = HEAP8[$10>>0]|0;
  39636. $12 = $11 << 24 >> 24;
  39637. $13 = (($12) + 255)|0;
  39638. $14 = $13 | $12;
  39639. $15 = $14&255;
  39640. HEAP8[$10>>0] = $15;
  39641. $16 = ($17|0)==(0);
  39642. if (!($16)) {
  39643. ___unlockfile($2);
  39644. }
  39645. if ($9) {
  39646. $$0 = 0;
  39647. } else {
  39648. HEAP8[$0>>0] = 0;
  39649. $$0 = $0;
  39650. }
  39651. } else {
  39652. L11: do {
  39653. if ($9) {
  39654. $18 = ((($2)) + 4|0);
  39655. $19 = ((($2)) + 8|0);
  39656. $$063 = $7;$$064 = $0;
  39657. while(1) {
  39658. $20 = HEAP32[$18>>2]|0;
  39659. $21 = HEAP32[$19>>2]|0;
  39660. $22 = $20;
  39661. $23 = (($21) - ($22))|0;
  39662. $24 = (_memchr($20,10,$23)|0);
  39663. $25 = ($24|0)==(0|0);
  39664. $26 = $24;
  39665. $27 = (1 - ($22))|0;
  39666. $28 = (($27) + ($26))|0;
  39667. $29 = $25 ? $23 : $28;
  39668. $30 = ($29>>>0)<($$063>>>0);
  39669. $31 = $30 ? $29 : $$063;
  39670. _memcpy(($$064|0),($20|0),($31|0))|0;
  39671. $32 = HEAP32[$18>>2]|0;
  39672. $33 = (($32) + ($31)|0);
  39673. HEAP32[$18>>2] = $33;
  39674. $34 = (($$064) + ($31)|0);
  39675. $35 = (($$063) - ($31))|0;
  39676. $36 = ($35|0)!=(0);
  39677. $or$cond = $25 & $36;
  39678. if (!($or$cond)) {
  39679. $$1 = $34;
  39680. label = 17;
  39681. break L11;
  39682. }
  39683. $37 = HEAP32[$19>>2]|0;
  39684. $38 = ($33>>>0)<($37>>>0);
  39685. if ($38) {
  39686. $39 = ((($33)) + 1|0);
  39687. HEAP32[$18>>2] = $39;
  39688. $40 = HEAP8[$33>>0]|0;
  39689. $41 = $40&255;
  39690. $50 = $41;
  39691. } else {
  39692. $42 = (___uflow($2)|0);
  39693. $43 = ($42|0)<(0);
  39694. if ($43) {
  39695. break;
  39696. } else {
  39697. $50 = $42;
  39698. }
  39699. }
  39700. $48 = (($35) + -1)|0;
  39701. $49 = $50&255;
  39702. $51 = ((($34)) + 1|0);
  39703. HEAP8[$34>>0] = $49;
  39704. $sext$mask = $50 & 255;
  39705. $52 = ($sext$mask|0)!=(10);
  39706. $53 = ($48|0)!=(0);
  39707. $or$cond3 = $53 & $52;
  39708. if ($or$cond3) {
  39709. $$063 = $48;$$064 = $51;
  39710. } else {
  39711. $$1 = $51;
  39712. label = 17;
  39713. break L11;
  39714. }
  39715. }
  39716. $44 = ($34|0)==($0|0);
  39717. if ($44) {
  39718. $$06266 = 0;
  39719. } else {
  39720. $45 = HEAP32[$2>>2]|0;
  39721. $46 = $45 & 16;
  39722. $47 = ($46|0)==(0);
  39723. if ($47) {
  39724. $$06266 = 0;
  39725. } else {
  39726. $$1 = $34;
  39727. label = 17;
  39728. }
  39729. }
  39730. } else {
  39731. $$1 = $0;
  39732. label = 17;
  39733. }
  39734. } while(0);
  39735. if ((label|0) == 17) {
  39736. $54 = ($0|0)==(0|0);
  39737. if ($54) {
  39738. $$06266 = 0;
  39739. } else {
  39740. HEAP8[$$1>>0] = 0;
  39741. $$06266 = $0;
  39742. }
  39743. }
  39744. $55 = ($17|0)==(0);
  39745. if ($55) {
  39746. $$0 = $$06266;
  39747. } else {
  39748. ___unlockfile($2);
  39749. $$0 = $$06266;
  39750. }
  39751. }
  39752. return ($$0|0);
  39753. }
  39754. function _feof($0) {
  39755. $0 = $0|0;
  39756. 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;
  39757. sp = STACKTOP;
  39758. $1 = ((($0)) + 76|0);
  39759. $2 = HEAP32[$1>>2]|0;
  39760. $3 = ($2|0)>(-1);
  39761. if ($3) {
  39762. $6 = (___lockfile($0)|0);
  39763. $phitmp = ($6|0)==(0);
  39764. $7 = HEAP32[$0>>2]|0;
  39765. $8 = $7 >>> 4;
  39766. $$lobit = $8 & 1;
  39767. if ($phitmp) {
  39768. $$lobit9 = $$lobit;
  39769. } else {
  39770. ___unlockfile($0);
  39771. $$lobit9 = $$lobit;
  39772. }
  39773. } else {
  39774. $4 = HEAP32[$0>>2]|0;
  39775. $5 = $4 >>> 4;
  39776. $$lobit8 = $5 & 1;
  39777. $$lobit9 = $$lobit8;
  39778. }
  39779. return ($$lobit9|0);
  39780. }
  39781. function _sscanf($0,$1,$varargs) {
  39782. $0 = $0|0;
  39783. $1 = $1|0;
  39784. $varargs = $varargs|0;
  39785. var $2 = 0, $3 = 0, label = 0, sp = 0;
  39786. sp = STACKTOP;
  39787. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39788. $2 = sp;
  39789. HEAP32[$2>>2] = $varargs;
  39790. $3 = (_vsscanf($0,$1,$2)|0);
  39791. STACKTOP = sp;return ($3|0);
  39792. }
  39793. function _vsscanf($0,$1,$2) {
  39794. $0 = $0|0;
  39795. $1 = $1|0;
  39796. $2 = $2|0;
  39797. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, stop = 0;
  39798. sp = STACKTOP;
  39799. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  39800. $3 = sp;
  39801. dest=$3; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  39802. $4 = ((($3)) + 32|0);
  39803. HEAP32[$4>>2] = 11;
  39804. $5 = ((($3)) + 44|0);
  39805. HEAP32[$5>>2] = $0;
  39806. $6 = ((($3)) + 76|0);
  39807. HEAP32[$6>>2] = -1;
  39808. $7 = ((($3)) + 84|0);
  39809. HEAP32[$7>>2] = $0;
  39810. $8 = (_vfscanf($3,$1,$2)|0);
  39811. STACKTOP = sp;return ($8|0);
  39812. }
  39813. function _do_read($0,$1,$2) {
  39814. $0 = $0|0;
  39815. $1 = $1|0;
  39816. $2 = $2|0;
  39817. var $3 = 0, label = 0, sp = 0;
  39818. sp = STACKTOP;
  39819. $3 = (___string_read($0,$1,$2)|0);
  39820. return ($3|0);
  39821. }
  39822. function _vfscanf($0,$1,$2) {
  39823. $0 = $0|0;
  39824. $1 = $1|0;
  39825. $2 = $2|0;
  39826. 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;
  39827. 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;
  39828. 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;
  39829. 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;
  39830. 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;
  39831. 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;
  39832. 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;
  39833. 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;
  39834. 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;
  39835. 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;
  39836. 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;
  39837. 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;
  39838. 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;
  39839. 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;
  39840. 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;
  39841. 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;
  39842. 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;
  39843. 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;
  39844. 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;
  39845. 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;
  39846. 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;
  39847. sp = STACKTOP;
  39848. STACKTOP = STACKTOP + 288|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(288|0);
  39849. $3 = sp + 8|0;
  39850. $4 = sp + 17|0;
  39851. $5 = sp;
  39852. $6 = sp + 16|0;
  39853. $7 = ((($0)) + 76|0);
  39854. $8 = HEAP32[$7>>2]|0;
  39855. $9 = ($8|0)>(-1);
  39856. if ($9) {
  39857. $10 = (___lockfile($0)|0);
  39858. $306 = $10;
  39859. } else {
  39860. $306 = 0;
  39861. }
  39862. $11 = HEAP8[$1>>0]|0;
  39863. $12 = ($11<<24>>24)==(0);
  39864. L4: do {
  39865. if ($12) {
  39866. $$3291 = 0;
  39867. } else {
  39868. $13 = ((($0)) + 4|0);
  39869. $14 = ((($0)) + 100|0);
  39870. $15 = ((($0)) + 108|0);
  39871. $16 = ((($0)) + 8|0);
  39872. $17 = ((($4)) + 10|0);
  39873. $18 = ((($4)) + 33|0);
  39874. $$sroa$2$0$$sroa_idx13 = ((($3)) + 4|0);
  39875. $19 = ((($4)) + 46|0);
  39876. $20 = ((($4)) + 94|0);
  39877. $21 = ((($4)) + 1|0);
  39878. $22 = ((($4)) + 1|0);
  39879. $$0273429 = $1;$$0283428 = 0;$$0288425 = 0;$$0305423 = 0;$102 = 0;$24 = $11;
  39880. L6: while(1) {
  39881. $23 = $24&255;
  39882. $25 = (_isspace($23)|0);
  39883. $26 = ($25|0)==(0);
  39884. L8: do {
  39885. if ($26) {
  39886. $53 = ($24<<24>>24)==(37);
  39887. L10: do {
  39888. if ($53) {
  39889. $54 = ((($$0273429)) + 1|0);
  39890. $55 = HEAP8[$54>>0]|0;
  39891. L12: do {
  39892. switch ($55<<24>>24) {
  39893. case 37: {
  39894. break L10;
  39895. break;
  39896. }
  39897. case 42: {
  39898. $76 = ((($$0273429)) + 2|0);
  39899. $$0293 = 0;$$2275 = $76;
  39900. break;
  39901. }
  39902. default: {
  39903. $77 = $55&255;
  39904. $isdigittmp = (($77) + -48)|0;
  39905. $isdigit = ($isdigittmp>>>0)<(10);
  39906. if ($isdigit) {
  39907. $78 = ((($$0273429)) + 2|0);
  39908. $79 = HEAP8[$78>>0]|0;
  39909. $80 = ($79<<24>>24)==(36);
  39910. if ($80) {
  39911. $81 = (_arg_n($2,$isdigittmp)|0);
  39912. $82 = ((($$0273429)) + 3|0);
  39913. $$0293 = $81;$$2275 = $82;
  39914. break L12;
  39915. }
  39916. }
  39917. $arglist_current = HEAP32[$2>>2]|0;
  39918. $83 = $arglist_current;
  39919. $84 = ((0) + 4|0);
  39920. $expanded1 = $84;
  39921. $expanded = (($expanded1) - 1)|0;
  39922. $85 = (($83) + ($expanded))|0;
  39923. $86 = ((0) + 4|0);
  39924. $expanded5 = $86;
  39925. $expanded4 = (($expanded5) - 1)|0;
  39926. $expanded3 = $expanded4 ^ -1;
  39927. $87 = $85 & $expanded3;
  39928. $88 = $87;
  39929. $89 = HEAP32[$88>>2]|0;
  39930. $arglist_next = ((($88)) + 4|0);
  39931. HEAP32[$2>>2] = $arglist_next;
  39932. $$0293 = $89;$$2275 = $54;
  39933. }
  39934. }
  39935. } while(0);
  39936. $90 = HEAP8[$$2275>>0]|0;
  39937. $91 = $90&255;
  39938. $isdigittmp315414 = (($91) + -48)|0;
  39939. $isdigit316415 = ($isdigittmp315414>>>0)<(10);
  39940. if ($isdigit316415) {
  39941. $$0266417 = 0;$$3416 = $$2275;$95 = $91;
  39942. while(1) {
  39943. $92 = ($$0266417*10)|0;
  39944. $93 = (($92) + -48)|0;
  39945. $94 = (($93) + ($95))|0;
  39946. $96 = ((($$3416)) + 1|0);
  39947. $97 = HEAP8[$96>>0]|0;
  39948. $98 = $97&255;
  39949. $isdigittmp315 = (($98) + -48)|0;
  39950. $isdigit316 = ($isdigittmp315>>>0)<(10);
  39951. if ($isdigit316) {
  39952. $$0266417 = $94;$$3416 = $96;$95 = $98;
  39953. } else {
  39954. $$0266$lcssa = $94;$$3$lcssa = $96;$$lcssa355 = $97;
  39955. break;
  39956. }
  39957. }
  39958. } else {
  39959. $$0266$lcssa = 0;$$3$lcssa = $$2275;$$lcssa355 = $90;
  39960. }
  39961. $99 = ($$lcssa355<<24>>24)==(109);
  39962. $100 = ($$0293|0)!=(0|0);
  39963. $101 = ((($$3$lcssa)) + 1|0);
  39964. $$$0305 = $99 ? 0 : $$0305423;
  39965. $$327 = $99 ? 0 : $102;
  39966. $$$3 = $99 ? $101 : $$3$lcssa;
  39967. $narrow = $100 & $99;
  39968. $103 = ((($$$3)) + 1|0);
  39969. $104 = HEAP8[$$$3>>0]|0;
  39970. switch ($104<<24>>24) {
  39971. case 104: {
  39972. $105 = HEAP8[$103>>0]|0;
  39973. $106 = ($105<<24>>24)==(104);
  39974. $107 = ((($$$3)) + 2|0);
  39975. $$319 = $106 ? $107 : $103;
  39976. $$320 = $106 ? -2 : -1;
  39977. $$0268 = $$320;$$5 = $$319;
  39978. break;
  39979. }
  39980. case 108: {
  39981. $108 = HEAP8[$103>>0]|0;
  39982. $109 = ($108<<24>>24)==(108);
  39983. $110 = ((($$$3)) + 2|0);
  39984. $$321 = $109 ? $110 : $103;
  39985. $$322 = $109 ? 3 : 1;
  39986. $$0268 = $$322;$$5 = $$321;
  39987. break;
  39988. }
  39989. case 106: {
  39990. $$0268 = 3;$$5 = $103;
  39991. break;
  39992. }
  39993. case 116: case 122: {
  39994. $$0268 = 1;$$5 = $103;
  39995. break;
  39996. }
  39997. case 76: {
  39998. $$0268 = 2;$$5 = $103;
  39999. break;
  40000. }
  40001. 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: {
  40002. $$0268 = 0;$$5 = $$$3;
  40003. break;
  40004. }
  40005. default: {
  40006. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40007. label = 137;
  40008. break L6;
  40009. }
  40010. }
  40011. $111 = HEAP8[$$5>>0]|0;
  40012. $112 = $111&255;
  40013. $113 = $112 & 47;
  40014. $114 = ($113|0)==(3);
  40015. $115 = $112 | 32;
  40016. $$ = $114 ? $115 : $112;
  40017. $$$0268 = $114 ? 1 : $$0268;
  40018. $trunc = $$&255;
  40019. switch ($trunc<<24>>24) {
  40020. case 99: {
  40021. $116 = ($$0266$lcssa|0)>(1);
  40022. $$$0266 = $116 ? $$0266$lcssa : 1;
  40023. $$1267 = $$$0266;$$1284 = $$0283428;
  40024. break;
  40025. }
  40026. case 91: {
  40027. $$1267 = $$0266$lcssa;$$1284 = $$0283428;
  40028. break;
  40029. }
  40030. case 110: {
  40031. $117 = ($$0283428|0)<(0);
  40032. $118 = $117 << 31 >> 31;
  40033. _store_int($$0293,$$$0268,$$0283428,$118);
  40034. $$11 = $$5;$$1289 = $$0288425;$$2285 = $$0283428;$$6311 = $$$0305;$307 = $$327;
  40035. break L8;
  40036. break;
  40037. }
  40038. default: {
  40039. ___shlim($0,0);
  40040. while(1) {
  40041. $119 = HEAP32[$13>>2]|0;
  40042. $120 = HEAP32[$14>>2]|0;
  40043. $121 = ($119>>>0)<($120>>>0);
  40044. if ($121) {
  40045. $122 = ((($119)) + 1|0);
  40046. HEAP32[$13>>2] = $122;
  40047. $123 = HEAP8[$119>>0]|0;
  40048. $124 = $123&255;
  40049. $126 = $124;
  40050. } else {
  40051. $125 = (___shgetc($0)|0);
  40052. $126 = $125;
  40053. }
  40054. $127 = (_isspace($126)|0);
  40055. $128 = ($127|0)==(0);
  40056. if ($128) {
  40057. break;
  40058. }
  40059. }
  40060. $129 = HEAP32[$14>>2]|0;
  40061. $130 = ($129|0)==(0|0);
  40062. if ($130) {
  40063. $$pre507 = HEAP32[$13>>2]|0;
  40064. $138 = $$pre507;
  40065. } else {
  40066. $131 = HEAP32[$13>>2]|0;
  40067. $132 = ((($131)) + -1|0);
  40068. HEAP32[$13>>2] = $132;
  40069. $133 = $132;
  40070. $138 = $133;
  40071. }
  40072. $134 = HEAP32[$15>>2]|0;
  40073. $135 = HEAP32[$16>>2]|0;
  40074. $136 = (($134) + ($$0283428))|0;
  40075. $137 = (($136) + ($138))|0;
  40076. $139 = (($137) - ($135))|0;
  40077. $$1267 = $$0266$lcssa;$$1284 = $139;
  40078. }
  40079. }
  40080. ___shlim($0,$$1267);
  40081. $140 = HEAP32[$13>>2]|0;
  40082. $141 = HEAP32[$14>>2]|0;
  40083. $142 = ($140>>>0)<($141>>>0);
  40084. if ($142) {
  40085. $143 = ((($140)) + 1|0);
  40086. HEAP32[$13>>2] = $143;
  40087. $147 = $141;
  40088. } else {
  40089. $144 = (___shgetc($0)|0);
  40090. $145 = ($144|0)<(0);
  40091. if ($145) {
  40092. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40093. label = 137;
  40094. break L6;
  40095. }
  40096. $$pre509 = HEAP32[$14>>2]|0;
  40097. $147 = $$pre509;
  40098. }
  40099. $146 = ($147|0)==(0|0);
  40100. if (!($146)) {
  40101. $148 = HEAP32[$13>>2]|0;
  40102. $149 = ((($148)) + -1|0);
  40103. HEAP32[$13>>2] = $149;
  40104. }
  40105. L55: do {
  40106. switch ($trunc<<24>>24) {
  40107. case 91: case 99: case 115: {
  40108. $150 = ($$|0)==(99);
  40109. $151 = $$ | 16;
  40110. $152 = ($151|0)==(115);
  40111. L57: do {
  40112. if ($152) {
  40113. $153 = ($$|0)==(115);
  40114. _memset(($21|0),-1,256)|0;
  40115. HEAP8[$4>>0] = 0;
  40116. if ($153) {
  40117. HEAP8[$18>>0] = 0;
  40118. ;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;
  40119. $$9 = $$5;
  40120. } else {
  40121. $$9 = $$5;
  40122. }
  40123. } else {
  40124. $154 = ((($$5)) + 1|0);
  40125. $155 = HEAP8[$154>>0]|0;
  40126. $156 = ($155<<24>>24)==(94);
  40127. $157 = ((($$5)) + 2|0);
  40128. $$0292 = $156&1;
  40129. $$6 = $156 ? $157 : $154;
  40130. $158 = $156&1;
  40131. _memset(($22|0),($158|0),256)|0;
  40132. HEAP8[$4>>0] = 0;
  40133. $159 = HEAP8[$$6>>0]|0;
  40134. switch ($159<<24>>24) {
  40135. case 45: {
  40136. $$sink443 = $19;
  40137. label = 64;
  40138. break;
  40139. }
  40140. case 93: {
  40141. $$sink443 = $20;
  40142. label = 64;
  40143. break;
  40144. }
  40145. default: {
  40146. $$pre514 = $$0292 ^ 1;
  40147. $$pre515 = $$pre514&255;
  40148. $$7$ph = $$6;$$pre$phi516Z2D = $$pre515;
  40149. }
  40150. }
  40151. if ((label|0) == 64) {
  40152. label = 0;
  40153. $160 = ((($$6)) + 1|0);
  40154. $161 = $$0292 ^ 1;
  40155. $162 = $161&255;
  40156. HEAP8[$$sink443>>0] = $162;
  40157. $$7$ph = $160;$$pre$phi516Z2D = $162;
  40158. }
  40159. $$7 = $$7$ph;
  40160. while(1) {
  40161. $163 = HEAP8[$$7>>0]|0;
  40162. L69: do {
  40163. switch ($163<<24>>24) {
  40164. case 0: {
  40165. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  40166. label = 137;
  40167. break L6;
  40168. break;
  40169. }
  40170. case 93: {
  40171. $$9 = $$7;
  40172. break L57;
  40173. break;
  40174. }
  40175. case 45: {
  40176. $164 = ((($$7)) + 1|0);
  40177. $165 = HEAP8[$164>>0]|0;
  40178. switch ($165<<24>>24) {
  40179. case 93: case 0: {
  40180. $$8 = $$7;$176 = 45;
  40181. break L69;
  40182. break;
  40183. }
  40184. default: {
  40185. }
  40186. }
  40187. $166 = ((($$7)) + -1|0);
  40188. $167 = HEAP8[$166>>0]|0;
  40189. $168 = ($167&255)<($165&255);
  40190. if ($168) {
  40191. $169 = $167&255;
  40192. $$0286420 = $169;
  40193. while(1) {
  40194. $170 = (($$0286420) + 1)|0;
  40195. $171 = (($4) + ($170)|0);
  40196. HEAP8[$171>>0] = $$pre$phi516Z2D;
  40197. $172 = HEAP8[$164>>0]|0;
  40198. $173 = $172&255;
  40199. $174 = ($170|0)<($173|0);
  40200. if ($174) {
  40201. $$0286420 = $170;
  40202. } else {
  40203. $$8 = $164;$176 = $172;
  40204. break;
  40205. }
  40206. }
  40207. } else {
  40208. $$8 = $164;$176 = $165;
  40209. }
  40210. break;
  40211. }
  40212. default: {
  40213. $$8 = $$7;$176 = $163;
  40214. }
  40215. }
  40216. } while(0);
  40217. $175 = $176&255;
  40218. $177 = (($175) + 1)|0;
  40219. $178 = (($4) + ($177)|0);
  40220. HEAP8[$178>>0] = $$pre$phi516Z2D;
  40221. $179 = ((($$8)) + 1|0);
  40222. $$7 = $179;
  40223. }
  40224. }
  40225. } while(0);
  40226. $180 = (($$1267) + 1)|0;
  40227. $181 = $150 ? $180 : 31;
  40228. $182 = ($$$0268|0)==(1);
  40229. L77: do {
  40230. if ($182) {
  40231. if ($narrow) {
  40232. $183 = $181 << 2;
  40233. $184 = (_malloc($183)|0);
  40234. $185 = ($184|0)==(0|0);
  40235. if ($185) {
  40236. $$7312 = 0;$309 = 0;$narrow469 = 1;
  40237. label = 137;
  40238. break L6;
  40239. } else {
  40240. $311 = $184;
  40241. }
  40242. } else {
  40243. $311 = $$0293;
  40244. }
  40245. HEAP32[$3>>2] = 0;
  40246. HEAP32[$$sroa$2$0$$sroa_idx13>>2] = 0;
  40247. $$0276$ph = $181;$$0278$ph = 0;$$ph = $311;
  40248. L82: while(1) {
  40249. $186 = ($$ph|0)==(0|0);
  40250. $$0278$ph336 = $$0278$ph;
  40251. while(1) {
  40252. L86: while(1) {
  40253. $187 = HEAP32[$13>>2]|0;
  40254. $188 = HEAP32[$14>>2]|0;
  40255. $189 = ($187>>>0)<($188>>>0);
  40256. if ($189) {
  40257. $190 = ((($187)) + 1|0);
  40258. HEAP32[$13>>2] = $190;
  40259. $191 = HEAP8[$187>>0]|0;
  40260. $192 = $191&255;
  40261. $195 = $192;
  40262. } else {
  40263. $193 = (___shgetc($0)|0);
  40264. $195 = $193;
  40265. }
  40266. $194 = (($195) + 1)|0;
  40267. $196 = (($4) + ($194)|0);
  40268. $197 = HEAP8[$196>>0]|0;
  40269. $198 = ($197<<24>>24)==(0);
  40270. if ($198) {
  40271. break L82;
  40272. }
  40273. $199 = $195&255;
  40274. HEAP8[$6>>0] = $199;
  40275. $200 = (_mbrtowc($5,$6,1,$3)|0);
  40276. switch ($200|0) {
  40277. case -1: {
  40278. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  40279. label = 137;
  40280. break L6;
  40281. break;
  40282. }
  40283. case -2: {
  40284. break;
  40285. }
  40286. default: {
  40287. break L86;
  40288. }
  40289. }
  40290. }
  40291. if ($186) {
  40292. $$1279 = $$0278$ph336;
  40293. } else {
  40294. $201 = (($$ph) + ($$0278$ph336<<2)|0);
  40295. $202 = (($$0278$ph336) + 1)|0;
  40296. $203 = HEAP32[$5>>2]|0;
  40297. HEAP32[$201>>2] = $203;
  40298. $$1279 = $202;
  40299. }
  40300. $204 = ($$1279|0)==($$0276$ph|0);
  40301. $or$cond = $narrow & $204;
  40302. if ($or$cond) {
  40303. break;
  40304. } else {
  40305. $$0278$ph336 = $$1279;
  40306. }
  40307. }
  40308. $factor331 = $$0276$ph << 1;
  40309. $205 = $factor331 | 1;
  40310. $206 = $205 << 2;
  40311. $207 = (_realloc($$ph,$206)|0);
  40312. $208 = ($207|0)==(0|0);
  40313. if ($208) {
  40314. $$7312 = 0;$309 = $$ph;$narrow469 = 1;
  40315. label = 137;
  40316. break L6;
  40317. } else {
  40318. $$0278$ph$phi = $$0276$ph;$$0276$ph = $205;$$ph = $207;$$0278$ph = $$0278$ph$phi;
  40319. }
  40320. }
  40321. $209 = (_mbsinit($3)|0);
  40322. $210 = ($209|0)==(0);
  40323. if ($210) {
  40324. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  40325. label = 137;
  40326. break L6;
  40327. } else {
  40328. $$4282 = $$0278$ph336;$$4309 = 0;$$5299 = $$ph;$312 = $$ph;
  40329. }
  40330. } else {
  40331. if ($narrow) {
  40332. $211 = (_malloc($181)|0);
  40333. $212 = ($211|0)==(0|0);
  40334. if ($212) {
  40335. $$7312 = 0;$309 = 0;$narrow469 = 1;
  40336. label = 137;
  40337. break L6;
  40338. } else {
  40339. $$1277$ph = $181;$$2280$ph = 0;$$2307$ph = $211;
  40340. }
  40341. while(1) {
  40342. $$2280 = $$2280$ph;
  40343. while(1) {
  40344. $213 = HEAP32[$13>>2]|0;
  40345. $214 = HEAP32[$14>>2]|0;
  40346. $215 = ($213>>>0)<($214>>>0);
  40347. if ($215) {
  40348. $216 = ((($213)) + 1|0);
  40349. HEAP32[$13>>2] = $216;
  40350. $217 = HEAP8[$213>>0]|0;
  40351. $218 = $217&255;
  40352. $221 = $218;
  40353. } else {
  40354. $219 = (___shgetc($0)|0);
  40355. $221 = $219;
  40356. }
  40357. $220 = (($221) + 1)|0;
  40358. $222 = (($4) + ($220)|0);
  40359. $223 = HEAP8[$222>>0]|0;
  40360. $224 = ($223<<24>>24)==(0);
  40361. if ($224) {
  40362. $$4282 = $$2280;$$4309 = $$2307$ph;$$5299 = 0;$312 = 0;
  40363. break L77;
  40364. }
  40365. $225 = $221&255;
  40366. $226 = (($$2280) + 1)|0;
  40367. $227 = (($$2307$ph) + ($$2280)|0);
  40368. HEAP8[$227>>0] = $225;
  40369. $228 = ($226|0)==($$1277$ph|0);
  40370. if ($228) {
  40371. break;
  40372. } else {
  40373. $$2280 = $226;
  40374. }
  40375. }
  40376. $factor = $$1277$ph << 1;
  40377. $229 = $factor | 1;
  40378. $230 = (_realloc($$2307$ph,$229)|0);
  40379. $231 = ($230|0)==(0|0);
  40380. if ($231) {
  40381. $$7312 = $$2307$ph;$309 = 0;$narrow469 = 1;
  40382. label = 137;
  40383. break L6;
  40384. } else {
  40385. $$2280$ph$phi = $$1277$ph;$$1277$ph = $229;$$2307$ph = $230;$$2280$ph = $$2280$ph$phi;
  40386. }
  40387. }
  40388. }
  40389. $232 = ($$0293|0)==(0|0);
  40390. if ($232) {
  40391. $250 = $147;
  40392. while(1) {
  40393. $248 = HEAP32[$13>>2]|0;
  40394. $249 = ($248>>>0)<($250>>>0);
  40395. if ($249) {
  40396. $251 = ((($248)) + 1|0);
  40397. HEAP32[$13>>2] = $251;
  40398. $252 = HEAP8[$248>>0]|0;
  40399. $253 = $252&255;
  40400. $256 = $253;
  40401. } else {
  40402. $254 = (___shgetc($0)|0);
  40403. $256 = $254;
  40404. }
  40405. $255 = (($256) + 1)|0;
  40406. $257 = (($4) + ($255)|0);
  40407. $258 = HEAP8[$257>>0]|0;
  40408. $259 = ($258<<24>>24)==(0);
  40409. if ($259) {
  40410. $$4282 = 0;$$4309 = 0;$$5299 = 0;$312 = 0;
  40411. break L77;
  40412. }
  40413. $$pre512 = HEAP32[$14>>2]|0;
  40414. $250 = $$pre512;
  40415. }
  40416. } else {
  40417. $$3281 = 0;$235 = $147;
  40418. while(1) {
  40419. $233 = HEAP32[$13>>2]|0;
  40420. $234 = ($233>>>0)<($235>>>0);
  40421. if ($234) {
  40422. $236 = ((($233)) + 1|0);
  40423. HEAP32[$13>>2] = $236;
  40424. $237 = HEAP8[$233>>0]|0;
  40425. $238 = $237&255;
  40426. $241 = $238;
  40427. } else {
  40428. $239 = (___shgetc($0)|0);
  40429. $241 = $239;
  40430. }
  40431. $240 = (($241) + 1)|0;
  40432. $242 = (($4) + ($240)|0);
  40433. $243 = HEAP8[$242>>0]|0;
  40434. $244 = ($243<<24>>24)==(0);
  40435. if ($244) {
  40436. $$4282 = $$3281;$$4309 = $$0293;$$5299 = 0;$312 = 0;
  40437. break L77;
  40438. }
  40439. $245 = $241&255;
  40440. $246 = (($$3281) + 1)|0;
  40441. $247 = (($$0293) + ($$3281)|0);
  40442. HEAP8[$247>>0] = $245;
  40443. $$pre511 = HEAP32[$14>>2]|0;
  40444. $$3281 = $246;$235 = $$pre511;
  40445. }
  40446. }
  40447. }
  40448. } while(0);
  40449. $260 = HEAP32[$14>>2]|0;
  40450. $261 = ($260|0)==(0|0);
  40451. if ($261) {
  40452. $$pre513 = HEAP32[$13>>2]|0;
  40453. $268 = $$pre513;
  40454. } else {
  40455. $262 = HEAP32[$13>>2]|0;
  40456. $263 = ((($262)) + -1|0);
  40457. HEAP32[$13>>2] = $263;
  40458. $264 = $263;
  40459. $268 = $264;
  40460. }
  40461. $265 = HEAP32[$15>>2]|0;
  40462. $266 = HEAP32[$16>>2]|0;
  40463. $267 = (($268) - ($266))|0;
  40464. $269 = (($267) + ($265))|0;
  40465. $270 = ($269|0)==(0);
  40466. if ($270) {
  40467. $$9314$ph = $$4309;$$ph353 = $312;
  40468. label = 139;
  40469. break L6;
  40470. }
  40471. $$not = $150 ^ 1;
  40472. $271 = ($269|0)==($$1267|0);
  40473. $or$cond318 = $271 | $$not;
  40474. if (!($or$cond318)) {
  40475. $$9314$ph = $$4309;$$ph353 = $312;
  40476. label = 139;
  40477. break L6;
  40478. }
  40479. do {
  40480. if ($narrow) {
  40481. if ($182) {
  40482. HEAP32[$$0293>>2] = $$5299;
  40483. break;
  40484. } else {
  40485. HEAP32[$$0293>>2] = $$4309;
  40486. break;
  40487. }
  40488. }
  40489. } while(0);
  40490. if ($150) {
  40491. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  40492. } else {
  40493. $272 = ($$5299|0)==(0|0);
  40494. if (!($272)) {
  40495. $273 = (($$5299) + ($$4282<<2)|0);
  40496. HEAP32[$273>>2] = 0;
  40497. }
  40498. $274 = ($$4309|0)==(0|0);
  40499. if ($274) {
  40500. $$10 = $$9;$$5310 = 0;$310 = $312;
  40501. break L55;
  40502. }
  40503. $275 = (($$4309) + ($$4282)|0);
  40504. HEAP8[$275>>0] = 0;
  40505. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  40506. }
  40507. break;
  40508. }
  40509. case 120: case 88: case 112: {
  40510. $$0272 = 16;
  40511. label = 125;
  40512. break;
  40513. }
  40514. case 111: {
  40515. $$0272 = 8;
  40516. label = 125;
  40517. break;
  40518. }
  40519. case 117: case 100: {
  40520. $$0272 = 10;
  40521. label = 125;
  40522. break;
  40523. }
  40524. case 105: {
  40525. $$0272 = 0;
  40526. label = 125;
  40527. break;
  40528. }
  40529. case 71: case 103: case 70: case 102: case 69: case 101: case 65: case 97: {
  40530. $285 = (+___floatscan($0,$$$0268,0));
  40531. $286 = HEAP32[$15>>2]|0;
  40532. $287 = HEAP32[$13>>2]|0;
  40533. $288 = HEAP32[$16>>2]|0;
  40534. $289 = (($288) - ($287))|0;
  40535. $290 = ($286|0)==($289|0);
  40536. if ($290) {
  40537. $$9314$ph = $$$0305;$$ph353 = $$327;
  40538. label = 139;
  40539. break L6;
  40540. }
  40541. $291 = ($$0293|0)==(0|0);
  40542. if ($291) {
  40543. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40544. } else {
  40545. switch ($$$0268|0) {
  40546. case 0: {
  40547. $292 = $285;
  40548. HEAPF32[$$0293>>2] = $292;
  40549. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40550. break L55;
  40551. break;
  40552. }
  40553. case 1: {
  40554. HEAPF64[$$0293>>3] = $285;
  40555. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40556. break L55;
  40557. break;
  40558. }
  40559. case 2: {
  40560. HEAPF64[$$0293>>3] = $285;
  40561. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40562. break L55;
  40563. break;
  40564. }
  40565. default: {
  40566. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40567. break L55;
  40568. }
  40569. }
  40570. }
  40571. break;
  40572. }
  40573. default: {
  40574. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40575. }
  40576. }
  40577. } while(0);
  40578. do {
  40579. if ((label|0) == 125) {
  40580. label = 0;
  40581. $276 = (___intscan($0,$$0272,0,-1,-1)|0);
  40582. $277 = tempRet0;
  40583. $278 = HEAP32[$15>>2]|0;
  40584. $279 = HEAP32[$13>>2]|0;
  40585. $280 = HEAP32[$16>>2]|0;
  40586. $281 = (($280) - ($279))|0;
  40587. $282 = ($278|0)==($281|0);
  40588. if ($282) {
  40589. $$9314$ph = $$$0305;$$ph353 = $$327;
  40590. label = 139;
  40591. break L6;
  40592. }
  40593. $283 = ($$|0)==(112);
  40594. $or$cond3 = $100 & $283;
  40595. if ($or$cond3) {
  40596. $284 = $276;
  40597. HEAP32[$$0293>>2] = $284;
  40598. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40599. break;
  40600. } else {
  40601. _store_int($$0293,$$$0268,$276,$277);
  40602. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  40603. break;
  40604. }
  40605. }
  40606. } while(0);
  40607. $293 = HEAP32[$15>>2]|0;
  40608. $294 = HEAP32[$13>>2]|0;
  40609. $295 = HEAP32[$16>>2]|0;
  40610. $296 = (($293) + ($$1284))|0;
  40611. $297 = (($296) + ($294))|0;
  40612. $298 = (($297) - ($295))|0;
  40613. $299 = $100&1;
  40614. $$0288$ = (($299) + ($$0288425))|0;
  40615. $$11 = $$10;$$1289 = $$0288$;$$2285 = $298;$$6311 = $$5310;$307 = $310;
  40616. break L8;
  40617. }
  40618. } while(0);
  40619. $56 = $53&1;
  40620. $57 = (($$0273429) + ($56)|0);
  40621. ___shlim($0,0);
  40622. $58 = HEAP32[$13>>2]|0;
  40623. $59 = HEAP32[$14>>2]|0;
  40624. $60 = ($58>>>0)<($59>>>0);
  40625. if ($60) {
  40626. $61 = ((($58)) + 1|0);
  40627. HEAP32[$13>>2] = $61;
  40628. $62 = HEAP8[$58>>0]|0;
  40629. $63 = $62&255;
  40630. $68 = $63;
  40631. } else {
  40632. $64 = (___shgetc($0)|0);
  40633. $68 = $64;
  40634. }
  40635. $65 = HEAP8[$57>>0]|0;
  40636. $66 = $65&255;
  40637. $67 = ($68|0)==($66|0);
  40638. if (!($67)) {
  40639. label = 22;
  40640. break L6;
  40641. }
  40642. $75 = (($$0283428) + 1)|0;
  40643. $$11 = $57;$$1289 = $$0288425;$$2285 = $75;$$6311 = $$0305423;$307 = $102;
  40644. } else {
  40645. $$1274 = $$0273429;
  40646. while(1) {
  40647. $27 = ((($$1274)) + 1|0);
  40648. $28 = HEAP8[$27>>0]|0;
  40649. $29 = $28&255;
  40650. $30 = (_isspace($29)|0);
  40651. $31 = ($30|0)==(0);
  40652. if ($31) {
  40653. break;
  40654. } else {
  40655. $$1274 = $27;
  40656. }
  40657. }
  40658. ___shlim($0,0);
  40659. while(1) {
  40660. $32 = HEAP32[$13>>2]|0;
  40661. $33 = HEAP32[$14>>2]|0;
  40662. $34 = ($32>>>0)<($33>>>0);
  40663. if ($34) {
  40664. $35 = ((($32)) + 1|0);
  40665. HEAP32[$13>>2] = $35;
  40666. $36 = HEAP8[$32>>0]|0;
  40667. $37 = $36&255;
  40668. $39 = $37;
  40669. } else {
  40670. $38 = (___shgetc($0)|0);
  40671. $39 = $38;
  40672. }
  40673. $40 = (_isspace($39)|0);
  40674. $41 = ($40|0)==(0);
  40675. if ($41) {
  40676. break;
  40677. }
  40678. }
  40679. $42 = HEAP32[$14>>2]|0;
  40680. $43 = ($42|0)==(0|0);
  40681. if ($43) {
  40682. $$pre = HEAP32[$13>>2]|0;
  40683. $51 = $$pre;
  40684. } else {
  40685. $44 = HEAP32[$13>>2]|0;
  40686. $45 = ((($44)) + -1|0);
  40687. HEAP32[$13>>2] = $45;
  40688. $46 = $45;
  40689. $51 = $46;
  40690. }
  40691. $47 = HEAP32[$15>>2]|0;
  40692. $48 = HEAP32[$16>>2]|0;
  40693. $49 = (($47) + ($$0283428))|0;
  40694. $50 = (($49) + ($51))|0;
  40695. $52 = (($50) - ($48))|0;
  40696. $$11 = $$1274;$$1289 = $$0288425;$$2285 = $52;$$6311 = $$0305423;$307 = $102;
  40697. }
  40698. } while(0);
  40699. $300 = ((($$11)) + 1|0);
  40700. $301 = HEAP8[$300>>0]|0;
  40701. $302 = ($301<<24>>24)==(0);
  40702. if ($302) {
  40703. $$3291 = $$1289;
  40704. break L4;
  40705. } else {
  40706. $$0273429 = $300;$$0283428 = $$2285;$$0288425 = $$1289;$$0305423 = $$6311;$102 = $307;$24 = $301;
  40707. }
  40708. }
  40709. if ((label|0) == 22) {
  40710. $69 = HEAP32[$14>>2]|0;
  40711. $70 = ($69|0)==(0|0);
  40712. if (!($70)) {
  40713. $71 = HEAP32[$13>>2]|0;
  40714. $72 = ((($71)) + -1|0);
  40715. HEAP32[$13>>2] = $72;
  40716. }
  40717. $73 = ($68|0)>(-1);
  40718. $74 = ($$0288425|0)!=(0);
  40719. $or$cond5 = $74 | $73;
  40720. if ($or$cond5) {
  40721. $$3291 = $$0288425;
  40722. break;
  40723. } else {
  40724. $$1271 = 0;$$8313 = $$0305423;$308 = $102;
  40725. label = 138;
  40726. }
  40727. }
  40728. else if ((label|0) == 137) {
  40729. $$328$le441 = $narrow469&1;
  40730. $$old4 = ($$0288425|0)==(0);
  40731. if ($$old4) {
  40732. $$1271 = $$328$le441;$$8313 = $$7312;$308 = $309;
  40733. label = 138;
  40734. } else {
  40735. $$2 = $$328$le441;$$2290 = $$0288425;$$9314 = $$7312;$304 = $309;
  40736. }
  40737. }
  40738. else if ((label|0) == 139) {
  40739. $$328$le439 = $narrow&1;
  40740. $$2 = $$328$le439;$$2290 = $$0288425;$$9314 = $$9314$ph;$304 = $$ph353;
  40741. }
  40742. if ((label|0) == 138) {
  40743. $$2 = $$1271;$$2290 = -1;$$9314 = $$8313;$304 = $308;
  40744. }
  40745. $303 = ($$2|0)==(0);
  40746. if ($303) {
  40747. $$3291 = $$2290;
  40748. } else {
  40749. _free($$9314);
  40750. _free($304);
  40751. $$3291 = $$2290;
  40752. }
  40753. }
  40754. } while(0);
  40755. $305 = ($306|0)==(0);
  40756. if (!($305)) {
  40757. ___unlockfile($0);
  40758. }
  40759. STACKTOP = sp;return ($$3291|0);
  40760. }
  40761. function _arg_n($0,$1) {
  40762. $0 = $0|0;
  40763. $1 = $1|0;
  40764. 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;
  40765. var sp = 0;
  40766. sp = STACKTOP;
  40767. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  40768. $2 = sp;
  40769. $vacopy_currentptr = HEAP32[$0>>2]|0;
  40770. HEAP32[$2>>2] = $vacopy_currentptr;
  40771. $$0 = $1;
  40772. while(1) {
  40773. $3 = ($$0>>>0)>(1);
  40774. $arglist_current = HEAP32[$2>>2]|0;
  40775. $4 = $arglist_current;
  40776. $5 = ((0) + 4|0);
  40777. $expanded1 = $5;
  40778. $expanded = (($expanded1) - 1)|0;
  40779. $6 = (($4) + ($expanded))|0;
  40780. $7 = ((0) + 4|0);
  40781. $expanded5 = $7;
  40782. $expanded4 = (($expanded5) - 1)|0;
  40783. $expanded3 = $expanded4 ^ -1;
  40784. $8 = $6 & $expanded3;
  40785. $9 = $8;
  40786. $10 = HEAP32[$9>>2]|0;
  40787. $arglist_next = ((($9)) + 4|0);
  40788. HEAP32[$2>>2] = $arglist_next;
  40789. $11 = (($$0) + -1)|0;
  40790. if ($3) {
  40791. $$0 = $11;
  40792. } else {
  40793. break;
  40794. }
  40795. }
  40796. STACKTOP = sp;return ($10|0);
  40797. }
  40798. function _store_int($0,$1,$2,$3) {
  40799. $0 = $0|0;
  40800. $1 = $1|0;
  40801. $2 = $2|0;
  40802. $3 = $3|0;
  40803. var $10 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40804. sp = STACKTOP;
  40805. $4 = ($0|0)==(0|0);
  40806. L1: do {
  40807. if (!($4)) {
  40808. switch ($1|0) {
  40809. case -2: {
  40810. $5 = $2&255;
  40811. HEAP8[$0>>0] = $5;
  40812. break L1;
  40813. break;
  40814. }
  40815. case -1: {
  40816. $6 = $2&65535;
  40817. HEAP16[$0>>1] = $6;
  40818. break L1;
  40819. break;
  40820. }
  40821. case 0: {
  40822. HEAP32[$0>>2] = $2;
  40823. break L1;
  40824. break;
  40825. }
  40826. case 1: {
  40827. HEAP32[$0>>2] = $2;
  40828. break L1;
  40829. break;
  40830. }
  40831. case 3: {
  40832. $7 = $0;
  40833. $8 = $7;
  40834. HEAP32[$8>>2] = $2;
  40835. $9 = (($7) + 4)|0;
  40836. $10 = $9;
  40837. HEAP32[$10>>2] = $3;
  40838. break L1;
  40839. break;
  40840. }
  40841. default: {
  40842. break L1;
  40843. }
  40844. }
  40845. }
  40846. } while(0);
  40847. return;
  40848. }
  40849. function _mbsinit($0) {
  40850. $0 = $0|0;
  40851. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  40852. sp = STACKTOP;
  40853. $1 = ($0|0)==(0|0);
  40854. if ($1) {
  40855. $5 = 1;
  40856. } else {
  40857. $2 = HEAP32[$0>>2]|0;
  40858. $3 = ($2|0)==(0);
  40859. $5 = $3;
  40860. }
  40861. $4 = $5&1;
  40862. return ($4|0);
  40863. }
  40864. function ___string_read($0,$1,$2) {
  40865. $0 = $0|0;
  40866. $1 = $1|0;
  40867. $2 = $2|0;
  40868. 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;
  40869. sp = STACKTOP;
  40870. $3 = ((($0)) + 84|0);
  40871. $4 = HEAP32[$3>>2]|0;
  40872. $5 = (($2) + 256)|0;
  40873. $6 = (_memchr($4,0,$5)|0);
  40874. $7 = ($6|0)==(0|0);
  40875. $8 = $6;
  40876. $9 = $4;
  40877. $10 = (($8) - ($9))|0;
  40878. $$027 = $7 ? $5 : $10;
  40879. $11 = ($$027>>>0)<($2>>>0);
  40880. $$027$ = $11 ? $$027 : $2;
  40881. _memcpy(($1|0),($4|0),($$027$|0))|0;
  40882. $12 = (($4) + ($$027$)|0);
  40883. $13 = ((($0)) + 4|0);
  40884. HEAP32[$13>>2] = $12;
  40885. $14 = (($4) + ($$027)|0);
  40886. $15 = ((($0)) + 8|0);
  40887. HEAP32[$15>>2] = $14;
  40888. HEAP32[$3>>2] = $14;
  40889. return ($$027$|0);
  40890. }
  40891. function _fseek($0,$1,$2) {
  40892. $0 = $0|0;
  40893. $1 = $1|0;
  40894. $2 = $2|0;
  40895. var $3 = 0, label = 0, sp = 0;
  40896. sp = STACKTOP;
  40897. $3 = (___fseeko($0,$1,$2)|0);
  40898. return ($3|0);
  40899. }
  40900. function ___fseeko($0,$1,$2) {
  40901. $0 = $0|0;
  40902. $1 = $1|0;
  40903. $2 = $2|0;
  40904. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  40905. sp = STACKTOP;
  40906. $3 = ((($0)) + 76|0);
  40907. $4 = HEAP32[$3>>2]|0;
  40908. $5 = ($4|0)>(-1);
  40909. if ($5) {
  40910. $7 = (___lockfile($0)|0);
  40911. $phitmp = ($7|0)==(0);
  40912. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  40913. if ($phitmp) {
  40914. $9 = $8;
  40915. } else {
  40916. ___unlockfile($0);
  40917. $9 = $8;
  40918. }
  40919. } else {
  40920. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  40921. $9 = $6;
  40922. }
  40923. return ($9|0);
  40924. }
  40925. function ___fseeko_unlocked($0,$1,$2) {
  40926. $0 = $0|0;
  40927. $1 = $1|0;
  40928. $2 = $2|0;
  40929. 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;
  40930. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40931. sp = STACKTOP;
  40932. $3 = ($2|0)==(1);
  40933. if ($3) {
  40934. $4 = ((($0)) + 8|0);
  40935. $5 = HEAP32[$4>>2]|0;
  40936. $6 = ((($0)) + 4|0);
  40937. $7 = HEAP32[$6>>2]|0;
  40938. $8 = (($1) - ($5))|0;
  40939. $9 = (($8) + ($7))|0;
  40940. $$019 = $9;
  40941. } else {
  40942. $$019 = $1;
  40943. }
  40944. $10 = ((($0)) + 20|0);
  40945. $11 = HEAP32[$10>>2]|0;
  40946. $12 = ((($0)) + 28|0);
  40947. $13 = HEAP32[$12>>2]|0;
  40948. $14 = ($11>>>0)>($13>>>0);
  40949. if ($14) {
  40950. $15 = ((($0)) + 36|0);
  40951. $16 = HEAP32[$15>>2]|0;
  40952. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  40953. $17 = HEAP32[$10>>2]|0;
  40954. $18 = ($17|0)==(0|0);
  40955. if ($18) {
  40956. $$0 = -1;
  40957. } else {
  40958. label = 5;
  40959. }
  40960. } else {
  40961. label = 5;
  40962. }
  40963. if ((label|0) == 5) {
  40964. $19 = ((($0)) + 16|0);
  40965. HEAP32[$19>>2] = 0;
  40966. HEAP32[$12>>2] = 0;
  40967. HEAP32[$10>>2] = 0;
  40968. $20 = ((($0)) + 40|0);
  40969. $21 = HEAP32[$20>>2]|0;
  40970. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  40971. $23 = ($22|0)<(0);
  40972. if ($23) {
  40973. $$0 = -1;
  40974. } else {
  40975. $24 = ((($0)) + 8|0);
  40976. HEAP32[$24>>2] = 0;
  40977. $25 = ((($0)) + 4|0);
  40978. HEAP32[$25>>2] = 0;
  40979. $26 = HEAP32[$0>>2]|0;
  40980. $27 = $26 & -17;
  40981. HEAP32[$0>>2] = $27;
  40982. $$0 = 0;
  40983. }
  40984. }
  40985. return ($$0|0);
  40986. }
  40987. function _strstr($0,$1) {
  40988. $0 = $0|0;
  40989. $1 = $1|0;
  40990. 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;
  40991. 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;
  40992. sp = STACKTOP;
  40993. $2 = HEAP8[$1>>0]|0;
  40994. $3 = ($2<<24>>24)==(0);
  40995. do {
  40996. if ($3) {
  40997. $$0 = $0;
  40998. } else {
  40999. $4 = $2 << 24 >> 24;
  41000. $5 = (_strchr($0,$4)|0);
  41001. $6 = ($5|0)==(0|0);
  41002. if ($6) {
  41003. $$0 = 0;
  41004. } else {
  41005. $7 = ((($1)) + 1|0);
  41006. $8 = HEAP8[$7>>0]|0;
  41007. $9 = ($8<<24>>24)==(0);
  41008. if ($9) {
  41009. $$0 = $5;
  41010. } else {
  41011. $10 = ((($5)) + 1|0);
  41012. $11 = HEAP8[$10>>0]|0;
  41013. $12 = ($11<<24>>24)==(0);
  41014. if ($12) {
  41015. $$0 = 0;
  41016. } else {
  41017. $13 = ((($1)) + 2|0);
  41018. $14 = HEAP8[$13>>0]|0;
  41019. $15 = ($14<<24>>24)==(0);
  41020. if ($15) {
  41021. $16 = (_twobyte_strstr($5,$1)|0);
  41022. $$0 = $16;
  41023. break;
  41024. }
  41025. $17 = ((($5)) + 2|0);
  41026. $18 = HEAP8[$17>>0]|0;
  41027. $19 = ($18<<24>>24)==(0);
  41028. if ($19) {
  41029. $$0 = 0;
  41030. } else {
  41031. $20 = ((($1)) + 3|0);
  41032. $21 = HEAP8[$20>>0]|0;
  41033. $22 = ($21<<24>>24)==(0);
  41034. if ($22) {
  41035. $23 = (_threebyte_strstr($5,$1)|0);
  41036. $$0 = $23;
  41037. break;
  41038. }
  41039. $24 = ((($5)) + 3|0);
  41040. $25 = HEAP8[$24>>0]|0;
  41041. $26 = ($25<<24>>24)==(0);
  41042. if ($26) {
  41043. $$0 = 0;
  41044. } else {
  41045. $27 = ((($1)) + 4|0);
  41046. $28 = HEAP8[$27>>0]|0;
  41047. $29 = ($28<<24>>24)==(0);
  41048. if ($29) {
  41049. $30 = (_fourbyte_strstr($5,$1)|0);
  41050. $$0 = $30;
  41051. break;
  41052. } else {
  41053. $31 = (_twoway_strstr($5,$1)|0);
  41054. $$0 = $31;
  41055. break;
  41056. }
  41057. }
  41058. }
  41059. }
  41060. }
  41061. }
  41062. }
  41063. } while(0);
  41064. return ($$0|0);
  41065. }
  41066. function _twobyte_strstr($0,$1) {
  41067. $0 = $0|0;
  41068. $1 = $1|0;
  41069. 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;
  41070. var label = 0, sp = 0;
  41071. sp = STACKTOP;
  41072. $2 = HEAP8[$1>>0]|0;
  41073. $3 = $2&255;
  41074. $4 = $3 << 8;
  41075. $5 = ((($1)) + 1|0);
  41076. $6 = HEAP8[$5>>0]|0;
  41077. $7 = $6&255;
  41078. $8 = $4 | $7;
  41079. $9 = HEAP8[$0>>0]|0;
  41080. $10 = $9&255;
  41081. $$sink$in = $10;$$sink17$sink = $0;
  41082. while(1) {
  41083. $11 = ((($$sink17$sink)) + 1|0);
  41084. $12 = HEAP8[$11>>0]|0;
  41085. $13 = ($12<<24>>24)==(0);
  41086. if ($13) {
  41087. $$lcssa = 0;
  41088. break;
  41089. }
  41090. $$sink = $$sink$in << 8;
  41091. $14 = $12&255;
  41092. $$sink$masked = $$sink & 65280;
  41093. $15 = $14 | $$sink$masked;
  41094. $16 = ($15|0)==($8|0);
  41095. if ($16) {
  41096. $$lcssa = $$sink17$sink;
  41097. break;
  41098. } else {
  41099. $$sink$in = $15;$$sink17$sink = $11;
  41100. }
  41101. }
  41102. return ($$lcssa|0);
  41103. }
  41104. function _threebyte_strstr($0,$1) {
  41105. $0 = $0|0;
  41106. $1 = $1|0;
  41107. 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;
  41108. 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;
  41109. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  41110. sp = STACKTOP;
  41111. $2 = HEAP8[$1>>0]|0;
  41112. $3 = $2&255;
  41113. $4 = $3 << 24;
  41114. $5 = ((($1)) + 1|0);
  41115. $6 = HEAP8[$5>>0]|0;
  41116. $7 = $6&255;
  41117. $8 = $7 << 16;
  41118. $9 = $8 | $4;
  41119. $10 = ((($1)) + 2|0);
  41120. $11 = HEAP8[$10>>0]|0;
  41121. $12 = $11&255;
  41122. $13 = $12 << 8;
  41123. $14 = $9 | $13;
  41124. $15 = HEAP8[$0>>0]|0;
  41125. $16 = $15&255;
  41126. $17 = $16 << 24;
  41127. $18 = ((($0)) + 1|0);
  41128. $19 = HEAP8[$18>>0]|0;
  41129. $20 = $19&255;
  41130. $21 = $20 << 16;
  41131. $22 = $21 | $17;
  41132. $23 = ((($0)) + 2|0);
  41133. $24 = HEAP8[$23>>0]|0;
  41134. $25 = $24&255;
  41135. $26 = $25 << 8;
  41136. $27 = $22 | $26;
  41137. $28 = ($24<<24>>24)!=(0);
  41138. $$not17 = $28 ^ 1;
  41139. $29 = ($27|0)==($14|0);
  41140. $or$cond18 = $29 | $$not17;
  41141. if ($or$cond18) {
  41142. $$016$lcssa = $23;$$lcssa = $28;
  41143. } else {
  41144. $$01619 = $23;$$020 = $27;
  41145. while(1) {
  41146. $30 = ((($$01619)) + 1|0);
  41147. $31 = HEAP8[$30>>0]|0;
  41148. $32 = $31&255;
  41149. $33 = $32 | $$020;
  41150. $34 = $33 << 8;
  41151. $35 = ($31<<24>>24)!=(0);
  41152. $$not = $35 ^ 1;
  41153. $36 = ($34|0)==($14|0);
  41154. $or$cond = $36 | $$not;
  41155. if ($or$cond) {
  41156. $$016$lcssa = $30;$$lcssa = $35;
  41157. break;
  41158. } else {
  41159. $$01619 = $30;$$020 = $34;
  41160. }
  41161. }
  41162. }
  41163. $37 = ((($$016$lcssa)) + -2|0);
  41164. $38 = $$lcssa ? $37 : 0;
  41165. return ($38|0);
  41166. }
  41167. function _fourbyte_strstr($0,$1) {
  41168. $0 = $0|0;
  41169. $1 = $1|0;
  41170. 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;
  41171. 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;
  41172. 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;
  41173. sp = STACKTOP;
  41174. $2 = HEAP8[$1>>0]|0;
  41175. $3 = $2&255;
  41176. $4 = $3 << 24;
  41177. $5 = ((($1)) + 1|0);
  41178. $6 = HEAP8[$5>>0]|0;
  41179. $7 = $6&255;
  41180. $8 = $7 << 16;
  41181. $9 = $8 | $4;
  41182. $10 = ((($1)) + 2|0);
  41183. $11 = HEAP8[$10>>0]|0;
  41184. $12 = $11&255;
  41185. $13 = $12 << 8;
  41186. $14 = $9 | $13;
  41187. $15 = ((($1)) + 3|0);
  41188. $16 = HEAP8[$15>>0]|0;
  41189. $17 = $16&255;
  41190. $18 = $14 | $17;
  41191. $19 = HEAP8[$0>>0]|0;
  41192. $20 = $19&255;
  41193. $21 = $20 << 24;
  41194. $22 = ((($0)) + 1|0);
  41195. $23 = HEAP8[$22>>0]|0;
  41196. $24 = $23&255;
  41197. $25 = $24 << 16;
  41198. $26 = $25 | $21;
  41199. $27 = ((($0)) + 2|0);
  41200. $28 = HEAP8[$27>>0]|0;
  41201. $29 = $28&255;
  41202. $30 = $29 << 8;
  41203. $31 = $26 | $30;
  41204. $32 = ((($0)) + 3|0);
  41205. $33 = HEAP8[$32>>0]|0;
  41206. $34 = $33&255;
  41207. $35 = $34 | $31;
  41208. $36 = ($33<<24>>24)!=(0);
  41209. $$not22 = $36 ^ 1;
  41210. $37 = ($35|0)==($18|0);
  41211. $or$cond23 = $37 | $$not22;
  41212. if ($or$cond23) {
  41213. $$lcssa = $36;$$sink21$lcssa = $32;
  41214. } else {
  41215. $$sink2124 = $32;$39 = $35;
  41216. while(1) {
  41217. $38 = $39 << 8;
  41218. $40 = ((($$sink2124)) + 1|0);
  41219. $41 = HEAP8[$40>>0]|0;
  41220. $42 = $41&255;
  41221. $43 = $42 | $38;
  41222. $44 = ($41<<24>>24)!=(0);
  41223. $$not = $44 ^ 1;
  41224. $45 = ($43|0)==($18|0);
  41225. $or$cond = $45 | $$not;
  41226. if ($or$cond) {
  41227. $$lcssa = $44;$$sink21$lcssa = $40;
  41228. break;
  41229. } else {
  41230. $$sink2124 = $40;$39 = $43;
  41231. }
  41232. }
  41233. }
  41234. $46 = ((($$sink21$lcssa)) + -3|0);
  41235. $47 = $$lcssa ? $46 : 0;
  41236. return ($47|0);
  41237. }
  41238. function _twoway_strstr($0,$1) {
  41239. $0 = $0|0;
  41240. $1 = $1|0;
  41241. 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;
  41242. 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;
  41243. 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;
  41244. 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;
  41245. 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;
  41246. 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;
  41247. 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;
  41248. 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;
  41249. 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;
  41250. sp = STACKTOP;
  41251. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  41252. $2 = sp + 1024|0;
  41253. $3 = sp;
  41254. ;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;
  41255. $4 = HEAP8[$1>>0]|0;
  41256. $cond265 = ($4<<24>>24)==(0);
  41257. L1: do {
  41258. if ($cond265) {
  41259. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  41260. label = 27;
  41261. } else {
  41262. $5 = $4&255;
  41263. $$0187266 = 0;$12 = $4;$20 = $5;
  41264. while(1) {
  41265. $8 = (($0) + ($$0187266)|0);
  41266. $9 = HEAP8[$8>>0]|0;
  41267. $10 = ($9<<24>>24)==(0);
  41268. if ($10) {
  41269. $$3 = 0;
  41270. break L1;
  41271. }
  41272. $11 = $12 & 31;
  41273. $13 = $11&255;
  41274. $14 = 1 << $13;
  41275. $div188 = ($12&255) >>> 5;
  41276. $15 = $div188&255;
  41277. $16 = (($2) + ($15<<2)|0);
  41278. $17 = HEAP32[$16>>2]|0;
  41279. $18 = $17 | $14;
  41280. HEAP32[$16>>2] = $18;
  41281. $7 = (($$0187266) + 1)|0;
  41282. $19 = (($3) + ($20<<2)|0);
  41283. HEAP32[$19>>2] = $7;
  41284. $21 = (($1) + ($7)|0);
  41285. $22 = HEAP8[$21>>0]|0;
  41286. $23 = $22&255;
  41287. $cond = ($22<<24>>24)==(0);
  41288. if ($cond) {
  41289. break;
  41290. } else {
  41291. $$0187266 = $7;$12 = $22;$20 = $23;
  41292. }
  41293. }
  41294. $6 = ($7>>>0)>(1);
  41295. if ($6) {
  41296. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  41297. L7: while(1) {
  41298. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  41299. while(1) {
  41300. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  41301. L11: while(1) {
  41302. $$0179244 = 1;$31 = $131;
  41303. while(1) {
  41304. $27 = (($$0179244) + ($$0185$ph261))|0;
  41305. $28 = (($1) + ($27)|0);
  41306. $29 = HEAP8[$28>>0]|0;
  41307. $30 = (($1) + ($31)|0);
  41308. $32 = HEAP8[$30>>0]|0;
  41309. $33 = ($29<<24>>24)==($32<<24>>24);
  41310. if (!($33)) {
  41311. break L11;
  41312. }
  41313. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  41314. $25 = (($$0179244) + 1)|0;
  41315. if ($34) {
  41316. break;
  41317. }
  41318. $24 = (($25) + ($$0183$ph200250))|0;
  41319. $26 = ($24>>>0)<($7>>>0);
  41320. if ($26) {
  41321. $$0179244 = $25;$31 = $24;
  41322. } else {
  41323. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  41324. break L7;
  41325. }
  41326. }
  41327. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  41328. $36 = (($35) + 1)|0;
  41329. $37 = ($36>>>0)<($7>>>0);
  41330. if ($37) {
  41331. $$0183$ph200250 = $35;$131 = $36;
  41332. } else {
  41333. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  41334. break L7;
  41335. }
  41336. }
  41337. $38 = ($29&255)>($32&255);
  41338. $39 = (($31) - ($$0185$ph261))|0;
  41339. if (!($38)) {
  41340. break;
  41341. }
  41342. $43 = (($31) + 1)|0;
  41343. $44 = ($43>>>0)<($7>>>0);
  41344. if ($44) {
  41345. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  41346. } else {
  41347. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  41348. break L7;
  41349. }
  41350. }
  41351. $40 = (($$0183$ph200250) + 1)|0;
  41352. $41 = (($$0183$ph200250) + 2)|0;
  41353. $42 = ($41>>>0)<($7>>>0);
  41354. if ($42) {
  41355. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  41356. } else {
  41357. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  41358. break;
  41359. }
  41360. }
  41361. if ($6) {
  41362. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  41363. while(1) {
  41364. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  41365. while(1) {
  41366. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  41367. L26: while(1) {
  41368. $$1180224 = 1;$52 = $133;
  41369. while(1) {
  41370. $48 = (($$1180224) + ($$1186$ph240))|0;
  41371. $49 = (($1) + ($48)|0);
  41372. $50 = HEAP8[$49>>0]|0;
  41373. $51 = (($1) + ($52)|0);
  41374. $53 = HEAP8[$51>>0]|0;
  41375. $54 = ($50<<24>>24)==($53<<24>>24);
  41376. if (!($54)) {
  41377. break L26;
  41378. }
  41379. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  41380. $46 = (($$1180224) + 1)|0;
  41381. if ($55) {
  41382. break;
  41383. }
  41384. $45 = (($46) + ($$1184$ph196229))|0;
  41385. $47 = ($45>>>0)<($7>>>0);
  41386. if ($47) {
  41387. $$1180224 = $46;$52 = $45;
  41388. } else {
  41389. $$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;
  41390. label = 27;
  41391. break L1;
  41392. }
  41393. }
  41394. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  41395. $57 = (($56) + 1)|0;
  41396. $58 = ($57>>>0)<($7>>>0);
  41397. if ($58) {
  41398. $$1184$ph196229 = $56;$133 = $57;
  41399. } else {
  41400. $$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;
  41401. label = 27;
  41402. break L1;
  41403. }
  41404. }
  41405. $59 = ($50&255)<($53&255);
  41406. $60 = (($52) - ($$1186$ph240))|0;
  41407. if (!($59)) {
  41408. break;
  41409. }
  41410. $64 = (($52) + 1)|0;
  41411. $65 = ($64>>>0)<($7>>>0);
  41412. if ($65) {
  41413. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  41414. } else {
  41415. $$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;
  41416. label = 27;
  41417. break L1;
  41418. }
  41419. }
  41420. $61 = (($$1184$ph196229) + 1)|0;
  41421. $62 = (($$1184$ph196229) + 2)|0;
  41422. $63 = ($62>>>0)<($7>>>0);
  41423. if ($63) {
  41424. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  41425. } else {
  41426. $$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;
  41427. label = 27;
  41428. break;
  41429. }
  41430. }
  41431. } else {
  41432. $$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;
  41433. label = 27;
  41434. }
  41435. } else {
  41436. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  41437. label = 27;
  41438. }
  41439. }
  41440. } while(0);
  41441. L36: do {
  41442. if ((label|0) == 27) {
  41443. $66 = (($$1186$ph$lcssa) + 1)|0;
  41444. $67 = (($$0185$ph$lcssa322) + 1)|0;
  41445. $68 = ($66>>>0)>($67>>>0);
  41446. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  41447. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  41448. $69 = (($1) + ($$1176$$0175)|0);
  41449. $70 = (($$1186$$0185) + 1)|0;
  41450. $71 = (_memcmp($1,$69,$70)|0);
  41451. $72 = ($71|0)==(0);
  41452. if ($72) {
  41453. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  41454. $$0168 = $77;$$3178 = $$1176$$0175;
  41455. } else {
  41456. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  41457. $74 = (($73) + -1)|0;
  41458. $75 = ($$1186$$0185>>>0)>($74>>>0);
  41459. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  41460. $76 = (($$1186$$0185$) + 1)|0;
  41461. $$0168 = 0;$$3178 = $76;
  41462. }
  41463. $78 = $$0187$lcssa320321 | 63;
  41464. $79 = (($$0187$lcssa320321) + -1)|0;
  41465. $80 = ($$0168|0)!=(0);
  41466. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  41467. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  41468. while(1) {
  41469. $82 = $$0170;
  41470. $83 = $$0166;
  41471. $84 = (($82) - ($83))|0;
  41472. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  41473. do {
  41474. if ($85) {
  41475. $86 = (_memchr($$0170,0,$78)|0);
  41476. $87 = ($86|0)==(0|0);
  41477. if ($87) {
  41478. $91 = (($$0170) + ($78)|0);
  41479. $$3173 = $91;
  41480. break;
  41481. } else {
  41482. $88 = $86;
  41483. $89 = (($88) - ($83))|0;
  41484. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  41485. if ($90) {
  41486. $$3 = 0;
  41487. break L36;
  41488. } else {
  41489. $$3173 = $86;
  41490. break;
  41491. }
  41492. }
  41493. } else {
  41494. $$3173 = $$0170;
  41495. }
  41496. } while(0);
  41497. $92 = (($$0166) + ($79)|0);
  41498. $93 = HEAP8[$92>>0]|0;
  41499. $div = ($93&255) >>> 5;
  41500. $94 = $div&255;
  41501. $95 = (($2) + ($94<<2)|0);
  41502. $96 = HEAP32[$95>>2]|0;
  41503. $97 = $93 & 31;
  41504. $98 = $97&255;
  41505. $99 = 1 << $98;
  41506. $100 = $99 & $96;
  41507. $101 = ($100|0)==(0);
  41508. L50: do {
  41509. if ($101) {
  41510. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  41511. } else {
  41512. $102 = $93&255;
  41513. $103 = (($3) + ($102<<2)|0);
  41514. $104 = HEAP32[$103>>2]|0;
  41515. $105 = (($$0187$lcssa320321) - ($104))|0;
  41516. $106 = ($105|0)==(0);
  41517. if (!($106)) {
  41518. $107 = ($$0169|0)!=(0);
  41519. $or$cond = $80 & $107;
  41520. $108 = ($105>>>0)<($$3178>>>0);
  41521. $or$cond190 = $or$cond & $108;
  41522. $$2181 = $or$cond190 ? $81 : $105;
  41523. $$0169$be = 0;$$2181$sink = $$2181;
  41524. break;
  41525. }
  41526. $110 = ($70>>>0)>($$0169>>>0);
  41527. $111 = $110 ? $70 : $$0169;
  41528. $112 = (($1) + ($111)|0);
  41529. $113 = HEAP8[$112>>0]|0;
  41530. $cond191222 = ($113<<24>>24)==(0);
  41531. L55: do {
  41532. if ($cond191222) {
  41533. $$4 = $70;
  41534. } else {
  41535. $$3182223 = $111;$117 = $113;
  41536. while(1) {
  41537. $114 = (($$0166) + ($$3182223)|0);
  41538. $115 = HEAP8[$114>>0]|0;
  41539. $116 = ($117<<24>>24)==($115<<24>>24);
  41540. if (!($116)) {
  41541. break;
  41542. }
  41543. $118 = (($$3182223) + 1)|0;
  41544. $119 = (($1) + ($118)|0);
  41545. $120 = HEAP8[$119>>0]|0;
  41546. $cond191 = ($120<<24>>24)==(0);
  41547. if ($cond191) {
  41548. $$4 = $70;
  41549. break L55;
  41550. } else {
  41551. $$3182223 = $118;$117 = $120;
  41552. }
  41553. }
  41554. $121 = (($$3182223) - ($$1186$$0185))|0;
  41555. $$0169$be = 0;$$2181$sink = $121;
  41556. break L50;
  41557. }
  41558. } while(0);
  41559. while(1) {
  41560. $122 = ($$4>>>0)>($$0169>>>0);
  41561. if (!($122)) {
  41562. $$3 = $$0166;
  41563. break L36;
  41564. }
  41565. $123 = (($$4) + -1)|0;
  41566. $124 = (($1) + ($123)|0);
  41567. $125 = HEAP8[$124>>0]|0;
  41568. $126 = (($$0166) + ($123)|0);
  41569. $127 = HEAP8[$126>>0]|0;
  41570. $128 = ($125<<24>>24)==($127<<24>>24);
  41571. if ($128) {
  41572. $$4 = $123;
  41573. } else {
  41574. $$0169$be = $$0168;$$2181$sink = $$3178;
  41575. break;
  41576. }
  41577. }
  41578. }
  41579. } while(0);
  41580. $109 = (($$0166) + ($$2181$sink)|0);
  41581. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  41582. }
  41583. }
  41584. } while(0);
  41585. STACKTOP = sp;return ($$3|0);
  41586. }
  41587. function _strrchr($0,$1) {
  41588. $0 = $0|0;
  41589. $1 = $1|0;
  41590. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  41591. sp = STACKTOP;
  41592. $2 = (_strlen($0)|0);
  41593. $3 = (($2) + 1)|0;
  41594. $4 = (___memrchr($0,$1,$3)|0);
  41595. return ($4|0);
  41596. }
  41597. function ___memrchr($0,$1,$2) {
  41598. $0 = $0|0;
  41599. $1 = $1|0;
  41600. $2 = $2|0;
  41601. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  41602. sp = STACKTOP;
  41603. $3 = $1&255;
  41604. $$09 = $2;
  41605. while(1) {
  41606. $4 = (($$09) + -1)|0;
  41607. $5 = ($$09|0)==(0);
  41608. if ($5) {
  41609. $$0 = 0;
  41610. break;
  41611. }
  41612. $6 = (($0) + ($4)|0);
  41613. $7 = HEAP8[$6>>0]|0;
  41614. $8 = ($7<<24>>24)==($3<<24>>24);
  41615. if ($8) {
  41616. $$0 = $6;
  41617. break;
  41618. } else {
  41619. $$09 = $4;
  41620. }
  41621. }
  41622. return ($$0|0);
  41623. }
  41624. function _strspn($0,$1) {
  41625. $0 = $0|0;
  41626. $1 = $1|0;
  41627. 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;
  41628. 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;
  41629. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  41630. sp = STACKTOP;
  41631. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  41632. $2 = sp;
  41633. ;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;
  41634. $3 = HEAP8[$1>>0]|0;
  41635. $4 = ($3<<24>>24)==(0);
  41636. do {
  41637. if ($4) {
  41638. $$0 = 0;
  41639. } else {
  41640. $5 = ((($1)) + 1|0);
  41641. $6 = HEAP8[$5>>0]|0;
  41642. $7 = ($6<<24>>24)==(0);
  41643. if ($7) {
  41644. $$020 = $0;
  41645. while(1) {
  41646. $8 = HEAP8[$$020>>0]|0;
  41647. $9 = ($8<<24>>24)==($3<<24>>24);
  41648. $10 = ((($$020)) + 1|0);
  41649. if ($9) {
  41650. $$020 = $10;
  41651. } else {
  41652. break;
  41653. }
  41654. }
  41655. $11 = $$020;
  41656. $12 = $0;
  41657. $13 = (($11) - ($12))|0;
  41658. $$0 = $13;
  41659. break;
  41660. } else {
  41661. $$01925 = $1;$17 = $3;
  41662. }
  41663. while(1) {
  41664. $16 = $17 & 31;
  41665. $18 = $16&255;
  41666. $19 = 1 << $18;
  41667. $div21 = ($17&255) >>> 5;
  41668. $20 = $div21&255;
  41669. $21 = (($2) + ($20<<2)|0);
  41670. $22 = HEAP32[$21>>2]|0;
  41671. $23 = $22 | $19;
  41672. HEAP32[$21>>2] = $23;
  41673. $24 = ((($$01925)) + 1|0);
  41674. $25 = HEAP8[$24>>0]|0;
  41675. $26 = ($25<<24>>24)==(0);
  41676. if ($26) {
  41677. break;
  41678. } else {
  41679. $$01925 = $24;$17 = $25;
  41680. }
  41681. }
  41682. $14 = HEAP8[$0>>0]|0;
  41683. $15 = ($14<<24>>24)==(0);
  41684. L10: do {
  41685. if ($15) {
  41686. $$1$lcssa = $0;
  41687. } else {
  41688. $$123 = $0;$27 = $14;
  41689. while(1) {
  41690. $div = ($27&255) >>> 5;
  41691. $28 = $div&255;
  41692. $29 = (($2) + ($28<<2)|0);
  41693. $30 = HEAP32[$29>>2]|0;
  41694. $31 = $27 & 31;
  41695. $32 = $31&255;
  41696. $33 = 1 << $32;
  41697. $34 = $30 & $33;
  41698. $35 = ($34|0)==(0);
  41699. if ($35) {
  41700. $$1$lcssa = $$123;
  41701. break L10;
  41702. }
  41703. $36 = ((($$123)) + 1|0);
  41704. $37 = HEAP8[$36>>0]|0;
  41705. $38 = ($37<<24>>24)==(0);
  41706. if ($38) {
  41707. $$1$lcssa = $36;
  41708. break;
  41709. } else {
  41710. $$123 = $36;$27 = $37;
  41711. }
  41712. }
  41713. }
  41714. } while(0);
  41715. $39 = $$1$lcssa;
  41716. $40 = $0;
  41717. $41 = (($39) - ($40))|0;
  41718. $$0 = $41;
  41719. }
  41720. } while(0);
  41721. STACKTOP = sp;return ($$0|0);
  41722. }
  41723. function _srand($0) {
  41724. $0 = $0|0;
  41725. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  41726. sp = STACKTOP;
  41727. $1 = (($0) + -1)|0;
  41728. $2 = 19464;
  41729. $3 = $2;
  41730. HEAP32[$3>>2] = $1;
  41731. $4 = (($2) + 4)|0;
  41732. $5 = $4;
  41733. HEAP32[$5>>2] = 0;
  41734. return;
  41735. }
  41736. function _fread($0,$1,$2,$3) {
  41737. $0 = $0|0;
  41738. $1 = $1|0;
  41739. $2 = $2|0;
  41740. $3 = $3|0;
  41741. 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;
  41742. 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;
  41743. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  41744. sp = STACKTOP;
  41745. $4 = Math_imul($2, $1)|0;
  41746. $5 = ($1|0)==(0);
  41747. $$ = $5 ? 0 : $2;
  41748. $6 = ((($3)) + 76|0);
  41749. $7 = HEAP32[$6>>2]|0;
  41750. $8 = ($7|0)>(-1);
  41751. if ($8) {
  41752. $9 = (___lockfile($3)|0);
  41753. $36 = $9;
  41754. } else {
  41755. $36 = 0;
  41756. }
  41757. $10 = ((($3)) + 74|0);
  41758. $11 = HEAP8[$10>>0]|0;
  41759. $12 = $11 << 24 >> 24;
  41760. $13 = (($12) + 255)|0;
  41761. $14 = $13 | $12;
  41762. $15 = $14&255;
  41763. HEAP8[$10>>0] = $15;
  41764. $16 = ((($3)) + 8|0);
  41765. $17 = HEAP32[$16>>2]|0;
  41766. $18 = ((($3)) + 4|0);
  41767. $19 = HEAP32[$18>>2]|0;
  41768. $20 = $19;
  41769. $21 = (($17) - ($20))|0;
  41770. $22 = ($21|0)>(0);
  41771. $23 = ($21>>>0)<($4>>>0);
  41772. $$57 = $23 ? $21 : $4;
  41773. if ($22) {
  41774. $24 = (($4) - ($$57))|0;
  41775. $25 = (($0) + ($$57)|0);
  41776. _memcpy(($0|0),($19|0),($$57|0))|0;
  41777. $26 = (($19) + ($$57)|0);
  41778. HEAP32[$18>>2] = $26;
  41779. $$054$ph = $24;$$056$ph = $25;
  41780. } else {
  41781. $$054$ph = $4;$$056$ph = $0;
  41782. }
  41783. $27 = ($$054$ph|0)==(0);
  41784. L7: do {
  41785. if ($27) {
  41786. label = 13;
  41787. } else {
  41788. $28 = ((($3)) + 32|0);
  41789. $$05460 = $$054$ph;$$05659 = $$056$ph;
  41790. while(1) {
  41791. $29 = (___toread($3)|0);
  41792. $30 = ($29|0)==(0);
  41793. if (!($30)) {
  41794. break;
  41795. }
  41796. $31 = HEAP32[$28>>2]|0;
  41797. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  41798. $33 = (($32) + 1)|0;
  41799. $34 = ($33>>>0)<(2);
  41800. if ($34) {
  41801. break;
  41802. }
  41803. $39 = (($$05460) - ($32))|0;
  41804. $40 = (($$05659) + ($32)|0);
  41805. $41 = ($39|0)==(0);
  41806. if ($41) {
  41807. label = 13;
  41808. break L7;
  41809. } else {
  41810. $$05460 = $39;$$05659 = $40;
  41811. }
  41812. }
  41813. $35 = ($36|0)==(0);
  41814. if (!($35)) {
  41815. ___unlockfile($3);
  41816. }
  41817. $37 = (($4) - ($$05460))|0;
  41818. $38 = (($37>>>0) / ($1>>>0))&-1;
  41819. $$0 = $38;
  41820. }
  41821. } while(0);
  41822. if ((label|0) == 13) {
  41823. $42 = ($36|0)==(0);
  41824. if ($42) {
  41825. $$0 = $$;
  41826. } else {
  41827. ___unlockfile($3);
  41828. $$0 = $$;
  41829. }
  41830. }
  41831. return ($$0|0);
  41832. }
  41833. function _vprintf($0,$1) {
  41834. $0 = $0|0;
  41835. $1 = $1|0;
  41836. var $2 = 0, $3 = 0, label = 0, sp = 0;
  41837. sp = STACKTOP;
  41838. $2 = HEAP32[1017]|0;
  41839. $3 = (_vfprintf($2,$0,$1)|0);
  41840. return ($3|0);
  41841. }
  41842. function _strcspn($0,$1) {
  41843. $0 = $0|0;
  41844. $1 = $1|0;
  41845. 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;
  41846. 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;
  41847. var $div20 = 0, label = 0, sp = 0;
  41848. sp = STACKTOP;
  41849. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  41850. $2 = sp;
  41851. $3 = HEAP8[$1>>0]|0;
  41852. $4 = ($3<<24>>24)==(0);
  41853. L1: do {
  41854. if ($4) {
  41855. label = 3;
  41856. } else {
  41857. $5 = ((($1)) + 1|0);
  41858. $6 = HEAP8[$5>>0]|0;
  41859. $7 = ($6<<24>>24)==(0);
  41860. if ($7) {
  41861. label = 3;
  41862. } else {
  41863. ;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;
  41864. $$01824 = $1;$13 = $3;
  41865. while(1) {
  41866. $12 = $13 & 31;
  41867. $14 = $12&255;
  41868. $15 = 1 << $14;
  41869. $div20 = ($13&255) >>> 5;
  41870. $16 = $div20&255;
  41871. $17 = (($2) + ($16<<2)|0);
  41872. $18 = HEAP32[$17>>2]|0;
  41873. $19 = $18 | $15;
  41874. HEAP32[$17>>2] = $19;
  41875. $20 = ((($$01824)) + 1|0);
  41876. $21 = HEAP8[$20>>0]|0;
  41877. $22 = ($21<<24>>24)==(0);
  41878. if ($22) {
  41879. break;
  41880. } else {
  41881. $$01824 = $20;$13 = $21;
  41882. }
  41883. }
  41884. $10 = HEAP8[$0>>0]|0;
  41885. $11 = ($10<<24>>24)==(0);
  41886. if ($11) {
  41887. $$019$sink = $0;
  41888. } else {
  41889. $$01922 = $0;$23 = $10;
  41890. while(1) {
  41891. $div = ($23&255) >>> 5;
  41892. $24 = $div&255;
  41893. $25 = (($2) + ($24<<2)|0);
  41894. $26 = HEAP32[$25>>2]|0;
  41895. $27 = $23 & 31;
  41896. $28 = $27&255;
  41897. $29 = 1 << $28;
  41898. $30 = $26 & $29;
  41899. $31 = ($30|0)==(0);
  41900. if (!($31)) {
  41901. $$019$sink = $$01922;
  41902. break L1;
  41903. }
  41904. $32 = ((($$01922)) + 1|0);
  41905. $33 = HEAP8[$32>>0]|0;
  41906. $34 = ($33<<24>>24)==(0);
  41907. if ($34) {
  41908. $$019$sink = $32;
  41909. break;
  41910. } else {
  41911. $$01922 = $32;$23 = $33;
  41912. }
  41913. }
  41914. }
  41915. }
  41916. }
  41917. } while(0);
  41918. if ((label|0) == 3) {
  41919. $8 = $3 << 24 >> 24;
  41920. $9 = (___strchrnul($0,$8)|0);
  41921. $$019$sink = $9;
  41922. }
  41923. $35 = $$019$sink;
  41924. $36 = $0;
  41925. $37 = (($35) - ($36))|0;
  41926. STACKTOP = sp;return ($37|0);
  41927. }
  41928. function _strcat($0,$1) {
  41929. $0 = $0|0;
  41930. $1 = $1|0;
  41931. var $2 = 0, $3 = 0, label = 0, sp = 0;
  41932. sp = STACKTOP;
  41933. $2 = (_strlen($0)|0);
  41934. $3 = (($0) + ($2)|0);
  41935. (_strcpy($3,$1)|0);
  41936. return ($0|0);
  41937. }
  41938. function _strncat($0,$1,$2) {
  41939. $0 = $0|0;
  41940. $1 = $1|0;
  41941. $2 = $2|0;
  41942. 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;
  41943. sp = STACKTOP;
  41944. $3 = (_strlen($0)|0);
  41945. $4 = (($0) + ($3)|0);
  41946. $5 = ($2|0)==(0);
  41947. L1: do {
  41948. if ($5) {
  41949. $$0$lcssa = $4;
  41950. } else {
  41951. $$01013 = $2;$$01112 = $1;$$014 = $4;
  41952. while(1) {
  41953. $6 = HEAP8[$$01112>>0]|0;
  41954. $7 = ($6<<24>>24)==(0);
  41955. if ($7) {
  41956. $$0$lcssa = $$014;
  41957. break L1;
  41958. }
  41959. $8 = (($$01013) + -1)|0;
  41960. $9 = ((($$01112)) + 1|0);
  41961. $10 = ((($$014)) + 1|0);
  41962. HEAP8[$$014>>0] = $6;
  41963. $11 = ($8|0)==(0);
  41964. if ($11) {
  41965. $$0$lcssa = $10;
  41966. break;
  41967. } else {
  41968. $$01013 = $8;$$01112 = $9;$$014 = $10;
  41969. }
  41970. }
  41971. }
  41972. } while(0);
  41973. HEAP8[$$0$lcssa>>0] = 0;
  41974. return ($0|0);
  41975. }
  41976. function _strtok($0,$1) {
  41977. $0 = $0|0;
  41978. $1 = $1|0;
  41979. 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;
  41980. sp = STACKTOP;
  41981. $2 = ($0|0)==(0|0);
  41982. if ($2) {
  41983. $3 = HEAP32[5489]|0;
  41984. $4 = ($3|0)==(0|0);
  41985. if ($4) {
  41986. $$0 = 0;
  41987. } else {
  41988. $$010 = $3;
  41989. label = 3;
  41990. }
  41991. } else {
  41992. $$010 = $0;
  41993. label = 3;
  41994. }
  41995. do {
  41996. if ((label|0) == 3) {
  41997. $5 = (_strspn($$010,$1)|0);
  41998. $6 = (($$010) + ($5)|0);
  41999. $7 = HEAP8[$6>>0]|0;
  42000. $8 = ($7<<24>>24)==(0);
  42001. if ($8) {
  42002. HEAP32[5489] = 0;
  42003. $$0 = 0;
  42004. break;
  42005. }
  42006. $9 = (_strcspn($6,$1)|0);
  42007. $10 = (($6) + ($9)|0);
  42008. HEAP32[5489] = $10;
  42009. $11 = HEAP8[$10>>0]|0;
  42010. $12 = ($11<<24>>24)==(0);
  42011. if ($12) {
  42012. HEAP32[5489] = 0;
  42013. $$0 = $6;
  42014. break;
  42015. } else {
  42016. $13 = ((($10)) + 1|0);
  42017. HEAP32[5489] = $13;
  42018. HEAP8[$10>>0] = 0;
  42019. $$0 = $6;
  42020. break;
  42021. }
  42022. }
  42023. } while(0);
  42024. return ($$0|0);
  42025. }
  42026. function _malloc($0) {
  42027. $0 = $0|0;
  42028. 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;
  42029. 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;
  42030. 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;
  42031. 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;
  42032. 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;
  42033. 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;
  42034. 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;
  42035. 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;
  42036. 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;
  42037. 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;
  42038. 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;
  42039. 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;
  42040. 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;
  42041. 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;
  42042. 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;
  42043. 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;
  42044. 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;
  42045. 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;
  42046. 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;
  42047. 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;
  42048. 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;
  42049. 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;
  42050. 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;
  42051. 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;
  42052. 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;
  42053. 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;
  42054. 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;
  42055. 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;
  42056. 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;
  42057. 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;
  42058. 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;
  42059. 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;
  42060. 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;
  42061. 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;
  42062. 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;
  42063. 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;
  42064. 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;
  42065. 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;
  42066. 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;
  42067. 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;
  42068. 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;
  42069. 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;
  42070. 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;
  42071. 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;
  42072. 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;
  42073. 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;
  42074. 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;
  42075. 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;
  42076. 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;
  42077. 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;
  42078. 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;
  42079. 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;
  42080. 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;
  42081. 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;
  42082. 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;
  42083. 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;
  42084. 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;
  42085. 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;
  42086. 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;
  42087. sp = STACKTOP;
  42088. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  42089. $1 = sp;
  42090. $2 = ($0>>>0)<(245);
  42091. do {
  42092. if ($2) {
  42093. $3 = ($0>>>0)<(11);
  42094. $4 = (($0) + 11)|0;
  42095. $5 = $4 & -8;
  42096. $6 = $3 ? 16 : $5;
  42097. $7 = $6 >>> 3;
  42098. $8 = HEAP32[5490]|0;
  42099. $9 = $8 >>> $7;
  42100. $10 = $9 & 3;
  42101. $11 = ($10|0)==(0);
  42102. if (!($11)) {
  42103. $12 = $9 & 1;
  42104. $13 = $12 ^ 1;
  42105. $14 = (($13) + ($7))|0;
  42106. $15 = $14 << 1;
  42107. $16 = (22000 + ($15<<2)|0);
  42108. $17 = ((($16)) + 8|0);
  42109. $18 = HEAP32[$17>>2]|0;
  42110. $19 = ((($18)) + 8|0);
  42111. $20 = HEAP32[$19>>2]|0;
  42112. $21 = ($16|0)==($20|0);
  42113. do {
  42114. if ($21) {
  42115. $22 = 1 << $14;
  42116. $23 = $22 ^ -1;
  42117. $24 = $8 & $23;
  42118. HEAP32[5490] = $24;
  42119. } else {
  42120. $25 = HEAP32[(21976)>>2]|0;
  42121. $26 = ($20>>>0)<($25>>>0);
  42122. if ($26) {
  42123. _abort();
  42124. // unreachable;
  42125. }
  42126. $27 = ((($20)) + 12|0);
  42127. $28 = HEAP32[$27>>2]|0;
  42128. $29 = ($28|0)==($18|0);
  42129. if ($29) {
  42130. HEAP32[$27>>2] = $16;
  42131. HEAP32[$17>>2] = $20;
  42132. break;
  42133. } else {
  42134. _abort();
  42135. // unreachable;
  42136. }
  42137. }
  42138. } while(0);
  42139. $30 = $14 << 3;
  42140. $31 = $30 | 3;
  42141. $32 = ((($18)) + 4|0);
  42142. HEAP32[$32>>2] = $31;
  42143. $33 = (($18) + ($30)|0);
  42144. $34 = ((($33)) + 4|0);
  42145. $35 = HEAP32[$34>>2]|0;
  42146. $36 = $35 | 1;
  42147. HEAP32[$34>>2] = $36;
  42148. $$0 = $19;
  42149. STACKTOP = sp;return ($$0|0);
  42150. }
  42151. $37 = HEAP32[(21968)>>2]|0;
  42152. $38 = ($6>>>0)>($37>>>0);
  42153. if ($38) {
  42154. $39 = ($9|0)==(0);
  42155. if (!($39)) {
  42156. $40 = $9 << $7;
  42157. $41 = 2 << $7;
  42158. $42 = (0 - ($41))|0;
  42159. $43 = $41 | $42;
  42160. $44 = $40 & $43;
  42161. $45 = (0 - ($44))|0;
  42162. $46 = $44 & $45;
  42163. $47 = (($46) + -1)|0;
  42164. $48 = $47 >>> 12;
  42165. $49 = $48 & 16;
  42166. $50 = $47 >>> $49;
  42167. $51 = $50 >>> 5;
  42168. $52 = $51 & 8;
  42169. $53 = $52 | $49;
  42170. $54 = $50 >>> $52;
  42171. $55 = $54 >>> 2;
  42172. $56 = $55 & 4;
  42173. $57 = $53 | $56;
  42174. $58 = $54 >>> $56;
  42175. $59 = $58 >>> 1;
  42176. $60 = $59 & 2;
  42177. $61 = $57 | $60;
  42178. $62 = $58 >>> $60;
  42179. $63 = $62 >>> 1;
  42180. $64 = $63 & 1;
  42181. $65 = $61 | $64;
  42182. $66 = $62 >>> $64;
  42183. $67 = (($65) + ($66))|0;
  42184. $68 = $67 << 1;
  42185. $69 = (22000 + ($68<<2)|0);
  42186. $70 = ((($69)) + 8|0);
  42187. $71 = HEAP32[$70>>2]|0;
  42188. $72 = ((($71)) + 8|0);
  42189. $73 = HEAP32[$72>>2]|0;
  42190. $74 = ($69|0)==($73|0);
  42191. do {
  42192. if ($74) {
  42193. $75 = 1 << $67;
  42194. $76 = $75 ^ -1;
  42195. $77 = $8 & $76;
  42196. HEAP32[5490] = $77;
  42197. $98 = $77;
  42198. } else {
  42199. $78 = HEAP32[(21976)>>2]|0;
  42200. $79 = ($73>>>0)<($78>>>0);
  42201. if ($79) {
  42202. _abort();
  42203. // unreachable;
  42204. }
  42205. $80 = ((($73)) + 12|0);
  42206. $81 = HEAP32[$80>>2]|0;
  42207. $82 = ($81|0)==($71|0);
  42208. if ($82) {
  42209. HEAP32[$80>>2] = $69;
  42210. HEAP32[$70>>2] = $73;
  42211. $98 = $8;
  42212. break;
  42213. } else {
  42214. _abort();
  42215. // unreachable;
  42216. }
  42217. }
  42218. } while(0);
  42219. $83 = $67 << 3;
  42220. $84 = (($83) - ($6))|0;
  42221. $85 = $6 | 3;
  42222. $86 = ((($71)) + 4|0);
  42223. HEAP32[$86>>2] = $85;
  42224. $87 = (($71) + ($6)|0);
  42225. $88 = $84 | 1;
  42226. $89 = ((($87)) + 4|0);
  42227. HEAP32[$89>>2] = $88;
  42228. $90 = (($87) + ($84)|0);
  42229. HEAP32[$90>>2] = $84;
  42230. $91 = ($37|0)==(0);
  42231. if (!($91)) {
  42232. $92 = HEAP32[(21980)>>2]|0;
  42233. $93 = $37 >>> 3;
  42234. $94 = $93 << 1;
  42235. $95 = (22000 + ($94<<2)|0);
  42236. $96 = 1 << $93;
  42237. $97 = $98 & $96;
  42238. $99 = ($97|0)==(0);
  42239. if ($99) {
  42240. $100 = $98 | $96;
  42241. HEAP32[5490] = $100;
  42242. $$pre = ((($95)) + 8|0);
  42243. $$0199 = $95;$$pre$phiZ2D = $$pre;
  42244. } else {
  42245. $101 = ((($95)) + 8|0);
  42246. $102 = HEAP32[$101>>2]|0;
  42247. $103 = HEAP32[(21976)>>2]|0;
  42248. $104 = ($102>>>0)<($103>>>0);
  42249. if ($104) {
  42250. _abort();
  42251. // unreachable;
  42252. } else {
  42253. $$0199 = $102;$$pre$phiZ2D = $101;
  42254. }
  42255. }
  42256. HEAP32[$$pre$phiZ2D>>2] = $92;
  42257. $105 = ((($$0199)) + 12|0);
  42258. HEAP32[$105>>2] = $92;
  42259. $106 = ((($92)) + 8|0);
  42260. HEAP32[$106>>2] = $$0199;
  42261. $107 = ((($92)) + 12|0);
  42262. HEAP32[$107>>2] = $95;
  42263. }
  42264. HEAP32[(21968)>>2] = $84;
  42265. HEAP32[(21980)>>2] = $87;
  42266. $$0 = $72;
  42267. STACKTOP = sp;return ($$0|0);
  42268. }
  42269. $108 = HEAP32[(21964)>>2]|0;
  42270. $109 = ($108|0)==(0);
  42271. if ($109) {
  42272. $$0197 = $6;
  42273. } else {
  42274. $110 = (0 - ($108))|0;
  42275. $111 = $108 & $110;
  42276. $112 = (($111) + -1)|0;
  42277. $113 = $112 >>> 12;
  42278. $114 = $113 & 16;
  42279. $115 = $112 >>> $114;
  42280. $116 = $115 >>> 5;
  42281. $117 = $116 & 8;
  42282. $118 = $117 | $114;
  42283. $119 = $115 >>> $117;
  42284. $120 = $119 >>> 2;
  42285. $121 = $120 & 4;
  42286. $122 = $118 | $121;
  42287. $123 = $119 >>> $121;
  42288. $124 = $123 >>> 1;
  42289. $125 = $124 & 2;
  42290. $126 = $122 | $125;
  42291. $127 = $123 >>> $125;
  42292. $128 = $127 >>> 1;
  42293. $129 = $128 & 1;
  42294. $130 = $126 | $129;
  42295. $131 = $127 >>> $129;
  42296. $132 = (($130) + ($131))|0;
  42297. $133 = (22264 + ($132<<2)|0);
  42298. $134 = HEAP32[$133>>2]|0;
  42299. $135 = ((($134)) + 4|0);
  42300. $136 = HEAP32[$135>>2]|0;
  42301. $137 = $136 & -8;
  42302. $138 = (($137) - ($6))|0;
  42303. $139 = ((($134)) + 16|0);
  42304. $140 = HEAP32[$139>>2]|0;
  42305. $not$5$i = ($140|0)==(0|0);
  42306. $$sink16$i = $not$5$i&1;
  42307. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  42308. $142 = HEAP32[$141>>2]|0;
  42309. $143 = ($142|0)==(0|0);
  42310. if ($143) {
  42311. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  42312. } else {
  42313. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  42314. while(1) {
  42315. $144 = ((($145)) + 4|0);
  42316. $146 = HEAP32[$144>>2]|0;
  42317. $147 = $146 & -8;
  42318. $148 = (($147) - ($6))|0;
  42319. $149 = ($148>>>0)<($$01937$i>>>0);
  42320. $$$0193$i = $149 ? $148 : $$01937$i;
  42321. $$$0192$i = $149 ? $145 : $$01928$i;
  42322. $150 = ((($145)) + 16|0);
  42323. $151 = HEAP32[$150>>2]|0;
  42324. $not$$i = ($151|0)==(0|0);
  42325. $$sink1$i = $not$$i&1;
  42326. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  42327. $153 = HEAP32[$152>>2]|0;
  42328. $154 = ($153|0)==(0|0);
  42329. if ($154) {
  42330. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  42331. break;
  42332. } else {
  42333. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  42334. }
  42335. }
  42336. }
  42337. $155 = HEAP32[(21976)>>2]|0;
  42338. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  42339. if ($156) {
  42340. _abort();
  42341. // unreachable;
  42342. }
  42343. $157 = (($$0192$lcssa$i) + ($6)|0);
  42344. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  42345. if (!($158)) {
  42346. _abort();
  42347. // unreachable;
  42348. }
  42349. $159 = ((($$0192$lcssa$i)) + 24|0);
  42350. $160 = HEAP32[$159>>2]|0;
  42351. $161 = ((($$0192$lcssa$i)) + 12|0);
  42352. $162 = HEAP32[$161>>2]|0;
  42353. $163 = ($162|0)==($$0192$lcssa$i|0);
  42354. do {
  42355. if ($163) {
  42356. $173 = ((($$0192$lcssa$i)) + 20|0);
  42357. $174 = HEAP32[$173>>2]|0;
  42358. $175 = ($174|0)==(0|0);
  42359. if ($175) {
  42360. $176 = ((($$0192$lcssa$i)) + 16|0);
  42361. $177 = HEAP32[$176>>2]|0;
  42362. $178 = ($177|0)==(0|0);
  42363. if ($178) {
  42364. $$3$i = 0;
  42365. break;
  42366. } else {
  42367. $$1196$i = $177;$$1198$i = $176;
  42368. }
  42369. } else {
  42370. $$1196$i = $174;$$1198$i = $173;
  42371. }
  42372. while(1) {
  42373. $179 = ((($$1196$i)) + 20|0);
  42374. $180 = HEAP32[$179>>2]|0;
  42375. $181 = ($180|0)==(0|0);
  42376. if (!($181)) {
  42377. $$1196$i = $180;$$1198$i = $179;
  42378. continue;
  42379. }
  42380. $182 = ((($$1196$i)) + 16|0);
  42381. $183 = HEAP32[$182>>2]|0;
  42382. $184 = ($183|0)==(0|0);
  42383. if ($184) {
  42384. break;
  42385. } else {
  42386. $$1196$i = $183;$$1198$i = $182;
  42387. }
  42388. }
  42389. $185 = ($$1198$i>>>0)<($155>>>0);
  42390. if ($185) {
  42391. _abort();
  42392. // unreachable;
  42393. } else {
  42394. HEAP32[$$1198$i>>2] = 0;
  42395. $$3$i = $$1196$i;
  42396. break;
  42397. }
  42398. } else {
  42399. $164 = ((($$0192$lcssa$i)) + 8|0);
  42400. $165 = HEAP32[$164>>2]|0;
  42401. $166 = ($165>>>0)<($155>>>0);
  42402. if ($166) {
  42403. _abort();
  42404. // unreachable;
  42405. }
  42406. $167 = ((($165)) + 12|0);
  42407. $168 = HEAP32[$167>>2]|0;
  42408. $169 = ($168|0)==($$0192$lcssa$i|0);
  42409. if (!($169)) {
  42410. _abort();
  42411. // unreachable;
  42412. }
  42413. $170 = ((($162)) + 8|0);
  42414. $171 = HEAP32[$170>>2]|0;
  42415. $172 = ($171|0)==($$0192$lcssa$i|0);
  42416. if ($172) {
  42417. HEAP32[$167>>2] = $162;
  42418. HEAP32[$170>>2] = $165;
  42419. $$3$i = $162;
  42420. break;
  42421. } else {
  42422. _abort();
  42423. // unreachable;
  42424. }
  42425. }
  42426. } while(0);
  42427. $186 = ($160|0)==(0|0);
  42428. L73: do {
  42429. if (!($186)) {
  42430. $187 = ((($$0192$lcssa$i)) + 28|0);
  42431. $188 = HEAP32[$187>>2]|0;
  42432. $189 = (22264 + ($188<<2)|0);
  42433. $190 = HEAP32[$189>>2]|0;
  42434. $191 = ($$0192$lcssa$i|0)==($190|0);
  42435. do {
  42436. if ($191) {
  42437. HEAP32[$189>>2] = $$3$i;
  42438. $cond$i = ($$3$i|0)==(0|0);
  42439. if ($cond$i) {
  42440. $192 = 1 << $188;
  42441. $193 = $192 ^ -1;
  42442. $194 = $108 & $193;
  42443. HEAP32[(21964)>>2] = $194;
  42444. break L73;
  42445. }
  42446. } else {
  42447. $195 = HEAP32[(21976)>>2]|0;
  42448. $196 = ($160>>>0)<($195>>>0);
  42449. if ($196) {
  42450. _abort();
  42451. // unreachable;
  42452. } else {
  42453. $197 = ((($160)) + 16|0);
  42454. $198 = HEAP32[$197>>2]|0;
  42455. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  42456. $$sink2$i = $not$1$i&1;
  42457. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  42458. HEAP32[$199>>2] = $$3$i;
  42459. $200 = ($$3$i|0)==(0|0);
  42460. if ($200) {
  42461. break L73;
  42462. } else {
  42463. break;
  42464. }
  42465. }
  42466. }
  42467. } while(0);
  42468. $201 = HEAP32[(21976)>>2]|0;
  42469. $202 = ($$3$i>>>0)<($201>>>0);
  42470. if ($202) {
  42471. _abort();
  42472. // unreachable;
  42473. }
  42474. $203 = ((($$3$i)) + 24|0);
  42475. HEAP32[$203>>2] = $160;
  42476. $204 = ((($$0192$lcssa$i)) + 16|0);
  42477. $205 = HEAP32[$204>>2]|0;
  42478. $206 = ($205|0)==(0|0);
  42479. do {
  42480. if (!($206)) {
  42481. $207 = ($205>>>0)<($201>>>0);
  42482. if ($207) {
  42483. _abort();
  42484. // unreachable;
  42485. } else {
  42486. $208 = ((($$3$i)) + 16|0);
  42487. HEAP32[$208>>2] = $205;
  42488. $209 = ((($205)) + 24|0);
  42489. HEAP32[$209>>2] = $$3$i;
  42490. break;
  42491. }
  42492. }
  42493. } while(0);
  42494. $210 = ((($$0192$lcssa$i)) + 20|0);
  42495. $211 = HEAP32[$210>>2]|0;
  42496. $212 = ($211|0)==(0|0);
  42497. if (!($212)) {
  42498. $213 = HEAP32[(21976)>>2]|0;
  42499. $214 = ($211>>>0)<($213>>>0);
  42500. if ($214) {
  42501. _abort();
  42502. // unreachable;
  42503. } else {
  42504. $215 = ((($$3$i)) + 20|0);
  42505. HEAP32[$215>>2] = $211;
  42506. $216 = ((($211)) + 24|0);
  42507. HEAP32[$216>>2] = $$3$i;
  42508. break;
  42509. }
  42510. }
  42511. }
  42512. } while(0);
  42513. $217 = ($$0193$lcssa$i>>>0)<(16);
  42514. if ($217) {
  42515. $218 = (($$0193$lcssa$i) + ($6))|0;
  42516. $219 = $218 | 3;
  42517. $220 = ((($$0192$lcssa$i)) + 4|0);
  42518. HEAP32[$220>>2] = $219;
  42519. $221 = (($$0192$lcssa$i) + ($218)|0);
  42520. $222 = ((($221)) + 4|0);
  42521. $223 = HEAP32[$222>>2]|0;
  42522. $224 = $223 | 1;
  42523. HEAP32[$222>>2] = $224;
  42524. } else {
  42525. $225 = $6 | 3;
  42526. $226 = ((($$0192$lcssa$i)) + 4|0);
  42527. HEAP32[$226>>2] = $225;
  42528. $227 = $$0193$lcssa$i | 1;
  42529. $228 = ((($157)) + 4|0);
  42530. HEAP32[$228>>2] = $227;
  42531. $229 = (($157) + ($$0193$lcssa$i)|0);
  42532. HEAP32[$229>>2] = $$0193$lcssa$i;
  42533. $230 = ($37|0)==(0);
  42534. if (!($230)) {
  42535. $231 = HEAP32[(21980)>>2]|0;
  42536. $232 = $37 >>> 3;
  42537. $233 = $232 << 1;
  42538. $234 = (22000 + ($233<<2)|0);
  42539. $235 = 1 << $232;
  42540. $236 = $8 & $235;
  42541. $237 = ($236|0)==(0);
  42542. if ($237) {
  42543. $238 = $8 | $235;
  42544. HEAP32[5490] = $238;
  42545. $$pre$i = ((($234)) + 8|0);
  42546. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  42547. } else {
  42548. $239 = ((($234)) + 8|0);
  42549. $240 = HEAP32[$239>>2]|0;
  42550. $241 = HEAP32[(21976)>>2]|0;
  42551. $242 = ($240>>>0)<($241>>>0);
  42552. if ($242) {
  42553. _abort();
  42554. // unreachable;
  42555. } else {
  42556. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  42557. }
  42558. }
  42559. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  42560. $243 = ((($$0189$i)) + 12|0);
  42561. HEAP32[$243>>2] = $231;
  42562. $244 = ((($231)) + 8|0);
  42563. HEAP32[$244>>2] = $$0189$i;
  42564. $245 = ((($231)) + 12|0);
  42565. HEAP32[$245>>2] = $234;
  42566. }
  42567. HEAP32[(21968)>>2] = $$0193$lcssa$i;
  42568. HEAP32[(21980)>>2] = $157;
  42569. }
  42570. $246 = ((($$0192$lcssa$i)) + 8|0);
  42571. $$0 = $246;
  42572. STACKTOP = sp;return ($$0|0);
  42573. }
  42574. } else {
  42575. $$0197 = $6;
  42576. }
  42577. } else {
  42578. $247 = ($0>>>0)>(4294967231);
  42579. if ($247) {
  42580. $$0197 = -1;
  42581. } else {
  42582. $248 = (($0) + 11)|0;
  42583. $249 = $248 & -8;
  42584. $250 = HEAP32[(21964)>>2]|0;
  42585. $251 = ($250|0)==(0);
  42586. if ($251) {
  42587. $$0197 = $249;
  42588. } else {
  42589. $252 = (0 - ($249))|0;
  42590. $253 = $248 >>> 8;
  42591. $254 = ($253|0)==(0);
  42592. if ($254) {
  42593. $$0358$i = 0;
  42594. } else {
  42595. $255 = ($249>>>0)>(16777215);
  42596. if ($255) {
  42597. $$0358$i = 31;
  42598. } else {
  42599. $256 = (($253) + 1048320)|0;
  42600. $257 = $256 >>> 16;
  42601. $258 = $257 & 8;
  42602. $259 = $253 << $258;
  42603. $260 = (($259) + 520192)|0;
  42604. $261 = $260 >>> 16;
  42605. $262 = $261 & 4;
  42606. $263 = $262 | $258;
  42607. $264 = $259 << $262;
  42608. $265 = (($264) + 245760)|0;
  42609. $266 = $265 >>> 16;
  42610. $267 = $266 & 2;
  42611. $268 = $263 | $267;
  42612. $269 = (14 - ($268))|0;
  42613. $270 = $264 << $267;
  42614. $271 = $270 >>> 15;
  42615. $272 = (($269) + ($271))|0;
  42616. $273 = $272 << 1;
  42617. $274 = (($272) + 7)|0;
  42618. $275 = $249 >>> $274;
  42619. $276 = $275 & 1;
  42620. $277 = $276 | $273;
  42621. $$0358$i = $277;
  42622. }
  42623. }
  42624. $278 = (22264 + ($$0358$i<<2)|0);
  42625. $279 = HEAP32[$278>>2]|0;
  42626. $280 = ($279|0)==(0|0);
  42627. L117: do {
  42628. if ($280) {
  42629. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  42630. label = 81;
  42631. } else {
  42632. $281 = ($$0358$i|0)==(31);
  42633. $282 = $$0358$i >>> 1;
  42634. $283 = (25 - ($282))|0;
  42635. $284 = $281 ? 0 : $283;
  42636. $285 = $249 << $284;
  42637. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  42638. while(1) {
  42639. $286 = ((($$0353$i)) + 4|0);
  42640. $287 = HEAP32[$286>>2]|0;
  42641. $288 = $287 & -8;
  42642. $289 = (($288) - ($249))|0;
  42643. $290 = ($289>>>0)<($$0347$i>>>0);
  42644. if ($290) {
  42645. $291 = ($289|0)==(0);
  42646. if ($291) {
  42647. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  42648. label = 85;
  42649. break L117;
  42650. } else {
  42651. $$1343$i = $$0353$i;$$1348$i = $289;
  42652. }
  42653. } else {
  42654. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  42655. }
  42656. $292 = ((($$0353$i)) + 20|0);
  42657. $293 = HEAP32[$292>>2]|0;
  42658. $294 = $$0359$i >>> 31;
  42659. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  42660. $296 = HEAP32[$295>>2]|0;
  42661. $297 = ($293|0)==(0|0);
  42662. $298 = ($293|0)==($296|0);
  42663. $or$cond2$i = $297 | $298;
  42664. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  42665. $299 = ($296|0)==(0|0);
  42666. $not$8$i = $299 ^ 1;
  42667. $300 = $not$8$i&1;
  42668. $$0359$$i = $$0359$i << $300;
  42669. if ($299) {
  42670. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  42671. label = 81;
  42672. break;
  42673. } else {
  42674. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  42675. }
  42676. }
  42677. }
  42678. } while(0);
  42679. if ((label|0) == 81) {
  42680. $301 = ($$2355$i|0)==(0|0);
  42681. $302 = ($$3$i201|0)==(0|0);
  42682. $or$cond$i = $301 & $302;
  42683. if ($or$cond$i) {
  42684. $303 = 2 << $$0358$i;
  42685. $304 = (0 - ($303))|0;
  42686. $305 = $303 | $304;
  42687. $306 = $250 & $305;
  42688. $307 = ($306|0)==(0);
  42689. if ($307) {
  42690. $$0197 = $249;
  42691. break;
  42692. }
  42693. $308 = (0 - ($306))|0;
  42694. $309 = $306 & $308;
  42695. $310 = (($309) + -1)|0;
  42696. $311 = $310 >>> 12;
  42697. $312 = $311 & 16;
  42698. $313 = $310 >>> $312;
  42699. $314 = $313 >>> 5;
  42700. $315 = $314 & 8;
  42701. $316 = $315 | $312;
  42702. $317 = $313 >>> $315;
  42703. $318 = $317 >>> 2;
  42704. $319 = $318 & 4;
  42705. $320 = $316 | $319;
  42706. $321 = $317 >>> $319;
  42707. $322 = $321 >>> 1;
  42708. $323 = $322 & 2;
  42709. $324 = $320 | $323;
  42710. $325 = $321 >>> $323;
  42711. $326 = $325 >>> 1;
  42712. $327 = $326 & 1;
  42713. $328 = $324 | $327;
  42714. $329 = $325 >>> $327;
  42715. $330 = (($328) + ($329))|0;
  42716. $331 = (22264 + ($330<<2)|0);
  42717. $332 = HEAP32[$331>>2]|0;
  42718. $$4$ph$i = 0;$$4357$ph$i = $332;
  42719. } else {
  42720. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  42721. }
  42722. $333 = ($$4357$ph$i|0)==(0|0);
  42723. if ($333) {
  42724. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  42725. } else {
  42726. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  42727. label = 85;
  42728. }
  42729. }
  42730. if ((label|0) == 85) {
  42731. while(1) {
  42732. label = 0;
  42733. $334 = ((($$435713$i)) + 4|0);
  42734. $335 = HEAP32[$334>>2]|0;
  42735. $336 = $335 & -8;
  42736. $337 = (($336) - ($249))|0;
  42737. $338 = ($337>>>0)<($$435114$i>>>0);
  42738. $$$4351$i = $338 ? $337 : $$435114$i;
  42739. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  42740. $339 = ((($$435713$i)) + 16|0);
  42741. $340 = HEAP32[$339>>2]|0;
  42742. $not$1$i203 = ($340|0)==(0|0);
  42743. $$sink2$i204 = $not$1$i203&1;
  42744. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  42745. $342 = HEAP32[$341>>2]|0;
  42746. $343 = ($342|0)==(0|0);
  42747. if ($343) {
  42748. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  42749. break;
  42750. } else {
  42751. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  42752. label = 85;
  42753. }
  42754. }
  42755. }
  42756. $344 = ($$4$lcssa$i|0)==(0|0);
  42757. if ($344) {
  42758. $$0197 = $249;
  42759. } else {
  42760. $345 = HEAP32[(21968)>>2]|0;
  42761. $346 = (($345) - ($249))|0;
  42762. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  42763. if ($347) {
  42764. $348 = HEAP32[(21976)>>2]|0;
  42765. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  42766. if ($349) {
  42767. _abort();
  42768. // unreachable;
  42769. }
  42770. $350 = (($$4$lcssa$i) + ($249)|0);
  42771. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  42772. if (!($351)) {
  42773. _abort();
  42774. // unreachable;
  42775. }
  42776. $352 = ((($$4$lcssa$i)) + 24|0);
  42777. $353 = HEAP32[$352>>2]|0;
  42778. $354 = ((($$4$lcssa$i)) + 12|0);
  42779. $355 = HEAP32[$354>>2]|0;
  42780. $356 = ($355|0)==($$4$lcssa$i|0);
  42781. do {
  42782. if ($356) {
  42783. $366 = ((($$4$lcssa$i)) + 20|0);
  42784. $367 = HEAP32[$366>>2]|0;
  42785. $368 = ($367|0)==(0|0);
  42786. if ($368) {
  42787. $369 = ((($$4$lcssa$i)) + 16|0);
  42788. $370 = HEAP32[$369>>2]|0;
  42789. $371 = ($370|0)==(0|0);
  42790. if ($371) {
  42791. $$3372$i = 0;
  42792. break;
  42793. } else {
  42794. $$1370$i = $370;$$1374$i = $369;
  42795. }
  42796. } else {
  42797. $$1370$i = $367;$$1374$i = $366;
  42798. }
  42799. while(1) {
  42800. $372 = ((($$1370$i)) + 20|0);
  42801. $373 = HEAP32[$372>>2]|0;
  42802. $374 = ($373|0)==(0|0);
  42803. if (!($374)) {
  42804. $$1370$i = $373;$$1374$i = $372;
  42805. continue;
  42806. }
  42807. $375 = ((($$1370$i)) + 16|0);
  42808. $376 = HEAP32[$375>>2]|0;
  42809. $377 = ($376|0)==(0|0);
  42810. if ($377) {
  42811. break;
  42812. } else {
  42813. $$1370$i = $376;$$1374$i = $375;
  42814. }
  42815. }
  42816. $378 = ($$1374$i>>>0)<($348>>>0);
  42817. if ($378) {
  42818. _abort();
  42819. // unreachable;
  42820. } else {
  42821. HEAP32[$$1374$i>>2] = 0;
  42822. $$3372$i = $$1370$i;
  42823. break;
  42824. }
  42825. } else {
  42826. $357 = ((($$4$lcssa$i)) + 8|0);
  42827. $358 = HEAP32[$357>>2]|0;
  42828. $359 = ($358>>>0)<($348>>>0);
  42829. if ($359) {
  42830. _abort();
  42831. // unreachable;
  42832. }
  42833. $360 = ((($358)) + 12|0);
  42834. $361 = HEAP32[$360>>2]|0;
  42835. $362 = ($361|0)==($$4$lcssa$i|0);
  42836. if (!($362)) {
  42837. _abort();
  42838. // unreachable;
  42839. }
  42840. $363 = ((($355)) + 8|0);
  42841. $364 = HEAP32[$363>>2]|0;
  42842. $365 = ($364|0)==($$4$lcssa$i|0);
  42843. if ($365) {
  42844. HEAP32[$360>>2] = $355;
  42845. HEAP32[$363>>2] = $358;
  42846. $$3372$i = $355;
  42847. break;
  42848. } else {
  42849. _abort();
  42850. // unreachable;
  42851. }
  42852. }
  42853. } while(0);
  42854. $379 = ($353|0)==(0|0);
  42855. L164: do {
  42856. if ($379) {
  42857. $470 = $250;
  42858. } else {
  42859. $380 = ((($$4$lcssa$i)) + 28|0);
  42860. $381 = HEAP32[$380>>2]|0;
  42861. $382 = (22264 + ($381<<2)|0);
  42862. $383 = HEAP32[$382>>2]|0;
  42863. $384 = ($$4$lcssa$i|0)==($383|0);
  42864. do {
  42865. if ($384) {
  42866. HEAP32[$382>>2] = $$3372$i;
  42867. $cond$i208 = ($$3372$i|0)==(0|0);
  42868. if ($cond$i208) {
  42869. $385 = 1 << $381;
  42870. $386 = $385 ^ -1;
  42871. $387 = $250 & $386;
  42872. HEAP32[(21964)>>2] = $387;
  42873. $470 = $387;
  42874. break L164;
  42875. }
  42876. } else {
  42877. $388 = HEAP32[(21976)>>2]|0;
  42878. $389 = ($353>>>0)<($388>>>0);
  42879. if ($389) {
  42880. _abort();
  42881. // unreachable;
  42882. } else {
  42883. $390 = ((($353)) + 16|0);
  42884. $391 = HEAP32[$390>>2]|0;
  42885. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  42886. $$sink3$i = $not$$i209&1;
  42887. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  42888. HEAP32[$392>>2] = $$3372$i;
  42889. $393 = ($$3372$i|0)==(0|0);
  42890. if ($393) {
  42891. $470 = $250;
  42892. break L164;
  42893. } else {
  42894. break;
  42895. }
  42896. }
  42897. }
  42898. } while(0);
  42899. $394 = HEAP32[(21976)>>2]|0;
  42900. $395 = ($$3372$i>>>0)<($394>>>0);
  42901. if ($395) {
  42902. _abort();
  42903. // unreachable;
  42904. }
  42905. $396 = ((($$3372$i)) + 24|0);
  42906. HEAP32[$396>>2] = $353;
  42907. $397 = ((($$4$lcssa$i)) + 16|0);
  42908. $398 = HEAP32[$397>>2]|0;
  42909. $399 = ($398|0)==(0|0);
  42910. do {
  42911. if (!($399)) {
  42912. $400 = ($398>>>0)<($394>>>0);
  42913. if ($400) {
  42914. _abort();
  42915. // unreachable;
  42916. } else {
  42917. $401 = ((($$3372$i)) + 16|0);
  42918. HEAP32[$401>>2] = $398;
  42919. $402 = ((($398)) + 24|0);
  42920. HEAP32[$402>>2] = $$3372$i;
  42921. break;
  42922. }
  42923. }
  42924. } while(0);
  42925. $403 = ((($$4$lcssa$i)) + 20|0);
  42926. $404 = HEAP32[$403>>2]|0;
  42927. $405 = ($404|0)==(0|0);
  42928. if ($405) {
  42929. $470 = $250;
  42930. } else {
  42931. $406 = HEAP32[(21976)>>2]|0;
  42932. $407 = ($404>>>0)<($406>>>0);
  42933. if ($407) {
  42934. _abort();
  42935. // unreachable;
  42936. } else {
  42937. $408 = ((($$3372$i)) + 20|0);
  42938. HEAP32[$408>>2] = $404;
  42939. $409 = ((($404)) + 24|0);
  42940. HEAP32[$409>>2] = $$3372$i;
  42941. $470 = $250;
  42942. break;
  42943. }
  42944. }
  42945. }
  42946. } while(0);
  42947. $410 = ($$4351$lcssa$i>>>0)<(16);
  42948. do {
  42949. if ($410) {
  42950. $411 = (($$4351$lcssa$i) + ($249))|0;
  42951. $412 = $411 | 3;
  42952. $413 = ((($$4$lcssa$i)) + 4|0);
  42953. HEAP32[$413>>2] = $412;
  42954. $414 = (($$4$lcssa$i) + ($411)|0);
  42955. $415 = ((($414)) + 4|0);
  42956. $416 = HEAP32[$415>>2]|0;
  42957. $417 = $416 | 1;
  42958. HEAP32[$415>>2] = $417;
  42959. } else {
  42960. $418 = $249 | 3;
  42961. $419 = ((($$4$lcssa$i)) + 4|0);
  42962. HEAP32[$419>>2] = $418;
  42963. $420 = $$4351$lcssa$i | 1;
  42964. $421 = ((($350)) + 4|0);
  42965. HEAP32[$421>>2] = $420;
  42966. $422 = (($350) + ($$4351$lcssa$i)|0);
  42967. HEAP32[$422>>2] = $$4351$lcssa$i;
  42968. $423 = $$4351$lcssa$i >>> 3;
  42969. $424 = ($$4351$lcssa$i>>>0)<(256);
  42970. if ($424) {
  42971. $425 = $423 << 1;
  42972. $426 = (22000 + ($425<<2)|0);
  42973. $427 = HEAP32[5490]|0;
  42974. $428 = 1 << $423;
  42975. $429 = $427 & $428;
  42976. $430 = ($429|0)==(0);
  42977. if ($430) {
  42978. $431 = $427 | $428;
  42979. HEAP32[5490] = $431;
  42980. $$pre$i210 = ((($426)) + 8|0);
  42981. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  42982. } else {
  42983. $432 = ((($426)) + 8|0);
  42984. $433 = HEAP32[$432>>2]|0;
  42985. $434 = HEAP32[(21976)>>2]|0;
  42986. $435 = ($433>>>0)<($434>>>0);
  42987. if ($435) {
  42988. _abort();
  42989. // unreachable;
  42990. } else {
  42991. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  42992. }
  42993. }
  42994. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  42995. $436 = ((($$0368$i)) + 12|0);
  42996. HEAP32[$436>>2] = $350;
  42997. $437 = ((($350)) + 8|0);
  42998. HEAP32[$437>>2] = $$0368$i;
  42999. $438 = ((($350)) + 12|0);
  43000. HEAP32[$438>>2] = $426;
  43001. break;
  43002. }
  43003. $439 = $$4351$lcssa$i >>> 8;
  43004. $440 = ($439|0)==(0);
  43005. if ($440) {
  43006. $$0361$i = 0;
  43007. } else {
  43008. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  43009. if ($441) {
  43010. $$0361$i = 31;
  43011. } else {
  43012. $442 = (($439) + 1048320)|0;
  43013. $443 = $442 >>> 16;
  43014. $444 = $443 & 8;
  43015. $445 = $439 << $444;
  43016. $446 = (($445) + 520192)|0;
  43017. $447 = $446 >>> 16;
  43018. $448 = $447 & 4;
  43019. $449 = $448 | $444;
  43020. $450 = $445 << $448;
  43021. $451 = (($450) + 245760)|0;
  43022. $452 = $451 >>> 16;
  43023. $453 = $452 & 2;
  43024. $454 = $449 | $453;
  43025. $455 = (14 - ($454))|0;
  43026. $456 = $450 << $453;
  43027. $457 = $456 >>> 15;
  43028. $458 = (($455) + ($457))|0;
  43029. $459 = $458 << 1;
  43030. $460 = (($458) + 7)|0;
  43031. $461 = $$4351$lcssa$i >>> $460;
  43032. $462 = $461 & 1;
  43033. $463 = $462 | $459;
  43034. $$0361$i = $463;
  43035. }
  43036. }
  43037. $464 = (22264 + ($$0361$i<<2)|0);
  43038. $465 = ((($350)) + 28|0);
  43039. HEAP32[$465>>2] = $$0361$i;
  43040. $466 = ((($350)) + 16|0);
  43041. $467 = ((($466)) + 4|0);
  43042. HEAP32[$467>>2] = 0;
  43043. HEAP32[$466>>2] = 0;
  43044. $468 = 1 << $$0361$i;
  43045. $469 = $470 & $468;
  43046. $471 = ($469|0)==(0);
  43047. if ($471) {
  43048. $472 = $470 | $468;
  43049. HEAP32[(21964)>>2] = $472;
  43050. HEAP32[$464>>2] = $350;
  43051. $473 = ((($350)) + 24|0);
  43052. HEAP32[$473>>2] = $464;
  43053. $474 = ((($350)) + 12|0);
  43054. HEAP32[$474>>2] = $350;
  43055. $475 = ((($350)) + 8|0);
  43056. HEAP32[$475>>2] = $350;
  43057. break;
  43058. }
  43059. $476 = HEAP32[$464>>2]|0;
  43060. $477 = ($$0361$i|0)==(31);
  43061. $478 = $$0361$i >>> 1;
  43062. $479 = (25 - ($478))|0;
  43063. $480 = $477 ? 0 : $479;
  43064. $481 = $$4351$lcssa$i << $480;
  43065. $$0344$i = $481;$$0345$i = $476;
  43066. while(1) {
  43067. $482 = ((($$0345$i)) + 4|0);
  43068. $483 = HEAP32[$482>>2]|0;
  43069. $484 = $483 & -8;
  43070. $485 = ($484|0)==($$4351$lcssa$i|0);
  43071. if ($485) {
  43072. label = 139;
  43073. break;
  43074. }
  43075. $486 = $$0344$i >>> 31;
  43076. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  43077. $488 = $$0344$i << 1;
  43078. $489 = HEAP32[$487>>2]|0;
  43079. $490 = ($489|0)==(0|0);
  43080. if ($490) {
  43081. label = 136;
  43082. break;
  43083. } else {
  43084. $$0344$i = $488;$$0345$i = $489;
  43085. }
  43086. }
  43087. if ((label|0) == 136) {
  43088. $491 = HEAP32[(21976)>>2]|0;
  43089. $492 = ($487>>>0)<($491>>>0);
  43090. if ($492) {
  43091. _abort();
  43092. // unreachable;
  43093. } else {
  43094. HEAP32[$487>>2] = $350;
  43095. $493 = ((($350)) + 24|0);
  43096. HEAP32[$493>>2] = $$0345$i;
  43097. $494 = ((($350)) + 12|0);
  43098. HEAP32[$494>>2] = $350;
  43099. $495 = ((($350)) + 8|0);
  43100. HEAP32[$495>>2] = $350;
  43101. break;
  43102. }
  43103. }
  43104. else if ((label|0) == 139) {
  43105. $496 = ((($$0345$i)) + 8|0);
  43106. $497 = HEAP32[$496>>2]|0;
  43107. $498 = HEAP32[(21976)>>2]|0;
  43108. $499 = ($497>>>0)>=($498>>>0);
  43109. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  43110. $500 = $499 & $not$9$i;
  43111. if ($500) {
  43112. $501 = ((($497)) + 12|0);
  43113. HEAP32[$501>>2] = $350;
  43114. HEAP32[$496>>2] = $350;
  43115. $502 = ((($350)) + 8|0);
  43116. HEAP32[$502>>2] = $497;
  43117. $503 = ((($350)) + 12|0);
  43118. HEAP32[$503>>2] = $$0345$i;
  43119. $504 = ((($350)) + 24|0);
  43120. HEAP32[$504>>2] = 0;
  43121. break;
  43122. } else {
  43123. _abort();
  43124. // unreachable;
  43125. }
  43126. }
  43127. }
  43128. } while(0);
  43129. $505 = ((($$4$lcssa$i)) + 8|0);
  43130. $$0 = $505;
  43131. STACKTOP = sp;return ($$0|0);
  43132. } else {
  43133. $$0197 = $249;
  43134. }
  43135. }
  43136. }
  43137. }
  43138. }
  43139. } while(0);
  43140. $506 = HEAP32[(21968)>>2]|0;
  43141. $507 = ($506>>>0)<($$0197>>>0);
  43142. if (!($507)) {
  43143. $508 = (($506) - ($$0197))|0;
  43144. $509 = HEAP32[(21980)>>2]|0;
  43145. $510 = ($508>>>0)>(15);
  43146. if ($510) {
  43147. $511 = (($509) + ($$0197)|0);
  43148. HEAP32[(21980)>>2] = $511;
  43149. HEAP32[(21968)>>2] = $508;
  43150. $512 = $508 | 1;
  43151. $513 = ((($511)) + 4|0);
  43152. HEAP32[$513>>2] = $512;
  43153. $514 = (($511) + ($508)|0);
  43154. HEAP32[$514>>2] = $508;
  43155. $515 = $$0197 | 3;
  43156. $516 = ((($509)) + 4|0);
  43157. HEAP32[$516>>2] = $515;
  43158. } else {
  43159. HEAP32[(21968)>>2] = 0;
  43160. HEAP32[(21980)>>2] = 0;
  43161. $517 = $506 | 3;
  43162. $518 = ((($509)) + 4|0);
  43163. HEAP32[$518>>2] = $517;
  43164. $519 = (($509) + ($506)|0);
  43165. $520 = ((($519)) + 4|0);
  43166. $521 = HEAP32[$520>>2]|0;
  43167. $522 = $521 | 1;
  43168. HEAP32[$520>>2] = $522;
  43169. }
  43170. $523 = ((($509)) + 8|0);
  43171. $$0 = $523;
  43172. STACKTOP = sp;return ($$0|0);
  43173. }
  43174. $524 = HEAP32[(21972)>>2]|0;
  43175. $525 = ($524>>>0)>($$0197>>>0);
  43176. if ($525) {
  43177. $526 = (($524) - ($$0197))|0;
  43178. HEAP32[(21972)>>2] = $526;
  43179. $527 = HEAP32[(21984)>>2]|0;
  43180. $528 = (($527) + ($$0197)|0);
  43181. HEAP32[(21984)>>2] = $528;
  43182. $529 = $526 | 1;
  43183. $530 = ((($528)) + 4|0);
  43184. HEAP32[$530>>2] = $529;
  43185. $531 = $$0197 | 3;
  43186. $532 = ((($527)) + 4|0);
  43187. HEAP32[$532>>2] = $531;
  43188. $533 = ((($527)) + 8|0);
  43189. $$0 = $533;
  43190. STACKTOP = sp;return ($$0|0);
  43191. }
  43192. $534 = HEAP32[5608]|0;
  43193. $535 = ($534|0)==(0);
  43194. if ($535) {
  43195. HEAP32[(22440)>>2] = 4096;
  43196. HEAP32[(22436)>>2] = 4096;
  43197. HEAP32[(22444)>>2] = -1;
  43198. HEAP32[(22448)>>2] = -1;
  43199. HEAP32[(22452)>>2] = 0;
  43200. HEAP32[(22404)>>2] = 0;
  43201. $536 = $1;
  43202. $537 = $536 & -16;
  43203. $538 = $537 ^ 1431655768;
  43204. HEAP32[$1>>2] = $538;
  43205. HEAP32[5608] = $538;
  43206. $542 = 4096;
  43207. } else {
  43208. $$pre$i212 = HEAP32[(22440)>>2]|0;
  43209. $542 = $$pre$i212;
  43210. }
  43211. $539 = (($$0197) + 48)|0;
  43212. $540 = (($$0197) + 47)|0;
  43213. $541 = (($542) + ($540))|0;
  43214. $543 = (0 - ($542))|0;
  43215. $544 = $541 & $543;
  43216. $545 = ($544>>>0)>($$0197>>>0);
  43217. if (!($545)) {
  43218. $$0 = 0;
  43219. STACKTOP = sp;return ($$0|0);
  43220. }
  43221. $546 = HEAP32[(22400)>>2]|0;
  43222. $547 = ($546|0)==(0);
  43223. if (!($547)) {
  43224. $548 = HEAP32[(22392)>>2]|0;
  43225. $549 = (($548) + ($544))|0;
  43226. $550 = ($549>>>0)<=($548>>>0);
  43227. $551 = ($549>>>0)>($546>>>0);
  43228. $or$cond1$i = $550 | $551;
  43229. if ($or$cond1$i) {
  43230. $$0 = 0;
  43231. STACKTOP = sp;return ($$0|0);
  43232. }
  43233. }
  43234. $552 = HEAP32[(22404)>>2]|0;
  43235. $553 = $552 & 4;
  43236. $554 = ($553|0)==(0);
  43237. L244: do {
  43238. if ($554) {
  43239. $555 = HEAP32[(21984)>>2]|0;
  43240. $556 = ($555|0)==(0|0);
  43241. L246: do {
  43242. if ($556) {
  43243. label = 163;
  43244. } else {
  43245. $$0$i$i = (22408);
  43246. while(1) {
  43247. $557 = HEAP32[$$0$i$i>>2]|0;
  43248. $558 = ($557>>>0)>($555>>>0);
  43249. if (!($558)) {
  43250. $559 = ((($$0$i$i)) + 4|0);
  43251. $560 = HEAP32[$559>>2]|0;
  43252. $561 = (($557) + ($560)|0);
  43253. $562 = ($561>>>0)>($555>>>0);
  43254. if ($562) {
  43255. break;
  43256. }
  43257. }
  43258. $563 = ((($$0$i$i)) + 8|0);
  43259. $564 = HEAP32[$563>>2]|0;
  43260. $565 = ($564|0)==(0|0);
  43261. if ($565) {
  43262. label = 163;
  43263. break L246;
  43264. } else {
  43265. $$0$i$i = $564;
  43266. }
  43267. }
  43268. $588 = (($541) - ($524))|0;
  43269. $589 = $588 & $543;
  43270. $590 = ($589>>>0)<(2147483647);
  43271. if ($590) {
  43272. $591 = (_sbrk(($589|0))|0);
  43273. $592 = HEAP32[$$0$i$i>>2]|0;
  43274. $593 = HEAP32[$559>>2]|0;
  43275. $594 = (($592) + ($593)|0);
  43276. $595 = ($591|0)==($594|0);
  43277. if ($595) {
  43278. $596 = ($591|0)==((-1)|0);
  43279. if ($596) {
  43280. $$2234253237$i = $589;
  43281. } else {
  43282. $$723948$i = $589;$$749$i = $591;
  43283. label = 180;
  43284. break L244;
  43285. }
  43286. } else {
  43287. $$2247$ph$i = $591;$$2253$ph$i = $589;
  43288. label = 171;
  43289. }
  43290. } else {
  43291. $$2234253237$i = 0;
  43292. }
  43293. }
  43294. } while(0);
  43295. do {
  43296. if ((label|0) == 163) {
  43297. $566 = (_sbrk(0)|0);
  43298. $567 = ($566|0)==((-1)|0);
  43299. if ($567) {
  43300. $$2234253237$i = 0;
  43301. } else {
  43302. $568 = $566;
  43303. $569 = HEAP32[(22436)>>2]|0;
  43304. $570 = (($569) + -1)|0;
  43305. $571 = $570 & $568;
  43306. $572 = ($571|0)==(0);
  43307. $573 = (($570) + ($568))|0;
  43308. $574 = (0 - ($569))|0;
  43309. $575 = $573 & $574;
  43310. $576 = (($575) - ($568))|0;
  43311. $577 = $572 ? 0 : $576;
  43312. $$$i = (($577) + ($544))|0;
  43313. $578 = HEAP32[(22392)>>2]|0;
  43314. $579 = (($$$i) + ($578))|0;
  43315. $580 = ($$$i>>>0)>($$0197>>>0);
  43316. $581 = ($$$i>>>0)<(2147483647);
  43317. $or$cond$i214 = $580 & $581;
  43318. if ($or$cond$i214) {
  43319. $582 = HEAP32[(22400)>>2]|0;
  43320. $583 = ($582|0)==(0);
  43321. if (!($583)) {
  43322. $584 = ($579>>>0)<=($578>>>0);
  43323. $585 = ($579>>>0)>($582>>>0);
  43324. $or$cond2$i215 = $584 | $585;
  43325. if ($or$cond2$i215) {
  43326. $$2234253237$i = 0;
  43327. break;
  43328. }
  43329. }
  43330. $586 = (_sbrk(($$$i|0))|0);
  43331. $587 = ($586|0)==($566|0);
  43332. if ($587) {
  43333. $$723948$i = $$$i;$$749$i = $566;
  43334. label = 180;
  43335. break L244;
  43336. } else {
  43337. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  43338. label = 171;
  43339. }
  43340. } else {
  43341. $$2234253237$i = 0;
  43342. }
  43343. }
  43344. }
  43345. } while(0);
  43346. do {
  43347. if ((label|0) == 171) {
  43348. $597 = (0 - ($$2253$ph$i))|0;
  43349. $598 = ($$2247$ph$i|0)!=((-1)|0);
  43350. $599 = ($$2253$ph$i>>>0)<(2147483647);
  43351. $or$cond7$i = $599 & $598;
  43352. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  43353. $or$cond10$i = $600 & $or$cond7$i;
  43354. if (!($or$cond10$i)) {
  43355. $610 = ($$2247$ph$i|0)==((-1)|0);
  43356. if ($610) {
  43357. $$2234253237$i = 0;
  43358. break;
  43359. } else {
  43360. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  43361. label = 180;
  43362. break L244;
  43363. }
  43364. }
  43365. $601 = HEAP32[(22440)>>2]|0;
  43366. $602 = (($540) - ($$2253$ph$i))|0;
  43367. $603 = (($602) + ($601))|0;
  43368. $604 = (0 - ($601))|0;
  43369. $605 = $603 & $604;
  43370. $606 = ($605>>>0)<(2147483647);
  43371. if (!($606)) {
  43372. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  43373. label = 180;
  43374. break L244;
  43375. }
  43376. $607 = (_sbrk(($605|0))|0);
  43377. $608 = ($607|0)==((-1)|0);
  43378. if ($608) {
  43379. (_sbrk(($597|0))|0);
  43380. $$2234253237$i = 0;
  43381. break;
  43382. } else {
  43383. $609 = (($605) + ($$2253$ph$i))|0;
  43384. $$723948$i = $609;$$749$i = $$2247$ph$i;
  43385. label = 180;
  43386. break L244;
  43387. }
  43388. }
  43389. } while(0);
  43390. $611 = HEAP32[(22404)>>2]|0;
  43391. $612 = $611 | 4;
  43392. HEAP32[(22404)>>2] = $612;
  43393. $$4236$i = $$2234253237$i;
  43394. label = 178;
  43395. } else {
  43396. $$4236$i = 0;
  43397. label = 178;
  43398. }
  43399. } while(0);
  43400. if ((label|0) == 178) {
  43401. $613 = ($544>>>0)<(2147483647);
  43402. if ($613) {
  43403. $614 = (_sbrk(($544|0))|0);
  43404. $615 = (_sbrk(0)|0);
  43405. $616 = ($614|0)!=((-1)|0);
  43406. $617 = ($615|0)!=((-1)|0);
  43407. $or$cond5$i = $616 & $617;
  43408. $618 = ($614>>>0)<($615>>>0);
  43409. $or$cond11$i = $618 & $or$cond5$i;
  43410. $619 = $615;
  43411. $620 = $614;
  43412. $621 = (($619) - ($620))|0;
  43413. $622 = (($$0197) + 40)|0;
  43414. $623 = ($621>>>0)>($622>>>0);
  43415. $$$4236$i = $623 ? $621 : $$4236$i;
  43416. $or$cond11$not$i = $or$cond11$i ^ 1;
  43417. $624 = ($614|0)==((-1)|0);
  43418. $not$$i216 = $623 ^ 1;
  43419. $625 = $624 | $not$$i216;
  43420. $or$cond50$i = $625 | $or$cond11$not$i;
  43421. if (!($or$cond50$i)) {
  43422. $$723948$i = $$$4236$i;$$749$i = $614;
  43423. label = 180;
  43424. }
  43425. }
  43426. }
  43427. if ((label|0) == 180) {
  43428. $626 = HEAP32[(22392)>>2]|0;
  43429. $627 = (($626) + ($$723948$i))|0;
  43430. HEAP32[(22392)>>2] = $627;
  43431. $628 = HEAP32[(22396)>>2]|0;
  43432. $629 = ($627>>>0)>($628>>>0);
  43433. if ($629) {
  43434. HEAP32[(22396)>>2] = $627;
  43435. }
  43436. $630 = HEAP32[(21984)>>2]|0;
  43437. $631 = ($630|0)==(0|0);
  43438. do {
  43439. if ($631) {
  43440. $632 = HEAP32[(21976)>>2]|0;
  43441. $633 = ($632|0)==(0|0);
  43442. $634 = ($$749$i>>>0)<($632>>>0);
  43443. $or$cond12$i = $633 | $634;
  43444. if ($or$cond12$i) {
  43445. HEAP32[(21976)>>2] = $$749$i;
  43446. }
  43447. HEAP32[(22408)>>2] = $$749$i;
  43448. HEAP32[(22412)>>2] = $$723948$i;
  43449. HEAP32[(22420)>>2] = 0;
  43450. $635 = HEAP32[5608]|0;
  43451. HEAP32[(21996)>>2] = $635;
  43452. HEAP32[(21992)>>2] = -1;
  43453. $$01$i$i = 0;
  43454. while(1) {
  43455. $636 = $$01$i$i << 1;
  43456. $637 = (22000 + ($636<<2)|0);
  43457. $638 = ((($637)) + 12|0);
  43458. HEAP32[$638>>2] = $637;
  43459. $639 = ((($637)) + 8|0);
  43460. HEAP32[$639>>2] = $637;
  43461. $640 = (($$01$i$i) + 1)|0;
  43462. $exitcond$i$i = ($640|0)==(32);
  43463. if ($exitcond$i$i) {
  43464. break;
  43465. } else {
  43466. $$01$i$i = $640;
  43467. }
  43468. }
  43469. $641 = (($$723948$i) + -40)|0;
  43470. $642 = ((($$749$i)) + 8|0);
  43471. $643 = $642;
  43472. $644 = $643 & 7;
  43473. $645 = ($644|0)==(0);
  43474. $646 = (0 - ($643))|0;
  43475. $647 = $646 & 7;
  43476. $648 = $645 ? 0 : $647;
  43477. $649 = (($$749$i) + ($648)|0);
  43478. $650 = (($641) - ($648))|0;
  43479. HEAP32[(21984)>>2] = $649;
  43480. HEAP32[(21972)>>2] = $650;
  43481. $651 = $650 | 1;
  43482. $652 = ((($649)) + 4|0);
  43483. HEAP32[$652>>2] = $651;
  43484. $653 = (($649) + ($650)|0);
  43485. $654 = ((($653)) + 4|0);
  43486. HEAP32[$654>>2] = 40;
  43487. $655 = HEAP32[(22448)>>2]|0;
  43488. HEAP32[(21988)>>2] = $655;
  43489. } else {
  43490. $$024371$i = (22408);
  43491. while(1) {
  43492. $656 = HEAP32[$$024371$i>>2]|0;
  43493. $657 = ((($$024371$i)) + 4|0);
  43494. $658 = HEAP32[$657>>2]|0;
  43495. $659 = (($656) + ($658)|0);
  43496. $660 = ($$749$i|0)==($659|0);
  43497. if ($660) {
  43498. label = 190;
  43499. break;
  43500. }
  43501. $661 = ((($$024371$i)) + 8|0);
  43502. $662 = HEAP32[$661>>2]|0;
  43503. $663 = ($662|0)==(0|0);
  43504. if ($663) {
  43505. break;
  43506. } else {
  43507. $$024371$i = $662;
  43508. }
  43509. }
  43510. if ((label|0) == 190) {
  43511. $664 = ((($$024371$i)) + 12|0);
  43512. $665 = HEAP32[$664>>2]|0;
  43513. $666 = $665 & 8;
  43514. $667 = ($666|0)==(0);
  43515. if ($667) {
  43516. $668 = ($630>>>0)>=($656>>>0);
  43517. $669 = ($630>>>0)<($$749$i>>>0);
  43518. $or$cond51$i = $669 & $668;
  43519. if ($or$cond51$i) {
  43520. $670 = (($658) + ($$723948$i))|0;
  43521. HEAP32[$657>>2] = $670;
  43522. $671 = HEAP32[(21972)>>2]|0;
  43523. $672 = ((($630)) + 8|0);
  43524. $673 = $672;
  43525. $674 = $673 & 7;
  43526. $675 = ($674|0)==(0);
  43527. $676 = (0 - ($673))|0;
  43528. $677 = $676 & 7;
  43529. $678 = $675 ? 0 : $677;
  43530. $679 = (($630) + ($678)|0);
  43531. $680 = (($$723948$i) - ($678))|0;
  43532. $681 = (($671) + ($680))|0;
  43533. HEAP32[(21984)>>2] = $679;
  43534. HEAP32[(21972)>>2] = $681;
  43535. $682 = $681 | 1;
  43536. $683 = ((($679)) + 4|0);
  43537. HEAP32[$683>>2] = $682;
  43538. $684 = (($679) + ($681)|0);
  43539. $685 = ((($684)) + 4|0);
  43540. HEAP32[$685>>2] = 40;
  43541. $686 = HEAP32[(22448)>>2]|0;
  43542. HEAP32[(21988)>>2] = $686;
  43543. break;
  43544. }
  43545. }
  43546. }
  43547. $687 = HEAP32[(21976)>>2]|0;
  43548. $688 = ($$749$i>>>0)<($687>>>0);
  43549. if ($688) {
  43550. HEAP32[(21976)>>2] = $$749$i;
  43551. $752 = $$749$i;
  43552. } else {
  43553. $752 = $687;
  43554. }
  43555. $689 = (($$749$i) + ($$723948$i)|0);
  43556. $$124470$i = (22408);
  43557. while(1) {
  43558. $690 = HEAP32[$$124470$i>>2]|0;
  43559. $691 = ($690|0)==($689|0);
  43560. if ($691) {
  43561. label = 198;
  43562. break;
  43563. }
  43564. $692 = ((($$124470$i)) + 8|0);
  43565. $693 = HEAP32[$692>>2]|0;
  43566. $694 = ($693|0)==(0|0);
  43567. if ($694) {
  43568. break;
  43569. } else {
  43570. $$124470$i = $693;
  43571. }
  43572. }
  43573. if ((label|0) == 198) {
  43574. $695 = ((($$124470$i)) + 12|0);
  43575. $696 = HEAP32[$695>>2]|0;
  43576. $697 = $696 & 8;
  43577. $698 = ($697|0)==(0);
  43578. if ($698) {
  43579. HEAP32[$$124470$i>>2] = $$749$i;
  43580. $699 = ((($$124470$i)) + 4|0);
  43581. $700 = HEAP32[$699>>2]|0;
  43582. $701 = (($700) + ($$723948$i))|0;
  43583. HEAP32[$699>>2] = $701;
  43584. $702 = ((($$749$i)) + 8|0);
  43585. $703 = $702;
  43586. $704 = $703 & 7;
  43587. $705 = ($704|0)==(0);
  43588. $706 = (0 - ($703))|0;
  43589. $707 = $706 & 7;
  43590. $708 = $705 ? 0 : $707;
  43591. $709 = (($$749$i) + ($708)|0);
  43592. $710 = ((($689)) + 8|0);
  43593. $711 = $710;
  43594. $712 = $711 & 7;
  43595. $713 = ($712|0)==(0);
  43596. $714 = (0 - ($711))|0;
  43597. $715 = $714 & 7;
  43598. $716 = $713 ? 0 : $715;
  43599. $717 = (($689) + ($716)|0);
  43600. $718 = $717;
  43601. $719 = $709;
  43602. $720 = (($718) - ($719))|0;
  43603. $721 = (($709) + ($$0197)|0);
  43604. $722 = (($720) - ($$0197))|0;
  43605. $723 = $$0197 | 3;
  43606. $724 = ((($709)) + 4|0);
  43607. HEAP32[$724>>2] = $723;
  43608. $725 = ($717|0)==($630|0);
  43609. do {
  43610. if ($725) {
  43611. $726 = HEAP32[(21972)>>2]|0;
  43612. $727 = (($726) + ($722))|0;
  43613. HEAP32[(21972)>>2] = $727;
  43614. HEAP32[(21984)>>2] = $721;
  43615. $728 = $727 | 1;
  43616. $729 = ((($721)) + 4|0);
  43617. HEAP32[$729>>2] = $728;
  43618. } else {
  43619. $730 = HEAP32[(21980)>>2]|0;
  43620. $731 = ($717|0)==($730|0);
  43621. if ($731) {
  43622. $732 = HEAP32[(21968)>>2]|0;
  43623. $733 = (($732) + ($722))|0;
  43624. HEAP32[(21968)>>2] = $733;
  43625. HEAP32[(21980)>>2] = $721;
  43626. $734 = $733 | 1;
  43627. $735 = ((($721)) + 4|0);
  43628. HEAP32[$735>>2] = $734;
  43629. $736 = (($721) + ($733)|0);
  43630. HEAP32[$736>>2] = $733;
  43631. break;
  43632. }
  43633. $737 = ((($717)) + 4|0);
  43634. $738 = HEAP32[$737>>2]|0;
  43635. $739 = $738 & 3;
  43636. $740 = ($739|0)==(1);
  43637. if ($740) {
  43638. $741 = $738 & -8;
  43639. $742 = $738 >>> 3;
  43640. $743 = ($738>>>0)<(256);
  43641. L314: do {
  43642. if ($743) {
  43643. $744 = ((($717)) + 8|0);
  43644. $745 = HEAP32[$744>>2]|0;
  43645. $746 = ((($717)) + 12|0);
  43646. $747 = HEAP32[$746>>2]|0;
  43647. $748 = $742 << 1;
  43648. $749 = (22000 + ($748<<2)|0);
  43649. $750 = ($745|0)==($749|0);
  43650. do {
  43651. if (!($750)) {
  43652. $751 = ($745>>>0)<($752>>>0);
  43653. if ($751) {
  43654. _abort();
  43655. // unreachable;
  43656. }
  43657. $753 = ((($745)) + 12|0);
  43658. $754 = HEAP32[$753>>2]|0;
  43659. $755 = ($754|0)==($717|0);
  43660. if ($755) {
  43661. break;
  43662. }
  43663. _abort();
  43664. // unreachable;
  43665. }
  43666. } while(0);
  43667. $756 = ($747|0)==($745|0);
  43668. if ($756) {
  43669. $757 = 1 << $742;
  43670. $758 = $757 ^ -1;
  43671. $759 = HEAP32[5490]|0;
  43672. $760 = $759 & $758;
  43673. HEAP32[5490] = $760;
  43674. break;
  43675. }
  43676. $761 = ($747|0)==($749|0);
  43677. do {
  43678. if ($761) {
  43679. $$pre10$i$i = ((($747)) + 8|0);
  43680. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  43681. } else {
  43682. $762 = ($747>>>0)<($752>>>0);
  43683. if ($762) {
  43684. _abort();
  43685. // unreachable;
  43686. }
  43687. $763 = ((($747)) + 8|0);
  43688. $764 = HEAP32[$763>>2]|0;
  43689. $765 = ($764|0)==($717|0);
  43690. if ($765) {
  43691. $$pre$phi11$i$iZ2D = $763;
  43692. break;
  43693. }
  43694. _abort();
  43695. // unreachable;
  43696. }
  43697. } while(0);
  43698. $766 = ((($745)) + 12|0);
  43699. HEAP32[$766>>2] = $747;
  43700. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  43701. } else {
  43702. $767 = ((($717)) + 24|0);
  43703. $768 = HEAP32[$767>>2]|0;
  43704. $769 = ((($717)) + 12|0);
  43705. $770 = HEAP32[$769>>2]|0;
  43706. $771 = ($770|0)==($717|0);
  43707. do {
  43708. if ($771) {
  43709. $781 = ((($717)) + 16|0);
  43710. $782 = ((($781)) + 4|0);
  43711. $783 = HEAP32[$782>>2]|0;
  43712. $784 = ($783|0)==(0|0);
  43713. if ($784) {
  43714. $785 = HEAP32[$781>>2]|0;
  43715. $786 = ($785|0)==(0|0);
  43716. if ($786) {
  43717. $$3$i$i = 0;
  43718. break;
  43719. } else {
  43720. $$1291$i$i = $785;$$1293$i$i = $781;
  43721. }
  43722. } else {
  43723. $$1291$i$i = $783;$$1293$i$i = $782;
  43724. }
  43725. while(1) {
  43726. $787 = ((($$1291$i$i)) + 20|0);
  43727. $788 = HEAP32[$787>>2]|0;
  43728. $789 = ($788|0)==(0|0);
  43729. if (!($789)) {
  43730. $$1291$i$i = $788;$$1293$i$i = $787;
  43731. continue;
  43732. }
  43733. $790 = ((($$1291$i$i)) + 16|0);
  43734. $791 = HEAP32[$790>>2]|0;
  43735. $792 = ($791|0)==(0|0);
  43736. if ($792) {
  43737. break;
  43738. } else {
  43739. $$1291$i$i = $791;$$1293$i$i = $790;
  43740. }
  43741. }
  43742. $793 = ($$1293$i$i>>>0)<($752>>>0);
  43743. if ($793) {
  43744. _abort();
  43745. // unreachable;
  43746. } else {
  43747. HEAP32[$$1293$i$i>>2] = 0;
  43748. $$3$i$i = $$1291$i$i;
  43749. break;
  43750. }
  43751. } else {
  43752. $772 = ((($717)) + 8|0);
  43753. $773 = HEAP32[$772>>2]|0;
  43754. $774 = ($773>>>0)<($752>>>0);
  43755. if ($774) {
  43756. _abort();
  43757. // unreachable;
  43758. }
  43759. $775 = ((($773)) + 12|0);
  43760. $776 = HEAP32[$775>>2]|0;
  43761. $777 = ($776|0)==($717|0);
  43762. if (!($777)) {
  43763. _abort();
  43764. // unreachable;
  43765. }
  43766. $778 = ((($770)) + 8|0);
  43767. $779 = HEAP32[$778>>2]|0;
  43768. $780 = ($779|0)==($717|0);
  43769. if ($780) {
  43770. HEAP32[$775>>2] = $770;
  43771. HEAP32[$778>>2] = $773;
  43772. $$3$i$i = $770;
  43773. break;
  43774. } else {
  43775. _abort();
  43776. // unreachable;
  43777. }
  43778. }
  43779. } while(0);
  43780. $794 = ($768|0)==(0|0);
  43781. if ($794) {
  43782. break;
  43783. }
  43784. $795 = ((($717)) + 28|0);
  43785. $796 = HEAP32[$795>>2]|0;
  43786. $797 = (22264 + ($796<<2)|0);
  43787. $798 = HEAP32[$797>>2]|0;
  43788. $799 = ($717|0)==($798|0);
  43789. do {
  43790. if ($799) {
  43791. HEAP32[$797>>2] = $$3$i$i;
  43792. $cond$i$i = ($$3$i$i|0)==(0|0);
  43793. if (!($cond$i$i)) {
  43794. break;
  43795. }
  43796. $800 = 1 << $796;
  43797. $801 = $800 ^ -1;
  43798. $802 = HEAP32[(21964)>>2]|0;
  43799. $803 = $802 & $801;
  43800. HEAP32[(21964)>>2] = $803;
  43801. break L314;
  43802. } else {
  43803. $804 = HEAP32[(21976)>>2]|0;
  43804. $805 = ($768>>>0)<($804>>>0);
  43805. if ($805) {
  43806. _abort();
  43807. // unreachable;
  43808. } else {
  43809. $806 = ((($768)) + 16|0);
  43810. $807 = HEAP32[$806>>2]|0;
  43811. $not$$i17$i = ($807|0)!=($717|0);
  43812. $$sink1$i$i = $not$$i17$i&1;
  43813. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  43814. HEAP32[$808>>2] = $$3$i$i;
  43815. $809 = ($$3$i$i|0)==(0|0);
  43816. if ($809) {
  43817. break L314;
  43818. } else {
  43819. break;
  43820. }
  43821. }
  43822. }
  43823. } while(0);
  43824. $810 = HEAP32[(21976)>>2]|0;
  43825. $811 = ($$3$i$i>>>0)<($810>>>0);
  43826. if ($811) {
  43827. _abort();
  43828. // unreachable;
  43829. }
  43830. $812 = ((($$3$i$i)) + 24|0);
  43831. HEAP32[$812>>2] = $768;
  43832. $813 = ((($717)) + 16|0);
  43833. $814 = HEAP32[$813>>2]|0;
  43834. $815 = ($814|0)==(0|0);
  43835. do {
  43836. if (!($815)) {
  43837. $816 = ($814>>>0)<($810>>>0);
  43838. if ($816) {
  43839. _abort();
  43840. // unreachable;
  43841. } else {
  43842. $817 = ((($$3$i$i)) + 16|0);
  43843. HEAP32[$817>>2] = $814;
  43844. $818 = ((($814)) + 24|0);
  43845. HEAP32[$818>>2] = $$3$i$i;
  43846. break;
  43847. }
  43848. }
  43849. } while(0);
  43850. $819 = ((($813)) + 4|0);
  43851. $820 = HEAP32[$819>>2]|0;
  43852. $821 = ($820|0)==(0|0);
  43853. if ($821) {
  43854. break;
  43855. }
  43856. $822 = HEAP32[(21976)>>2]|0;
  43857. $823 = ($820>>>0)<($822>>>0);
  43858. if ($823) {
  43859. _abort();
  43860. // unreachable;
  43861. } else {
  43862. $824 = ((($$3$i$i)) + 20|0);
  43863. HEAP32[$824>>2] = $820;
  43864. $825 = ((($820)) + 24|0);
  43865. HEAP32[$825>>2] = $$3$i$i;
  43866. break;
  43867. }
  43868. }
  43869. } while(0);
  43870. $826 = (($717) + ($741)|0);
  43871. $827 = (($741) + ($722))|0;
  43872. $$0$i18$i = $826;$$0287$i$i = $827;
  43873. } else {
  43874. $$0$i18$i = $717;$$0287$i$i = $722;
  43875. }
  43876. $828 = ((($$0$i18$i)) + 4|0);
  43877. $829 = HEAP32[$828>>2]|0;
  43878. $830 = $829 & -2;
  43879. HEAP32[$828>>2] = $830;
  43880. $831 = $$0287$i$i | 1;
  43881. $832 = ((($721)) + 4|0);
  43882. HEAP32[$832>>2] = $831;
  43883. $833 = (($721) + ($$0287$i$i)|0);
  43884. HEAP32[$833>>2] = $$0287$i$i;
  43885. $834 = $$0287$i$i >>> 3;
  43886. $835 = ($$0287$i$i>>>0)<(256);
  43887. if ($835) {
  43888. $836 = $834 << 1;
  43889. $837 = (22000 + ($836<<2)|0);
  43890. $838 = HEAP32[5490]|0;
  43891. $839 = 1 << $834;
  43892. $840 = $838 & $839;
  43893. $841 = ($840|0)==(0);
  43894. do {
  43895. if ($841) {
  43896. $842 = $838 | $839;
  43897. HEAP32[5490] = $842;
  43898. $$pre$i19$i = ((($837)) + 8|0);
  43899. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  43900. } else {
  43901. $843 = ((($837)) + 8|0);
  43902. $844 = HEAP32[$843>>2]|0;
  43903. $845 = HEAP32[(21976)>>2]|0;
  43904. $846 = ($844>>>0)<($845>>>0);
  43905. if (!($846)) {
  43906. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  43907. break;
  43908. }
  43909. _abort();
  43910. // unreachable;
  43911. }
  43912. } while(0);
  43913. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  43914. $847 = ((($$0295$i$i)) + 12|0);
  43915. HEAP32[$847>>2] = $721;
  43916. $848 = ((($721)) + 8|0);
  43917. HEAP32[$848>>2] = $$0295$i$i;
  43918. $849 = ((($721)) + 12|0);
  43919. HEAP32[$849>>2] = $837;
  43920. break;
  43921. }
  43922. $850 = $$0287$i$i >>> 8;
  43923. $851 = ($850|0)==(0);
  43924. do {
  43925. if ($851) {
  43926. $$0296$i$i = 0;
  43927. } else {
  43928. $852 = ($$0287$i$i>>>0)>(16777215);
  43929. if ($852) {
  43930. $$0296$i$i = 31;
  43931. break;
  43932. }
  43933. $853 = (($850) + 1048320)|0;
  43934. $854 = $853 >>> 16;
  43935. $855 = $854 & 8;
  43936. $856 = $850 << $855;
  43937. $857 = (($856) + 520192)|0;
  43938. $858 = $857 >>> 16;
  43939. $859 = $858 & 4;
  43940. $860 = $859 | $855;
  43941. $861 = $856 << $859;
  43942. $862 = (($861) + 245760)|0;
  43943. $863 = $862 >>> 16;
  43944. $864 = $863 & 2;
  43945. $865 = $860 | $864;
  43946. $866 = (14 - ($865))|0;
  43947. $867 = $861 << $864;
  43948. $868 = $867 >>> 15;
  43949. $869 = (($866) + ($868))|0;
  43950. $870 = $869 << 1;
  43951. $871 = (($869) + 7)|0;
  43952. $872 = $$0287$i$i >>> $871;
  43953. $873 = $872 & 1;
  43954. $874 = $873 | $870;
  43955. $$0296$i$i = $874;
  43956. }
  43957. } while(0);
  43958. $875 = (22264 + ($$0296$i$i<<2)|0);
  43959. $876 = ((($721)) + 28|0);
  43960. HEAP32[$876>>2] = $$0296$i$i;
  43961. $877 = ((($721)) + 16|0);
  43962. $878 = ((($877)) + 4|0);
  43963. HEAP32[$878>>2] = 0;
  43964. HEAP32[$877>>2] = 0;
  43965. $879 = HEAP32[(21964)>>2]|0;
  43966. $880 = 1 << $$0296$i$i;
  43967. $881 = $879 & $880;
  43968. $882 = ($881|0)==(0);
  43969. if ($882) {
  43970. $883 = $879 | $880;
  43971. HEAP32[(21964)>>2] = $883;
  43972. HEAP32[$875>>2] = $721;
  43973. $884 = ((($721)) + 24|0);
  43974. HEAP32[$884>>2] = $875;
  43975. $885 = ((($721)) + 12|0);
  43976. HEAP32[$885>>2] = $721;
  43977. $886 = ((($721)) + 8|0);
  43978. HEAP32[$886>>2] = $721;
  43979. break;
  43980. }
  43981. $887 = HEAP32[$875>>2]|0;
  43982. $888 = ($$0296$i$i|0)==(31);
  43983. $889 = $$0296$i$i >>> 1;
  43984. $890 = (25 - ($889))|0;
  43985. $891 = $888 ? 0 : $890;
  43986. $892 = $$0287$i$i << $891;
  43987. $$0288$i$i = $892;$$0289$i$i = $887;
  43988. while(1) {
  43989. $893 = ((($$0289$i$i)) + 4|0);
  43990. $894 = HEAP32[$893>>2]|0;
  43991. $895 = $894 & -8;
  43992. $896 = ($895|0)==($$0287$i$i|0);
  43993. if ($896) {
  43994. label = 265;
  43995. break;
  43996. }
  43997. $897 = $$0288$i$i >>> 31;
  43998. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  43999. $899 = $$0288$i$i << 1;
  44000. $900 = HEAP32[$898>>2]|0;
  44001. $901 = ($900|0)==(0|0);
  44002. if ($901) {
  44003. label = 262;
  44004. break;
  44005. } else {
  44006. $$0288$i$i = $899;$$0289$i$i = $900;
  44007. }
  44008. }
  44009. if ((label|0) == 262) {
  44010. $902 = HEAP32[(21976)>>2]|0;
  44011. $903 = ($898>>>0)<($902>>>0);
  44012. if ($903) {
  44013. _abort();
  44014. // unreachable;
  44015. } else {
  44016. HEAP32[$898>>2] = $721;
  44017. $904 = ((($721)) + 24|0);
  44018. HEAP32[$904>>2] = $$0289$i$i;
  44019. $905 = ((($721)) + 12|0);
  44020. HEAP32[$905>>2] = $721;
  44021. $906 = ((($721)) + 8|0);
  44022. HEAP32[$906>>2] = $721;
  44023. break;
  44024. }
  44025. }
  44026. else if ((label|0) == 265) {
  44027. $907 = ((($$0289$i$i)) + 8|0);
  44028. $908 = HEAP32[$907>>2]|0;
  44029. $909 = HEAP32[(21976)>>2]|0;
  44030. $910 = ($908>>>0)>=($909>>>0);
  44031. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  44032. $911 = $910 & $not$7$i$i;
  44033. if ($911) {
  44034. $912 = ((($908)) + 12|0);
  44035. HEAP32[$912>>2] = $721;
  44036. HEAP32[$907>>2] = $721;
  44037. $913 = ((($721)) + 8|0);
  44038. HEAP32[$913>>2] = $908;
  44039. $914 = ((($721)) + 12|0);
  44040. HEAP32[$914>>2] = $$0289$i$i;
  44041. $915 = ((($721)) + 24|0);
  44042. HEAP32[$915>>2] = 0;
  44043. break;
  44044. } else {
  44045. _abort();
  44046. // unreachable;
  44047. }
  44048. }
  44049. }
  44050. } while(0);
  44051. $1047 = ((($709)) + 8|0);
  44052. $$0 = $1047;
  44053. STACKTOP = sp;return ($$0|0);
  44054. }
  44055. }
  44056. $$0$i$i$i = (22408);
  44057. while(1) {
  44058. $916 = HEAP32[$$0$i$i$i>>2]|0;
  44059. $917 = ($916>>>0)>($630>>>0);
  44060. if (!($917)) {
  44061. $918 = ((($$0$i$i$i)) + 4|0);
  44062. $919 = HEAP32[$918>>2]|0;
  44063. $920 = (($916) + ($919)|0);
  44064. $921 = ($920>>>0)>($630>>>0);
  44065. if ($921) {
  44066. break;
  44067. }
  44068. }
  44069. $922 = ((($$0$i$i$i)) + 8|0);
  44070. $923 = HEAP32[$922>>2]|0;
  44071. $$0$i$i$i = $923;
  44072. }
  44073. $924 = ((($920)) + -47|0);
  44074. $925 = ((($924)) + 8|0);
  44075. $926 = $925;
  44076. $927 = $926 & 7;
  44077. $928 = ($927|0)==(0);
  44078. $929 = (0 - ($926))|0;
  44079. $930 = $929 & 7;
  44080. $931 = $928 ? 0 : $930;
  44081. $932 = (($924) + ($931)|0);
  44082. $933 = ((($630)) + 16|0);
  44083. $934 = ($932>>>0)<($933>>>0);
  44084. $935 = $934 ? $630 : $932;
  44085. $936 = ((($935)) + 8|0);
  44086. $937 = ((($935)) + 24|0);
  44087. $938 = (($$723948$i) + -40)|0;
  44088. $939 = ((($$749$i)) + 8|0);
  44089. $940 = $939;
  44090. $941 = $940 & 7;
  44091. $942 = ($941|0)==(0);
  44092. $943 = (0 - ($940))|0;
  44093. $944 = $943 & 7;
  44094. $945 = $942 ? 0 : $944;
  44095. $946 = (($$749$i) + ($945)|0);
  44096. $947 = (($938) - ($945))|0;
  44097. HEAP32[(21984)>>2] = $946;
  44098. HEAP32[(21972)>>2] = $947;
  44099. $948 = $947 | 1;
  44100. $949 = ((($946)) + 4|0);
  44101. HEAP32[$949>>2] = $948;
  44102. $950 = (($946) + ($947)|0);
  44103. $951 = ((($950)) + 4|0);
  44104. HEAP32[$951>>2] = 40;
  44105. $952 = HEAP32[(22448)>>2]|0;
  44106. HEAP32[(21988)>>2] = $952;
  44107. $953 = ((($935)) + 4|0);
  44108. HEAP32[$953>>2] = 27;
  44109. ;HEAP32[$936>>2]=HEAP32[(22408)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(22408)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(22408)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(22408)+12>>2]|0;
  44110. HEAP32[(22408)>>2] = $$749$i;
  44111. HEAP32[(22412)>>2] = $$723948$i;
  44112. HEAP32[(22420)>>2] = 0;
  44113. HEAP32[(22416)>>2] = $936;
  44114. $955 = $937;
  44115. while(1) {
  44116. $954 = ((($955)) + 4|0);
  44117. HEAP32[$954>>2] = 7;
  44118. $956 = ((($955)) + 8|0);
  44119. $957 = ($956>>>0)<($920>>>0);
  44120. if ($957) {
  44121. $955 = $954;
  44122. } else {
  44123. break;
  44124. }
  44125. }
  44126. $958 = ($935|0)==($630|0);
  44127. if (!($958)) {
  44128. $959 = $935;
  44129. $960 = $630;
  44130. $961 = (($959) - ($960))|0;
  44131. $962 = HEAP32[$953>>2]|0;
  44132. $963 = $962 & -2;
  44133. HEAP32[$953>>2] = $963;
  44134. $964 = $961 | 1;
  44135. $965 = ((($630)) + 4|0);
  44136. HEAP32[$965>>2] = $964;
  44137. HEAP32[$935>>2] = $961;
  44138. $966 = $961 >>> 3;
  44139. $967 = ($961>>>0)<(256);
  44140. if ($967) {
  44141. $968 = $966 << 1;
  44142. $969 = (22000 + ($968<<2)|0);
  44143. $970 = HEAP32[5490]|0;
  44144. $971 = 1 << $966;
  44145. $972 = $970 & $971;
  44146. $973 = ($972|0)==(0);
  44147. if ($973) {
  44148. $974 = $970 | $971;
  44149. HEAP32[5490] = $974;
  44150. $$pre$i$i = ((($969)) + 8|0);
  44151. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  44152. } else {
  44153. $975 = ((($969)) + 8|0);
  44154. $976 = HEAP32[$975>>2]|0;
  44155. $977 = HEAP32[(21976)>>2]|0;
  44156. $978 = ($976>>>0)<($977>>>0);
  44157. if ($978) {
  44158. _abort();
  44159. // unreachable;
  44160. } else {
  44161. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  44162. }
  44163. }
  44164. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  44165. $979 = ((($$0211$i$i)) + 12|0);
  44166. HEAP32[$979>>2] = $630;
  44167. $980 = ((($630)) + 8|0);
  44168. HEAP32[$980>>2] = $$0211$i$i;
  44169. $981 = ((($630)) + 12|0);
  44170. HEAP32[$981>>2] = $969;
  44171. break;
  44172. }
  44173. $982 = $961 >>> 8;
  44174. $983 = ($982|0)==(0);
  44175. if ($983) {
  44176. $$0212$i$i = 0;
  44177. } else {
  44178. $984 = ($961>>>0)>(16777215);
  44179. if ($984) {
  44180. $$0212$i$i = 31;
  44181. } else {
  44182. $985 = (($982) + 1048320)|0;
  44183. $986 = $985 >>> 16;
  44184. $987 = $986 & 8;
  44185. $988 = $982 << $987;
  44186. $989 = (($988) + 520192)|0;
  44187. $990 = $989 >>> 16;
  44188. $991 = $990 & 4;
  44189. $992 = $991 | $987;
  44190. $993 = $988 << $991;
  44191. $994 = (($993) + 245760)|0;
  44192. $995 = $994 >>> 16;
  44193. $996 = $995 & 2;
  44194. $997 = $992 | $996;
  44195. $998 = (14 - ($997))|0;
  44196. $999 = $993 << $996;
  44197. $1000 = $999 >>> 15;
  44198. $1001 = (($998) + ($1000))|0;
  44199. $1002 = $1001 << 1;
  44200. $1003 = (($1001) + 7)|0;
  44201. $1004 = $961 >>> $1003;
  44202. $1005 = $1004 & 1;
  44203. $1006 = $1005 | $1002;
  44204. $$0212$i$i = $1006;
  44205. }
  44206. }
  44207. $1007 = (22264 + ($$0212$i$i<<2)|0);
  44208. $1008 = ((($630)) + 28|0);
  44209. HEAP32[$1008>>2] = $$0212$i$i;
  44210. $1009 = ((($630)) + 20|0);
  44211. HEAP32[$1009>>2] = 0;
  44212. HEAP32[$933>>2] = 0;
  44213. $1010 = HEAP32[(21964)>>2]|0;
  44214. $1011 = 1 << $$0212$i$i;
  44215. $1012 = $1010 & $1011;
  44216. $1013 = ($1012|0)==(0);
  44217. if ($1013) {
  44218. $1014 = $1010 | $1011;
  44219. HEAP32[(21964)>>2] = $1014;
  44220. HEAP32[$1007>>2] = $630;
  44221. $1015 = ((($630)) + 24|0);
  44222. HEAP32[$1015>>2] = $1007;
  44223. $1016 = ((($630)) + 12|0);
  44224. HEAP32[$1016>>2] = $630;
  44225. $1017 = ((($630)) + 8|0);
  44226. HEAP32[$1017>>2] = $630;
  44227. break;
  44228. }
  44229. $1018 = HEAP32[$1007>>2]|0;
  44230. $1019 = ($$0212$i$i|0)==(31);
  44231. $1020 = $$0212$i$i >>> 1;
  44232. $1021 = (25 - ($1020))|0;
  44233. $1022 = $1019 ? 0 : $1021;
  44234. $1023 = $961 << $1022;
  44235. $$0206$i$i = $1023;$$0207$i$i = $1018;
  44236. while(1) {
  44237. $1024 = ((($$0207$i$i)) + 4|0);
  44238. $1025 = HEAP32[$1024>>2]|0;
  44239. $1026 = $1025 & -8;
  44240. $1027 = ($1026|0)==($961|0);
  44241. if ($1027) {
  44242. label = 292;
  44243. break;
  44244. }
  44245. $1028 = $$0206$i$i >>> 31;
  44246. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  44247. $1030 = $$0206$i$i << 1;
  44248. $1031 = HEAP32[$1029>>2]|0;
  44249. $1032 = ($1031|0)==(0|0);
  44250. if ($1032) {
  44251. label = 289;
  44252. break;
  44253. } else {
  44254. $$0206$i$i = $1030;$$0207$i$i = $1031;
  44255. }
  44256. }
  44257. if ((label|0) == 289) {
  44258. $1033 = HEAP32[(21976)>>2]|0;
  44259. $1034 = ($1029>>>0)<($1033>>>0);
  44260. if ($1034) {
  44261. _abort();
  44262. // unreachable;
  44263. } else {
  44264. HEAP32[$1029>>2] = $630;
  44265. $1035 = ((($630)) + 24|0);
  44266. HEAP32[$1035>>2] = $$0207$i$i;
  44267. $1036 = ((($630)) + 12|0);
  44268. HEAP32[$1036>>2] = $630;
  44269. $1037 = ((($630)) + 8|0);
  44270. HEAP32[$1037>>2] = $630;
  44271. break;
  44272. }
  44273. }
  44274. else if ((label|0) == 292) {
  44275. $1038 = ((($$0207$i$i)) + 8|0);
  44276. $1039 = HEAP32[$1038>>2]|0;
  44277. $1040 = HEAP32[(21976)>>2]|0;
  44278. $1041 = ($1039>>>0)>=($1040>>>0);
  44279. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  44280. $1042 = $1041 & $not$$i$i;
  44281. if ($1042) {
  44282. $1043 = ((($1039)) + 12|0);
  44283. HEAP32[$1043>>2] = $630;
  44284. HEAP32[$1038>>2] = $630;
  44285. $1044 = ((($630)) + 8|0);
  44286. HEAP32[$1044>>2] = $1039;
  44287. $1045 = ((($630)) + 12|0);
  44288. HEAP32[$1045>>2] = $$0207$i$i;
  44289. $1046 = ((($630)) + 24|0);
  44290. HEAP32[$1046>>2] = 0;
  44291. break;
  44292. } else {
  44293. _abort();
  44294. // unreachable;
  44295. }
  44296. }
  44297. }
  44298. }
  44299. } while(0);
  44300. $1048 = HEAP32[(21972)>>2]|0;
  44301. $1049 = ($1048>>>0)>($$0197>>>0);
  44302. if ($1049) {
  44303. $1050 = (($1048) - ($$0197))|0;
  44304. HEAP32[(21972)>>2] = $1050;
  44305. $1051 = HEAP32[(21984)>>2]|0;
  44306. $1052 = (($1051) + ($$0197)|0);
  44307. HEAP32[(21984)>>2] = $1052;
  44308. $1053 = $1050 | 1;
  44309. $1054 = ((($1052)) + 4|0);
  44310. HEAP32[$1054>>2] = $1053;
  44311. $1055 = $$0197 | 3;
  44312. $1056 = ((($1051)) + 4|0);
  44313. HEAP32[$1056>>2] = $1055;
  44314. $1057 = ((($1051)) + 8|0);
  44315. $$0 = $1057;
  44316. STACKTOP = sp;return ($$0|0);
  44317. }
  44318. }
  44319. $1058 = (___errno_location()|0);
  44320. HEAP32[$1058>>2] = 12;
  44321. $$0 = 0;
  44322. STACKTOP = sp;return ($$0|0);
  44323. }
  44324. function _free($0) {
  44325. $0 = $0|0;
  44326. 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;
  44327. 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;
  44328. 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;
  44329. 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;
  44330. 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;
  44331. 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;
  44332. 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;
  44333. 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;
  44334. 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;
  44335. 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;
  44336. 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;
  44337. 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;
  44338. 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;
  44339. 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;
  44340. 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;
  44341. 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;
  44342. 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;
  44343. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  44344. sp = STACKTOP;
  44345. $1 = ($0|0)==(0|0);
  44346. if ($1) {
  44347. return;
  44348. }
  44349. $2 = ((($0)) + -8|0);
  44350. $3 = HEAP32[(21976)>>2]|0;
  44351. $4 = ($2>>>0)<($3>>>0);
  44352. if ($4) {
  44353. _abort();
  44354. // unreachable;
  44355. }
  44356. $5 = ((($0)) + -4|0);
  44357. $6 = HEAP32[$5>>2]|0;
  44358. $7 = $6 & 3;
  44359. $8 = ($7|0)==(1);
  44360. if ($8) {
  44361. _abort();
  44362. // unreachable;
  44363. }
  44364. $9 = $6 & -8;
  44365. $10 = (($2) + ($9)|0);
  44366. $11 = $6 & 1;
  44367. $12 = ($11|0)==(0);
  44368. L10: do {
  44369. if ($12) {
  44370. $13 = HEAP32[$2>>2]|0;
  44371. $14 = ($7|0)==(0);
  44372. if ($14) {
  44373. return;
  44374. }
  44375. $15 = (0 - ($13))|0;
  44376. $16 = (($2) + ($15)|0);
  44377. $17 = (($13) + ($9))|0;
  44378. $18 = ($16>>>0)<($3>>>0);
  44379. if ($18) {
  44380. _abort();
  44381. // unreachable;
  44382. }
  44383. $19 = HEAP32[(21980)>>2]|0;
  44384. $20 = ($16|0)==($19|0);
  44385. if ($20) {
  44386. $104 = ((($10)) + 4|0);
  44387. $105 = HEAP32[$104>>2]|0;
  44388. $106 = $105 & 3;
  44389. $107 = ($106|0)==(3);
  44390. if (!($107)) {
  44391. $$1 = $16;$$1382 = $17;$113 = $16;
  44392. break;
  44393. }
  44394. $108 = (($16) + ($17)|0);
  44395. $109 = ((($16)) + 4|0);
  44396. $110 = $17 | 1;
  44397. $111 = $105 & -2;
  44398. HEAP32[(21968)>>2] = $17;
  44399. HEAP32[$104>>2] = $111;
  44400. HEAP32[$109>>2] = $110;
  44401. HEAP32[$108>>2] = $17;
  44402. return;
  44403. }
  44404. $21 = $13 >>> 3;
  44405. $22 = ($13>>>0)<(256);
  44406. if ($22) {
  44407. $23 = ((($16)) + 8|0);
  44408. $24 = HEAP32[$23>>2]|0;
  44409. $25 = ((($16)) + 12|0);
  44410. $26 = HEAP32[$25>>2]|0;
  44411. $27 = $21 << 1;
  44412. $28 = (22000 + ($27<<2)|0);
  44413. $29 = ($24|0)==($28|0);
  44414. if (!($29)) {
  44415. $30 = ($24>>>0)<($3>>>0);
  44416. if ($30) {
  44417. _abort();
  44418. // unreachable;
  44419. }
  44420. $31 = ((($24)) + 12|0);
  44421. $32 = HEAP32[$31>>2]|0;
  44422. $33 = ($32|0)==($16|0);
  44423. if (!($33)) {
  44424. _abort();
  44425. // unreachable;
  44426. }
  44427. }
  44428. $34 = ($26|0)==($24|0);
  44429. if ($34) {
  44430. $35 = 1 << $21;
  44431. $36 = $35 ^ -1;
  44432. $37 = HEAP32[5490]|0;
  44433. $38 = $37 & $36;
  44434. HEAP32[5490] = $38;
  44435. $$1 = $16;$$1382 = $17;$113 = $16;
  44436. break;
  44437. }
  44438. $39 = ($26|0)==($28|0);
  44439. if ($39) {
  44440. $$pre444 = ((($26)) + 8|0);
  44441. $$pre$phi445Z2D = $$pre444;
  44442. } else {
  44443. $40 = ($26>>>0)<($3>>>0);
  44444. if ($40) {
  44445. _abort();
  44446. // unreachable;
  44447. }
  44448. $41 = ((($26)) + 8|0);
  44449. $42 = HEAP32[$41>>2]|0;
  44450. $43 = ($42|0)==($16|0);
  44451. if ($43) {
  44452. $$pre$phi445Z2D = $41;
  44453. } else {
  44454. _abort();
  44455. // unreachable;
  44456. }
  44457. }
  44458. $44 = ((($24)) + 12|0);
  44459. HEAP32[$44>>2] = $26;
  44460. HEAP32[$$pre$phi445Z2D>>2] = $24;
  44461. $$1 = $16;$$1382 = $17;$113 = $16;
  44462. break;
  44463. }
  44464. $45 = ((($16)) + 24|0);
  44465. $46 = HEAP32[$45>>2]|0;
  44466. $47 = ((($16)) + 12|0);
  44467. $48 = HEAP32[$47>>2]|0;
  44468. $49 = ($48|0)==($16|0);
  44469. do {
  44470. if ($49) {
  44471. $59 = ((($16)) + 16|0);
  44472. $60 = ((($59)) + 4|0);
  44473. $61 = HEAP32[$60>>2]|0;
  44474. $62 = ($61|0)==(0|0);
  44475. if ($62) {
  44476. $63 = HEAP32[$59>>2]|0;
  44477. $64 = ($63|0)==(0|0);
  44478. if ($64) {
  44479. $$3 = 0;
  44480. break;
  44481. } else {
  44482. $$1387 = $63;$$1390 = $59;
  44483. }
  44484. } else {
  44485. $$1387 = $61;$$1390 = $60;
  44486. }
  44487. while(1) {
  44488. $65 = ((($$1387)) + 20|0);
  44489. $66 = HEAP32[$65>>2]|0;
  44490. $67 = ($66|0)==(0|0);
  44491. if (!($67)) {
  44492. $$1387 = $66;$$1390 = $65;
  44493. continue;
  44494. }
  44495. $68 = ((($$1387)) + 16|0);
  44496. $69 = HEAP32[$68>>2]|0;
  44497. $70 = ($69|0)==(0|0);
  44498. if ($70) {
  44499. break;
  44500. } else {
  44501. $$1387 = $69;$$1390 = $68;
  44502. }
  44503. }
  44504. $71 = ($$1390>>>0)<($3>>>0);
  44505. if ($71) {
  44506. _abort();
  44507. // unreachable;
  44508. } else {
  44509. HEAP32[$$1390>>2] = 0;
  44510. $$3 = $$1387;
  44511. break;
  44512. }
  44513. } else {
  44514. $50 = ((($16)) + 8|0);
  44515. $51 = HEAP32[$50>>2]|0;
  44516. $52 = ($51>>>0)<($3>>>0);
  44517. if ($52) {
  44518. _abort();
  44519. // unreachable;
  44520. }
  44521. $53 = ((($51)) + 12|0);
  44522. $54 = HEAP32[$53>>2]|0;
  44523. $55 = ($54|0)==($16|0);
  44524. if (!($55)) {
  44525. _abort();
  44526. // unreachable;
  44527. }
  44528. $56 = ((($48)) + 8|0);
  44529. $57 = HEAP32[$56>>2]|0;
  44530. $58 = ($57|0)==($16|0);
  44531. if ($58) {
  44532. HEAP32[$53>>2] = $48;
  44533. HEAP32[$56>>2] = $51;
  44534. $$3 = $48;
  44535. break;
  44536. } else {
  44537. _abort();
  44538. // unreachable;
  44539. }
  44540. }
  44541. } while(0);
  44542. $72 = ($46|0)==(0|0);
  44543. if ($72) {
  44544. $$1 = $16;$$1382 = $17;$113 = $16;
  44545. } else {
  44546. $73 = ((($16)) + 28|0);
  44547. $74 = HEAP32[$73>>2]|0;
  44548. $75 = (22264 + ($74<<2)|0);
  44549. $76 = HEAP32[$75>>2]|0;
  44550. $77 = ($16|0)==($76|0);
  44551. do {
  44552. if ($77) {
  44553. HEAP32[$75>>2] = $$3;
  44554. $cond421 = ($$3|0)==(0|0);
  44555. if ($cond421) {
  44556. $78 = 1 << $74;
  44557. $79 = $78 ^ -1;
  44558. $80 = HEAP32[(21964)>>2]|0;
  44559. $81 = $80 & $79;
  44560. HEAP32[(21964)>>2] = $81;
  44561. $$1 = $16;$$1382 = $17;$113 = $16;
  44562. break L10;
  44563. }
  44564. } else {
  44565. $82 = HEAP32[(21976)>>2]|0;
  44566. $83 = ($46>>>0)<($82>>>0);
  44567. if ($83) {
  44568. _abort();
  44569. // unreachable;
  44570. } else {
  44571. $84 = ((($46)) + 16|0);
  44572. $85 = HEAP32[$84>>2]|0;
  44573. $not$405 = ($85|0)!=($16|0);
  44574. $$sink3 = $not$405&1;
  44575. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  44576. HEAP32[$86>>2] = $$3;
  44577. $87 = ($$3|0)==(0|0);
  44578. if ($87) {
  44579. $$1 = $16;$$1382 = $17;$113 = $16;
  44580. break L10;
  44581. } else {
  44582. break;
  44583. }
  44584. }
  44585. }
  44586. } while(0);
  44587. $88 = HEAP32[(21976)>>2]|0;
  44588. $89 = ($$3>>>0)<($88>>>0);
  44589. if ($89) {
  44590. _abort();
  44591. // unreachable;
  44592. }
  44593. $90 = ((($$3)) + 24|0);
  44594. HEAP32[$90>>2] = $46;
  44595. $91 = ((($16)) + 16|0);
  44596. $92 = HEAP32[$91>>2]|0;
  44597. $93 = ($92|0)==(0|0);
  44598. do {
  44599. if (!($93)) {
  44600. $94 = ($92>>>0)<($88>>>0);
  44601. if ($94) {
  44602. _abort();
  44603. // unreachable;
  44604. } else {
  44605. $95 = ((($$3)) + 16|0);
  44606. HEAP32[$95>>2] = $92;
  44607. $96 = ((($92)) + 24|0);
  44608. HEAP32[$96>>2] = $$3;
  44609. break;
  44610. }
  44611. }
  44612. } while(0);
  44613. $97 = ((($91)) + 4|0);
  44614. $98 = HEAP32[$97>>2]|0;
  44615. $99 = ($98|0)==(0|0);
  44616. if ($99) {
  44617. $$1 = $16;$$1382 = $17;$113 = $16;
  44618. } else {
  44619. $100 = HEAP32[(21976)>>2]|0;
  44620. $101 = ($98>>>0)<($100>>>0);
  44621. if ($101) {
  44622. _abort();
  44623. // unreachable;
  44624. } else {
  44625. $102 = ((($$3)) + 20|0);
  44626. HEAP32[$102>>2] = $98;
  44627. $103 = ((($98)) + 24|0);
  44628. HEAP32[$103>>2] = $$3;
  44629. $$1 = $16;$$1382 = $17;$113 = $16;
  44630. break;
  44631. }
  44632. }
  44633. }
  44634. } else {
  44635. $$1 = $2;$$1382 = $9;$113 = $2;
  44636. }
  44637. } while(0);
  44638. $112 = ($113>>>0)<($10>>>0);
  44639. if (!($112)) {
  44640. _abort();
  44641. // unreachable;
  44642. }
  44643. $114 = ((($10)) + 4|0);
  44644. $115 = HEAP32[$114>>2]|0;
  44645. $116 = $115 & 1;
  44646. $117 = ($116|0)==(0);
  44647. if ($117) {
  44648. _abort();
  44649. // unreachable;
  44650. }
  44651. $118 = $115 & 2;
  44652. $119 = ($118|0)==(0);
  44653. if ($119) {
  44654. $120 = HEAP32[(21984)>>2]|0;
  44655. $121 = ($10|0)==($120|0);
  44656. $122 = HEAP32[(21980)>>2]|0;
  44657. if ($121) {
  44658. $123 = HEAP32[(21972)>>2]|0;
  44659. $124 = (($123) + ($$1382))|0;
  44660. HEAP32[(21972)>>2] = $124;
  44661. HEAP32[(21984)>>2] = $$1;
  44662. $125 = $124 | 1;
  44663. $126 = ((($$1)) + 4|0);
  44664. HEAP32[$126>>2] = $125;
  44665. $127 = ($$1|0)==($122|0);
  44666. if (!($127)) {
  44667. return;
  44668. }
  44669. HEAP32[(21980)>>2] = 0;
  44670. HEAP32[(21968)>>2] = 0;
  44671. return;
  44672. }
  44673. $128 = ($10|0)==($122|0);
  44674. if ($128) {
  44675. $129 = HEAP32[(21968)>>2]|0;
  44676. $130 = (($129) + ($$1382))|0;
  44677. HEAP32[(21968)>>2] = $130;
  44678. HEAP32[(21980)>>2] = $113;
  44679. $131 = $130 | 1;
  44680. $132 = ((($$1)) + 4|0);
  44681. HEAP32[$132>>2] = $131;
  44682. $133 = (($113) + ($130)|0);
  44683. HEAP32[$133>>2] = $130;
  44684. return;
  44685. }
  44686. $134 = $115 & -8;
  44687. $135 = (($134) + ($$1382))|0;
  44688. $136 = $115 >>> 3;
  44689. $137 = ($115>>>0)<(256);
  44690. L108: do {
  44691. if ($137) {
  44692. $138 = ((($10)) + 8|0);
  44693. $139 = HEAP32[$138>>2]|0;
  44694. $140 = ((($10)) + 12|0);
  44695. $141 = HEAP32[$140>>2]|0;
  44696. $142 = $136 << 1;
  44697. $143 = (22000 + ($142<<2)|0);
  44698. $144 = ($139|0)==($143|0);
  44699. if (!($144)) {
  44700. $145 = HEAP32[(21976)>>2]|0;
  44701. $146 = ($139>>>0)<($145>>>0);
  44702. if ($146) {
  44703. _abort();
  44704. // unreachable;
  44705. }
  44706. $147 = ((($139)) + 12|0);
  44707. $148 = HEAP32[$147>>2]|0;
  44708. $149 = ($148|0)==($10|0);
  44709. if (!($149)) {
  44710. _abort();
  44711. // unreachable;
  44712. }
  44713. }
  44714. $150 = ($141|0)==($139|0);
  44715. if ($150) {
  44716. $151 = 1 << $136;
  44717. $152 = $151 ^ -1;
  44718. $153 = HEAP32[5490]|0;
  44719. $154 = $153 & $152;
  44720. HEAP32[5490] = $154;
  44721. break;
  44722. }
  44723. $155 = ($141|0)==($143|0);
  44724. if ($155) {
  44725. $$pre442 = ((($141)) + 8|0);
  44726. $$pre$phi443Z2D = $$pre442;
  44727. } else {
  44728. $156 = HEAP32[(21976)>>2]|0;
  44729. $157 = ($141>>>0)<($156>>>0);
  44730. if ($157) {
  44731. _abort();
  44732. // unreachable;
  44733. }
  44734. $158 = ((($141)) + 8|0);
  44735. $159 = HEAP32[$158>>2]|0;
  44736. $160 = ($159|0)==($10|0);
  44737. if ($160) {
  44738. $$pre$phi443Z2D = $158;
  44739. } else {
  44740. _abort();
  44741. // unreachable;
  44742. }
  44743. }
  44744. $161 = ((($139)) + 12|0);
  44745. HEAP32[$161>>2] = $141;
  44746. HEAP32[$$pre$phi443Z2D>>2] = $139;
  44747. } else {
  44748. $162 = ((($10)) + 24|0);
  44749. $163 = HEAP32[$162>>2]|0;
  44750. $164 = ((($10)) + 12|0);
  44751. $165 = HEAP32[$164>>2]|0;
  44752. $166 = ($165|0)==($10|0);
  44753. do {
  44754. if ($166) {
  44755. $177 = ((($10)) + 16|0);
  44756. $178 = ((($177)) + 4|0);
  44757. $179 = HEAP32[$178>>2]|0;
  44758. $180 = ($179|0)==(0|0);
  44759. if ($180) {
  44760. $181 = HEAP32[$177>>2]|0;
  44761. $182 = ($181|0)==(0|0);
  44762. if ($182) {
  44763. $$3400 = 0;
  44764. break;
  44765. } else {
  44766. $$1398 = $181;$$1402 = $177;
  44767. }
  44768. } else {
  44769. $$1398 = $179;$$1402 = $178;
  44770. }
  44771. while(1) {
  44772. $183 = ((($$1398)) + 20|0);
  44773. $184 = HEAP32[$183>>2]|0;
  44774. $185 = ($184|0)==(0|0);
  44775. if (!($185)) {
  44776. $$1398 = $184;$$1402 = $183;
  44777. continue;
  44778. }
  44779. $186 = ((($$1398)) + 16|0);
  44780. $187 = HEAP32[$186>>2]|0;
  44781. $188 = ($187|0)==(0|0);
  44782. if ($188) {
  44783. break;
  44784. } else {
  44785. $$1398 = $187;$$1402 = $186;
  44786. }
  44787. }
  44788. $189 = HEAP32[(21976)>>2]|0;
  44789. $190 = ($$1402>>>0)<($189>>>0);
  44790. if ($190) {
  44791. _abort();
  44792. // unreachable;
  44793. } else {
  44794. HEAP32[$$1402>>2] = 0;
  44795. $$3400 = $$1398;
  44796. break;
  44797. }
  44798. } else {
  44799. $167 = ((($10)) + 8|0);
  44800. $168 = HEAP32[$167>>2]|0;
  44801. $169 = HEAP32[(21976)>>2]|0;
  44802. $170 = ($168>>>0)<($169>>>0);
  44803. if ($170) {
  44804. _abort();
  44805. // unreachable;
  44806. }
  44807. $171 = ((($168)) + 12|0);
  44808. $172 = HEAP32[$171>>2]|0;
  44809. $173 = ($172|0)==($10|0);
  44810. if (!($173)) {
  44811. _abort();
  44812. // unreachable;
  44813. }
  44814. $174 = ((($165)) + 8|0);
  44815. $175 = HEAP32[$174>>2]|0;
  44816. $176 = ($175|0)==($10|0);
  44817. if ($176) {
  44818. HEAP32[$171>>2] = $165;
  44819. HEAP32[$174>>2] = $168;
  44820. $$3400 = $165;
  44821. break;
  44822. } else {
  44823. _abort();
  44824. // unreachable;
  44825. }
  44826. }
  44827. } while(0);
  44828. $191 = ($163|0)==(0|0);
  44829. if (!($191)) {
  44830. $192 = ((($10)) + 28|0);
  44831. $193 = HEAP32[$192>>2]|0;
  44832. $194 = (22264 + ($193<<2)|0);
  44833. $195 = HEAP32[$194>>2]|0;
  44834. $196 = ($10|0)==($195|0);
  44835. do {
  44836. if ($196) {
  44837. HEAP32[$194>>2] = $$3400;
  44838. $cond422 = ($$3400|0)==(0|0);
  44839. if ($cond422) {
  44840. $197 = 1 << $193;
  44841. $198 = $197 ^ -1;
  44842. $199 = HEAP32[(21964)>>2]|0;
  44843. $200 = $199 & $198;
  44844. HEAP32[(21964)>>2] = $200;
  44845. break L108;
  44846. }
  44847. } else {
  44848. $201 = HEAP32[(21976)>>2]|0;
  44849. $202 = ($163>>>0)<($201>>>0);
  44850. if ($202) {
  44851. _abort();
  44852. // unreachable;
  44853. } else {
  44854. $203 = ((($163)) + 16|0);
  44855. $204 = HEAP32[$203>>2]|0;
  44856. $not$ = ($204|0)!=($10|0);
  44857. $$sink5 = $not$&1;
  44858. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  44859. HEAP32[$205>>2] = $$3400;
  44860. $206 = ($$3400|0)==(0|0);
  44861. if ($206) {
  44862. break L108;
  44863. } else {
  44864. break;
  44865. }
  44866. }
  44867. }
  44868. } while(0);
  44869. $207 = HEAP32[(21976)>>2]|0;
  44870. $208 = ($$3400>>>0)<($207>>>0);
  44871. if ($208) {
  44872. _abort();
  44873. // unreachable;
  44874. }
  44875. $209 = ((($$3400)) + 24|0);
  44876. HEAP32[$209>>2] = $163;
  44877. $210 = ((($10)) + 16|0);
  44878. $211 = HEAP32[$210>>2]|0;
  44879. $212 = ($211|0)==(0|0);
  44880. do {
  44881. if (!($212)) {
  44882. $213 = ($211>>>0)<($207>>>0);
  44883. if ($213) {
  44884. _abort();
  44885. // unreachable;
  44886. } else {
  44887. $214 = ((($$3400)) + 16|0);
  44888. HEAP32[$214>>2] = $211;
  44889. $215 = ((($211)) + 24|0);
  44890. HEAP32[$215>>2] = $$3400;
  44891. break;
  44892. }
  44893. }
  44894. } while(0);
  44895. $216 = ((($210)) + 4|0);
  44896. $217 = HEAP32[$216>>2]|0;
  44897. $218 = ($217|0)==(0|0);
  44898. if (!($218)) {
  44899. $219 = HEAP32[(21976)>>2]|0;
  44900. $220 = ($217>>>0)<($219>>>0);
  44901. if ($220) {
  44902. _abort();
  44903. // unreachable;
  44904. } else {
  44905. $221 = ((($$3400)) + 20|0);
  44906. HEAP32[$221>>2] = $217;
  44907. $222 = ((($217)) + 24|0);
  44908. HEAP32[$222>>2] = $$3400;
  44909. break;
  44910. }
  44911. }
  44912. }
  44913. }
  44914. } while(0);
  44915. $223 = $135 | 1;
  44916. $224 = ((($$1)) + 4|0);
  44917. HEAP32[$224>>2] = $223;
  44918. $225 = (($113) + ($135)|0);
  44919. HEAP32[$225>>2] = $135;
  44920. $226 = HEAP32[(21980)>>2]|0;
  44921. $227 = ($$1|0)==($226|0);
  44922. if ($227) {
  44923. HEAP32[(21968)>>2] = $135;
  44924. return;
  44925. } else {
  44926. $$2 = $135;
  44927. }
  44928. } else {
  44929. $228 = $115 & -2;
  44930. HEAP32[$114>>2] = $228;
  44931. $229 = $$1382 | 1;
  44932. $230 = ((($$1)) + 4|0);
  44933. HEAP32[$230>>2] = $229;
  44934. $231 = (($113) + ($$1382)|0);
  44935. HEAP32[$231>>2] = $$1382;
  44936. $$2 = $$1382;
  44937. }
  44938. $232 = $$2 >>> 3;
  44939. $233 = ($$2>>>0)<(256);
  44940. if ($233) {
  44941. $234 = $232 << 1;
  44942. $235 = (22000 + ($234<<2)|0);
  44943. $236 = HEAP32[5490]|0;
  44944. $237 = 1 << $232;
  44945. $238 = $236 & $237;
  44946. $239 = ($238|0)==(0);
  44947. if ($239) {
  44948. $240 = $236 | $237;
  44949. HEAP32[5490] = $240;
  44950. $$pre = ((($235)) + 8|0);
  44951. $$0403 = $235;$$pre$phiZ2D = $$pre;
  44952. } else {
  44953. $241 = ((($235)) + 8|0);
  44954. $242 = HEAP32[$241>>2]|0;
  44955. $243 = HEAP32[(21976)>>2]|0;
  44956. $244 = ($242>>>0)<($243>>>0);
  44957. if ($244) {
  44958. _abort();
  44959. // unreachable;
  44960. } else {
  44961. $$0403 = $242;$$pre$phiZ2D = $241;
  44962. }
  44963. }
  44964. HEAP32[$$pre$phiZ2D>>2] = $$1;
  44965. $245 = ((($$0403)) + 12|0);
  44966. HEAP32[$245>>2] = $$1;
  44967. $246 = ((($$1)) + 8|0);
  44968. HEAP32[$246>>2] = $$0403;
  44969. $247 = ((($$1)) + 12|0);
  44970. HEAP32[$247>>2] = $235;
  44971. return;
  44972. }
  44973. $248 = $$2 >>> 8;
  44974. $249 = ($248|0)==(0);
  44975. if ($249) {
  44976. $$0396 = 0;
  44977. } else {
  44978. $250 = ($$2>>>0)>(16777215);
  44979. if ($250) {
  44980. $$0396 = 31;
  44981. } else {
  44982. $251 = (($248) + 1048320)|0;
  44983. $252 = $251 >>> 16;
  44984. $253 = $252 & 8;
  44985. $254 = $248 << $253;
  44986. $255 = (($254) + 520192)|0;
  44987. $256 = $255 >>> 16;
  44988. $257 = $256 & 4;
  44989. $258 = $257 | $253;
  44990. $259 = $254 << $257;
  44991. $260 = (($259) + 245760)|0;
  44992. $261 = $260 >>> 16;
  44993. $262 = $261 & 2;
  44994. $263 = $258 | $262;
  44995. $264 = (14 - ($263))|0;
  44996. $265 = $259 << $262;
  44997. $266 = $265 >>> 15;
  44998. $267 = (($264) + ($266))|0;
  44999. $268 = $267 << 1;
  45000. $269 = (($267) + 7)|0;
  45001. $270 = $$2 >>> $269;
  45002. $271 = $270 & 1;
  45003. $272 = $271 | $268;
  45004. $$0396 = $272;
  45005. }
  45006. }
  45007. $273 = (22264 + ($$0396<<2)|0);
  45008. $274 = ((($$1)) + 28|0);
  45009. HEAP32[$274>>2] = $$0396;
  45010. $275 = ((($$1)) + 16|0);
  45011. $276 = ((($$1)) + 20|0);
  45012. HEAP32[$276>>2] = 0;
  45013. HEAP32[$275>>2] = 0;
  45014. $277 = HEAP32[(21964)>>2]|0;
  45015. $278 = 1 << $$0396;
  45016. $279 = $277 & $278;
  45017. $280 = ($279|0)==(0);
  45018. do {
  45019. if ($280) {
  45020. $281 = $277 | $278;
  45021. HEAP32[(21964)>>2] = $281;
  45022. HEAP32[$273>>2] = $$1;
  45023. $282 = ((($$1)) + 24|0);
  45024. HEAP32[$282>>2] = $273;
  45025. $283 = ((($$1)) + 12|0);
  45026. HEAP32[$283>>2] = $$1;
  45027. $284 = ((($$1)) + 8|0);
  45028. HEAP32[$284>>2] = $$1;
  45029. } else {
  45030. $285 = HEAP32[$273>>2]|0;
  45031. $286 = ($$0396|0)==(31);
  45032. $287 = $$0396 >>> 1;
  45033. $288 = (25 - ($287))|0;
  45034. $289 = $286 ? 0 : $288;
  45035. $290 = $$2 << $289;
  45036. $$0383 = $290;$$0384 = $285;
  45037. while(1) {
  45038. $291 = ((($$0384)) + 4|0);
  45039. $292 = HEAP32[$291>>2]|0;
  45040. $293 = $292 & -8;
  45041. $294 = ($293|0)==($$2|0);
  45042. if ($294) {
  45043. label = 124;
  45044. break;
  45045. }
  45046. $295 = $$0383 >>> 31;
  45047. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  45048. $297 = $$0383 << 1;
  45049. $298 = HEAP32[$296>>2]|0;
  45050. $299 = ($298|0)==(0|0);
  45051. if ($299) {
  45052. label = 121;
  45053. break;
  45054. } else {
  45055. $$0383 = $297;$$0384 = $298;
  45056. }
  45057. }
  45058. if ((label|0) == 121) {
  45059. $300 = HEAP32[(21976)>>2]|0;
  45060. $301 = ($296>>>0)<($300>>>0);
  45061. if ($301) {
  45062. _abort();
  45063. // unreachable;
  45064. } else {
  45065. HEAP32[$296>>2] = $$1;
  45066. $302 = ((($$1)) + 24|0);
  45067. HEAP32[$302>>2] = $$0384;
  45068. $303 = ((($$1)) + 12|0);
  45069. HEAP32[$303>>2] = $$1;
  45070. $304 = ((($$1)) + 8|0);
  45071. HEAP32[$304>>2] = $$1;
  45072. break;
  45073. }
  45074. }
  45075. else if ((label|0) == 124) {
  45076. $305 = ((($$0384)) + 8|0);
  45077. $306 = HEAP32[$305>>2]|0;
  45078. $307 = HEAP32[(21976)>>2]|0;
  45079. $308 = ($306>>>0)>=($307>>>0);
  45080. $not$437 = ($$0384>>>0)>=($307>>>0);
  45081. $309 = $308 & $not$437;
  45082. if ($309) {
  45083. $310 = ((($306)) + 12|0);
  45084. HEAP32[$310>>2] = $$1;
  45085. HEAP32[$305>>2] = $$1;
  45086. $311 = ((($$1)) + 8|0);
  45087. HEAP32[$311>>2] = $306;
  45088. $312 = ((($$1)) + 12|0);
  45089. HEAP32[$312>>2] = $$0384;
  45090. $313 = ((($$1)) + 24|0);
  45091. HEAP32[$313>>2] = 0;
  45092. break;
  45093. } else {
  45094. _abort();
  45095. // unreachable;
  45096. }
  45097. }
  45098. }
  45099. } while(0);
  45100. $314 = HEAP32[(21992)>>2]|0;
  45101. $315 = (($314) + -1)|0;
  45102. HEAP32[(21992)>>2] = $315;
  45103. $316 = ($315|0)==(0);
  45104. if ($316) {
  45105. $$0212$in$i = (22416);
  45106. } else {
  45107. return;
  45108. }
  45109. while(1) {
  45110. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  45111. $317 = ($$0212$i|0)==(0|0);
  45112. $318 = ((($$0212$i)) + 8|0);
  45113. if ($317) {
  45114. break;
  45115. } else {
  45116. $$0212$in$i = $318;
  45117. }
  45118. }
  45119. HEAP32[(21992)>>2] = -1;
  45120. return;
  45121. }
  45122. function _realloc($0,$1) {
  45123. $0 = $0|0;
  45124. $1 = $1|0;
  45125. 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;
  45126. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  45127. sp = STACKTOP;
  45128. $2 = ($0|0)==(0|0);
  45129. if ($2) {
  45130. $3 = (_malloc($1)|0);
  45131. $$1 = $3;
  45132. return ($$1|0);
  45133. }
  45134. $4 = ($1>>>0)>(4294967231);
  45135. if ($4) {
  45136. $5 = (___errno_location()|0);
  45137. HEAP32[$5>>2] = 12;
  45138. $$1 = 0;
  45139. return ($$1|0);
  45140. }
  45141. $6 = ($1>>>0)<(11);
  45142. $7 = (($1) + 11)|0;
  45143. $8 = $7 & -8;
  45144. $9 = $6 ? 16 : $8;
  45145. $10 = ((($0)) + -8|0);
  45146. $11 = (_try_realloc_chunk($10,$9)|0);
  45147. $12 = ($11|0)==(0|0);
  45148. if (!($12)) {
  45149. $13 = ((($11)) + 8|0);
  45150. $$1 = $13;
  45151. return ($$1|0);
  45152. }
  45153. $14 = (_malloc($1)|0);
  45154. $15 = ($14|0)==(0|0);
  45155. if ($15) {
  45156. $$1 = 0;
  45157. return ($$1|0);
  45158. }
  45159. $16 = ((($0)) + -4|0);
  45160. $17 = HEAP32[$16>>2]|0;
  45161. $18 = $17 & -8;
  45162. $19 = $17 & 3;
  45163. $20 = ($19|0)==(0);
  45164. $21 = $20 ? 8 : 4;
  45165. $22 = (($18) - ($21))|0;
  45166. $23 = ($22>>>0)<($1>>>0);
  45167. $24 = $23 ? $22 : $1;
  45168. _memcpy(($14|0),($0|0),($24|0))|0;
  45169. _free($0);
  45170. $$1 = $14;
  45171. return ($$1|0);
  45172. }
  45173. function _try_realloc_chunk($0,$1) {
  45174. $0 = $0|0;
  45175. $1 = $1|0;
  45176. 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;
  45177. 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;
  45178. 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;
  45179. 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;
  45180. 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;
  45181. 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;
  45182. 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;
  45183. 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;
  45184. 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;
  45185. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  45186. sp = STACKTOP;
  45187. $2 = ((($0)) + 4|0);
  45188. $3 = HEAP32[$2>>2]|0;
  45189. $4 = $3 & -8;
  45190. $5 = (($0) + ($4)|0);
  45191. $6 = HEAP32[(21976)>>2]|0;
  45192. $7 = $3 & 3;
  45193. $notlhs = ($0>>>0)>=($6>>>0);
  45194. $notrhs = ($7|0)!=(1);
  45195. $or$cond$not = $notrhs & $notlhs;
  45196. $8 = ($0>>>0)<($5>>>0);
  45197. $or$cond3 = $or$cond$not & $8;
  45198. if (!($or$cond3)) {
  45199. _abort();
  45200. // unreachable;
  45201. }
  45202. $9 = ((($5)) + 4|0);
  45203. $10 = HEAP32[$9>>2]|0;
  45204. $11 = $10 & 1;
  45205. $12 = ($11|0)==(0);
  45206. if ($12) {
  45207. _abort();
  45208. // unreachable;
  45209. }
  45210. $13 = ($7|0)==(0);
  45211. if ($13) {
  45212. $14 = ($1>>>0)<(256);
  45213. if ($14) {
  45214. $$2 = 0;
  45215. return ($$2|0);
  45216. }
  45217. $15 = (($1) + 4)|0;
  45218. $16 = ($4>>>0)<($15>>>0);
  45219. if (!($16)) {
  45220. $17 = (($4) - ($1))|0;
  45221. $18 = HEAP32[(22440)>>2]|0;
  45222. $19 = $18 << 1;
  45223. $20 = ($17>>>0)>($19>>>0);
  45224. if (!($20)) {
  45225. $$2 = $0;
  45226. return ($$2|0);
  45227. }
  45228. }
  45229. $$2 = 0;
  45230. return ($$2|0);
  45231. }
  45232. $21 = ($4>>>0)<($1>>>0);
  45233. if (!($21)) {
  45234. $22 = (($4) - ($1))|0;
  45235. $23 = ($22>>>0)>(15);
  45236. if (!($23)) {
  45237. $$2 = $0;
  45238. return ($$2|0);
  45239. }
  45240. $24 = (($0) + ($1)|0);
  45241. $25 = $3 & 1;
  45242. $26 = $25 | $1;
  45243. $27 = $26 | 2;
  45244. HEAP32[$2>>2] = $27;
  45245. $28 = ((($24)) + 4|0);
  45246. $29 = $22 | 3;
  45247. HEAP32[$28>>2] = $29;
  45248. $30 = (($24) + ($22)|0);
  45249. $31 = ((($30)) + 4|0);
  45250. $32 = HEAP32[$31>>2]|0;
  45251. $33 = $32 | 1;
  45252. HEAP32[$31>>2] = $33;
  45253. _dispose_chunk($24,$22);
  45254. $$2 = $0;
  45255. return ($$2|0);
  45256. }
  45257. $34 = HEAP32[(21984)>>2]|0;
  45258. $35 = ($5|0)==($34|0);
  45259. if ($35) {
  45260. $36 = HEAP32[(21972)>>2]|0;
  45261. $37 = (($36) + ($4))|0;
  45262. $38 = ($37>>>0)>($1>>>0);
  45263. $39 = (($37) - ($1))|0;
  45264. $40 = (($0) + ($1)|0);
  45265. if (!($38)) {
  45266. $$2 = 0;
  45267. return ($$2|0);
  45268. }
  45269. $41 = $39 | 1;
  45270. $42 = ((($40)) + 4|0);
  45271. $43 = $3 & 1;
  45272. $44 = $43 | $1;
  45273. $45 = $44 | 2;
  45274. HEAP32[$2>>2] = $45;
  45275. HEAP32[$42>>2] = $41;
  45276. HEAP32[(21984)>>2] = $40;
  45277. HEAP32[(21972)>>2] = $39;
  45278. $$2 = $0;
  45279. return ($$2|0);
  45280. }
  45281. $46 = HEAP32[(21980)>>2]|0;
  45282. $47 = ($5|0)==($46|0);
  45283. if ($47) {
  45284. $48 = HEAP32[(21968)>>2]|0;
  45285. $49 = (($48) + ($4))|0;
  45286. $50 = ($49>>>0)<($1>>>0);
  45287. if ($50) {
  45288. $$2 = 0;
  45289. return ($$2|0);
  45290. }
  45291. $51 = (($49) - ($1))|0;
  45292. $52 = ($51>>>0)>(15);
  45293. $53 = $3 & 1;
  45294. if ($52) {
  45295. $54 = (($0) + ($1)|0);
  45296. $55 = (($54) + ($51)|0);
  45297. $56 = $53 | $1;
  45298. $57 = $56 | 2;
  45299. HEAP32[$2>>2] = $57;
  45300. $58 = ((($54)) + 4|0);
  45301. $59 = $51 | 1;
  45302. HEAP32[$58>>2] = $59;
  45303. HEAP32[$55>>2] = $51;
  45304. $60 = ((($55)) + 4|0);
  45305. $61 = HEAP32[$60>>2]|0;
  45306. $62 = $61 & -2;
  45307. HEAP32[$60>>2] = $62;
  45308. $storemerge = $54;$storemerge1 = $51;
  45309. } else {
  45310. $63 = $53 | $49;
  45311. $64 = $63 | 2;
  45312. HEAP32[$2>>2] = $64;
  45313. $65 = (($0) + ($49)|0);
  45314. $66 = ((($65)) + 4|0);
  45315. $67 = HEAP32[$66>>2]|0;
  45316. $68 = $67 | 1;
  45317. HEAP32[$66>>2] = $68;
  45318. $storemerge = 0;$storemerge1 = 0;
  45319. }
  45320. HEAP32[(21968)>>2] = $storemerge1;
  45321. HEAP32[(21980)>>2] = $storemerge;
  45322. $$2 = $0;
  45323. return ($$2|0);
  45324. }
  45325. $69 = $10 & 2;
  45326. $70 = ($69|0)==(0);
  45327. if (!($70)) {
  45328. $$2 = 0;
  45329. return ($$2|0);
  45330. }
  45331. $71 = $10 & -8;
  45332. $72 = (($71) + ($4))|0;
  45333. $73 = ($72>>>0)<($1>>>0);
  45334. if ($73) {
  45335. $$2 = 0;
  45336. return ($$2|0);
  45337. }
  45338. $74 = (($72) - ($1))|0;
  45339. $75 = $10 >>> 3;
  45340. $76 = ($10>>>0)<(256);
  45341. L49: do {
  45342. if ($76) {
  45343. $77 = ((($5)) + 8|0);
  45344. $78 = HEAP32[$77>>2]|0;
  45345. $79 = ((($5)) + 12|0);
  45346. $80 = HEAP32[$79>>2]|0;
  45347. $81 = $75 << 1;
  45348. $82 = (22000 + ($81<<2)|0);
  45349. $83 = ($78|0)==($82|0);
  45350. if (!($83)) {
  45351. $84 = ($78>>>0)<($6>>>0);
  45352. if ($84) {
  45353. _abort();
  45354. // unreachable;
  45355. }
  45356. $85 = ((($78)) + 12|0);
  45357. $86 = HEAP32[$85>>2]|0;
  45358. $87 = ($86|0)==($5|0);
  45359. if (!($87)) {
  45360. _abort();
  45361. // unreachable;
  45362. }
  45363. }
  45364. $88 = ($80|0)==($78|0);
  45365. if ($88) {
  45366. $89 = 1 << $75;
  45367. $90 = $89 ^ -1;
  45368. $91 = HEAP32[5490]|0;
  45369. $92 = $91 & $90;
  45370. HEAP32[5490] = $92;
  45371. break;
  45372. }
  45373. $93 = ($80|0)==($82|0);
  45374. if ($93) {
  45375. $$pre = ((($80)) + 8|0);
  45376. $$pre$phiZ2D = $$pre;
  45377. } else {
  45378. $94 = ($80>>>0)<($6>>>0);
  45379. if ($94) {
  45380. _abort();
  45381. // unreachable;
  45382. }
  45383. $95 = ((($80)) + 8|0);
  45384. $96 = HEAP32[$95>>2]|0;
  45385. $97 = ($96|0)==($5|0);
  45386. if ($97) {
  45387. $$pre$phiZ2D = $95;
  45388. } else {
  45389. _abort();
  45390. // unreachable;
  45391. }
  45392. }
  45393. $98 = ((($78)) + 12|0);
  45394. HEAP32[$98>>2] = $80;
  45395. HEAP32[$$pre$phiZ2D>>2] = $78;
  45396. } else {
  45397. $99 = ((($5)) + 24|0);
  45398. $100 = HEAP32[$99>>2]|0;
  45399. $101 = ((($5)) + 12|0);
  45400. $102 = HEAP32[$101>>2]|0;
  45401. $103 = ($102|0)==($5|0);
  45402. do {
  45403. if ($103) {
  45404. $113 = ((($5)) + 16|0);
  45405. $114 = ((($113)) + 4|0);
  45406. $115 = HEAP32[$114>>2]|0;
  45407. $116 = ($115|0)==(0|0);
  45408. if ($116) {
  45409. $117 = HEAP32[$113>>2]|0;
  45410. $118 = ($117|0)==(0|0);
  45411. if ($118) {
  45412. $$3 = 0;
  45413. break;
  45414. } else {
  45415. $$1272 = $117;$$1275 = $113;
  45416. }
  45417. } else {
  45418. $$1272 = $115;$$1275 = $114;
  45419. }
  45420. while(1) {
  45421. $119 = ((($$1272)) + 20|0);
  45422. $120 = HEAP32[$119>>2]|0;
  45423. $121 = ($120|0)==(0|0);
  45424. if (!($121)) {
  45425. $$1272 = $120;$$1275 = $119;
  45426. continue;
  45427. }
  45428. $122 = ((($$1272)) + 16|0);
  45429. $123 = HEAP32[$122>>2]|0;
  45430. $124 = ($123|0)==(0|0);
  45431. if ($124) {
  45432. break;
  45433. } else {
  45434. $$1272 = $123;$$1275 = $122;
  45435. }
  45436. }
  45437. $125 = ($$1275>>>0)<($6>>>0);
  45438. if ($125) {
  45439. _abort();
  45440. // unreachable;
  45441. } else {
  45442. HEAP32[$$1275>>2] = 0;
  45443. $$3 = $$1272;
  45444. break;
  45445. }
  45446. } else {
  45447. $104 = ((($5)) + 8|0);
  45448. $105 = HEAP32[$104>>2]|0;
  45449. $106 = ($105>>>0)<($6>>>0);
  45450. if ($106) {
  45451. _abort();
  45452. // unreachable;
  45453. }
  45454. $107 = ((($105)) + 12|0);
  45455. $108 = HEAP32[$107>>2]|0;
  45456. $109 = ($108|0)==($5|0);
  45457. if (!($109)) {
  45458. _abort();
  45459. // unreachable;
  45460. }
  45461. $110 = ((($102)) + 8|0);
  45462. $111 = HEAP32[$110>>2]|0;
  45463. $112 = ($111|0)==($5|0);
  45464. if ($112) {
  45465. HEAP32[$107>>2] = $102;
  45466. HEAP32[$110>>2] = $105;
  45467. $$3 = $102;
  45468. break;
  45469. } else {
  45470. _abort();
  45471. // unreachable;
  45472. }
  45473. }
  45474. } while(0);
  45475. $126 = ($100|0)==(0|0);
  45476. if (!($126)) {
  45477. $127 = ((($5)) + 28|0);
  45478. $128 = HEAP32[$127>>2]|0;
  45479. $129 = (22264 + ($128<<2)|0);
  45480. $130 = HEAP32[$129>>2]|0;
  45481. $131 = ($5|0)==($130|0);
  45482. do {
  45483. if ($131) {
  45484. HEAP32[$129>>2] = $$3;
  45485. $cond = ($$3|0)==(0|0);
  45486. if ($cond) {
  45487. $132 = 1 << $128;
  45488. $133 = $132 ^ -1;
  45489. $134 = HEAP32[(21964)>>2]|0;
  45490. $135 = $134 & $133;
  45491. HEAP32[(21964)>>2] = $135;
  45492. break L49;
  45493. }
  45494. } else {
  45495. $136 = HEAP32[(21976)>>2]|0;
  45496. $137 = ($100>>>0)<($136>>>0);
  45497. if ($137) {
  45498. _abort();
  45499. // unreachable;
  45500. } else {
  45501. $138 = ((($100)) + 16|0);
  45502. $139 = HEAP32[$138>>2]|0;
  45503. $not$ = ($139|0)!=($5|0);
  45504. $$sink1 = $not$&1;
  45505. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  45506. HEAP32[$140>>2] = $$3;
  45507. $141 = ($$3|0)==(0|0);
  45508. if ($141) {
  45509. break L49;
  45510. } else {
  45511. break;
  45512. }
  45513. }
  45514. }
  45515. } while(0);
  45516. $142 = HEAP32[(21976)>>2]|0;
  45517. $143 = ($$3>>>0)<($142>>>0);
  45518. if ($143) {
  45519. _abort();
  45520. // unreachable;
  45521. }
  45522. $144 = ((($$3)) + 24|0);
  45523. HEAP32[$144>>2] = $100;
  45524. $145 = ((($5)) + 16|0);
  45525. $146 = HEAP32[$145>>2]|0;
  45526. $147 = ($146|0)==(0|0);
  45527. do {
  45528. if (!($147)) {
  45529. $148 = ($146>>>0)<($142>>>0);
  45530. if ($148) {
  45531. _abort();
  45532. // unreachable;
  45533. } else {
  45534. $149 = ((($$3)) + 16|0);
  45535. HEAP32[$149>>2] = $146;
  45536. $150 = ((($146)) + 24|0);
  45537. HEAP32[$150>>2] = $$3;
  45538. break;
  45539. }
  45540. }
  45541. } while(0);
  45542. $151 = ((($145)) + 4|0);
  45543. $152 = HEAP32[$151>>2]|0;
  45544. $153 = ($152|0)==(0|0);
  45545. if (!($153)) {
  45546. $154 = HEAP32[(21976)>>2]|0;
  45547. $155 = ($152>>>0)<($154>>>0);
  45548. if ($155) {
  45549. _abort();
  45550. // unreachable;
  45551. } else {
  45552. $156 = ((($$3)) + 20|0);
  45553. HEAP32[$156>>2] = $152;
  45554. $157 = ((($152)) + 24|0);
  45555. HEAP32[$157>>2] = $$3;
  45556. break;
  45557. }
  45558. }
  45559. }
  45560. }
  45561. } while(0);
  45562. $158 = ($74>>>0)<(16);
  45563. $159 = $3 & 1;
  45564. if ($158) {
  45565. $160 = $72 | $159;
  45566. $161 = $160 | 2;
  45567. HEAP32[$2>>2] = $161;
  45568. $162 = (($0) + ($72)|0);
  45569. $163 = ((($162)) + 4|0);
  45570. $164 = HEAP32[$163>>2]|0;
  45571. $165 = $164 | 1;
  45572. HEAP32[$163>>2] = $165;
  45573. $$2 = $0;
  45574. return ($$2|0);
  45575. } else {
  45576. $166 = (($0) + ($1)|0);
  45577. $167 = $159 | $1;
  45578. $168 = $167 | 2;
  45579. HEAP32[$2>>2] = $168;
  45580. $169 = ((($166)) + 4|0);
  45581. $170 = $74 | 3;
  45582. HEAP32[$169>>2] = $170;
  45583. $171 = (($166) + ($74)|0);
  45584. $172 = ((($171)) + 4|0);
  45585. $173 = HEAP32[$172>>2]|0;
  45586. $174 = $173 | 1;
  45587. HEAP32[$172>>2] = $174;
  45588. _dispose_chunk($166,$74);
  45589. $$2 = $0;
  45590. return ($$2|0);
  45591. }
  45592. return (0)|0;
  45593. }
  45594. function _dispose_chunk($0,$1) {
  45595. $0 = $0|0;
  45596. $1 = $1|0;
  45597. 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;
  45598. 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;
  45599. 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;
  45600. 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;
  45601. 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;
  45602. 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;
  45603. 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;
  45604. 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;
  45605. 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;
  45606. 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;
  45607. 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;
  45608. 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;
  45609. 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;
  45610. 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;
  45611. 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;
  45612. 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;
  45613. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  45614. sp = STACKTOP;
  45615. $2 = (($0) + ($1)|0);
  45616. $3 = ((($0)) + 4|0);
  45617. $4 = HEAP32[$3>>2]|0;
  45618. $5 = $4 & 1;
  45619. $6 = ($5|0)==(0);
  45620. L1: do {
  45621. if ($6) {
  45622. $7 = HEAP32[$0>>2]|0;
  45623. $8 = $4 & 3;
  45624. $9 = ($8|0)==(0);
  45625. if ($9) {
  45626. return;
  45627. }
  45628. $10 = (0 - ($7))|0;
  45629. $11 = (($0) + ($10)|0);
  45630. $12 = (($7) + ($1))|0;
  45631. $13 = HEAP32[(21976)>>2]|0;
  45632. $14 = ($11>>>0)<($13>>>0);
  45633. if ($14) {
  45634. _abort();
  45635. // unreachable;
  45636. }
  45637. $15 = HEAP32[(21980)>>2]|0;
  45638. $16 = ($11|0)==($15|0);
  45639. if ($16) {
  45640. $100 = ((($2)) + 4|0);
  45641. $101 = HEAP32[$100>>2]|0;
  45642. $102 = $101 & 3;
  45643. $103 = ($102|0)==(3);
  45644. if (!($103)) {
  45645. $$1 = $11;$$1418 = $12;
  45646. break;
  45647. }
  45648. $104 = (($11) + ($12)|0);
  45649. $105 = ((($11)) + 4|0);
  45650. $106 = $12 | 1;
  45651. $107 = $101 & -2;
  45652. HEAP32[(21968)>>2] = $12;
  45653. HEAP32[$100>>2] = $107;
  45654. HEAP32[$105>>2] = $106;
  45655. HEAP32[$104>>2] = $12;
  45656. return;
  45657. }
  45658. $17 = $7 >>> 3;
  45659. $18 = ($7>>>0)<(256);
  45660. if ($18) {
  45661. $19 = ((($11)) + 8|0);
  45662. $20 = HEAP32[$19>>2]|0;
  45663. $21 = ((($11)) + 12|0);
  45664. $22 = HEAP32[$21>>2]|0;
  45665. $23 = $17 << 1;
  45666. $24 = (22000 + ($23<<2)|0);
  45667. $25 = ($20|0)==($24|0);
  45668. if (!($25)) {
  45669. $26 = ($20>>>0)<($13>>>0);
  45670. if ($26) {
  45671. _abort();
  45672. // unreachable;
  45673. }
  45674. $27 = ((($20)) + 12|0);
  45675. $28 = HEAP32[$27>>2]|0;
  45676. $29 = ($28|0)==($11|0);
  45677. if (!($29)) {
  45678. _abort();
  45679. // unreachable;
  45680. }
  45681. }
  45682. $30 = ($22|0)==($20|0);
  45683. if ($30) {
  45684. $31 = 1 << $17;
  45685. $32 = $31 ^ -1;
  45686. $33 = HEAP32[5490]|0;
  45687. $34 = $33 & $32;
  45688. HEAP32[5490] = $34;
  45689. $$1 = $11;$$1418 = $12;
  45690. break;
  45691. }
  45692. $35 = ($22|0)==($24|0);
  45693. if ($35) {
  45694. $$pre25 = ((($22)) + 8|0);
  45695. $$pre$phi26Z2D = $$pre25;
  45696. } else {
  45697. $36 = ($22>>>0)<($13>>>0);
  45698. if ($36) {
  45699. _abort();
  45700. // unreachable;
  45701. }
  45702. $37 = ((($22)) + 8|0);
  45703. $38 = HEAP32[$37>>2]|0;
  45704. $39 = ($38|0)==($11|0);
  45705. if ($39) {
  45706. $$pre$phi26Z2D = $37;
  45707. } else {
  45708. _abort();
  45709. // unreachable;
  45710. }
  45711. }
  45712. $40 = ((($20)) + 12|0);
  45713. HEAP32[$40>>2] = $22;
  45714. HEAP32[$$pre$phi26Z2D>>2] = $20;
  45715. $$1 = $11;$$1418 = $12;
  45716. break;
  45717. }
  45718. $41 = ((($11)) + 24|0);
  45719. $42 = HEAP32[$41>>2]|0;
  45720. $43 = ((($11)) + 12|0);
  45721. $44 = HEAP32[$43>>2]|0;
  45722. $45 = ($44|0)==($11|0);
  45723. do {
  45724. if ($45) {
  45725. $55 = ((($11)) + 16|0);
  45726. $56 = ((($55)) + 4|0);
  45727. $57 = HEAP32[$56>>2]|0;
  45728. $58 = ($57|0)==(0|0);
  45729. if ($58) {
  45730. $59 = HEAP32[$55>>2]|0;
  45731. $60 = ($59|0)==(0|0);
  45732. if ($60) {
  45733. $$3 = 0;
  45734. break;
  45735. } else {
  45736. $$1426 = $59;$$1429 = $55;
  45737. }
  45738. } else {
  45739. $$1426 = $57;$$1429 = $56;
  45740. }
  45741. while(1) {
  45742. $61 = ((($$1426)) + 20|0);
  45743. $62 = HEAP32[$61>>2]|0;
  45744. $63 = ($62|0)==(0|0);
  45745. if (!($63)) {
  45746. $$1426 = $62;$$1429 = $61;
  45747. continue;
  45748. }
  45749. $64 = ((($$1426)) + 16|0);
  45750. $65 = HEAP32[$64>>2]|0;
  45751. $66 = ($65|0)==(0|0);
  45752. if ($66) {
  45753. break;
  45754. } else {
  45755. $$1426 = $65;$$1429 = $64;
  45756. }
  45757. }
  45758. $67 = ($$1429>>>0)<($13>>>0);
  45759. if ($67) {
  45760. _abort();
  45761. // unreachable;
  45762. } else {
  45763. HEAP32[$$1429>>2] = 0;
  45764. $$3 = $$1426;
  45765. break;
  45766. }
  45767. } else {
  45768. $46 = ((($11)) + 8|0);
  45769. $47 = HEAP32[$46>>2]|0;
  45770. $48 = ($47>>>0)<($13>>>0);
  45771. if ($48) {
  45772. _abort();
  45773. // unreachable;
  45774. }
  45775. $49 = ((($47)) + 12|0);
  45776. $50 = HEAP32[$49>>2]|0;
  45777. $51 = ($50|0)==($11|0);
  45778. if (!($51)) {
  45779. _abort();
  45780. // unreachable;
  45781. }
  45782. $52 = ((($44)) + 8|0);
  45783. $53 = HEAP32[$52>>2]|0;
  45784. $54 = ($53|0)==($11|0);
  45785. if ($54) {
  45786. HEAP32[$49>>2] = $44;
  45787. HEAP32[$52>>2] = $47;
  45788. $$3 = $44;
  45789. break;
  45790. } else {
  45791. _abort();
  45792. // unreachable;
  45793. }
  45794. }
  45795. } while(0);
  45796. $68 = ($42|0)==(0|0);
  45797. if ($68) {
  45798. $$1 = $11;$$1418 = $12;
  45799. } else {
  45800. $69 = ((($11)) + 28|0);
  45801. $70 = HEAP32[$69>>2]|0;
  45802. $71 = (22264 + ($70<<2)|0);
  45803. $72 = HEAP32[$71>>2]|0;
  45804. $73 = ($11|0)==($72|0);
  45805. do {
  45806. if ($73) {
  45807. HEAP32[$71>>2] = $$3;
  45808. $cond = ($$3|0)==(0|0);
  45809. if ($cond) {
  45810. $74 = 1 << $70;
  45811. $75 = $74 ^ -1;
  45812. $76 = HEAP32[(21964)>>2]|0;
  45813. $77 = $76 & $75;
  45814. HEAP32[(21964)>>2] = $77;
  45815. $$1 = $11;$$1418 = $12;
  45816. break L1;
  45817. }
  45818. } else {
  45819. $78 = HEAP32[(21976)>>2]|0;
  45820. $79 = ($42>>>0)<($78>>>0);
  45821. if ($79) {
  45822. _abort();
  45823. // unreachable;
  45824. } else {
  45825. $80 = ((($42)) + 16|0);
  45826. $81 = HEAP32[$80>>2]|0;
  45827. $not$1 = ($81|0)!=($11|0);
  45828. $$sink2 = $not$1&1;
  45829. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  45830. HEAP32[$82>>2] = $$3;
  45831. $83 = ($$3|0)==(0|0);
  45832. if ($83) {
  45833. $$1 = $11;$$1418 = $12;
  45834. break L1;
  45835. } else {
  45836. break;
  45837. }
  45838. }
  45839. }
  45840. } while(0);
  45841. $84 = HEAP32[(21976)>>2]|0;
  45842. $85 = ($$3>>>0)<($84>>>0);
  45843. if ($85) {
  45844. _abort();
  45845. // unreachable;
  45846. }
  45847. $86 = ((($$3)) + 24|0);
  45848. HEAP32[$86>>2] = $42;
  45849. $87 = ((($11)) + 16|0);
  45850. $88 = HEAP32[$87>>2]|0;
  45851. $89 = ($88|0)==(0|0);
  45852. do {
  45853. if (!($89)) {
  45854. $90 = ($88>>>0)<($84>>>0);
  45855. if ($90) {
  45856. _abort();
  45857. // unreachable;
  45858. } else {
  45859. $91 = ((($$3)) + 16|0);
  45860. HEAP32[$91>>2] = $88;
  45861. $92 = ((($88)) + 24|0);
  45862. HEAP32[$92>>2] = $$3;
  45863. break;
  45864. }
  45865. }
  45866. } while(0);
  45867. $93 = ((($87)) + 4|0);
  45868. $94 = HEAP32[$93>>2]|0;
  45869. $95 = ($94|0)==(0|0);
  45870. if ($95) {
  45871. $$1 = $11;$$1418 = $12;
  45872. } else {
  45873. $96 = HEAP32[(21976)>>2]|0;
  45874. $97 = ($94>>>0)<($96>>>0);
  45875. if ($97) {
  45876. _abort();
  45877. // unreachable;
  45878. } else {
  45879. $98 = ((($$3)) + 20|0);
  45880. HEAP32[$98>>2] = $94;
  45881. $99 = ((($94)) + 24|0);
  45882. HEAP32[$99>>2] = $$3;
  45883. $$1 = $11;$$1418 = $12;
  45884. break;
  45885. }
  45886. }
  45887. }
  45888. } else {
  45889. $$1 = $0;$$1418 = $1;
  45890. }
  45891. } while(0);
  45892. $108 = HEAP32[(21976)>>2]|0;
  45893. $109 = ($2>>>0)<($108>>>0);
  45894. if ($109) {
  45895. _abort();
  45896. // unreachable;
  45897. }
  45898. $110 = ((($2)) + 4|0);
  45899. $111 = HEAP32[$110>>2]|0;
  45900. $112 = $111 & 2;
  45901. $113 = ($112|0)==(0);
  45902. if ($113) {
  45903. $114 = HEAP32[(21984)>>2]|0;
  45904. $115 = ($2|0)==($114|0);
  45905. $116 = HEAP32[(21980)>>2]|0;
  45906. if ($115) {
  45907. $117 = HEAP32[(21972)>>2]|0;
  45908. $118 = (($117) + ($$1418))|0;
  45909. HEAP32[(21972)>>2] = $118;
  45910. HEAP32[(21984)>>2] = $$1;
  45911. $119 = $118 | 1;
  45912. $120 = ((($$1)) + 4|0);
  45913. HEAP32[$120>>2] = $119;
  45914. $121 = ($$1|0)==($116|0);
  45915. if (!($121)) {
  45916. return;
  45917. }
  45918. HEAP32[(21980)>>2] = 0;
  45919. HEAP32[(21968)>>2] = 0;
  45920. return;
  45921. }
  45922. $122 = ($2|0)==($116|0);
  45923. if ($122) {
  45924. $123 = HEAP32[(21968)>>2]|0;
  45925. $124 = (($123) + ($$1418))|0;
  45926. HEAP32[(21968)>>2] = $124;
  45927. HEAP32[(21980)>>2] = $$1;
  45928. $125 = $124 | 1;
  45929. $126 = ((($$1)) + 4|0);
  45930. HEAP32[$126>>2] = $125;
  45931. $127 = (($$1) + ($124)|0);
  45932. HEAP32[$127>>2] = $124;
  45933. return;
  45934. }
  45935. $128 = $111 & -8;
  45936. $129 = (($128) + ($$1418))|0;
  45937. $130 = $111 >>> 3;
  45938. $131 = ($111>>>0)<(256);
  45939. L96: do {
  45940. if ($131) {
  45941. $132 = ((($2)) + 8|0);
  45942. $133 = HEAP32[$132>>2]|0;
  45943. $134 = ((($2)) + 12|0);
  45944. $135 = HEAP32[$134>>2]|0;
  45945. $136 = $130 << 1;
  45946. $137 = (22000 + ($136<<2)|0);
  45947. $138 = ($133|0)==($137|0);
  45948. if (!($138)) {
  45949. $139 = ($133>>>0)<($108>>>0);
  45950. if ($139) {
  45951. _abort();
  45952. // unreachable;
  45953. }
  45954. $140 = ((($133)) + 12|0);
  45955. $141 = HEAP32[$140>>2]|0;
  45956. $142 = ($141|0)==($2|0);
  45957. if (!($142)) {
  45958. _abort();
  45959. // unreachable;
  45960. }
  45961. }
  45962. $143 = ($135|0)==($133|0);
  45963. if ($143) {
  45964. $144 = 1 << $130;
  45965. $145 = $144 ^ -1;
  45966. $146 = HEAP32[5490]|0;
  45967. $147 = $146 & $145;
  45968. HEAP32[5490] = $147;
  45969. break;
  45970. }
  45971. $148 = ($135|0)==($137|0);
  45972. if ($148) {
  45973. $$pre23 = ((($135)) + 8|0);
  45974. $$pre$phi24Z2D = $$pre23;
  45975. } else {
  45976. $149 = ($135>>>0)<($108>>>0);
  45977. if ($149) {
  45978. _abort();
  45979. // unreachable;
  45980. }
  45981. $150 = ((($135)) + 8|0);
  45982. $151 = HEAP32[$150>>2]|0;
  45983. $152 = ($151|0)==($2|0);
  45984. if ($152) {
  45985. $$pre$phi24Z2D = $150;
  45986. } else {
  45987. _abort();
  45988. // unreachable;
  45989. }
  45990. }
  45991. $153 = ((($133)) + 12|0);
  45992. HEAP32[$153>>2] = $135;
  45993. HEAP32[$$pre$phi24Z2D>>2] = $133;
  45994. } else {
  45995. $154 = ((($2)) + 24|0);
  45996. $155 = HEAP32[$154>>2]|0;
  45997. $156 = ((($2)) + 12|0);
  45998. $157 = HEAP32[$156>>2]|0;
  45999. $158 = ($157|0)==($2|0);
  46000. do {
  46001. if ($158) {
  46002. $168 = ((($2)) + 16|0);
  46003. $169 = ((($168)) + 4|0);
  46004. $170 = HEAP32[$169>>2]|0;
  46005. $171 = ($170|0)==(0|0);
  46006. if ($171) {
  46007. $172 = HEAP32[$168>>2]|0;
  46008. $173 = ($172|0)==(0|0);
  46009. if ($173) {
  46010. $$3435 = 0;
  46011. break;
  46012. } else {
  46013. $$1433 = $172;$$1437 = $168;
  46014. }
  46015. } else {
  46016. $$1433 = $170;$$1437 = $169;
  46017. }
  46018. while(1) {
  46019. $174 = ((($$1433)) + 20|0);
  46020. $175 = HEAP32[$174>>2]|0;
  46021. $176 = ($175|0)==(0|0);
  46022. if (!($176)) {
  46023. $$1433 = $175;$$1437 = $174;
  46024. continue;
  46025. }
  46026. $177 = ((($$1433)) + 16|0);
  46027. $178 = HEAP32[$177>>2]|0;
  46028. $179 = ($178|0)==(0|0);
  46029. if ($179) {
  46030. break;
  46031. } else {
  46032. $$1433 = $178;$$1437 = $177;
  46033. }
  46034. }
  46035. $180 = ($$1437>>>0)<($108>>>0);
  46036. if ($180) {
  46037. _abort();
  46038. // unreachable;
  46039. } else {
  46040. HEAP32[$$1437>>2] = 0;
  46041. $$3435 = $$1433;
  46042. break;
  46043. }
  46044. } else {
  46045. $159 = ((($2)) + 8|0);
  46046. $160 = HEAP32[$159>>2]|0;
  46047. $161 = ($160>>>0)<($108>>>0);
  46048. if ($161) {
  46049. _abort();
  46050. // unreachable;
  46051. }
  46052. $162 = ((($160)) + 12|0);
  46053. $163 = HEAP32[$162>>2]|0;
  46054. $164 = ($163|0)==($2|0);
  46055. if (!($164)) {
  46056. _abort();
  46057. // unreachable;
  46058. }
  46059. $165 = ((($157)) + 8|0);
  46060. $166 = HEAP32[$165>>2]|0;
  46061. $167 = ($166|0)==($2|0);
  46062. if ($167) {
  46063. HEAP32[$162>>2] = $157;
  46064. HEAP32[$165>>2] = $160;
  46065. $$3435 = $157;
  46066. break;
  46067. } else {
  46068. _abort();
  46069. // unreachable;
  46070. }
  46071. }
  46072. } while(0);
  46073. $181 = ($155|0)==(0|0);
  46074. if (!($181)) {
  46075. $182 = ((($2)) + 28|0);
  46076. $183 = HEAP32[$182>>2]|0;
  46077. $184 = (22264 + ($183<<2)|0);
  46078. $185 = HEAP32[$184>>2]|0;
  46079. $186 = ($2|0)==($185|0);
  46080. do {
  46081. if ($186) {
  46082. HEAP32[$184>>2] = $$3435;
  46083. $cond17 = ($$3435|0)==(0|0);
  46084. if ($cond17) {
  46085. $187 = 1 << $183;
  46086. $188 = $187 ^ -1;
  46087. $189 = HEAP32[(21964)>>2]|0;
  46088. $190 = $189 & $188;
  46089. HEAP32[(21964)>>2] = $190;
  46090. break L96;
  46091. }
  46092. } else {
  46093. $191 = HEAP32[(21976)>>2]|0;
  46094. $192 = ($155>>>0)<($191>>>0);
  46095. if ($192) {
  46096. _abort();
  46097. // unreachable;
  46098. } else {
  46099. $193 = ((($155)) + 16|0);
  46100. $194 = HEAP32[$193>>2]|0;
  46101. $not$ = ($194|0)!=($2|0);
  46102. $$sink4 = $not$&1;
  46103. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  46104. HEAP32[$195>>2] = $$3435;
  46105. $196 = ($$3435|0)==(0|0);
  46106. if ($196) {
  46107. break L96;
  46108. } else {
  46109. break;
  46110. }
  46111. }
  46112. }
  46113. } while(0);
  46114. $197 = HEAP32[(21976)>>2]|0;
  46115. $198 = ($$3435>>>0)<($197>>>0);
  46116. if ($198) {
  46117. _abort();
  46118. // unreachable;
  46119. }
  46120. $199 = ((($$3435)) + 24|0);
  46121. HEAP32[$199>>2] = $155;
  46122. $200 = ((($2)) + 16|0);
  46123. $201 = HEAP32[$200>>2]|0;
  46124. $202 = ($201|0)==(0|0);
  46125. do {
  46126. if (!($202)) {
  46127. $203 = ($201>>>0)<($197>>>0);
  46128. if ($203) {
  46129. _abort();
  46130. // unreachable;
  46131. } else {
  46132. $204 = ((($$3435)) + 16|0);
  46133. HEAP32[$204>>2] = $201;
  46134. $205 = ((($201)) + 24|0);
  46135. HEAP32[$205>>2] = $$3435;
  46136. break;
  46137. }
  46138. }
  46139. } while(0);
  46140. $206 = ((($200)) + 4|0);
  46141. $207 = HEAP32[$206>>2]|0;
  46142. $208 = ($207|0)==(0|0);
  46143. if (!($208)) {
  46144. $209 = HEAP32[(21976)>>2]|0;
  46145. $210 = ($207>>>0)<($209>>>0);
  46146. if ($210) {
  46147. _abort();
  46148. // unreachable;
  46149. } else {
  46150. $211 = ((($$3435)) + 20|0);
  46151. HEAP32[$211>>2] = $207;
  46152. $212 = ((($207)) + 24|0);
  46153. HEAP32[$212>>2] = $$3435;
  46154. break;
  46155. }
  46156. }
  46157. }
  46158. }
  46159. } while(0);
  46160. $213 = $129 | 1;
  46161. $214 = ((($$1)) + 4|0);
  46162. HEAP32[$214>>2] = $213;
  46163. $215 = (($$1) + ($129)|0);
  46164. HEAP32[$215>>2] = $129;
  46165. $216 = HEAP32[(21980)>>2]|0;
  46166. $217 = ($$1|0)==($216|0);
  46167. if ($217) {
  46168. HEAP32[(21968)>>2] = $129;
  46169. return;
  46170. } else {
  46171. $$2 = $129;
  46172. }
  46173. } else {
  46174. $218 = $111 & -2;
  46175. HEAP32[$110>>2] = $218;
  46176. $219 = $$1418 | 1;
  46177. $220 = ((($$1)) + 4|0);
  46178. HEAP32[$220>>2] = $219;
  46179. $221 = (($$1) + ($$1418)|0);
  46180. HEAP32[$221>>2] = $$1418;
  46181. $$2 = $$1418;
  46182. }
  46183. $222 = $$2 >>> 3;
  46184. $223 = ($$2>>>0)<(256);
  46185. if ($223) {
  46186. $224 = $222 << 1;
  46187. $225 = (22000 + ($224<<2)|0);
  46188. $226 = HEAP32[5490]|0;
  46189. $227 = 1 << $222;
  46190. $228 = $226 & $227;
  46191. $229 = ($228|0)==(0);
  46192. if ($229) {
  46193. $230 = $226 | $227;
  46194. HEAP32[5490] = $230;
  46195. $$pre = ((($225)) + 8|0);
  46196. $$0438 = $225;$$pre$phiZ2D = $$pre;
  46197. } else {
  46198. $231 = ((($225)) + 8|0);
  46199. $232 = HEAP32[$231>>2]|0;
  46200. $233 = HEAP32[(21976)>>2]|0;
  46201. $234 = ($232>>>0)<($233>>>0);
  46202. if ($234) {
  46203. _abort();
  46204. // unreachable;
  46205. } else {
  46206. $$0438 = $232;$$pre$phiZ2D = $231;
  46207. }
  46208. }
  46209. HEAP32[$$pre$phiZ2D>>2] = $$1;
  46210. $235 = ((($$0438)) + 12|0);
  46211. HEAP32[$235>>2] = $$1;
  46212. $236 = ((($$1)) + 8|0);
  46213. HEAP32[$236>>2] = $$0438;
  46214. $237 = ((($$1)) + 12|0);
  46215. HEAP32[$237>>2] = $225;
  46216. return;
  46217. }
  46218. $238 = $$2 >>> 8;
  46219. $239 = ($238|0)==(0);
  46220. if ($239) {
  46221. $$0431 = 0;
  46222. } else {
  46223. $240 = ($$2>>>0)>(16777215);
  46224. if ($240) {
  46225. $$0431 = 31;
  46226. } else {
  46227. $241 = (($238) + 1048320)|0;
  46228. $242 = $241 >>> 16;
  46229. $243 = $242 & 8;
  46230. $244 = $238 << $243;
  46231. $245 = (($244) + 520192)|0;
  46232. $246 = $245 >>> 16;
  46233. $247 = $246 & 4;
  46234. $248 = $247 | $243;
  46235. $249 = $244 << $247;
  46236. $250 = (($249) + 245760)|0;
  46237. $251 = $250 >>> 16;
  46238. $252 = $251 & 2;
  46239. $253 = $248 | $252;
  46240. $254 = (14 - ($253))|0;
  46241. $255 = $249 << $252;
  46242. $256 = $255 >>> 15;
  46243. $257 = (($254) + ($256))|0;
  46244. $258 = $257 << 1;
  46245. $259 = (($257) + 7)|0;
  46246. $260 = $$2 >>> $259;
  46247. $261 = $260 & 1;
  46248. $262 = $261 | $258;
  46249. $$0431 = $262;
  46250. }
  46251. }
  46252. $263 = (22264 + ($$0431<<2)|0);
  46253. $264 = ((($$1)) + 28|0);
  46254. HEAP32[$264>>2] = $$0431;
  46255. $265 = ((($$1)) + 16|0);
  46256. $266 = ((($$1)) + 20|0);
  46257. HEAP32[$266>>2] = 0;
  46258. HEAP32[$265>>2] = 0;
  46259. $267 = HEAP32[(21964)>>2]|0;
  46260. $268 = 1 << $$0431;
  46261. $269 = $267 & $268;
  46262. $270 = ($269|0)==(0);
  46263. if ($270) {
  46264. $271 = $267 | $268;
  46265. HEAP32[(21964)>>2] = $271;
  46266. HEAP32[$263>>2] = $$1;
  46267. $272 = ((($$1)) + 24|0);
  46268. HEAP32[$272>>2] = $263;
  46269. $273 = ((($$1)) + 12|0);
  46270. HEAP32[$273>>2] = $$1;
  46271. $274 = ((($$1)) + 8|0);
  46272. HEAP32[$274>>2] = $$1;
  46273. return;
  46274. }
  46275. $275 = HEAP32[$263>>2]|0;
  46276. $276 = ($$0431|0)==(31);
  46277. $277 = $$0431 >>> 1;
  46278. $278 = (25 - ($277))|0;
  46279. $279 = $276 ? 0 : $278;
  46280. $280 = $$2 << $279;
  46281. $$0419 = $280;$$0420 = $275;
  46282. while(1) {
  46283. $281 = ((($$0420)) + 4|0);
  46284. $282 = HEAP32[$281>>2]|0;
  46285. $283 = $282 & -8;
  46286. $284 = ($283|0)==($$2|0);
  46287. if ($284) {
  46288. label = 121;
  46289. break;
  46290. }
  46291. $285 = $$0419 >>> 31;
  46292. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  46293. $287 = $$0419 << 1;
  46294. $288 = HEAP32[$286>>2]|0;
  46295. $289 = ($288|0)==(0|0);
  46296. if ($289) {
  46297. label = 118;
  46298. break;
  46299. } else {
  46300. $$0419 = $287;$$0420 = $288;
  46301. }
  46302. }
  46303. if ((label|0) == 118) {
  46304. $290 = HEAP32[(21976)>>2]|0;
  46305. $291 = ($286>>>0)<($290>>>0);
  46306. if ($291) {
  46307. _abort();
  46308. // unreachable;
  46309. }
  46310. HEAP32[$286>>2] = $$1;
  46311. $292 = ((($$1)) + 24|0);
  46312. HEAP32[$292>>2] = $$0420;
  46313. $293 = ((($$1)) + 12|0);
  46314. HEAP32[$293>>2] = $$1;
  46315. $294 = ((($$1)) + 8|0);
  46316. HEAP32[$294>>2] = $$1;
  46317. return;
  46318. }
  46319. else if ((label|0) == 121) {
  46320. $295 = ((($$0420)) + 8|0);
  46321. $296 = HEAP32[$295>>2]|0;
  46322. $297 = HEAP32[(21976)>>2]|0;
  46323. $298 = ($296>>>0)>=($297>>>0);
  46324. $not$19 = ($$0420>>>0)>=($297>>>0);
  46325. $299 = $298 & $not$19;
  46326. if (!($299)) {
  46327. _abort();
  46328. // unreachable;
  46329. }
  46330. $300 = ((($296)) + 12|0);
  46331. HEAP32[$300>>2] = $$1;
  46332. HEAP32[$295>>2] = $$1;
  46333. $301 = ((($$1)) + 8|0);
  46334. HEAP32[$301>>2] = $296;
  46335. $302 = ((($$1)) + 12|0);
  46336. HEAP32[$302>>2] = $$0420;
  46337. $303 = ((($$1)) + 24|0);
  46338. HEAP32[$303>>2] = 0;
  46339. return;
  46340. }
  46341. }
  46342. function runPostSets() {
  46343. }
  46344. function _memset(ptr, value, num) {
  46345. ptr = ptr|0; value = value|0; num = num|0;
  46346. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  46347. end = (ptr + num)|0;
  46348. value = value & 0xff;
  46349. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  46350. while ((ptr&3) != 0) {
  46351. HEAP8[((ptr)>>0)]=value;
  46352. ptr = (ptr+1)|0;
  46353. }
  46354. aligned_end = (end & -4)|0;
  46355. block_aligned_end = (aligned_end - 64)|0;
  46356. value4 = value | (value << 8) | (value << 16) | (value << 24);
  46357. while((ptr|0) <= (block_aligned_end|0)) {
  46358. HEAP32[((ptr)>>2)]=value4;
  46359. HEAP32[(((ptr)+(4))>>2)]=value4;
  46360. HEAP32[(((ptr)+(8))>>2)]=value4;
  46361. HEAP32[(((ptr)+(12))>>2)]=value4;
  46362. HEAP32[(((ptr)+(16))>>2)]=value4;
  46363. HEAP32[(((ptr)+(20))>>2)]=value4;
  46364. HEAP32[(((ptr)+(24))>>2)]=value4;
  46365. HEAP32[(((ptr)+(28))>>2)]=value4;
  46366. HEAP32[(((ptr)+(32))>>2)]=value4;
  46367. HEAP32[(((ptr)+(36))>>2)]=value4;
  46368. HEAP32[(((ptr)+(40))>>2)]=value4;
  46369. HEAP32[(((ptr)+(44))>>2)]=value4;
  46370. HEAP32[(((ptr)+(48))>>2)]=value4;
  46371. HEAP32[(((ptr)+(52))>>2)]=value4;
  46372. HEAP32[(((ptr)+(56))>>2)]=value4;
  46373. HEAP32[(((ptr)+(60))>>2)]=value4;
  46374. ptr = (ptr + 64)|0;
  46375. }
  46376. while ((ptr|0) < (aligned_end|0) ) {
  46377. HEAP32[((ptr)>>2)]=value4;
  46378. ptr = (ptr+4)|0;
  46379. }
  46380. }
  46381. // The remaining bytes.
  46382. while ((ptr|0) < (end|0)) {
  46383. HEAP8[((ptr)>>0)]=value;
  46384. ptr = (ptr+1)|0;
  46385. }
  46386. return (end-num)|0;
  46387. }
  46388. function _i64Subtract(a, b, c, d) {
  46389. a = a|0; b = b|0; c = c|0; d = d|0;
  46390. var l = 0, h = 0;
  46391. l = (a - c)>>>0;
  46392. h = (b - d)>>>0;
  46393. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  46394. return ((tempRet0 = h,l|0)|0);
  46395. }
  46396. function _i64Add(a, b, c, d) {
  46397. /*
  46398. x = a + b*2^32
  46399. y = c + d*2^32
  46400. result = l + h*2^32
  46401. */
  46402. a = a|0; b = b|0; c = c|0; d = d|0;
  46403. var l = 0, h = 0;
  46404. l = (a + c)>>>0;
  46405. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  46406. return ((tempRet0 = h,l|0)|0);
  46407. }
  46408. function ___muldsi3($a, $b) {
  46409. $a = $a | 0;
  46410. $b = $b | 0;
  46411. var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0;
  46412. $1 = $a & 65535;
  46413. $2 = $b & 65535;
  46414. $3 = Math_imul($2, $1) | 0;
  46415. $6 = $a >>> 16;
  46416. $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0;
  46417. $11 = $b >>> 16;
  46418. $12 = Math_imul($11, $1) | 0;
  46419. return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0;
  46420. }
  46421. function ___muldi3($a$0, $a$1, $b$0, $b$1) {
  46422. $a$0 = $a$0 | 0;
  46423. $a$1 = $a$1 | 0;
  46424. $b$0 = $b$0 | 0;
  46425. $b$1 = $b$1 | 0;
  46426. var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0;
  46427. $x_sroa_0_0_extract_trunc = $a$0;
  46428. $y_sroa_0_0_extract_trunc = $b$0;
  46429. $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0;
  46430. $1$1 = tempRet0;
  46431. $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0;
  46432. 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;
  46433. }
  46434. function _memcpy(dest, src, num) {
  46435. dest = dest|0; src = src|0; num = num|0;
  46436. var ret = 0;
  46437. var aligned_dest_end = 0;
  46438. var block_aligned_dest_end = 0;
  46439. var dest_end = 0;
  46440. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  46441. if ((num|0) >=
  46442. 8192
  46443. ) {
  46444. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  46445. }
  46446. ret = dest|0;
  46447. dest_end = (dest + num)|0;
  46448. if ((dest&3) == (src&3)) {
  46449. // The initial unaligned < 4-byte front.
  46450. while (dest & 3) {
  46451. if ((num|0) == 0) return ret|0;
  46452. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46453. dest = (dest+1)|0;
  46454. src = (src+1)|0;
  46455. num = (num-1)|0;
  46456. }
  46457. aligned_dest_end = (dest_end & -4)|0;
  46458. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  46459. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  46460. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  46461. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  46462. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  46463. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  46464. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  46465. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  46466. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  46467. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  46468. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  46469. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  46470. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  46471. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  46472. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  46473. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  46474. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  46475. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  46476. dest = (dest+64)|0;
  46477. src = (src+64)|0;
  46478. }
  46479. while ((dest|0) < (aligned_dest_end|0) ) {
  46480. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  46481. dest = (dest+4)|0;
  46482. src = (src+4)|0;
  46483. }
  46484. } else {
  46485. // In the unaligned copy case, unroll a bit as well.
  46486. aligned_dest_end = (dest_end - 4)|0;
  46487. while ((dest|0) < (aligned_dest_end|0) ) {
  46488. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46489. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  46490. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  46491. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  46492. dest = (dest+4)|0;
  46493. src = (src+4)|0;
  46494. }
  46495. }
  46496. // The remaining unaligned < 4 byte tail.
  46497. while ((dest|0) < (dest_end|0)) {
  46498. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46499. dest = (dest+1)|0;
  46500. src = (src+1)|0;
  46501. }
  46502. return ret|0;
  46503. }
  46504. function _memmove(dest, src, num) {
  46505. dest = dest|0; src = src|0; num = num|0;
  46506. var ret = 0;
  46507. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  46508. // Unlikely case: Copy backwards in a safe manner
  46509. ret = dest;
  46510. src = (src + num)|0;
  46511. dest = (dest + num)|0;
  46512. while ((num|0) > 0) {
  46513. dest = (dest - 1)|0;
  46514. src = (src - 1)|0;
  46515. num = (num - 1)|0;
  46516. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  46517. }
  46518. dest = ret;
  46519. } else {
  46520. _memcpy(dest, src, num) | 0;
  46521. }
  46522. return dest | 0;
  46523. }
  46524. function _llvm_cttz_i32(x) {
  46525. x = x|0;
  46526. var ret = 0;
  46527. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  46528. if ((ret|0) < 8) return ret|0;
  46529. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  46530. if ((ret|0) < 8) return (ret + 8)|0;
  46531. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  46532. if ((ret|0) < 8) return (ret + 16)|0;
  46533. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  46534. }
  46535. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  46536. $a$0 = $a$0 | 0;
  46537. $a$1 = $a$1 | 0;
  46538. $b$0 = $b$0 | 0;
  46539. $b$1 = $b$1 | 0;
  46540. $rem = $rem | 0;
  46541. 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;
  46542. $n_sroa_0_0_extract_trunc = $a$0;
  46543. $n_sroa_1_4_extract_shift$0 = $a$1;
  46544. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  46545. $d_sroa_0_0_extract_trunc = $b$0;
  46546. $d_sroa_1_4_extract_shift$0 = $b$1;
  46547. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  46548. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  46549. $4 = ($rem | 0) != 0;
  46550. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  46551. if ($4) {
  46552. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  46553. HEAP32[$rem + 4 >> 2] = 0;
  46554. }
  46555. $_0$1 = 0;
  46556. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  46557. return (tempRet0 = $_0$1, $_0$0) | 0;
  46558. } else {
  46559. if (!$4) {
  46560. $_0$1 = 0;
  46561. $_0$0 = 0;
  46562. return (tempRet0 = $_0$1, $_0$0) | 0;
  46563. }
  46564. HEAP32[$rem >> 2] = $a$0 & -1;
  46565. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  46566. $_0$1 = 0;
  46567. $_0$0 = 0;
  46568. return (tempRet0 = $_0$1, $_0$0) | 0;
  46569. }
  46570. }
  46571. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  46572. do {
  46573. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  46574. if ($17) {
  46575. if (($rem | 0) != 0) {
  46576. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  46577. HEAP32[$rem + 4 >> 2] = 0;
  46578. }
  46579. $_0$1 = 0;
  46580. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  46581. return (tempRet0 = $_0$1, $_0$0) | 0;
  46582. }
  46583. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  46584. if (($rem | 0) != 0) {
  46585. HEAP32[$rem >> 2] = 0;
  46586. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  46587. }
  46588. $_0$1 = 0;
  46589. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  46590. return (tempRet0 = $_0$1, $_0$0) | 0;
  46591. }
  46592. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  46593. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  46594. if (($rem | 0) != 0) {
  46595. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46596. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  46597. }
  46598. $_0$1 = 0;
  46599. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  46600. return (tempRet0 = $_0$1, $_0$0) | 0;
  46601. }
  46602. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  46603. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46604. if ($51 >>> 0 <= 30) {
  46605. $57 = $51 + 1 | 0;
  46606. $58 = 31 - $51 | 0;
  46607. $sr_1_ph = $57;
  46608. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  46609. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  46610. $q_sroa_0_1_ph = 0;
  46611. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  46612. break;
  46613. }
  46614. if (($rem | 0) == 0) {
  46615. $_0$1 = 0;
  46616. $_0$0 = 0;
  46617. return (tempRet0 = $_0$1, $_0$0) | 0;
  46618. }
  46619. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46620. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46621. $_0$1 = 0;
  46622. $_0$0 = 0;
  46623. return (tempRet0 = $_0$1, $_0$0) | 0;
  46624. } else {
  46625. if (!$17) {
  46626. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  46627. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46628. if ($119 >>> 0 <= 31) {
  46629. $125 = $119 + 1 | 0;
  46630. $126 = 31 - $119 | 0;
  46631. $130 = $119 - 31 >> 31;
  46632. $sr_1_ph = $125;
  46633. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  46634. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  46635. $q_sroa_0_1_ph = 0;
  46636. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  46637. break;
  46638. }
  46639. if (($rem | 0) == 0) {
  46640. $_0$1 = 0;
  46641. $_0$0 = 0;
  46642. return (tempRet0 = $_0$1, $_0$0) | 0;
  46643. }
  46644. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  46645. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46646. $_0$1 = 0;
  46647. $_0$0 = 0;
  46648. return (tempRet0 = $_0$1, $_0$0) | 0;
  46649. }
  46650. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  46651. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  46652. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  46653. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  46654. $89 = 64 - $88 | 0;
  46655. $91 = 32 - $88 | 0;
  46656. $92 = $91 >> 31;
  46657. $95 = $88 - 32 | 0;
  46658. $105 = $95 >> 31;
  46659. $sr_1_ph = $88;
  46660. $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;
  46661. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  46662. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  46663. $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;
  46664. break;
  46665. }
  46666. if (($rem | 0) != 0) {
  46667. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  46668. HEAP32[$rem + 4 >> 2] = 0;
  46669. }
  46670. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  46671. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  46672. $_0$0 = 0 | $a$0 & -1;
  46673. return (tempRet0 = $_0$1, $_0$0) | 0;
  46674. } else {
  46675. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  46676. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  46677. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  46678. return (tempRet0 = $_0$1, $_0$0) | 0;
  46679. }
  46680. }
  46681. } while (0);
  46682. if (($sr_1_ph | 0) == 0) {
  46683. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  46684. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  46685. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  46686. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  46687. $carry_0_lcssa$1 = 0;
  46688. $carry_0_lcssa$0 = 0;
  46689. } else {
  46690. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  46691. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  46692. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  46693. $137$1 = tempRet0;
  46694. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  46695. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  46696. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  46697. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  46698. $sr_1202 = $sr_1_ph;
  46699. $carry_0203 = 0;
  46700. while (1) {
  46701. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  46702. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  46703. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  46704. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  46705. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  46706. $150$1 = tempRet0;
  46707. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  46708. $152 = $151$0 & 1;
  46709. $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;
  46710. $r_sroa_0_0_extract_trunc = $154$0;
  46711. $r_sroa_1_4_extract_trunc = tempRet0;
  46712. $155 = $sr_1202 - 1 | 0;
  46713. if (($155 | 0) == 0) {
  46714. break;
  46715. } else {
  46716. $q_sroa_1_1198 = $147;
  46717. $q_sroa_0_1199 = $149;
  46718. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  46719. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  46720. $sr_1202 = $155;
  46721. $carry_0203 = $152;
  46722. }
  46723. }
  46724. $q_sroa_1_1_lcssa = $147;
  46725. $q_sroa_0_1_lcssa = $149;
  46726. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  46727. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  46728. $carry_0_lcssa$1 = 0;
  46729. $carry_0_lcssa$0 = $152;
  46730. }
  46731. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  46732. $q_sroa_0_0_insert_ext75$1 = 0;
  46733. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  46734. if (($rem | 0) != 0) {
  46735. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  46736. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  46737. }
  46738. $_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;
  46739. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  46740. return (tempRet0 = $_0$1, $_0$0) | 0;
  46741. }
  46742. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  46743. $a$0 = $a$0 | 0;
  46744. $a$1 = $a$1 | 0;
  46745. $b$0 = $b$0 | 0;
  46746. $b$1 = $b$1 | 0;
  46747. var $rem = 0, __stackBase__ = 0;
  46748. __stackBase__ = STACKTOP;
  46749. STACKTOP = STACKTOP + 16 | 0;
  46750. $rem = __stackBase__ | 0;
  46751. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  46752. STACKTOP = __stackBase__;
  46753. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  46754. }
  46755. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  46756. $a$0 = $a$0 | 0;
  46757. $a$1 = $a$1 | 0;
  46758. $b$0 = $b$0 | 0;
  46759. $b$1 = $b$1 | 0;
  46760. var $1$0 = 0;
  46761. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  46762. return $1$0 | 0;
  46763. }
  46764. function _roundf(f) {
  46765. f = +f;
  46766. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  46767. }
  46768. function _bitshift64Lshr(low, high, bits) {
  46769. low = low|0; high = high|0; bits = bits|0;
  46770. var ander = 0;
  46771. if ((bits|0) < 32) {
  46772. ander = ((1 << bits) - 1)|0;
  46773. tempRet0 = high >>> bits;
  46774. return (low >>> bits) | ((high&ander) << (32 - bits));
  46775. }
  46776. tempRet0 = 0;
  46777. return (high >>> (bits - 32))|0;
  46778. }
  46779. function _sbrk(increment) {
  46780. increment = increment|0;
  46781. var oldDynamicTop = 0;
  46782. var oldDynamicTopOnChange = 0;
  46783. var newDynamicTop = 0;
  46784. var totalMemory = 0;
  46785. increment = ((increment + 15) & -16)|0;
  46786. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  46787. newDynamicTop = oldDynamicTop + increment | 0;
  46788. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  46789. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  46790. abortOnCannotGrowMemory()|0;
  46791. ___setErrNo(12);
  46792. return -1;
  46793. }
  46794. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  46795. totalMemory = getTotalMemory()|0;
  46796. if ((newDynamicTop|0) > (totalMemory|0)) {
  46797. if ((enlargeMemory()|0) == 0) {
  46798. ___setErrNo(12);
  46799. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  46800. return -1;
  46801. }
  46802. }
  46803. return oldDynamicTop|0;
  46804. }
  46805. function _bitshift64Shl(low, high, bits) {
  46806. low = low|0; high = high|0; bits = bits|0;
  46807. var ander = 0;
  46808. if ((bits|0) < 32) {
  46809. ander = ((1 << bits) - 1)|0;
  46810. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  46811. return low << bits;
  46812. }
  46813. tempRet0 = low << (bits - 32);
  46814. return 0;
  46815. }
  46816. function _llvm_bswap_i32(x) {
  46817. x = x|0;
  46818. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  46819. }
  46820. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  46821. index = index|0;
  46822. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  46823. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  46824. }
  46825. function dynCall_vd(index,a1) {
  46826. index = index|0;
  46827. a1=+a1;
  46828. FUNCTION_TABLE_vd[index&3](+a1);
  46829. }
  46830. function dynCall_vid(index,a1,a2) {
  46831. index = index|0;
  46832. a1=a1|0; a2=+a2;
  46833. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  46834. }
  46835. function dynCall_vi(index,a1) {
  46836. index = index|0;
  46837. a1=a1|0;
  46838. FUNCTION_TABLE_vi[index&31](a1|0);
  46839. }
  46840. function dynCall_vii(index,a1,a2) {
  46841. index = index|0;
  46842. a1=a1|0; a2=a2|0;
  46843. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  46844. }
  46845. function dynCall_ii(index,a1) {
  46846. index = index|0;
  46847. a1=a1|0;
  46848. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  46849. }
  46850. function dynCall_viddd(index,a1,a2,a3,a4) {
  46851. index = index|0;
  46852. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  46853. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  46854. }
  46855. function dynCall_vidd(index,a1,a2,a3) {
  46856. index = index|0;
  46857. a1=a1|0; a2=+a2; a3=+a3;
  46858. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  46859. }
  46860. function dynCall_iiii(index,a1,a2,a3) {
  46861. index = index|0;
  46862. a1=a1|0; a2=a2|0; a3=a3|0;
  46863. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  46864. }
  46865. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  46866. index = index|0;
  46867. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  46868. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  46869. }
  46870. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  46871. index = index|0;
  46872. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  46873. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  46874. }
  46875. function dynCall_viii(index,a1,a2,a3) {
  46876. index = index|0;
  46877. a1=a1|0; a2=a2|0; a3=a3|0;
  46878. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  46879. }
  46880. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  46881. index = index|0;
  46882. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  46883. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  46884. }
  46885. function dynCall_vdi(index,a1,a2) {
  46886. index = index|0;
  46887. a1=+a1; a2=a2|0;
  46888. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  46889. }
  46890. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  46891. index = index|0;
  46892. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  46893. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  46894. }
  46895. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  46896. index = index|0;
  46897. 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;
  46898. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  46899. }
  46900. function dynCall_iii(index,a1,a2) {
  46901. index = index|0;
  46902. a1=a1|0; a2=a2|0;
  46903. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  46904. }
  46905. function dynCall_i(index) {
  46906. index = index|0;
  46907. return FUNCTION_TABLE_i[index&3]()|0;
  46908. }
  46909. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  46910. index = index|0;
  46911. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  46912. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  46913. }
  46914. function dynCall_vdddd(index,a1,a2,a3,a4) {
  46915. index = index|0;
  46916. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  46917. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  46918. }
  46919. function dynCall_vdd(index,a1,a2) {
  46920. index = index|0;
  46921. a1=+a1; a2=+a2;
  46922. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  46923. }
  46924. function dynCall_v(index) {
  46925. index = index|0;
  46926. FUNCTION_TABLE_v[index&7]();
  46927. }
  46928. function dynCall_viid(index,a1,a2,a3) {
  46929. index = index|0;
  46930. a1=a1|0; a2=a2|0; a3=+a3;
  46931. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  46932. }
  46933. function dynCall_viiii(index,a1,a2,a3,a4) {
  46934. index = index|0;
  46935. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  46936. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  46937. }
  46938. function b0(p0,p1,p2,p3,p4) {
  46939. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  46940. }
  46941. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  46942. 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);
  46943. }
  46944. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  46945. 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);
  46946. }
  46947. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  46948. 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);
  46949. }
  46950. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  46951. 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);
  46952. }
  46953. function b1(p0) {
  46954. p0 = +p0; nullFunc_vd(1);
  46955. }
  46956. function _emscripten_glClearDepth__wrapper(p0) {
  46957. p0 = +p0; _emscripten_glClearDepth(+p0);
  46958. }
  46959. function _emscripten_glClearDepthf__wrapper(p0) {
  46960. p0 = +p0; _emscripten_glClearDepthf(+p0);
  46961. }
  46962. function _emscripten_glLineWidth__wrapper(p0) {
  46963. p0 = +p0; _emscripten_glLineWidth(+p0);
  46964. }
  46965. function b2(p0,p1) {
  46966. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  46967. }
  46968. function _emscripten_glUniform1f__wrapper(p0,p1) {
  46969. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  46970. }
  46971. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  46972. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  46973. }
  46974. function b3(p0) {
  46975. p0 = p0|0; nullFunc_vi(3);
  46976. }
  46977. function _emscripten_glDeleteShader__wrapper(p0) {
  46978. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  46979. }
  46980. function _emscripten_glCompileShader__wrapper(p0) {
  46981. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  46982. }
  46983. function _emscripten_glDeleteProgram__wrapper(p0) {
  46984. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  46985. }
  46986. function _emscripten_glLinkProgram__wrapper(p0) {
  46987. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  46988. }
  46989. function _emscripten_glUseProgram__wrapper(p0) {
  46990. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  46991. }
  46992. function _emscripten_glValidateProgram__wrapper(p0) {
  46993. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  46994. }
  46995. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  46996. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  46997. }
  46998. function _emscripten_glEnableClientState__wrapper(p0) {
  46999. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  47000. }
  47001. function _emscripten_glClientActiveTexture__wrapper(p0) {
  47002. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  47003. }
  47004. function _emscripten_glBindVertexArray__wrapper(p0) {
  47005. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  47006. }
  47007. function _emscripten_glMatrixMode__wrapper(p0) {
  47008. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  47009. }
  47010. function _emscripten_glLoadMatrixf__wrapper(p0) {
  47011. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  47012. }
  47013. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  47014. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  47015. }
  47016. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  47017. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  47018. }
  47019. function _emscripten_glDepthFunc__wrapper(p0) {
  47020. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  47021. }
  47022. function _emscripten_glEnable__wrapper(p0) {
  47023. p0 = p0|0; _emscripten_glEnable(p0|0);
  47024. }
  47025. function _emscripten_glDisable__wrapper(p0) {
  47026. p0 = p0|0; _emscripten_glDisable(p0|0);
  47027. }
  47028. function _emscripten_glFrontFace__wrapper(p0) {
  47029. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  47030. }
  47031. function _emscripten_glCullFace__wrapper(p0) {
  47032. p0 = p0|0; _emscripten_glCullFace(p0|0);
  47033. }
  47034. function _emscripten_glClear__wrapper(p0) {
  47035. p0 = p0|0; _emscripten_glClear(p0|0);
  47036. }
  47037. function _emscripten_glClearStencil__wrapper(p0) {
  47038. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  47039. }
  47040. function _emscripten_glDepthMask__wrapper(p0) {
  47041. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  47042. }
  47043. function _emscripten_glStencilMask__wrapper(p0) {
  47044. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  47045. }
  47046. function _emscripten_glGenerateMipmap__wrapper(p0) {
  47047. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  47048. }
  47049. function _emscripten_glActiveTexture__wrapper(p0) {
  47050. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  47051. }
  47052. function _emscripten_glBlendEquation__wrapper(p0) {
  47053. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  47054. }
  47055. function b4(p0,p1) {
  47056. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  47057. }
  47058. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  47059. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  47060. }
  47061. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  47062. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  47063. }
  47064. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  47065. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  47066. }
  47067. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  47068. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  47069. }
  47070. function _emscripten_glGenTextures__wrapper(p0,p1) {
  47071. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  47072. }
  47073. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  47074. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  47075. }
  47076. function _emscripten_glBindTexture__wrapper(p0,p1) {
  47077. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  47078. }
  47079. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  47080. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  47081. }
  47082. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  47083. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  47084. }
  47085. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  47086. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  47087. }
  47088. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  47089. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  47090. }
  47091. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  47092. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  47093. }
  47094. function _emscripten_glUniform1i__wrapper(p0,p1) {
  47095. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  47096. }
  47097. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  47098. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  47099. }
  47100. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  47101. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  47102. }
  47103. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  47104. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  47105. }
  47106. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  47107. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  47108. }
  47109. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  47110. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  47111. }
  47112. function _emscripten_glAttachShader__wrapper(p0,p1) {
  47113. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  47114. }
  47115. function _emscripten_glDetachShader__wrapper(p0,p1) {
  47116. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  47117. }
  47118. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  47119. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  47120. }
  47121. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  47122. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  47123. }
  47124. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  47125. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  47126. }
  47127. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  47128. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  47129. }
  47130. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  47131. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  47132. }
  47133. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  47134. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  47135. }
  47136. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  47137. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  47138. }
  47139. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  47140. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  47141. }
  47142. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  47143. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  47144. }
  47145. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  47146. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  47147. }
  47148. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  47149. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  47150. }
  47151. function _emscripten_glHint__wrapper(p0,p1) {
  47152. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  47153. }
  47154. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  47155. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  47156. }
  47157. function b5(p0) {
  47158. p0 = p0|0; nullFunc_ii(5);return 0;
  47159. }
  47160. function _emscripten_glGetString__wrapper(p0) {
  47161. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  47162. }
  47163. function _emscripten_glIsTexture__wrapper(p0) {
  47164. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  47165. }
  47166. function _emscripten_glIsBuffer__wrapper(p0) {
  47167. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  47168. }
  47169. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  47170. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  47171. }
  47172. function _emscripten_glCreateShader__wrapper(p0) {
  47173. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  47174. }
  47175. function _emscripten_glIsShader__wrapper(p0) {
  47176. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  47177. }
  47178. function _emscripten_glIsProgram__wrapper(p0) {
  47179. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  47180. }
  47181. function _emscripten_glIsFramebuffer__wrapper(p0) {
  47182. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  47183. }
  47184. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  47185. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  47186. }
  47187. function _emscripten_glIsEnabled__wrapper(p0) {
  47188. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  47189. }
  47190. function b6(p0,p1,p2,p3) {
  47191. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  47192. }
  47193. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  47194. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  47195. }
  47196. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  47197. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  47198. }
  47199. function b7(p0,p1,p2) {
  47200. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  47201. }
  47202. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  47203. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  47204. }
  47205. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  47206. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  47207. }
  47208. function b8(p0,p1,p2) {
  47209. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  47210. }
  47211. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  47212. 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);
  47213. }
  47214. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47215. 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);
  47216. }
  47217. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47218. 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);
  47219. }
  47220. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  47221. 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);
  47222. }
  47223. function b10(p0,p1,p2,p3,p4,p5) {
  47224. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  47225. }
  47226. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  47227. 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);
  47228. }
  47229. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  47230. 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);
  47231. }
  47232. function b11(p0,p1,p2) {
  47233. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  47234. }
  47235. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  47236. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  47237. }
  47238. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  47239. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  47240. }
  47241. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  47242. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  47243. }
  47244. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  47245. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  47246. }
  47247. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  47248. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  47249. }
  47250. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  47251. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  47252. }
  47253. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  47254. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  47255. }
  47256. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  47257. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  47258. }
  47259. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  47260. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  47261. }
  47262. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  47263. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  47264. }
  47265. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  47266. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  47267. }
  47268. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  47269. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  47270. }
  47271. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  47272. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  47273. }
  47274. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  47275. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  47276. }
  47277. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  47278. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  47279. }
  47280. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  47281. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  47282. }
  47283. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  47284. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  47285. }
  47286. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  47287. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  47288. }
  47289. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  47290. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  47291. }
  47292. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  47293. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  47294. }
  47295. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  47296. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  47297. }
  47298. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  47299. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  47300. }
  47301. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  47302. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  47303. }
  47304. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  47305. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  47306. }
  47307. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  47308. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  47309. }
  47310. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  47311. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  47312. }
  47313. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  47314. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  47315. }
  47316. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  47317. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  47318. }
  47319. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  47320. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  47321. }
  47322. function b12(p0,p1,p2,p3,p4) {
  47323. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  47324. }
  47325. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  47326. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  47327. }
  47328. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  47329. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  47330. }
  47331. function b13(p0,p1) {
  47332. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  47333. }
  47334. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  47335. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  47336. }
  47337. function b14(p0,p1,p2,p3,p4,p5,p6) {
  47338. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  47339. }
  47340. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47341. 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);
  47342. }
  47343. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47344. 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);
  47345. }
  47346. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  47347. 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);
  47348. }
  47349. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47350. 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);
  47351. }
  47352. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47353. 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);
  47354. }
  47355. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47356. 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);
  47357. }
  47358. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  47359. 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);
  47360. }
  47361. function b16(p0,p1) {
  47362. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  47363. }
  47364. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  47365. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  47366. }
  47367. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  47368. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  47369. }
  47370. function b17() {
  47371. ; nullFunc_i(17);return 0;
  47372. }
  47373. function _emscripten_glCreateProgram__wrapper() {
  47374. ; return _emscripten_glCreateProgram()|0;
  47375. }
  47376. function _emscripten_glGetError__wrapper() {
  47377. ; return _emscripten_glGetError()|0;
  47378. }
  47379. function b18(p0,p1,p2,p3,p4,p5) {
  47380. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  47381. }
  47382. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  47383. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  47384. }
  47385. function b19(p0,p1,p2,p3) {
  47386. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  47387. }
  47388. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  47389. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  47390. }
  47391. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  47392. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  47393. }
  47394. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  47395. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  47396. }
  47397. function b20(p0,p1) {
  47398. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  47399. }
  47400. function _emscripten_glDepthRange__wrapper(p0,p1) {
  47401. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  47402. }
  47403. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  47404. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  47405. }
  47406. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  47407. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  47408. }
  47409. function b21() {
  47410. ; nullFunc_v(21);
  47411. }
  47412. function _emscripten_glLoadIdentity__wrapper() {
  47413. ; _emscripten_glLoadIdentity();
  47414. }
  47415. function _emscripten_glReleaseShaderCompiler__wrapper() {
  47416. ; _emscripten_glReleaseShaderCompiler();
  47417. }
  47418. function _emscripten_glFinish__wrapper() {
  47419. ; _emscripten_glFinish();
  47420. }
  47421. function _emscripten_glFlush__wrapper() {
  47422. ; _emscripten_glFlush();
  47423. }
  47424. function b22(p0,p1,p2) {
  47425. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  47426. }
  47427. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  47428. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  47429. }
  47430. function b23(p0,p1,p2,p3) {
  47431. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  47432. }
  47433. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  47434. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  47435. }
  47436. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  47437. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  47438. }
  47439. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  47440. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  47441. }
  47442. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  47443. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  47444. }
  47445. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  47446. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  47447. }
  47448. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  47449. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  47450. }
  47451. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  47452. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  47453. }
  47454. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  47455. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  47456. }
  47457. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  47458. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  47459. }
  47460. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  47461. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  47462. }
  47463. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  47464. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  47465. }
  47466. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  47467. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  47468. }
  47469. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  47470. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  47471. }
  47472. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  47473. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  47474. }
  47475. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  47476. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  47477. }
  47478. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  47479. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  47480. }
  47481. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  47482. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  47483. }
  47484. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  47485. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  47486. }
  47487. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  47488. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  47489. }
  47490. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  47491. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  47492. }
  47493. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  47494. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  47495. }
  47496. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  47497. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  47498. }
  47499. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  47500. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  47501. }
  47502. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  47503. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  47504. }
  47505. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  47506. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  47507. }
  47508. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  47509. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  47510. }
  47511. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  47512. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  47513. }
  47514. // EMSCRIPTEN_END_FUNCS
  47515. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  47516. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  47517. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  47518. 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
  47519. ,b3,b3,b3];
  47520. 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
  47521. ,b4,b4,b4,b4,b4];
  47522. 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];
  47523. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  47524. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  47525. 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];
  47526. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  47527. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  47528. 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];
  47529. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  47530. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  47531. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  47532. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  47533. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  47534. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  47535. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  47536. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  47537. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  47538. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  47539. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  47540. 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];
  47541. 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 };
  47542. })
  47543. // EMSCRIPTEN_END_ASM
  47544. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  47545. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  47546. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47547. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47548. return real__roundf.apply(null, arguments);
  47549. };
  47550. var real__main = asm["_main"]; asm["_main"] = function() {
  47551. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47552. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47553. return real__main.apply(null, arguments);
  47554. };
  47555. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  47556. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47557. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47558. return real_stackSave.apply(null, arguments);
  47559. };
  47560. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  47561. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47562. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47563. return real_getTempRet0.apply(null, arguments);
  47564. };
  47565. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  47566. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47567. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47568. return real_setThrew.apply(null, arguments);
  47569. };
  47570. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  47571. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47572. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47573. return real__bitshift64Lshr.apply(null, arguments);
  47574. };
  47575. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  47576. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47577. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47578. return real__bitshift64Shl.apply(null, arguments);
  47579. };
  47580. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  47581. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47582. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47583. return real__fflush.apply(null, arguments);
  47584. };
  47585. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  47586. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47587. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47588. return real__llvm_cttz_i32.apply(null, arguments);
  47589. };
  47590. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  47591. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47592. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47593. return real__sbrk.apply(null, arguments);
  47594. };
  47595. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  47596. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47597. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47598. return real__llvm_bswap_i32.apply(null, arguments);
  47599. };
  47600. var real____muldi3 = asm["___muldi3"]; asm["___muldi3"] = function() {
  47601. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47602. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47603. return real____muldi3.apply(null, arguments);
  47604. };
  47605. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  47606. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47607. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47608. return real____uremdi3.apply(null, arguments);
  47609. };
  47610. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  47611. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47612. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47613. return real_stackAlloc.apply(null, arguments);
  47614. };
  47615. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  47616. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47617. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47618. return real__i64Subtract.apply(null, arguments);
  47619. };
  47620. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  47621. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47622. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47623. return real____udivmoddi4.apply(null, arguments);
  47624. };
  47625. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  47626. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47627. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47628. return real_setTempRet0.apply(null, arguments);
  47629. };
  47630. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  47631. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47632. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47633. return real__i64Add.apply(null, arguments);
  47634. };
  47635. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  47636. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47637. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47638. return real__emscripten_get_global_libc.apply(null, arguments);
  47639. };
  47640. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  47641. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47642. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47643. return real__emscripten_GetProcAddress.apply(null, arguments);
  47644. };
  47645. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  47646. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47647. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47648. return real____udivdi3.apply(null, arguments);
  47649. };
  47650. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  47651. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47652. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47653. return real____errno_location.apply(null, arguments);
  47654. };
  47655. var real____muldsi3 = asm["___muldsi3"]; asm["___muldsi3"] = function() {
  47656. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47657. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47658. return real____muldsi3.apply(null, arguments);
  47659. };
  47660. var real__free = asm["_free"]; asm["_free"] = function() {
  47661. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47662. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47663. return real__free.apply(null, arguments);
  47664. };
  47665. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  47666. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47667. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47668. return real_establishStackSpace.apply(null, arguments);
  47669. };
  47670. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  47671. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47672. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47673. return real__memmove.apply(null, arguments);
  47674. };
  47675. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  47676. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47677. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47678. return real__strstr.apply(null, arguments);
  47679. };
  47680. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  47681. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47682. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47683. return real_stackRestore.apply(null, arguments);
  47684. };
  47685. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  47686. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  47687. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  47688. return real__malloc.apply(null, arguments);
  47689. };
  47690. var _roundf = Module["_roundf"] = asm["_roundf"];
  47691. var _main = Module["_main"] = asm["_main"];
  47692. var stackSave = Module["stackSave"] = asm["stackSave"];
  47693. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  47694. var _memset = Module["_memset"] = asm["_memset"];
  47695. var setThrew = Module["setThrew"] = asm["setThrew"];
  47696. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  47697. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  47698. var _fflush = Module["_fflush"] = asm["_fflush"];
  47699. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  47700. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  47701. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  47702. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  47703. var ___muldi3 = Module["___muldi3"] = asm["___muldi3"];
  47704. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  47705. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  47706. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  47707. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  47708. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  47709. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  47710. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  47711. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  47712. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  47713. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  47714. var ___muldsi3 = Module["___muldsi3"] = asm["___muldsi3"];
  47715. var _free = Module["_free"] = asm["_free"];
  47716. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  47717. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  47718. var _memmove = Module["_memmove"] = asm["_memmove"];
  47719. var _strstr = Module["_strstr"] = asm["_strstr"];
  47720. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  47721. var _malloc = Module["_malloc"] = asm["_malloc"];
  47722. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  47723. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  47724. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  47725. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  47726. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  47727. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  47728. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  47729. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  47730. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  47731. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  47732. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  47733. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  47734. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  47735. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  47736. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  47737. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  47738. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  47739. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  47740. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  47741. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  47742. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  47743. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  47744. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  47745. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  47746. ;
  47747. Runtime.stackAlloc = Module['stackAlloc'];
  47748. Runtime.stackSave = Module['stackSave'];
  47749. Runtime.stackRestore = Module['stackRestore'];
  47750. Runtime.establishStackSpace = Module['establishStackSpace'];
  47751. Runtime.setTempRet0 = Module['setTempRet0'];
  47752. Runtime.getTempRet0 = Module['getTempRet0'];
  47753. // === Auto-generated postamble setup entry stuff ===
  47754. Module['asm'] = asm;
  47755. function ExitStatus(status) {
  47756. this.name = "ExitStatus";
  47757. this.message = "Program terminated with exit(" + status + ")";
  47758. this.status = status;
  47759. };
  47760. ExitStatus.prototype = new Error();
  47761. ExitStatus.prototype.constructor = ExitStatus;
  47762. var initialStackTop;
  47763. var preloadStartTime = null;
  47764. var calledMain = false;
  47765. dependenciesFulfilled = function runCaller() {
  47766. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  47767. if (!Module['calledRun']) run();
  47768. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  47769. }
  47770. Module['callMain'] = Module.callMain = function callMain(args) {
  47771. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  47772. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  47773. args = args || [];
  47774. ensureInitRuntime();
  47775. var argc = args.length+1;
  47776. function pad() {
  47777. for (var i = 0; i < 4-1; i++) {
  47778. argv.push(0);
  47779. }
  47780. }
  47781. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  47782. pad();
  47783. for (var i = 0; i < argc-1; i = i + 1) {
  47784. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  47785. pad();
  47786. }
  47787. argv.push(0);
  47788. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  47789. try {
  47790. var ret = Module['_main'](argc, argv, 0);
  47791. // if we're not running an evented main loop, it's time to exit
  47792. exit(ret, /* implicit = */ true);
  47793. }
  47794. catch(e) {
  47795. if (e instanceof ExitStatus) {
  47796. // exit() throws this once it's done to make sure execution
  47797. // has been stopped completely
  47798. return;
  47799. } else if (e == 'SimulateInfiniteLoop') {
  47800. // running an evented main loop, don't immediately exit
  47801. Module['noExitRuntime'] = true;
  47802. return;
  47803. } else {
  47804. var toLog = e;
  47805. if (e && typeof e === 'object' && e.stack) {
  47806. toLog = [e, e.stack];
  47807. }
  47808. Module.printErr('exception thrown: ' + toLog);
  47809. Module['quit'](1, e);
  47810. }
  47811. } finally {
  47812. calledMain = true;
  47813. }
  47814. }
  47815. function run(args) {
  47816. args = args || Module['arguments'];
  47817. if (preloadStartTime === null) preloadStartTime = Date.now();
  47818. if (runDependencies > 0) {
  47819. Module.printErr('run() called, but dependencies remain, so not running');
  47820. return;
  47821. }
  47822. writeStackCookie();
  47823. preRun();
  47824. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  47825. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  47826. function doRun() {
  47827. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  47828. Module['calledRun'] = true;
  47829. if (ABORT) return;
  47830. ensureInitRuntime();
  47831. preMain();
  47832. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  47833. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  47834. }
  47835. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  47836. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  47837. postRun();
  47838. }
  47839. if (Module['setStatus']) {
  47840. Module['setStatus']('Running...');
  47841. setTimeout(function() {
  47842. setTimeout(function() {
  47843. Module['setStatus']('');
  47844. }, 1);
  47845. doRun();
  47846. }, 1);
  47847. } else {
  47848. doRun();
  47849. }
  47850. checkStackCookie();
  47851. }
  47852. Module['run'] = Module.run = run;
  47853. function exit(status, implicit) {
  47854. if (implicit && Module['noExitRuntime']) {
  47855. 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)');
  47856. return;
  47857. }
  47858. if (Module['noExitRuntime']) {
  47859. 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)');
  47860. } else {
  47861. ABORT = true;
  47862. EXITSTATUS = status;
  47863. STACKTOP = initialStackTop;
  47864. exitRuntime();
  47865. if (Module['onExit']) Module['onExit'](status);
  47866. }
  47867. if (ENVIRONMENT_IS_NODE) {
  47868. process['exit'](status);
  47869. }
  47870. Module['quit'](status, new ExitStatus(status));
  47871. }
  47872. Module['exit'] = Module.exit = exit;
  47873. var abortDecorators = [];
  47874. function abort(what) {
  47875. if (what !== undefined) {
  47876. Module.print(what);
  47877. Module.printErr(what);
  47878. what = JSON.stringify(what)
  47879. } else {
  47880. what = '';
  47881. }
  47882. ABORT = true;
  47883. EXITSTATUS = 1;
  47884. var extra = '';
  47885. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  47886. if (abortDecorators) {
  47887. abortDecorators.forEach(function(decorator) {
  47888. output = decorator(output, what);
  47889. });
  47890. }
  47891. throw output;
  47892. }
  47893. Module['abort'] = Module.abort = abort;
  47894. // {{PRE_RUN_ADDITIONS}}
  47895. if (Module['preInit']) {
  47896. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  47897. while (Module['preInit'].length > 0) {
  47898. Module['preInit'].pop()();
  47899. }
  47900. }
  47901. // shouldRunNow refers to calling main(), not run().
  47902. var shouldRunNow = true;
  47903. if (Module['noInitialRun']) {
  47904. shouldRunNow = false;
  47905. }
  47906. run();
  47907. // {{POST_RUN_ADDITIONS}}
  47908. // {{MODULE_ADDITIONS}}